how to calculate mean and variance of the image using W*W sliding window
2 次查看(过去 30 天)
显示 更早的评论
contrast enhancement is to improve the contrast of lesions for detection using a w*w sliding window with assumption that w is large enough to contain a statistically representative distribution of the local variation of lesions. where the sigmoid function used with the maximum and minimum intensity values of smooth green channel image,respectively. mean and variance of intensity values with in the window.
CAN U HELP ME WITH CODING
0 个评论
采纳的回答
Image Analyst
2013-8-21
Try this:
meanImage = conv2(grayImage, ones(w)/w^2);
stdDevImage = stdfilt(grayImage, ones(w)/w^2);
varianceIMage = stdDevImage .^2;
10 个评论
Image Analyst
2013-8-27
Use the 'same' option in conv2 to get the same size image.
meanImage = conv2(grayImage, ones(w)/w^2, 'same');
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!