LoadCFRawData

Declaration: TParticles.LoadCFRawData (CFResults: TDouble3DArray; ClassesToProcess: TIntArray): integer;
The method LoadCFRawData loads the raw data of the classifier stored in CFResults into the CFRawData structure. The array parameter ClassesToProcess determines which classes are copied. Setting ClassesToProcess to nil is equivalent to copying the entire CFResults array.

Please note that it is technically possible to load raw data which are not compatible to the particle data (i.e. the number of classes of CFResults can differ from NClasses). Such situations should be handled with care.

The function returns the following error codes:

 0 .... everything is ok
-1 .... number of classes of CFResults does not match NClasses (warning only)
-2 .... number of horizontal and/or vertical pixels do not match PartImgData
-3 .... the array ClassesToProcess contains non-existent classes

.
Hint 1: When working with random forests the classifier raw data can be taken from the property ClassifiedCubeDataAs3DArray

Hint 2: In order to access the particles currently loaded in the particle editor you can use the pre-declared global variable PEData.