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)
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?

Accepted Answer

Walter Roberson
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!