GISdevelopment.net ---> Technology ---> Image Compression

ECW (Wavelet compression for Digital Imagery and Image Web server from Earth Resource Mapping pty. Ltd.)

Suresh Murthy
DGM (Tech support)
HOPE Technologies


As imagery becomes more affordable and easier to use, GIS and CAD users are increasingly demanding more powerful imagery capabilities. The amalgamation of spatial information, be it CAD, GIS, database, imagery or whatever has resulted in much closer working relationships between imagery and GIS companies. With the easy availability of High resolution Imagery in the near future and the integration required for mosaicing of a large number of imagery, airphotos, scanned topographical maps and other types of imagery, for various applications the size of image files can become very large. For. eg. it would takes 1.5TB (1,500GB) of color imagery to cover all of California at a resolution of one meter.

With ever more powerful computers, Data storage and Data retrieval systems capable of managing several thousand Terabytes of data it is possible to keep up with almost any amount of Imagery. The key issue is to easily use, manage and disseminate an always growing image database with limited equipment & funding. This is an important issue with most organisations.

It is now feasible to work with such large images and also serve high-resolution orthophoto mosaics for entire cities, real-estate companies and other non-technical markets using a combination of Compression Technologies like Wavelet compression and Image Web server (IWS) from ER Mapper.

What we are seeing is a definite trend where the user base for imagery is expanding rapidly. This is why companies like ER Mapper has expanded their product offerings into a whole solution range; ER Mapper (to preparing imagery), ECW (to use imagery inside any application), and the Image Web Server (to serve imagery into those applications using the Internet or Intranet).

What is a compressed image?
A compressed image is one that has been compressed to reduce the image file size, while still providing an almost perfect version of the original. With some compressed formats, such as the ER Mapper Compressed Wavelet (ECW) imagery format created using the ER Mapper Compression Wizard, you can use a compressed image almost. This is achieved by automatically selectively decompressing only the portion of the image, at the level of detail currently being viewed or printed.

There are various compression techniques. The most effective technique is wavelet based, which is a method of processing, quantizing and then encoding the image in a way that result in very high levels of compression, with an almost perfect reconstruction of the original image.

ER Mapper 6.1 offers wavelet based compression technology to compress images, resulting in very high quality results at very high compression rates. Typically a color image such as an airphoto can be compressed to less than 2% to 5% of its original size (50:1 to 20:1 compression ratio).

This means that, at 20:1 compression, 10GB (10,000MB) of color imagery will compress down to 500MB, which is small enough to fit on to a single CD_ROM. If your source image has less information content, such as scanned topographic maps or airphotos over areas with less land change, higher compression rates may actually be achieved - 100:1 or more is not uncommon for compressed scanned topographic maps.

Wavelet based compression: performance gains

In addition to the advantages of smaller files, (which requires lower seek time to access data from CD_ROM, DVD_ROM or Hard disk drive) compression of digital imagery offers higher performance, because compressed imagery trades slower disk speeds against faster CPU speeds. Compression is "compute bound" rather than "disk bound", meaning that decompression is limited by CPU speed rather tan by disk IO or seek speed.

A 10GB image that has been compressed down to a 500MB ECW compressed image file can be read as quickly from a CD-ROM as the uncompressed imagery can be read from hard disk. This makes distribution and use of imagery directly from CD-ROM a practical reality.

Working with large images


The following table demonstrates the reduction in file sizes when compressing imagery using the new ER Mapper wavelet based compression technology, which can compress very large images, at high compression rates, with high quality results.

Image Dimensions Uncompressed size Compression ratio Compressed size
Color airphoto 3x8,000x8,000 192MB 50:1 4MB
Color airphoto mosaic 3x50,000x100,000 15,000MB 25:1 600MB



Usage of Compression

Compression is very useful for the following requirements.
  • Easy distribution of large amounts (10MB to multi TB) of imagery
  • Fast access directly from CD-ROM
  • Airphotos, orthophtos, satellite Imagery or scanned topographic maps.
One can use a lower compression factor, when some of the following criteria are important to the application.
  • Hyperspectral signature analysis is being carried out.
  • Important information is represented as sutable secondary changes to the date.
  • Your application is "mission critical", where you want to retain the original quality of Image, for example navigation system using DEM data.
