public class ImageProcessor extends Object
| Constructor and Description |
|---|
ImageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static ImageCV |
applyCropMask(org.opencv.core.Mat source,
Rectangle b,
double alpha) |
static ImageCV |
applyLUT(org.opencv.core.Mat source,
byte[][] lut) |
static ImageCV |
applyShutter(org.opencv.core.Mat source,
RenderedImage imgOverlay,
Color color) |
static ImageCV |
applyShutter(org.opencv.core.Mat source,
Shape shape,
Color color) |
static ImageCV |
bitwiseAnd(org.opencv.core.Mat source,
int src2Cst) |
org.opencv.core.Mat |
blur(org.opencv.core.Mat input,
int numberOfTimes) |
static ImageCV |
buildThumbnail(PlanarImage source,
Dimension iconDim,
boolean keepRatio) |
static ImageCV |
combineTwoImages(org.opencv.core.Mat source,
org.opencv.core.Mat imgOverlay,
int transparency) |
static ImageCV |
crop(org.opencv.core.Mat source,
Rectangle area) |
static BufferedImage |
drawShape(RenderedImage source,
Shape shape,
Color color) |
static List<org.opencv.core.MatOfPoint> |
findContours(RenderedImage source,
Rectangle area) |
static org.opencv.core.Core.MinMaxLocResult |
findMinMaxValues(org.opencv.core.Mat source)
Computes Min/Max values from Image excluding range of values provided
|
static org.opencv.core.Core.MinMaxLocResult |
findMinMaxValues(org.opencv.core.Mat source,
Integer paddingValue,
Integer paddingLimit) |
static ImageCV |
flip(org.opencv.core.Mat source,
int flipCvType) |
static BufferedImage |
getAsImage(Area shape,
RenderedImage source) |
static List<org.opencv.core.Mat> |
getMaskImage(org.opencv.core.Mat source,
Shape shape,
Integer paddingValue,
Integer paddingLimit) |
static ImageCV |
getRotatedImage(org.opencv.core.Mat source,
double angle,
double centerx,
double centery) |
static ImageCV |
getRotatedImage(org.opencv.core.Mat source,
int rotateCvType) |
static ImageCV |
invertLUT(ImageCV source) |
static double[][] |
meanStdDev(org.opencv.core.Mat source) |
static double[][] |
meanStdDev(org.opencv.core.Mat source,
Shape shape) |
static double[][] |
meanStdDev(org.opencv.core.Mat source,
Shape shape,
Integer paddingValue,
Integer paddingLimit) |
static org.opencv.core.Core.MinMaxLocResult |
minMaxLoc(org.opencv.core.Mat srcImg,
org.opencv.core.Mat mask) |
static org.opencv.core.Core.MinMaxLocResult |
minMaxLoc(RenderedImage source,
Rectangle area) |
static ImageCV |
overlay(org.opencv.core.Mat source,
RenderedImage imgOverlay,
Color color) |
void |
process(org.opencv.core.Mat sourceImage,
org.opencv.core.Mat resultImage,
int tileSize) |
static ImageCV |
readImage(File file) |
static ImageCV |
readImageWithCvException(File file) |
static ImageCV |
rescaleToByte(org.opencv.core.Mat source,
double alpha,
double beta) |
static ImageCV |
scale(org.opencv.core.Mat source,
Dimension dim) |
static ImageCV |
scale(org.opencv.core.Mat source,
Dimension dim,
Integer interpolation) |
static List<org.opencv.core.MatOfPoint> |
transformShapeToContour(Shape shape,
boolean keepImageCoordinates) |
static ImageCV |
warpAffine(org.opencv.core.Mat source,
org.opencv.core.Mat matrix,
org.opencv.core.Size boxSize,
Integer interpolation) |
static boolean |
writeImage(org.opencv.core.Mat source,
File file) |
static boolean |
writeImage(org.opencv.core.Mat source,
File file,
org.opencv.core.MatOfInt params) |
static boolean |
writeImage(RenderedImage source,
File file) |
static boolean |
writePNG(org.opencv.core.Mat source,
File file) |
static boolean |
writeThumbnail(org.opencv.core.Mat source,
File file,
int maxSize) |
public static ImageCV applyLUT(org.opencv.core.Mat source, byte[][] lut)
public static ImageCV rescaleToByte(org.opencv.core.Mat source, double alpha, double beta)
public static ImageCV bitwiseAnd(org.opencv.core.Mat source, int src2Cst)
public static org.opencv.core.Core.MinMaxLocResult minMaxLoc(RenderedImage source, Rectangle area)
public static List<org.opencv.core.MatOfPoint> transformShapeToContour(Shape shape, boolean keepImageCoordinates)
public static double[][] meanStdDev(org.opencv.core.Mat source)
public static double[][] meanStdDev(org.opencv.core.Mat source,
Shape shape)
public static double[][] meanStdDev(org.opencv.core.Mat source,
Shape shape,
Integer paddingValue,
Integer paddingLimit)
public static List<org.opencv.core.Mat> getMaskImage(org.opencv.core.Mat source, Shape shape, Integer paddingValue, Integer paddingLimit)
public static org.opencv.core.Core.MinMaxLocResult minMaxLoc(org.opencv.core.Mat srcImg,
org.opencv.core.Mat mask)
public static List<org.opencv.core.MatOfPoint> findContours(RenderedImage source, Rectangle area)
public static ImageCV combineTwoImages(org.opencv.core.Mat source, org.opencv.core.Mat imgOverlay, int transparency)
public static ImageCV overlay(org.opencv.core.Mat source, RenderedImage imgOverlay, Color color)
public static BufferedImage drawShape(RenderedImage source, Shape shape, Color color)
public static ImageCV applyCropMask(org.opencv.core.Mat source, Rectangle b, double alpha)
public static ImageCV applyShutter(org.opencv.core.Mat source, Shape shape, Color color)
public static ImageCV applyShutter(org.opencv.core.Mat source, RenderedImage imgOverlay, Color color)
public static BufferedImage getAsImage(Area shape, RenderedImage source)
public static ImageCV getRotatedImage(org.opencv.core.Mat source, int rotateCvType)
public static ImageCV flip(org.opencv.core.Mat source, int flipCvType)
public static ImageCV getRotatedImage(org.opencv.core.Mat source, double angle, double centerx, double centery)
public static ImageCV warpAffine(org.opencv.core.Mat source, org.opencv.core.Mat matrix, org.opencv.core.Size boxSize, Integer interpolation)
public static org.opencv.core.Core.MinMaxLocResult findMinMaxValues(org.opencv.core.Mat source)
source - the matpublic static org.opencv.core.Core.MinMaxLocResult findMinMaxValues(org.opencv.core.Mat source,
Integer paddingValue,
Integer paddingLimit)
public static ImageCV buildThumbnail(PlanarImage source, Dimension iconDim, boolean keepRatio)
public static boolean writeImage(org.opencv.core.Mat source,
File file)
public static boolean writeThumbnail(org.opencv.core.Mat source,
File file,
int maxSize)
public static boolean writePNG(org.opencv.core.Mat source,
File file)
public static boolean writeImage(RenderedImage source, File file)
public static boolean writeImage(org.opencv.core.Mat source,
File file,
org.opencv.core.MatOfInt params)
public org.opencv.core.Mat blur(org.opencv.core.Mat input,
int numberOfTimes)
public void process(org.opencv.core.Mat sourceImage,
org.opencv.core.Mat resultImage,
int tileSize)
Copyright © 2021. All rights reserved.