Presentation is loading. Please wait.

Presentation is loading. Please wait.

PoSoft - Paul Obermeier‘s Portable Software Img Inside & Out1 Paul Obermeier Third European Tcl/Tk User Meeting. Munich, June 2002

Similar presentations


Presentation on theme: "PoSoft - Paul Obermeier‘s Portable Software Img Inside & Out1 Paul Obermeier Third European Tcl/Tk User Meeting. Munich, June 2002"— Presentation transcript:

1 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out1 Paul Obermeier Third European Tcl/Tk User Meeting. Munich, June 2002 obermeier@poSoft.de paul.obermeier@lfk.eads.net

2 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: Content2 Img from the outside: Img from the inside: - Example applications from EADS/LFK. - Example applications from poSoft. - Current, planned and future state of Img. - Utilities and test programs. - Summary: List of supported formats. Img is a Tcl extension to support various image file formats for use with the Tk photo image. Besides reading/writing from/to files, it also supports image data in Tcl variables (both in binary and uuencoded form).

3 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: LFK examples3 Tk and Img based applications at EADS/LFK The system simulation department of EADS/LFK uses Tcl/Tk and Img for pre- and postprocessing of complex simulations. MDS (Mathematical Digital Simulation): Simulate all relevant components of a missile and it‘s environment in software. Main design issues: Flexibility and portability ( long project durations ). Configuration & Preprocessing Simulation (Batch processing) Visualization & Postprocessing Tk based GUI‘s for safe editing of configuration files. Tk based GUI‘s for configuration and execution of physical models (Example 1). Pure batch programs written in C, C++ or Ada reading input files and generating output files. Tk/Img based GUI‘s for visualization of rendered image sequences (Example 2) and postprocessing of generated simulation data (Example 3).

4 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: LFK examples4 Example 1: GUI‘s for physical models. Left: Graphical frontend for MODTRAN, an atmospheric radiative transfer model. Right: Graphical frontend for Thermos, a LFK developed thermal model.

5 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: LFK examples5 Example 2: OsmVis Replay of multiple infrared image sequences overlayed with vector graphics. Images are read from files in Sun Raster format.

6 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: LFK examples6 Example 3: MdsViewer 2D and 3D visualization of simulation results with Tk/Img and Performer. Grid of height values (DTED format) interpreted as a photo image.

7 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: poSoft examples7 Tk and Img based applications from poSoft www.poSoft.de is my private homepage: Paul Obermeier‘s Portable Software. Home of poTools, a set of portable Tcl/Tk applications: poDiff: Portable tool to recursively compare the contents of two directories. poBitmap: Portable tool to view and manipulate X-Window bitmaps. poImgdiff: Portable tool to compare two images (Example 4). poImgview: Portable tool to view and manipulate images (Example 5).

8 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: poSoft examples8 Example 4: poImgdiff Portable image comparison tool. Images are placed side by side for visual comparison. Generation of difference images and histograms.

9 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: poSoft examples9 Example 5: poImgview Portable image viewer. Includes image browser and batch format conversion.

10 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: State of Img10 State of Img: Current The Img extension was developed and maintained in major parts by Jan Nijtmans. Latest version of Img (1.2.4) was uploaded to SourceForge by A. Kupries in May 2002. - Project page: http://sourceforge.net/projects/tkimg - Project maintainers: Jeff Hobbs, Andreas Kupries, Jan Nijtmans. - Additional developers: Paul Obermeier. - Supported image formats: BMP: Windows bitmap GIF: Graphics interchange format JPEG: JPEG PNG: Portable network graphics format POSTSCRIPT: Postscript (needs ghostscript) TIFF: Tagged image file format WINDOW: Put the content of a window into a photo XBM: X-Windows bitmap XPM: X-Windows pixmap

11 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: State of Img11 Most of the code for the following planned actions is already implemented in an alpha version available at www.poSoft.de. It will be added to SourceForge in two steps: Step1 (June 2002): Enhancements and bug fixes of existing formats: - Add support routines for reading image data in small pieces (RLE). - Add reading of run-length encoded Windows bitmaps. - Speed improvements and bugfixes for XPM format. - Add PPM format to Img to enable -data option. - Various bug fixes. Step2 (July 2002): Addition of new image formats: DTED: Digital Terrain Elevation Data PCX: Paintbrush‘s PCX format RAW: Raw image data (matrix of floats) SGI: Silicon Graphics native format SUN: Sun Raster format TGA: Truevision‘s Targa format State of Img: Planned Img 1.3

12 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: State of Img12 State of Img: Future The following actions are taken from my personal wish list. Implementation will need the help of the community. Please feel free to contribute in any form. Near future actions: - Remove usage of Tk-internal structures to enable stubs. - Update versions of external libraries: libpng, libjpeg, libtiff, libz. - Improve existing format handlers for full compliance. - Additional image formats: Windows icons, PICT, WMF, Photoshop, ??? Issues influencing Img and Tk: - Better transparency support. - Improved image manipulation: Scaling, rotation, filter, etc. (see extension poImg at www.poSoft.de)

13 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: Utilities and tests13 Img utility: poImgtype Tk package for selection of image formats and corresponding options. Available functions: OpenWin: Open selection window. GetFmtList: Get list of image formats. GetExtList: Get list of file extensions. GetOptByExt: Get option string by file extension. GetOptByFmt: Get option string by format identifier. LoadFromFile: Load settings from file. SaveToFile: Save settings to file.

14 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: Utilities and tests14 Img utility: Test programs Test 1: Using full images Test 2: Using -from option Test 3: Using -to option Test 4: Using all sizes from 1x1 till 4x4 pixels These tests try to store the content of a canvas window in image files using all file formats and all methods (file, binary and uuencoded string) available in the Img package. After writing we try to read the image back into a photo by using the auto-detect mechanism of Img. If that fails, we use the "-format" option.

15 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: List of supported formats15 Summary: List of supported formats BMP: Windows bitmap DTED: Digital Terrain Elevation Data GIF: Graphics interchange format JPEG: JPEG PCX: Paintbrush‘s PCX format PNG: Portable network graphics format POSTSCRIPT: Postscript (Read-Only) RAW: Raw image data (matrix of floats) SGI: Silicon Graphics native format SUN: Sun Raster format TIFF: Tagged image file format TGA: Truevision‘s Targa format WINDOW: Put the content of a window into a photo XBM: X-Windows bitmap XPM: X-Windows pixmap

16 poSoft - Paul Obermeier‘s Portable Software Img Inside & Out: Goodbye16 Happy Tcl‘ing E-Mail at home: obermeier@poSoft.de E-Mail at work: paul.obermeier@lfk.eads.net My homepage: http://www.poSoft.de Jan‘s homepage: http://purl.oclc.org/net/nijtmans/ Img project page: http://sourceforge.net/projects/tkimg


Download ppt "PoSoft - Paul Obermeier‘s Portable Software Img Inside & Out1 Paul Obermeier Third European Tcl/Tk User Meeting. Munich, June 2002"

Similar presentations


Ads by Google