Package jhd.PointFunctions
Class PointFunctions.Point3D
java.lang.Object
jhd.PointFunctions.PointFunctions.Point3D
- Enclosing class:
- PointFunctions
public class PointFunctions.Point3D
extends java.lang.Object
A structure describing a 3D pixel
- Author:
- John
-
Field Summary
Fields Modifier and Type Field Description doublepixelDepthThe z dimension of the pixeldoublepixelHeightThe y dimension of the pixeldoublepixelWidthThe x dimension of the pixeljava.lang.StringunitThe dimension unit e .g . cm or inch etc.doublevalThe value at the pixel(x,y,z) locationintxThe x or i or column location of the pixelintyThe y or j or row location of the pixelintzThe z or k or slice location of the pixel -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
x
public int xThe x or i or column location of the pixel -
y
public int yThe y or j or row location of the pixel -
z
public int zThe z or k or slice location of the pixel -
pixelWidth
public double pixelWidthThe x dimension of the pixel -
pixelHeight
public double pixelHeightThe y dimension of the pixel -
pixelDepth
public double pixelDepthThe z dimension of the pixel -
unit
public java.lang.String unitThe dimension unit e .g . cm or inch etc. of the pixel -
val
public double valThe value at the pixel(x,y,z) location
-
-
Constructor Details
-
Point3D
public Point3D()Default constructor -
Point3D
public Point3D(int x, int y, int z)- Parameters:
x- The x or horizontal or column position of a pixely- The y or vertical or row position of a pixelz- The z or slice or depth position of a pixel
-
Point3D
public Point3D(int x, int y, int z, double val)- Parameters:
x- The x or horizontal or column position of a pixely- The y or vertical or row position of a pixelz- The z or slice or depth position of a pixelval- The value of the pixel at the coordinates (x,y,z)
-
Point3D
public Point3D(int x, int y, int z, double pixelWidth, double pixelHeight, double pixelDepth, double val)- Parameters:
x- The x or horizontal or column position of a pixely- The y or vertical or row position of a pixelz- The z or slice or depth position of a pixelpixelWidth- The pixel dimension in the x directionpixelHeight- The pixel dimension in the y directionpixelDepth- The pixel dimension in the z directionval- The value of the pixel at the coordinates (x,y,z)
-