image = | zStackFocusPonderationImg (inImg) |
image = | zStackFocusPonderationImg (inImg,inOptContrastRadius) |
image = | zStackFocusPonderationImg (inImg,inOptContrastRadius,inOptMeanSmoothingValue,inOptZoomFactor) |
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 :
is the radius of the structuring element used to compute the contrast. With a low value for
we are more sensitive to small details but also to noise. The default value is 10.
defines the way the different plans are combined. If the value is too low the transitions between plans won't be smooth, and if the value is too high it will results in a blurred image. The default value is 1.
is the factor by which the image is resized before processing. A low value allows us to save time during the process. The lower this value is, the more we are sensitive to macro elements in the image, instead of small details. The defaut value is 1.
Here is an example with default parameters.
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLFiltering as filter
Code Example
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
smoothing = 1
zoomFactor = 0.25
contrastRay = 1
outImg = filter.zStackFocusPonderationImg(inImg, contrastRay, smoothing, zoomFactor)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLFiltering/Processor/ZStackFocusPonderationImg/ZStackFocusPonderationImg.h>
Code Example
ipUInt32 meanSmoothingValue = 1;
ipReal32 zoomFactor = 0.25;
ipUInt16 contrastRadius = 1;
ImagePtr pOutImg = zStackFocusPonderationImg(pInImg, contrastRadius,meanSmoothingValue,zoomFactor);