<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 26, 2013 at 3:58 PM, Markus Metz <span dir="ltr"><<a href="mailto:markus.metz.giswork@gmail.com" target="_blank">markus.metz.giswork@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Mar 26, 2013 at 10:25 AM, Rashad M <<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Tue, Mar 26, 2013 at 2:44 PM, Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On Tue, Mar 26, 2013 at 8:39 AM, Rashad M <<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > i.pca creates 6 raster maps for 6 input raster<br>
>> ><br>
>> > eg:<br>
>> ><br>
>> > i.pca<br>
>> ><br>
>> > in=lsat7_2002_10,lsat7_2002_20,lsat7_2002_30,lsat7_2002_40,lsat7_2002_50,lsat7_2002_70<br>
>> > \<br>
>> > out=lsat7_2002_pca<br>
>> ><br>
>> ><br>
>> > I have a doubt here<br>
>> ><br>
>> > Does the output lsat7_2002_pca.1 is the corresponding map for<br>
>> > lsat7_2002_10?<br>
>><br>
>> No. lsat7_2002_pca.1 contains the principal component with the highest<br>
>> eigenvalue and is calculated using all input bands. More generally,<br>
>> each lsat7_2002_pca.* map is calculated using all input bands. Look at<br>
>> the eigenvectors to find out the weights with which each input map<br>
>> contributes to a specific PCA.<br>
>><br>
><br>
> So by knowing a pixel value of lsat7_2002_pca.1 can I get the value before<br>
> transformation in PCA.<br>
> consider this:<br>
> I have two bands B1,B2 and after i.pca I get PC1,PC2. Then is there a way to<br>
> derive value of X,Y where X belongs to B1 and Y belongs to B2 by only<br>
> knowing P,Q<br>
> where P belongs to PC1 and Q belongs to PC2<br>
><br>
> and also X,Y and P,Q are of same index (row,col)<br>
<br>
</div></div>X = P * eigenvector(P, X) + P * eigenvector(Q, X) + mean(B1)<br>
<br>
Using the example from the manual:<br>
<br>
X = 0.2824 * PC1 + 0.2541 * PC2 + 0.3801 * PC3 + 0.1752 * PC4 -<br>
0.6170 * PC5 - 0.5475 * PC6 + mean(band 1)<br></blockquote><div><br></div><div style>Thanks.</div><div style><br></div><div style>just a small clarification:</div><div style>PC1 is the pixel value at (i,j) of output band pca.1 and X is the pixel value at (i,j) of input band b1</div>
<div style><br></div><div style>This is correct?</div><div style><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Markus M<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> I hope this is clear<br>
><br>
>><br>
>> Markus M<br>
>><br>
>> ><br>
>> > If so the lsat7_2002_10_pca.1 contains PCA transformed pixel for<br>
>> > lsat7_2002_10<br>
>> ><br>
>> > Is this correct?<br>
>> ><br>
>> > --<br>
>> > Regards,<br>
>> > Rashad<br>
>> ><br>
>> > _______________________________________________<br>
>> > grass-dev mailing list<br>
>> > <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
>> > <a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Regards,<br>
> Rashad<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br> Rashad</font></div>
</div></div>