newimage
 
Loading...
Searching...
No Matches
NEWIMAGE::ShadowVolume< T > Class Template Reference
Inheritance diagram for NEWIMAGE::ShadowVolume< T >:
NEWIMAGE::volume< T >

Public Member Functions

const volume< T > & equals (const volume< T > &source)
 
 ShadowVolume (const ShadowVolume< T > &source)
 
 ShadowVolume (const volume< T > &source)
 
- Public Member Functions inherited from NEWIMAGE::volume< T >
nonsafe_fast_iterator nsfbegin ()
 
nonsafe_fast_iterator nsfend ()
 
 volume (Utilities::NoOfThreads nt=Utilities::NoOfThreads(1))
 
 volume (const volume< T > &source, const bool copyData)
 
 volume (const volume< T > &source, const constructionMode mode=CLONE)
 
 volume (int64_t xsize, int64_t ysize, int64_t zsize, Utilities::NoOfThreads nt=Utilities::NoOfThreads(1))
 
 volume (int64_t xsize, int64_t ysize, int64_t zsize, int64_t tsize, Utilities::NoOfThreads nt=Utilities::NoOfThreads(1))
 
 volume (int64_t xsize, int64_t ysize, int64_t zsize, int64_t tsize, int64_t d5, int64_t d6, int64_t d7, Utilities::NoOfThreads nt=Utilities::NoOfThreads(1))
 
void destroy ()
 
const volume< T > & operator= (const volume< T > &that)
 
virtual const volume< T > & equals (const volume< T > &)
 
void reinitialize (const volume< T > &source, const constructionMode mode=CLONE)
 
int reinitialize (int64_t xsize, int64_t ysize, int64_t zsize, Utilities::NoOfThreads nt=Utilities::NoOfThreads(1))
 
int reinitialize (int64_t xsize, int64_t ysize, int64_t zsize, int64_t tsize, T *d=nullptr, bool d_owner=true, Utilities::NoOfThreads nt=Utilities::NoOfThreads(1))
 
int reinitialize (int64_t xsize, int64_t ysize, int64_t zsize, int64_t tsize, int64_t d5, int64_t d6, int64_t d7, Utilities::NoOfThreads nt=Utilities::NoOfThreads(1))
 
void copyproperties (const volume< T > &source)
 
int copydata (const volume< T > &source, const bool isOwner=true)
 
int64_t xsize () const
 
int64_t ysize () const
 
int64_t zsize () const
 
int64_t tsize () const
 
int64_t size1 () const
 
int64_t size2 () const
 
int64_t size3 () const
 
int64_t size4 () const
 
int64_t size5 () const
 
int64_t size6 () const
 
int64_t size7 () const
 
int64_t size (int n) const
 
int dimensionality () const
 
void throwsIfNot3D () const
 
int64_t maxx () const
 
int64_t maxy () const
 
int64_t maxz () const
 
int64_t maxt () const
 
int64_t minx () const
 
int64_t miny () const
 
int64_t minz () const
 
int64_t mint () const
 
float xdim () const
 
float ydim () const
 
float zdim () const
 
float tdim () const
 
float TR () const
 
float pixdim1 () const
 
float pixdim2 () const
 
float pixdim3 () const
 
float pixdim4 () const
 
float pixdim5 () const
 
float pixdim6 () const
 
float pixdim7 () const
 
float getDisplayMaximum () const
 
float getDisplayMinimum () const
 
std::string getAuxFile () const
 
bool hasSplines () const
 
int64_t nthreads () const
 
void setxdim (float x)
 
void setydim (float y)
 
void setzdim (float z)
 
void settdim (float tr)
 
void setd5dim (float d5)
 
void setd6dim (float d6)
 
void setd7dim (float d7)
 
void setTR (float tr)
 
void setdims (float x, float y, float z)
 
void setdims (float x, float y, float z, float tr)
 
void setdims (float x, float y, float z, float tr, float d5, float d6, float d7)
 
void setDisplayMaximumMinimum (const float maximum, const float minimum) const
 
void setDisplayMaximum (const float maximum) const
 
void setDisplayMinimum (const float minimum) const
 
void setAuxFile (const std::string fileName)
 
int64_t nvoxels () const
 
int64_t ntimepoints () const
 
int64_t totalElements () const
 
std::vector< int64_t > ptrToCoord (size_t offset) const
 
NEWMAT::ReturnMatrix vec (const volume< T > &mask) const
 
NEWMAT::ReturnMatrix vec () const
 
void insert_vec (const NEWMAT::ColumnVector &pvec, const volume< T > &pmask)
 
void insert_vec (const NEWMAT::ColumnVector &pvec)
 
std::vector< int64_t > labelToCoord (const int64_t label) const
 
NEWMAT::ReturnMatrix matrix (const volume< T > &mask, bool using_mask=true) const
 
NEWMAT::ReturnMatrix matrix (const volume< T > &mask, std::vector< int64_t > &voxelLabels) const
 
NEWMAT::ReturnMatrix matrix () const
 
