IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit

grey reconstruction of an image 3d More...

IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::greyMaxReconstruction3dImg (const image::ImageConstPtr &pInImg3d, const image::ImageConstPtr &pInGreyMarkImg3d)
 wrapper function for grey maxima reconstruction of an image 3d More...
 
IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::greyMaxReconstruction3dImg (const image::ImageConstPtr &pInImg3d, const image::ImageConstPtr &pInGreyMarkImg3d, const image::ImagePtr &pOutImg)
 wrapper function for grey maxima reconstruction of an image 3d More...
 
IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::greyMinReconstruction3dImg (const image::ImageConstPtr &pInImg3d, const image::ImageConstPtr &pInGreyMarkImg3d)
 wrapper function for grey minima reconstruction of an image 3d More...
 
IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::greyMinReconstruction3dImg (const image::ImageConstPtr &pInImg3d, const image::ImageConstPtr &pInGreyMarkImg3d, const image::ImagePtr &pOutImg)
 wrapper function for grey minima reconstruction of an image 3d More...
 

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.

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InImg3d [Input] 3d image for operation X
ipsdk::imaproc::attr::InGreyMarkImg3d [Input] grey marker3d image for processing operation X
ipsdk::imaproc::attr::InLocalExtremumType [Input] local extremum type X
ipsdk::imaproc::attr::OutImg [Output] image for processing operation duplicateInOut (_pOutImg, _pInImg3d)

Global Rule description

Global rule description for algorithm :
((ipsdk::imaproc::matchSizeAndType (_pInImg3d,_pInGreyMarkImg3d)) && 
 (ipsdk::imaproc::matchSizeAndType (_pInImg3d,_pOutImg)) && 
 (ipsdk::imaproc::noInSitu (_pInImg3d,_pOutImg)))

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

Associated library

IPSDKIPLAdvancedMorphology

Header file

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);
See also
GreyReconstruction3dImgLvl1
GreyReconstruction3dImgLvl2
GreyReconstruction3dImgLvl3

Function Documentation

◆ greyMaxReconstruction3dImg() [1/2]

IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::greyMaxReconstruction3dImg ( const image::ImageConstPtr pInImg3d,
const image::ImageConstPtr pInGreyMarkImg3d 
)

wrapper function for grey maxima reconstruction of an image 3d

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ greyMinReconstruction3dImg() [1/2]

IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::greyMinReconstruction3dImg ( const image::ImageConstPtr pInImg3d,
const image::ImageConstPtr pInGreyMarkImg3d 
)

wrapper function for grey minima reconstruction of an image 3d

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ greyMaxReconstruction3dImg() [2/2]

IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::greyMaxReconstruction3dImg ( const image::ImageConstPtr pInImg3d,
const image::ImageConstPtr pInGreyMarkImg3d,
const image::ImagePtr pOutImg 
)

wrapper function for grey maxima reconstruction of an image 3d

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ greyMinReconstruction3dImg() [2/2]

IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::greyMinReconstruction3dImg ( const image::ImageConstPtr pInImg3d,
const image::ImageConstPtr pInGreyMarkImg3d,
const image::ImagePtr pOutImg 
)

wrapper function for grey minima reconstruction of an image 3d

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure