Login  Register

RE: combine data from multiple profile measurements of a time series to single data sheet

Posted by cpanders on Apr 22, 2016; 7:52pm
URL: http://imagej.273.s1.nabble.com/combine-data-from-multiple-profile-measurements-of-a-time-series-to-single-data-sheet-tp5016124p5016221.html

Herbie-

 

Thank you so much for taking the time to do this.!

 

I will try this method as well, I was intrigued while looking into the reslice tool earlier iin the week

 

From: Herbie [via ImageJ] [mailto:ml-node+[hidden email]]
Sent: Friday, April 22, 2016 2:55 PM
To: Anderson, Christopher <[hidden email]>
Subject: Re: combine data from multiple profile measurements of a time series to single data sheet

 

Good day Christopher,

nice to see that you found a way of performing the desired task.

In addition I should like to propose an example macro based on Kota's approach. The essential part of it is quite concise.

-- You need an open internet connection to run the macro. --

// example macro (watch for mailer line breaks!)
width = 15; // integration width perpendicular to the line selection

// the following is for the generation of an test image only
run( "Confocal Series (2.2MB)" );
setBatchMode( true );
name = "TestStack";
Stack.setDisplayMode( "grayscale" );
run("Reduce Dimensionality...", "slices");
run( "Set Scale...", "distance=0" );
setLineWidth( 0 );

// example line selection for the profile
makeLine( 66, 328, 218, 176 );

// here comes the beef ---------------------------------------------
run( "Reslice [/]...", "output=1.000 slice_count="+width+" rotate");
run( "32-bit" );
run( "Z Project...", "projection=[Average Intensity]" );
rename( "ProfileValues_of_" + name );
saveAs( "Text Image" );
setBatchMode( "exit and display" );
// end of beef tail ------------------------------------------------

The text file that you are going to save contains the profile values in columns. Each column contains the profile values from one frame.

Please note that the integration starts from the selection line downwards. In the example case 15 pixels wide.

Best

Herbie


If you reply to this email, your message will be added to the discussion below:

http://imagej.1557.x6.nabble.com/combine-data-from-multiple-profile-measurements-of-a-time-series-to-single-data-sheet-tp5016124p5016220.html

To unsubscribe from combine data from multiple profile measurements of a time series to single data sheet, click here.
NAML