+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 1
    Points: 1,412, Level: 8

    Join Date
    Feb 2005
    Posts
    1
    Helped
    0 / 0
    Points
    1,412
    Level
    8

    Comparing Images / Pixels

    Hi
    I need to compare two (monocrome / black and white) images to see if they are identical or not.
    I can use OpenGL or DirectX.
    Please provide me with a bit of code that will access a specified pixel in a loaded image.
    I want to save the pixel value (possibly many values to an array) and then compare it to the pixel values of the second image.
    Thank you for any help.

    Added after 1 minutes:

    PS.. I use C (C++ is also ok)
    -thanks

    •   Alt14th February 2005, 16:49

      advertising

        
       

  2. #2
    Full Member level 2
    Points: 2,217, Level: 10
    bilgekaan's Avatar
    Join Date
    Nov 2004
    Location
    Turkiye
    Posts
    125
    Helped
    15 / 15
    Points
    2,217
    Level
    10

    Re: Comparing Images / Pixels

    you dont need to use opengl or directx to compare two images. they are used for displaying 3d agraphicc.

    you can find image loaders in the www. when you load the image you can access
    its pixels easily.

    check for cximage and freeimage libs . they are free and open source.

    aslso devil is very good image library.
    they support lots of image formats for example bmp,jpg,tif and many more



    •   Alt14th February 2005, 17:32

      advertising

        
       

  3. #3
    Junior Member level 1
    Points: 1,638, Level: 9

    Join Date
    Sep 2004
    Posts
    17
    Helped
    1 / 1
    Points
    1,638
    Level
    9

    Comparing Images / Pixels

    Dear Bilgekann:

    Can you provide the Urls for those image compare tools? and if possible, are those tools able to compare the quality between 2 images? if not? any suggestion? thanks a LOT!

    Louis



    •   Alt16th February 2005, 01:40

      advertising

        
       

  4. #4
    Full Member level 2
    Points: 2,217, Level: 10
    bilgekaan's Avatar
    Join Date
    Nov 2004
    Location
    Turkiye
    Posts
    125
    Helped
    15 / 15
    Points
    2,217
    Level
    10

    Re: Comparing Images / Pixels

    Hi ,

    libaries i mentioned above are not for comparing images but for loading, saving and displaying images in different format.

    But when you load an image it means that you can access pixels of image individualy. then only the think you have to do is compare individual pixels seperatly. but if you have similiar image which are snapshoted in different lighting condition you can not achive proper compare operation. instead there are lots of
    transform to compare images to solve problems like this.

    this link is a project using content based image retrival and also has documents and source code

    check out , what you need is in this link
    http://www.codeproject.com/bitmap/cbir.asp



+ Post New Thread
Please login