Coherence problem

I am having a problem with running the coherence of an image pair. It works on some pairs not on others despite the fact they were all created in the same manner.
The images show a good result and bad result.


Any help would be appreciated.
Thank you,
Frances