building image from a matrix

asked 2013-04-20 23:30:09 -0500

chaithuzz2 gravatar image

updated 2013-04-21 00:33:30 -0500

hi , i have 2D matrix which consists only of the values 0 and 255.i want to build a grayscale image from this matrix data.is there a method for it?. i saw that we can only print the image using an array. how can i do it for two dimensional array. (a small snippet would be so nice :) ).

thank you.

edit retag flag offensive close merge delete