1 #ifndef QXRDDETECTORPROCESSOR_H
2 #define QXRDDETECTORPROCESSOR_H
19 #include <QScriptEngine>
124 Q_PROPERTY(
bool saveRawImages READ get_SaveRawImages WRITE set_SaveRawImages)
139 Q_PROPERTY(QString
darkImagePath READ get_DarkImagePath WRITE set_DarkImagePath)
142 Q_PROPERTY(QString
rawDataSubdir READ get_RawDataSubdir WRITE set_RawDataSubdir)
145 Q_PROPERTY(QString
darkDataSubdir READ get_DarkDataSubdir WRITE set_DarkDataSubdir)
148 Q_PROPERTY(QString
badPixelsPath READ get_BadPixelsPath WRITE set_BadPixelsPath)
151 Q_PROPERTY(QString
gainMapPath READ get_GainMapPath WRITE set_GainMapPath)
157 Q_PROPERTY(QString
maskPath READ get_MaskPath WRITE set_MaskPath)
218 #endif // QXRDACQUISITIONPROCESSOR_H
void processAcquiredImage(QcepInt32ImageDataPtr image, QcepMaskDataPtr overflow, int fileIndex, int phase, int nPhases, bool trig)
QSharedPointer< QxrdCenterFinder > QxrdCenterFinderPtr
QString darkOutputDirectory() const
void onBadPixelsPathChanged(QString newPath)
QxrdDetectorProcessor(QcepSettingsSaverWPtr saver, QxrdExperimentWPtr doc, QxrdFileSaverWPtr fsav, QxrdDetectorWPtr det)
QcepDoubleImageDataPtr badPixels()
static void fromScriptValue(const QScriptValue &obj, QxrdDetectorProcessorPtr &proc)
QxrdDetectorControlWindowWPtr m_ControlWindow
QcepImageDataBasePtr doGainCorrection(QcepImageDataBasePtr img)
bool saveIntegratedDataSeparate
bool displayIntegratedData
virtual ~QxrdDetectorProcessor()
QcepDoubleImageDataPtr m_BadPixels
QWeakPointer< QxrdDetectorControlWindow > QxrdDetectorControlWindowWPtr
void onDarkImagePathChanged(QString newPath)
void processIdleImage(QcepImageDataBasePtr image)
QString integratedOutputDirectory() const
static QScriptValue toScriptValue(QScriptEngine *engine, const QxrdDetectorProcessorPtr &proc)
QString filePathInDarkOutputDirectory(QString fileName) const
QSharedPointer< QxrdROICalculator > QxrdROICalculatorPtr
QcepDoubleImageDataPtr gainCorrection()
#define QCEP_DOUBLE_VECTOR_PROPERTY(propname)
void doSaveSubtractedImage(QcepImageDataBasePtr img, QcepMaskDataPtr ovf)
QxrdROICalculatorPtr roiCalculator()
QString integratedDataSubdir
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
QxrdIntegratorPtr m_Integrator
QxrdIntegratorPtr integrator()
QWeakPointer< QxrdImagePlotSettings > QxrdImagePlotSettingsWPtr
QString accumulateIntegratedName
QxrdDetectorWPtr m_Detector
QcepDoubleVector roiCounts
QVector< double > QcepDoubleVector
QxrdExperimentWPtr m_Experiment
QxrdImagePlotSettingsPtr m_ImagePlotSettings
QcepMaskDataPtr m_Overflow
void onMaskPathChanged(QString newPath)
QString integratedDataFile
QString subtractedOutputDirectory() const
#define QCEP_INTEGER_PROPERTY(propname)
QxrdImagePlotSettingsWPtr imagePlotSettings()
QString filePathInRawOutputDirectory(QString fileName) const
QcepMaskDataPtr overflow()
void setControlWindow(QxrdDetectorControlWindowWPtr ctrl)
QcepImageDataBasePtr doBadPixels(QcepImageDataBasePtr img)
QString existingOutputDirectory(QString dir, QString subdir) const
void doSaveDarkImage(QcepImageDataBasePtr img, QcepMaskDataPtr ovf)
QcepSettingsSaverWPtr m_Saver
QWeakPointer< QxrdFileSaver > QxrdFileSaverWPtr
void readSettings(QSettings *settings, QString section)
QSharedPointer< QxrdDetectorProcessor > QxrdDetectorProcessorPtr
#define QCEP_STRING_PROPERTY(propname)
QWeakPointer< QxrdDetector > QxrdDetectorWPtr
QSharedPointer< QxrdIntegrator > QxrdIntegratorPtr
void writeSettings(QSettings *settings, QString section)
QxrdROICalculatorPtr m_ROICalculator
QString dataDirectory() const
QcepImageDataBasePtr m_Data
QSharedPointer< QxrdImagePlotSettings > QxrdImagePlotSettingsPtr
QcepDoubleImageDataPtr m_GainMap
void doSaveRawImage(QcepImageDataBasePtr img, QcepMaskDataPtr ovf)
#define QCEP_BOOLEAN_PROPERTY(propname)
bool performDarkSubtraction
void setAcquiredImageProperties(QcepImageDataBasePtr image, int fileIndex, int phase, int nPhases, bool trig)
QcepImageDataBasePtr doDarkSubtraction(QcepImageDataBasePtr img)
QcepInt32ImageDataPtr dark()
QSharedPointer< QcepInt32ImageData > QcepInt32ImageDataPtr
void processDarkImage(QcepInt32ImageDataPtr image, QcepMaskDataPtr overflow, int fileIndex)
bool accumulateIntegrated2D
QcepDoubleVector doCalculateROICounts(QcepImageDataBasePtr img)
QcepDoubleImageDataPtr m_LiveData
QxrdCenterFinderPtr m_CenterFinder
QString filePathInSubtractedOutputDirectory(QString fileName) const
QxrdFileSaverWPtr m_FileSaver
void onGainMapPathChanged(QString newPath)
QSharedPointer< QcepImageDataBase > QcepImageDataBasePtr
QSharedPointer< QcepMaskData > QcepMaskDataPtr
QString filePathInIntegratedOutputDirectory(QString fileName) const
QcepImageDataBasePtr data()
bool performGainCorrection
QcepInt32ImageDataPtr m_DarkImage
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr
QxrdCenterFinderPtr centerFinder()
QString rawOutputDirectory() const
QSharedPointer< QcepDoubleImageData > QcepDoubleImageDataPtr