필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I have quantized hsv into 8×3×3 combinations,so I want to find what is number of pixels per each bin how do I do it

조회 수: 1 (최근 30일)
h

답변 (3개)

Image Analyst
Image Analyst 2018년 1월 13일
If you have taken the 3-D histogram, then you have the values. If you really "have quantized hsv into 8×3×3 combinations" then how can you not have that variable??? What happened to it? Did you clear it for some reason? If so, why?
  댓글 수: 10
Image Analyst
Image Analyst 2018년 1월 16일
Sorry, it should be h,s,v=1,2,3
hImage = hsvImage(:, :, 1);
sImage = hsvImage(:, :, 2);
vImage = hsvImage(:, :, 3);

teja jayavarapu
teja jayavarapu 2018년 1월 13일
If I divide image into N×N blocks how do we apply this quantification for different blocks
  댓글 수: 1
Image Analyst
Image Analyst 2018년 1월 14일
Same way I already showed you. The code does not care where rgbImage came from: imread() or indexing a block of a larger image. The code works the same regardless of where rgbImage originated.

teja jayavarapu
teja jayavarapu 2018년 1월 14일
a=imread(img); [rows, cols, numOfBands] = size(a); mr=round(rows/2); mc=round(cols/2); image1=a(1:mr,1:mc); image2=a(1:mr,(mc+1):cols); image3=a((mr+1):rows,1:mc); image4=a((mr+1):rows,(mc+1):cols); subplot(4,3,2) imshow(img) subplot(4,3,5) imshow(image1) subplot(4,3,6) imshow(image2) subplot(4,3,8) imshow(image3) subplot(4,3,9) imshow(image4) I HAVE DIVIDED THE IMAGE INTO 4 BLOCKS IS THERE ANY BETTER WAY OR THERE IS ANY DIRECT COMMAND IN MATLAB TO DO THIS?

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by