compare images with c++

compare images with c++

Page 1 of 1

2 Replies - 3998 Views - Last Post: 24 November 2009 - 11:29 AM Rate Topic: -----

#1 franckesh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 24-November 09

compare images with c++

Posted 24 November 2009 - 10:48 AM

Hey,
I want to write c++ codes that could compare two images. Which steps shouldI follow? And is Pixel per pixel comparison the best? How can I implement my codes.

Thanks in advance,
Franck
Is This A Good Question/Topic? 0
  • +

Replies To: compare images with c++

#2 Anarion  Icon User is offline

  • The Persian Coder
  • member icon

Reputation: 311
  • View blog
  • Posts: 1,515
  • Joined: 16-May 09

Re: compare images with c++

Posted 24 November 2009 - 10:58 AM

If you want to be really simple, just do a byte-to-byte comparison to see if the 2 files are equal.
Was This Post Helpful? 0
  • +
  • -

#3 Aphex19  Icon User is offline

  • Born again Pastafarian.
  • member icon

Reputation: 615
  • View blog
  • Posts: 1,873
  • Joined: 02-August 09

Re: compare images with c++

Posted 24 November 2009 - 11:29 AM

For the byte by byte cpmparison you could use fopen in binary mode or you can use the windows API function CreateFile()
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1