matlab - find the edge based on normals -


i have 480*640 depth image, , got normals (a 480*640*3 matrix) of each pixel depth image. know how find edge based on normal information?

thanks lot!

an intuitive definition of edge in depth image surface normal faces away viewer. assuming viewing direction [0 0 -1] (into xy plane) normal has vanishing z component can characterized edge.

e = abs( depth(:,:,3) ) < 1e-3; %// nice starting point 

you need set threshold based on data.

after might consider applying non-maximal suppression or other morphological cleaning operations.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -