Borrar filtros
Borrar filtros

How to find the contrast of a image in Matlab?

27 visualizaciones (últimos 30 días)
Anushka
Anushka el 26 de Jul. de 2015
Comentada: shree san el 8 de Oct. de 2017
How to find the contrast of a image in Matlab?

Respuestas (1)

Image Analyst
Image Analyst el 26 de Jul. de 2015
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 comentario
shree san
shree san el 8 de Oct. de 2017
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?

Iniciar sesión para comentar.

Categorías

Más información sobre Image Filtering and Enhancement en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by