posted Sat 15 Apr 2006 by Michael Galloy under
IDL,
Object graphics,
Widgets
IDL 6.2 added several new capabilities to the IDLgrImage class in the object graphics system. One of them is the ability to support large images using tiling. (Another is significantly faster rendering time in typical cases.)
The new tiling features allow portions of the image to be read from a data source as needed. For applications that zoom using data sources with an image pyramid, level of detail rendering is used. For example, if a thumbnail of the entire image is needed, only a low resolution image is requested from the data source and rendered by IDLgrImage.
The mechanics of how this works requires a bit of communication between the destination object (IDLgrWindow, IDLgrBuffer, IDLgrClipboard or IDLgrPrinter support it) and the IDLgrImage object using a few new methods (most notably, queryRequiredTiles for the destination objects and setTileData for IDLgrImage).
Running the demo
The demo program is a minimal tiling image viewer which supports scrolling (click and drag as well as with the arrow keys) and zooming (page up and page down). To test it out:
- First download the source code (
mg_tilejp2.pro and mg_tilejp2_demo.pro).
- Change directories in IDL to a directory that you want to save the JPEG 2000 data file in.
- You need to run
mg_tilejp2_demo at least the first time you run the demo code in order for the JPEG2000 image to be created. After that, you can run mg_tilejp2 directly.
Continue reading “IDLgrImage tiling in IDL 6.2.”