Declaration: TMetaData.AddPhoto (FName: string): integer;
The method AddPhoto adds a photo to the list of calibrated background photos. The filename of the photo is specified by the parameter FName. The function returns the following error codes:
>0 ... everything is OK, the returned value is index of the added photo
-1 ... cannot access file
-2 ... the photo file is not a JPG file
-3 ... the photo file is not in the same folder as the currently loaded data

Hint 1: After adding a photo to the hyperspectral dataset you have to co-register it by using the method SetPhotoCalibPars.

Hint 2: In order to directly access the metadata of the currently loaded dataset you can use the pre-declared global variable MData.