Fraxinus  16.5.0-fx-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ImageParameters Class Reference

#include <cxImageParameters.h>

Public Member Functions

 ImageParameters ()
 
 ImageParameters (Eigen::Array3i dim, cx::Vector3D spacing, QString parent, cx::Transform3D rMd)
 
double getVolume ()
 
unsigned long getNumVoxels () const
 
void setDimKeepBoundsAlignSpacing (Eigen::Array3d bounds)
 
void limitVoxelsKeepBounds (unsigned long maxVolumeSize)
 
void setSpacingKeepDim (Eigen::Array3d spacing)
 
void changeToUniformSpacing ()
 
Eigen::Array3i getDim () const
 
Eigen::Array3d getSpacing () const
 
Eigen::Array3d getBounds ()
 
void print (std::ostream &s, vtkIndent indent)
 

Public Attributes

Transform3D m_rMd
 
QString mParentVolume
 

Detailed Description

Information needed to create a cx::Image

Date
8 Oct 2013
Author
Christian Askeland, SINTEF
Ole Vegard Solberg, SINTEF

Definition at line 51 of file cxImageParameters.h.

Constructor & Destructor Documentation

cx::ImageParameters::ImageParameters ( )

Definition at line 38 of file cxImageParameters.cpp.

cx::ImageParameters::ImageParameters ( Eigen::Array3i  dim,
cx::Vector3D  spacing,
QString  parent,
cx::Transform3D  rMd 
)

Definition at line 46 of file cxImageParameters.cpp.

Member Function Documentation

void cx::ImageParameters::changeToUniformSpacing ( )

Change spacing to uniform

  • keep bounds constant
  • keep total voxel count constant

Definition at line 176 of file cxImageParameters.cpp.

Eigen::Array3d cx::ImageParameters::getBounds ( )

Definition at line 64 of file cxImageParameters.cpp.

Eigen::Array3i cx::ImageParameters::getDim ( ) const

Definition at line 54 of file cxImageParameters.cpp.

unsigned long cx::ImageParameters::getNumVoxels ( ) const
inline

Definition at line 61 of file cxImageParameters.h.

Eigen::Array3d cx::ImageParameters::getSpacing ( ) const

Definition at line 59 of file cxImageParameters.cpp.

double cx::ImageParameters::getVolume ( )

Definition at line 69 of file cxImageParameters.cpp.

void cx::ImageParameters::limitVoxelsKeepBounds ( unsigned long  maxVoxels)

Reduce the voxel size of the volume below maxVoxels.

  • keep bounds constant
  • keep ratio between spacing components

Definition at line 108 of file cxImageParameters.cpp.

void cx::ImageParameters::print ( std::ostream &  s,
vtkIndent  indent 
)

Definition at line 191 of file cxImageParameters.cpp.

void cx::ImageParameters::setDimKeepBoundsAlignSpacing ( Eigen::Array3d  bounds)

Definition at line 74 of file cxImageParameters.cpp.

void cx::ImageParameters::setSpacingKeepDim ( Eigen::Array3d  spacing)

Definition at line 94 of file cxImageParameters.cpp.

Member Data Documentation

Transform3D cx::ImageParameters::m_rMd

Definition at line 57 of file cxImageParameters.h.

QString cx::ImageParameters::mParentVolume

Definition at line 58 of file cxImageParameters.h.


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