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???
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???
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.
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.I want to read an image *.bmp to 2d Matrix
> 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.