[~, lowMap] = histeq(grayImage(binaryImageLow));
이전 댓글 표시
what does the above code do ? and what is ~ ? can i've a simple example
채택된 답변
추가 답변 (1개)
Image Analyst
2013년 7월 3일
0 개 추천
grayImage(binaryImageLow) takes all the pixels that are "true" (white) in the binary image (mask) and strings them together into a 1D array - essentially a list of all the gray levels in the masked area.
histeq() then does histogram equalization on that 1D array. In my experience, histogram equalization is rarely helpful or even needed at all. It returns the lookup table that tells what input gray level should be mapped to what output gray level.
카테고리
도움말 센터 및 File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!