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)
Mostrar comentarios más antiguos
sasithra devi
el 15 de Oct. de 2015
Respondida: Walter Roberson
el 15 de Oct. de 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 comentarios
Respuesta aceptada
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.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Histograms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!