Compare two matrices and obtain points in common
Show older comments
Hi everyone! I'm trying to extract the coordinates XYZ of some paths I extracted from an orthophoto. I have the coordinates XY (matrix 323659x2) of the paths and a point cloud containing the coordinates XYZ of the whole area including the paths (matrix 6501725x3). The coordinates (UTM) are 6-7 digits long and have 3-4 decimals so I need to introduce 1 meter tolerance to make it work. I want to use the coordinates XY from the paths and the Z from the point cloud. I've tried it using intersect and ismembertol.
[ia,ib]=ismembertol(XY,XYZ(:,1:2),1,'DataScale',1);
xyz=XYZ(ia,:);
Accepted Answer
More Answers (0)
Categories
Find more on Process Point Clouds in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!