ExportILabToML5

Declaration: ExportILabToML5 (FileName: string; Feedback: boolean);
The procedure ExportILabToML5 saves the HSI data together with the meta data (including the pixel masks and the pixel attributes) to a level 5 MatLab file. The data is organized in a top level structure that contains all other variables as fiedls. The parameter FileName specifies the name of the MatLab file.

If the parameter FeedBack is set to TRUE a visual feedback on the progress is provided. Please note that unless the script progress bar is already visible you have to make it visible before calling ExportILabToML5, otherwise the feedback will not be displayed. You can activate the script progress bar by calling the function ScriptBar(0).

ExportILabToML5 creates a data structure called ImageLabHSI which consists of the following fields (the constants C, R, L and T denote the number of columns, rows, layers and time slots, respectively, the constant M denotes the number of defined masks):

Name of Field                     type                dimension
---------------------------------------------------------------
ImageLabHSI.dataCube              4D double           T*L*R*C
ImageLabHSI.author                string
ImageLabHSI.description           string
ImageLabHSI.sampleID              string
ImageLabHSI.tilePosition          1D double           2
ImageLabHSI.pixelMask             3D double           R*C*M
ImageLabHSI.pixelMaskName         1D string array     M
ImageLabHSI.pixelAttribute        3D double           R*C*4
ImageLabHSI.pixelAttributeName    1D string array     128
ImageLabHSI.layerType             1D string array     L
ImageLabHSI.derivativeOrder       1D double           L
ImageLabHSI.techData              1D double           L
ImageLabHSI.groupNumber           1D double           L
ImageLabHSI.axisCaptionX          1D string array     C
ImageLabHSI.axisCaptionY          1D string array     R
ImageLabHSI.axisCaptionL          1D string array     L
ImageLabHSI.axisCaptionT          1D string array     T
ImageLabHSI.axisCoordsX           1D double           C
ImageLabHSI.axisCoordsY           1D double           R
ImageLabHSI.axisCoordsL           1D double           L
ImageLabHSI.axisCoordsT           1D double           T
ImageLabHSI.reverseFlagX          1D double           C
ImageLabHSI.reverseFlagY          1D double           R
ImageLabHSI.reverseFlagL          1D double           L
ImageLabHSI.reverseFlagT          1D double           T
ImageLabHSI.sclOffsetX            1D double           C
ImageLabHSI.sclOffsetY            1D double           R
ImageLabHSI.sclOffsetL            1D double           L
ImageLabHSI.sclOffsetT            1D double           T
ImageLabHSI.sclCoeffsX            2D double           6*C
ImageLabHSI.sclCoeffsY            2D double           6*R
ImageLabHSI.sclCoeffsL            2D double           6*L
ImageLabHSI.sclCoeffsT            2D double           6*T
ImageLabHSI.sclFactorX            1D double           C
ImageLabHSI.sclFactorY            1D double           R
ImageLabHSI.sclFactorL            1D double           L
ImageLabHSI.sclFactorT            1D double           T
ImageLabHSI.sclXShiftX            1D double           C
ImageLabHSI.sclXShiftY            1D double           R
ImageLabHSI.sclXShiftL            1D double           L
ImageLabHSI.sclXShiftT            1D double           T
ImageLabHSI.sclOffsetInvX         1D double           C
ImageLabHSI.sclOffsetInvY         1D double           R
ImageLabHSI.sclOffsetInvL         1D double           L
ImageLabHSI.sclOffsetInvT         1D double           T
ImageLabHSI.sclCoeffsInvX         2D double           6*C
ImageLabHSI.sclCoeffsInvY         2D double           6*R
ImageLabHSI.sclCoeffsInvL         2D double           6*L
ImageLabHSI.sclCoeffsInvT         2D double           6*T
ImageLabHSI.sclFactorInvX         1D double           C
ImageLabHSI.sclFactorInvY         1D double           R
ImageLabHSI.sclFactorInvL         1D double           L
ImageLabHSI.sclFactorInvT         1D double           T
ImageLabHSI.sclXShiftInvX         1D double           C
ImageLabHSI.sclXShiftInvY         1D double           R
ImageLabHSI.sclXShiftInvL         1D double           L
ImageLabHSI.sclXShiftInvT         1D double           T
ImageLabHSI.numCalPiecesX         double
ImageLabHSI.numCalPiecesY         double
ImageLabHSI.numCalPiecesL         double
ImageLabHSI.numCalPiecesT         double
ImageLabHSI.calPcsLimitsX         2D double           4*numCalPiecesX
ImageLabHSI.calPcsLimitsY         2D double           4*numCalPiecesY
ImageLabHSI.calPcsLimitsL         2D double           4*numCalPiecesL
ImageLabHSI.calPcsLimitsT         2D double           4*numCalPiecesT
ImageLabHSI.version               double