IPSDK 4.1.0.2
IPSDK : Image Processing Software Development Kit
Image color mapping 2d
imagecolorMapping2dImg (inImg,colorMap)
imagecolorMapping2dImg (inImg,colorMap)
imagecolorMapping2dImg (inImg,pIColorMap)
imagecolorMapping2dImg (inImg,pIColorMap)

Detailed Description

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.

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:

colorMapping2dImg_example_cyclic.png

And here are different examples of predefined smooth color maps applied to Lena grey levels image:

colorMapping2dImg_example_smooth.png

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLIntensityTransform as itrans

Code Example

# opening of input images
inImg = PyIPSDK.loadTiffImageFile(inImgPath)
# application of color map on input image (1st signature test)
outImg = itrans.colorMapping2dImg(inImg, colorMap)

Example of C++ code :

Example informations

Header file

#include <IPSDKIPL/IPSDKIPLIntensityTransform/Processor/ColorMapping2dImg/ColorMapping2dImg.h>

Code Example

ImagePtr pInImg = loadTiffImageFile(inImgFilePath, eTiffDirectoryMode::eTDM_Volume);
const CyclicRgbColorMapPtr pColorMap =
ImagePtr pOutImg = colorMapping2dImg(pInImg, pColorMap);