Example usage for org.opencv.core Core bitwise_and

List of usage examples for org.opencv.core Core bitwise_and

Introduction

In this page you can find the example usage for org.opencv.core Core bitwise_and.

Prototype

public static void bitwise_and(Mat src1, Mat src2, Mat dst, Mat mask) 

Source Link

Usage

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);
}