Declaration: TRndForest.ObtainClassLayer (ClsIx: integer; var ClassifiedLayer: TDouble2DArray): integer;
The method ObtainClassLayer copies the classification results (obtained by ClassifyCubeData) of class ClsIx to the two dimensional array ClassifiedLayer. The size of ClassifiedLayer is automatically adjusted to match the classification results. The parameter ClsIx may take values between 1 and NClasses.

The function returns the following error codes:

 0 ... everything is OK, the spectrum has been classified
-1 ... the parameter ClsIx is out of range

Last Update: 2019-Okt-24