magickSelectiveBlurImage method
MagickSelectiveBlurImage() selectively blur an image within a contrast threshold. It is similar to the unsharpen mask that sharpens everything with contrast above a certain threshold.
This method runs inside an isolate different from the main isolate.
radius
: the radius of the gaussian, in pixels, not counting the center pixel.sigma
: the standard deviation of the gaussian, in pixels.threshold
: only pixels within this contrast threshold are included in the blur operation.
Implementation
Future<bool> magickSelectiveBlurImage({
required double radius,
required double sigma,
required double threshold,
}) async =>
await _magickCompute(
_magickSelectiveBlurImage,
_MagickSelectiveBlurImageParams(
_wandPtr.address,
radius,
sigma,
threshold,
),
);