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

io.github.mianalysis.mia.lostandfound.images.process.binary.DistanceMapLostFound 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.8
Show newest version
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;

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy