Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to load image and detect greylevel for each pixel?

how to load image and detect greylevel for each pixel?

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    copico
    wrote on last edited by
    #1

    Hi, I am doing a project doing image processing using C++. But I dont know how to load image (jpg or bmp) into MFC. And I need to make the image into graylevel image. also I need to get the graylevel of each pixel. Someone introduce me VFW, but I still cannot find out how to load image and get information of it... really need your help... Thanks...:sigh: coding, coding, still coding...

    L V E 3 Replies Last reply
    0
    • C copico

      Hi, I am doing a project doing image processing using C++. But I dont know how to load image (jpg or bmp) into MFC. And I need to make the image into graylevel image. also I need to get the graylevel of each pixel. Someone introduce me VFW, but I still cannot find out how to load image and get information of it... really need your help... Thanks...:sigh: coding, coding, still coding...

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      have a look at the cximage library here on cp ... it will do all that and more ... and u can study the source code to see how it does it too ;)


      "there is no spoon"
      biz stuff about me

      1 Reply Last reply
      0
      • C copico

        Hi, I am doing a project doing image processing using C++. But I dont know how to load image (jpg or bmp) into MFC. And I need to make the image into graylevel image. also I need to get the graylevel of each pixel. Someone introduce me VFW, but I still cannot find out how to load image and get information of it... really need your help... Thanks...:sigh: coding, coding, still coding...

        V Offline
        V Offline
        V 0
        wrote on last edited by
        #3

        Check out the CBitmap class and (H)BITMAP structure on MSDN. You can use the CBitmap class to determin the RGB color of each pixel. Hope this helps. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

        1 Reply Last reply
        0
        • C copico

          Hi, I am doing a project doing image processing using C++. But I dont know how to load image (jpg or bmp) into MFC. And I need to make the image into graylevel image. also I need to get the graylevel of each pixel. Someone introduce me VFW, but I still cannot find out how to load image and get information of it... really need your help... Thanks...:sigh: coding, coding, still coding...

          E Offline
          E Offline
          erkanina
          wrote on last edited by
          #4

          If you want to make advanced image processing application; - First use DirectDraw to proceed display images. - Learn .jpeg, .bmp file format - Learn .bmp, .jpeg file compression decompression. ICImageCompress(...) and ICIamgeDecompress(...) defined vfw.h will be helpful

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups