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
Kirby Fears 2015년 9월 17일
편집: Kirby Fears 2015년 9월 17일

0 개 추천

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
Jessica Sanow 2015년 9월 18일
The datasets are point cloud images of an area, one with snow and one without. So the goal is to take dataset 1 and subtract it from dataset 2 and hopefully giving a snow depth. So what I am trying to figure out is if I should make some sort of interpolation or if there is a simple way to subtract the two datasets. Hopefully this helps clarify what I am looking for.
Kirby Fears
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에 대해 자세히 알아보기

제품

질문:

2015년 9월 17일

댓글:

2015년 9월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by