Ask Your Question

fadeto404's profile - activity

2020-12-10 04:31:41 -0600 received badge  Enthusiast
2020-12-03 08:08:33 -0600 received badge  Student (source)
2020-12-03 08:07:55 -0600 received badge  Supporter (source)
2020-12-03 08:07:54 -0600 marked best answer Pixel-wise matrix multiplication

I want to multiply every pixel in an image with a 3x3 matrix, treating every pixel as a 3D-vector of colors. In mathematical terms the operation would be something like:

u = M v

where u is the resulting pixel value, M the (3x3) matrix, and v the original pixel value.

I have searched the documentation but have not been able to find a way to do this in OpenCV. Does anybody have any suggestions?

2020-12-03 08:07:54 -0600 received badge  Scholar (source)
2020-12-03 08:07:52 -0600 commented answer Pixel-wise matrix multiplication

I read the documentation again, and after trying it out I realise that you are right. I was confused as it states in the

2020-12-03 07:02:10 -0600 received badge  Editor (source)
2020-12-03 07:02:10 -0600 edited question Pixel-wise matrix multiplication

Pixel-wise matrix multiplication I want to multiply every pixel in an image with a 3x3 matrix, treating every pixel as a

2020-12-03 06:42:33 -0600 commented answer Pixel-wise matrix multiplication

The function transform() seems to operate on every pixel position, that is, it applies the matrix multiplication on the

2020-12-03 06:42:16 -0600 commented answer Pixel-wise matrix multiplication

The function transform seems to operate on every pixel position, that is, it applies the matrix multiplication on the pi

2020-12-03 06:01:10 -0600 asked a question Pixel-wise matrix multiplication

Pixel-wise matrix multiplication I want to multiply every pixel in an image with a matrix, treating every pixel as a 3D-