Sir, i have an image of size 240 X 320 in RGB. I've converted it into HSV and quantized with bins 18;12;8, actually i know the procedure to obtain 18+12+8=38 bin histogram. but i was instructed to create 18*12*8 =1728 bins histogram. is it possible?
1 view (last 30 days)
Show older comments
sasithra devi
on 15 Oct 2015
Answered: Walter Roberson
on 15 Oct 2015
Sir, i have an image of size 240 X 320 in RGB. I've converted it into HSV and quantized with bins 18;12;8, actually i know the procedure to obtain 18+12+8=38 bin histogram. but i was instructed to create 18*12*8 =1728 bins histogram. is it possible?
0 Comments
Accepted Answer
Walter Roberson
on 15 Oct 2015
Supposing that the quantized H is qH, and the quantized V is qV and the quantized S is qS, then
counts(qH, qS, qV) = counts(qH, qS, qV) + 1;
This is going to give you an array which is 18 x 12 x 8 = 1728 elements. You can reshape the array to a vector afterwards if you want.
0 Comments
More Answers (0)
See Also
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!