image = | convertImg (inImg,inConvertImageBufferType) |
Algorithm allowing to convert an image to a given type.
This algorithm allows to convert an image.
Output image size is the same as input.
On output image value are given by :
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLUtility as util
Code Example
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
outImg = util.convertImg(inImg, PyIPSDK.eImageBufferType.eIBT_UInt16)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLUtility/Processor/ConvertImg/ConvertImg.h>
Code Example
ImagePtr pOutImg = convertImg(pInImg, outputImageBufferType);