Dear all,
I am having some problems with the Moment Calculator plugin of late. I
can run this manually and through a macro that works on one image:
run("Clear Results");
run("Moment Calculator", " total_mass x_variance y_variance
xy_covariance x_skewness y_skewness x_kurtosis y_kurtosis elongation
cutoff=0.0000 scaling=1.0000");
mass = getResult("Mass");
xxVar = getResult("xxVar");
yyVar = getResult("yyVar");
xyVar = getResult("xyVar");
xSkew = getResult("xSkew");
ySkew = getResult("ySkew");
xKurt = getResult("xKurt");
yKurt = getResult("yKurt");
elong = getResult("Elong.");
print(mass); // This gives me a result
print(xxVar);
print(yyVar);
etc.
but as soon as I run a macro that opens and analyses several images in a
for loop, it tells me that the results table is empty. How can this be
if it has worked fine previously?
In addition, when I Analyze>Measure from with the same macro, Skewness
and Kurtosis are empty (NaN) although all other measurements seem to be
there (Area, Major, Minor, etc)?!
I suspect that this has something to do with the composite selection I
am passing to Analyze>Measure (see:
https://list.nih.gov/cgi-bin/wa?A2=ind0608&L=IMAGEJ&P=R827&I=-3&m=13711), but strange that some measurements work whilst others don't?!
Can anyone shed some light on these experiences...?
Thanks, Andy