Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
can any one tell me what does the floating point values mean in the following code
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Petr Dvorak
am 23 Jun. 2014
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.
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!