magickLevelizeImage method
MagickLevelizeImage() applies the reversed MagickLevelImage(). It compresses the full range of color values, so that they lie between the given black and white points. Gamma is applied before the values are mapped. It can be used to de-contrast a greyscale image to the exact levels specified.
This method runs inside an isolate different from the main isolate.
blackPoint
: The level to map zero (black) to.whitePoint
: The level to map QuantumRange (white) to.gamma
: adjust gamma by this factor before mapping values.
Implementation
Future<bool> magickLevelizeImage({
required double blackPoint,
required double whitePoint,
required double gamma,
}) async =>
await _magickCompute(
_magickLevelizeImage,
_MagickLevelizeImageParams(
_wandPtr.address,
blackPoint,
whitePoint,
gamma,
),
);