Classes | Namespaces | Enumerations | Functions
DataOp.h File Reference

Defines base class and I/O functions for arbitrary 1D data sequences. More...

#include "mirtk/ImageConfig.h"
#include "mirtk/Math.h"
#include "mirtk/Stream.h"
#include "mirtk/Voxel.h"
#include "mirtk/ImageAttributes.h"
Include dependency graph for DataOp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mirtk::data::Op
 Base class of all data operations. More...
 
class  mirtk::data::Write
 Write data sequence. More...
 

Namespaces

 mirtk
 

Enumerations

enum  mirtk::data::DataFileType
 Enumeration of supported input data file types.
 

Functions

DataFileType mirtk::data::FileType (const char *name)
 Get (or guess) type of input file.
 
int mirtk::data::Read (const char *name, UniquePtr< double[]> &data, int *dtype=nullptr, ImageAttributes *attr=nullptr, void *=nullptr, const char *scalars_name=nullptr, bool cell_data=false)
 Read data sequence from any supported input file type.
 

Detailed Description

Defines base class and I/O functions for arbitrary 1D data sequences.

Functions to manipulate the data are defined in mirtkDataFunctions.h. Statistics of the data sequence such as mean and variance or percentiles can be computed using the operators found in mirtkDataStatistics.h. The data operators are used in particular by the calculate.cc tool for which they were originally developed. They were added to the linear algebra library because they are useful to compute common statistics or perform basic mathematical operations on a data sequence such as an image or attributes of a VTK point set.

See also
mirtkDataFunctions.h
mirtkDataStatistics.h

Definition in file DataOp.h.