Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

to compare two images using windows programming

ensaedison
Beginner
703 Views
hi buddies,
i wanted to know how do we compare two images (eg: BMP/JPEG) using windows programming(VC++).
i require the apt syntax used for image comparison or sorce code for image processing and comparing two images in VC++.
i tried surfing for source codes on internet but in vain
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
703 Views
Hi,
it is not so easy in case if you want to compare the diffierent image formats, like BMP and JPEG. First of all, you need to get both images in the same format, uncompressed BMP is preferable. So, you need to decompress JPEG image. Note, JPEG uses lossy compression techinque, which means that decompressed image will not be bit-to-bit complain withimage you've used for encoding into JPEG.
I recommend you to read IPP documentation (Intel Integrated Performance Primitives, Volume2: Image and Video Processing), to find the functions appropriate for yor goals. It can be very simple case, just absolute difference between two images, like: image_diff(i,j) = abs( image_a(i,j) - image_b(i,j));
You also can download IPP JPEG samples to see how to decompress JPEG images with using IPP JPEG codec.
Regards,
Vladimir
0 Kudos
Reply