![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
lightness computation for an input color image More...
| IPSDKIPLCOLOR_API void | ipsdk::imaproc::color::lightnessImg (const image::ImageConstPtr &pInColorImg, const image::ImagePtr &pOutLightImg) |
| wrapper function for lightness computation from an input RGB color image More... | |
| IPSDKIPLCOLOR_API image::ImagePtr | ipsdk::imaproc::color::lightnessImg (const image::ImageConstPtr &pInColorImg) |
| wrapper function for lightness computation from an input RGB color image More... | |
| IPSDKIPLCOLOR_API void | ipsdk::imaproc::color::lightnessImg (const image::ImageConstPtr &pInColorImg, const ipsdk::imaproc::attr::eLightnessType &lightnessType, const image::ImagePtr &pOutLightImg) |
| wrapper function for lightness computation from an input RGB color image More... | |
| IPSDKIPLCOLOR_API image::ImagePtr | ipsdk::imaproc::color::lightnessImg (const image::ImageConstPtr &pInColorImg, const ipsdk::imaproc::attr::eLightnessType &lightnessType) |
| wrapper function for lightness computation from an input RGB color image More... | |
lightness computation for an input color image
The algorithm converts a color image to a grey level one according to one of the three possible types: Average, Lightness or Luminance. The default value is Average.
Assuming that
is the
pixel in the channel
, we can define the three different ways to calculate the lightness.
For the Average type, the output image values are given by:
For the Lightness type, the output image values are given by:
The Luminance type can only be calculated for images with three channels and is assumed to be RGB. The output image values are given by:
Input and output images must have same size (but color size).
Here is an example of an average ligthness operation applied to a 8-bits RGB color image:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InColorImg | [Input] color image for processing operation | X |
| ipsdk::imaproc::attr::InLightnessType | [Input] Type of conversion to obtain a grey level image from a color image | X |
| ipsdk::imaproc::attr::OutLightImg | [Output] lightness image | duplicateGreyInOut (_pOutLightImg, _pInColorImg) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_XYZT,_pInColorImg,_pOutLightImg) &&
ipsdk::imaproc::matchBufferType (_pInColorImg,_pOutLightImg)
| IPSDKIPLCOLOR_API void ipsdk::imaproc::color::lightnessImg | ( | const image::ImageConstPtr & | pInColorImg, |
| const image::ImagePtr & | pOutLightImg | ||
| ) |
wrapper function for lightness computation from an input RGB color image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLCOLOR_API image::ImagePtr ipsdk::imaproc::color::lightnessImg | ( | const image::ImageConstPtr & | pInColorImg | ) |
wrapper function for lightness computation from an input RGB color image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLCOLOR_API void ipsdk::imaproc::color::lightnessImg | ( | const image::ImageConstPtr & | pInColorImg, |
| const ipsdk::imaproc::attr::eLightnessType & | lightnessType, | ||
| const image::ImagePtr & | pOutLightImg | ||
| ) |
wrapper function for lightness computation from an input RGB color image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLCOLOR_API image::ImagePtr ipsdk::imaproc::color::lightnessImg | ( | const image::ImageConstPtr & | pInColorImg, |
| const ipsdk::imaproc::attr::eLightnessType & | lightnessType | ||
| ) |
wrapper function for lightness computation from an input RGB color image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14