|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SvpTools
Constructor Summary | |
SvpTools()
|
Method Summary | |
static double |
angleBetween(DPoint v0,
DPoint v1)
returns the angle, in the range 0 -> PI between the two unit vectors |
static double |
angleBetweenShifted(DPoint v0,
DPoint v1)
returns the angle, in the range 0 - PI/2 between the two unit vectors. |
static double |
distanceBetween(DPoint p1,
DPoint p2)
returns the distance between the two DPoints |
static double |
getMeanIntensity(int[][] pixels,
DPoint start,
DPoint vector,
double length,
double width)
Returns the mean pixel density in the specified region. |
static RegionPixelStats |
getPixelStats(int[][] pixels,
DPoint start,
DPoint vector,
double length,
double width,
double slice_size)
Breaks the specified region into "slices" based on the slice_size parameter. |
static DPoint |
unitize(DPoint v)
returns unit vector version of the passed vector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SvpTools()
Method Detail |
public static RegionPixelStats getPixelStats(int[][] pixels, DPoint start, DPoint vector, double length, double width, double slice_size)
length ________________________ | | | | | | ^ |start vector | | *----------------------> | width | | | | | | | |____|____|____|____|____| V ! ! slice_size
pixels
- the image, passed as a parameter so this method can be staticstart
- the starting point of the regionvector
- a vector in the length-wise direction of the regionlength
- the length of the rectangular regionwidth
- the width of the rectangular regionslice_size
- the width of the slices that the region will be
divided into when computing stats (ideally should be 1?)public static double getMeanIntensity(int[][] pixels, DPoint start, DPoint vector, double length, double width)
length ________________________ | | ^ |start vector | | *----------------------> | width | | | |________________________| V
public static double angleBetween(DPoint v0, DPoint v1)
public static double angleBetweenShifted(DPoint v0, DPoint v1)
public static double distanceBetween(DPoint p1, DPoint p2)
public static DPoint unitize(DPoint v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |