IPSDK 4.1
IPSDK : Image Processing Software Development Kit
Local Extrema 3d
imagelocalMaxima3dImg (inImg3d)
imagelocalMinima3dImg (inImg3d)

Detailed Description

algorithm allowing to extract local extremum 3d from an image

This algorithm allows, given an input image InImg3d and a searched extrema type defined by InLocalExtremumType parameter, to compute a binary ouput image OutBinImg where all set pixels are local extrema.

This means that if a pixel is set in output image, all neighbor value respect one of following condition :

This is illustrated in case of a 1d signal :

localExtremaGraph.png

An example of local maxima extraction is illustrated in 2d case : see Local Extrema 2d.

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLAdvancedMorphology as advmorpho

Code Example

# opening of input image
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# local maxima 3d computation
outImg = advmorpho.localMaxima3dImg(inImg)

Example of C++ code :

Example informations

Header file

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

Code Example

// opening of input image
ImagePtr pInImg = loadTiffImageFile(inputImgPath);
// mark local maxima in input image
ImagePtr pOutMaxImg = localMaxima3dImg(pInImg);
// mark local minima in input image
ImagePtr pOutMinImg = localMinima3dImg(pInImg);