how can i implement given formula in image processing?

2 visualizaciones (últimos 30 días)
ibtisam aslam
ibtisam aslam el 16 de Feb. de 2014
Comentada: Image Analyst el 17 de Feb. de 2014
i have to aplly this foumula for contrast streching plz give me matlab program of this formula
s=(a-rmin)*(L/(rmax-rmin)); where L=256 rmin=0 rimax=255

Respuesta aceptada

Nitin
Nitin el 16 de Feb. de 2014
There are lots of options for this:
Please check out the Matlab functions here.
You might need to define smaller blocks in your image and apply it locally depending on your requirements
  4 comentarios
ibtisam aslam
ibtisam aslam el 17 de Feb. de 2014
nitini i agree with you.. can u send me complete program...?
Image Analyst
Image Analyst el 17 de Feb. de 2014
I don't. I see no reason why scaling an image would require doing it region by region. Nothing has been said by the original poster that would require that. And since mat2gray does exactly the operation they requested, I'm not sure why they're not following my answer.

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 16 de Feb. de 2014
Simply use mat2gray().
Or, if you want to scale to something other than min-to-0 and max-to-255 you can use imadjust.

Categorías

Más información sobre Image Processing Toolbox 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