Macro for saving profile plot data

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

Macro for saving profile plot data

DHNguyen
Hi there,

I'm having trouble using the getProfile() function to save the profile x,y data as a spreadsheet. I know that the save buttons in the profile plot data isn't recorded in ImageJ macros.

Here is my goal.

1. Open image
2. Open ROImanager file
3. Select a item in the ROImanager
4. Plot profile
5. Save profile data as an .xls file
6. Repeat steps 4-5 for each remaining item in ROImanager

Any help would be appreciated.

Dave
Reply | Threaded
Open this post in threaded view
|

Re: Macro for saving profile plot data

jerie
Hi Dave,

try

3. Select a item in the ROImanager

run("Reslice [/]...", "output=1.000 start=Top avoid");
saveAs("Text Image", image.name+".xls");

Abraços, Jens

Dr. Jens Rietdorf, visiting scientist @ center for technological
development in health CDTS, Oswaldo Cruz Foundation Fiocruz, Rio de Janeiro
Brasil.

On Fri, Oct 7, 2016 at 2:15 PM, DHNguyen <[hidden email]> wrote:

> Hi there,
>
> I'm having trouble using the getProfile() function to save the profile x,y
> data as a spreadsheet. I know that the save buttons in the profile plot
> data
> isn't recorded in ImageJ macros.
>
> Here is my goal.
>
> 1. Open image
> 2. Open ROImanager file
> 3. Select a item in the ROImanager
> 4. Plot profile
> 5. Save profile data as an .xls file
> 6. Repeat steps 4-5 for each remaining item in ROImanager
>
> Any help would be appreciated.
>
> Dave
>
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.
> com/Macro-for-saving-profile-plot-data-tp5017318.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Jens Rietdorf Visiting Scientist Fundação Oswaldo Cruz - Ministério da Saúde, Centro de Desenvolvimento Tecnológico em Saúde (CDTS), Rio de Janeiro, Brasil.
Reply | Threaded
Open this post in threaded view
|

Re: Macro for saving profile plot data

Herbie
In reply to this post by DHNguyen
Good day Dave,

why doesn't "getProfile()" work for you?

Did you have a look the example macros, especially this one:
<https://imagej.nih.gov/ij/macros/GetProfileExample.txt>

Best

Herbie

::::::::::::::::::::::::::::::::::::::
Am 07.10.16 um 19:15 schrieb DHNguyen:

> Hi there,
>
> I'm having trouble using the getProfile() function to save the
> profile x,y data as a spreadsheet. I know that the save buttons in
> the profile plot data isn't recorded in ImageJ macros.
>
> Here is my goal.
>
> 1. Open image 2. Open ROImanager file 3. Select a item in the
> ROImanager 4. Plot profile 5. Save profile data as an .xls file 6.
> Repeat steps 4-5 for each remaining item in ROImanager
>
> Any help would be appreciated.
>
> Dave

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