Class OpenCvUtils


  • public class OpenCvUtils
    extends Object
    Author:
    pthomas3
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.bytedeco.opencv.opencv_core.Mat drawOnImage​(org.bytedeco.opencv.opencv_core.Mat image, org.bytedeco.opencv.opencv_core.Point2fVector points)  
      static org.bytedeco.opencv.opencv_core.Mat drawOnImage​(org.bytedeco.opencv.opencv_core.Mat image, org.bytedeco.opencv.opencv_core.Rect overlay, org.bytedeco.opencv.opencv_core.Scalar color)  
      static List<Region> find​(int strictness, boolean findAll, RobotBase robot, org.bytedeco.opencv.opencv_core.Mat source, org.bytedeco.opencv.opencv_core.Mat target, boolean resize)  
      static Region find​(int strictness, RobotBase robot, Region source, byte[] bytes, boolean resize)  
      static Region find​(int strictness, RobotBase robot, org.bytedeco.opencv.opencv_core.Mat source, org.bytedeco.opencv.opencv_core.Mat target, boolean resize)  
      static List<Region> findAll​(int strictness, RobotBase robot, Region source, byte[] bytes, boolean resize)  
      static org.bytedeco.opencv.opencv_core.Mat loadAndShowOrExit​(File file, int flags)  
      static org.bytedeco.opencv.opencv_core.Mat negative​(org.bytedeco.opencv.opencv_core.Mat src)  
      static org.bytedeco.opencv.opencv_core.Mat read​(byte[] bytes)  
      static org.bytedeco.opencv.opencv_core.Mat read​(byte[] bytes, int flags)  
      static org.bytedeco.opencv.opencv_core.Mat read​(File file)  
      static org.bytedeco.opencv.opencv_core.Mat read​(File file, int flags)  
      static BufferedImage readImageAsGreyScale​(File file)  
      static org.bytedeco.opencv.opencv_core.Mat rescale​(org.bytedeco.opencv.opencv_core.Mat mat, double scale)  
      static File save​(BufferedImage image, File file)  
      static void save​(org.bytedeco.opencv.opencv_core.Mat image, File file)  
      static void show​(byte[] bytes, String title)  
      static void show​(Image image, String title)  
      static void show​(org.bytedeco.opencv.opencv_core.Mat mat, String title)  
      static BufferedImage toBufferedImage​(org.bytedeco.opencv.opencv_core.Mat mat)  
      static byte[] toBytes​(BufferedImage img)  
      static org.bytedeco.opencv.opencv_core.Mat toMat​(BufferedImage bi)  
    • Method Detail

      • find

        public static Region find​(int strictness,
                                  RobotBase robot,
                                  Region source,
                                  byte[] bytes,
                                  boolean resize)
      • find

        public static Region find​(int strictness,
                                  RobotBase robot,
                                  org.bytedeco.opencv.opencv_core.Mat source,
                                  org.bytedeco.opencv.opencv_core.Mat target,
                                  boolean resize)
      • findAll

        public static List<Region> findAll​(int strictness,
                                           RobotBase robot,
                                           Region source,
                                           byte[] bytes,
                                           boolean resize)
      • rescale

        public static org.bytedeco.opencv.opencv_core.Mat rescale​(org.bytedeco.opencv.opencv_core.Mat mat,
                                                                  double scale)
      • find

        public static List<Region> find​(int strictness,
                                        boolean findAll,
                                        RobotBase robot,
                                        org.bytedeco.opencv.opencv_core.Mat source,
                                        org.bytedeco.opencv.opencv_core.Mat target,
                                        boolean resize)
      • loadAndShowOrExit

        public static org.bytedeco.opencv.opencv_core.Mat loadAndShowOrExit​(File file,
                                                                            int flags)
      • readImageAsGreyScale

        public static BufferedImage readImageAsGreyScale​(File file)
      • read

        public static org.bytedeco.opencv.opencv_core.Mat read​(File file)
      • read

        public static org.bytedeco.opencv.opencv_core.Mat read​(byte[] bytes)
      • read

        public static org.bytedeco.opencv.opencv_core.Mat read​(byte[] bytes,
                                                               int flags)
      • read

        public static org.bytedeco.opencv.opencv_core.Mat read​(File file,
                                                               int flags)
      • show

        public static void show​(byte[] bytes,
                                String title)
      • show

        public static void show​(org.bytedeco.opencv.opencv_core.Mat mat,
                                String title)
      • show

        public static void show​(Image image,
                                String title)
      • save

        public static void save​(org.bytedeco.opencv.opencv_core.Mat image,
                                File file)
      • drawOnImage

        public static org.bytedeco.opencv.opencv_core.Mat drawOnImage​(org.bytedeco.opencv.opencv_core.Mat image,
                                                                      org.bytedeco.opencv.opencv_core.Point2fVector points)
      • drawOnImage

        public static org.bytedeco.opencv.opencv_core.Mat drawOnImage​(org.bytedeco.opencv.opencv_core.Mat image,
                                                                      org.bytedeco.opencv.opencv_core.Rect overlay,
                                                                      org.bytedeco.opencv.opencv_core.Scalar color)
      • negative

        public static org.bytedeco.opencv.opencv_core.Mat negative​(org.bytedeco.opencv.opencv_core.Mat src)
      • toMat

        public static org.bytedeco.opencv.opencv_core.Mat toMat​(BufferedImage bi)
      • toBufferedImage

        public static BufferedImage toBufferedImage​(org.bytedeco.opencv.opencv_core.Mat mat)