Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 (3x1 matrix) values for every pixels are to be processed) and I don't want to use for-loops because that makes the cod inefficient. One way I found out is to change nxnx3 Mat object to 3xn.n, can anybody tell me how to do that?

Thanks!

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 (3x1 matrix) values for every pixels are to be processed) and I don't want to use for-loops because that makes the cod inefficient. One way I found out is to change nxnx3 Mat object to 3xn.n, can anybody tell me how to do that?

Thanks!

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 (3x1 matrix) values are to be processed) and processed. RGB values will make a 3x1 matrix, hence the matrix multiplication)

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

Thanks!