I have two images, where i need to find the difference. i can easily did with the help of SSIM function. Now i want to find the difference between two images but only selected region (i want to ignore some region , which i marked as a rectangular). enter image description here

  • $\begingroup$ You can use masking. What library/tool are you using? $\endgroup$
    – Adam Oudad
    Commented Sep 18, 2020 at 5:23
  • $\begingroup$ i am using Opencv python in spyder. . what masking you are talking about ? $\endgroup$
    – soumyajeet
    Commented Sep 18, 2020 at 5:55
  • $\begingroup$ I dont know opencv but in Numpy you can use a mask (matrix which consists of True/False elements) to mask certain values to the operation you want to perform. I think it is better if you join a code of what you tried. $\endgroup$
    – Adam Oudad
    Commented Sep 20, 2020 at 14:32


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.