QXRD
0.11.16
|
#include <qxrddataprocessorthreaded.h>
Public Slots | |
void | sumImages (QStringList names) |
void | addImages (QStringList names) |
void | subtractImages (QStringList names) |
void | projectImages (QStringList names, int px, int py, int pz) |
void | integrateData (QString name) |
void | correlateImages (QStringList names) |
void | clearAccumulator () |
void | integrateAndAccumulate (QStringList names) |
void | saveAccumulator (QString &path, QString filter) |
void | shiftImage (int dx, int dy) |
void | reflectVertically () |
void | reflectHorizontally () |
void | fitPeakNear (double x, double y) |
void | processData (QString name) |
void | processDataSequence (QString path, QString filter="*.tif") |
void | processDataSequence (QStringList paths) |
void | processDataSequence (QString path, QStringList filter) |
void | processNormalizedFile (QString path, double v1) |
void | processNormalizedFile (QString path, double v1, double v2) |
void | processNormalizedFile (QString path, QcepDoubleList v) |
void | setFileNormalization (QString path, double v1) |
void | setFileNormalization (QString path, double v1, double v2) |
void | setFileNormalization (QString path, QcepDoubleList v) |
void | slicePolygon (QVector< QPointF > poly) |
void | integrateSaveAndDisplay () |
void | fixupBadBackgroundSubtraction (QString imagePattern, int nImgExposures, QString darkPath, int nDarkExposures) |
Public Slots inherited from QxrdDataProcessorBase | |
void | printMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
void | criticalMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
void | statusMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
void | shutdown () |
void | showMaskRange () |
void | hideMaskRange () |
void | showMaskRange (double min, double max) |
void | hideMaskRange (double min, double max) |
void | showMaskAll () |
void | hideMaskAll () |
void | invertMask () |
void | growMask () |
void | shrinkMask () |
void | maskCircle (QRectF pt) |
void | maskPolygon (QVector< QPointF > poly) |
void | measurePolygon (QVector< QPointF > poly) |
virtual void | slicePolygon (QVector< QPointF > poly)=0 |
void | printMeasuredPolygon (QVector< QPointF > poly) |
void | summarizeMeasuredPolygon (QVector< QPointF > poly) |
virtual void | integrateSaveAndDisplay ()=0 |
QString | pwd () const |
QStringList | ls () const |
QStringList | ls (QString pattern) const |
void | loadData (QString name) |
void | saveData (QString name, int canOverwrite=NoOverwrite) |
void | saveData (QcepDataObjectPtr object, QString name, int canOverwrite=NoOverwrite) |
void | loadDark (QString name) |
void | saveDark (QString name, int canOverwrite=NoOverwrite) |
void | loadMask (QString name) |
void | saveMask (QString name, int canOverwrite=NoOverwrite) |
void | loadBadPixels (QString name) |
void | saveBadPixels (QString name, int canOverwrite=NoOverwrite) |
void | loadGainMap (QString name) |
void | saveGainMap (QString name, int canOverwrite=NoOverwrite) |
void | saveCachedGeometry (QString name) |
void | saveCachedIntensity (QString name) |
void | clearDark () |
void | clearMask () |
void | clearBadPixels () |
void | clearGainMap () |
void | subtractDark () |
void | unsubtractDark () |
void | multiplyData (double scalar) |
void | offsetData (double offset) |
int | maskStackSize () |
int | maskStackPosition (int pos) |
void | newMaskStack () |
void | pushMaskStack (QcepMaskDataPtr mask=QcepMaskDataPtr()) |
void | popMaskStack (int amount=1) |
void | clearMaskStack () |
void | clearMaskStackTop () |
void | rollMaskStack (int amount) |
void | exchangeMaskStack (int pos) |
void | andMaskStack (int pos) |
void | orMaskStack (int pos) |
void | xorMaskStack (int pos) |
void | andNotMaskStack (int pos) |
void | orNotMaskStack (int pos) |
void | xorNotMaskStack (int pos) |
void | invertMaskStack (int pos) |
void | growMaskStack (int pos) |
void | shrinkMaskStack (int pos) |
void | hideMaskAllStack (int pos) |
void | showMaskAllStack (int pos) |
void | hideMaskRangeStack (int pos) |
void | showMaskRangeStack (int pos) |
void | findZingers () |
void | newImage (int ncols, int nrows) |
void | exponentialTail (double cx, double cy, double width, int oversample) |
void | reciprocalTail (double cx, double cy, double strength, int oversample) |
void | powderRing (double cx, double cy, double radius, double width, double strength, int oversample) |
void | ellipse (double cx, double cy, double a, double e, double ang, double width, double strength, int oversample) |
void | updateEstimatedProcessingTime () |
void | fileWriteTest (int dim, QString path) |
int | status (double delay) |
void | calculateROI () |
void | calculateHistogram () |
void | displayIntegratedData (QcepIntegratedDataPtr d) |
void | writeOutputScan (QcepIntegratedDataPtr d) |
void | newOutputScan (QString title) |
void | appendToOutputScan (double x, double y) |
void | plotOutputScan () |
void | saveOutputScan (QString fileName) |
QStringList | integrateRectangle (int x0, int y0, int x1, int y1) |
QString | existingOutputDirectory (QString dir, QString subdir) const |
QString | filePathInExperimentDirectory (QString name) const |
QString | filePathInDataDirectory (QString name) const |
QString | filePathInDarkOutputDirectory (QString name) const |
QString | filePathInRawOutputDirectory (QString name) const |
QString | filePathInSubtractedOutputDirectory (QString name) const |
QString | filePathInIntegratedOutputDirectory (QString name) const |
QString | experimentDirectory () const |
QString | dataDirectory () const |
QString | darkOutputDirectory () const |
QString | rawOutputDirectory () const |
QString | subtractedOutputDirectory () const |
QString | integratedOutputDirectory () const |
QcepDoubleImageDataPtr | data () const |
QcepDoubleImageDataPtr | darkImage () const |
QcepDoubleImageDataPtr | gainMap () const |
QcepDoubleImageDataPtr | badPixels () const |
QcepDoubleImageDataPtr | liveData () const |
QcepMaskDataPtr | mask () const |
QcepMaskDataPtr | overflow () const |
void | newData (QcepDoubleImageDataPtr image, QcepMaskDataPtr overflow) |
Public Slots inherited from QcepObject | |
virtual void | printLine (QString line) |
virtual void | printMessage (QString msg, QDateTime dt=QDateTime::currentDateTime()) const |
virtual void | criticalMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
virtual void | statusMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
virtual QString | settingsScript () |
QString | scriptValueLiteral (QVariant v) |
Private Slots | |
void | onCorrectedImageAvailable () |
void | onIntegratedDataAvailable () |
void | onROIDataAvailable () |
void | onHistogramDataAvailable () |
Definition at line 16 of file qxrddataprocessorthreaded.h.
QxrdDataProcessorThreaded::QxrdDataProcessorThreaded | ( | QcepSettingsSaverWPtr | saver, |
QxrdExperimentWPtr | doc, | ||
QxrdAcquisitionWPtr | acq, | ||
QxrdFileSaverWPtr | filesaver | ||
) |
Definition at line 18 of file qxrddataprocessorthreaded.cpp.
References m_CorrectedImages, m_HistogramData, m_IntegratedData, m_ROIData, onCorrectedImageAvailable(), onHistogramDataAvailable(), onIntegratedDataAvailable(), onROIDataAvailable(), and QxrdResultSerializerBase::resultAvailable().
|
virtual |
Definition at line 37 of file qxrddataprocessorthreaded.cpp.
void QxrdDataProcessorThreaded::acquiredDoubleImage | ( | QcepDoubleImageDataPtr | image, |
QcepMaskDataPtr | overflow | ||
) |
Definition at line 98 of file qxrddataprocessorthreaded.cpp.
References correctDoubleImage(), QxrdDataProcessorBase::darkImage(), QxrdResultSerializer< T >::enqueue(), m_CorrectedImages, QxrdDataProcessorBase::mask(), and QxrdDataProcessorBase::takeNextFreeImage().
Referenced by processData(), and processNormalizedFile().
void QxrdDataProcessorThreaded::acquiredDoubleImage | ( | QcepDoubleImageDataPtr | image, |
QcepMaskDataPtr | overflow, | ||
QcepDoubleList | v | ||
) |
Definition at line 110 of file qxrddataprocessorthreaded.cpp.
References correctDoubleImage(), QxrdDataProcessorBase::darkImage(), QxrdResultSerializer< T >::enqueue(), m_CorrectedImages, and QxrdDataProcessorBase::takeNextFreeImage().
void QxrdDataProcessorThreaded::acquiredInt16Image | ( | QcepInt16ImageDataPtr | image, |
QcepMaskDataPtr | overflow | ||
) |
Definition at line 80 of file qxrddataprocessorthreaded.cpp.
References correctInt16Image(), QxrdDataProcessorBase::darkImage(), QxrdResultSerializer< T >::enqueue(), m_CorrectedImages, QxrdDataProcessorBase::mask(), and QxrdDataProcessorBase::takeNextFreeImage().
void QxrdDataProcessorThreaded::acquiredInt32Image | ( | QcepInt32ImageDataPtr | image, |
QcepMaskDataPtr | overflow | ||
) |
Definition at line 89 of file qxrddataprocessorthreaded.cpp.
References correctInt32Image(), QxrdDataProcessorBase::darkImage(), QxrdResultSerializer< T >::enqueue(), m_CorrectedImages, QxrdDataProcessorBase::mask(), and QxrdDataProcessorBase::takeNextFreeImage().
|
slot |
Definition at line 383 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::darkImage(), QxrdDataProcessorBase::data(), QxrdDataProcessorBase::filePathInDataDirectory(), QcepObject::name, QxrdDataProcessorBase::newData(), QxrdDataProcessorBase::printMessage(), QcepImageDataBase::Raw16Data, QcepImageDataBase::Raw32Data, QxrdDataProcessorBase::statusMessage(), QxrdDataProcessorBase::subtractDarkImage(), and QxrdDataProcessorBase::takeNextFreeImage().
void QxrdDataProcessorThreaded::beginAcquisition | ( | int | isDark | ) |
Definition at line 41 of file qxrddataprocessorthreaded.cpp.
|
private |
Definition at line 309 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, and qcepDebug().
|
private |
Definition at line 288 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, and qcepDebug().
|
slot |
Definition at line 447 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::m_Integrator.
|
private |
Definition at line 174 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, and qcepDebug().
Referenced by acquiredDoubleImage().
|
private |
Definition at line 200 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, and qcepDebug().
|
private |
Definition at line 123 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, and qcepDebug().
Referenced by acquiredInt16Image().
|
private |
Definition at line 148 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, and qcepDebug().
Referenced by acquiredInt32Image().
|
slot |
Definition at line 662 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::darkImage(), QxrdDataProcessorBase::data(), QxrdDataProcessorBase::filePathInDataDirectory(), QcepObject::name, QxrdDataProcessorBase::printMessage(), QcepImageDataBase::Raw16Data, QcepImageDataBase::Raw32Data, QxrdDataProcessorBase::statusMessage(), QxrdDataProcessorBase::subtractDarkImage(), and QxrdDataProcessorBase::takeNextFreeImage().
|
protected |
Definition at line 329 of file qxrddataprocessorthreaded.cpp.
|
slot |
Definition at line 947 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::centerFinder().
|
slot |
Definition at line 904 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::dataDirectory(), QxrdDataProcessorBase::filePathInDataDirectory(), QxrdDataProcessorBase::m_FileSaver, QxrdDataProcessorBase::NoOverwrite, QxrdDataProcessorBase::printMessage(), and QxrdDataProcessorBase::takeNextFreeImage().
void QxrdDataProcessorThreaded::idleInt16Image | ( | QcepInt16ImageDataPtr | image, |
bool | liveView | ||
) |
Definition at line 45 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::darkImage(), DEBUG_PROCESS, QxrdDataProcessorBase::m_LiveData, QxrdDataProcessorBase::newData(), QxrdDataProcessorBase::printMessage(), qcepDebug(), QxrdDataProcessorBase::subtractDarkImage(), and QxrdDataProcessorBase::takeNextFreeImage().
|
slot |
Definition at line 452 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::filePathInDataDirectory(), QxrdDataProcessorBase::m_Integrator, QxrdDataProcessorBase::mask(), QcepObject::name, QxrdDataProcessorBase::printMessage(), QxrdDataProcessorBase::statusMessage(), and QxrdDataProcessorBase::takeNextFreeImage().
|
slot |
Definition at line 713 of file qxrddataprocessorthreaded.cpp.
References QcepAllocator::AlwaysAllocate, QxrdDataProcessorBase::centerFinder(), QxrdResultSerializer< T >::enqueue(), QxrdDataProcessorBase::filePathInDataDirectory(), integrateImage(), m_IntegratedData, QxrdDataProcessorBase::mask(), QcepAllocator::newDoubleImageAndIntegratedData(), QxrdDataProcessorBase::printMessage(), and QxrdDataProcessorBase::statusMessage().
|
private |
Definition at line 247 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, and qcepDebug().
Referenced by integrateData(), and onCorrectedImageAvailable().
|
slot |
Definition at line 888 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::data(), DEBUG_INTEGRATOR, QxrdResultSerializer< T >::enqueue(), QxrdDataProcessorBase::m_CenterFinder, m_IntegratedData, QxrdDataProcessorBase::m_Integrator, QxrdDataProcessorBase::mask(), QcepAllocator::newIntegratedData(), QxrdIntegrator::performIntegration(), QxrdDataProcessorBase::printMessage(), qcepDebug(), and QcepAllocator::WaitTillAvailable.
Referenced by QxrdWindow::initialize(), and QxrdIntegratorDialog::QxrdIntegratorDialog().
|
privateslot |
Definition at line 225 of file qxrddataprocessorthreaded.cpp.
References QcepAllocator::AlwaysAllocate, QxrdDataProcessorBase::calculateHistogram(), QxrdDataProcessorBase::calculateROI(), QxrdDataProcessorBase::centerFinder(), QxrdResultSerializer< T >::dequeue(), QxrdResultSerializer< T >::enqueue(), integrateImage(), m_CorrectedImages, m_HistogramData, m_IntegratedData, m_ROIData, and QcepAllocator::newIntegratedData().
Referenced by QxrdDataProcessorThreaded().
|
privateslot |
Definition at line 320 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, QxrdResultSerializer< T >::dequeue(), m_HistogramData, QxrdDataProcessorBase::printMessage(), and qcepDebug().
Referenced by QxrdDataProcessorThreaded().
|
privateslot |
Definition at line 269 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, QxrdResultSerializer< T >::dequeue(), QxrdDataProcessorBase::displayIntegratedData, m_IntegratedData, QxrdDataProcessorBase::m_Integrator, QxrdDataProcessorBase::printMessage(), qcepDebug(), and QxrdDataProcessorBase::writeOutputScan().
Referenced by QxrdDataProcessorThreaded().
|
privateslot |
Definition at line 299 of file qxrddataprocessorthreaded.cpp.
References DEBUG_PROCESS, QxrdResultSerializer< T >::dequeue(), m_ROIData, QxrdDataProcessorBase::printMessage(), and qcepDebug().
Referenced by QxrdDataProcessorThreaded().
|
slot |
Definition at line 743 of file qxrddataprocessorthreaded.cpp.
References acquiredDoubleImage(), QxrdDataProcessorBase::filePathInDataDirectory(), QxrdDataProcessorBase::printMessage(), QxrdDataProcessorBase::statusMessage(), and QxrdDataProcessorBase::takeNextFreeImage().
Referenced by processDataSequence().
|
slot |
Definition at line 766 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::printMessage(), and processData().
|
slot |
Definition at line 779 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::printMessage(), and processData().
|
slot |
Definition at line 790 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::printMessage(), and processData().
|
slot |
Definition at line 803 of file qxrddataprocessorthreaded.cpp.
Referenced by processNormalizedFile().
|
slot |
Definition at line 811 of file qxrddataprocessorthreaded.cpp.
References processNormalizedFile().
|
slot |
Definition at line 819 of file qxrddataprocessorthreaded.cpp.
References acquiredDoubleImage(), QxrdDataProcessorBase::filePathInDataDirectory(), QxrdDataProcessorBase::mask(), QxrdDataProcessorBase::printMessage(), and QxrdDataProcessorBase::takeNextFreeImage().
|
slot |
Definition at line 526 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::darkImage(), QxrdDataProcessorBase::filePathInDataDirectory(), QxrdDataProcessorBase::m_Experiment, QxrdDataProcessorBase::newData(), QxrdDataProcessorBase::printMessage(), QcepImageDataBase::Raw16Data, QcepImageDataBase::Raw32Data, QxrdDataProcessorBase::statusMessage(), QxrdDataProcessorBase::subtractDarkImage(), and QxrdDataProcessorBase::takeNextFreeImage().
|
slot |
Definition at line 482 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::data(), and QxrdDataProcessorBase::newData().
|
slot |
Definition at line 504 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::data(), and QxrdDataProcessorBase::newData().
|
slot |
Definition at line 477 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::m_Integrator.
|
slot |
Definition at line 840 of file qxrddataprocessorthreaded.cpp.
Referenced by setFileNormalization().
|
slot |
Definition at line 848 of file qxrddataprocessorthreaded.cpp.
References setFileNormalization().
|
slot |
Definition at line 856 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::filePathInDataDirectory(), QxrdDataProcessorBase::m_Experiment, QxrdDataProcessorBase::mask(), QxrdDataProcessorBase::printMessage(), and QxrdDataProcessorBase::takeNextFreeImage().
|
slot |
Definition at line 700 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::data(), QxrdDataProcessorBase::newData(), and QxrdDataProcessorBase::takeNextFreeImage().
|
slot |
Definition at line 877 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::data(), QxrdResultSerializer< T >::enqueue(), QxrdDataProcessorBase::m_Data, m_IntegratedData, QxrdDataProcessorBase::m_Integrator, QcepAllocator::newIntegratedData(), QxrdIntegrator::slicePolygon(), and QcepAllocator::WaitTillAvailable.
|
slot |
Definition at line 415 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::darkImage(), QxrdDataProcessorBase::data(), QxrdDataProcessorBase::filePathInDataDirectory(), QcepObject::name, QxrdDataProcessorBase::newData(), QxrdDataProcessorBase::printMessage(), QcepImageDataBase::Raw16Data, QcepImageDataBase::Raw32Data, QxrdDataProcessorBase::statusMessage(), QxrdDataProcessorBase::subtractDarkImage(), and QxrdDataProcessorBase::takeNextFreeImage().
|
slot |
Definition at line 340 of file qxrddataprocessorthreaded.cpp.
References QxrdDataProcessorBase::darkImage(), QxrdDataProcessorBase::filePathInDataDirectory(), QcepObject::name, QxrdDataProcessorBase::newData(), QxrdDataProcessorBase::printMessage(), QcepImageDataBase::Raw16Data, QcepImageDataBase::Raw32Data, QxrdDataProcessorBase::statusMessage(), QxrdDataProcessorBase::subtractDarkImage(), and QxrdDataProcessorBase::takeNextFreeImage().
|
private |
Definition at line 85 of file qxrddataprocessorthreaded.h.
Referenced by acquiredDoubleImage(), acquiredInt16Image(), acquiredInt32Image(), onCorrectedImageAvailable(), and QxrdDataProcessorThreaded().
|
private |
Definition at line 88 of file qxrddataprocessorthreaded.h.
Referenced by onCorrectedImageAvailable(), onHistogramDataAvailable(), and QxrdDataProcessorThreaded().
|
private |
Definition at line 86 of file qxrddataprocessorthreaded.h.
Referenced by integrateData(), integrateSaveAndDisplay(), onCorrectedImageAvailable(), onIntegratedDataAvailable(), QxrdDataProcessorThreaded(), and slicePolygon().
|
private |
Definition at line 87 of file qxrddataprocessorthreaded.h.
Referenced by onCorrectedImageAvailable(), onROIDataAvailable(), and QxrdDataProcessorThreaded().