ImFusion SDK 4.3
RegistrationResults::DataResult Struct Reference

#include <ImFusion/Reg/RegistrationResults.h>

Represents the registration result for a single data object. More...

Detailed Description

Represents the registration result for a single data object.

Public Member Functions

bool apply () const
 Applies the registration result to its associated data.
 
void applyOnData (Data &pDdata) const
 Applies the registration result to another data object.
 
bool operator== (const DataResult &other) const
 Compares two DataResult objects for equality.
 
bool operator!= (const DataResult &other) const
 Compares two DataResult objects for inequality.
 
std::shared_ptr< PointsOnImagepoints (std::string name="") const
 Retrieves a point set associated with the data.
 

Public Attributes

Datadata = nullptr
 Pointer to the data. Set to nullptr if the data is not available or gets deleted.
 
uint64_t hash = 0
 Hash value of data. Used to identify data.
 
mat4 matrix = mat4::Identity()
 Registration matrix.
 
std::string name
 Name of data. Used to identify data, when hash is not there.
 
Data::Modality modality = Data::Modality::NA
 Modality of the data.
 
std::string defID
 Deformation ID, used to restore the deformation from DeformationFactory
 
Properties defProps
 Deformation properties.
 
std::shared_ptr< SharedImageSetdefSuppImgs
 Supporting images for the deformation.
 
Properties pointProps
 Configuration of PointsStorageComponent. Used to persist point annotations.
 

Member Function Documentation

◆ apply()

bool apply ( ) const

Applies the registration result to its associated data.

Returns
False if the data is unavailable or the application fails.

◆ applyOnData()

void applyOnData ( Data & pDdata) const

Applies the registration result to another data object.

Parameters
pDataReference to the target data.

◆ operator==()

bool operator== ( const DataResult & other) const

Compares two DataResult objects for equality.

Data is compared by hash. Meaning that {hash=42, data=0x1234} is equal to {hash=42, data=nullptr}.

◆ points()

std::shared_ptr< PointsOnImage > points ( std::string name = "") const

Retrieves a point set associated with the data.

Parameters
pointsNameName of the points to be restored. If empty, the first available will be used

The documentation for this struct was generated from the following file:
Search Tab / S to search, Esc to close