|
static void | applyGaussianAdditiveNoise (const cv::Mat &image, float variance, cv::Mat &noisy_image) |
| Add Gaussian additive noise to image with the given variance on all channels. More...
|
|
static void | applyGaussianSamplingErrors (const cv::Mat &image, float variance, cv::Mat &noisy_image) |
| Add Gaussian sampling errors with given variance. More...
|
|
static void | applySaltAndPepperNoise (const cv::Mat &image, float p, cv::Mat &noisy_image) |
| Add salt and pepper noise. More...
|
|
static void | applyPoissonNoise (const cv::Mat &image, cv::Mat &noisy_image) |
| Add poisson noise. More...
|
|
static void | applyBlur (const cv::Mat &image, int size, cv::Mat &blurred_image) |
| Apply blur (box filter). More...
|
|
static void | applyGaussianBlur (const cv::Mat &image, int size, float sigma_x, float sigma_y, cv::Mat &blurred_image) |
| Apply Gaussian blurring. More...
|
|
static void | applyMedianBlur (const cv::Mat &image, int size, cv::Mat &blurred_image) |
| Apply median filter. More...
|
|
static void | applyBilateralFilter (const cv::Mat &image, int size, float sigma_color, float sigma_space, cv::Mat &filtered_image) |
| Apply bilateral filter. More...
|
|
static void | applyMotionBlur (const cv::Mat &image, int size, float angle, cv::Mat &blurred_image) |
| Apply motion blur. More...
|
|
template<typename T > |
static void | applyVerticalShear (const cv::Mat &image, int crop, float shear, cv::Mat &sheared_image) |
| Apply vertical shear. More...
|
|
template<typename T > |
static void | applyHorizontalShear (const cv::Mat &image, int crop, float shear, cv::Mat &sheared_image) |
| Apply horizontal shear. More...
|
|
template<typename T > |
static void | applyRotation (const cv::Mat &image, int crop, float angle, cv::Mat &rotated_image, int interpolation=cv::INTER_LINEAR) |
| Apply rotation. More...
|
|
template<typename T > |
static void | applyTranslation (const cv::Mat &image, int crop, int translation_x, int translation_y, cv::Mat &translated_image) |
| Apply translation. More...
|
|
Utility class for image and ground truth transofmrations.
Copyright (c) 2016, David Stutz Contact: david.nosp@m..stu.nosp@m.tz@rw.nosp@m.th-a.nosp@m.achen.nosp@m..de, davidstutz.de All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- Author
- David Stutz
void Transformation::applyGaussianAdditiveNoise |
( |
const cv::Mat & |
image, |
|
|
float |
variance, |
|
|
cv::Mat & |
noisy_image |
|
) |
| |
|
static |
Add Gaussian additive noise to image with the given variance on all channels.
- Parameters
-
[in] | image | image to add Gaussian additive noise to |
[in] | variance | variance of the Gaussian |
[out] | noisy_image | noisy image |
Copyright (c) 2016, David Stutz Contact: david.nosp@m..stu.nosp@m.tz@rw.nosp@m.th-a.nosp@m.achen.nosp@m..de, davidstutz.de All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.