Example usage for org.opencv.imgproc Imgproc pyrUp

List of usage examples for org.opencv.imgproc Imgproc pyrUp

Introduction

In this page you can find the example usage for org.opencv.imgproc Imgproc pyrUp.

Prototype

public static void pyrUp(Mat src, Mat dst, Size dstsize) 

Source Link

Usage

From source file:org.lasarobotics.vision.image.Filter.java

License:Open Source License

/**
 * Upsample and blur an image (using a Gaussian pyramid kernel)
 *
 * @param img   The image/*from w  w w  .  j  a v a2 s  . co  m*/
 * @param scale The scale, a number greater than 1
 */
public static void upsample(Mat img, double scale) {
    Imgproc.pyrUp(img, img, new Size((double) img.width() * scale, (double) img.height() * scale));
}