Do you know any histogram modification methods?
이전 댓글 표시
I'm looking for any histogram modification methods besides Equalization and Stretching the histogram. Code for them would be very helpful too.
답변 (1개)
Image Analyst
2022년 6월 25일
편집: Image Analyst
2022년 6월 25일
0 개 추천
In the Image Processing Toolbox there are
- histeq, which gives lousy images,
- adapthisteq which gives good images.
- imadjust which expands the dynamic range. Usually not needed but can be if you want to save a contrastier image with imwrite
- Morphological functions like imclose and friends
- Denoising functions like medfilt2
There are many, many others. Almost anything you do to an image will change the image, even something as simple as adding a number to it or multiplying it by an intensity scaling factor, or even denoising. Your question can't be answered comprehensively because there are just a bazillion answers.
댓글 수: 5
Jakub Mis
2022년 6월 25일
Image Analyst
2022년 6월 25일
The histogram is an array of counts. Just a normal array of numbers. Again, you can do virtually anything with a generic array of numbers. Like you could use cumsum to compute a cdf. Or you could use findpeaks or max() or islocalmin() or anyone of hundreds of functions that operate on vectors.
Rather than ask the unanswerable "What can I do?", why don't you explain what you want to do and ask "How can I do that?"
Jakub Mis
2022년 6월 25일
Image Analyst
2022년 6월 25일
You can get the probability with the 'Normalization' option in histogram. Then you can plug that P into your equations to get a new gray level for the graylevel at P(z). You can transform the whole image in one equation like they show.
Jakub Mis
2022년 6월 25일
카테고리
도움말 센터 및 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!
