13#ifndef ML_IMAGE_PROPERTIES_H
14#define ML_IMAGE_PROPERTIES_H
MLEXPORT ImageProperties()
MLdouble getMaxVoxelValue() const
Returns the assumed maximum value in data.
MLEXPORT bool operator!=(const ImageProperties &imageProperties) const
Returns true if *this and imageProperties differ; otherwise, it returns false.
MLEXPORT ImageProperties(ImageVector extent, MLDataType dataType, MLdouble minValue, MLdouble maxValue)
bool hasValidExtent() const
Returns whether the image has a valid extent (which means that all components are greater than 0).
MLDataType getDataType() const
Returns the data type of the image.
void setMaxVoxelValue(MLdouble maxval)
Sets assumed maximum value to maxval.
MLEXPORT void setImageExtent(const ImageVector &extent)
Sets the extent of the (sub)image.
virtual MLEXPORT void setDataType(MLDataType dataType)
Sets type of data to dataType.
MLEXPORT ImageProperties & operator=(const ImageProperties &imageProperties)
SubImageBox getBoxFromImageExtent() const
Returns the size of image as box with origin 0.
MLint getNumVoxels() const
virtual MLEXPORT ~ImageProperties()
Virtual destructor to suppress compiler warnings.
ImageVector getImageExtent() const
Returns the extent of the (sub)image.
void setMinVoxelValue(MLdouble minval)
Sets assumed minimum value to minval.
MLEXPORT ImageProperties(const ImageProperties &imageProperties)
MLdouble getMinVoxelValue() const
Returns the assumed minimum value in data.
MLEXPORT void setImageProperties(const ImageProperties &imageProperties)
Copies property parameters from another image property instance imageProperties.
MLEXPORT bool operator==(const ImageProperties &imageProperties) const
Returns true if *this and imageProperties are identical; otherwise, it returns false.
MLint getSizeInBytes() const
ComponentType compMul() const
MLEXPORT size_t MLSizeOf(MLDataType dataType)
#define MLEXPORT
Code it as import symbol if compiled elsewhere.
TSubImageBox< MLint > SubImageBox
Defines the standard SubImageBox type used in the ML. Its size varies with the size of the MLint type...
TImageVector< MLint > ImageVector
Defines the standard ImageVector type that is used by the ML for indexing and coordinates.