histogram equalization based on a pixel region

조회 수: 8 (최근 30일)
Chad Greene
Chad Greene 2016년 3월 2일
댓글: Chad Greene 2016년 3월 8일
I have a sequence of grayscale images that were taken in different sunlight conditions. In the sequence, there are no moving objects in the upper left corner, so I would like to set the histogram of each image such that the upper left corner is constant brightness.
For two whole images I am able to get the histogram of image B to match the histogram of image A by
hgram = imhist(A);
B_adj = histeq(B,hgram);
Or I could make the entire B_adj match the histogram of the upper left corner of A by
hgram = imhist(A(1:100,1:100));
B_adj = histeq(B,hgram);
But I don't want the histogram of the entire image B_adj to match the histogram of the upper left corner of A. I know imhist offers an optional grayscale transformation array T, but I don't know how to use it. Any hints would be much appreciated.
  댓글 수: 1
Chad Greene
Chad Greene 2016년 3월 8일
I'm still looking for a solution to this one.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by