JavaScript is disabled on your browser.
Methods in jhd.PointFunctions with parameters of type PointFunctions.Point3D
Modifier and Type
Method
Description
PointFunctions.Point3D []
PointFunctions. bresenhamLine (java.lang.Object[] image,
int imgWidth,
int imgHeight,
int imgDepth,
PointFunctions.Point3D start,
PointFunctions.Point3D end)
Gets the coordinates and voxel values along a Bresenham line between p1 and p2 in an image
PointFunctions.Point3D []
PointFunctions. bresenhamLine (PointFunctions.Point3D startPoint,
PointFunctions.Point3D endPoint)
Gets the coordinates along a Bresenham line between p1 and p2
float[]
PointFunctions. getChords (PointFunctions.Point3D [] theLine,
java.lang.String valChoice,
double pixelWidth,
double pixelHeight,
double pixelDepth)
Returns an array containing the length of chords along a line through the selected component.
void
PointFunctions. getLineValues (java.lang.Object[] image,
int imgWidth,
int imgHeight,
int imgDepth,
PointFunctions.Point3D [] line)
Gets the coordinates and voxel values along a Bresenham line between p1 and p2 in an image and adds them to the Point3D val parameter.
void
PointFunctions. randomPointPair (int imgWidth,
int imgHeight,
int imgDepth,
double xScale,
double yScale,
double zScale,
double sepDist,
PointFunctions.Point3D p1,
PointFunctions.Point3D p2)
Function to return a random point p1 within a 2D or 3D space and
a second random point p2 separated by sepDist in image units
The scale factor for the smallest pixel dimension should be 1 and the others are relative to it.
e .g . pixelWidth = 10um, pixelHeight=20um and pixelDepth = 30um, xScale = 1, yScale=2, zScale=3
The pixel units must be the same.
void
PointFunctions. randomPointPair (int imgWidth,
int imgHeight,
int imgDepth,
double sepDist,
PointFunctions.Point3D p1,
PointFunctions.Point3D p2)
Function to return a random point p1 within a 2D or 3D space and
a second random point p2 separated by sepDist in pixels
void
PointFunctions. setLine (java.lang.Object[] image,
int imgWidth,
int imgHeight,
int imgDepth,
PointFunctions.Point3D p1,
PointFunctions.Point3D p2,
double val)
Sets the coordinates and voxel values along a Bresenham line between p1 and p2 in an image
double
PointFunctions. vectorLength (PointFunctions.Point3D p1,
PointFunctions.Point3D p2,
double pixelWidth,
double pixelHeight,
double pixelDepth)
Get the length of the vector p1-p2 in image units