For example, a compression rate of 3:1 results in imagery that is very close to identical to the original image, while still offering faster access rates on slower CD_ROM media.

Interactive image decompression

An important consideration when dealing with large images is the ability to:
  • Interactively decompress a subset region of a compressed image.
  • Interactively decompress to a level of detail (LOD) of a compressed image. For example, the compressed image might be 200,000x300,000 pixels in size, yet your viewing window might cover 800x600 pixels on screen. In this case, it is important to decompress only the top levels of detail, down to 800x600 pixels in resolution, as that is all the information that can be displayed at the current level of detail on screen.
Doing interactive image decompressing using ER Mapper Compressed Wavelet (ECW) images is simple - your software application automatically decompress the portion of the image currently being viewed, at the level of detail required, on the fly. This is managed by the ER Mapper decompression engine, which manages the display of the imagery within the application such as WORD, ER Mapper or AutoCAD MAP.

ER Mapper ECW V2.0 compressed images maintain the full geocoding and locational information about the file. This means that compressed images will be automatically registered with other imagery and vector data, just like an uncompressed file.

Full real time roaming, zooming and panning is supported in ER Mapper for compressed images, and all the normal algorithm capabilities, such as selecting imagery within a vector polygon, or using statistics, all operate fully.

RAM requirements during interactive viewing/decompression
The ER Mapper Compressed Wavelet (ECW) format has a very low memory footprint during imagery decompression. About 2MB of RAM will be used during interactive decompression of imagery, thus compressed imagery can be used even on quite small computers with limited amounts of RAM - the ER Viewer will view compressed imagery on a machine with a total of 16MB of RAM.

Comparing different compression techniques

Wavelet versus older compression techniques
Over the years, considerable effort has been spent in compressing information in order to make it easy to distribute, and to reduce storage requirements.

Techniques used by common compression program such as ZIP, or by older compression formats such as JPEG or TIFF, suffer from sever disadvantages when trying to compress large digital images. These problems include:
  • Limited Compression rates. Because ZIP and related methods are lossless techniques (it is important that a compressed program is exactly compressed), they don't take advantage of the relatively lossy compression techniques that result in much higher compression rates for digital imagery. Typically a "ZIPpend" imagefile will be 50%smaller than the original mage, whereas a wavelet compressed image will be 95% smaller than the original image.
  • All or nothing decompression. It is essential to be able to selectively decompress a portion of digital imagery while viewing the image, and to selectively decompress the image, at different levels of detail (as the user zooms in or out of the image view). Older techniques used by ZIP, TIFF, JPEG and other image compression formats, were not designed with selective decompression of imagery in mind. This means that they can not effectively be used when working with images larger than about half computer memory size, which is significantly smaller than the typical size of digital imagery today.
  • Artifacts and visible errors in the data. Older techniques, for example as currently used by the JPEG compression process, compress the image as a series of blocks. This is because older techniques were memory based, so they needed to limit the size of each block. Because of this, JPEG and related formats suffer from significant and visible degradations when higher compression ratios are used. Recent breakthroughs in wavelet processing have removed memory limits from image compression. This means that large imagery can be compressed efficiently, without introducing visible artifacts into the compressed image.
  • No geographic coordinates. Older image formats do not have, or have very limited, geographic information stored with the compressed image. This is because older formats were designed for graphics art imagery rather than earth related digital imagery such as airphotos or satellite images. Because of this, many formats don't support geographic information, or only do so in a very limited way.
  • Slow speed. In order to work effectively with large digital images, the user needs to be able to view any subsection of the image, at any zoom factor, with sub-second response times. Older formats do not achieve adequate response rates for several reasons.
    1. Many formats require decompressing of the entire image, rather than a selected subset at a select level of detail.
    2. Many formats assume the image will be smaller than computer RAM, making them very slow to access large images.
    3. Most formats do not employ "clustering" of imagery information to reduce disk seeks.
Wavelet based image compression and decompression
Wavelet compression involves a way of analyzing an uncompressed image in a recursive fashion, resulting in a series of higher resolution images, each "adding to" the information content in lower resolution images.

