#include <pixel_dataset.h>
Inherits Dataset.
Inherited by ImagePixelDataset, and VolumePixelDataset.
Inheritance diagram for PixelDataset:
Public Member Functions | |
PixelDataset (dataset_type type, dataset_key_type dataset_key, unsigned char num_dimensions, unsigned char num_bytes_per_pixel) | |
virtual | ~PixelDataset () |
metadata_pointer_type | getMetadata () const |
virtual external_data_pointer_type | getData () const =0 throw (NullPointerException) |
virtual unsigned char | getNumDimensions () const |
unsigned char | getNumBytesPerPixel () const |
dataset_position_type const & | getSize () const |
void | setFocusPoint (dataset_position_type const &focus_point) |
void | setFocusPointAt (unsigned char dimension, index_type index) throw (IndexOutOfBoundsException) |
dataset_position_type const & | getFocusPoint () const |
void | setSpacings (std::vector< double > spacings) |
virtual size_type | getNumElements () const |
virtual void | setIntensity (double window, double level)=0 |
virtual double | getIntensityWindow () const =0 throw (NullPointerException) |
virtual double | getIntensityLevel () const =0 throw (NullPointerException) |
double | getMinPixelValue () const |
double | getMaxPixelValue () const |
void | setTransformationMatrix (matrix_type const &matrix) |
matrix_type const & | getTransformationMatrix () const |
void | setOffsetVector (offset_vector_type const &offset) |
offset_vector_type const & | getOffsetVector () const |
Protected Member Functions | |
PixelDataset (PixelDataset const &) | |
Protected Attributes | |
unsigned char | num_dimensions_ |
unsigned char | num_bytes_per_pixel_ |
dataset_position_type | dataset_size_ |
dataset_position_type | current_focus_point_ |
std::vector< double > | spacings_ |
double | min_pixel_value_ |
double | max_pixel_value_ |
matrix_type | transformation_matrix_ |
offset_vector_type | offset_vector_ |
The interface for datasets of arbitrary dimension.
Christian Koerner (christian.koerner@imedgine.org)
Alexander Lex (alexander.lex@imedgine.org)
Marc Streit (marc.streit@imedgine.org)
Martin Reininger (martin.reininger@imedgine.org)
Definition at line 48 of file pixel_dataset.h.
|
Constructor
Definition at line 53 of file pixel_dataset.cpp. |
|
Destructor Definition at line 79 of file pixel_dataset.cpp. |
|
Copy constructor Definition at line 72 of file pixel_dataset.cpp. |
|
Returns a pointer to the raw data held by the dataset.
Implemented in FourByteImagePixelDataset, FourByteVolumePixelDataset, OneByteImagePixelDataset, OneByteVolumePixelDataset, TwoByteImagePixelDataset, and TwoByteVolumePixelDataset. |
|
Return the current n dimensional focus point within the dataset.
Definition at line 152 of file pixel_dataset.cpp. References PixelDataset::current_focus_point_. |
|
Return the intensity level of the dataset.
Implemented in FourByteImagePixelDataset, FourByteVolumePixelDataset, OneByteImagePixelDataset, OneByteVolumePixelDataset, TwoByteImagePixelDataset, and TwoByteVolumePixelDataset. |
|
Return the intensity window of the dataset.
Implemented in FourByteImagePixelDataset, FourByteVolumePixelDataset, OneByteImagePixelDataset, OneByteVolumePixelDataset, TwoByteImagePixelDataset, and TwoByteVolumePixelDataset. |
|
Return the maximum pixel value of the dataset.
Definition at line 181 of file pixel_dataset.cpp. References PixelDataset::max_pixel_value_. |
|
Returns the metadata for this dataset
Implements Dataset. Definition at line 85 of file pixel_dataset.cpp. References PixelDataset::dataset_size_, PixelDataset::num_bytes_per_pixel_, PixelDataset::num_dimensions_, and PixelDataset::spacings_. |
|
Return the mimimum pixel value of the dataset.
Definition at line 174 of file pixel_dataset.cpp. References PixelDataset::min_pixel_value_. |
|
Get the number of bytes used to store one pixel of the datasets Definition at line 113 of file pixel_dataset.cpp. References PixelDataset::num_bytes_per_pixel_. |
|
Return the number of dimensions of the dataset.
Definition at line 106 of file pixel_dataset.cpp. References PixelDataset::num_dimensions_. |
|
Returns the number of elements within the PixelDataset.
Definition at line 93 of file pixel_dataset.cpp. References PixelDataset::dataset_size_, and PixelDataset::num_dimensions_. |
|
Returns the 3 dimensional offset vector of the affine transform slices are subjected to (Without an prior call to setOffsetVector a null vector will be used)
Definition at line 209 of file pixel_dataset.cpp. References PixelDataset::offset_vector_. |
|
Returns a vector storing the number of pixels in each dimension of the dataset
Definition at line 120 of file pixel_dataset.cpp. References PixelDataset::dataset_size_. |
|
Returns the 3x3 transformation matrix of the affine transform slices are subjected to (Without an prior call to setTransformationMatrix this will always be the identity matrix).
Definition at line 195 of file pixel_dataset.cpp. References PixelDataset::transformation_matrix_. |
|
Set the current n dimensional focus point within the dataset.
Definition at line 127 of file pixel_dataset.cpp. References PixelDataset::current_focus_point_. |
|
Set one dimension of the current n dimensional focus point within the dataset.
Definition at line 135 of file pixel_dataset.cpp. |
|
Set the intensity window and level for the dataset.
Implemented in FourByteImagePixelDataset, FourByteVolumePixelDataset, OneByteImagePixelDataset, OneByteVolumePixelDataset, TwoByteImagePixelDataset, and TwoByteVolumePixelDataset. |
|
Sets the 3 dimensional offset vector of the affine transform slices are subjected to (If not explicitly specified there is no offset)
Reimplemented in VolumePixelDataset. Definition at line 202 of file pixel_dataset.cpp. References PixelDataset::offset_vector_. Referenced by VolumePixelDataset::setOffsetVector(). |
|
Set the pixel spacings
Definition at line 159 of file pixel_dataset.cpp. References PixelDataset::num_dimensions_, and PixelDataset::spacings_. |
|
Sets the 3x3 transformation matrix of the affine transform slices are subjected to (If not explicitly specified the identity matrix is used)
Reimplemented in VolumePixelDataset. Definition at line 188 of file pixel_dataset.cpp. References PixelDataset::transformation_matrix_. Referenced by VolumePixelDataset::setTransformationMatrix(). |
|
The current n-dimensional focus position within the dataset Definition at line 243 of file pixel_dataset.h. Referenced by PixelDataset::getFocusPoint(), and PixelDataset::setFocusPoint(). |
|
A vector storing the number of pixels in each dimension Definition at line 237 of file pixel_dataset.h. Referenced by PixelDataset::getMetadata(), PixelDataset::getNumElements(), and PixelDataset::getSize(). |
|
The maximum pixel value within the volume Definition at line 262 of file pixel_dataset.h. Referenced by PixelDataset::getMaxPixelValue(), TwoByteVolumePixelDataset::setDatasetInternal(), TwoByteImagePixelDataset::setDatasetInternal(), OneByteVolumePixelDataset::setDatasetInternal(), OneByteImagePixelDataset::setDatasetInternal(), FourByteVolumePixelDataset::setDatasetInternal(), and FourByteImagePixelDataset::setDatasetInternal(). |
|
The minimum pixel value within the volume Definition at line 255 of file pixel_dataset.h. Referenced by PixelDataset::getMinPixelValue(), TwoByteVolumePixelDataset::setDatasetInternal(), OneByteVolumePixelDataset::setDatasetInternal(), and FourByteVolumePixelDataset::setDatasetInternal(). |
|
The number of bytes used to store one pixel (voxel) of the dataset Definition at line 231 of file pixel_dataset.h. Referenced by PixelDataset::getMetadata(), and PixelDataset::getNumBytesPerPixel(). |
|
The number of dimensions of the dataset Definition at line 225 of file pixel_dataset.h. Referenced by PixelDataset::getMetadata(), PixelDataset::getNumDimensions(), PixelDataset::getNumElements(), and PixelDataset::setSpacings(). |
|
The 3 dimensional offset vector of the affine transform Definition at line 274 of file pixel_dataset.h. Referenced by PixelDataset::getOffsetVector(), and PixelDataset::setOffsetVector(). |
|
The pixel spacings Definition at line 249 of file pixel_dataset.h. Referenced by PixelDataset::getMetadata(), and PixelDataset::setSpacings(). |
|
The 3x3 transformation matrix of the affine transform Definition at line 268 of file pixel_dataset.h. Referenced by PixelDataset::getTransformationMatrix(), and PixelDataset::setTransformationMatrix(). |