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

New Post: Find subimage

$
0
0
Hi!

How can i find subimage with C# api?.
If i use image.Compare, "size differs" exception occurred.
MI version 6.8

The source code is following:
var currentWebpageScreenshot = webPage.TakeScreenshotAsFile();
using (var imageA = new MagickImage(currentWebpageScreenshot))
using (var imageB = new MagickImage(screenshotFile))
using (var differenceImage = new MagickImage())
{
    var comparisonResult = imageA.Compare(imageB, Metric.RootMeanSquareError, differenceImage); // Exception here
    // some logic
}
Thanks in advance.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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