Shared Samples

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

Application Function DLL imageGetStatistics

by Technical Evangelist on ‎09-10-2015 09:25 AM - edited on ‎03-29-2016 11:22 AM by Anonymous (610 Views)

Example Type

Application Function DLL

 

Purpose

 

This will extract the scalar statistics from an image, operating on a single layer (assume layer 1).

 

Files

 

imageGetStatistics.c

 (C source code)

 

imageGetStatistics.eml

(EML source code)

 

imageGetStatistics.dsp

 (Visual C++ Project)(Windows Only)

 

 

Description

 

The imageGetStatistics example shows you how to access the statistics of an image, assuming they exist. The Min, Max, Mean, Median, Mode and Standard Deviation (Std. Dev.) can all be obtained from the Esta_Statistics structure returned from eimg_StatisticsRead. Skip Factor X and Skip Factor Y can be found from an open layer using the eimg_StatisticsGetSkipFactors. The function edsc_BinFunctionTitle tells the name of the current binning method.

 

Application Function Arguments

 

getstatistics($inputfilename) (called from EML)

 

Interface

   demo.jpg        

 

Output

 

The following statistical information will be displayed on the GUI: Min, Max, Mean, Median, Mode, Std. Dev, Skip Factor X and Skip Factor Y (if present).

 

 

Source Code

 

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

Overview
Contributors