Hi,
I have a requirement where I need to validate original image with water marked one. I tried loading image then converting it into Bitmap then compare.
Bitmap expectedImageBmp = Ranorex.Imaging.Load(@"Water_Marked_Image_Path");
Bitmap actualImageBmp = Ranorex.Imaging.Load(@"Original_Image_Path");
Boolean result = Ranorex.Imaging.Compare(actualImageBmp, expectedImageBmp, Imaging.FindOptions.Default);
Is this approach really works with water marked image? Does it validate pixel by pixel? Looking for alternative if any
Thanks
How to validate water marked image
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to validate water marked image
Hi ask007,
To compare two images, I'd suggest using the Ranorex.Imaging.Compare()-method with the following parameters
This method returns the similarity of both images, which is calculated by comparing pixel by pixel,
Another possibility would be using
This allows you to set the similarity, which is used to combine the images and it will return true or false.
Hope that helps.
Please let me know , if you need any further help.
Regards,
Markus (S)
To compare two images, I'd suggest using the Ranorex.Imaging.Compare()-method with the following parameters
Code: Select all
var result = Ranorex.Imaging.Compare(expectedImageBmp,actualImageBmp);
Another possibility would be using
Code: Select all
var result = Ranorex.Imaging.Compare(expectedImageBmp,actualImageBmp,1);
Hope that helps.
Please let me know , if you need any further help.
Regards,
Markus (S)
Re: How to validate water marked image
It explains what I wanted. So using Ranorex.Imaging.Compare() method, image can be compare pixel by pixel.
Thanks for reverting back
Thanks for reverting back