How to indicate this data.?

This are two 3D data files..
point = dlmread('N3d.txt');
plot3(point(:,1),point(:,2),point(:,3),'r.')
rotate3d on
point = dlmread('3d.txt');
plot3(point(:,1),point(:,2),point(:,3),'g.')
rotate3d on
I am reading this both using above code.
Now, line image created by N3d.txt have space between it if we compare it with 3d.txt file on same graph.
So, how to differentiate that space with another colour..? (I want to indicate it with another colour)

답변 (1개)

Cedric
Cedric 2013년 2월 16일

0 개 추천

Try with this:
figure(1) ;
clf ;
hold on ;
rotate3d on ;
point = dlmread('N3d.txt');
plot3(point(:,1),point(:,2),point(:,3),'r.')
point = dlmread('3d.txt');
plot3(point(:,1),point(:,2),point(:,3),'g.')

댓글 수: 5

Lalit Patil
Lalit Patil 2013년 2월 16일
Oh sorry...
I change my code above..
But not like this.. I want to indicate difference between two lines, which is space gap.
Cedric
Cedric 2013년 2월 16일
편집: Cedric 2013년 2월 16일
Then you'll have to define what "difference" means to you. Do you want to fit lines? Compute some average euclidean distance? Anything else?
Lalit Patil
Lalit Patil 2013년 2월 16일
Yes, first i want ti fit lines, so they will be overlapped.
Then if they are far away of 3 pixels maximum from each other then allow them, otherwise indicate them.
so, i have to compare each first integer digit of N3d.txt file with 3d.txt file and if they are not matched at least three times then remeber that value, finally merge all values and indicate them on graph.
This thing i have to do..
Cedric
Cedric 2013년 2월 16일
편집: Cedric 2013년 2월 16일
You'll find plenty of tools for fitting lines (just look up for fit line 3d for example) and for computing euclidean distance between points/lines, but how do you define the "dimension" of a pixel in what you are trying to do?
Lalit Patil
Lalit Patil 2013년 2월 16일
편집: Lalit Patil 2013년 2월 16일
Ok.. I have done a fitting using iterative closest point algorithm. So, they are getting overlap on each other, and giving rotational and translational parameters. overlapped image is attached here,
And maximum allowable euclidean distance is 3 between two rows.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

태그

질문:

2013년 2월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by