IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit

function for computing a contrasted image by maximum along the Z axis More...

IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::zStackFocusMaximumImg (const image::ImageConstPtr &pInImg)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::zStackFocusMaximumImg (const image::ImageConstPtr &pInImg, const ipUInt32 inOptContrastRadius)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::zStackFocusMaximumImg (const image::ImageConstPtr &pInImg, const ipUInt32 inOptContrastRadius, const ipUInt32 inOptMeanSmoothingValue, const ipReal32 inOptZoomFactor)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumImg (const image::ImageConstPtr &pInImg, const image::ImagePtr &pOutImg)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumImg (const image::ImageConstPtr &pInImg, const ipUInt32 inOptContrastRadius, const image::ImagePtr &pOutImg)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumImg (const image::ImageConstPtr &pInImg, const ipUInt32 inOptContrastRadius, const ipUInt32 inOptMeanSmoothingValue, const ipReal32 inOptZoomFactor, const image::ImagePtr &pOutImg)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API ZStackFocusMaximumResult ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg (const image::ImageConstPtr &pInImg)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API ZStackFocusMaximumResult ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg (const image::ImageConstPtr &pInImg, const ipUInt32 inOptContrastRadius)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API ZStackFocusMaximumResult ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg (const image::ImageConstPtr &pInImg, const ipUInt32 inOptContrastRadius, const ipUInt32 inOptMeanSmoothingValue, const ipReal32 inOptZoomFactor)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg (const image::ImageConstPtr &pInImg, const image::ImagePtr &pOutImg, const image::ImagePtr &pOutLabelImg)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg (const image::ImageConstPtr &pInImg, const ipUInt32 inOptContrastRadius, const image::ImagePtr &pOutImg, const image::ImagePtr &pOutLabelImg)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 
IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg (const image::ImageConstPtr &pInImg, const ipUInt32 inOptContrastRadius, const ipUInt32 inOptMeanSmoothingValue, const ipReal32 inOptZoomFactor, const image::ImagePtr &pOutImg, const image::ImagePtr &pOutLabelImg)
 wrapper function for function for computing a contrasted image by maximum along the Z axis More...
 

Detailed Description

function for computing a contrasted image by maximum along the Z axis

The Z stack focus by maximum computes the contrast of pixels for each plan of a 3D image, then keep pixels with the highest contrast on a 2D output image.

The parameters of this filter are :

The algorithm can also return an optional depth map image. This labeled image shows which plan had the highest contrast, for each pixel of the image.

Here is an example with default parameters.

ZFocusMaximum.png

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InImg3d [Input] 3d image for operation X
ipsdk::imaproc::attr::InOptZoomFactor [Input Optional] z-size of 3d output image X
ipsdk::imaproc::attr::InOptContrastRadius [Input Optional] contrast radius for Z focus X
ipsdk::imaproc::attr::InOptMeanSmoothingValue [Input Optional] mean smoothing value for Z focus X
ipsdk::imaproc::attr::InOptDepthMap [Input Optional] bool value for depth map in z focus X
ipsdk::imaproc::attr::OutWk1Img [Output] Temporary working image for algorithm customOutput (_pOutWk1Img, outputZoom3d(_pInImg3d,_pInOptZoomFactor))
ipsdk::imaproc::attr::OutWk2Img [Output] Temporary working image for algorithm customOutput (_pOutWk2Img, outputZoom3d(_pInImg3d,_pInOptZoomFactor))
ipsdk::imaproc::attr::OutWk3Img [Output] Temporary working image for algorithm customOutput (_pOutWk3Img, outputZoom3dGrey(_pInImg3d,_pInOptZoomFactor))
ipsdk::imaproc::attr::OutOptWk1Img [Output Optional] Temporary working image for algorithm X
ipsdk::imaproc::attr::OutWk1RealImg [Output] Temporary working image for algorithm customOutput (_pOutWk1RealImg, outputZoom2dGreyReal(_pInImg3d,_pInOptZoomFactor))
ipsdk::imaproc::attr::OutWk2RealImg [Output] Temporary working image for algorithm customOutput (_pOutWk2RealImg, outputZoom3dGreyReal(_pInImg3d,_pInOptZoomFactor))
ipsdk::imaproc::attr::OutWk1BinImg [Output] Temporary working image for algorithm customOutput (_pOutWk1BinImg, outputZoom3dGreyBin(_pInImg3d,_pInOptZoomFactor))
ipsdk::imaproc::attr::OutWk3RealImg [Output] Temporary working image for algorithm customOutput (_pOutWk3RealImg, duplicateGreyReal(_pInImg3d))
ipsdk::imaproc::attr::OutWk4RealImg [Output] Temporary working image for algorithm customOutput (_pOutWk4RealImg, duplicate2dGreyReal(_pInImg3d))
ipsdk::imaproc::attr::OutOptWk1RealImg [Output Optional] Temporary working image for algorithm (data contained in image buffer are reals) X
ipsdk::imaproc::attr::OutOptWk1LabelImg [Output Optional] Temporary working image for algorithm X
ipsdk::imaproc::attr::OutOptWk2LabelImg [Output Optional] Temporary working image for algorithm X
ipsdk::imaproc::attr::OutWk5RealImg [Output] Temporary working image for algorithm customOutput (_pOutWk5RealImg, duplicate2dReal(_pInImg3d))
ipsdk::imaproc::attr::OutOptLabelImg2d [Output Optional] label image 2d for processing operation X
ipsdk::imaproc::attr::OutImg2d [Output] 2d image for processing operation duplicate2dInOut (_pOutImg2d, _pInImg3d)

Global Rule description

