how to calculate mean and variance of the image using W*W sliding window
1 回表示 (過去 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!