Name

ComputeChannelVariance — calculates the gray level variance in a multi channel image

Calling Sequence

ChannelVariance = ComputeChannelVariance(MultiChannelImage, FilterSize);

Parameters

MultiChannelImage

3D 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

ChannelVariance

3D matrix of the same type and size as MultiChannelImage

Description

This function calculates the gray level variance in a neighborhood for each pixel of a multi channel image.

Examples

global WAVELET_DAUBECHIES_2;

RGB = ReadImage('contrib\IPD-5.0\demos\small_teaset.png');

Image = RGB2Gray(RGB);

ListOfWaveletImages = CreateWaveletFrames(Image, WAVELET_DAUBECHIES_2, 3);

ChannelVariance = ComputeChannelVariance(ListOfWaveletImages, [9 9]);

See Also

GetWaveletFilters, UpsampleFilter, CreateWaveletFrames, VarianceFilter