Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A dot-product of two matrices

Mat gaborMatR = new Mat(gabor_height, gabor_width, CvType.CV_32FC1); gaborMatR.put(0,0,gaborMR); Mat gaborMatI = new Mat(gabor_height, gabor_width, CvType.CV_32FC1); gaborMatI.put(0,0,gaborMI); Mat Gdstlena = new Mat(src.rows(),src.cols(), CvType.CV_32FC1); Hi! I want to compute a dot-product of two matrices and put the result into Mat Gdstlenna. I know function 'dot(InputArray m)',but I don't know how to use it. Could you answer me? Thanks in advance!

A dot-product of two matrices

Mat gaborMatR = new Mat(gabor_height, gabor_width, CvType.CV_32FC1); gaborMatR.put(0,0,gaborMR); Mat gaborMatI = new Mat(gabor_height, gabor_width, CvType.CV_32FC1); gaborMatI.put(0,0,gaborMI); Mat Gdstlena = new Mat(src.rows(),src.cols(), CvType.CV_32FC1); CvType.CV_32FC1);

Hi! I want to compute a dot-product of two matrices and put the result into Mat Gdstlenna. I know function 'dot(InputArray m)',but I don't know how to use it. Could you answer me? Thanks in advance!