The primary step in wavelet compression are performing a Discrete Wavelet Transformation (DWT), quantization of the wavelet-sace image subbands, and then encoding these sub bands.

Wavelet images by and of themselves are not compressed images, rather it is the quantization and encoding stages that do the image compression. Image decompression, or reconstruction, is achieved by carrying out the above steps in reverse and inverse order. Thus, to restore the original image, the compressed image is decoded, dequantized, and then an inverse-DWT is performed.

Because wavelet compression inherently results in a set of multi-resolution images, it is well suited to work with large imagery which needs to be selectively viewed at different resolutions, as only the levels containing the required level of detail need to be decompressed. Wavelet mathematics embraces an entire range of methods each offering different properties and advantages. For example, it is possible to compress 3 or more dimensional imagery using wavelets.

Wavelet compression has not been widely used because the DWT operation takes a lot of compute power, and because historical techniques perform the DWT operation in memory or by storing intermediate results on hard disk. This limits either the size of the image that can be compressed, or the speed at which it can be compressed.

The ER Mapper 6.1 ECW V2.0 wavelet compression uses a breakthrough new technique for performing the DWT and inverse-DWT operations (patent pending), which makes the use of wavelet based compression a practical reality.

Sample applications for ER Mapper Compressed Wavelet imagery

Compression, Storage then selective decompression


You can include compressed imagery in GIS applications using free imagery plugins for GIS and office application with your compressed data. These plugins read the compressed imagery in a wide range of software applications such as ArcView, AutoCAD MAP, MapInfo, ER Mapper, ER Viewer, Photoshop, Microsoft Office and Excell, and other software applications. There is no data royalty fee when using the ER Mapper Compression Wizard to compress images. You can also use the free ECW compression and decompression SDKs to create your own applications that can open, read and write compressed images.

Because the compressed imagery is constructed of multi-resolution wavelet levels, you also enjoy fast roaming and zooming on the imagery-even from slow media such as CD ROM.

Advantage of ER Mapper Compressed Wavelet (ECW) versus other Wavelet compression techniques

The ER Mapper ECW compression by Earth Resource Mapping uses advanced wavelet compression techniques. The ER Mapper Compression Wizard has been designed as part of a complete end to end solution to prepare, compress and distribute imagery. There are a number of benefits that result from using the ER Mapper Compressed Wavelet (ECW) imagery format: Historically, the methods for doing Decrete Wavelet Transformations (DWT) compression, have been memory based. This has limited the size of the file that can be compressed using wavelet compression.

Most existing wavelet techniques enable compression of very large images - there is no limitation to image size in the compression technology.

The primary advantages inherent in the ER Mapper ECW technique are that it is much faster, for several reasons as listed below:
  1. The ECW technique uses a recursive algorithm pipileine technique and does not require immediate tiles to be stored to disk and then recalled during the DWT transformation and
  2. The ECW technique takes advantage of CPU , L1 and L2 levels of cache to do its linear and unidirectional data flow through the DWT process.
  3. Because the ER Mapper ECW method of DWT is much faster, this speed is used to provide more efficient compression in several ways.
