XPhotoInvokeBm3dDenoising Method (IInputArray, IInputOutputArray, IOutputArray, Single, Int32, Int32, Int32, Int32, Int32, Int32, Single, NormType, Bm3dSteps, TransformTypes) |
http://www.emgu.com
Performs image denoising using the Block-Matching and 3D-filtering algorithm with several computational optimizations. Noise expected to be a gaussian white noise.
Namespace:
Emgu.CV.XPhoto
Assembly:
Emgu.CV.Platform.NetStandard (in Emgu.CV.Platform.NetStandard.dll) Version: 4.3.0.3890
Syntaxpublic static void Bm3dDenoising(
IInputArray src,
IInputOutputArray dstStep1,
IOutputArray dstStep2,
float h = 1f,
int templateWindowSize = 4,
int searchWindowSize = 16,
int blockMatchingStep1 = 2500,
int blockMatchingStep2 = 400,
int groupSize = 8,
int slidingStep = 1,
float beta = 2f,
NormType normType = NormType.L2,
Bm3dSteps step = Bm3dSteps.All,
TransformTypes transformType = TransformTypes.Haar
)
Public Shared Sub Bm3dDenoising (
src As IInputArray,
dstStep1 As IInputOutputArray,
dstStep2 As IOutputArray,
Optional h As Single = 1F,
Optional templateWindowSize As Integer = 4,
Optional searchWindowSize As Integer = 16,
Optional blockMatchingStep1 As Integer = 2500,
Optional blockMatchingStep2 As Integer = 400,
Optional groupSize As Integer = 8,
Optional slidingStep As Integer = 1,
Optional beta As Single = 2F,
Optional normType As NormType = NormType.L2,
Optional step As Bm3dSteps = Bm3dSteps.All,
Optional transformType As TransformTypes = TransformTypes.Haar
)
public:
static void Bm3dDenoising(
IInputArray^ src,
IInputOutputArray^ dstStep1,
IOutputArray^ dstStep2,
float h = 1f,
int templateWindowSize = 4,
int searchWindowSize = 16,
int blockMatchingStep1 = 2500,
int blockMatchingStep2 = 400,
int groupSize = 8,
int slidingStep = 1,
float beta = 2f,
NormType normType = NormType::L2,
Bm3dSteps step = Bm3dSteps::All,
TransformTypes transformType = TransformTypes::Haar
)
static member Bm3dDenoising :
src : IInputArray *
dstStep1 : IInputOutputArray *
dstStep2 : IOutputArray *
?h : float32 *
?templateWindowSize : int *
?searchWindowSize : int *
?blockMatchingStep1 : int *
?blockMatchingStep2 : int *
?groupSize : int *
?slidingStep : int *
?beta : float32 *
?normType : NormType *
?step : Bm3dSteps *
?transformType : TransformTypes
(* Defaults:
let _h = defaultArg h 1f
let _templateWindowSize = defaultArg templateWindowSize 4
let _searchWindowSize = defaultArg searchWindowSize 16
let _blockMatchingStep1 = defaultArg blockMatchingStep1 2500
let _blockMatchingStep2 = defaultArg blockMatchingStep2 400
let _groupSize = defaultArg groupSize 8
let _slidingStep = defaultArg slidingStep 1
let _beta = defaultArg beta 2f
let _normType = defaultArg normType NormType.L2
let _step = defaultArg step Bm3dSteps.All
let _transformType = defaultArg transformType TransformTypes.Haar
*)
-> unit
Parameters
- src
- Type: Emgu.CVIInputArray
Input 8-bit or 16-bit 1-channel image. - dstStep1
- Type: Emgu.CVIInputOutputArray
Output image of the first step of BM3D with the same size and type as src. - dstStep2
- Type: Emgu.CVIOutputArray
Output image of the second step of BM3D with the same size and type as src. - h (Optional)
- Type: SystemSingle
Parameter regulating filter strength. Big h value perfectly removes noise but also removes image details, smaller h value preserves details but also preserves some noise. - templateWindowSize (Optional)
- Type: SystemInt32
Size in pixels of the template patch that is used for block-matching. Should be power of 2. - searchWindowSize (Optional)
- Type: SystemInt32
Size in pixels of the window that is used to perform block-matching. Affect performance linearly: greater searchWindowsSize - greater denoising time. Must be larger than templateWindowSize. - blockMatchingStep1 (Optional)
- Type: SystemInt32
Block matching threshold for the first step of BM3D (hard thresholding), i.e. maximum distance for which two blocks are considered similar. Value expressed in euclidean distance. - blockMatchingStep2 (Optional)
- Type: SystemInt32
Block matching threshold for the second step of BM3D (Wiener filtering), i.e. maximum distance for which two blocks are considered similar. Value expressed in euclidean distance. - groupSize (Optional)
- Type: SystemInt32
Maximum size of the 3D group for collaborative filtering. - slidingStep (Optional)
- Type: SystemInt32
Sliding step to process every next reference block. - beta (Optional)
- Type: SystemSingle
Kaiser window parameter that affects the sidelobe attenuation of the transform of the window. Kaiser window is used in order to reduce border effects. To prevent usage of the window, set beta to zero. - normType (Optional)
- Type: Emgu.CV.CvEnumNormType
Norm used to calculate distance between blocks. L2 is slower than L1 but yields more accurate results. - step (Optional)
- Type: Emgu.CV.XPhotoBm3dSteps
Step of BM3D to be executed. Possible variants are: step 1, step 2, both steps. - transformType (Optional)
- Type: Emgu.CV.XPhotoTransformTypes
Type of the orthogonal transform used in collaborative filtering step. Currently only Haar transform is supported.
Remarks
See Also