You are here: Start » Image » Image Color Spaces » RgbToHsv
RgbToHsv
Header: | AVL.h |
---|---|
Namespace: | avl |
Converts color space from Red-Green-Blue to Hue-Saturation-Value.
Applications: Color analysis is easier in the HSV color space than in RGB.
Syntax
void avl::RgbToHsv ( const avl::Image& inRgbImage, avl::Image& outHsvImage )
Parameters
Requirements
For input inRgbImage only pixel formats are supported: 3⨯uint8.
Read more about pixel formats in Image documentation.
Hardware Acceleration
This operation is optimized for AVX2 technology for pixels of type: UINT8.
This operation is optimized for SSE4 technology for pixels of type: UINT8.
This operation is optimized for NEON technology for pixels of type: UINT8.
This operation supports automatic parallelization for multicore and multiprocessor systems.
This operation supports processing on OpenCL compatible device.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not a 3-channel and 8-bit image in RgbToHsv. |
DomainError | Not supported inRgbImage pixel format in RgbToHsv. Supported formats: 3xUInt8. |