Class EnhanceImageOps

java.lang.Object
boofcv.alg.enhance.EnhanceImageOps

public class EnhanceImageOps extends Object

Operations for improving the visibility of images. See [1] for a discussion of algorithms found in this class.

[1] R. C. Gonzalez, R. E. Woods, "Digitial Image Processing" 2nd Ed. 2002

  • Field Details

    • kernelEnhance4_I32

      public static Kernel2D_S32 kernelEnhance4_I32
    • kernelEnhance4_F32

      public static Kernel2D_F32 kernelEnhance4_F32
    • kernelEnhance8_I32

      public static Kernel2D_S32 kernelEnhance8_I32
    • kernelEnhance8_F32

      public static Kernel2D_F32 kernelEnhance8_F32
  • Constructor Details

    • EnhanceImageOps

      public EnhanceImageOps()
  • Method Details

    • equalize

      public static void equalize(int[] histogram, int[] transform)
      Computes a transformation table which will equalize the provided histogram. An equalized histogram spreads the 'weight' across the whole spectrum of values. Often used to make dim images easier for people to see.
      Parameters:
      histogram - Input image histogram.
      transform - Output transformation table.
    • applyTransform

      public static void applyTransform(GrayU8 input, int[] transform, GrayU8 output)
      Applies the transformation table to the provided input image.
      Parameters:
      input - Input image.
      transform - Input transformation table.
      output - Output image.
    • applyTransform

      public static void applyTransform(GrayU16 input, int[] transform, GrayU16 output)
      Applies the transformation table to the provided input image.
      Parameters:
      input - Input image.
      transform - Input transformation table.
      output - Output image.
    • applyTransform

      public static void applyTransform(GrayS8 input, int[] transform, int minValue, GrayS8 output)
      Applies the transformation table to the provided input image.
      Parameters:
      input - Input image.
      minValue - Minimum possible pixel value.
      transform - Input transformation table.
      output - Output image.
    • applyTransform

      public static void applyTransform(GrayS16 input, int[] transform, int minValue, GrayS16 output)
      Applies the transformation table to the provided input image.
      Parameters:
      input - Input image.
      minValue - Minimum possible pixel value.
      transform - Input transformation table.
      output - Output image.
    • applyTransform

      public static void applyTransform(GrayS32 input, int[] transform, int minValue, GrayS32 output)
      Applies the transformation table to the provided input image.
      Parameters:
      input - Input image.
      minValue - Minimum possible pixel value.
      transform - Input transformation table.
      output - Output image.
    • equalizeLocal

      public static void equalizeLocal(GrayU8 input, int radius, GrayU8 output, int histogramLength, @Nullable @Nullable GrowArray<DogArray_I32> workspaces)
      Equalizes the local image histogram on a per pixel basis.
      Parameters:
      input - Input image.
      radius - Radius of square local histogram.
      output - Output image.
      histogramLength - Number of elements in the histogram. 256 for 8-bit images
      workspaces - (Optional) Used to create work arrays. Nullable
    • equalizeLocal

      public static void equalizeLocal(GrayU16 input, int radius, GrayU16 output, int histogramLength, @Nullable @Nullable GrowArray<DogArray_I32> workspaces)
      Equalizes the local image histogram on a per pixel basis.
      Parameters:
      input - Input image.
      radius - Radius of square local histogram.
      output - Output image.
      histogramLength - Number of elements in the histogram. 256 for 8-bit images
      workspaces - Used to create work arrays. can be null
    • sharpen4

      public static void sharpen4(GrayU8 input, GrayU8 output)
      Applies a Laplacian-4 based sharpen filter to the image.
      Parameters:
      input - Input image.
      output - Output image.
    • sharpen4

      public static void sharpen4(GrayF32 input, GrayF32 output)
      Applies a Laplacian-4 based sharpen filter to the image.
      Parameters:
      input - Input image.
      output - Output image.
    • sharpen8

      public static void sharpen8(GrayU8 input, GrayU8 output)
      Applies a Laplacian-8 based sharpen filter to the image.
      Parameters:
      input - Input image.
      output - Output image.
    • sharpen8

      public static void sharpen8(GrayF32 input, GrayF32 output)
      Applies a Laplacian-8 based sharpen filter to the image.
      Parameters:
      input - Input image.
      output - Output image.