Image - calculating gradient

2 visualizaciones (últimos 30 días)
Nima Azar
Nima Azar el 11 de Jul. de 2011
Hi all, I have a grayscale image. I need to calculate the gradient from where it's saturated to where it's fading out. Does matlab has a function for that? If not, do you have any ideas on how to do so?
thanks.

Respuestas (1)

Image Analyst
Image Analyst el 12 de Jul. de 2011
Did you look? If you had, you would have seen gradient(). You can also use conv2() or edge() or others. Post your image if you want more help.
  2 comentarios
Nima Azar
Nima Azar el 12 de Jul. de 2011
So this image is very similar to what I'm dealing with:
http://www.buildtutorial.com/wp-content/uploads/2010/04/02-light-gradient.jpg
I need to select the area first then calculate the gradient on the image. Sorry I'm very new to matlab.
regards,
Image Analyst
Image Analyst el 12 de Jul. de 2011
And how do you want to select an area (before calculating the gradient)? Automatically based on intensity or something? Manually by having user trace some area?

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by