void | eraseImg (outImg) |
void | eraseImg (outImg,inOptEraseValue) |
Algorithm allowing to erase values of an image.
This algorithm allows to erase values of an image with a given value
.
On output image value are given by :
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLUtility as util
Code Example
img1 = PyIPSDK.createImage(PyIPSDK.eImageBufferType.eIBT_UInt8, 510, 509)
util.eraseImg(img1)
img2 = PyIPSDK.createImage(img1.getGeometry())
util.eraseImg(img2, 5)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLUtility/Processor/EraseImg/EraseImg.h>
Code Example
boost::shared_ptr<MemoryImage> pInImg(boost::make_shared<MemoryImage>());
pInImg->init(*pImageGeometry);
eraseImg(pInImg);