Rank: 5738 based on 15 downloads (last 30 days) and 2 files submitted
photo

Andr?

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Andr? View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 Oct 2009 Intersection of two lines in 2D Takes four points, gives intersection of their connecting lines Author: Andr? 2d geometry intersect... 10 1
  • 1.0
1.0 | 2 ratings
28 Jan 2009 mixture of rem and mod mod(x,180) will for any x return the same direction (right sign) but between -90 and +90 Author: Andr? rem, mod, angle, floor, direction, directionality 5 0
Comments and Ratings by Andr?
Updated File Comments Rating
23 Jan 2009 mdilate This has 2 files mdilate.m(performs dilation of image) and merode.m(performs erosion on image). Author: Yali Wei

The core of the merode algorithm should be:
if( Se(m,n)~=0 && tmp1>0 && tmp2>0 && tmp1<=Isize(1,1) && tmp2<=Isize(1,2) )
if (Image(tmp1,tmp2)~= 1)

otherwise any erosion-kernel with zeros in it will erode away everything but exact copies of the kernel.

Comments and Ratings on Andr? 's Files View all
Updated File Comment by Comments Rating
11 Jul 2013 Intersection of two lines in 2D Takes four points, gives intersection of their connecting lines Author: Andr? Anirban

20 Oct 2009 Intersection of two lines in 2D Takes four points, gives intersection of their connecting lines Author: Andr? Duane Hanselman

function name duplicates a standard MATLAB function name that finds the intersection of two sets.
poor help, no error checking, etc.

content of the file is:
%computes the intersetion of a_b and u_v
% a b u and v have to be 2d point vectors eg. a = [3 4];
x1=a(1);
x2=b(1);
x3=u(1);
x4=v(1);
y1=a(2);
y2=b(2);
y3=u(2);
y4=v(2);

ua = ((x4-x3)*(y1-y3)-(y4-y3)*(x1-x3))/((y4-y3)*(x2-x1)-(x4-x3)*(y2-y1));
x = x1 + ua*(x2 - x1);
y = y1 + ua (y2 - y1);
p = [x,y];

Contact us