How to mapp a 3D point cloud on 2D plane

17 views (last 30 days)
Struct03
Struct03 on 24 Nov 2014
Commented: Penny on 11 Dec 2017
Hi I have a matrix with 3D point cloud (each column contains coordinate x,y,z). What I want to do is map 3d points onto 2d plane (with specific size of plane i.e. 4000x4000 and according to proper coordinates). In short: I rotate, scale, translate a point cloud, and than I want to map(project)one view from specific direction onto plane. As a result I want to obtain a kind of binary mask of the object. (I think function 'view' which is used to visualisation do something pretty similar) How should i solve this problem? Thank you for all help.

Answers (1)

Matt J
Matt J on 24 Nov 2014
Edited: Matt J on 24 Nov 2014
If column vectors u and v are an orthogonal basis for your plane,
newpoints = Cloud3D*[u,v];
  5 Comments
Matt J
Matt J on 11 Dec 2017
Hi Penny,
You would do,
newpoints = A*uv*uv.';
Penny
Penny on 11 Dec 2017
Got it Matt. Thank you very much.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!