what does this code mean?
显示 更早的评论
1/(mean(mean(I1(xy_index(2)+(-7:7),xy_index(1)+(-7:7),1)))/mean(mean(I2(xy_index(2)+(-7:7),xy_index(1)+(-7:7),1))))
采纳的回答
更多回答(1 个)
It appears to be finding the ratio of the mean values of two 15 element square subarrays, each from a different array.
4 个评论
satish thapaliya
2012-11-20
satish thapaliya
2012-11-20
编辑:Walter Roberson
2012-11-20
Walter Roberson
2012-11-20
It is not a gray scale value. It is "something else".
It does not produce a value between 0 and 1: it can produce infinity in some cases.
The expression is of the form 1 / (A / B) . That could be rewritten as B/A, which makes it clearer that what it produces is a ratio of the grayscale intensities of the mean color of the respective two blocks.
satish thapaliya
2012-11-20
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!