Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Binarizing an image with magick.net

$
0
0
The -colors option has a completely different name in the MagickImage class. It will call the quantize method. Your command translates to this:
image.Quantize(new QuantizeSettings()
{
  ColorSpace = ColorSpace.Gray, // -colorspace gray
  DitherMethod = DitherMethod.No, // +dither
  Colors = 2 // -colors 2
});
image.Normalize(); // -normalize

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>