Other advantages:
  • No data royalties. There are no data royalties when using the ER Mapper Compression Wizard to produce compressed imagery.

    Full geocoded map projection information stored. The ECW compressed image format uses the standard ER Mapper "ERS" image header file to record map projection information. This means that when an image is compressed, full image map projection information is retained.

    The "ERS" header file is optional for ECW V2.0 compressed imagery. Georeference information is contained in the ECW compressed image file as well as in the .ERS file. This is useful when emailing. ECW file, because the recipient only has to be concerned with one file.

    Evaluate using your own data. The free ER Mapper 6.1 (with Compression Enhancement Pack) evaluation CD ROM contains the complete ER Mapper 6.1 Software (including the .ECW V2.0 Compression Wizard and the free plugins for GIS and office software). You can trial run the full software, against your own data, for 14 days at no charge.

  • Batch compression. You can use the command line version of ECW V2.0 to carry out compression in a batch operation. This allows you to compress a large number of images by entering a single command line.

    You do not need ER Mapper 6.1 installed to enjoy the benefits of ECW compression. A free standalone utility is available for download at the ER Mapper web site. This free program offers a GUI-only compression interface to compress single files (No batch compression) up to 500MB in size.

  • Free plugins. The free GIS and Office plugins can be distributed with your imagery to enable MS Office, ArcView, MapInfo, AutoCAD Map, ER viewer other users to directly access and use of your imagery. These plugins have been enhanced to support ECW V2.0 imagery. There is also a new plugins which enables you to both decompress and compress ECW V2.0 images from within Photoshop. This is the only large image-format compression plugin for photoshop that allows you to compress (as well as decompress) large images. The compressor is limited to compressing files of a maximum of 500MB in size. There is no cost for this plugin to Photoshop.

  • Tightly Integrated. As the Compression wizard is tightly integrated with ER Mapper 6.1, you can use the Ortho Wizard, Mosaic Wizard and Balance Wizard to prepare mosaics prior to compression.

  • Low cost. The entire ER Mapper 6.1 product, including Ortho rectification, mosaicing, balancing, compression and a wide range of other tightly integrated functionality, is about the same price as other companies charge for just the compression engines.
Free Compression library The ECW V2.0 Compression SDK is an open and freely available standard to compress imagery using wavelet technology. The ECW compression library is based on breakthrough patent-pending wavelet mathematics technique developed by ER Mapper, which enables the compression of very large images, very quickly, with high quality results.

Any companies (including competitors to ER Mapper) who wish to compress large images can now do so using the ECW Compression SDK free of costs and royalty fees. Link the library to your application to enable it to directly perform wavelet compression to the ECW V2.0 file format.

The library is provided in binary form, and can be linked to C and C++ code, and is small (less than 100K in size). It features a very clean library interface. It makes no assumptions as to the input data - you simply fee it lines of imagery to compress, and it does the rest.

The library enables wavelet images of upto 500MB in size to be compressed. You still need to use ER Mapper for images beyond this size, (or to contact ER Mapper to discuss access to an unlimited size compression library).

Compressing Mosaics of input images to a single compressed image file
The ECW Decompression and Compression SDK's are to the only libraries on the market that are provided on an open basis and enable you to both compress and decompress and is tightly linked with the Image processing software through the ER Mapper 6.1 Compression Wizard. This means that you can use all the other ER Mapper tools, such as the Ortho Wizard ,m the Mosaic Wizard, and the Balance Wizard, to create a seamless mosaic which can then be compressed out to a single compressed ECW file.

When using the Compression Wizard, you specify the input image to compress. Here, you may specify an ER Mapper smart data algorithm as the input to be compressed. Using this technique one can use the ER Mapper Mosaic Wizard and Balance Wizard to create an algorithm that creates seamless and balanced mosaic of input airphoto, which can then be compressed out to a single compressed image file.

CD ROM/DVD-ROM versus Internet distribution
Internet distribution is likely to increase as Internet access rates increase. Currently, imagery distributed over the Internet is best suited for imagery under 5MB compressed in size, which means that the original image size would e 100MB in size assuming color imagery compressed at 25:1

CD ROM and DVD ROM are ideally suited for distribution of large amounts of imagery, as 15GB of imagery can be stored on a single DVD-ROM when compressed at 25:1

Reducing storage requirements
The following table demonstrates typical compression rates that can be achieved for imagery. If your imagery contains less detail- for example the imagery covers forested areas, desert or other areas with limited features, the actual compression rate achieved may be higher.

