| image = | skewness2dImg (inImg,inHalfKnlSizeX,inHalfKnlSizeY) |
local 2d image skewness computation
This algorithm computes for each pixel of output image associated local skewness on a rectangular neighbourhood of input image.
Given an input image
and rectangular 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.skewness2dImg(inImg, 3, 3)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLStats/Processor/Skewness2dImg/Skewness2dImg.h>
Code Example
ImagePtr pOutImg = skewness2dImg(pInImg, inHalfKnlSizeX, inHalfKnlSizeY);