Example usage for org.opencv.imgcodecs Imgcodecs Imgcodecs

List of usage examples for org.opencv.imgcodecs Imgcodecs Imgcodecs

Introduction

In this page you can find the example usage for org.opencv.imgcodecs Imgcodecs Imgcodecs.

Prototype

Imgcodecs

Source Link

Usage

From source file:attendance_system_adder.cv.image.java

public BufferedImage readImage(String filePath, int index) {
    if (ic == null) {
        ic = new Imgcodecs();
    }// w w  w.  j ava2s.co  m
    Mat imread = ic.imread(filePath, 1);
    return this.Mat2BufferedImage(imread);
}

From source file:attendance_system_adder.cv.image.java

public Mat readImageToMat(String filePath, int index) {
    if (ic == null) {
        ic = new Imgcodecs();
    }/*from www .j  a v a 2  s.  co m*/
    Mat imread = ic.imread(filePath, 1);
    return imread;
}

From source file:attendance_system_adder.cv.image.java

public void saveImage(String filePath, Mat img2) {
    if (ic == null) {
        ic = new Imgcodecs();
    }
    ic.imwrite(filePath, img2);

}