Re: Path Writer plugin
Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Path-Writer-plugin-tp3703553p3703554.html
On Monday 27 February 2006 20:04, Michael Doube wrote:
> My problem is this: I don't want the points of the path that define the
> edges of the image, just the points on the joint surface. Is there a
> quick hack that I can do that dumps only the points that are not on the
> image boundary? My Java skills are non-existent, so any comments
> appreciated.
No particular solution only some comments.
I am not sure the format of the path returned by the plugin, but if they are
ordered along the curve and it is not self-intersecting, you could define a
rectangular ROI that encloses the points of interest and then go through the
list of points and delete those that are not in the ROI.
If the search along the boundary is done using an edge tracking algorithm like
Freeman's (code in the Particles8 plugin), then this becomes a complicated
problem. Imagine that the boundary crosses the same point twice in a shape
like o-o. If the detection of the boundary starts from the top left pixel
(the top of the left "o" and the search goes clockwise, the line in the
middle will be crossed going from let to right and also when coming back.
You would get those coordinates recorded twice. I suppose that this may be a
problem depending on what is one is intending to measure.
Another idea: would NeuronJ do the trick?
Cheers,
Gabriel