Global rule description for algorithm :
(ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_Z,_pInImg3d,_pOutWk1Img) && 
 ipsdk::imaproc::matchSize (_pOutWk1Img,_pOutWk2Img) && 
 ipsdk::processor::ifIsSet (
  _pOutOptWk1Img, (
   ipsdk::imaproc::isGrey (_pInImg3d) || 
   ipsdk::imaproc::matchSize (_pOutWk1Img,_pOutOptWk1Img))) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_3d,_pOutWk1Img,_pOutWk3Img) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_2d,_pOutWk1Img,_pOutWk1RealImg) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_3d,_pOutWk1Img,_pOutWk2RealImg) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_3d,_pOutWk1Img,_pOutWk1BinImg) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_3d,_pInImg3d,_pOutWk3RealImg) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_2d,_pInImg3d,_pOutWk4RealImg) && 
 ipsdk::processor::ifIsSet (
  _pOutOptWk1RealImg, (
   ipsdk::imaproc::isGrey (_pInImg3d) || 
   ipsdk::imaproc::matchSize (_pInImg3d,_pOutOptWk1RealImg))) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_2d,_pInImg3d,_pOutWk5RealImg) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_2d,_pInImg3d,_pOutImg2d) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_C,_pInImg3d,_pOutImg2d))

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLFiltering as filter

Code Example

# opening of input images
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# Optional parameters
smoothing = 1
zoomFactor = 0.25
contrastRay = 1
# Z stack focus maximum
outImg = filter.zStackFocusMaximumWithMapImg(inImg, contrastRay, smoothing, zoomFactor)
# Or Z stack focus maximum with depth map
outImg, labelImg = filter.zStackFocusMaximumWithMapImg(inImg, contrastRay, smoothing, zoomFactor)

Example of C++ code :

Example informations

Associated library

IPSDKIPLFiltering

Header file

Code Example

// opening input image
ImagePtr pInImg = loadTiffImageFile(inputImgPath);
// define optionals parameters
ipUInt32 meanSmoothingValue = 1;
ipReal32 zoomFactor = 0.25;
ipUInt16 contrastRadius = 1;
// compute Z stack focus maximum without depth map on input image
ImagePtr pOutImgAlone = zStackFocusMaximumImg(pInImg, contrastRadius, meanSmoothingValue, zoomFactor);
// compute Z stack focus maximum with depth map on input image
ZStackFocusMaximumResult zStackFocusMaximumResult = zStackFocusMaximumWithMapImg(pInImg, contrastRadius, meanSmoothingValue, zoomFactor);
ImagePtr pOutImg = zStackFocusMaximumResult._pOutImg;
ImagePtr pOutLabelImg = zStackFocusMaximumResult._pOutLabelImg;
See also
ZStackFocusMaximumImgLvl1

Function Documentation

◆ zStackFocusMaximumImg() [1/6]

IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::zStackFocusMaximumImg ( const image::ImageConstPtr pInImg)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumImg() [2/6]

IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::zStackFocusMaximumImg ( const image::ImageConstPtr pInImg,
const ipUInt32  inOptContrastRadius 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumImg() [3/6]

IPSDKIPLFILTERING_API image::ImagePtr ipsdk::imaproc::filter::zStackFocusMaximumImg ( const image::ImageConstPtr pInImg,
const ipUInt32  inOptContrastRadius,
const ipUInt32  inOptMeanSmoothingValue,
const ipReal32  inOptZoomFactor 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumImg() [4/6]

IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumImg ( const image::ImageConstPtr pInImg,
const image::ImagePtr pOutImg 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumImg() [5/6]

IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumImg ( const image::ImageConstPtr pInImg,
const ipUInt32  inOptContrastRadius,
const image::ImagePtr pOutImg 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumImg() [6/6]

IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumImg ( const image::ImageConstPtr pInImg,
const ipUInt32  inOptContrastRadius,
const ipUInt32  inOptMeanSmoothingValue,
const ipReal32  inOptZoomFactor,
const image::ImagePtr pOutImg 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumWithMapImg() [1/6]

IPSDKIPLFILTERING_API ZStackFocusMaximumResult ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg ( const image::ImageConstPtr pInImg)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumWithMapImg() [2/6]

IPSDKIPLFILTERING_API ZStackFocusMaximumResult ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg ( const image::ImageConstPtr pInImg,
const ipUInt32  inOptContrastRadius 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumWithMapImg() [3/6]

IPSDKIPLFILTERING_API ZStackFocusMaximumResult ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg ( const image::ImageConstPtr pInImg,
const ipUInt32  inOptContrastRadius,
const ipUInt32  inOptMeanSmoothingValue,
const ipReal32  inOptZoomFactor 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumWithMapImg() [4/6]

IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg ( const image::ImageConstPtr pInImg,
const image::ImagePtr pOutImg,
const image::ImagePtr pOutLabelImg 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumWithMapImg() [5/6]

IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg ( const image::ImageConstPtr pInImg,
const ipUInt32  inOptContrastRadius,
const image::ImagePtr pOutImg,
const image::ImagePtr pOutLabelImg 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ zStackFocusMaximumWithMapImg() [6/6]

IPSDKIPLFILTERING_API void ipsdk::imaproc::filter::zStackFocusMaximumWithMapImg ( const image::ImageConstPtr pInImg,
const ipUInt32  inOptContrastRadius,
const ipUInt32  inOptMeanSmoothingValue,
const ipReal32  inOptZoomFactor,
const image::ImagePtr pOutImg,
const image::ImagePtr pOutLabelImg 
)

wrapper function for function for computing a contrasted image by maximum along the Z axis

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure