NorMIT-nav  22.09
An IGT application
cxImageAlgorithms.cpp File Reference
#include "cxImageAlgorithms.h"
#include <vtkImageData.h>
#include <vtkImageReslice.h>
#include <vtkMatrix4x4.h>
#include <vtkImageResample.h>
#include <vtkImageClip.h>
#include <vtkImageChangeInformation.h>
#include "cxImage.h"
#include "cxPatientModelService.h"
#include "cxUtilHelpers.h"
#include "cxImageTF3D.h"
#include "cxImageLUT2D.h"
#include "cxRegistrationTransform.h"
#include "cxTime.h"
#include "cxVolumeHelpers.h"
#include "cxSlicedImageProxy.h"
#include "cxSliceProxy.h"
#include "cxLogger.h"
#include "cxEnumConversion.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, Transform3D qMd)
 
ImagePtr cx::resampleImage (PatientModelServicePtr dataManager, ImagePtr image, const Vector3D spacing, QString uid, QString name)
 
ImagePtr cx::duplicateImage (PatientModelServicePtr dataManager, ImagePtr image)
 
vtkImageDataPtr cx::cropImage (vtkImageDataPtr input, IntBoundingBox3D cropbox)
 
ImagePtr cx::cropImage (PatientModelServicePtr dataManager, ImagePtr image)
 
QDateTime cx::extractTimestamp (QString text)
 
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)