magickSegmentImage method
Future<bool>
magickSegmentImage({
- required ColorspaceType colorspace,
- required bool verbose,
- required double clusterThreshold,
- required double smoothThreshold,
MagickSegmentImage() segments an image by analyzing the histograms of the color components and identifying units that are homogeneous with the fuzzy C-means technique.
This method runs inside an isolate different from the main isolate.
colorspace
: the image colorspace.verbose
: Set to true to print detailed information about the identified classes.clusterThreshold
: This represents the minimum number of pixels contained in a hexahedra before it can be considered valid (expressed as a percentage).smoothThreshold
: the smoothing threshold eliminates noise in the second derivative of the histogram. As the value is increased, you can expect a smoother second derivative.
Implementation
Future<bool> magickSegmentImage({
required ColorspaceType colorspace,
required bool verbose,
required double clusterThreshold,
required double smoothThreshold,
}) async =>
await _magickCompute(
_magickSegmentImage,
_MagickSegmentImageParams(
_wandPtr.address,
colorspace,
verbose,
clusterThreshold,
smoothThreshold,
),
);