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 visualización (últimos 30 días)
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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 15 de Oct. de 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.

Más respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by