public class Segment
extends java.lang.Object
| Constructor and Description |
|---|
Segment(Point p)
Segment
Create a Segment with @param p as the start Point
|
| Modifier and Type | Method and Description |
|---|---|
static double |
distance(Segment a,
Segment b)
distance
Geometric distance between connected segments @param , @param b end points
|
static double |
hillHeight(Segment a,
Segment b,
int canal)
hillHeight
Assuming that @param a and @param b forms a hill, this function returns the height
of its highest slope according to @param canal channel values
|
static boolean |
hillHigherThan(Segment a,
Segment b,
int canal,
double val)
hillHigherThan
True if connected segments @param a, @param b form a Hill on channel @param canal
and the Hill relative intensity is above @param val
|
static boolean |
isHill(Segment a,
Segment b,
int canal)
isHill
Return if connected segment @param a , @param b are joined by a higher intensity pixel
on the selected @param canal channel.
|
static boolean |
isPlateau(Segment a,
Segment b,
int canal)
isPlateau
Return if connected segment @param a , @param b has the same pixel intensity
on the selected @param canal channel.
|
static boolean |
isValley(Segment a,
Segment b,
int canal)
isValley
Return if connected segment @param a , @param b are joined by a less intensity pixel
on the selected @param canal channel.
|
void |
setEnd(Point p)
setEnd
Set segment's end as @param p Point
|
java.lang.String |
toString()
Show distance and value of the start and end Point
|
static boolean |
valleyDeeperThan(Segment a,
Segment b,
int canal,
double val)
valleyDeeperThan
True if connected segments @param a, @param b form a Valley on channel @param canal
and the Valley relative intensity is above @param val
|
static double |
valleyDepth(Segment a,
Segment b,
int canal)
valleyDepth
Assuming that @param a and @param b forms a valley, this function returns the height
of its deepest slope according to @param canal channel values
|
public Segment(Point p)
p - public void setEnd(Point p)
p - public static boolean isPlateau(Segment a, Segment b, int canal)
a - b - canal - public static boolean isHill(Segment a, Segment b, int canal)
a - b - canal - public static boolean isValley(Segment a, Segment b, int canal)
a - b - canal - public static boolean hillHigherThan(Segment a, Segment b, int canal, double val)
a - b - canal - val - public static boolean valleyDeeperThan(Segment a, Segment b, int canal, double val)
a - b - canal - val - public static double distance(Segment a, Segment b)
a - b - public static double hillHeight(Segment a, Segment b, int canal)
a - b - canal - public static double valleyDepth(Segment a, Segment b, int canal)
a - b - canal - public java.lang.String toString()
toString in class java.lang.Object