필터 지우기
필터 지우기

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?

조회 수: 10 (최근 30일)
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?

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 15일
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개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by