QXRD
0.11.16
|
#include <qcepmaskdata.h>
Public Slots | |
bool | maskValue (int x, int y) const |
void | setMaskValue (int x, int y, bool mval) |
QcepMaskDataPtr | copyMask (QcepObject *parent) |
void | setCircularMask () |
void | showMaskAll () |
void | hideMaskAll () |
void | invertMask () |
void | growMask () |
void | shrinkMask () |
void | andMask (QcepMaskDataPtr mask) |
void | orMask (QcepMaskDataPtr mask) |
void | xorMask (QcepMaskDataPtr mask) |
void | andNotMask (QcepMaskDataPtr mask) |
void | orNotMask (QcepMaskDataPtr mask) |
void | xorNotMask (QcepMaskDataPtr mask) |
void | maskCircle (double cx, double cy, double r, bool val) |
int | countMaskedPixels () const |
int | countUnmaskedPixels () const |
int | countOverflowPixels () const |
QString | summary () |
QImage | thumbnailImage () const |
QSize | thumbnailImageSize () const |
Public Slots inherited from QcepImageDataBase | |
virtual QString | description () const |
void | printMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
double | hValue (int n) const |
double | vValue (int n) const |
Public Slots inherited from QcepDataObject | |
virtual QString | description () const |
QString | metaTypeName (int id) const |
QString | pathName () const |
QcepDataGroupPtr | rootItem () |
virtual QcepDataGroupPtr | parentItem () const |
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) |
Public Member Functions | |
QcepMaskData (QcepSettingsSaverWPtr saver, int width, int height, int def, QcepObject *parent) | |
~QcepMaskData () | |
void | copyMaskTo (QcepMaskDataPtr dest) |
short * | mask () |
template<typename T > | |
void | setMaskRange (QSharedPointer< QcepImageData< T > > image, T min, T max, bool inRange, bool setTo) |
template<typename T > | |
void | showMaskRange (QSharedPointer< QcepImageData< T > > image, T min, T max) |
template<typename T > | |
void | hideMaskRange (QSharedPointer< QcepImageData< T > > image, T min, T max) |
Public Member Functions inherited from QcepImageData< short > | |
QcepImageData (QcepSettingsSaverWPtr saver, int width, int height, short def, QcepObject *parent) | |
virtual | ~QcepImageData () |
bool | readImage (QString filename) |
void | resize (int width, int height) |
void | clear () |
void | fill (double val) |
double | getImageData (int x, int y) const |
QVector< double > | getImageData (int x0, int y0, int x1, int y1) const |
void | setImageData (int x, int y, double v) |
virtual void | saveData (QString &name, QString filter, Overwrite canOverwrite=NoOverwrite) |
void | saveTIFFData (QString name) |
double | minValue () const |
double | maxValue () const |
QPointF | percentileRange (double lowpct, double highpct) |
double | sumInRectangle (QRectF rect) |
double | averageInRectangle (QRectF rect) |
double | minInRectangle (QRectF rect) |
double | maxInRectangle (QRectF rect) |
double | sumInEllipse (QRectF rect) |
double | averageInEllipse (QRectF rect) |
double | minInEllipse (QRectF rect) |
double | maxInEllipse (QRectF rect) |
double | sumInPeak (QRectF rect) |
void | subtractDark (const QSharedPointer< QcepImageData< T2 > > dark) |
void | calculateRange () |
void | calculateRangeInCircle () |
void | dumpPixels (int x0, int y0, int x1, int y1) |
short * | data () |
short | value (int x, int y) const |
short | value (double x, double y) const |
void | setValue (int x, int y, short val) |
void | addValue (int x, int y, short val) |
void | subtractValue (int x, int y, short val) |
void | multiplyValue (int x, int y, short val) |
void | divideValue (int x, int y, short val) |
short | defaultValue () const |
void | setDefaultValue (short def) |
QString | rawFileName () |
void | copyImage (QSharedPointer< QcepImageData< T2 > > dest) |
void | copyFrom (const QSharedPointer< QcepImageData< T2 > > img) |
void | accumulateImage (QSharedPointer< QcepImageData< T2 > > image) |
void | add (QSharedPointer< QcepImageData< T2 > > image) |
void | subtract (QSharedPointer< QcepImageData< T2 > > image) |
void | multiply (QSharedPointer< QcepImageData< T2 > > image) |
void | divide (QSharedPointer< QcepImageData< T2 > > image) |
void | setMask (QcepMaskDataPtr mask, QcepMaskDataPtr overflow) |
QcepMaskDataPtr | mask () const |
QcepMaskDataPtr | overflow () const |
double | correlate (QSharedPointer< QcepImageData< short > > image, int dx, int dy, int mx, int my) |
void | shiftImage (QSharedPointer< QcepImageData< short > > image, double dx, double dy) |
short | findMin () const |
short | findMax () const |
double | findAverage () const |
void | correctBadBackgroundSubtraction (QcepDoubleImageDataPtr dark, int nImgExposures, int nDarkExposures) |
Public Member Functions inherited from QcepImageDataBase | |
QcepImageDataBase (QcepSettingsSaverWPtr saver, int width, int height, int size, QcepObject *parent) | |
virtual | ~QcepImageDataBase () |
QString | get_DateString () const |
void | set_DateString (QString) |
QString | get_DataTypeName () const |
void | set_DataTypeName (QString) |
void | copyProperties (QcepImageDataBase *dest) |
void | copyPropertiesFrom (QSharedPointer< QcepImageDataBase > src) |
void | loadMetaData () |
void | saveMetaData () |
void | saveMetaData (QString name) |
void | saveTextData (QString name, QString sep, bool transp=false) |
void | setDefaultFileName (QString path) |
virtual QString | fileFormatFilterString () |
QString | fileFormatTIFF () |
QString | fileFormatTabDelimited () |
QString | fileFormatTransposedTabDelimited () |
QString | fileFormatCSV () |
QString | fileFormatTransposedCSV () |
QMutex * | mutex () |
Public Member Functions inherited from QcepDataObject | |
QcepDataObject (QcepSettingsSaverWPtr saver, QString name, int byteSize, QcepObject *parent) | |
virtual | ~QcepDataObject () |
QcepSettingsSaverWPtr | saver () |
virtual int | childCount () const |
virtual QcepDataObjectPtr | item (int n) |
virtual QcepDataObjectPtr | item (QString nm) |
virtual void | setParentItem (QcepDataGroupWPtr parent) |
virtual int | indexInParent () const |
virtual int | rowCount () const |
virtual int | columnCount () const |
virtual QVariant | columnData (int col) const |
Public Member Functions inherited from QcepObject | |
QcepObject (QString name, QcepObject *parent) | |
virtual | ~QcepObject () |
virtual void | writeSettings (QSettings *set, QString section) |
virtual void | readSettings (QSettings *set, QString section) |
QString | get_Name () const |
void | set_Name (QString name) |
Private Types | |
enum | { ThumbnailWidth = 24, ThumbnailHeight = 24 } |
Additional Inherited Members | |
Public Types inherited from QcepImageDataBase | |
enum | { UndefinedData, Raw16Data, Raw32Data, DarkData, MaskData, SubtractedData, GainData, BadPixelsData } |
Public Types inherited from QcepDataObject | |
enum | Overwrite { NoOverwrite, CanOverwrite } |
Signals inherited from QcepDataObject | |
void | dataObjectChanged () |
Static Public Member Functions inherited from QcepImageData< short > | |
static QSharedPointer< QcepImageData< short > > | newImage (QcepSettingsSaverWPtr saver, QString name, int width, int height, QcepObject *parent) |
static QScriptValue | toScriptValue (QScriptEngine *engine, const QSharedPointer< QcepImageData< short > > &data) |
static void | fromScriptValue (const QScriptValue &obj, QSharedPointer< QcepImageData< short > > &data) |
Static Public Member Functions inherited from QcepImageDataBase | |
static double | secondsSinceEpoch () |
Static Public Member Functions inherited from QcepDataObject | |
static QcepDataObjectPtr | newDataObject (QcepSettingsSaverWPtr saver, QString name, QcepObject *parent) |
static QScriptValue | toScriptValue (QScriptEngine *engine, const QcepDataObjectPtr &data) |
static void | fromScriptValue (const QScriptValue &obj, QcepDataObjectPtr &data) |
static int | allocatedObjects () |
static int | deletedObjects () |
Static Public Member Functions inherited from QcepObject | |
static int | allocatedObjects () |
static int | deletedObjects () |
static QSet< QcepObject * > | allocatedObjectsSet () |
static QString | addSlashes (QString str) |
Protected Member Functions inherited from QcepDataObject | |
void | mkPath (QString filePath) |
QString | uniqueFileName (QString name) |
Protected Attributes inherited from QcepImageData< short > | |
QVector< short > | m_Image |
short | m_MinValue |
short | m_MaxValue |
short | m_Default |
QcepMaskDataPtr | m_Mask |
QcepMaskDataPtr | m_Overflow |
Protected Attributes inherited from QcepImageDataBase | |
int | m_ImageCounter |
QcepSettingsSaverWPtr | m_Saver |
Properties inherited from QcepImageDataBase | |
int | width |
int | height |
double | hStart |
double | hStep |
double | vStart |
double | vStep |
QString | hLabel |
QString | hUnits |
QString | vLabel |
QString | vUnits |
int | dataType |
QString | dataTypeName |
QString | fileBase |
QString | title |
int | readoutMode |
double | exposureTime |
int | summedExposures |
int | imageSequenceNumber |
int | imageNumber |
int | phaseNumber |
int | nPhases |
QDateTime | dateTime |
QString | dateString |
double | timeStamp |
int | hBinning |
int | vBinning |
double | cameraGain |
int | triggered |
QString | userComment1 |
QString | userComment2 |
QString | userComment3 |
QString | userComment4 |
QcepDoubleList | normalization |
QcepDoubleList | extraInputs |
bool | used |
Properties inherited from QcepDataObject | |
QString | type |
quint64 | byteSize |
QString | creator |
QString | version |
QString | qtVersion |
QString | description |
QString | fileName |
int | objectSaved |
Properties inherited from QcepObject | |
QString | name |
Definition at line 7 of file qcepmaskdata.h.
|
private |
Enumerator | |
---|---|
ThumbnailWidth | |
ThumbnailHeight |
Definition at line 57 of file qcepmaskdata.h.
QcepMaskData::QcepMaskData | ( | QcepSettingsSaverWPtr | saver, |
int | width, | ||
int | height, | ||
int | def, | ||
QcepObject * | parent | ||
) |
Definition at line 4 of file qcepmaskdata.cpp.
QcepMaskData::~QcepMaskData | ( | ) |
Definition at line 10 of file qcepmaskdata.cpp.
|
slot |
Definition at line 143 of file qcepmaskdata.cpp.
References QcepImageDataBase::height, maskValue(), setMaskValue(), and QcepImageDataBase::width.
|
slot |
Definition at line 179 of file qcepmaskdata.cpp.
References QcepImageDataBase::height, maskValue(), setMaskValue(), and QcepImageDataBase::width.
|
slot |
Definition at line 94 of file qcepmaskdata.cpp.
References QcepAllocator::AlwaysAllocate, copyMaskTo(), and QcepAllocator::newMask().
Referenced by growMask(), and shrinkMask().
void QcepMaskData::copyMaskTo | ( | QcepMaskDataPtr | dest | ) |
Definition at line 19 of file qcepmaskdata.cpp.
References QcepImageDataBase::height, maskValue(), setMaskValue(), and QcepImageDataBase::width.
Referenced by copyMask().
|
slot |
|
slot |
Definition at line 276 of file qcepmaskdata.cpp.
References countUnmaskedPixels().
|
slot |
Definition at line 262 of file qcepmaskdata.cpp.
References QcepImageData< short >::m_Image.
Referenced by countOverflowPixels().
|
slot |
Definition at line 103 of file qcepmaskdata.cpp.
References copyMask(), QcepImageDataBase::height, maskValue(), setMaskValue(), and QcepImageDataBase::width.
|
slot |
template void QcepMaskData::hideMaskRange< double > | ( | QSharedPointer< QcepImageData< T > > | image, |
T | min, | ||
T | max | ||
) |
Definition at line 339 of file qcepmaskdata.cpp.
|
slot |
short * QcepMaskData::mask | ( | ) |
|
slot |
Definition at line 215 of file qcepmaskdata.cpp.
References setMaskValue().
|
slot |
Definition at line 35 of file qcepmaskdata.cpp.
References QcepImageData< short >::defaultValue(), and QcepImageData< short >::m_Image.
Referenced by andMask(), andNotMask(), copyMaskTo(), growMask(), orMask(), orNotMask(), shrinkMask(), thumbnailImage(), xorMask(), and xorNotMask().
|
slot |
Definition at line 155 of file qcepmaskdata.cpp.
References QcepImageDataBase::height, maskValue(), setMaskValue(), and QcepImageDataBase::width.
|
slot |
Definition at line 191 of file qcepmaskdata.cpp.
References QcepImageDataBase::height, maskValue(), setMaskValue(), and QcepImageDataBase::width.
|
slot |
Definition at line 51 of file qcepmaskdata.cpp.
References setMaskValue().
void QcepMaskData::setMaskRange | ( | QSharedPointer< QcepImageData< T > > | image, |
T | min, | ||
T | max, | ||
bool | inRange, | ||
bool | setTo | ||
) |
Definition at line 322 of file qcepmaskdata.cpp.
References QcepImageData< short >::setValue(), and QcepImageData< short >::value().
|
slot |
Definition at line 44 of file qcepmaskdata.cpp.
References QcepImageData< short >::m_Image.
Referenced by andMask(), andNotMask(), copyMaskTo(), growMask(), maskCircle(), orMask(), orNotMask(), setCircularMask(), shrinkMask(), xorMask(), and xorNotMask().
|
slot |
template void QcepMaskData::showMaskRange< double > | ( | QSharedPointer< QcepImageData< T > > | image, |
T | min, | ||
T | max | ||
) |
Definition at line 345 of file qcepmaskdata.cpp.
|
slot |
Definition at line 123 of file qcepmaskdata.cpp.
References copyMask(), QcepImageDataBase::height, maskValue(), setMaskValue(), and QcepImageDataBase::width.
|
slot |
|
slot |
Definition at line 281 of file qcepmaskdata.cpp.
References QcepImageDataBase::height, maskValue(), ThumbnailHeight, ThumbnailWidth, and QcepImageDataBase::width.
|
slot |
Definition at line 316 of file qcepmaskdata.cpp.
References ThumbnailHeight, and ThumbnailWidth.
|
slot |
Definition at line 167 of file qcepmaskdata.cpp.
References QcepImageDataBase::height, maskValue(), setMaskValue(), and QcepImageDataBase::width.
|
slot |
Definition at line 203 of file qcepmaskdata.cpp.
References QcepImageDataBase::height, maskValue(), setMaskValue(), and QcepImageDataBase::width.