Re: New to Mathematica, need help for Image Processing.
- To: mathgroup at smc.vnet.net
- Subject: [mg115208] Re: New to Mathematica, need help for Image Processing.
- From: "W. Craig Carter" <ccarter at mit.edu>
- Date: Tue, 4 Jan 2011 04:26:18 -0500 (EST)
Hello Nimo, Can you tell us a little more about your 184755 values? Are they in a file full of numbers, are they already encoded in a .jpeg, .gif, or another file format? Do you have them already packed into a list in mathematica? Craig On 1 Jan, 2011, at 4:23 AM, Nimo wrote: > On Dec 31, 3:00 pm, Nimo <azeez... at gmail.com> wrote: >> Hi.., >> >> Well, actually I'm not from programming background. >> Just for some analysis stuff, I'm using mathematica. >> >> I tried to read mathematica documentation..its very huge and takes lot >> of time.. >> >> so, here is my need.. pls, you people can help me..here.. >> >> ____ >> >> I have some pixel values[ image Resl:- is 565 x 327], >> all are Byte[0-255] values, total number of values ==184755 >> >> which I want to insert them in any mathematica function and >> want to see how the image is going to be.. >> >> I tried function >> >> Image [ { } {} {} ] >> >> but it is saying something like rank should be less than 3 or 2. >> >> Can you people give me any solution, so that I'll just copy and paste >> all the pixel values >> so that i will automatically adjust width & height of image.. and get >> displayed in the window. >> >> Thank you. >> greetings >> nimo. > > data == RandomInteger[{0, 255}, {565, 327}]; > > Dimensions[data] > > Image[data, "Byte"] > > For color: > > data == RandomInteger[{0, 255}, {565, 327, 3}]; > Image[data, "Byte"] > > > yeah.., this is from Craig Carter.. thanks for the reply. > > I tried this, it is displaying an Random image of 565 x 327. > > but, my pixel values are from real world image. > > At RandomInteger function, i want to put my pixel values(or if it is > function, i dont know for sure) > > all I've is 184755 pixel values in Range[0 -255] > > any ideas.. > > greetings. > >