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

New Post: Unshaprmask working?

$
0
0
The default parameters for amount and threshold are 1.0 and 0.05. I will add an overload that only needs two parameters the next release. You can compare the images with the Compare method to get the difference:
using (MagickImage image = new MagickImage("logo:"))
{
  image.Unsharpmask(0, 5, 1.0, 0.05);
  // Next release// image.Unsharpmask(0, 5); // Save to file so you can see the result
  image.Write(@"C:\logo.png");

  using (MagickImage other = new MagickImage("logo:"))
  {
    MagickErrorInfo info = image.Compare(other);
    Console.WriteLine(info.MeanErrorPerPixel);
  }
}
Why are you using the Unsharpmask method? What are you trying to accomplish?

Viewing all articles
Browse latest Browse all 3693

Trending Articles