public class Line extends Object
This class has been inspired by and in parts been copied from the original Ridge Detection plugin by Carsten Steger (and Thorsten Wagner).
Related publication:
For more details take a look at ...
| Modifier and Type | Field and Description |
|---|---|
(package private) float[] |
angle
angle of normal (measured from the row axis).
|
(package private) float[] |
asymmetry
asymmetry of the line point.
|
(package private) float[] |
col
column coordinates of the line points.
|
private de.biomedical_imaging.ij.steger.LinesUtil.contour_class |
cont_class
contour class (e.g., closed, no_junc)
|
private int |
frame
The frame.
|
private int |
id
The id.
|
(package private) static int |
idCounter
The id counter.
|
(package private) float[] |
intensity
intensity of the line point.
|
(package private) int |
num
number of points.
|
(package private) float[] |
response
response of line point (second derivative).
|
(package private) float[] |
row
row coordinates of the line points.
|
(package private) float[] |
width_l
width to the left of the line.
|
(package private) float[] |
width_r
width to the right of the line.
|
| Constructor and Description |
|---|
Line()
Instantiates a new line.
|
Line(float[] x,
float[] y)
Instantiates a new line.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
assignID()
Assign ID.
|
void |
castLine(de.biomedical_imaging.ij.steger.Line line) |
double |
estimateLength()
Estimate length.
|
float[] |
getAngle()
Gets the angle.
|
float[] |
getAsymmetry()
Gets the asymmetry.
|
de.biomedical_imaging.ij.steger.LinesUtil.contour_class |
getContourClass()
Gets the contour class.
|
int |
getFrame()
Gets the frame.
|
int |
getID()
Gets the id.
|
float[] |
getIntensity()
Gets the intensity.
|
de.biomedical_imaging.ij.steger.LinesUtil.contour_class |
getLineClass()
Gets the line class.
|
float[] |
getLineWidthL()
Gets the line width L.
|
float[] |
getLineWidthR()
Gets the line width R.
|
int |
getNumber()
Gets the number.
|
float[] |
getResponse()
Gets the response.
|
int |
getStartOrdEndPosition(float x,
float y)
Gets the start ord end position.
|
float[] |
getXCoordinates()
Gets the x coordinates.
|
float[] |
getYCoordinates()
Gets the y coordinates.
|
void |
initCounter(int cnt) |
(package private) static void |
resetCounter()
Reset counter.
|
void |
setAngle(float[] angle) |
void |
setContourClass(de.biomedical_imaging.ij.steger.LinesUtil.contour_class cont_class)
Sets the contour class.
|
void |
setFrame(int frame)
Sets the frame.
|
void |
setID(int id) |
void |
setNum(int num) |
void |
setWidthL(float[] widthL) |
void |
setWidthR(float[] widthR) |
void |
setXCoordinates(float[] x) |
void |
setYCoordinates(float[] y) |
String |
toString() |
int num
float[] row
float[] col
float[] angle
float[] response
float[] width_l
float[] width_r
float[] asymmetry
float[] intensity
private de.biomedical_imaging.ij.steger.LinesUtil.contour_class cont_class
static int idCounter
private int id
private int frame
public Line()
public Line(float[] x,
float[] y)
x - the xy - the ypublic de.biomedical_imaging.ij.steger.LinesUtil.contour_class getContourClass()
public void setContourClass(de.biomedical_imaging.ij.steger.LinesUtil.contour_class cont_class)
cont_class - the new contour classpublic void setFrame(int frame)
frame - the new framepublic int getFrame()
public float[] getXCoordinates()
public float[] getYCoordinates()
public float[] getResponse()
public float[] getIntensity()
public float[] getAngle()
public float[] getAsymmetry()
public float[] getLineWidthL()
public float[] getLineWidthR()
public int getNumber()
public int getID()
public de.biomedical_imaging.ij.steger.LinesUtil.contour_class getLineClass()
public int getStartOrdEndPosition(float x,
float y)
x - the xy - the ypublic double estimateLength()
private void assignID()
static void resetCounter()
public void castLine(de.biomedical_imaging.ij.steger.Line line)
public void initCounter(int cnt)
public void setXCoordinates(float[] x)
public void setYCoordinates(float[] y)
public void setAngle(float[] angle)
public void setWidthL(float[] widthL)
public void setWidthR(float[] widthR)
public void setNum(int num)
public void setID(int id)
Copyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.