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

io.github.mianalysis.mia.lostandfound.objects.relate.RelateManyToOneLostFound 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.7.0
Show newest version
package io.github.mianalysis.mia.lostandfound.objects.relate;

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.relate.RelateManyToOne;

@Plugin(type = LostAndFoundItem.class, priority = Priority.LOW, visible = true)
public class RelateManyToOneLostFound extends LostAndFoundItem {

    @Override
    public String getModuleName() {
        return new RelateManyToOne(null).getClass().getSimpleName();
    }

    @Override
    public String[] getPreviousModuleNames() {
        return new String[] { "" };
    }

    @Override
    public HashMap getPreviousParameterNames() {
        HashMap parameterNames = new HashMap<>();
        parameterNames.put("Reference point", RelateManyToOne.REFERENCE_MODE);
        parameterNames.put("Minimum percentage overlap", RelateManyToOne.MINIMUM_OVERLAP);
        parameterNames.put("Limit linking by distance", RelateManyToOne.LINKING_DISTANCE_LIMIT);

        return parameterNames;

    }

    @Override
    public HashMap> getPreviousParameterValues() {
        HashMap> parameterValues = new HashMap<>();

        HashMap parameterValue = new HashMap<>();
        parameterValue.put("false", RelateManyToOne.LinkingDistanceLimits.NO_LIMIT);
        parameterValue.put("true", RelateManyToOne.LinkingDistanceLimits.LIMIT_BOTH);

        parameterValues.put(RelateManyToOne.LINKING_DISTANCE_LIMIT, parameterValue);

        return parameterValues;

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy