what does this code mean?

조회 수: 1 (최근 30일)
satish thapaliya
satish thapaliya 2012년 11월 20일
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))))

채택된 답변

satish thapaliya
satish thapaliya 2012년 11월 20일
Thanks Roberson

추가 답변 (1개)

Matt Fig
Matt Fig 2012년 11월 20일
편집: Matt Fig 2012년 11월 20일
It appears to be finding the ratio of the mean values of two 15 element square subarrays, each from a different array.
  댓글 수: 4
Walter Roberson
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
satish thapaliya 2012년 11월 20일
Thanks Roberson

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by