Wavelet compressed imagery offer several advantages that enable the effective use of imagery directly from CD-ROM and DVD-ROM media.
  • Reduced size. Because the images are compressed, less disk IO needs to be carried out in order to view images, resulting in a performance boost.

    Multi resolution level of detail. The nature of wavelet compression is such that it processed imagery into multiple levels of detail. This means that when a user is viewing imagery at different resolutions, only information needed to display at that resolution is retrieved. This reduces disk IO and disk seek requirements, resulting in faster image access.

  • Improved disk access. The ER Mapper Compressed Wavelet (ECW) format uses a technique known as clustering to locate related information in an image closely together. This reduces the number of seeks that need to be carried out - significantly improving performance when imagery is viewed directly from CD-ROM.

    Using Compressed Imagery with GIS/CAD/Office application
    When disturbing imagery, an important consideration is the ultimate ability of users to access and effectively use the imagery.

    Studies have continually shown that the ability to be able to directly access imagery, without having to import it first, and which geographic information preserved, consistently ranks as the highest requirement by imagery users in the GIS, CAD and office software environments.

    There is a range of free plugins for common GIS/CAD/MS office applications, which directly read compressed ECW image files. Plugins are available than enable products to directly read compressed image files, for products including:

    AutoCAD and AutoCAD MAP 3
    Arc View 3.1
    MapInfo 4.0/4.5/5.0
    Microsoft Office (Word, Excel, etc)
    ER Mapper
    Photoshop
    Standalone image viewing


    When distributing imagery, these plugins can be distributed with your imagery, free of charge. Each plugin is typically 2MB to 3MB in size prior to installation, and is available as a single .EXE file that uses InstallShield to install the plugin.

    The Image Web Server (IWS)

    The Image Web Server has been designed by Earth Resource Mapping for the following:
    1. Serve large GB or TB (1,000 GB) sized) images via the Internet or Intranet
    2. Enable users to access the imagery via heir existing applications including web browsers, MS Office, GIS and CAD Software Products.
    3. Enable users to access the imagery via slow modem links.
    4. E-Commerce revenue by charging access subscription fees or charging for image sub-set downloads
    5. Tightly integrate imagery with your existing web based HTML and database applications.
    The Image Web Server can serve many different types of imagery including airphotos, high-resolution satellite images, digital terrain models, Radar etc.



    The need for the Image Web Server
    Currently the large size of image data and network bandwidth limitations preclude making imagery available over a network, in particular the Internet. Typically, sites with imagery would post thumbnail JPEG compressed images for viewing on-line. Distribution of larger images is done via CD. Apart from the time taken and inconvenience, other problems are
    • If the original image is updated, it has to be re-distributed via CD. Users can never be certain that they have the latest version. This is not very satisfactory for industries that rely on up to date information.
    • Users can generally not request subsets of the image. At best they can ask for set portions of the image that contain the part they require. This means that they often pay for data that they do not need.
    The Image Server uses ER Mapper's ECW V2.0 wavelet compression technology to minimize the size of images so that they can easily be propagated over a network with no discernable loss in quality. On the client side, the user can access the data via Internet Explorer and Netscape web browsers, or from within applications like ER Mapper, MapInfo, and Microsoft Office Tools.

    Various organizations like Image Data Sales and Distribution, Real Estate Agencies, local Govt. Bodies, Defense forces, Govt. regulatory bodies etc. could benefit from usage of ECW and IWS.

    The Internet Web Server makes it possible to supply up to data imagery to many different types of recipients over diverse media. Also, since the imagery is encapsulated, it can be encrypted and sent over secure links with no degradation or corruption.

    Solutions using Image Web Server Technology
    The image Web Server solves the problems of serving large image on the Internet or Intranet by combining the powerful ECW compression with image sub setting. It not only compresses the images, but also only transfers the portion of the image currently being displayed by the client.

    Compression Products

    You can use any of the following products to compress imagery for the Image Web Server.
    • ER Mapper 6.1. This enables you to compress very large (TB sized) images, and can also perform image registration, balancing, mosacing and enhancement as part of the compression process.
    • ECW compression. This is a free compression program available from the ER Mapper web site www.ermapper.com that can compress images upto 500 MB in size.
    • ECW V2.0 plugin for photoshop is available from www.ermapper.com and can compress images upto 500 MB in size.
    • Custom application developers can use the ECW v2.0 Compression SDK, available at no fee and royalty free, from www.ermapper.com to create custom compression applications.
    Various companies have announced support for a range of applications to compress imagery into the ECW Vr.0 format. See www.ermapper.com for the latest list of products known to support the format.

    All brands, company names and product names are trademarks or registered tardemarks of their respective holders.

  • © GISdevelopment.net. All rights reserved.