Package boofcv.alg.enhance
Class EnhanceImageOps
java.lang.Object
boofcv.alg.enhance.EnhanceImageOps
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 Summary
Modifier and TypeFieldDescriptionstatic Kernel2D_F32
static Kernel2D_S32
static Kernel2D_F32
static Kernel2D_S32
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyTransform
(GrayS16 input, int[] transform, int minValue, GrayS16 output) Applies the transformation table to the provided input image.static void
applyTransform
(GrayS32 input, int[] transform, int minValue, GrayS32 output) Applies the transformation table to the provided input image.static void
applyTransform
(GrayS8 input, int[] transform, int minValue, GrayS8 output) Applies the transformation table to the provided input image.static void
applyTransform
(GrayU16 input, int[] transform, GrayU16 output) Applies the transformation table to the provided input image.static void
applyTransform
(GrayU8 input, int[] transform, 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
(GrayU16 input, int radius, GrayU16 output, int histogramLength, @Nullable GrowArray<DogArray_I32> workspaces) Equalizes the local image histogram on a per pixel basis.static void
equalizeLocal
(GrayU8 input, int radius, GrayU8 output, int histogramLength, @Nullable GrowArray<DogArray_I32> workspaces) Equalizes the local image histogram on a per pixel basis.static void
Applies a Laplacian-4 based sharpen filter to the image.static void
Applies a Laplacian-4 based sharpen filter to the image.static void
Applies a Laplacian-8 based sharpen filter to the image.static void
Applies a Laplacian-8 based sharpen filter to the image.
-
Field Details
-
kernelEnhance4_I32
-
kernelEnhance4_F32
-
kernelEnhance8_I32
-
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
Applies the transformation table to the provided input image.- Parameters:
input
- Input image.transform
- Input transformation table.output
- Output image.
-
applyTransform
Applies the transformation table to the provided input image.- Parameters:
input
- Input image.transform
- Input transformation table.output
- Output image.
-
applyTransform
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
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
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 imagesworkspaces
- (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 imagesworkspaces
- Used to create work arrays. can be null
-
sharpen4
Applies a Laplacian-4 based sharpen filter to the image.- Parameters:
input
- Input image.output
- Output image.
-
sharpen4
Applies a Laplacian-4 based sharpen filter to the image.- Parameters:
input
- Input image.output
- Output image.
-
sharpen8
Applies a Laplacian-8 based sharpen filter to the image.- Parameters:
input
- Input image.output
- Output image.
-
sharpen8
Applies a Laplacian-8 based sharpen filter to the image.- Parameters:
input
- Input image.output
- Output image.
-