Re: How to obtain maximum points for a set of data point



In article <ef53791.-1@xxxxxxxxxxxxxxxxxxxxxxx>,
Noel <noel.tavan@xxxxxxxxx> wrote:
I am in need of help. I am trying to obtain the thickness of a dotted
line (created by ink). So I did some image analysis and i have a set
of coordinate for the boundary of the line and I am trying to obtain
the thickness. any idea how?

It seems to me that the thickness of a line should be the minimum
distance over all point pairs where the pair members are on opposite
sides of the line. This algorithm could be slightly optimized by
considering only the points that are adjacent to the line. I can
mentally picture reducing the locality even further, but I do not
have a clear algorithm in mind at the moment.


Let's see... pick a point, P1, on one side of the line. Pick
an arbitrary direction that leads through the line and continue
onwards until you encounter a point, Q1, that is on the other side
of the line. Now consider the set all points within a circle of radius
|Q1-P1| around P1. Go through the set starting from the closest
points to P1; for each set member point, if the point is on the
same side of the line as P1, or is -in- the line, discard that
point. At any given radius of consideration, if one or more points
remain after the culling, then they are all on the other side of
the line and all the same distance away from P1 and that distance
is the thickness of the line near P1; if, though, no points remain
after the culling, move to the next larger radius and re-cull,
continuing onward until eventually you have points remaining; worst
case is that Q1 will definitely be within the radius of consideration,
so you will find -some- definite thickness, T1.

Now, choose any other point P2 on the same side of the line as P1,
and consider the set of all points within a circle of radius T1
around P2, running the same sort of culling as above. Either
the culling will remove everything or it will find some point
of distance no greater than T1; if that distance is less than T1,
it becomes the new radius of consideration. Repeat this algorithm
for the remaining points on the same side as P1; the final thickness
determined is the thickness of the line.

This algorithm implicitly takes into account the possibility
that the line is curved or variable width or at an arbitrary angle.
But it does require a discretization of the point grid in order to
limit the points of consideration to a finite enumerable number;
it wouldn't work very well for for a continuous real-number map.
--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes
.



Relevant Pages

  • Re: Search within 50 miles of xxxx zipcode
    ... If the 50 radius takes you over a mountain range, or a body of water, then ... your driving distance can vary a great deal. ... Latitude and Longitude are always approximate, as the surface of the earth ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Radius of largest n+1 balls in n-dimensional unit cube?
    ... sqrtis maximal distance between two corners of the cube, ... Then the distance from the center of the ball in that corner to the ... If I want to put N+1 balls (all with ... the same radius R), within the unit hypercube such that: ...
    (sci.math)
  • Re: Time is what we measure with a clock.
    ... the brain where they form a frame in memory. ... necessarily include some number of these minimum units of change and so ... The earliest radius I can imagine would be the ... distance the radius could extend during the same period light speed ...
    (talk.origins)
  • Re: Average Distance to Circumference
    ... placed on a random point in the circle and immediately begins crawling ... The distance it must crawl is d, where by the Law of Cosines ... If we consider infinitesmal triangles area rho^2/2 dtheta, ... it with radius, then average radius after integrations would be 2 r/3. ...
    (sci.math)
  • Re: tetrahedron problem
    ... > I believe this is the maximum possible distance between points ... by the intersection of the two spheres of radius one with centers ... for consider the circle of radius 1 through ... A or B. It passes through the vertices of the opposite edge ...
    (sci.math)