Ask Your Question

Haleema's profile - activity

2013-07-30 04:46:30 -0600 received badge  Editor (source)
2013-07-30 04:45:52 -0600 asked a question Reshaping nxnx3 Mat Object to 3xn.n

Hi,

I have to multiply each and every pixel held in a mat object by a 3x3 Matrix (each pixel as in R, G, B values are to be processed. RGB values will make a 3x1 matrix, hence the matrix multiplication)

I don't want to use for-loops because that makes the code inefficient. So, one way I found out is to change nxnx3 Mat object to 3xn.n, can anybody tell me how to do that?

Thanks!