Saturday, October 6, 2007

Image Differencing Completed

I am now able to get a relative good difference in the two pictures. Supposed we had the 2 images below:

Picture 1:

Picture 2:

Using the OpenCV built-in function, which is a direct subtraction of array values. It is not of any value to us as it causes very funny colour to the picture. (see photo below)I rewrite the whole function which subtracts the array values, but maintain the picture's original colour. That will be a picture useful to us then. Below is the photo that uses my function. It will look better if a higher resolution photo would be used. The background could be any colour the user chooses and even another background by changing some numbers for the BGR of the pixel.

No comments:

Post a Comment