io.github.mianalysis.mia.macro.MacroOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mia-core Show documentation
Show all versions of mia-core Show documentation
ModularImageAnalysis (MIA) is an ImageJ plugin which provides a modular framework for assembling image and object analysis workflows. Detected objects can be transformed, filtered, measured and related. Analysis workflows are batch-enabled by default, allowing easy processing of high-content datasets.
package io.github.mianalysis.mia.macro;
import org.scijava.plugin.SciJavaPlugin;
import ij.macro.ExtensionDescriptor;
import ij.macro.MacroExtension;
import io.github.mianalysis.mia.module.Modules;
import io.github.mianalysis.mia.object.Workspace;
public abstract class MacroOperation extends ExtensionDescriptor implements SciJavaPlugin {
// Using the same numbering as MacroExtension
protected static int ARG_STRING = 1;
protected static int ARG_NUMBER = 2;
protected static int ARG_ARRAY = 4;
protected static int ARG_OUTPUT = 16;
protected static int ARG_OPTIONAL = 32;
public MacroOperation(MacroExtension theHandler) {
super("", null, theHandler);
name = getName();
argTypes = getArgumentTypes();
}
public String getName() {
return this.getClass().getSimpleName();
}
public abstract int[] getArgumentTypes();
public abstract String action(Object[] objects, Workspace workspace, Modules modules);
public abstract String getArgumentsDescription();
public abstract String getVersionNumber();
public abstract String getDescription();
}