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

io.github.mianalysis.mia.process.analysis.EuclideanDistanceCalculator 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.analysis;

import java.util.TreeMap;

/**
 * Created by steph on 15/04/2017.
 */
public class EuclideanDistanceCalculator implements SpatialCalculator {
    public TreeMap calculate(double[] x, double[] y, double[] z, int[] f) {
        TreeMap dist = new TreeMap<>();

        dist.put(f[0],0d);
        for (int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy