![]() |
IDS peak ICV v1.0.0
|
#include <peak_common/types/peak_common_pixel_format.hpp>
Public Member Functions | |
| PixelFormatInfo (peak::common::PixelFormat pixelFormat) | |
| Constructs a PixelFormatInfo object for the specified pixel format. | |
| PixelFormatInfo (const std::string &name) | |
| Constructs a PixelFormatInfo object from the name of a pixel format. | |
| template<typename T = size_t> | |
| T | GetMinimumValuePerChannel () const |
| Returns the minimum possible value per channel for the pixel format. | |
| template<typename T = size_t> | |
| T | GetMaximumValuePerChannel () const |
| Returns the maximum possible value per channel for the pixel format. | |
| size_t | GetStorageBitsPerPixel () const |
| Returns the total number of bits used per pixel for storage. | |
| size_t | GetStorageBitsPerChannel () const |
| Returns the number of bits used per channel for storage. | |
| std::string | GetName () const |
| Returns the human-readable name of the pixel format. | |
| std::vector< Channel > | GetChannels () const |
| Returns the list of channels in the pixel format. | |
| size_t | GetAllocatedBitsPerPixel () const |
| Returns the number of allocated bits per pixel. | |
| bool | HasIntensityChannel () const |
| Checks whether the pixel format includes an intensity channel. | |
| size_t | GetChannelIndex (Channel channel) const |
| Returns the index of a specific channel within the pixel format. | |
| size_t | GetNumberOfChannels () const |
| Returns the total number of channels in the pixel format. | |
| bool | IsSingleChannel () const |
| Checks whether the pixel format contains only a single channel. | |
| bool | HasChannel (Channel channel) const |
| Checks whether a specific channel is present in the pixel format. | |
| peak::common::PixelFormat | GetPixelFormat () const |
| Returns the underlying pixel format enumeration value. | |
| size_t | GetSizeInBytes (const Size &size) const |
| Calculates the memory size in bytes for a given image size. | |
| template<> | |
| float | GetMaximumValuePerChannel () const |
| Returns the maximum representable value per channel for floating-point pixel formats. | |
| template<> | |
| size_t | GetMaximumValuePerChannel () const |
| Returns the maximum representable value per channel for integer pixel formats. | |
| template<> | |
| float | GetMinimumValuePerChannel () const |
| Returns the minimum representable value per channel for floating-point pixel formats. | |
| template<> | |
| size_t | GetMinimumValuePerChannel () const |
| Returns the minimum representable value per channel for integer pixel formats. | |
Provides information and utility functions for pixel formats.
The PixelFormatInfo class offers methods to query characteristics of specific pixel formats, such as value ranges, storage sizes, and channel configurations.
Definition at line 140 of file peak_common_pixel_format.hpp.
|
inlineexplicit |
Constructs a PixelFormatInfo object for the specified pixel format.
| pixelFormat | The pixel format to describe. |
Definition at line 1616 of file peak_common_pixel_format.hpp.
|
inlineexplicit |
Constructs a PixelFormatInfo object from the name of a pixel format.
| name | The name of the pixel format. |
Definition at line 1620 of file peak_common_pixel_format.hpp.
|
inline |
Returns the number of allocated bits per pixel.
Definition at line 2566 of file peak_common_pixel_format.hpp.
|
inline |
Returns the index of a specific channel within the pixel format.
| channel | The channel to locate. |
Definition at line 2700 of file peak_common_pixel_format.hpp.
|
inline |
Returns the list of channels in the pixel format.
Definition at line 2437 of file peak_common_pixel_format.hpp.
| T GetMaximumValuePerChannel | ( | ) | const |
Returns the maximum possible value per channel for the pixel format.
| T | The value type (default is size_t). |
|
inline |
Returns the maximum representable value per channel for floating-point pixel formats.
This specialization of GetMaximumValuePerChannel for float retrieves the predefined maximum value per channel for supported 32-bit floating-point pixel formats.
float.| InvalidParameterException | if the current pixel format is not a 32-bit float type. In such cases, use size_t as the template argument instead. |
Definition at line 1706 of file peak_common_pixel_format.hpp.
|
inline |
Returns the maximum representable value per channel for integer pixel formats.
This specialization of GetMaximumValuePerChannel for size_t retrieves the predefined maximum value per channel for supported integer-based pixel formats.
size_t.| InvalidParameterException | if the current pixel format is not an integer type. |
Definition at line 1733 of file peak_common_pixel_format.hpp.
| T GetMinimumValuePerChannel | ( | ) | const |
Returns the minimum possible value per channel for the pixel format.
| T | The value type (default is size_t). |
|
inline |
Returns the minimum representable value per channel for floating-point pixel formats.
This specialization of GetMinimumValuePerChannel for float retrieves the predefined minimum value per channel for supported 32-bit floating-point pixel formats.
float.| InvalidParameterException | if the current pixel format is not a 32-bit float type. In such cases, use size_t as the template argument instead. |
Definition at line 1885 of file peak_common_pixel_format.hpp.
|
inline |
Returns the minimum representable value per channel for integer pixel formats.
This specialization of GetMinimumValuePerChannel for size_t retrieves the predefined minimum value per channel for supported integer-based pixel formats.
size_t.| InvalidParameterException | if the current pixel format is not an integer type. |
Definition at line 1912 of file peak_common_pixel_format.hpp.
|
inline |
Returns the human-readable name of the pixel format.
Definition at line 2308 of file peak_common_pixel_format.hpp.
|
inline |
Returns the total number of channels in the pixel format.
Definition at line 2712 of file peak_common_pixel_format.hpp.
|
inline |
Returns the underlying pixel format enumeration value.
Definition at line 2728 of file peak_common_pixel_format.hpp.
|
inline |
Calculates the memory size in bytes for a given image size.
| size | The size of the image. |
Definition at line 2733 of file peak_common_pixel_format.hpp.
|
inline |
Returns the number of bits used per channel for storage.
Definition at line 2179 of file peak_common_pixel_format.hpp.
|
inline |
Returns the total number of bits used per pixel for storage.
Definition at line 2050 of file peak_common_pixel_format.hpp.
|
inline |
Checks whether a specific channel is present in the pixel format.
| channel | The channel to check for. |
Definition at line 2722 of file peak_common_pixel_format.hpp.
|
inline |
Checks whether the pixel format includes an intensity channel.
Definition at line 2695 of file peak_common_pixel_format.hpp.
|
inline |
Checks whether the pixel format contains only a single channel.
Definition at line 2717 of file peak_common_pixel_format.hpp.