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

New Post: Unshaprmask working?

$
0
0
dlemstra wrote:
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?
Something got broken in Unshaprmask. Up to ver 6.8.9.601 it is working just fine, as of ver 7.0.0.0001 it does simply nothing.

I am applying image.Unsharpmask(0, 5, 1, 0.05) to an image and displaying it and as of ver 7.0.0.0001 there's no change at all. Ofcourse I tried and just image.Unsharpmask(0, 5); still no luck..

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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