How to find the contrast of a image in Matlab?

답변 (1개)

Image Analyst
Image Analyst 2015년 7월 26일

1 개 추천

How do you define it? Is it just the max minus the min?
image_contrast = max(grayImage(:)) - min(grayImage(:));
or do you want some other definition? Maybe like the ratio of the mean to the standard deviation or something? It might help if you said what you are going to do with this information if you can get it.

댓글 수: 1

shree san
shree san 2017년 10월 8일
Dear sir/madam, I have tried the above code and it worked.Thank you so much.But I have question about this image contrast.what should be the value of output so that the best contrast enhanced image can be chosen?

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

카테고리

도움말 센터File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

태그

질문:

2015년 7월 26일

댓글:

2017년 10월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by