- #1

- 8

- 0

>> A=imread ('noise.jpg');

>> inv(A)

But I'm getting the following error:

??? Undefined function or method 'inv' for input arguments of type 'uint8'.

How can I change the image matrix so that I can take the inverse of it?

- Thread starter Az83
- Start date

- #1

- 8

- 0

>> A=imread ('noise.jpg');

>> inv(A)

But I'm getting the following error:

??? Undefined function or method 'inv' for input arguments of type 'uint8'.

How can I change the image matrix so that I can take the inverse of it?

- #2

- 15

- 0

well what lanagauge is that?! Matlab?

maby try inv('noise.jpg') :S

hmmm i duno not sure would be easier to know what language your doing it in and what functions or methods you have available.

- #3

jtbell

Mentor

- 15,727

- 3,879

- #4

DrGreg

Science Advisor

Gold Member

- 2,308

- 1,049

I recognise this as MATLAB. It would have helped if you had said so.

>> A=imread ('noise.jpg');

>> inv(A)

But I'm getting the following error:

??? Undefined function or method 'inv' for input arguments of type 'uint8'.

How can I change the image matrix so that I can take the inverse of it?

imread() takes an image file and returns an N x M x 3 array of 8-bit unsigned integers. inv() expects an N x N array of floating points.

I have to ask

- #5

chroot

Staff Emeritus

Science Advisor

Gold Member

- 10,226

- 34

inv(double(A))

You just need to convert the array to the double-precision floating-point datatype before inv() will know what to do with it.

- Warren

- Replies
- 0

- Views
- 2K

- Replies
- 6

- Views
- 488

- Replies
- 7

- Views
- 2K

- Replies
- 2

- Views
- 1K

- Replies
- 1

- Views
- 2K

- Replies
- 3

- Views
- 6K

- Last Post

- Replies
- 2

- Views
- 2K

- Replies
- 5

- Views
- 47K

- Last Post

- Replies
- 8

- Views
- 13K

- Last Post

- Replies
- 1

- Views
- 1K