SVD Report
SVD Report
INTRODUCTION:
Concept on SVD :
Project discussion
Question 1 )
Firstly we use images A, B and C which have got from project-1. We
calculate the SVD of image matrix A, B and C using the algorithm of power
method in JAVA.
From this we get three matrices U, V and S, where U is the left column
vector and V is right column vector and S is the singular value.
Computation of power method :
The computation involves taking the V0 vector approximately and
multiplying it with the image matrix Awe get vector U1 and singular
values.
Similarly multiplying U1 with matrix AT we get V1.
Further multiplying the matrix A with V1 gives U2 vector and singular
values
This way by using the method we get vectors V and U.
Programming of the singular value calculations with V and U vectors
respectively by using JAVA is shown in the APPENDIX.
Moreover we are getting different iterations taking different singular values
which gives us different images shown in APPENDIX.
Now we continue the iterations till this equation,
Question 2 :-
Where integer
So we assumed different values of p starting from 10, 20, 30 upto 510 of the
matrix A, B and C to estimate different approximation of the images. The error
wise norms of the image is being calculated accordingly.
Now the operations of the program is as follows:
The image is read using the JAVA at the given path using IMAGE defined
object.
Now reading the images from JAVA analogous to exact image is acquired
after using 140 singular values.
This image can be considered as Xp. To get the magnitude of the Xp need to
calculate the norm the different singular values.
Dividing the singular values of Xp by 2-norm gives the magnitude.
On calculating the magnitude printing different images of
JAVA at the given path using IMAGE defined object.
Calculating the magnitude of (X-Xp) using JAVA .
After calculating this plotting the graph of magnitude of
XP
by using the
X X P
versus