Rank: 62661 based on 0 downloads (last 30 days) and 0 file submitted
photo

Chen Shuo

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Chen Shuo
Updated File Comments Rating
02 Dec 2010 Accurate Fast Marching Multistencils second order Fast Marching 2D and 3D including rk4 shortest path and skeletonize Author: Dirk-Jan Kroon

My i ask a question: I prceed the codes as following, but the shortestpath is not finded. What is the reason?
My testing code:
SourcePoint = [26; 100]; %Starting point
F = zeros([101 101]);
F(9:27,10:12) = 1;
F(25:27,12:100) = 1;
SpeedImage = F*1000+0.001;
[X Y] = ndgrid(1:101, 1:101);
T1 = sqrt((X-SourcePoint(1)).^2 + (Y-SourcePoint(2)).^2);
tic; T1_MSFM2 = msfm(SpeedImage, SourcePoint, true, true); toc;
figure, imshow(T1_MSFM2,[ ]); colormap gray;
StartPoint=[10;11];
ShortestLine=shortestpath(T1_MSFM2,StartPoint,SourcePoint);
hold on, plot(ShortestLine(:,2),ShortestLine(:,1),'g')

Contact us