how to select and delete unwanted coordinates from a set of data obtained by find() command from an binary image of a river.
2 次查看(过去 30 天)
显示 更早的评论
hi, i´m trying to find distances from a curve obtained by a binary image from a river. Precisely i´m using the "Arclength()" function (https://la.mathworks.com/matlabcentral/fileexchange/34871-arclength)
the principal issue is there´s some points that screw everything by being aberrant and not having the desired tendency
to find the coordinates form this image i have used "find()" comand and get the local coordinates, but, after ploting the data i noticed that there´s some points in the same "x" axis that have multiple data in "y" axis.
I need help to be able to optimize my code and automatically delete the data where this occurs and join them with the ends because I need to do this procedure with multiple images.
by the way, i use this code. thanks
a=imread('valdivia1analizar.png');
imshow(a);
impixelinfo;
b=im2bw(a);
%% step 2: Find TALWEG
figure,imshow(b)
impixelinfo;
C=watershed(bwdist(b))==0;
[icoords,jcoords]=find(C);
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!