Asked by buddy
on 2 Mar 2011

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?

*No products are associated with this question.*

Answer by Andreas Goser
on 2 Mar 2011

Accepted answer

This sounds like it is about data types or sizes. Example

pout = imread('pout.tif'); svd(pout) % does not work ??? Undefined function or method 'svd' for input arguments of type 'uint8'. svd(double(pout)) % works

I can however not comment on the mathematical sense of this. I you have another image format like here, you need to think about what you actually like to achieve

I = imread('board.tif'); svd(double(I)) ??? Undefined function or method 'svd' for input arguments of type 'double' and attributes 'full 3d real'.

Answer by meenakshi
on 6 Sep 2011

HELLO GOSER

i=imread('pout.tif'); i=im2double(i) [u s v]=svd(i);

you can try like this.

k.meenakshi

Walter Roberson
on 6 Sep 2011

Answer by slama najla
on 21 Apr 2012

Hello, can some body help me with the code of SVD decomposition in 3d medical data in matlab please.

Answer by slama najla
on 28 Apr 2012

But many approaches use it us decomposition for 3d data in watermarking,this is why i reask this question.thanks

Walter Roberson
on 28 Apr 2012

Opportunities for recent engineering grads.

## 2 Comments

## David Young (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/2327#comment_4741

Please could you say what the error message was, and also show any other parts of your code that might be relevant.

## Andreas Goser (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/2327#comment_4746

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...