1 | initial version |
I run code with opencv/samples/data/baboon.jpg and there is no exeption with opencv 4.0.0-pre.
multiply Calculates the per-element scaled product of two arrays. img size must be square
Are you sure that sample.jpeg size is square?
2 | No.2 Revision |
I run code with opencv/samples/data/baboon.jpg and there is no exeption with opencv 4.0.0-pre.
multiply Calculates the per-element scaled product of two arrays. img size must be square
Are you sure that sample.jpeg size is square?
As @berak wrote you should convert img in float before multiply if you want to get a good result and matrix product is * or gemm