Rank: 2618 based on 22 downloads (last 30 days) and 3 files submitted
photo

Michael Yoshpe

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Michael View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 May 2009 Project a planar polyline on another polyline Find a projection of a cartesian polyline on another polyline. Author: Michael Yoshpe geometric transformat..., image registration, polyline, projection, range, cross range 1 2
  • 2.0
2.0 | 2 ratings
25 Oct 2006 stok - string tokenizer Find the addresses of tokens in the strings Author: Michael Yoshpe strings, string tokens delimet... 3 8
23 Oct 2006 Distance from a point to polygon Distance from a point to 2-D polygon Author: Michael Yoshpe geometric transformat..., image registration, polygon point distanc... 18 5
  • 4.66667
4.7 | 6 ratings
Comments and Ratings by Michael
Updated File Comments Rating
28 Nov 2008 Distance from a point to polygon Calculate the distance from a point to 2-D polygon, and the point on the polygon closest to the poin Author: Alejandro Weinstein

The following code you added to my original function is unnecessary, since the formula that computes xp and yp automatically takes care of these cases:

% Test for the case where a polygon rib is
% either horizontal or vertical. From Eric Schmitz
id = find(diff(xv)==0);
xp(id)=xv(id);
clear id
id = find(diff(yv)==0);
yp(id)=yv(id);

The only case we should guard against is a case when BOTH A (-diff(yv)) and B (diff(xv)) are identically zero at some points. It effectively means that the input for polygon verices includes duplicate points, i.e. some ribs have zero length and no projection is possible. This case should be flagged out and the function should return an error.

Michael Yoshpe

Comments and Ratings on Michael's Files View all
Updated File Comment by Comments Rating
22 Jul 2010 Distance from a point to polygon Distance from a point to 2-D polygon Author: Michael Yoshpe Nieves, Xavier

Hi, I have been trying to create a function similar to this one... if I were to have a random polygon but always have as an input the x,y coordinates of the vertices's and and the x,y coordinate of a point. can I use this function to determine the minimum distance of the point to the polygon, and if I can should express the inputs in what way... ?? nice function

06 Feb 2010 Distance from a point to polygon Distance from a point to 2-D polygon Author: Michael Yoshpe D, Cristian

Thanks for this function! it was very usefull!

29 Sep 2009 Project a planar polyline on another polyline Find a projection of a cartesian polyline on another polyline. Author: Michael Yoshpe Chamane

interesting function

13 May 2009 Project a planar polyline on another polyline Find a projection of a cartesian polyline on another polyline. Author: Michael Yoshpe Rowland, Darren

This function is as bloated and confusing as the above description. There is just too much going on. An example of use would really help, perhaps included in a published HTML page. I really doubt that anyone can use the file as it is.

01 Apr 2008 Distance from a point to polygon Distance from a point to 2-D polygon Author: Michael Yoshpe Weinstein, Alejandro

I added the suggested test from Eric Schmitz, and also return the point of the polygon closest to the point. It is available here:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=19398&objectType=file

Top Tags Applied by Michael
geometric transformation, image registration, cross range, polygon point distance, polyline
Files Tagged by Michael View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 May 2009 Project a planar polyline on another polyline Find a projection of a cartesian polyline on another polyline. Author: Michael Yoshpe geometric transformat..., image registration, polyline, projection, range, cross range 1 2
  • 2.0
2.0 | 2 ratings
25 Oct 2006 stok - string tokenizer Find the addresses of tokens in the strings Author: Michael Yoshpe strings, string tokens delimet... 3 8
23 Oct 2006 Distance from a point to polygon Distance from a point to 2-D polygon Author: Michael Yoshpe geometric transformat..., image registration, polygon point distanc... 18 5
  • 4.66667
4.7 | 6 ratings

Contact us