Class EnhanceImageOps


  • public class EnhanceImageOps
    extends java.lang.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

    • Constructor Summary

      Constructors 
      Constructor Description
      EnhanceImageOps()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void applyTransform​(boofcv.struct.image.GrayS16 input, int[] transform, int minValue, boofcv.struct.image.GrayS16 output)
      Applies the transformation table to the provided input image.
      static void applyTransform​(boofcv.struct.image.GrayS32 input, int[] transform, int minValue, boofcv.struct.image.GrayS32 output)
      Applies the transformation table to the provided input image.
      static void applyTransform​(boofcv.struct.image.GrayS8 input, int[] transform, int minValue, boofcv.struct.image.GrayS8 output)
      Applies the transformation table to the provided input image.
      static void applyTransform​(boofcv.struct.image.GrayU16 input, int[] transform, boofcv.struct.image.GrayU16 output)
      Applies the transformation table to the provided input image.
      static void applyTransform​(boofcv.struct.image.GrayU8 input, int[] transform, boofcv.struct.image.GrayU8 output)
      Applies the transformation table to the provided input image.
      static void equalize​(int[] histogram, int[] transform)
      Computes a transformation table which will equalize the provided histogram.
      static void equalizeLocal​(boofcv.struct.image.GrayU16 input, int radius, boofcv.struct.image.GrayU16 output, int histogramLength, boofcv.concurrency.IWorkArrays workArrays)
      Equalizes the local image histogram on a per pixel basis.
      static void equalizeLocal​(boofcv.struct.image.GrayU8 input, int radius, boofcv.struct.image.GrayU8 output, int histogramLength, boofcv.concurrency.IWorkArrays workArrays)
      Equalizes the local image histogram on a per pixel basis.
      static void sharpen4​(boofcv.struct.image.GrayF32 input, boofcv.struct.image.GrayF32 output)
      Applies a Laplacian-4 based sharpen filter to the image.
      static void sharpen4​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output)
      Applies a Laplacian-4 based sharpen filter to the image.
      static void sharpen8​(boofcv.struct.image.GrayF32 input, boofcv.struct.image.GrayF32 output)
      Applies a Laplacian-8 based sharpen filter to the image.
      static void sharpen8​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output)
      Applies a Laplacian-8 based sharpen filter to the image.
      • Methods inherited from class java.lang.Object

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

      • kernelEnhance4_I32

        public static boofcv.struct.convolve.Kernel2D_S32 kernelEnhance4_I32
      • kernelEnhance4_F32

        public static boofcv.struct.convolve.Kernel2D_F32 kernelEnhance4_F32
      • kernelEnhance8_I32

        public static boofcv.struct.convolve.Kernel2D_S32 kernelEnhance8_I32
      • kernelEnhance8_F32

        public static boofcv.struct.convolve.Kernel2D_F32 kernelEnhance8_F32
    • Constructor Detail

      • EnhanceImageOps

        public EnhanceImageOps()
    • Method Detail

      • 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​(boofcv.struct.image.GrayU8 input,
                                          int[] transform,
                                          boofcv.struct.image.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​(boofcv.struct.image.GrayU16 input,
                                          int[] transform,
                                          boofcv.struct.image.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​(boofcv.struct.image.GrayS8 input,
                                          int[] transform,
                                          int minValue,
                                          boofcv.struct.image.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​(boofcv.struct.image.GrayS16 input,
                                          int[] transform,
                                          int minValue,
                                          boofcv.struct.image.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​(boofcv.struct.image.GrayS32 input,
                                          int[] transform,
                                          int minValue,
                                          boofcv.struct.image.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​(boofcv.struct.image.GrayU8 input,
                                         int radius,
                                         boofcv.struct.image.GrayU8 output,
                                         int histogramLength,
                                         boofcv.concurrency.IWorkArrays workArrays)
        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
        workArrays - Used to create work arrays. can be null
      • equalizeLocal

        public static void equalizeLocal​(boofcv.struct.image.GrayU16 input,
                                         int radius,
                                         boofcv.struct.image.GrayU16 output,
                                         int histogramLength,
                                         boofcv.concurrency.IWorkArrays workArrays)
        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
        workArrays - Used to create work arrays. can be null
      • sharpen4

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

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

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

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