io.github.mianalysis.mia.lostandfound.images.process.binary.DistanceMapLostFound 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.images.process.binary;
import java.util.HashMap;
import org.scijava.Priority;
import org.scijava.plugin.Plugin;
import io.github.mianalysis.mia.module.images.process.binary.DistanceMap;
import io.github.mianalysis.mia.module.lostandfound.LostAndFoundItem;
@Plugin(type = LostAndFoundItem.class, priority = Priority.LOW, visible = true)
public class DistanceMapLostFound extends LostAndFoundItem {
@Override
public String getModuleName() {
return new DistanceMap(null).getClass().getSimpleName();
}
@Override
public String[] getPreviousModuleNames() {
return new String[]{""};
}
@Override
public HashMap getPreviousParameterNames() {
HashMap parameterNames = new HashMap();
parameterNames.put("Spatial units", DistanceMap.SPATIAL_UNITS_MODE);
return parameterNames;
}
@Override
public HashMap> getPreviousParameterValues() {
HashMap values = null;
HashMap> parameterValues = null;
values = new HashMap<>();
values.put("Borgefors (3,4,5)", DistanceMap.WeightModes.BORGEFORS);
values.put("City-Block (1,2,3)", DistanceMap.WeightModes.CITY_BLOCK);
values.put("Svensson (3,4,5,7)", DistanceMap.WeightModes.WEIGHTS_3_4_5_7);
parameterValues = new HashMap<>();
parameterValues.put(DistanceMap.WEIGHT_MODE, values);
return parameterValues;
}
}