io.github.mianalysis.mia.process.activecontour.ContourInitialiser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mia-algorithms Show documentation
Show all versions of mia-algorithms 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.process.activecontour;
import io.github.mianalysis.mia.process.activecontour.physicalmodel.NodeCollection;
import io.github.mianalysis.mia.process.activecontour.physicalmodel.Vertex;
/**
* Created by sc13967 on 31/01/2017.
*/
public class ContourInitialiser {
public static NodeCollection buildContour(int[] xCoords, int[] yCoords){
Vertex[] nodeArr = new Vertex[xCoords.length];
//Adding Nodes to Vertex array
for (int i = 0;i