|
imageBaseType | imageFormatBaseType (imageFormat format) |
| Get the base type of an image format (uint8 or float). More...
|
|
const char * | imageFormatToStr (imageFormat format) |
| Convert an imageFormat enum to a string. More...
|
|
imageFormat | imageFormatFromStr (const char *str) |
| Parse an imageFormat enum from a string. More...
|
|
size_t | imageFormatChannels (imageFormat format) |
| Get the number of image channels in each format. More...
|
|
size_t | imageFormatDepth (imageFormat format) |
| Get the pixel bit depth (in bits, not bytes). More...
|
|
size_t | imageFormatSize (imageFormat format, size_t width, size_t height) |
| Compute the size of an image (in bytes) More...
|
|
bool | imageFormatIsRGB (imageFormat format) |
| Check if an image format is one of the RGB/RGBA formats. More...
|
|
bool | imageFormatIsBGR (imageFormat format) |
| Check if an image format is one of the BGR/BGRA formats. More...
|
|
bool | imageFormatIsYUV (imageFormat format) |
| Check if an image format is one of the YUV formats. More...
|
|
bool | imageFormatIsGray (imageFormat format) |
| Check if an image format is one of the grayscale formats. More...
|
|
bool | imageFormatIsBayer (imageFormat format) |
| Check if an image format is one of the Bayer formats. More...
|
|
void | imageFormatErrorMsg (const char *module, const char *function, imageFormat format) |
| Print out an error message that the image format isn't supported. More...
|
|
|
template<typename T > |
imageFormat | imageFormatFromType () |
|
template<> |
imageFormat | imageFormatFromType< uchar3 > () |
|
template<> |
imageFormat | imageFormatFromType< uchar4 > () |
|
template<> |
imageFormat | imageFormatFromType< float3 > () |
|
template<> |
imageFormat | imageFormatFromType< float4 > () |
|