필터 지우기
필터 지우기

when i recombined bit plane image after histogram equalization,it is completely white not visible, can anyone tell me why, i try this code, please help me

조회 수: 1 (최근 30일)
why my reconstruct image is white can anyone tell me i try this code
input = imread('input.jpg');
input_gray = rgb2gray(input);
bit_1 = bitget(input_gray,1);
bit_2 = bitget(input_gray,2);
histeq_1 = histeq(bit_1);
histeq_2 = histeq(bit_2);
reconstruct_image = zeros(size(input_gray));
reconstruct_image = uint8(reconstruct_image);
reconstruct_image = bitset(reconstruct_image,1,histeq_1);
reconstruct_image = bitset(reconstruct_image,2,histeq_2);
figure,imshow(reconstruct_image,[]),title('reconstruct image');

답변 (1개)

Image Analyst
Image Analyst 2013년 12월 10일
It makes absolutely no sense to do histogram equalization on a binary image.
  댓글 수: 12
Image Analyst
Image Analyst 2013년 12월 16일
It's just common sense so I'm not going to try to find a paper that mentions it. Everybody knows this. The narrow the histogram, the more uniform the image and the wider it is, the more dynamic range and contrast you'll have. It would be like trying to find a paper that says if the mean of a histogram is higher then the intensity is higher - it's just common sense.

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

카테고리

Help CenterFile Exchange에서 Build Interactive Tools에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by