Re: [R] PCA on image data

From: Bio7 <>
Date: Thu, 03 Jul 2008 05:43:40 -0700 (PDT)

Dear Jorge,

As i've already written the princomp method works for me. But i'm interested to produce from the results a matrix which i can visualize (e.g the first pc) in an image application and which is then the source for a clustering algorithm.
The background is that i've an application which can transfer images to R and create images from R very fast (using ImageJ and RServe). I've already clustered successfully image data with the cluster package. If i now have more than three channels (or bands - > R,G,B) i want to reduce the dataset with the PCA.
So which data (as a matrix) represents the first pc or how can i calculate from the results
this matrix? Since i've not worked with the PCA method before any explanation beyond the R help
would really help me.

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 03 Jul 2008 - 12:55:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 Jul 2008 - 13:31:28 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive