what does this code mean?
Mostra commenti meno recenti
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))))
Risposta accettata
Più risposte (1)
It appears to be finding the ratio of the mean values of two 15 element square subarrays, each from a different array.
4 Commenti
satish thapaliya
il 20 Nov 2012
satish thapaliya
il 20 Nov 2012
Modificato: Walter Roberson
il 20 Nov 2012
Walter Roberson
il 20 Nov 2012
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
il 20 Nov 2012
Categorie
Scopri di più su Image Processing Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!