CustusX  22.04
An IGT application
cxImageAlgorithms.h File Reference
#include "cxResourceExport.h"
#include <map>
#include <vector>
#include <QDateTime>
#include <QRegExp>
#include "cxForwardDeclarations.h"
#include "cxTransform3D.h"
#include "cxTypeConversions.h"
#include "vtkForwardDeclarations.h"
#include "cxBoundingBox3D.h"

Go to the source code of this file.

Namespaces

 cx
 Namespace for all CustusX production code.
 

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)
 
QImage cx::vtkImageDataToQImage (vtkImageDataPtr imageData, bool overlay, QColor overlayColor)
 
QRgb cx::convertToQColor (unsigned char *colorsPtr, bool overlay, QColor overlayColor)
 
bool cx::isDark (unsigned char *colorsPtr)
 
QRgb cx::modifyOverlayColor (unsigned char *colorsPtr, QColor overlayColor)
 
vtkImageDataPtr cx::createSlice (ImagePtr image, PLANE_TYPE planeType, Vector3D outputSpacing, Eigen::Array3i outputDimensions, ToolPtr sliceTool, PatientModelServicePtr patientModel, bool applyLUT)
 createSlice Creates a 2D slice through a 3D volume. Result slice will be oriented for radiological view. More...
 
vtkImageDataPtr cx::createSlice (ImagePtr image, PLANE_TYPE planeType, Vector3D position_r, Vector3D target_r, double offset, bool applyLUT)
 
std::vector< int > cx::getSliceVoxelFrom3Dposition (ImagePtr image, PLANE_TYPE planeType, Vector3D position_r)
 
int cx::getSliceNumberFrom3Dposition (ImagePtr image, PLANE_TYPE planeType, Vector3D position_r)
 
Vector3D cx::get3DpositionFromSliceVoxel (ImagePtr image, PLANE_TYPE planeType, std::vector< int > voxel, int sliceNumber)
 
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

Various image algorithms. Mostly wrappers around ITK, and conversion from vtkImageData to QImage.

Definition in file cxImageAlgorithms.h.