IPSDK 0.2
IPSDK : Image Processing Software Development Kit
Z Stack Focus PonderationSee full documentation
imagezStackFocusPonderationImg (inImg)
imagezStackFocusPonderationImg (inImg,inOptContrastRadius)
imagezStackFocusPonderationImg (inImg,inOptContrastRadius,inOptMeanSmoothingValue,inOptZoomFactor)

Detailed Description

function computing a contrasted image by ponderation along the Z axis

The Z stack focus by pondaration computes the contrast of pixels for each plan of a 3D image, then averages the pixels of each plans according to their contrast.

The parameters of this filter are :

Here is an example with default parameters.

ZFocusPonderation.png

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 ponderation
outImg = filter.zStackFocusPonderationImg(inImg, contrastRay, smoothing, zoomFactor)

Example of C++ code :

Example informations

Header file

#include <IPSDKIPL/IPSDKIPLFiltering/Processor/ZStackFocusPonderationImg/ZStackFocusPonderationImg.h>

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 ponderation on input image
ImagePtr pOutImg = zStackFocusPonderationImg(pInImg, contrastRadius,meanSmoothingValue,zoomFactor);