IPSDK 0.2
IPSDK : Image Processing Software Development Kit
Grey Reconstruction 3dSee full documentation
imagegreyMaxReconstruction3dImg (inImg3d,inGreyMarkImg3d)
imagegreyMinReconstruction3dImg (inImg3d,inGreyMarkImg3d)

Detailed Description

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

# opening of input image
inImg3d = PyIPSDK.loadTiffImageFile(inputImgPath)
inImg3d = arithm.addScalarImg(inImg3d, 10)
# creation of a marker image
inGreyMarkImg3d = arithm.addScalarImg(inImg3d, -5)
inGreyMarkImg3d = util.convertImg(inGreyMarkImg3d, inImg3d.getBufferType())
# maxima grey reconstruction 3d computation
outImg = advmorpho.greyMaxReconstruction3dImg(inImg3d, inGreyMarkImg3d)

Example of C++ code :

Example informations

Header file

#include <IPSDKIPL/IPSDKIPLAdvancedMorphology/Processor/GreyReconstruction3dImg/GreyReconstruction3dImg.h>

Code Example

// opening of input image
ImagePtr pInImg3d = loadTiffImageFile(inputImgPath);
pInImg3d = addScalarImg(pInImg3d, 10);
// creation of a marker image
ImagePtr pInGreyMarkImg3d = addScalarImg(pInImg3d, -5);
pInGreyMarkImg3d = convertImg(pInGreyMarkImg3d, pInImg3d->getBufferType());
// process maxima grey reconstruction
ImagePtr pOutMaxImg = greyMaxReconstruction3dImg(pInImg3d, pInGreyMarkImg3d);
// process minima grey reconstruction
ImagePtr pOutMinImg = greyMinReconstruction3dImg(pInGreyMarkImg3d, pInImg3d);