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

New Post: MagickImage.compare

$
0
0
Hi!, looking for some help with the compare feature. It seems straight forward but no matter what two images I compare the MagicErrorInfo properties are always 0.

This is the code in simple form where I'm attempting to compare to different images.
    Private Sub Testing()
        Dim BaseImage As MagickImage = New MagickImage("C:\temp\BaseImage.jpg")
        Dim CompareImage As MagickImage = New MagickImage("C:\temp\CompareImage.jpg")
        Dim CompareInfo As MagickErrorInfo = BaseImage.Compare(CompareImage)

        If CompareInfo.MeanErrorPerPixel > 0 Then
            ' Do Something
        End If
    End Sub
I'm I missing something or simply doing this incorrectly?

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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