OpenCV compare two images and get different pixels
- by Richard Knop
For some reason the code bellow is not working. I have two 640*480 images which are very similar but not the same (at least few hundred/thousand pixels should be different).
This is how I am comparing them and counting different pixels:
unsigned char* row;
unsigned char* row2;
int count = 0;
// this happens in a loop
// fIplImageHeader is…