All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mianalysis.mia.process.ClassHunter Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.6.12
Show newest version
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;

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy