My question is pretty simple but I am new to SVD analysis. My final goal will be to implement denoise an Image using SVD but at the moment of time I am trying to comprehend the concept of Singular value decomposition.
As the title suggest , I want to decompose the image into its component matrices but I want to avoid using SVD command so I can get the concept of what is actually going on in the process.
The code :
a = double(rgb2gray(imread('Lenna.png')));
a_tp = a';
Z2 = a*a_tp;
Z1 = a_tp*a;
[U,U_val] = eig(Z1);
[V,V_val] = eig(Z2);
Sig = sqrt(U_val+V_val);
figure(1)
Img_new = imshow(((U*Sig*V')));
I thought U
, V
and Sigma
are my components as U
is the eigen vectors for a'*a
and V
are the eigen vectors for a*a'
and Sigma
are the corresponding eigen values but this ain't right ... There is some conceptual mistake , Help me please
PS >> This was the reference tutorial > http://www.youtube.com/watch?v=BmuRJ5J-cwE