- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page