How to compute image global gradient?

1 Ansicht (letzte 30 Tage)
Talya
Talya am 17 Nov. 2014
Beantwortet: Image Analyst am 24 Nov. 2014
I know that imgradient computes image local gradient. Is there a way to compute the global gradient?
For example, for this image:
Here is the global gradient:

Antworten (1)

Image Analyst
Image Analyst am 24 Nov. 2014
Talya, I have no idea what that means. Gradients by definition are local - they're the slope of the function at some location. And you don't have a single number for the whole image - you have a 2D image, so presumably you have different gradient values for each pixel location. However your gradient does not look like the expected, which would be like an edge detection image. You're going to have to give some formula for turning your color image into this grayscale image, otherwise I have no idea.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by