Class ImplBinaryNaiveOps

java.lang.Object
boofcv.alg.filter.binary.impl.ImplBinaryNaiveOps

public class ImplBinaryNaiveOps extends Object
Simple unoptimized implementations of binary operations.
See Also:
  • Constructor Details

    • ImplBinaryNaiveOps

      public ImplBinaryNaiveOps()
  • Method Details

    • erode4

      public static void erode4(GrayU8 input, GrayU8 output)
    • dilate4

      public static void dilate4(GrayU8 input, GrayU8 output)
    • edge4

      public static void edge4(GrayU8 input, GrayU8 output)
    • edge4

      public static void edge4(GrayU8 input, GrayU8 output, boolean outsideZero)
    • erode8

      public static void erode8(GrayU8 input, GrayU8 output)
    • dilate8

      public static void dilate8(GrayU8 input, GrayU8 output)
    • edge8

      public static void edge8(GrayU8 input, GrayU8 output)
    • edge8

      public static void edge8(GrayU8 input, GrayU8 output, boolean outsideZero)
    • removePointNoise

      public static void removePointNoise(GrayU8 input, 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(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(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.