magickStatisticImage method

Future<bool> magickStatisticImage({
  1. required StatisticType type,
  2. required int width,
  3. 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,
      ),
    );