Shared Samples

Try out source code samples stored in Bitbucket repositories.
Showing results for 
Search instead for 
Do you mean 

Raster format DLL rf_mdf

by Technical Evangelist on ‎09-10-2015 09:20 AM - edited on ‎03-29-2016 11:35 AM by Anonymous (888 Views)

Example Type

Raster Format DLL

 

Purpose

 

This raster format DLL will add *.mdf(my data format) support to Imagine. Next time when you open Imagine Viewer, *.mdf will appear in the file open drop list.

And all APIs in eimg package will also automatically apply to *.mdf.

 

Files

 

rf_mdf.c

 (C source code)

 

rf_mdf.def

 (Output definition file for DLL)

 

 

Description

 

The RasterFormats DLL Class provides a uniform interface for raster imagery

access. Since it is designed to support arbitrary raster file formats, the class

supports read and write operations not only on the raster data of an image, but also

on the complete set of auxiliary information (e.g., georeferencing, geocoding,

image statistics, contrast, color and other attribute information) associated with the

raster data set.

*.mdf is BSQ image file containing 12 header bytes. 

The header bytes represent 3 values:

the number of image bands

the number of rows

the number of columns

And Imagine will automatically calculate the pixel depth (how many bits per pixel).

But there is not projection information with *.mdf.

 

Output

 

For debug version:

rf_mdf.dll will be outputted into \usr\lib\ntx86debug\rasterformats

For release version:

rf_mdf.dll will be outputted into \usr\lib\ntx86\rasterformats

 

 

Notes

 

You must to reconfigure raster format dll in Image(Utility->Configure Raster Format DLL), then restart Imagine.

 

Screen Copy

demo.jpg

 

demo1.jpg

 

 

Source Code

 

https://bitbucket.org/HGDN/hgdn_erdas_imagine/src/e1ade3b7d148b0f2f1aa6427044dfa4bce6226ee/rf_mdf_II...

Overview
Contributors