Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

building image from a matrix

hi , i have 2D matrix which consists only of the values 0 and 1.i want to build a grayscale image from this matrix data. can you please tell me how (a small snippet would be nice :) ).

thank you.

building image from a matrix

hi , i have 2D matrix which consists only of the values 0 and 1.i 255.i want to build a grayscale image from this matrix data. data.is there a method for it?. i saw that we can you please tell me 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.