Re: The use of PCA on a 64x64 Matrix
- From: jg.campbell.ng@xxxxxxxxx
- Date: 24 Dec 2005 03:31:57 -0800
oliverjb@xxxxxxxxx wrote:
> Hi,
>
> I'm new to image processing, and am having trouble fitting my head
> around some topics, this algorithm in particular.
Sci.image.processing, or even comp.ai.neural-nets maybe more suitable
for this question.
Assuming you have access to Google groups, do a search on <Campbell
karhunen> and you may find something useful, e.g. my post of Mar 27
1999 on sci.image.processing.
Incidentally, discrete Karhunen-Loeve transform ~= PCA.
>
> I have an image, which has been converted into a 64x64 matrix (each
> value being the brightness of the pixel at that spot).
>
> For the principal component analysis, I have first totted up the values
> of all the pixels, and then divided by 64 * 64, giving me the mean
> value of the pixels. I then took thbis value away from the values of
> all the pixels.
>
> Is this right? Much of the literature I read referred to N column
> vectors, and finding the mean for each column vector. In my case this
> would mean I had 64 vectors.
No. K-L and PCA work on vectors. You need to vectorise the images;
hence 64.64 = 4096 dimensional vectors.
Another problem, you need many images to estimate the covariance
matrix.
A further problem, the covariance matrix is 4096 x 4096. But see my
post and/or anything on Turk and Pentland's 'eigenfaces' for a
solution.
>
> My next step was to calculate the Covariance matrix, by C = M *
> M(transposed). This was easy enough. I then calculated the eigenvectors
> using JAMA.
>
> However, my main problem is that I have a 64 * 64 matrix of
> eigenvectors. My aim was to have 2d eigenvectors, so I could find the
> principal component, and then from this, theta.
>
> Can anyone correct me where I'm going wrong? Many thanks.
See above.
Best regards,
Jon C.
.
- References:
- The use of PCA on a 64x64 Matrix
- From: oliverjb
- The use of PCA on a 64x64 Matrix
- Prev by Date: Color selection (please help)
- Next by Date: Re: Color selection (please help)
- Previous by thread: The use of PCA on a 64x64 Matrix
- Next by thread: CPU and GPU
- Index(es):
Relevant Pages
|
Loading