Information on volume node data. More...
#include <cmtkProbeInfo.h>
Public Member Functions | |
Types::DataItem | GetValueTrilinear () const |
Return data value at desired location. | |
Types::DataItem | GetValueTrilinearAbove (const Types::DataItem threshold) const |
Return data value at desired location using only values above threshold. | |
Types::DataItem | GetValueTrilinearBelow (const Types::DataItem threshold) const |
Return data value at desired location using only values below threshold. | |
byte | GetNumberOfValuesAbove (const Types::DataItem threshold) const |
Return number of values above (or equal to) threshold. | |
byte | GetNumberOfValuesBelow (const Types::DataItem threshold) const |
Return number of values below threshold. | |
Types::Coordinate | GetWeight (const int index) const |
Return relative weight of given index. | |
Vector3D & | GetPartialDerivatives (Vector3D &d) const |
Return partial derivatives of node data w.r.t. | |
Public Attributes | |
Types::DataItem | Values [8] |
Node data on cube corners around given location. | |
Types::Coordinate | Deltas [3] |
Dimensions of the grid cube. | |
Types::Coordinate | Offsets [6] |
Relative location of the probed coordinate. | |
Vector3D | Location |
The real location that was probed. |
Information on volume node data.
This class represents all information needed for trilinear interpolation and partial derivative computation. It holds a grid location and the node data on the corners of the grid cube containing that location.
Definition at line 53 of file cmtkProbeInfo.h.
byte cmtk::ProbeInfo::GetNumberOfValuesAbove | ( | const Types::DataItem | threshold ) | const [inline] |
Return number of values above (or equal to) threshold.
Definition at line 116 of file cmtkProbeInfo.h.
byte cmtk::ProbeInfo::GetNumberOfValuesBelow | ( | const Types::DataItem | threshold ) | const [inline] |
Return number of values below threshold.
Definition at line 127 of file cmtkProbeInfo.h.
Return partial derivatives of node data w.r.t.
grid dimensions. The data on the cube faces is used for a finite-difference approximation of the first-order derivatives w.r.t. the grid dimensions x, y, and z.
d | The object of type Vector3D in which the result is to be stored. |
Definition at line 159 of file cmtkProbeInfo.h.
Types::DataItem cmtk::ProbeInfo::GetValueTrilinear | ( | ) | const [inline] |
Return data value at desired location.
Trlinear interpolation is performed using the pre-calculated coefficients.
Definition at line 81 of file cmtkProbeInfo.h.
Types::DataItem cmtk::ProbeInfo::GetValueTrilinearAbove | ( | const Types::DataItem | threshold ) | const [inline] |
Return data value at desired location using only values above threshold.
Definition at line 91 of file cmtkProbeInfo.h.
Types::DataItem cmtk::ProbeInfo::GetValueTrilinearBelow | ( | const Types::DataItem | threshold ) | const [inline] |
Return data value at desired location using only values below threshold.
Definition at line 104 of file cmtkProbeInfo.h.
Types::Coordinate cmtk::ProbeInfo::GetWeight | ( | const int | index ) | const [inline] |
Return relative weight of given index.
Definition at line 137 of file cmtkProbeInfo.h.
Dimensions of the grid cube.
Definition at line 64 of file cmtkProbeInfo.h.
Referenced by cmtk::Volume::GetTrilinear().
The real location that was probed.
Definition at line 76 of file cmtkProbeInfo.h.
Referenced by cmtk::Volume::GetTrilinear().
Relative location of the probed coordinate.
Represented are the relative distances of the probed coordinate from the surrounding cube's faces. Values range from 0 to 1. The order of the coefficients is dX0, dY0, dZ0, dX1, dY1, dZ1. Lower x-coordinates for example are weighted with dX0, others respectively.
Definition at line 72 of file cmtkProbeInfo.h.
Referenced by cmtk::Volume::GetTrilinear().
Node data on cube corners around given location.
The order of the data elements is as follows: (x0,y0,z0), (x1,y0,z0), (x0,y1,z0), (x1,y1,z0), (x0,y0,z1), (x1,y0,z1), (x0,y1,z1), (x1,y1,z1).
Definition at line 60 of file cmtkProbeInfo.h.
Referenced by cmtk::Volume::GetTrilinear().