How do I convert an image to a matrix of numbers?
I have a image file image.bmp
I would like to convert it to a matrix of numbers,
say red = 255, lighter red = 252, white = 0........
I want to pixel the image into a matirx and then get a matrix of numbers.
Please show me some simple example codes that i can write
eg) int main( file image......)