Skip to main content

Posts

Showing posts from 2010

LIDAR Point Cloud Visualization

A common question we get asked is how to visualize the point cloud data produced by either the Linear-mode or Geiger-mode LIDAR simulations. First, you should remember that the point cloud files produced by the "APD Processor" are simple ASCII/text files. Each line is the entry for a single return or "point" in the point cloud, including the point location and some attributes that vary depending on whether you modeled a Linear-mode or Geiger-mode system. For a Linear-mode system, a point cloud file will generally look like the example below: 12.7388 -45.3612 -0.0256 5.0290 0 0 0 0 12.8169 -45.3612 -0.0264 4.8362 0 1 0 0 12.8950 -45.3612 -0.0271 4.8362 0 2 0 0 ... 32.4008 -25.5446 10.5945 4.6783 0 65533 0 0 32.4781 -25.5446 10.5953 5.8959 0 65534 0 0 32.5360 -25.5640 12.5408 5.9185 0 65535 0 0 The first three columns are the X/Y/Z location of the point return. The 4th column is the intensity (in photons). Since Linear mode can support multiple returns per pulse, t

Modeling Clouds for Large Area Collects (Under Development)

We often want the ability to add clouds to a large scale scene in order to see the reflective, transmissive and shadowing effects on the scene. In these cases we are not so much concerned with the absolute radiometry of the clouds (true multiple scattering, exact modeling of limb regions, etc..), as we are with capturing bulk effects (single-scattering contributions, transmission effects, realistic spatial distributions, etc..). With these cases in mind, and to support modeling of the next generation Landsat sensor, we are developing a simplistic and very fast large-scale cloud model based on using the USAF Cloud Scene Simulation Model ( CSSM ) and OPAC data to generate voxelized representations of inherent optical properties. DIRSIG uses this data to drive a simple radiative transfer model that captures the bulk of the radiometric effects on the scene with very little additional computation overhead. The process is currently going through a period of validation and refinement and sh

DIRSIG 4.4.0 Final Release

