MeVisLab Toolbox Reference
|
This class represents basic image properties: More...
#include <mlImageProperties.h>
Public Member Functions | |
Construction, copying and initialization of ImageProperties | |
MLEXPORT | ImageProperties () |
Constructor. | |
virtual MLEXPORT | ~ImageProperties () |
Virtual destructor to suppress compiler warnings. | |
MLEXPORT | ImageProperties (ImageVector extent, MLDataType dataType, MLdouble minValue, MLdouble maxValue) |
Constructor to set extent to extent , data type to dataType , minimum value to minValue and maximum value to maxValue . | |
MLEXPORT | ImageProperties (const ImageProperties &imageProperties) |
Copy constructor from an existing imageProperties object to get an identical copy. | |
MLEXPORT ImageProperties & | operator= (const ImageProperties &imageProperties) |
Assignment operator from an existing imageProperties object to get an identical copy. | |
MLEXPORT void | setImageProperties (const ImageProperties &imageProperties) |
Copy property parameters from another image property instance imageProperties . | |
Comparison. | |
MLEXPORT bool | operator== (const ImageProperties &imageProperties) const |
Returns true if *this and imageProperties are identical, otherwise false. | |
MLEXPORT bool | operator!= (const ImageProperties &imageProperties) const |
Returns true if *this and imageProperties differ, otherwise false. | |
Set/Get image size/extents etc. | |
MLEXPORT void | setImageExtent (const ImageVector &extent) |
Sets the extent of the (sub)image. | |
ImageVector | getImageExtent () const |
Returns the extent of the (sub)image. | |
SubImageBox | getBoxFromImageExtent () const |
Returns size of image as box with origin 0. | |
bool | hasValidExtent () const |
Returns if the image has a valid extent (which means that all components are greater than 0). | |
MLint | getNumVoxels () const |
Returns number of voxels in (sub)image. | |
MLint | getSizeInBytes () const |
Returns number of potential bytes in (sub)image. | |
Set/Get data type. | |
virtual MLEXPORT void | setDataType (MLDataType dataType) |
Sets type of data to dataType . | |
MLDataType | getDataType () const |
Returns the data type of the image. | |
Set minimum and maximum data value. | |
void | setMinVoxelValue (MLdouble minval) |
Sets assumed minimum value to minval. | |
MLdouble | getMinVoxelValue () const |
Returns the assumed minimum value in data. | |
void | setMaxVoxelValue (MLdouble maxval) |
Sets assumed maximum value to maxval. | |
MLdouble | getMaxVoxelValue () const |
Returns the assumed maximum value in data. | |
This class represents basic image properties:
The following image properties are available in this class:
Definition at line 42 of file mlImageProperties.h.
MLEXPORT ml::ImageProperties::ImageProperties | ( | ) |
Constructor.
Sets data type to MLuint8, extents to (0,...,0), minimum voxel value to 0, maximum voxel value to 0.
Virtual destructor to suppress compiler warnings.
MLEXPORT ml::ImageProperties::ImageProperties | ( | ImageVector | extent, |
MLDataType | dataType, | ||
MLdouble | minValue, | ||
MLdouble | maxValue ) |
Constructor to set extent to extent
, data type to dataType
, minimum value to minValue
and maximum value to maxValue
.
MLEXPORT ml::ImageProperties::ImageProperties | ( | const ImageProperties & | imageProperties | ) |
Copy constructor from an existing imageProperties
object to get an identical copy.
|
inline |
Returns size of image as box with origin 0.
Definition at line 98 of file mlImageProperties.h.
Referenced by ml::determineImageFilterInRegionTN().
|
inline |
Returns the data type of the image.
Definition at line 122 of file mlImageProperties.h.
|
inline |
Returns the extent of the (sub)image.
Definition at line 95 of file mlImageProperties.h.
Referenced by ml::ClusterHandler< CLUSTERVOXELTYPE, DerivedAlgorithm >::calculateOutputImageProperties(), and ml::determineImageFilterOutImageRegionTN().
|
inline |
Returns the assumed maximum value in data.
Definition at line 136 of file mlImageProperties.h.
|
inline |
Returns the assumed minimum value in data.
Definition at line 132 of file mlImageProperties.h.
|
inline |
Returns number of voxels in (sub)image.
Note that it could become larger than 2^32 even on 32 bit systems. It will never be smaller than 0; the signed return type is used for safer signed arithmetics.
Definition at line 107 of file mlImageProperties.h.
References mlrange_cast().
|
inline |
Returns number of potential bytes in (sub)image.
Note that it could become larger than 2^32 even on 32 bit systems. It will never be smaller than 0; the signed return type is used for safer signed arithmetics.
Definition at line 111 of file mlImageProperties.h.
References MLSizeOf().
|
inline |
Returns if the image has a valid extent (which means that all components are greater than 0).
Definition at line 101 of file mlImageProperties.h.
MLEXPORT bool ml::ImageProperties::operator!= | ( | const ImageProperties & | imageProperties | ) | const |
Returns true if *this and imageProperties
differ, otherwise false.
MLEXPORT ImageProperties & ml::ImageProperties::operator= | ( | const ImageProperties & | imageProperties | ) |
Assignment operator from an existing imageProperties
object to get an identical copy.
MLEXPORT bool ml::ImageProperties::operator== | ( | const ImageProperties & | imageProperties | ) | const |
Returns true if *this and imageProperties
are identical, otherwise false.
|
virtual |
Sets type of data to dataType
.
Reimplemented in ml::PagedImage.
|
inline |
Sets the extent
of the (sub)image.
Definition at line 92 of file mlImageProperties.h.
Referenced by ml::PagedImage::setImageExtent().
MLEXPORT void ml::ImageProperties::setImageProperties | ( | const ImageProperties & | imageProperties | ) |
Copy property parameters from another image property instance imageProperties
.
Sets assumed maximum value to maxval.
Definition at line 134 of file mlImageProperties.h.
References mlrange_cast().
Sets assumed minimum value to minval.
Definition at line 130 of file mlImageProperties.h.
References mlrange_cast().