Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

can any one tell me what does the floating point values mean in the following code

조회 수: 1 (최근 30일)
Anamika baruah
Anamika baruah 2014년 6월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
darks = find(v <.2)'; lights = find(s < .05 & v > .85)'; h([darks lights])= -1; disp(length(darks)) black = length(darks)/pixels;[x,y, z]=size(I); white = length(lights)/pixels; red = length(find((h >.9167 | h <=.083) & h~=-1))/pixels; yellow=length(find(h >.083 & h<=.25))/pixels; green=length(find(h > .25 & h<= .4167))/pixels; cyan= length(find(h > .4167 & h<= .5833))/pixels; blue=length(find(h > .5833 & h <= .75))/pixels; magenta=length(find(h > .75 & h <= .9167))/pixels;
  댓글 수: 1
Petr Dvorak
Petr Dvorak 2014년 6월 23일
Hi, I guess, the floating-point numbers are the treshold numbers which decide whether the point has particular properties. The first (0.05 and 0.85) decides whether the pixel is too light or dark. The other decides whether the color of selected pixels is red, yellow or so... Try to change the numbers and you will probably see color-distortion.

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by