magickAdaptiveThresholdImage method

Future<bool> magickAdaptiveThresholdImage({
  1. required int width,
  2. required int height,
  3. required double bias,
})

Selects an individual threshold for each pixel based on the range of intensity values in its local neighborhood. This allows for thresholding of an image whose global intensity histogram doesn't contain distinctive peaks.

This method runs inside an isolate different from the main isolate.

  • width : the width of the local neighborhood.
  • height : the height of the local neighborhood.
  • bias : the mean offset.

Implementation

Future<bool> magickAdaptiveThresholdImage({
  required int width,
  required int height,
  required double bias,
}) async =>
    await _magickCompute(
      _magickAdaptiveThresholdImage,
      _MagickAdaptiveThresholdImageParams(
        _wandPtr.address,
        width,
        height,
        bias,
      ),
    );