IPSDK 0.2
IPSDK : Image Processing Software Development Kit
Image color mapping 3dSee full documentation
imagecolorMapping3dImg (inImg3d,colorMap)
imagecolorMapping3dImg (inImg3d,colorMap)
imagecolorMapping3dImg (inImg3d,pIColorMap)
imagecolorMapping3dImg (inImg3d,pIColorMap)

Detailed Description

application of a color map on each 3D volume of an input grey-levels image

This algorithm applies a given color map to each 3D volume 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. This algorithm is a transposition of the Image color mapping 2d algorithm. See its documentation for more details.

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.colorMapping3dImg(inImg, colorMap)

Example of C++ code :

Example informations

Header file

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

Code Example

ImagePtr pInImg = loadTiffImageFile(inImgFilePath, eTiffDirectoryMode::eTDM_Volume);
const SmoothRgbColorMapPtr pColorMap =
createSmoothRgbColorMap(ePredefinedSmoothRgbColorMapId::ePSRCMI_Viridis, eSmoothRgbColorMapRangeMode::eSRCMRM_ImageRange);
ImagePtr pOutImg = colorMapping3dImg(pInImg, pColorMap);