List of usage examples for org.opencv.core Core bitwise_and
public static void bitwise_and(Mat src1, Mat src2, Mat dst, Mat mask)
From source file:car_counter.counting.opencv.OpencvCarCounter.java
License:Apache License
protected void processFrame() { backgroundSubtractor.apply(image, foregroundMask, 0.1); //Imgproc.cvtColor(foregroundMask, foregroundMask, Imgproc.COLOR_, 4); //Imgproc.cvtColor(image, image, Imgproc.COLOR_RGBA2GRAY, 4); //Imgproc.cvtColor(maskedImage, maskedImage, Imgproc.COLOR_RGBA2GRAY, 4); Core.bitwise_and(image, image, maskedImage, foregroundMask); }