<< UpsampleFilter IPD - Image Processing Design Watershed >>

IPD - Image Processing Design >> IPD - Image Processing Design > VarianceFilter

VarianceFilter

calculates the gray level variance in a neighborhood for each pixel

Calling Sequence

FilteredImage = VarianceFilter(Image);

Parameters

Image

2D matrix of type double

FilterSize

vector of type double with two elements, the first one specifies the height, the second one the width of the filter

FilteredImage

2D matrix of type double

Description

This function calculates the gray level variance in a neighborhood for each pixel. VarianceFilter is called by .

Examples

global IPD_PATH;

RGB = ReadImage(IPD_PATH + 'demos\teaset.png');

Image = RGB2Gray(RGB);

FilteredImage = VarianceFilter(Image, [9 9]);

figure(); ShowImage(Image, 'Original Image');

figure(); ShowImage(FilteredImage, 'Filtered Image');

See Also

<< UpsampleFilter IPD - Image Processing Design Watershed >>