How do I apply SVD (Singular Value Decomposition) to an image?
Mostrar comentarios más antiguos
The syntax given for singular value decomposition is svd(x).
I tried it with my image, but it didn't work. Can you tell me how to work with svd for images please?
2 comentarios
David Young
el 2 de Mzo. de 2011
Please could you say what the error message was, and also show any other parts of your code that might be relevant.
Andreas Goser
el 2 de Mzo. de 2011
While I agree with David on the need for specifics, my crystal ball tells my this is about data types and will craft an answer for that...
Respuesta aceptada
Más respuestas (5)
meenakshi
el 6 de Sept. de 2011
HELLO GOSER
i=imread('pout.tif');
i=im2double(i)
[u s v]=svd(i);
you can try like this.
k.meenakshi
1 comentario
Walter Roberson
el 6 de Sept. de 2011
That would not have any more success than svd(double(I)) if I is a truecolor (3D) image. Remember, images can be stored as pseudocolor (2D arrays in which the values indicate which index to use out of a color map), or as truecolor (3D arrays in which the values directly indicate the color information for each pixel without any map.) The problem is that svd() of a pseudocolor image is not meaningful, and svd() of a 3D array is not allowed. The only choice available to get anything useful out is to convert the image to grayscale and svd() the grayscale image.
slama najla
el 21 de Abr. de 2012
0 votos
Hello, can some body help me with the code of SVD decomposition in 3d medical data in matlab please.
1 comentario
Walter Roberson
el 21 de Abr. de 2012
No. SVD is only for 2D.
You could take the svd() of each plane.
slama najla
el 28 de Abr. de 2012
0 votos
But many approaches use it us decomposition for 3d data in watermarking,this is why i reask this question.thanks
2 comentarios
Walter Roberson
el 28 de Abr. de 2012
SVD is *defined* in terms of rectangular matrices. There is no method to apply SVD to a 3D matrix. I looked at some of the articles about color image watermarking using svd, and of the ones I could access, not one of them attempted to apply SVD to a 3D matrix.
Neelam Yadav
el 18 de Sept. de 2020
Hello, can anyone help me how I get different image for U,S,V in svd
Ayesha Iftikhar
el 19 de Sept. de 2018
0 votos
Hello can any one help me how to use SVD for feature extraction
vasanthi Muniasamy
el 24 de Mayo de 2019
0 votos
i=imread('pout.tif');
i=im2double(i)
[u s v]=svd(rgb2gray(i));
1 comentario
toktam sameie
el 17 de Jul. de 2020
Thank you for your great help
Categorías
Más información sobre Eigenvalues en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!