Class ImplBinaryNaiveOps


  • public class ImplBinaryNaiveOps
    extends java.lang.Object
    Simple unoptimized implementations of binary operations.
    See Also:
    BinaryImageOps
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void dilate4​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output)  
      static void dilate8​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output)  
      static void edge4​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output)  
      static void edge4​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output, boolean outsideZero)  
      static void edge8​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output)  
      static void edge8​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output, boolean outsideZero)  
      static void erode4​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output)  
      static void erode8​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output)  
      static boolean getF​(boofcv.struct.image.GrayU8 image, int x, int y)
      If a point is inside the image true is returned if its value is not zero, otherwise false is returned.
      static boolean getT​(boofcv.struct.image.GrayU8 image, int x, int y)
      If a point is inside the image true is returned if its value is not zero, otherwise true is returned.
      static void removePointNoise​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output)
      Binary operation which is designed to remove small bits of spurious noise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImplBinaryNaiveOps

        public ImplBinaryNaiveOps()
    • Method Detail

      • erode4

        public static void erode4​(boofcv.struct.image.GrayU8 input,
                                  boofcv.struct.image.GrayU8 output)
      • dilate4

        public static void dilate4​(boofcv.struct.image.GrayU8 input,
                                   boofcv.struct.image.GrayU8 output)
      • edge4

        public static void edge4​(boofcv.struct.image.GrayU8 input,
                                 boofcv.struct.image.GrayU8 output)
      • edge4

        public static void edge4​(boofcv.struct.image.GrayU8 input,
                                 boofcv.struct.image.GrayU8 output,
                                 boolean outsideZero)
      • erode8

        public static void erode8​(boofcv.struct.image.GrayU8 input,
                                  boofcv.struct.image.GrayU8 output)
      • dilate8

        public static void dilate8​(boofcv.struct.image.GrayU8 input,
                                   boofcv.struct.image.GrayU8 output)
      • edge8

        public static void edge8​(boofcv.struct.image.GrayU8 input,
                                 boofcv.struct.image.GrayU8 output)
      • edge8

        public static void edge8​(boofcv.struct.image.GrayU8 input,
                                 boofcv.struct.image.GrayU8 output,
                                 boolean outsideZero)
      • removePointNoise

        public static void removePointNoise​(boofcv.struct.image.GrayU8 input,
                                            boofcv.struct.image.GrayU8 output)
        Binary operation which is designed to remove small bits of spurious noise. An 8-neighborhood is used. If a pixel is connected to less than 2 neighbors then its value zero. If connected to more than 6 then its value is one. Otherwise it retains its original value.
        Parameters:
        input - Input image. Not modified.
        output - If not null, the output image. If null a new image is declared and returned. Modified.
      • getT

        public static boolean getT​(boofcv.struct.image.GrayU8 image,
                                   int x,
                                   int y)
        If a point is inside the image true is returned if its value is not zero, otherwise true is returned.
      • getF

        public static boolean getF​(boofcv.struct.image.GrayU8 image,
                                   int x,
                                   int y)
        If a point is inside the image true is returned if its value is not zero, otherwise false is returned.