public class RHOpenCVUtils
extends java.lang.Object
Constructor and Description |
---|
RHOpenCVUtils() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
fillBufferedByteImage(org.opencv.core.Mat inMat,
java.awt.image.BufferedImage inBuff)
converts an image from OpenCV to java space
|
static java.awt.image.BufferedImage |
fillBufferedIntImage(org.opencv.core.Mat inMat,
java.awt.image.BufferedImage inBuff)
converts an image from OpenCV to java space
|
static java.awt.image.BufferedImage |
makeBufferedImage(int w,
int h,
boolean isGrayScale)
converts an image from OpenCV to java space
|
static java.awt.image.BufferedImage |
makeBufferedImage(org.opencv.core.Mat inMat)
converts an image from OpenCV to java space
|
static java.awt.image.BufferedImage |
makeBufferedImage2(org.opencv.core.Mat inMat)
converts an image from OpenCV to java space
|
public static java.awt.image.BufferedImage makeBufferedImage(int w, int h, boolean isGrayScale)
w
- the widthh
- the heightisGrayScale
- is the image gray scale?public static java.awt.image.BufferedImage makeBufferedImage(org.opencv.core.Mat inMat)
inMat
- the 2D array of image datapublic static java.awt.image.BufferedImage makeBufferedImage2(org.opencv.core.Mat inMat)
inMat
- the 2D array of image datapublic static java.awt.image.BufferedImage fillBufferedByteImage(org.opencv.core.Mat inMat, java.awt.image.BufferedImage inBuff)
inMat
- the 2D array of image datainBuff
- the buffer to usepublic static java.awt.image.BufferedImage fillBufferedIntImage(org.opencv.core.Mat inMat, java.awt.image.BufferedImage inBuff)
inMat
- the 2D array of image datainBuff
- the buffer to useRH, 2017