Re: CURSOR skips a few beats :-( [message #69624 is a reply to message #69623] |
Fri, 29 January 2010 09:00   |
cgguido
Messages: 195 Registered: August 2005
|
Senior Member |
|
|
Thanks David and pp.
David - yes, I solved that rookie operator precedence mistake while
hitting myself in the forehead! :-(
Some quick background about the project. We are taking micrographs of
tissue samples (mostly skin). I am writing a set of IDL programs that
would allow others in the lab to draw two curves on the picture, say
along the lumen and along the edge of some skin layer, and then
calculate the thickness of that part of the skin. I define thickness
as the shortest path from each point in the lumen line to any point in
the inner line. So far so good.
The problem is that without the interpolation above, while you move
along a straight-ish part of the tissue (you can therefore move faster
with less error) you get a few points. On the other hand, if there is
a part of the tissue that is convoluted (and the user instinctively
slows down) you get more, or even every, point the mouse visits. This
behaviour would bias the average thickness value toward the thickness
of convoluted parts of the tissue, and that's not cool.
What do you guys think? I fear I may be reinventing a few wheels,
maybe a whole set of wheels.
pp - your way seems much simpler to read... I am starting to see why
these here objects are cool... I will investigate further.
Thanks again to both of you.
Gianguido
|
|
|