Login  Register

Import a text file back into a Results table

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Import a text file back into a Results table

karo03
Hi
I have a (hopefully) minor problem importing a text file (written from a results table) back into ImageJ.
The data are read but the window is not named "Results" and hence I have no access to this Results table.

The first lines of the problem file:
Slice Dir Area MF Area O %Area Count
05B-1 Bilder 1228800 19602 1.595 1493
05B-2 Bilder 1228800 26597 2.164 2104
05B-3 Bilder 1228800 19338 1.574 1426

Another file is imported as expected, however Results line numbers are added as a leading column:
Slice Area MF Area O %Area Count
1B-2 1228800 20090 1.6349 1701
1B-3 1228800 23278 1.8944 1898
1B-1 1223820 14392 1.176 1421

The data lines are copied from a test editor.

Both files are produced with ImageJ. Any hint how to behave? I would like to import the data and add some calculations in added columns!

I am on Mac OSX LM using ImageJ 1.47j7 with Java 1.6.0_37 (64-bit).

Thanks in advance
Karsten
[hidden email]





--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Import a text file back into a Results table

Rasband, Wayne (NIH/NIMH) [E]
On Feb 6, 2013, at 8:24 AM, Karsten wrote:

> Hi
> I have a (hopefully) minor problem importing a text file (written from a results table) back into ImageJ.
> The data are read but the window is not named "Results" and hence I have no access to this Results table.
>
> The first lines of the problem file:
> Slice Dir     Area MF Area O  %Area   Count
> 05B-1 Bilder  1228800 19602   1.595   1493
> 05B-2 Bilder  1228800 26597   2.164   2104
> 05B-3 Bilder  1228800 19338   1.574   1426

"Results" tables in ImageJ can currently have only one non-numeric column. You can work around this limitation by combining the non-numeric "Slice" and "Dir" columns into a single "Slice&Dir" column, as I have done in the attached screenshot.

-wayne

[cid:[hidden email]]



>
> Another file is imported as expected, however Results line numbers are added as a leading column:
> Slice Area MF Area O  %Area   Count
> 1B-2  1228800 20090   1.6349  1701
> 1B-3  1228800 23278   1.8944  1898
> 1B-1  1223820 14392   1.176   1421
>
> The data lines are copied from a test editor.
>
> Both files are produced with ImageJ. Any hint how to behave? I would like to import the data and add some calculations in added columns!
>
> I am on Mac OSX LM using ImageJ 1.47j7 with Java 1.6.0_37 (64-bit).
>
> Thanks in advance
> Karsten
> [hidden email]
>
>
>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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

Screen.png (36K) Download Attachment
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Import a text file back into a Results table

karo03
Thank you Wayne for the quick information.
In fact I have produced the bumping "Results" table with print(), saved and ...

I will change that in the producing macro.

Regards
Karsten

Am 06.02.2013 um 18:19 schrieb "Rasband, Wayne (NIH/NIMH) [E]" <[hidden email]>:

> On Feb 6, 2013, at 8:24 AM, Karsten wrote:
>
>> Hi
>> I have a (hopefully) minor problem importing a text file (written from a results table) back into ImageJ.
>> The data are read but the window is not named "Results" and hence I have no access to this Results table.
>>
>> The first lines of the problem file:
>> Slice Dir     Area MF Area O  %Area   Count
>> 05B-1 Bilder  1228800 19602   1.595   1493
>> 05B-2 Bilder  1228800 26597   2.164   2104
>> 05B-3 Bilder  1228800 19338   1.574   1426
>
> "Results" tables in ImageJ can currently have only one non-numeric column. You can work around this limitation by combining the non-numeric "Slice" and "Dir" columns into a single "Slice&Dir" column, as I have done in the attached screenshot.
>
> -wayne
>
> [cid:[hidden email]]
>
>
>
>>
>> Another file is imported as expected, however Results line numbers are added as a leading column:
>> Slice Area MF Area O  %Area   Count
>> 1B-2  1228800 20090   1.6349  1701
>> 1B-3  1228800 23278   1.8944  1898
>> 1B-1  1223820 14392   1.176   1421
>>
>> The data lines are copied from a test editor.
>>
>> Both files are produced with ImageJ. Any hint how to behave? I would like to import the data and add some calculations in added columns!
>>
>> I am on Mac OSX LM using ImageJ 1.47j7 with Java 1.6.0_37 (64-bit).
>>
>> Thanks in advance
>> Karsten
>> [hidden email]
>>
>>
>>
>>
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

Karsten
[hidden email]

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