Login  Register

Re: getting data from a text window

Posted by Kota Miura on May 11, 2014; 11:59am
URL: http://imagej.273.s1.nabble.com/getting-data-from-a-text-window-tp5007674p5007679.html

Hi Chris,


On Sun, May 11, 2014 at 11:10 AM, Gabriel Landini <[hidden email]>wrote:

> On 11 May 2014, at 00:46, christopher of the family hunt coulon
> <[hidden email]> wrote:
> > Is there any way in a macro to get the information in a text window?  For
> > example, I have a text window that has rows and columns just like the
> > Results Table, and I would like to sum the data in one of the columns of
> > the text window just as I would by using
>
> Not with the same code. The Result windows is an array of cells.
> The Text window is not. Renaming won't work.
>
> Perhaps you could save and reload the Text window data and parse its
> contents
> into variables, (lines of text as rows, then parse the column within each
> row). In any case not with the code you posted.
>
> Cheers
>
> Gabriel
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

More details of Gabriel's suggestion is written in my macro textbook

https://github.com/cmci/ij_textbook2/blob/master/CMCImacrocourse.pdf?raw=true

See explanations starting from p96.

cheers,
Kota
--

-------------------------------------------------------------*Dr. Kota Miura*

Scientist & IT Engineer
Centre for Molecular and Cellular Imaging,
European Molecular Biology Laboratory
Meyerhofstr. 1
69117 Heidelberg
GERMANY

Tel +49 6221 387 404

Mobile +49 160 95001177

Fax +49 6221 387 512

http://cmci.embl.de
-------------------------------------------------------------

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html