oldb
asked on
image processing
Hi experts,
How do I convert an image to a matrix of numbers?
eg)
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......)
thanx
How do I convert an image to a matrix of numbers?
eg)
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......)
thanx
You can simply read the whole data from the bmp file in one dimensional array. And since this is C language after that just index the array as two dimensional (matrix).
ASKER
WelkinMaze
How?
show me some example code
How?
show me some example code
Try to write something by yourself (it's better this way) and post it here if it doesn't work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.