Re: read values from txt file

Posted by dpoburko on
URL: http://imagej.273.s1.nabble.com/read-values-from-txt-file-tp3689457p3689458.html

You can also open the text file as an image (File>Import>Text Image...),
where each of your values will be represented by pixel intensity. In
some cases this is handy because you can then use the image calculator
to perform array calculations, rather than having to write For loops.

Cheers,
Damon

--

Damon Poburko, PhD
Postdoctoral Research Fellow
Stanford University School of Medicine
Dept. of Molecular & Cellular Physiology
279 Campus Dr., Beckman B103, Stanford, CA 94305
Ph: 650 725 7564, fax: 650 725 8021




R. C. wrote:

> How can I read a list of txt values from a txt file using a script or a
> macro?
>
> thanks, Alberto Perez
>
>
> (a file like this:
>
> 0    4
> 1    2
> 12  2
> 12  3
> ...
>