Forum Discussion

t_nguyen's avatar
t_nguyen
Occasional Contributor
10 years ago

Regions failing despite setting tolerance parameter

Hello everyone. I have a very odd issue. I have a couple of regions which keep failing with the following message:

 

The images are not equal. The size of the images is different.

The pixel difference is 0 %.
The color difference is 100 %.

There is a slight difference between the compared images. If you want the checkpoint to report them as equal, set its Pixel Tolerance parameter to 1.

 

I have tried setting the toloerance to 1. I have even tried setting it to something silly like 9000. But no matter what I set it to it still fails. This is the line in my script which does the region check.

 

Regions.Pipe_View_Data_Loaded.Check(Aliases.edit.wndAfx2.MDIClient.Item2.AfxFrameOrView100, false, false, 9000, 255);

 

I set the colour parameters to 255 as I am not interested in the colour match. I am only interested in what how the pixels have plotted. 

 

Can anyone please shed some light?

 

Thanks in advance.

2 Replies

  • Kinematic's avatar
    Kinematic
    Occasional Visitor

    Hello,

      I am having this same issue as well. Setting the pixelTolerance values to an exteremly high number always returns:

     

    The pixel difference is 0 %.
    The color difference is 0 %.

    There is a slight difference between the compared images. If you want the checkpoint to report them as equal, set its Pixel Tolerance parameter to 1.

     

     

     

    Any help would be much appreciated.