public class Edge extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BACK
"back" edge classification constant for Depth-first search (DFS)
|
static int |
TREE
"tree" edge classification constant for Depth-first search (DFS)
|
static int |
UNDEFINED
not yet defined edge classification constant for Depth-first search (DFS)
|
Constructor and Description |
---|
Edge(Vertex v1,
Vertex v2,
ArrayList<Point> slabs,
double length)
Create an edge of specific vertices and list of slab voxels.
|
Edge(Vertex v1,
Vertex v2,
ArrayList<Point> slabs,
double length,
double color3rd,
double color,
double length_ra)
Create an edge of specific vertices and list of slab voxels.
|
Modifier and Type | Method and Description |
---|---|
Edge |
clone(Vertex v1,
Vertex v2)
Clones the Edge with all its properties
|
double |
getColor() |
double |
getColor3rd() |
double |
getLength_ra()
Get edge length_ra (running average)
|
double |
getLength()
Get edge length
|
Vertex |
getOppositeVertex(Vertex v)
Get opposite vertex from a given one.
|
ArrayList<Point> |
getSlabs()
Get list of slab voxels belonging to the edge.
|
int |
getType()
Get DFS edge type
|
Vertex |
getV1()
Get first vertex.
|
Vertex |
getV2()
Get second vertex.
|
void |
setColor(double color) |
void |
setColor3rd(double color) |
void |
setLength(double length)
Set edge length
|
void |
setType(int type)
Set DFS type (BACK or TREE)
|
public static final int TREE
public static final int BACK
public static final int UNDEFINED
public Edge(Vertex v1, Vertex v2, ArrayList<Point> slabs, double length)
v1
- first vertexv2
- second vertexslabs
- list of slab voxelslength
- calibrated edge lengthpublic Edge(Vertex v1, Vertex v2, ArrayList<Point> slabs, double length, double color3rd, double color, double length_ra)
v1
- first vertexv2
- second vertexslabs
- list of slab voxelslength
- calibrated edge lengthcolor3rd
- average color value of the inner thirdcolor
- average color valuelength_ra
- calibrated edge length calculated with running average ofer 5 Pixelpublic Vertex getV1()
public Vertex getV2()
public ArrayList<Point> getSlabs()
public void setType(int type)
type
- DFS classification (BACK or TREE)public int getType()
public Vertex getOppositeVertex(Vertex v)
v
- input vertexpublic void setLength(double length)
length
- calibrated edge lengthpublic double getLength()
public double getLength_ra()
public void setColor(double color)
public double getColor()
public void setColor3rd(double color)
public double getColor3rd()
Copyright © 2015–2021 Fiji. All rights reserved.