Re: Image slicing [message #16901] |
Wed, 25 August 1999 00:00  |
Tim Lamont-Smith
Messages: 5 Registered: August 1999
|
Junior Member |
|
|
Gwyn Fireman wrote:
> Tim Lamont-Smith (tlsmith@dera.gov.uk) wrote:
> : What I would really like to be able to have is something a
> : little bit like LIVE_IMAGE, where it is possible to draw a
> : line on the image using the cursor, but then have the data
> : values along that line returned, and possibly have the
> : indices returned as well.
>
> Tim -
>
> I did this in 1993, IDL version 2. The procedure is heavily integrated
> into the calling application, and would take some work to make current and
> modular. If nobody else offers in a couple of days, I might just whip it
> into shape or send it to you as is.
>
> Hint: I use XOR graphics for the "rubber band" line, CURSOR to get the
> endpoints in device coordinates, converted to data coords myself, and
> found the coords between endpoints myself.
I wasn't familiar with XOR graphics, but it turned out to be straight forward
once I looked at BOX_CURSOR. I pretty much followed the route you outlined.
David Fannings tips on image profiles was also useful.
Thanks,
Tim
--
*************************************
Tim Lamont-Smith
DERA, R205, St. Andrew's Road,
Malvern, Worcs., WR14 3PS
Tel.: +44 (0)1684 896753
Fax.: +44 (0)1684 894252
*************************************
|
|
|