ImportPerkinElmerImgData

Declaration: ImportPerkinElmerImgData (FName: string; Data: TMat4D; MetaData: TMetaData; MirrorX, MirrorY: boolean; FeedBack: boolean): integer;
Imports a PerkinElmer FSM data file (extension .fsm). The parameter FName specifies the full file path of the FSM file. After importing the dataset the parameter Data contains the image data, the parameter MetaData contains the corresponding meta data.

The parameters MirrorX and MirrorY control whether the respective axis is to be mirrored. The parameter Feedback controls whether a visual feedback is provided during the import of the data. Please note that unless the script progress bar is already visible you have to make it visible before calling ImportRenishawWDF, otherwise the feedback will not be displayed. You can activate the script progress bar by calling the function ScriptBar(0).

The function returns the following error codes:

 0 ... everything is OK, the FSM data has been imported
-1 ... the file does not exist
-2 ... the file does not comply with the PE block structure

Hint: You can directly import the data to the ImageLab data structure by specifying the global variables RawData and MData for the Data and MetaData parameters, respectively. In this case you should use the functions ShowDataDescription, Img2DGui and ArrangeStdWindows to make the user interface available.

Example: The following sample code shows how to import PerkinElmer FSM data:
program ReadPerkinElmer;

var
  FName         : string;

begin
FName := SelectFile (GetILabDir(idHome), '*.fsm', 'Please select a FSM file');
if FName <> '' then
  begin
  ImportPerkinElmerImgData (FName, RawData, MData, false, false, true);
  ShowDataDescription;
  Img2DGui (0,0,0,0, true);
  ArrangeStdWindows;
  Frm2dImg.ZoomImgFull;
  end;
end.