TFrmPCA

The class TFrmPCA supports the management of the user interface of the principal component analysis (PCA). Please note that you cannot create an instance of this class yourself (the class has no public Create method). In order to manipulate the parameters of the PCA you have first to call the function PCAGui. This will display the PCA user interface and create the instance FrmPCA which is then globally available throughout a script.

The class TFrmPCA provides the following properties and methods:

Properties

 

Methods

Hint: If you use the global instance FrmPCA before you have called PCAGui this will result in an error message ("Could not call proc at ....")

Example: The following code snippet loads a dataset, creates the user interface of the PCA, loads the descriptors, sets a few parameters, and finally calculates the principal components and saves the PC image of component 2 on a file:
LoadILabFile ('D:\imagelab_data\cuprite\$CSV_cuprite-x_mask.ilab', false, true);
PCAGui (2);     // initial Scaling: mean centering
FrmPCA.LoadSpdcs ('cuprite');
FrmPCA.AttachedForm := false;
FrmPCA.Left := 100;
FrmPCA.Top := 100;
FrmPCA.Mask := 1;
FrmPCA.Calculate;
FrmPCA.DisplayMask := false;
FrmPCA.PCImage := 2;
FrmPCA.SavePCImage ('c:\temp\pcimage.png', '2nd PC Plot',
                    true, 600, 600, clWhite);


Last Update: 2020-Feb-08