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 |
BIMEF(GpuMat input,
GpuMat output) |
static void |
BIMEF(GpuMat input,
GpuMat output,
float mu,
float a,
float b) |
static void |
BIMEF(Mat input,
Mat output) |
static void |
BIMEF(Mat input,
Mat output,
float mu,
float a,
float b)
\brief Given an input color image, enhance low-light images using the BIMEF method (\cite ying2017bio \cite ying2017new).
|
static void |
BIMEF(UMat input,
UMat output) |
static void |
BIMEF(UMat input,
UMat output,
float mu,
float a,
float b) |
static void |
BIMEF2(GpuMat input,
GpuMat output,
float k,
float mu,
float a,
float b) |
static void |
BIMEF2(Mat input,
Mat output,
float k,
float mu,
float a,
float b)
\brief Given an input color image, enhance low-light images using the BIMEF method (\cite ying2017bio \cite ying2017new).
|
static void |
BIMEF2(UMat input,
UMat output,
float k,
float mu,
float a,
float b) |
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.@Namespace(value="cv::intensity_transform") public static void BIMEF(@ByVal Mat input, @ByVal Mat output, float mu, float a, float b)
input
- input color image.output
- resulting image.mu
- enhancement ratio.a
- a-parameter in the Camera Response Function (CRF).b
- b-parameter in the Camera Response Function (CRF).
\warning This is a C++ implementation of the [original MATLAB algorithm](https://github.com/baidut/BIMEF).
Compared to the original code, this implementation is a little bit slower and does not provide the same results.
In particular, quality of the image enhancement is degraded for the bright areas in certain conditions.@Namespace(value="cv::intensity_transform") public static void BIMEF(@ByVal Mat input, @ByVal Mat output)
@Namespace(value="cv::intensity_transform") public static void BIMEF(@ByVal UMat input, @ByVal UMat output, float mu, float a, float b)
@Namespace(value="cv::intensity_transform") public static void BIMEF(@ByVal UMat input, @ByVal UMat output)
@Namespace(value="cv::intensity_transform") public static void BIMEF(@ByVal GpuMat input, @ByVal GpuMat output, float mu, float a, float b)
@Namespace(value="cv::intensity_transform") public static void BIMEF(@ByVal GpuMat input, @ByVal GpuMat output)
@Namespace(value="cv::intensity_transform") @Name(value="BIMEF") public static void BIMEF2(@ByVal Mat input, @ByVal Mat output, float k, float mu, float a, float b)
input
- input color image.output
- resulting image.k
- exposure ratio.mu
- enhancement ratio.a
- a-parameter in the Camera Response Function (CRF).b
- b-parameter in the Camera Response Function (CRF).
\warning This is a C++ implementation of the [original MATLAB algorithm](https://github.com/baidut/BIMEF).
Compared to the original code, this implementation is a little bit slower and does not provide the same results.
In particular, quality of the image enhancement is degraded for the bright areas in certain conditions.@Namespace(value="cv::intensity_transform") @Name(value="BIMEF") public static void BIMEF2(@ByVal UMat input, @ByVal UMat output, float k, float mu, float a, float b)
Copyright © 2024. All rights reserved.