| image = | skewness3dImg (inImg3d,inHalfKnlSizeX,inHalfKnlSizeY,inHalfKnlSizeZ) |
local 3d image skewness computation
This algorithm computes for each pixel of output image associated local skewness on a parallelepipedic neighbourhood of input image.
Given an input image
and parallelepipedic kernel half sizes
,
and
, output image values are given by :
where
- See also
- http://en.wikipedia.org/wiki/Skewness
Here is an example of a Skewness computation applied on a 8 bits grey level image with
:
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLStats as stats
Code Example
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
outImg = stats.skewness3dImg(inImg, 3, 3, 3)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLStats/Processor/Skewness3dImg/Skewness3dImg.h>
Code Example
ImagePtr pOutImg = skewness3dImg(pInImg, inHalfKnlSizeX, inHalfKnlSizeY, inHalfKnlSizeZ);