image = | greyMaxReconstruction3dImg (inImg3d,inGreyMarkImg3d) |
image = | greyMinReconstruction3dImg (inImg3d,inGreyMarkImg3d) |
grey reconstruction of an image 3d
This algorithm is an equivalent of Binary Reconstruction 3d applied on grey scale images case.
Grey scale values of input marker image InGreyMarkImg are locally dilated with respect to input image InImg local extrema.
Extrema search type is controlled by InLocalExtremumType parameter.
The behavior of this algorithm is illustrated in case of a 1d signal by the following figures :
- Note
- this algorithm is mainly used during processing of Dilate Local Extrema 3d algorithm.
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLAdvancedMorphology as advmorpho
import PyIPSDK.IPSDKIPLArithmetic as arithm
import PyIPSDK.IPSDKIPLUtility as util
Code Example
inImg3d = PyIPSDK.loadTiffImageFile(inputImgPath)
inImg3d = arithm.addScalarImg(inImg3d, 10)
inGreyMarkImg3d = arithm.addScalarImg(inImg3d, -5)
inGreyMarkImg3d = util.convertImg(inGreyMarkImg3d, inImg3d.getBufferType())
outImg = advmorpho.greyMaxReconstruction3dImg(inImg3d, inGreyMarkImg3d)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLAdvancedMorphology/Processor/GreyReconstruction3dImg/GreyReconstruction3dImg.h>
Code Example
pInGreyMarkImg3d =
convertImg(pInGreyMarkImg3d, pInImg3d->getBufferType());
ImagePtr pOutMaxImg = greyMaxReconstruction3dImg(pInImg3d, pInGreyMarkImg3d);
ImagePtr pOutMinImg = greyMinReconstruction3dImg(pInGreyMarkImg3d, pInImg3d);