ImFusion SDK 4.3
ImFusion::CT::Utils Namespace Reference

Utils. More...

Detailed Description

Functions

std::pair< double, double > getDetectorScaling (mat4 matrix, const ConeBeamGeometry &geom)
 Get the detector width and distance between detector plane and x-ray source for a projection matrix.
 
std::vector< vec2 > project (SharedImageSet &cbData, int frame, std::vector< vec3 > in, ImageMath::CoordinateType coordinateType2d=ImageMath::CoordinateType::Texture)
 project 3D points onto a 2D plane, coordinate type of result is given by the coordinateType2d parameter.
 
std::vector< Geometry::LineSegmentbackproject (const SharedImageSet &cbData, int frame, std::vector< vec2 > in, ImageMath::CoordinateType coordinateType2d=ImageMath::CoordinateType::Texture)
 Computes the ray (world coordinates) from the source to a detector point, given by coordines in the detector plane using the coordinateType2d coordinate system.
 
void makeConeBeamData (SharedImageSet &sis)
 Adjusts sis to fulfil the ConeBeamData concept, i.e. has ConeBeamMetadata, is topDown true, and has modality XRAY.
 
std::unique_ptr< SharedImageSetmakeConeBeamData ()
 Generates a SharedImageSet that fulfils the ConeBeamData concept.
 
bool isConeBeamData (const SharedImageSet &sis)
 returns true is sis is a valid representation of the concept ConeBeamData, i.e.
 
const ConeBeamMetadatagetConeBeamMetadata (const SharedImageSet &sis)
 Shortcut to get ConeBeamMetadata from a SharedImageSet.
 
ConeBeamMetadatagetConeBeamMetadata (SharedImageSet &sis)
 Shortcut to get ConeBeamMetadata from a SharedImageSet.
 
const DetectorPropertiesDataComponentcreateCurvedDetectorDataComponent (const SharedImageSet &sis)
 Shortcut to get or create DetectorPropertiesDataComponent from a SharedImageSet.
 
DetectorPropertiesDataComponentcreateCurvedDetectorDataComponent (SharedImageSet &sis)
 Shortcut to get DetectorPropertiesDataComponent from a SharedImageSet.
 
const DetectorPropertiesDataComponentgetCurvedDetectorDataComponent (const SharedImageSet &sis)
 Shortcut to get DetectorPropertiesDataComponent from a SharedImageSet.
 
DetectorPropertiesDataComponentgetCurvedDetectorDataComponent (SharedImageSet &sis)
 Shortcut to get DetectorPropertiesDataComponent from a SharedImageSet.
 

Function Documentation

◆ getDetectorScaling()

std::pair< double, double > getDetectorScaling ( mat4 matrix,
const ConeBeamGeometry & geom )

Get the detector width and distance between detector plane and x-ray source for a projection matrix.

Depending on which parameters are set in geom, this will use geom.detSizeX (generally) or geom.sourceDetDistance (for fan-beam systems) as the authoritative value.

◆ isConeBeamData()

bool isConeBeamData ( const SharedImageSet & sis)

returns true is sis is a valid representation of the concept ConeBeamData, i.e.

has ConeBeamMetadata, is topDown true, and has modality XRAY

◆ getConeBeamMetadata() [1/2]

const ConeBeamMetadata & getConeBeamMetadata ( const SharedImageSet & sis)

Shortcut to get ConeBeamMetadata from a SharedImageSet.

This method requires that the DataComponent exists in sis.components(). If this is not certain use isConeBeamData() to check first.

Deprecated
"Use ConeBeamMetadata::get(const SharedImageSet&) instead"

◆ getConeBeamMetadata() [2/2]

ConeBeamMetadata & getConeBeamMetadata ( SharedImageSet & sis)

Shortcut to get ConeBeamMetadata from a SharedImageSet.

Deprecated
"Use ConeBeamMetadata::get(SharedImageSet&) instead"

◆ createCurvedDetectorDataComponent() [1/2]

const DetectorPropertiesDataComponent & createCurvedDetectorDataComponent ( const SharedImageSet & sis)

Shortcut to get or create DetectorPropertiesDataComponent from a SharedImageSet.

It will get or create the DetectorPropertiesDataComponent in sis.components()

Deprecated
"Use DetectorPropertiesDataComponent::getOrCreate(const SharedImageSet&) instead"

◆ createCurvedDetectorDataComponent() [2/2]

DetectorPropertiesDataComponent & createCurvedDetectorDataComponent ( SharedImageSet & sis)

Shortcut to get DetectorPropertiesDataComponent from a SharedImageSet.

It will get the DetectorPropertiesDataComponent in sis.components() if exists, otherwise return a nullptr.

Deprecated
"Use DetectorPropertiesDataComponent::get(const SharedImageSet&) instead"
Deprecated
"Use DetectorPropertiesDataComponent::getOrCreate(SharedImageSet&) instead"

◆ getCurvedDetectorDataComponent() [1/2]

const DetectorPropertiesDataComponent * getCurvedDetectorDataComponent ( const SharedImageSet & sis)

Shortcut to get DetectorPropertiesDataComponent from a SharedImageSet.

It will get the DetectorPropertiesDataComponent in sis.components() if exists, otherwise return a nullptr.

Deprecated
"Use DetectorPropertiesDataComponent::get(const SharedImageSet&) instead"

◆ getCurvedDetectorDataComponent() [2/2]

DetectorPropertiesDataComponent * getCurvedDetectorDataComponent ( SharedImageSet & sis)

Shortcut to get DetectorPropertiesDataComponent from a SharedImageSet.

It will get the DetectorPropertiesDataComponent in sis.components() if exists, otherwise return a nullptr.

Deprecated
"Use DetectorPropertiesDataComponent::get(const SharedImageSet&) instead"
Deprecated
"Use DetectorPropertiesDataComponent::get(SharedImageSet&) instead"
Search Tab / S to search, Esc to close