Encapsulates all relevant information about a false color image.
More...
#include <ImageInfo.h>
Encapsulates all relevant information about a false color image.
◆ ImageInfo()
Constructor.
- Parameters
-
[in] | colorFormat | of the image. |
[in] | widthAlignment | of the image. |
◆ getChannels()
int optris::ImageInfo::getChannels |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of color channels.
- Returns
- number of color channels.
◆ getColorFormat()
ColorFormat optris::ImageInfo::getColorFormat |
( |
| ) |
const |
|
inlinenoexcept |
Returns the color format of the image.
- Returns
- color format of the image.
◆ getHeight()
int optris::ImageInfo::getHeight |
( |
| ) |
const |
|
inlinenoexcept |
Returns the image height in pixels.
- Returns
- image height in pixels.
◆ getOffsetBlue()
int optris::ImageInfo::getOffsetBlue |
( |
| ) |
const |
|
inlinenoexcept |
Returns the offset of the blue color byte.
- Returns
- offset of the blue color byte.
◆ getOffsetGreen()
int optris::ImageInfo::getOffsetGreen |
( |
| ) |
const |
|
inlinenoexcept |
Returns the offset of the green color byte.
- Returns
- offset of the green color byte.
◆ getOffsetRed()
int optris::ImageInfo::getOffsetRed |
( |
| ) |
const |
|
inlinenoexcept |
Returns the offset of the red color byte.
- Returns
- offset of the red color byte.
◆ getSize()
int optris::ImageInfo::getSize |
( |
| ) |
const |
|
inlinenoexcept |
Returns the image size in pixels.
- Returns
- image size in pixels.
◆ getStride()
int optris::ImageInfo::getStride |
( |
| ) |
const |
|
inlinenoexcept |
Returns the image stride in bytes.
The stride is the image width in bytes including potential padding.
- Returns
- image stride in bytes.
◆ getWidth()
int optris::ImageInfo::getWidth |
( |
| ) |
const |
|
inlinenoexcept |
Returns the image width in pixels.
- Returns
- image width in pixels.
◆ getWidthAlignment()
Returns the width alignment of the image.
- Returns
- width alignment of the image.
◆ getWidthPaddingInBytes()
int optris::ImageInfo::getWidthPaddingInBytes |
( |
| ) |
const |
|
inlinenoexcept |
Returns width padding in bytes.
- Returns
- width padding in bytes.
◆ resize()
OTC_SDK_API int optris::ImageInfo::resize |
( |
int | width, |
|
|
int | height ) |
Resizes the image to the given dimension.
- Returns
- resulting image size in bytes.
The documentation for this class was generated from the following file: