Closed christianrickert closed 3 years ago
@christianrickert You can do it by calling the coloc.pearsons
op as follows:
#@ Dataset d1
#@ Dataset d2
#@ OpService ops
coeff = ops.coloc().pearsons(d1, d2)
println(coeff)
Note that this is a Groovy script, not an ImageJ1 macro. You cannot call ops easily from the IJ1 macro language.
Is there a way to access the Pearson's correlation calculation from an ImageJ2 macro (macro language)?
The plugin is properly installed and is available to ImageJ2:
I've tried to call the Pearson' correlation function directly:
But I get an error message:
Any ideas?