- #1

- 7

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

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

In summary: SmithIn summary, the conversation is about trying to take the inverse of an image matrix using MATLAB. The individual is getting an error because the function inv() is not defined for the input type of the image matrix. The expert suggests converting the matrix to a double-precision floating-point datatype before using the inv() function. The purpose of inverting an image matrix is questioned.

- #1

- 7

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

Technology news on Phys.org

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

Staff Emeritus

Science Advisor

Homework Helper

- 16,070

- 5,253

- #4

Science Advisor

Gold Member

- 2,456

- 1,860

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

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

Staff Emeritus

Science Advisor

Gold Member

- 10,276

- 41

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

The inverse of an image array is a mathematical operation that reverses the values of each pixel in an image, resulting in a negative version of the original image.

The inverse of an image array can be used for various purposes such as creating artistic effects, enhancing image contrast, and correcting exposure issues.

The inverse of an image array is calculated by subtracting the original pixel values from the maximum value possible (usually 255 in 8-bit images).

The inverse of an image array and a negative image are often confused, but they are not the same. A negative image simply inverts the colors of an image, whereas the inverse of an image array inverts the pixel values.

Yes, the inverse of an image array can be undone by applying the inverse operation again.

Share:

- Replies
- 11

- Views
- 944

- Replies
- 32

- Views
- 2K

- Replies
- 6

- Views
- 1K

- Replies
- 15

- Views
- 852

- Replies
- 6

- Views
- 671

- Replies
- 3

- Views
- 584

- Replies
- 7

- Views
- 141

- Replies
- 20

- Views
- 1K

- Replies
- 23

- Views
- 3K

- Replies
- 6

- Views
- 766