CustusX  2020.11.07-dev+develop.4ce4a
An IGT application
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

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

Definition at line 30 of file cxImageParameters.h.

Constructor & Destructor Documentation

cx::ImageParameters::ImageParameters ( )

Definition at line 17 of file cxImageParameters.cpp.

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

Definition at line 25 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 155 of file cxImageParameters.cpp.

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

Definition at line 43 of file cxImageParameters.cpp.

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

Definition at line 33 of file cxImageParameters.cpp.

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

Definition at line 40 of file cxImageParameters.h.

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

Definition at line 38 of file cxImageParameters.cpp.

double cx::ImageParameters::getVolume ( )

Definition at line 48 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 87 of file cxImageParameters.cpp.

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

Definition at line 170 of file cxImageParameters.cpp.

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

Definition at line 53 of file cxImageParameters.cpp.

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

Definition at line 73 of file cxImageParameters.cpp.

Member Data Documentation

Transform3D cx::ImageParameters::m_rMd

Definition at line 36 of file cxImageParameters.h.

QString cx::ImageParameters::mParentVolume

Definition at line 37 of file cxImageParameters.h.

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