OpenCV453
bm3d_image_denoising.hpp
[詳解]
1/*M///////////////////////////////////////////////////////////////////////////////////////
2//
3// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4//
5// By downloading, copying, installing or using the software you agree to this license.
6// If you do not agree to this license, do not download, install,
7// copy or use the software.
8//
9//
10// License Agreement
11// For Open Source Computer Vision Library
12//
13// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
14// Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved.
15// Third party copyrights are property of their respective owners.
16//
17// Redistribution and use in source and binary forms, with or without modification,
18// are permitted provided that the following conditions are met:
19//
20// * Redistribution's of source code must retain the above copyright notice,
21// this list of conditions and the following disclaimer.
22//
23// * Redistribution's in binary form must reproduce the above copyright notice,
24// this list of conditions and the following disclaimer in the documentation
25// and/or other materials provided with the distribution.
26//
27// * The name of the copyright holders may not be used to endorse or promote products
28// derived from this software without specific prior written permission.
29//
30// This software is provided by the copyright holders and contributors "as is" and
31// any express or implied warranties, including, but not limited to, the implied
32// warranties of merchantability and fitness for a particular purpose are disclaimed.
33// In no event shall the Intel Corporation or contributors be liable for any direct,
34// indirect, incidental, special, exemplary, or consequential damages
35// (including, but not limited to, procurement of substitute goods or services;
36// loss of use, data, or profits; or business interruption) however caused
37// and on any theory of liability, whether in contract, strict liability,
38// or tort (including negligence or otherwise) arising in any way out of
39// the use of this software, even if advised of the possibility of such damage.
40//
41//M*/
42
43#ifndef __OPENCV_BM3D_IMAGE_DENOISING_HPP__
44#define __OPENCV_BM3D_IMAGE_DENOISING_HPP__
45
51#include <opencv2/core.hpp>
52
53namespace cv
54{
55 namespace xphoto
56 {
59
62 {
64 HAAR = 0
65 };
66
69 {
75 BM3D_STEP2 = 2
76 };
77
115 CV_EXPORTS_W void bm3dDenoising(
116 InputArray src,
117 InputOutputArray dstStep1,
118 OutputArray dstStep2,
119 float h = 1,
120 int templateWindowSize = 4,
121 int searchWindowSize = 16,
122 int blockMatchingStep1 = 2500,
123 int blockMatchingStep2 = 400,
124 int groupSize = 8,
125 int slidingStep = 1,
126 float beta = 2.0f,
127 int normType = cv::NORM_L2,
128 int step = cv::xphoto::BM3D_STEPALL,
129 int transformType = cv::xphoto::HAAR);
130
168 CV_EXPORTS_W void bm3dDenoising(
169 InputArray src,
170 OutputArray dst,
171 float h = 1,
172 int templateWindowSize = 4,
173 int searchWindowSize = 16,
174 int blockMatchingStep1 = 2500,
175 int blockMatchingStep2 = 400,
176 int groupSize = 8,
177 int slidingStep = 1,
178 float beta = 2.0f,
179 int normType = cv::NORM_L2,
180 int step = cv::xphoto::BM3D_STEPALL,
181 int transformType = cv::xphoto::HAAR);
183 }
184}
185
186#endif // __OPENCV_BM3D_IMAGE_DENOISING_HPP__
Definition: mat.hpp:386
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
@ NORM_L2
Definition: base.hpp:185
Bm3dSteps
BM3D algorithm steps
Definition: bm3d_image_denoising.hpp:69
CV_EXPORTS_W void bm3dDenoising(InputArray src, OutputArray dst, float h=1, int templateWindowSize=4, int searchWindowSize=16, int blockMatchingStep1=2500, int blockMatchingStep2=400, int groupSize=8, int slidingStep=1, float beta=2.0f, int normType=cv::NORM_L2, int step=cv::xphoto::BM3D_STEPALL, int transformType=cv::xphoto::HAAR)
Performs image denoising using the Block-Matching and 3D-filtering algorithm http://www....
TransformTypes
BM3D transform types
Definition: bm3d_image_denoising.hpp:62
@ BM3D_STEP1
Definition: bm3d_image_denoising.hpp:73
@ BM3D_STEPALL
Definition: bm3d_image_denoising.hpp:71
@ BM3D_STEP2
Definition: bm3d_image_denoising.hpp:75
@ HAAR
Definition: bm3d_image_denoising.hpp:64
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75