This property describes the way the axes must be interpreted (IMAGE, VOLUME, SEQUENCE...) and also the composition of the image by providing :
More...
#include <iolink/property/ImageInfoProperty.h>
This property describes the way the axes must be interpreted (IMAGE, VOLUME, SEQUENCE...) and also the composition of the image by providing :
- its interpretation (GRAYSCALE, RGB, ...)
- the presence of a alpha channel
- the bit depth where data is stored
- the range of value of the data (It is actually the min and max values that are stored in the image)
◆ ImageInfoProperty() [1/4]
Constructor.
- Parameters
-
axesInterpretation | Axes interpretation for the image |
interpretation | The image interpretation |
hasAlpha | Indicate if an Alpha channel is present |
bitDepth | Bit count effectively used to store each component of the pixel |
valueRange | Range of value of the component |
◆ ImageInfoProperty() [2/4]
Short constructor using the given data type standard properties to initialize with default values.
- Parameters
-
axesInterpretation | Axes interpretation for the image |
interpretation | The image interpretation |
hasAlpha | Indicate if an Alpha channel is present |
dataType | DataType to use as reference to initialize member data. |
◆ ImageInfoProperty() [3/4]
iolink::ImageInfoProperty::ImageInfoProperty |
( |
DataType |
dataType | ) |
|
|
explicit |
Shorter constructor using the given data type standard properties to initialize.
BitDepth and value range is initialized thanks to dataType. hasAlpha property is set to False. Other properties are set to UNKNOWN.
- Parameters
-
dataType | DataType to use as reference to initialize member data. |
◆ ImageInfoProperty() [4/4]
iolink::ImageInfoProperty::ImageInfoProperty |
( |
ImageType |
axesInterpretation, |
|
|
DataType |
dataType |
|
) |
| |
Shorter constructor using the given Image Type and Data type standard properties hasAlpha property is set to False.
Image interpretation is set to UNKNOWN.
- Parameters
-
axesInterpretation | Axes interpretation for the image |
dataType | DataType to use as reference to initialize member data. |
◆ axesInterpretation()
ImageType iolink::ImageInfoProperty::axesInterpretation |
( |
| ) |
const |
◆ bitDepth()
size_t iolink::ImageInfoProperty::bitDepth |
( |
| ) |
const |
The bit depth of pixel components.
For example, data can be stored on 16 bits, but only 12 of those are used, so the image view will have a data type of UINT16, but its real bit depth will be 12.
◆ channelCount()
Method which gives you the number of channels for one pixel in a specific ImageInterpretation.
- Parameters
-
interpretation | ImageInterpretation for which we want to know the channel count |
- Returns
- the channel count corresponding to the given ImageInterpretation
◆ setAxesInterpretation()
void iolink::ImageInfoProperty::setAxesInterpretation |
( |
ImageType |
type | ) |
|
Set the image's axes interpretation.
- Parameters
-
The documentation for this class was generated from the following file: