magickStatisticImage method
Future<bool>
magickStatisticImage({
- required StatisticType type,
- required int width,
- required int height,
MagickStatisticImage() replace each pixel with corresponding statistic from the neighborhood of the specified width and height.
This method runs inside an isolate different from the main isolate.
type
: the statistic type (e.g. median, mode, etc.).width
: the width of the pixel neighborhood.height
: the height of the pixel neighborhood.
Implementation
Future<bool> magickStatisticImage({
required StatisticType type,
required int width,
required int height,
}) async =>
await _magickCompute(
_magickStatisticImage,
_MagickStatisticImageParams(
_wandPtr.address,
type,
width,
height,
),
);