void setmatrix (const NEWMAT::Matrix &newmatrix, const volume< T > &mask, const T pad=0, bool using_mask=true)
 
void setmatrix (const NEWMAT::Matrix &newmatrix)
 
volume< int > vol2matrixkey (const volume< T > &mask)
 
NEWMAT::ReturnMatrix matrix2volkey (volume< T > &mask)
 
NEWMAT::Matrix newimagevox2mm_mat () const
 
NEWMAT::Matrix niftivox2newimagevox_mat () const
 
int intent_code () const
 
float intent_param (int n) const
 
void set_intent (int intent_code, float p1, float p2, float p3) const
 
double maskThreshold () const
 
min () const
 
max () const
 
double sum () const
 
double sumsquares () const
 
double mean () const
 
double variance () const
 
double stddev () const
 
robustmin () const
 
robustmax () const
 
std::vector< T > robustlimits (const volume< T > &mask) const
 
NEWMAT::ColumnVector principleaxis (int n) const
 
NEWMAT::Matrix principleaxes_mat () const
 
percentile (float pvalue) const
 
NEWMAT::ColumnVector histogram (int nbins) const
 
NEWMAT::ColumnVector histogram (int nbins, T minval, T maxval) const
 
NEWMAT::ColumnVector cog (const std::string &coordtype="voxel", bool abscog=false) const
 
min (const volume< T > &mask) const
 
max (const volume< T > &mask) const
 
min (const volume< T > &mask, std::vector< int64_t > &coords) const
 
max (const volume< T > &mask, std::vector< int64_t > &coords) const
 
double sum (const volume< T > &mask) const
 
double sumsquares (const volume< T > &mask) const
 
double mean (const volume< T > &mask) const
 
double variance (const volume< T > &mask) const
 
double stddev (const volume< T > &mask) const
 
robustmin (const volume< T > &mask) const
 
robustmax (const volume< T > &mask) const
 
percentile (float pvalue, const volume< T > &mask) const
 
NEWMAT::ColumnVector histogram (int nbins, const volume< T > &mask) const
 
NEWMAT::ColumnVector histogram (int nbins, T minval, T maxval, const volume< T > &mask) const
 
fast_const_iterator fbegin () const
 
fast_const_iterator fend () const
 
fast_const_iterator fbegin (const int64_t offset) const
 
fast_const_iterator fend (const int64_t offset) const
 
template<class A , class B , class C >
bool in_bounds (A x, B y, C z) const
 
bool in_bounds (int64_t t) const
 
template<class A , class B , class C , class D >
bool in_bounds (A x, B y, C z, D t) const
 
bool in_bounds (int64_t x, int64_t y, int64_t z, int64_t t, int64_t d5, int64_t d6=0, int64_t d7=0) const
 
bool in_extraslice_bounds (float x, float y, float z) const
 
bool valid (int64_t x, int64_t y, int64_t z) const
 
bool valid (float x, float y, float z, double tol=1e-8) const
 
T & operator() (int64_t x, int64_t y, int64_t z)
 
const T & operator() (int64_t x, int64_t y, int64_t z) const
 
T & operator() (int64_t x, int64_t y, int64_t z, int64_t t)
 
const T & operator() (int64_t x, int64_t y, int64_t z, int64_t t) const
 
T & operator() (int64_t x, int64_t y, int64_t z, int64_t t, int64_t d5, int64_t d6=0, int64_t d7=0)
 
const T & operator() (int64_t x, int64_t y, int64_t z, int64_t t, int64_t d5, int64_t d6=0, int64_t d7=0) const
 
splineCoef (int64_t x, int64_t y, int64_t z) const
 
float interpolate (float x, float y, float z) const
 
float interpolate (float x, float y, float z, bool *ep) const
 
float interp1partial (float x, float y, float z, int dir, float *pderiv) const
 
float interp3partial (float x, float y, float z, float *dfdx, float *dfdy, float *dfdz) const
 
T & value (int64_t x, int64_t y, int64_t z)
 
const T & value (int64_t x, int64_t y, int64_t z) const
 
T & value (int64_t x, int64_t y, int64_t z, int64_t t)
 
const T & value (int64_t x, int64_t y, int64_t z, int64_t t) const
 
T & value (int64_t x, int64_t y, int64_t z, int64_t t, int64_t d5, int64_t d6=0, int64_t d7=0)
 
const T & value (int64_t x, int64_t y, int64_t z, int64_t t, int64_t d5, int64_t d6=0, int64_t d7=0) const
 
float interpolatevalue (float x, float y, float z) const
 
NEWMAT::ColumnVector ExtractRow (int j, int k) const
 
NEWMAT::ColumnVector ExtractColumn (int i, int k) const
 
void SetRow (int j, int k, const NEWMAT::ColumnVector &row)
 
void SetColumn (int j, int k, const NEWMAT::ColumnVector &col)
 
void addvolume (const volume< T > &source)
 
void deletevolume (int64_t t)
 
void clear ()
 
