![]() |
ImFusion SDK 4.3
|
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::LineSegment > | backproject (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< SharedImageSet > | makeConeBeamData () |
| 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 ConeBeamMetadata & | getConeBeamMetadata (const SharedImageSet &sis) |
| Shortcut to get ConeBeamMetadata from a SharedImageSet. | |
| ConeBeamMetadata & | getConeBeamMetadata (SharedImageSet &sis) |
| Shortcut to get ConeBeamMetadata from a SharedImageSet. | |
| const DetectorPropertiesDataComponent & | createCurvedDetectorDataComponent (const SharedImageSet &sis) |
| Shortcut to get or create DetectorPropertiesDataComponent from a SharedImageSet. | |
| DetectorPropertiesDataComponent & | createCurvedDetectorDataComponent (SharedImageSet &sis) |
| Shortcut to get DetectorPropertiesDataComponent from a SharedImageSet. | |
| const DetectorPropertiesDataComponent * | getCurvedDetectorDataComponent (const SharedImageSet &sis) |
| Shortcut to get DetectorPropertiesDataComponent from a SharedImageSet. | |
| DetectorPropertiesDataComponent * | getCurvedDetectorDataComponent (SharedImageSet &sis) |
| Shortcut to get DetectorPropertiesDataComponent from a SharedImageSet. | |
| 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.
| 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
| 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.
| ConeBeamMetadata & getConeBeamMetadata | ( | SharedImageSet & | sis | ) |
Shortcut to get ConeBeamMetadata from a SharedImageSet.
| 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()
| 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.
| 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.
| 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.