Skip to main content
. 2017 Dec 13;12(12):e0188687. doi: 10.1371/journal.pone.0188687

Table 1. Interface specification of the main platform.

Method name Function Return value Remark
GetAppDirectory Get the directory of the application BSTR None
GetBand Get the pointer of the specified band VOID Para: VARIANT * outVar output the band pointer
GetBandData Get the band data through a band pointer VOID Para: VARIANT * bandVar output the band data
GetLineParmManual Get the parameters of the feature line obtained in a manual way VOID Return the slope and intercept of the feature line generated from the manual interaction with the 2D spectral feature space window
GetDataBlock Get the specified data block of the specified band VOID Para: bandVar stores the pointer of the band to read, yStart and yEnd indicate the starting and ending row number of the data block respectively
WriteDataBlock Write the specified data block of a specified band VOID Para: bandVar stores the pointer of the band to write, yStart and yEnd indicate the starting and ending row number of the data block respectively
CreateResultFile Create a file for storing results VOID Create a file according to the specifications in the band or file templates VARIANT *tempBand and VARIANT *tempFile
BandsCompatibleTest Test the compatibility of the band data BOOL Return the compatibility result
GetFileManual Get one of files opened in the main platform VOID Para: VARIANT * outVar