magickDeskewImage method

Future<bool> magickDeskewImage(
  1. double threshold
)

Removes skew from the image. Skew is an artifact that occurs in scanned images because of the camera being misaligned, imperfections in the scanning or surface, or simply because the paper was not placed completely flat when scanned.

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

  • threshold: separate background from foreground.

Implementation

Future<bool> magickDeskewImage(double threshold) async =>
    await _magickCompute(
      _magickDeskewImage,
      _MagickDeskewImageParams(_wandPtr.address, threshold),
    );