Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Is it possible to find the dimension and the depth of an image? and compare 2 imgs?

  1. #1
    Newbie Newbie
    Join Date
    Sep 2018
    Posts
    1

    Is it possible to find the dimension and the depth of an image? and compare 2 imgs?

    Hi, I'm new to OpenGL.

    I'm kind of forced to use OpenGL for my project. There are several things I should do with my project.

    1. I have to have two input images, both of them MUST be a bmp file, 640X480, 24bit

    2. I have to find the differences between two images

    3. I have to create a new BW bmp file (640X480 and 24bits) indicating the differences.


    I was using OpenCV but I could not find a way to check if both input images are 24-bit images.
    Also, I could not save the image as a 24-bit BMP file.

    I would like to know if those 3 tasks would be doable with OpenGL.


    Thanks.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2013
    Posts
    185
    OpenGL has absolutely nothing to do with image files or image formats. It will not help you in the slightest with your task.

  3. #3
    Intern Contributor
    Join Date
    Apr 2016
    Location
    Berlin / Germany
    Posts
    61
    You maybe can use the wxWidgets library. There are various functions included that do things like this. Just look in the references concerning wxImage, wxBitmap and wxMemoryDC which are easy to find with your favorit search-engine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •