Low contrast and high contrast

6 次查看(过去 30 天)
Need some help..... How i know low contrast or high contrast in a picture...? (and need code matlab)..?
And if that can, i want know how to get value low contrast and high contrast...? (and need code matlab)...?
  6 个评论
Nayuta Altria
Nayuta Altria 2019-12-17
Hmm.... How to implement PDF with image
Nayuta Altria
Nayuta Altria 2019-12-17
What parameters can indicate that an increase in contrast....?

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2019-12-17
imadjust() might be the function you're looking for. Try it.
  5 个评论
Image Analyst
Image Analyst 2019-12-17
Yes. Just pick something like 0.5 or 3.0.
To display the range, use fprintf()
newImage = uint8(someFactor * double(grayImage));
imshow(newImage);
fprintf('The max value = %f, the min value = %f.\n', max(newImage(:)), min(newImage(:)));
Nayuta Altria
Nayuta Altria 2019-12-18
编辑:Nayuta Altria 2019-12-18
Oo ok its time to try it...

请先登录,再进行评论。

更多回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019-12-17
编辑:KALYAN ACHARJYA 2019-12-17
In somehow I feel it as a subjective term, still you can find it from historam of the image. As per my basic understanding contrast of an image represents the gray value distribution (variation) in the image (More variations more contrast), go for probability distribution function.
Though you can estimate this way (somehow)
con_data=max(garyImage)-min(grayImage);
If the con_data result is maximum as high contrast image, somehow you have to decide the threshold, whether high or low (0-255 in 8 bit gray image)
  2 个评论
Rik
Rik 2019-12-17
Don't forget that an image is probably not a vector, so your code would result in a vector of values.
Nayuta Altria
Nayuta Altria 2019-12-17
I dont understand about that code, can explain it again..? And
What parameters can indicate that an increase in contrast

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by