Namespace for collection of color space conversion functions from the Foundation package. More...
Classes | |
class | ColorTwistMatrix |
Matrix defining color transformations. More... | |
Functions | |
std::unique_ptr< Image > | ConvertToRGB (const Image &image, ColorModel guessToColorModel=ColorModel::RGB) |
Convert the input image to RGB. More... | |
std::unique_ptr< Image > | ConvertToYUV (const Image &image) |
Convert the input image to YUV. More... | |
std::unique_ptr< Image > | ConvertToYCbCr (const Image &image) |
Convert the input image to YCbCr. More... | |
std::unique_ptr< Image > | ConvertToCieXYZ (const Image &image) |
Convert the input image to CIE XYZ. More... | |
std::unique_ptr< Image > | ConvertToCieLUV (const Image &image) |
Convert the input image to CIE LUV. More... | |
std::unique_ptr< Image > | ConvertToCieLab16 (const Image &image) |
Convert the input image to CIE Lab with DataType::Int16BppUnsigned() for better precision. More... | |
std::unique_ptr< Image > | ConvertToCieLab8 (const Image &image) |
Convert the input image to CIE Lab with DataType::Int8BppUnsigned(). More... | |
std::unique_ptr< Image > | ConvertToYCC (const Image &image) |
Convert the input image to YCC. More... | |
std::unique_ptr< Image > | ConvertToHLS (const Image &image) |
Convert the input image to HLS. More... | |
std::unique_ptr< Image > | ConvertToHSV (const Image &image) |
Convert the input image to HSV. More... | |
std::unique_ptr< Image > | ConvertToMono (const Image &image) |
Convert the input image to mono. More... | |
std::unique_ptr< Image > | ConvertToMono (const Image &image, double weightR, double weightG, double weightB) |
Convert the input image to mono. More... | |
template<class RANGE > | |
TypedRange< std::unique_ptr< Image >, int, RANGE >::type | SwapChannels (const Image &image, const RANGE &newArrangement) |
Create a new image by rearranging the planes of the input image. More... | |
std::unique_ptr< Image > | TwistColors (const Image &image, ColorTwistMatrix matrix) |
Apply the color twist matrix to the input image. More... | |
Namespace for collection of color space conversion functions from the Foundation package.
|
inline |
Convert the input image to CIE Lab with DataType::Int16BppUnsigned() for better precision.
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Convert the input image to CIE Lab with DataType::Int8BppUnsigned().
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Convert the input image to CIE LUV.
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Convert the input image to CIE XYZ.
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Convert the input image to HLS.
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Convert the input image to HSV.
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Convert the input image to mono.
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Convert the input image to mono.
[in] | image | Input image. |
[in] | weightR | Weight (multiplier) for the red channel. |
[in] | weightG | Weight (multiplier) for the green channel. |
[in] | weightB | Weight (multiplier) for the blue channel. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly. All Coefficients must be >= 0 and satisfy the condition weightR + weightG + weightB <= 1.
|
inline |
Convert the input image to RGB.
[in] | image | Input image. |
[in] | guessToColorModel | Input color model to use, if image's color model is ColorModel::RGBGuess. |
Any | exception derived from std::exception including CvbException. |
If the color model is ColorModel::RGBGuess, then guessToColorModel is used. With that you can build your own images consisting of the desired color space and convert it to RGB.
|
inline |
Convert the input image to YCbCr.
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Convert the input image to YCC.
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Convert the input image to YUV.
[in] | image | Input image. |
Any | exception derived from std::exception including CvbException. |
If the input image is something other than RGB, an internal conversion to RGB happens, increasing the processing time accordingly.
|
inline |
Create a new image by rearranging the planes of the input image.
[in] | image | Input image. |
[in] | newArrangement | Array that defines the new plane arrangement. For example for an RGB image, the array [2,1,0] would cause the image planes to be rearranged to BGR plane order. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Apply the color twist matrix to the input image.
[in] | image | Image to apply the matrix to. |
[in] | matrix | Matrix defining the color twist transformation. |
Any | exception derived from std::exception including CvbException. |