Introduction - If you have any usage issues, please Google them yourself
A basic PCA classifier is provided here for a two class classification problem.
An example is given, with some multimodal MRI scans from Multiple Sclerosis patients, in which the brain lesions of two patients are annotated and in the third are detected by the PCA model.