Re: display question [message #11218 is a reply to message #11194] |
Fri, 06 March 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Joseph Scott Stuart (nospam@ll.mit.edu) writes:
> I have a sensor to calibrate in which the pixels are not laid out in a
> simple grid. I can construct an array that gives the X-Y coordinates
> (relative to some point on the focal plane) of the centers of each
> pixel, and I know the shape of each pixel. When taking calibration
> data from the sensor, I'll have an array that gives the intensity that
> each pixel is measuring. What I would like to do is make a display
> that shows a little box for each pixel, of the right size, in the
> right location with the measured intensity, and then be able to zoom
> in using the mouse cursor to select a box.
>
> I can probably get something to work by using convert_coord to get the
> device coordinates of each pixel corner, then constructing an array of
> the appropriate number of pixels, and using tv to display. But, there
> are over 15,000 pixels, and I fear that this will be much too slow.
> Are there any better ways to display a bunch of little boxes each with
> its own color at its own specified data coordinates?
I presume that many of these boxes will be the same size
and shape. One of the things I've done is make my own
plot symbol (using USERSYM) that is the correct shape for
what I want to plot. Then I just set up a plot (with or
without axes) and simply plot the pixels into the data
space with the Plot command and PSYM set to 8. This saves
having to go into device coordinate space.
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|