![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
application of a color map on each 2D plan of an input grey-levels image More...
application of a color map on each 2D plan of an input grey-levels image
This algorithm applies a given color map to each 2D plan of an input grey-levels image with voxels values encoded with unsigned integers, in order to make the visualization of the input image easier for the user.
There are mainly two types of color maps that can be used by the algorithm: the cyclic color maps and the smooth color maps.
In cyclic color maps, the table defined in the color map is a collection of Rgb data items, that are triplets of (R, G, B) normalized floating values, between 0 and 1, that define the color to apply. If the number of colors defined in the map is lower than the number of intensities in the input image, the colors to apply to intensities greater than the map size are automatically deduced as the repetition of the table elements. These color maps are typically used to visualize label images, for instance. Depending on the cycle mode chosen by the user, the first color of the map may or may not belong to the cycle. It may be useful in label images where the 0-value is reserved for the background, for instance (in that case, it may be desirable that a specific color may be dedicated for that background).
To sum it up, given an input image (2D here, for the example) and a specific cyclic color map, values of the color output image will equal to:
The user can specify its own customized color map, but IPSDK also provides some predefined color maps, for both types of maps:
Here are different examples of predefined cyclic color maps applied to a label image:
And here are different examples of predefined smooth color maps applied to Lena grey levels image:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InGreyUIntImg | [Input] grey levels image (data contained in image buffer are unsigned integers) | X |
| ipsdk::imaproc::attr::InOptPISmoothRgbColorMap | [In Optional] Plan indexed collection of smooth RGB color maps | X |
| ipsdk::imaproc::attr::InOptPICyclicRgbColorMap | [In Optional] Plan indexed collection of cyclic RGB color maps | X |
| ipsdk::imaproc::attr::OutRgbUInt8Img | [Output] Rgb color uint8 image for processing operation | ipsdk::imaproc::duplicateRgbInOut (_pOutRgbUInt8Img, _pInGreyUIntImg, ipsdk::image::eImageBufferType::eIBT_UInt8) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_XYZT,_pInGreyUIntImg,_pOutRgbUInt8Img) &&
((ipsdk::processor::isSet (_pInOptPISmoothRgbColorMap) &&
ipsdk::processor::Not (
ipsdk::processor::isSet (_pInOptPICyclicRgbColorMap))) ||
(ipsdk::processor::isSet (_pInOptPICyclicRgbColorMap) &&
ipsdk::processor::Not (
ipsdk::processor::isSet (_pInOptPISmoothRgbColorMap)))) &&
ipsdk::processor::If (
ipsdk::processor::isSet (_pInOptPISmoothRgbColorMap),
ipsdk::imaproc::isGrey (_pInOptPISmoothRgbColorMap) &&
((ipsdk::imaproc::is2d (_pInOptPISmoothRgbColorMap) &&
ipsdk::imaproc::isSingle (_pInOptPISmoothRgbColorMap)) ||
ipsdk::imaproc::matchImagePlans (_pInOptPISmoothRgbColorMap,_pInGreyUIntImg,eImagePlansMatchPolicy::eIPMP_ZT)),
ipsdk::imaproc::isGrey (_pInOptPICyclicRgbColorMap) &&
((ipsdk::imaproc::is2d (_pInOptPICyclicRgbColorMap) &&
ipsdk::imaproc::isSingle (_pInOptPICyclicRgbColorMap)) ||
ipsdk::imaproc::matchImagePlans (_pInOptPICyclicRgbColorMap,_pInGreyUIntImg,eImagePlansMatchPolicy::eIPMP_ZT)))
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr ipsdk::imaproc::itrans::colorMapping2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::SmoothRgbColorMapConstPtr & | pColorMap | ||
| ) |
wrapper function for application of a color map on an input grey image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr ipsdk::imaproc::itrans::colorMapping2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::CyclicRgbColorMapConstPtr & | pColorMap | ||
| ) |
wrapper function for application of a color map on an input grey image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr ipsdk::imaproc::itrans::colorMapping2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::PlanIndexedSmoothRgbColorMapConstPtr & | pPIColorMap | ||
| ) |
wrapper function for application of a color map on an input grey image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API ipsdk::image::ImagePtr ipsdk::imaproc::itrans::colorMapping2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::PlanIndexedCyclicRgbColorMapConstPtr & | pPIColorMap | ||
| ) |
wrapper function for application of a color map on an input grey image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API void ipsdk::imaproc::itrans::colorMapping2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::SmoothRgbColorMapConstPtr & | pColorMap, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for application of a color map on an input grey image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API void ipsdk::imaproc::itrans::colorMapping2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::CyclicRgbColorMapConstPtr & | pColorMap, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for application of a color map on an input grey image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API void ipsdk::imaproc::itrans::colorMapping2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::PlanIndexedSmoothRgbColorMapConstPtr & | pPIColorMap, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for application of a color map on an input grey image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLINTENSITYTRANSFORM_API void ipsdk::imaproc::itrans::colorMapping2dImg | ( | const ipsdk::image::ImageConstPtr & | pInImg, |
| const ipsdk::imaproc::attr::PlanIndexedCyclicRgbColorMapConstPtr & | pPIColorMap, | ||
| const ipsdk::image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for application of a color map on an input grey image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14