io.github.mianalysis.mia.lostandfound.objects.process.CreateDistanceBandsLostFound Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mia-modules Show documentation
Show all versions of mia-modules 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.lostandfound.objects.process;
import java.util.HashMap;
import org.scijava.Priority;
import org.scijava.plugin.Plugin;
import io.github.mianalysis.mia.module.lostandfound.LostAndFoundItem;
import io.github.mianalysis.mia.module.objects.process.CreateDistanceBands;
@Plugin(type = LostAndFoundItem.class, priority = Priority.LOW, visible = true)
public class CreateDistanceBandsLostFound extends LostAndFoundItem {
@Override
public String getModuleName() {
return new CreateDistanceBands<>(null).getClass().getSimpleName();
}
@Override
public String[] getPreviousModuleNames() {
return new String[]{""};
}
@Override
public HashMap getPreviousParameterNames() {
return new HashMap();
}
@Override
public HashMap> getPreviousParameterValues() {
HashMap values = null;
HashMap> parameterValues = null;
values = new HashMap<>();
values.put("Borgefors (3,4,5)", CreateDistanceBands.WeightModes.BORGEFORS);
values.put("City-Block (1,2,3)", CreateDistanceBands.WeightModes.CITY_BLOCK);
values.put("Svensson (3,4,5,7)", CreateDistanceBands.WeightModes.WEIGHTS_3_4_5_7);
parameterValues = new HashMap<>();
parameterValues.put(CreateDistanceBands.WEIGHT_MODE, values);
return parameterValues;
}
}