How to estimate depth from gradient?

4 Ansichten (letzte 30 Tage)
Talya
Talya am 3 Nov. 2014
Beantwortet: Sean de Wolski am 4 Nov. 2014
Hello,
I have a gradient of an image:
mask = fspecial('sobel');
mask2 = mask';
dX = imfilter(image, mask);
dY = imfilter(image, mask2);
And I want to estimate depth from the gradient, any thoughts on how to do so?
Thanks in advance!
  3 Kommentare
Image Analyst
Image Analyst am 3 Nov. 2014
Don't call your image variable "image" - that is the name of a built-in function that you shouldn't destroy/override. What do the "intensity" values of your image represent? A distance, like it's a topographic, profilometry, or Kinect image?
Talya
Talya am 4 Nov. 2014
Bearbeitet: Talya am 4 Nov. 2014
Thank you for the advice on image variable.
Yes the image intensity values represent a distance.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sean de Wolski
Sean de Wolski am 4 Nov. 2014
If your pixels represent depth (i.e. change in a third dimension), then integrating the gradient should give you height. This means you'll need to know the height at one location.

Community Treasure Hunt

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

Start Hunting!

Translated by