added KDE3DResampling Method.
However BoxKDE3D seems to be buggy
This commit is contained in:
@@ -104,6 +104,21 @@ public:
|
||||
this->values = tmp;
|
||||
}
|
||||
|
||||
// Returns the value at (x,y). Throws if out of bounds.
|
||||
const TValue& at(size_t x, size_t y, size_t z) const
|
||||
{
|
||||
return values[indexFromCoord(x, y, z)];
|
||||
}
|
||||
|
||||
// Returns the value at (x,y) but falls back to default if out of bounds.
|
||||
const TValue& get(size_t x, size_t y, size_t z, TValue dflt = 0) const
|
||||
{
|
||||
if (x >= width || y >= height || z >= depth)
|
||||
return dflt;
|
||||
else
|
||||
return values[indexFromCoord(x, y, z)];
|
||||
}
|
||||
|
||||
public:
|
||||
typedef LineView<SlicePlane::XY> LineViewXY;
|
||||
typedef LineView<SlicePlane::XZ> LineViewXZ;
|
||||
@@ -205,4 +220,4 @@ template struct ImageView3D<float>;
|
||||
//template struct ImageView3D<double>;
|
||||
|
||||
template struct Image3D<float>;
|
||||
//template struct Image3D<double>;
|
||||
//template struct Image3D<double>;
|
||||
|
||||
Reference in New Issue
Block a user