NEWMAT::ReturnMatrix voxelts (int64_t x, int64_t y, int64_t z) const
 
void setvoxelts (const NEWMAT::ColumnVector &ts, int64_t x, int64_t y, int64_t z)
 
void copySubVolume (const int64_t t, volume< T > &newVolume)
 
ShadowVolume< T > operator[] (const int64_t t)
 
const ShadowVolume< T > operator[] (const int64_t t) const
 
const volume< T > constSubVolume (const int64_t t) const
 
void replaceSubVolume (const int64_t t, const volume< T > &newVolume)
 
void copyROI (const volume< T > &source, const int64_t minx, const int64_t miny, const int64_t minz, const int64_t mint, const int64_t maxx, const int64_t maxy, const int64_t maxz, const int64_t maxt)
 
volume< T > ROI (const int64_t minx, const int64_t miny, const int64_t minz, const int64_t mint, const int64_t maxx, const int64_t maxy, const int64_t maxz, const int64_t maxt) const
 
void setextrapolationmethod (extrapolation extrapmethod) const
 
extrapolation getextrapolationmethod () const
 
void setpadvalue (T padval) const
 
getpadvalue () const
 
backgroundval () const
 
void defineuserextrapolation (T(*extrap)(const volume< T > &, int64_t, int64_t, int64_t)) const
 
void setinterpolationmethod (interpolation interpmethod) const
 
interpolation getinterpolationmethod () const
 
void setsplineorder (int order) const
 
void invalidateSplines () const
 
int getsplineorder () const
 
void forcesplinecoefcalculation () const
 
void setextrapolationvalidity (bool xv, bool yv, bool zv) const
 
std::vector< bool > getextrapolationvalidity () const
 
void defineuserinterpolation (float(*interp)(const volume< T > &, float, float, float)) const
 
void definekernelinterpolation (const NEWMAT::ColumnVector &kx, const NEWMAT::ColumnVector &ky, const NEWMAT::ColumnVector &kz, int wx, int wy, int wz) const
 
void definekernelinterpolation (const volume< T > &vol) const
 
void definesincinterpolation (const std::string &sincwindowtype, int w, int nstore=1201) const
 
void definesincinterpolation (const std::string &sincwindowtype, int wx, int wy, int wz, int nstore=1201) const
 
void getneighbours (int64_t x, int64_t y, int64_t z, T &v000, T &v001, T &v010, T &v011, T &v100, T &v101, T &v110, T &v111) const
 
void getneighbours (int64_t x, int64_t y, int64_t z, T &v000, T &v010, T &v100, T &v110) const
 
operator= (T val)
 
const volume< T > & operator+= (T val)
 
const volume< T > & operator-= (T val)
 
const volume< T > & operator*= (T val)
 
const volume< T > & operator/= (T val)
 
const volume< T > & operator+= (const volume< T > &source)
 
const volume< T > & operator-= (const volume< T > &source)
 
const volume< T > & operator*= (const volume< T > &source)
 
const volume< T > & operator/= (const volume< T > &source)
 
volume< T > operator+ (T num) const
 
volume< T > operator- (T num) const
 
volume< T > operator* (T num) const
 
volume< T > operator/ (T num) const
 
volume< T > operator+ (const volume< T > &vol2) const
 
volume< T > operator- (const volume< T > &vol2) const
 
volume< T > operator* (const volume< T > &vol2) const
 
volume< T > operator/ (const volume< T > &vol2) const
 
void binarise (const T lower=smallestPositiveT, const T upper=std::numeric_limits< T >::max(), const threshtype tt=inclusive, const bool invertRange=false)
 
void threshold (const T lower, const T upper=std::numeric_limits< T >::max(), const threshtype tt=inclusive, const bool invertRange=false)
 
void swapdimensions (int dim1, int dim2, int dim3, bool keepLRorder=false)
 
void swapdimensions (const std::string &newx, const std::string &newy, const std::string &newz, const bool keepLRorder=false)
 
NEWMAT::Matrix swapmat (int dim1, int dim2, int dim3) const
 
NEWMAT::Matrix swapmat (const std::string &newx, const std::string &newy, const std::string &newz) const
 

Additional Inherited Members

- Public Types inherited from NEWIMAGE::volume< T >
typedef T * nonsafe_fast_iterator
 
typedef const T * fast_const_iterator
 
- Static Public Attributes inherited from NEWIMAGE::volume< T >
static const T smallestPositiveT = std::is_integral<T>::value ? 1 : std::numeric_limits<T>::min()
 
virtual int initialize (int64_t xsize, int64_t ysize, int64_t zsize, int64_t tsize, int64_t d5, int64_t d6, int64_t d7, T *d, bool d_owner, int64_t nthreads)
 

Member Function Documentation

◆ equals()

template<class T >
const volume< T > & NEWIMAGE::ShadowVolume< T >::equals ( const volume< T > &  source)
virtual

Reimplemented from NEWIMAGE::volume< T >.


The documentation for this class was generated from the following files: