public class opencv_intensity_transform extends opencv_intensity_transform
Constructor and Description |
---|
opencv_intensity_transform() |
Modifier and Type | Method and Description |
---|---|
static void |
autoscaling(Mat input,
Mat output)
\brief Given an input bgr or grayscale image, apply autoscaling on domain [0, 255] to increase
the contrast of the input image and return the resulting image.
|
static void |
contrastStretching(Mat input,
Mat output,
int r1,
int s1,
int r2,
int s2)
\brief Given an input bgr or grayscale image, apply linear contrast stretching on domain [0, 255]
and return the resulting image.
|
static void |
gammaCorrection(Mat input,
Mat output,
float gamma)
\brief Given an input bgr or grayscale image and constant gamma, apply power-law transformation,
a.k.a.
|
static void |
logTransform(Mat input,
Mat output)
\addtogroup intensity_transform
\{
|
map
@Namespace(value="cv::intensity_transform") public static void logTransform(@Const @ByVal Mat input, @ByRef Mat output)
/** \brief Given an input bgr or grayscale image and constant c, apply log transformation to the image on domain [0, 255] and return the resulting image.
input
- input bgr or grayscale image.output
- resulting image of log transformations.@Namespace(value="cv::intensity_transform") public static void gammaCorrection(@Const @ByVal Mat input, @ByRef Mat output, float gamma)
input
- input bgr or grayscale image.output
- resulting image of gamma corrections.gamma
- constant in c*r^gamma where r is pixel value.@Namespace(value="cv::intensity_transform") public static void autoscaling(@Const @ByVal Mat input, @ByRef Mat output)
input
- input bgr or grayscale image.output
- resulting image of autoscaling.@Namespace(value="cv::intensity_transform") public static void contrastStretching(@Const @ByVal Mat input, @ByRef Mat output, int r1, int s1, int r2, int s2)
input
- input bgr or grayscale image.output
- resulting image of contrast stretching.r1
- x coordinate of first point (r1, s1) in the transformation function.s1
- y coordinate of first point (r1, s1) in the transformation function.r2
- x coordinate of second point (r2, s2) in the transformation function.s2
- y coordinate of second point (r2, s2) in the transformation function.Copyright © 2020. All rights reserved.