Three weeks ago we announced a "release candidate" for DIRSIG 4.4.0. In the time since, we had quite a few early adopters try out 4.4.0 and provide us with feedback. Those improvements and bug fixes have now been incorporated into the official release of DIRSIG 4.4.0, which is now ready for download on myDIRSIG for registered users. Like we said at the time of the release candidate, we are very excited about this release as it packs in a bunch of new features and performance improvements: New User Interface Tools Graphical simulation preview Basic image viewer Component browser SGP 4 Orbiting Platform Motion Wizard Geometry Improvements Added affine transform INFO option to ODB Ray-trace optimization for dynamic (moving) scene geometry Support for vertex normals (normal "shading") on OBJ input geometry Atmosphere Added the GUI for the built-in "uniform" atmosphere model User-defined MODTRAN profile support (make_ adb config

Making video simulations

Over the past few years we have been doing more simulations of video systems. Perhaps you have seen the video simulation of MegaScene1 with the cars driving down the streets as would be acquired from a circling UAV: So how do we make these videos? It is really a simple tool chain involving a tool that is distributed with DIRSIG and another tool that can be downloaded from the web. For this example, we are going to deal with a 2D framing array type system and that has a red, green and blue (RGB) channel set being captured (read out) on a regular interval: DIRSIG itself doesn't generate video files directly, but you can employ DIRSIG to generate the individual frames for a video and them combine them. This workflow breaks down into a three (3) step process: Instruct DIRSIG to output each capture (or "frame") of the focal plane to an individual file. Convert each floating-point radiance image file to a 24-bit (8-bits per channel) RGB image file. Encode the RGB image files

Using OBJ for Scene Geometry

When we first started on the DIRSIG model in the late 1980s, 3D computer graphics was still in its infancy. At the time, standard file formats for 3D geometry were still being established. In addition, the DIRSIG model had the need for a specific set of per-facet attributes (material ID, thickness, override temperature, etc.) that are still somewhat unique in the 3D modeling community. As a result, the DIRSIG specific Geometric Database (GDB) format was created and is still used to this day. In the mean time, a variety of 3D geometry file formats have become widely used. Although the GDB format serves our needs well, it requires the user to translate the 3D geometry assets from other formats in order to use them with DIRSIG. Lately we have been experimenting with using the Alias/Wavefront OBJ file format as a possible replacement for GDB. The important features of the OBJ format are: It is widely supported by 3D geometry authoring tools (Rhino, SketchUp, Blender, etc.). It supports per

Improved Urban and Forest Scenes

In the DIRSIG 4.4.0 release users will find that we made some modest improvements to the classic Urban and Forest scenes. Primarily, we improved the scene geometry by replacing the decade old, low facet count trees with the high fidelity trees we have been using in other scenes. We have also cleaned out a bunch of unused files and tried to improve the organization of the respective scene directories. The first thing you will notice in the updated Urban scene (seen above) is the new trees and the fact that there is more than one tree species. The scene also has some new textures for the grass and asphalt areas. This scene now has both day/night and summer/winter configurations. The "night" .scene files have the streetlights automatically enabled. The "winter" .scene files use defoliated trees. You might ask why the river running down the middle of the scene is so green in color. The river is modeled as a flat surface with an effective reflectance measured from s

Improved Demos

One of the ways we try to teach users about specific features is by making a "bare bones" simulation as a demonstration of that feature. These "demos" don't usually generate a very exciting output data product, but they are fully self-contained (no external data required) simulations that focus on how to configure a specific feature. We have been distributing our growing set of demos with DIRSIG releases for some time. In DIRSIG-4.4.0, we tried to make demos easier to use. The "demos" folder now includes a top-level HTML index file. On a Windows installation, this HTML index is can be opened by clicking the "Demonstrations" item in the "DIRSIG 4" sub-menu of the Start menu. On Mac and Unix/Linux, just open $DIRSIG_HOME/demos/index.html in your browser. This shows a thumbnail image for each demo and gives a brief description of what the example demonstrates. Note the "Download this demo" link under each description. Whe

Under the Hood: Simulation Inputs

Here is a look at the input files that go in to a DIRSIG simulation. Each icon in the dirsig_edit tool corresponds to an XML file: Behind the scenes, these files are given the following extensions: .scene .atm .platform .ppd .tasks .options The options file is, by happenstance, optional. So what goes in to the ".sim" manifest file? It's simply a list of the files assigned to each component. A typical sim file looks as follows: <simulation> <scene externalfile="../../warehouse.scene" /> <atmosphericconditions externalfile="./warehouse.atm" /> <platform externalfile="./warehouse.platform" /> <platformmotion externalfile="./warehouse.ppd" /> <tasklist externalfile="./warehouse.tasks" /> </simulation> See? Nothing more than a list of files. You can also see the relationship between files and components from within dirsig_edit. Jus

Viewing and Importing DIRSIG Output Images

We are often asked what programs can view DIRSIG's image outputs and how to import the raw DIRSIG image data files into other tools for further processing. For basic image viewing, DIRSIG-4.4.0 now includes a very simple viewing tool. Launch it from the main simulation editor window by selecting the "Start image viewer" option from the "Tools" menu. If you run your simulation from the GUI simulation editor, new image files are automatically added to the list in the image viewer as they are generated. If you want to manually add files to the list, simply select the "Open" item from the "File" menu or the toolbar. Here is a screenshot of the main image viewer window. The top part contains the list of currently opened files and the bands within those image files. To view a single band as a gray-scale image, choose "Single Band Display" from the combo box and then click on the image band that you want. Finally, click "Load Band

Warehouse Scene

Included in the DIRSIG-4.4.0 release candidate is a new "warehouse" scene. As shown below, this scene features a fairly high amount of geometric clutter. The scene includes stacks of wood palettes and crates, steel I-beams, piles of corrugated steel panels, steel pipes, shipping containers, concrete barriers and other "cultural clutter" objects that might be found at a site like this. The scene was created with roughly a 0.10 [m] GSD in mind. It includes full spectral coverage in the visible, NIR, and SWIR. This will be extended to the MWIR and LWIR in the future. Placement of geometry and material attribution was done using Blender together with some DIRSIG I/O python scripts. The material database was manipulated using the "mat_edit" tool. The material map over the terrain was originally drawn as a vector layer using Inkscape and then cleaned and converted to its final PGM version using Gimp . In addition to adding LWIR coverage, we would like to i

DIRSIG 4.4.0 Release Candidate

We are pleased to announce a "release candidate" for DIRSIG 4.4.0 has been posted to myDIRSIG. A "release candidate" is a preview of the next release of DIRSIG. This version of the software is produced when we feel the software is well tested and ready for release, but we would like some last-minute user feedback. We are very excited about this release as it packs in a bunch of new features and performance improvements: New User Interface Tools Graphical simulation preview Basic image viewer Component browser SGP4 Orbiting Platform Motion Wizard Geometry Improvements Added affine transform INFO option to ODB Ray-trace optimization for dynamic (moving) scene geometry Support for vertex normals (normal "shading") on OBJ input geometry Atmosphere Added the GUI for the built-in "uniform" atmosphere model User-defined MODTRAN profile support (make_adb config file) in GUI for "classic" (ADB file based) and "threshold" (run-time MO

We are back ...

Niek started this blog 4 years ago, but then let it go dormant. We recently decided it would be a good thing to have some sort of way to publicly show each other and the user community some of the fun, cool and helpful things we are working on from time to time. So please stay tuned in the future for news, tips, tricks, etc. about the DIRSIG model.