@@ -6965,30 +6965,42 @@ public void Wave(PixelInterpolateMethod method, double amplitude, double length)
6965
6965
/// </summary>
6966
6966
/// <param name="threshold">The threshold for smoothing.</param>
6967
6967
public void WaveletDenoise ( QuantumType threshold )
6968
- => WaveletDenoise ( threshold , 0.0 ) ;
6968
+ {
6969
+ using var mutator = new Mutator ( _nativeInstance ) ;
6970
+ mutator . WaveletDenoise ( threshold ) ;
6971
+ }
6969
6972
6970
6973
/// <summary>
6971
6974
/// Removes noise from the image using a wavelet transform.
6972
6975
/// </summary>
6973
6976
/// <param name="threshold">The threshold for smoothing.</param>
6974
6977
/// <param name="softness">Attenuate the smoothing threshold.</param>
6975
6978
public void WaveletDenoise ( QuantumType threshold , double softness )
6976
- => _nativeInstance . WaveletDenoise ( threshold , softness ) ;
6979
+ {
6980
+ using var mutator = new Mutator ( _nativeInstance ) ;
6981
+ mutator . WaveletDenoise ( threshold , softness ) ;
6982
+ }
6977
6983
6978
6984
/// <summary>
6979
6985
/// Removes noise from the image using a wavelet transform.
6980
6986
/// </summary>
6981
6987
/// <param name="thresholdPercentage">The threshold for smoothing.</param>
6982
6988
public void WaveletDenoise ( Percentage thresholdPercentage )
6983
- => WaveletDenoise ( PercentageHelper . ToQuantumType ( nameof ( thresholdPercentage ) , thresholdPercentage ) ) ;
6989
+ {
6990
+ using var mutator = new Mutator ( _nativeInstance ) ;
6991
+ mutator . WaveletDenoise ( thresholdPercentage ) ;
6992
+ }
6984
6993
6985
6994
/// <summary>
6986
6995
/// Removes noise from the image using a wavelet transform.
6987
6996
/// </summary>
6988
6997
/// <param name="thresholdPercentage">The threshold for smoothing.</param>
6989
6998
/// <param name="softness">Attenuate the smoothing threshold.</param>
6990
6999
public void WaveletDenoise ( Percentage thresholdPercentage , double softness )
6991
- => WaveletDenoise ( PercentageHelper . ToQuantumType ( nameof ( thresholdPercentage ) , thresholdPercentage ) , softness ) ;
7000
+ {
7001
+ using var mutator = new Mutator ( _nativeInstance ) ;
7002
+ mutator . WaveletDenoise ( thresholdPercentage , softness ) ;
7003
+ }
6992
7004
6993
7005
/// <summary>
6994
7006
/// Apply a white balancing to an image according to a grayworld assumption in the LAB colorspace.
0 commit comments