Shared Samples

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

Application Function DLL imageAccessMetadata

by Technical Evangelist on ‎09-10-2015 09:26 AM - edited on ‎03-29-2016 11:21 AM by Anonymous (700 Views)

Example Type

Application Function DLL

 

Purpose

 

This example shows how to define, read and write user-defined data objects from or to an ERDAS HFA file in a platform-independent form.

 

Files

 

imageAccessMetadata.c

 (C source code)

 

imageAccessMetadata.eml

(EML source code)

 

imageAccessMetadata.dsp

 (Visual C++ Project)(Windows Only)

 

Description

 

The imageAccessMetadata example is intended to show how to store any user-defined information with an image file. This might be metadata information that can be stored in a predefined path.

The first step is to create a structure that will hold the metadata we want to add to our image file. Then we need to create an Emif_Design that accurately reflects the structure we plan to use. Once we populate our structure with metadata, we write the information to a user-specified location in the file using eimg_FileNodeDataWrite.

 

Application Function Arguments

 

            getmetadata($inputfilename)

            setmetadata($inputfilename) 

 

 

Interface

 demo.jpg

 

Output

 

            The example writes/reads the user-defined metadata to the specified input file.  No separate input file is created.

 

Source Code

 

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

Overview
Contributors