Package org.aoju.bus.image.nimble.opencv
Class ImageProcessor
java.lang.Object
org.aoju.bus.image.nimble.opencv.ImageProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageCVapplyCropMask(org.opencv.core.Mat source, Rectangle b, double alpha) static ImageCVapplyLUT(org.opencv.core.Mat source, byte[][] lut) static ImageCVapplyShutter(org.opencv.core.Mat source, RenderedImage imgOverlay, Color color) static ImageCVapplyShutter(org.opencv.core.Mat source, Shape shape, Color color) static ImageCVbitwiseAnd(org.opencv.core.Mat source, int src2Cst) org.opencv.core.Matblur(org.opencv.core.Mat input, int numberOfTimes) static ImageCVbuildThumbnail(PlanarImage source, Dimension iconDim, boolean keepRatio) static ImageCVcombineTwoImages(org.opencv.core.Mat source, org.opencv.core.Mat imgOverlay, int transparency) static ImageCVstatic BufferedImagedrawShape(RenderedImage source, Shape shape, Color color) static List<org.opencv.core.MatOfPoint> findContours(RenderedImage source, Rectangle area) static org.opencv.core.Core.MinMaxLocResultfindMinMaxValues(org.opencv.core.Mat source) Computes Min/Max values from Image excluding range of values providedstatic org.opencv.core.Core.MinMaxLocResultfindMinMaxValues(org.opencv.core.Mat source, Integer paddingValue, Integer paddingLimit) static ImageCVflip(org.opencv.core.Mat source, int flipCvType) static BufferedImagegetAsImage(Area shape, RenderedImage source) static List<org.opencv.core.Mat> getMaskImage(org.opencv.core.Mat source, Shape shape, Integer paddingValue, Integer paddingLimit) static ImageCVgetRotatedImage(org.opencv.core.Mat source, double angle, double centerx, double centery) static ImageCVgetRotatedImage(org.opencv.core.Mat source, int rotateCvType) static ImageCVstatic 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.MinMaxLocResultminMaxLoc(RenderedImage source, Rectangle area) static org.opencv.core.Core.MinMaxLocResultminMaxLoc(org.opencv.core.Mat srcImg, org.opencv.core.Mat mask) static ImageCVoverlay(org.opencv.core.Mat source, RenderedImage imgOverlay, Color color) voidprocess(org.opencv.core.Mat sourceImage, org.opencv.core.Mat resultImage, int tileSize) static ImageCVstatic ImageCVreadImageWithCvException(File file, List<String> tags) static ImageCVrescaleToByte(org.opencv.core.Mat source, double alpha, double beta) static ImageCVstatic ImageCVstatic List<org.opencv.core.MatOfPoint> transformShapeToContour(Shape shape, boolean keepImageCoordinates) static ImageCVwarpAffine(org.opencv.core.Mat source, org.opencv.core.Mat matrix, org.opencv.core.Size boxSize, Integer interpolation) static booleanwriteImage(RenderedImage source, File file) static booleanwriteImage(org.opencv.core.Mat source, File file) static booleanwriteImage(org.opencv.core.Mat source, File file, org.opencv.core.MatOfInt params) static booleanstatic booleanwriteThumbnail(org.opencv.core.Mat source, File file, int maxSize)
-
Constructor Details
-
ImageProcessor
public ImageProcessor()
-
-
Method Details
-
applyLUT
-
rescaleToByte
-
invertLUT
-
bitwiseAnd
-
crop
-
minMaxLoc
-
transformShapeToContour
-
meanStdDev
public static double[][] meanStdDev(org.opencv.core.Mat source) -
meanStdDev
-
meanStdDev
-
getMaskImage
-
minMaxLoc
public static org.opencv.core.Core.MinMaxLocResult minMaxLoc(org.opencv.core.Mat srcImg, org.opencv.core.Mat mask) -
findContours
-
scale
-
scale
-
combineTwoImages
public static ImageCV combineTwoImages(org.opencv.core.Mat source, org.opencv.core.Mat imgOverlay, int transparency) -
overlay
-
drawShape
-
applyCropMask
-
applyShutter
-
applyShutter
public static ImageCV applyShutter(org.opencv.core.Mat source, RenderedImage imgOverlay, Color color) -
getAsImage
-
getRotatedImage
-
flip
-
getRotatedImage
public static ImageCV getRotatedImage(org.opencv.core.Mat source, double angle, double centerx, double centery) -
warpAffine
-
findMinMaxValues
public static org.opencv.core.Core.MinMaxLocResult findMinMaxValues(org.opencv.core.Mat source) Computes Min/Max values from Image excluding range of values provided- Parameters:
source- the mat- Returns:
- the object
-
findMinMaxValues
-
buildThumbnail
-
writeImage
-
writeThumbnail
-
writePNG
-
writeImage
-
writeImage
public static boolean writeImage(org.opencv.core.Mat source, File file, org.opencv.core.MatOfInt params) -
readImage
-
readImageWithCvException
-
blur
public org.opencv.core.Mat blur(org.opencv.core.Mat input, int numberOfTimes) -
process
public void process(org.opencv.core.Mat sourceImage, org.opencv.core.Mat resultImage, int tileSize)
-