For my research I need to convert a set of 8-bit images into txt files. The
stack of images make up a three dimensional image, there are about 150 images per stack. I have a program that will read read this txt file and do 2-pt statistics on the set. Because I am dealing with so many large images in each data set, It would take my program too long to open up 150 txt files. So my question is does any one know how to turn a stack of images into a single txt file, that I will be able to tell the difference between the x, y, and z pixels. If not, does anyone know how to turn a bunch of images into txt files at once, so I don't have to do that by hand. Thank you -Naomi |
>For my research I need to convert a set of 8-bit images into txt files. The
>stack of images make up a three dimensional image, there are about 150 >images per stack. I have a program that will read read this txt file and >do 2-pt statistics on the set. Because I am dealing with so many large >images in each data set, It would take my program too long to open up 150 >txt files. So my question is does any one know how to turn a stack of >images into a single txt file, that I will be able to tell the difference >between the x, y, and z pixels. If not, does anyone know how to turn a >bunch of images into txt files at once, so I don't have to do that by hand. > >Thank you >-Naomi Naomi, do you need 2-point statistics of the volume (stack) or of each of the stack's images? If the latter is what you need, why not compute the 2-point statistics of every image in ImageJ? For instance, you may use the autocorrelation function of every image which in fact is the histogram of all 2-point products. HTH -- Herbie ------------------------ <http://www.gluender.de> |
In reply to this post by Naomi Barth
I need the 2-pt stats of the whole stack. I will need to correlate pts
from one image to pts in another On 2/6/06, H. Gluender <[hidden email]> wrote: > > >For my research I need to convert a set of 8-bit images into txt > files. The > >stack of images make up a three dimensional image, there are about 150 > >images per stack. I have a program that will read read this txt file > and > >do 2-pt statistics on the set. Because I am dealing with so many large > >images in each data set, It would take my program too long to open up 150 > >txt files. So my question is does any one know how to turn a stack of > >images into a single txt file, that I will be able to tell the difference > >between the x, y, and z pixels. If not, does anyone know how to turn a > >bunch of images into txt files at once, so I don't have to do that by > hand. > > > >Thank you > >-Naomi > > Naomi, > > do you need 2-point statistics of the volume (stack) or of each of > the stack's images? > > If the latter is what you need, why not compute the 2-point > statistics of every image in ImageJ? For instance, you may use the > autocorrelation function of every image which in fact is the > histogram of all 2-point products. > > HTH > -- > > > Herbie > > ------------------------ > > <http://www.gluender.de> > |
You can use a simple macro to save the images in a stack into txt
files, something like this: for (i=0; i<nSlices;i++){ setSlice(i+1); saveAs("Text Image","/Path...///Stack"+i+".txt"); } change the Path...// into the path where your images will be saved. Gary. On Feb 6, 2006, at 6:48 PM, Naomi Barth wrote: > I need the 2-pt stats of the whole stack. I will need to > correlate pts > from one image to pts in another > > > On 2/6/06, H. Gluender <[hidden email]> wrote: >> >>> For my research I need to convert a set of 8-bit images into txt >> files. The >>> stack of images make up a three dimensional image, there are >>> about 150 >>> images per stack. I have a program that will read read this txt >>> file >> and >>> do 2-pt statistics on the set. Because I am dealing with so many >>> large >>> images in each data set, It would take my program too long to >>> open up 150 >>> txt files. So my question is does any one know how to turn a >>> stack of >>> images into a single txt file, that I will be able to tell the >>> difference >>> between the x, y, and z pixels. If not, does anyone know how to >>> turn a >>> bunch of images into txt files at once, so I don't have to do >>> that by >> hand. >>> >>> Thank you >>> -Naomi >> >> Naomi, >> >> do you need 2-point statistics of the volume (stack) or of each of >> the stack's images? >> >> If the latter is what you need, why not compute the 2-point >> statistics of every image in ImageJ? For instance, you may use the >> autocorrelation function of every image which in fact is the >> histogram of all 2-point products. >> >> HTH >> -- >> >> >> Herbie >> >> ------------------------ >> >> <http://www.gluender.de> >> > > |
Free forum by Nabble | Edit this page |