comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: display question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: display question [message #11200 is a reply to message #11194] Mon, 09 March 1998 00:00 Go to previous messageGo to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Joseph Scott Stuart wrote:
>
> 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?
>
> Thanks for any help!
>
> scott
>
> --
> Scott Stuart
> stuart at ll mit edu

if your boxes are very irregularily shaped, you may want to try the
POLYFILL command. I use this e.g. to fill 3D model grid boxes on any map
projection. Usually, 6 polygon point sare sufficient. But I am only
dealing with otoo 300 "pixels", so it may well be that 15000 will make
this approach too slow.

I guess the solution to your problem depends to a large extent on
(A) how different your pixels are, (B) how complicated their shape is,
and (C) whether you set your priority on a high resolution output (e.g.
postscript) or a fast screen output.

Martin.


--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
186 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
IDL-homepage: http://www-as.harvard.edu/people/staff/mgs/idl/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Quasi-freehand curve fitting...
Next Topic: Vector-Drawn Fonts in plotting procedures

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:19:30 PDT 2025

Total time taken to generate the page: 0.95749 seconds