Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok, Ifound the answer:

The function who solved my issue is - Imgproc.filter2D

and i used it like this -

Imgproc.filter2D(Framesarray[i], TempmGray1, CvType.CV_32FC1, kernel, anchor, 0, Imgproc.BORDER_REPLICATE);

explanation:

Ok, Ifound the answer:

The function who solved my issue is - Imgproc.filter2D

and i used it like this -

Imgproc.filter2D(Framesarray[i], TempmGray1, CvType.CV_32FC1, kernel, anchor, 0, Imgproc.BORDER_REPLICATE);

explanation:

The kernel is the "mask" that i want to move in the convolution and the "anchor" is the middle of this matrix. CvType.CV_32FC1 means that the values inside the result matrix could be also negative, and "BORDER_REPLICATE" just fill the edge with zeroes.

that's it.