How to find the contrast of a image in Matlab?

42 次查看(过去 30 天)
How to find the contrast of a image in Matlab?

回答(1 个)

Image Analyst
Image Analyst 2015-7-26
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Filtering and Enhancement 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by