How to estimate depth from gradient?
이전 댓글 표시
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
David Young
2014년 11월 3일
Why do you think that might be possible?
Image Analyst
2014년 11월 3일
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?
답변 (1개)
Sean de Wolski
2014년 11월 4일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Point Cloud Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!