Re: CURSOR skips a few beats :-( [message #69619] |
Fri, 29 January 2010 13:33  |
cgguido
Messages: 195 Registered: August 2005
|
Senior Member |
|
|
I am glad Google is immortalizing all this: THE David Fanning just
called *me* his friend! Wot?! If only JD Smith would follow suit I
could retire happy :-)
David - It seems to me that allowing the user to measure thickness at
arbitrary points could allow for a few sources of error: Are the
starting points chosen uniformly along the lumen? are the ending
points really the closest ones? Of course, in many cases determining
where exactly the lumen/tissue (or any other) edge is, is itself a
difficult problem... My thinking was that if the user draws what he/
she is happy calling an edge (I am not a biologist - it all looks
fuzzy to me), then I can measure the shortest distance at all points,
and therefore eliminate some error. (BTW, we're looking at the
effectiveness of various tissues as a barrier to virus particles....)
David and paulv - Why do widgets act as anti-hatered shields?
Literally, all I want is for the user to choose two borderlines. I
will then spit out a list of thicknesses to a text file so the
biologists can use Excel and carry on. Most of the code that does
other "fancy" analysis (particle tracking, etc.) is used from the
command line. I could write GUIs for all this, I just don't really see
the advantages given that we are dealing with simple operations... Can
you point me to a thread that expands on the advantages of Widgets in
scientific computing? - I *am* interested. And why not go all the way
and use custom iTool interface then? (PS It is important to me that
this works with X11 forwarding over ssh...) I am not trying to bash
widgets or objects - I promise I am only trying to understand if these
approaches are worth the coding time, given the task and audience.
paulv - thanks for the link. Didn't know this stuff had a name!
pp - type=1 it is! much neater than my IF THEN WHAT? statements
By the way, the code above seems to work ok. One problem is when the
cursor exits the window and come back in, IDL looses it: you need to
re-click on the X11 window...
Sincere thanks to all of you for your help and patience.
Gianguido
|
|
|