Login  Register

ImageJ makeLine normalization help

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

ImageJ makeLine normalization help

drewstolaf
2 posts
Hello,

I am analyzing an image of a cell, and I have created a macro that uses the makeLine tool from the center of the nucleus to the edge of the cell in several different directions.

My problem is that each of these lines are a different length, and thus in my results table there are a different number of points (intensity values) for each line.

I was hoping to normalize this data set so that each line contains the same number of points so I can continue with statistical analysis. I have struggled through trying to make the "makeLine" command only take measurements at a specified interval, and I have tried manipulating the data in the results table as well.

Any help would be greatly appreciated!
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: ImageJ makeLine normalization help

vischer
120 posts
You could resample the profile to a fixed number of points (100 in the example):

makeLine(10, 10, 50, 30);
profile = getProfile;
profile100 = Array.resample(profile, 100);

Norbert


On 4. Jun 2013, at 18:38, drewstolaf wrote:

Hello,

I am analyzing an image of a cell, and I have created a macro that uses the
makeLine tool from the center of the nucleus to the edge of the cell in
several different directions.

My problem is that each of these lines are a different length, and thus in
my results table there are a different number of points (intensity values)
for each line.

I was hoping to normalize this data set so that each line contains the same
number of points so I can continue with statistical analysis. I have
struggled through trying to make the "makeLine" command only take
measurements at a specified interval, and I have tried manipulating the data
in the results table as well.

Any help would be greatly appreciated!

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

Re: ImageJ makeLine normalization help

drewstolaf
2 posts
worked great, thanks much!!!