how to find the histogram of the each blocks of the gray image that is divided into 4 parts?

조회 수: 1 (최근 30일)
there are 4 blocks , and i want the histogram of these 4 blocks.

채택된 답변

sachit
sachit 2015년 1월 12일
use "imhist" command for every block.
  댓글 수: 1
user06
user06 2015년 1월 12일
ho we can use "imhist" to each block.? i have divided the the image into the blocks then how can i use "imhist"to each block can u plz give an example.?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2015년 1월 12일
[pixelCounts1, grayLevels1] = imhist(block1);
[pixelCounts2, grayLevels2] = imhist(block2);
[pixelCounts3, grayLevels3] = imhist(block3);
[pixelCounts4, grayLevels4] = imhist(block4);

Community Treasure Hunt

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

Start Hunting!

Translated by