I have the following code:
out=I(outPixel); [counts,values] = hist(transpose(out),unique(out)); Frequency=[counts,values];
where out=
25 25 25
outPixel =
9 980 1174
counts
counts =
Columns 1 through 16 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0Columns 17 through 25 0 0 0 0 0 0 0 0 0
values =
Columns 1 through 15 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27Columns 16 through 25 28 29 30 31 32 33 34 35 36 37
why so many values in counts and values? what's wrong with me? and Frequency have 101 values I dont know? I need unique value frequency in out. can any body help?
Best Answer