io.github.mianalysis.mia.process.ClassHunter 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.process;
import java.util.ArrayList;
import java.util.List;
import org.scijava.plugin.PluginInfo;
import org.scijava.plugin.SciJavaPlugin;
import io.github.mianalysis.mia.MIA;
public class ClassHunter {
public static List> getPlugins(Class clazz) {
return MIA.getPluginService().getPluginsOfType(clazz);
}
public static List getClassNames(Class clazz) {
List> plugins = getPlugins(clazz);
List names = new ArrayList<>();
for (PluginInfo plugin : plugins)
names.add(plugin.getClassName());
return names;
}
}