How to find the contrast value of an image?

12 vues (au cours des 30 derniers jours)
Vishalini Ram
Vishalini Ram le 9 Fév 2018
Commenté : Image Analyst le 23 Juin 2019
I have to extract features of a retinal image out of which contrast of the image is one feature. Is there any inbuilt function to find the contrast value of a grayscale image? I dont find any inbuilt function or corresponding code.

Réponses (1)

KSSV
KSSV le 9 Fév 2018
  3 commentaires
Syed Zenith Rhyhan
Syed Zenith Rhyhan le 23 Juin 2019
How this code can be worked?
Please give me the source code?
Image Analyst
Image Analyst le 23 Juin 2019
This is the source code given in the answer:
image_contrast = max(grayImage(:)) - min(grayImage(:));
Did you overlook it? grayImage should be replaced with the name of your image variable of course.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by