Fraxinus  16.5.0-fx-rc4
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Algorithms

In-house algorithms and adapters around external ones. More...

Classes

class  cx::AlgorithmHelper
 Class with helper functions for algorithms. More...
 
class  cx::CompositeTimedAlgorithm
 
class  cx::CompositeSerialTimedAlgorithm
 
class  cx::CompositeParallelTimedAlgorithm
 
class  cx::ThreadedTimedAlgorithm< T >
 Base class for algorithms that wants to thread and time their execution. T is the return type of the calculated data in the thread. More...
 
class  cx::TimedBaseAlgorithm
 Base class for algorithms that wants to time their execution. More...
 

Functions

ImagePtr cx::resampleImage (PatientModelServicePtr dataManager, ImagePtr image, const Vector3D spacing, QString uid, QString name)
 
ImagePtr cx::resampleImage (PatientModelServicePtr dataManager, ImagePtr image, Transform3D qMd)
 
vtkImageDataPtr cx::cropImage (vtkImageDataPtr input, IntBoundingBox3D cropbox)
 
ImagePtr cx::cropImage (PatientModelServicePtr dataManager, ImagePtr image)
 
ImagePtr cx::duplicateImage (PatientModelServicePtr dataManager, ImagePtr image)
 
QDateTime cx::extractTimestamp (QString text)
 
template<class T >
std::vector< T > cx::sortOnAcquisitionTime (std::map< QString, T > input)
 
template<class T >
std::vector< T > cx::sortOnGroupsAndAcquisitionTime (std::map< QString, T > input)
 

Detailed Description

In-house algorithms and adapters around external ones.

Function Documentation

cxResource_EXPORT vtkImageDataPtr cx::cropImage ( vtkImageDataPtr  input,
IntBoundingBox3D  cropbox 
)

Return an image that is cropped using its own croppingBox. The image is not added to the data manager nor saved.

Definition at line 128 of file cxImageAlgorithms.cpp.

cxResource_EXPORT ImagePtr cx::cropImage ( PatientModelServicePtr  dataManager,
ImagePtr  image 
)

Return an image that is cropped using its own croppingBox. The image is not added to the data manager nor saved.

Definition at line 146 of file cxImageAlgorithms.cpp.

cxResource_EXPORT ImagePtr cx::duplicateImage ( PatientModelServicePtr  dataManager,
ImagePtr  image 
)

Return an image that is cropped using its own croppingBox. The image is not added to the data manager nor saved.

Definition at line 119 of file cxImageAlgorithms.cpp.

cxResource_EXPORT QDateTime cx::extractTimestamp ( QString  text)

Definition at line 168 of file cxImageAlgorithms.cpp.

cxResource_EXPORT ImagePtr cx::resampleImage ( PatientModelServicePtr  dataManager,
ImagePtr  image,
Transform3D  qMd 
)

Return an image that is resampled into space q. The image is not added to the data manager nor saved.

Definition at line 59 of file cxImageAlgorithms.cpp.

cxResource_EXPORT ImagePtr cx::resampleImage ( PatientModelServicePtr  dataManager,
ImagePtr  image,
const Vector3D  spacing,
QString  uid,
QString  name 
)

Return an image that is resampled with a new output spacing. The image is not added to the data manager nor saved.

Definition at line 94 of file cxImageAlgorithms.cpp.

template<class T >
std::vector<T> cx::sortOnAcquisitionTime ( std::map< QString, T >  input)

Assume T is DataPtr or a derived class.

Return a vector of data sorted on acquisition time.

Definition at line 77 of file cxImageAlgorithms.h.

template<class T >
std::vector<T> cx::sortOnGroupsAndAcquisitionTime ( std::map< QString, T >  input)

Assume T is DataPtr or a derived class.

Return a vector of data sorted on acquisition time.

Definition at line 98 of file cxImageAlgorithms.h.