Thread: read image to 2d matrix???

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    4

    read image to 2d matrix???

    Hi everybody!
    I want to read an image *.bmp to 2d Matrix
    How can I do???
    I found very much from web pages but I not found.
    You can help me about this problem???

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well at least BMP's are easier to deal with than JPG files (in your previous thread).

    For example, how much reading of "bmp file format" have you done?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    I want to read an image *.bmp to 2d Matrix
    You mean read an image into a buffer? Just google for how to load a bitmap in Windows. I'm sure you will get a link to MSDN and about ten thousand other sites.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > How can I do???
    How about starting with something to say print out "There are %d pixels per row and %d rows".
    That would at least go some way to demonstrating that you're serious, and not just out for a free homework handout.

    > You can help me about this problem???
    "help", yes - you post code, and ask a question about that code - then we tell you what you need to know.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Read an image to Matrix in visual c++ 6.0???
    By sukuku in forum C++ Programming
    Replies: 6
    Last Post: 10-03-2011, 09:07 AM
  2. Convert image to matrix
    By prefix in forum C++ Programming
    Replies: 1
    Last Post: 09-05-2011, 03:57 AM
  3. Advice on raw image matrix matching
    By ejok in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2011, 01:14 PM
  4. Replies: 13
    Last Post: 11-20-2009, 04:43 PM
  5. Read Image to a Matrix
    By scrapedbr in forum C Programming
    Replies: 3
    Last Post: 05-02-2003, 03:53 PM