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