Re: contouring from an explicit point in an array [message #34709] |
Thu, 03 April 2003 09:59 |
K. Bowman
Messages: 330 Registered: May 2000
|
Senior Member |
|
|
In article <b6href$lg7$1@agate.berkeley.edu>,
egraves@socrates.Berkeley.EDU (Ted Graves) wrote:
> Is there a way to get only the contour of an image that passes through a
> given point? I'm currently doing this by contouring the entire image
> using the intensity of the desired point as a level, and then only keeping
> the contour with a vertex within half a pixel of that point. But this
> seems pretty kludgey and error-prone to me.
Are you using the PATH_INFO and PATH_XY keywords to retrieve the
coordinates of the contour from CONTOUR? Those paths may have multiple
pieces, so you will have to select the one you want using a method like
the one you are currently using.
Ken Bowman
|
|
|
Re: contouring from an explicit point in an array [message #34710 is a reply to message #34709] |
Thu, 03 April 2003 09:57  |
Matt Feinstein
Messages: 33 Registered: July 2002
|
Member |
|
|
On Thu, 3 Apr 2003 17:36:15 +0000 (UTC), egraves@socrates.Berkeley.EDU
(Ted Graves) wrote:
> Hi all,
>
> Is there a way to get only the contour of an image that passes through a
> given point? I'm currently doing this by contouring the entire image
> using the intensity of the desired point as a level, and then only keeping
> the contour with a vertex within half a pixel of that point. But this
> seems pretty kludgey and error-prone to me.
>
Don't know if there's a method that's a lot better, but I'd subtract
the critical value from the intensity array so that the desired level
value equals zero and use a filled contour to reduce the pixel
boundary error.
Matt Feinstein
--
The Law of Polarity: The probability of wiring a battery with
the correct polarity is (1/2)^N, where N is the number of times
you try to connect it.
|
|
|