Main Page | Class Hierarchy | Class List | File List | Class Members

Dataset Class Reference

A class representing 3D discrete datasets. More...

#include <Dataset.h>

List of all members.

Public Member Functions

 Dataset ()
 Default constructor.
 Dataset (GridType g)
 Constructor taking in grid type.
int getNumSamples () const
 Getting the number of samples in the dataset.
double & operator[] (int i)
 Retrieving or setting the ith sample.
const double & operator[] (int i) const
 Retrieving the ith sample.
int getXDim () const
 Get the number of samples in x direction.
int getYDim () const
 Get the number of samples in y direction.
int getZDim () const
 Get the number of samples in z direction.
Vector3i getDims () const
 Getting the dimensions of the datset.
vuVector getScale () const
 Getting the scaling factor of the dataset.
GridType getGridType () const
 Getting the grid type.
int lindex_cc (int x, int y, int z) const
 Given CC indices, output BCC indices.
int lindex_cc (const Vector3i &p) const
 Given CC indices, return linear index.
Vector3i mindex_cc (int i) const
 Given linear indices, output CC indices.
int lindex_bcc (const Vector3i &index_bcc) const
 Given BCC indices, give linear index.
Vector3i mindex_bcc (int index) const
 Given CC indices, give BCC indices.
void print () const
 Print function for debuggin.
void read (const string &fullname)
 File reading: only read the double version of the dataset.
void write (const string &outDir, const string &filename, const string &ext) const
 File writing.
void setDim (int xdim, int ydim, int zdim)
 Setting the dimensions of the dataset.
void setGridType (GridType g)
 Setting the grid type.
void setScaling (const vuVector &s)
 Setting the scaling factor of the dataset.
void copyAttribs (const Dataset &d)
 Copy attributes of dataset, but not the data itself.
void getBoundingBox (Vector3i &min, Vector3i &max) const
 Returns bounding box of dataset as min and max vectors.
bool isSampleInBoundary (int index, const double &filterRadius) const
 Returns true if a sample is in the boundary region, else false.

Static Public Member Functions

static Vector3i index_bcc_to_cc (int x, int y, int z)
 Given BCC indices, output CC indices.
static Vector3i index_cc_to_bcc (int x, int y, int z)
 Given CC indices, give BCC indices.
static void whiteNoiseError (const Dataset &orig, const Dataset &noisy, double &mean, double &stdDev)
 Return mean and standard deviation of white noise in noisy.
static void saltPepperError (const Dataset &orig, const Dataset &noisy, double &percentage)
 Return percentage of samples in noisy affected by saltPepper noise.
static void denoiseErrorWithBoundaries (const Dataset &orig, const Dataset &denoised, double &mean, double &stdDev)
 Returns mean and standard deviation of the difference of noisy and orig.
static void denoiseErrorWithoutBoundaries (const Dataset &orig, const Dataset &denoised, double &mean, double &stdDev, const double &filterRadius)
 Returns mean and standard deviation of the difference of noisy and orig.


Detailed Description

A class representing 3D discrete datasets.


Member Function Documentation

static void Dataset::denoiseErrorWithBoundaries const Dataset orig,
const Dataset denoised,
double &  mean,
double &  stdDev
[inline, static]
 

Returns mean and standard deviation of the difference of noisy and orig.

Considers all samples.

static void Dataset::denoiseErrorWithoutBoundaries const Dataset orig,
const Dataset denoised,
double &  mean,
double &  stdDev,
const double &  filterRadius
[inline, static]
 

Returns mean and standard deviation of the difference of noisy and orig.

Considers only those samples that are in the interior; if the filter were placed on an interior sample, the filter would not touch the outside of the dataset.


The documentation for this class was generated from the following files:
Generated on Thu Apr 13 04:55:56 2006 by  doxygen 1.4.4