Convert Binary Image to Column Vector
- To: mathgroup at smc.vnet.net
- Subject: [mg83954] Convert Binary Image to Column Vector
- From: Tara.Ann.Lorenz at gmail.com
- Date: Wed, 5 Dec 2007 07:15:27 -0500 (EST)
Can a 30x30 binary image be converted directly into a column vector of 900 components in Mathematica? Or must the image first be put into matrix form? I am using the command: Flatten@Transpose@t1, where t1 is my binary image, and it seems to give me a vector but I'm not sure if it's the one that I desire. If I first convert my image into matrix form and define my matrix as "m" and then use this command, Flatten@Transpose@m, then I get an output of "Transpose[...]" and my 30 x 30 matrix is explicitly written within the Transpose brackets. This does not provide me a column vector with 900 components, which is what I am looking for. Any thoughts? Thanks.