arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

NrroKernel Class Reference

#include <nrroKernel.h>

List of all members.


Detailed Description

Kernel object.

Definition at line 50 of file nrroKernel.h.

Public Types

enum  PARAMETERS { MAX_PARMS = NRRD_KERNEL_PARMS_NUM }
enum  {
  Kernel_Unknown, Box, Tent, Cubic,
  Quartic, Gaussian, Kernel_Last
}
enum  {
  TYPE_UNKNOWN, VALUE, DERIV, DERIV2,
  TYPE_LAST
}

Public Member Functions

 NrroKernel (int kind=Cubic, const double *params=0)
 defaults to catmul-rom: value params must be 0 or MAX_PARMS in size

 NrroKernel (const NrroKernel &nk)
 copy

virtual ~NrroKernel ()
void operator= (const NrroKernel &nk)
 assignment

bool operator== (const NrroKernel &nk) const
 comparisons

bool operator!= (const NrroKernel &nk) const
int getGageKernelType (int type=VALUE) const
 these are for interactions between NrroProbe and Nrrd stuff, users need not worry about these

NrrdKernel * getNrrdKernel (int type=VALUE) const
const double * getParams (int type=VALUE) const
int getKind () const
 what kind of kernel is this?

void setKind (int kind)
 want to make it something else?


Protected Attributes

int _kind
double _params [MAX_PARMS]
double _spareParams [MAX_PARMS]


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
Kernel_Unknown 
Box 
Tent 
Cubic 
Quartic 
Gaussian 
Kernel_Last 

Definition at line 73 of file nrroKernel.h.

anonymous enum
 

Enumeration values:
TYPE_UNKNOWN 
VALUE 
DERIV 
DERIV2 
TYPE_LAST 

Definition at line 85 of file nrroKernel.h.

enum NrroKernel::PARAMETERS
 

Enumeration values:
MAX_PARMS 

Definition at line 53 of file nrroKernel.h.


Constructor & Destructor Documentation

NrroKernel::NrroKernel int  kind = Cubic,
const double *  params = 0
 

defaults to catmul-rom: value params must be 0 or MAX_PARMS in size

Definition at line 47 of file nrroKernel.cpp.

References _params, _spareParams, CatRomParam, Cubic, MAX_PARMS, params, and Tent.

NrroKernel::NrroKernel const NrroKernel nk  ) 
 

copy

Definition at line 82 of file nrroKernel.cpp.

References _params, _spareParams, and MAX_PARMS.

NrroKernel::~NrroKernel  )  [virtual]
 

Definition at line 104 of file nrroKernel.cpp.


Member Function Documentation

int NrroKernel::getGageKernelType int  type = VALUE  )  const
 

these are for interactions between NrroProbe and Nrrd stuff, users need not worry about these

Definition at line 112 of file nrroKernel.cpp.

References DERIV, DERIV2, type, and VALUE.

Referenced by NrroProbe::setKernel().

int NrroKernel::getKind  )  const [inline]
 

what kind of kernel is this?

Definition at line 106 of file nrroKernel.h.

References _kind.

NrrdKernel * NrroKernel::getNrrdKernel int  type = VALUE  )  const
 

Definition at line 131 of file nrroKernel.cpp.

References _kind, Box, Cubic, DERIV, DERIV2, Gaussian, Quartic, Tent, type, and VALUE.

Referenced by Nrro::resample(), and NrroProbe::setKernel().

const double * NrroKernel::getParams int  type = VALUE  )  const
 

Definition at line 193 of file nrroKernel.cpp.

References _kind, _params, _spareParams, Box, DERIV2, Tent, and type.

Referenced by Nrro::resample(), and NrroProbe::setKernel().

bool NrroKernel::operator!= const NrroKernel nk  )  const [inline]
 

Definition at line 70 of file nrroKernel.h.

void NrroKernel::operator= const NrroKernel nk  ) 
 

assignment

Definition at line 93 of file nrroKernel.cpp.

References _kind, _params, _spareParams, and MAX_PARMS.

bool NrroKernel::operator== const NrroKernel nk  )  const [inline]
 

comparisons

Definition at line 123 of file nrroKernel.h.

References _kind, _params, _spareParams, and MAX_PARMS.

void NrroKernel::setKind int  kind  ) 
 

want to make it something else?


Member Data Documentation

int NrroKernel::_kind [protected]
 

Definition at line 114 of file nrroKernel.h.

Referenced by getKind(), getNrrdKernel(), getParams(), operator=(), and operator==().

double NrroKernel::_params[MAX_PARMS] [protected]
 

Definition at line 115 of file nrroKernel.h.

Referenced by getParams(), NrroKernel(), operator=(), and operator==().

double NrroKernel::_spareParams[MAX_PARMS] [protected]
 

Definition at line 116 of file nrroKernel.h.

Referenced by getParams(), NrroKernel(), operator=(), and operator==().


The documentation for this class was generated from the following files:
Send questions, comments, and bug reports to:
jmk