Subtracting 3d datasets
显示 更早的评论
I have two datasets both with the same amount of X,Y,Z points. I wish to subtract one from the other obtaining the change in the depth from the 2 sets. Is a mesh grid still the best option or do I lose the Z values?
回答(1 个)
Kirby Fears
2015-9-17
编辑:Kirby Fears
2015-9-17
Hi Jessica,
Can you store the data in a three dimensional array?
Can you also try to explain the operation more clearly? I'm not exactly sure what you meant:
"I wish to subtract one from the other obtaining the change in the depth from the 2 sets."
Here's a simple example that might help:
>> threes=3*ones(5,5,5);
>> twos=2*ones(5,5,5);
>> result=threes-twos;
2 个评论
Jessica Sanow
2015-9-18
Kirby Fears
2015-9-18
I see. Hopefully a user of the Computer Vision System toolbox can answer this. It would be good to update your post to specifically say 3-D point cloud.
Sorry I'm not familiar with manipulating the point cloud data structures.
If you can extract simple arrays from your data structure, it sounds like each point clouds could be simplified to a A x B matrix where each element of the matrix is the Z value. Where element (a,b) of the first pc's matrix has the same (x,y) coordinate as element (a,b) of the second pc's matrix. Then you could simply subtract the two matrices.
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!