image = | variance2dImg (inImg,inHalfKnlSizeX,inHalfKnlSizeY) |
local 2d image variance computation
This algorithm computes for each pixel of output image associated local variance on a rectangular neighbourhood of input image.
Given an input image and rectangular kernel half sizes
and
, output image values are given by :
where
Here is an example of a Variance computation applied on a 8 bits grey level image with :