public class OtoProfile
extends java.lang.Object
| Constructor and Description |
|---|
OtoProfile(Point[] pontos,
ij.ImagePlus image)
OtoProfile
Creates an object with a initial profile
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildSegments()
buildSegments
Convert the profile into segments
|
java.util.ArrayList<Segment>[] |
countRings(java.util.ArrayList<Segment> an,
Option op,
int ch)
countRings
Count identified otolith rings from @param an segments using @param op options on @param ch channel
|
java.util.ArrayList<Segment> |
filterSegments(int ch)
filterSegments
Filter the segments of channel @param ch by connecting segments with same derivative sign
|
double[] |
getDistances()
getDistances
Return all point distance
|
double[] |
getPointsFromChannel(int ch)
getPointsFromChannel
Get profile points from channel @param ch
|
java.util.ArrayList<Segment> |
getSegments()
getSegments
Return the segment list
|
void |
joinSegments()
joinSegments
Connect segments forming a continuous connected segment
|
Point[] |
points()
points
Profile points
|
Point[] |
runFilter()
runFilter
Apply the filer to the profile
|
Point[] |
segmentsToPoints()
segmentsToPoints
Convert segments to points
|
void |
setFilter(Filter f)
setFilter
Set filter
|
void |
setSegments(java.util.ArrayList<Segment> an)
setSegments
Set segment list to @param an
|
void |
smoothSegments(double grain,
int ch)
smoothSegments
Remove segments with heights in channel @param ch below @param grain.
|
public OtoProfile(Point[] pontos, ij.ImagePlus image)
pontos - image - public Point[] points()
public void setFilter(Filter f)
f - public Point[] runFilter()
public double[] getPointsFromChannel(int ch)
ch - public void buildSegments()
public void smoothSegments(double grain,
int ch)
grain - ch - public void joinSegments()
public Point[] segmentsToPoints()
public java.util.ArrayList<Segment> getSegments()
public void setSegments(java.util.ArrayList<Segment> an)
an - public double[] getDistances()
public java.util.ArrayList<Segment>[] countRings(java.util.ArrayList<Segment> an, Option op, int ch)
an - op - ch - public java.util.ArrayList<Segment> filterSegments(int ch)
ch -