![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/RealWorldMappingDataComponent.h>
The RealWorldMappingDataComponent stores information about an image's real world values. More...
The RealWorldMappingDataComponent stores information about an image's real world values.
The data component can provide multiple mappings that are usually derived from DICOM.
Classes | |
struct | Mapping |
Public Types | |
enum class | MappingType { RealWorldValues = 0 , StandardizedUptakeValues = 1 } |
Public Member Functions | |
RealWorldMappingDataComponent (const RealWorldMappingDataComponent &other)=default | |
RealWorldMappingDataComponent & | operator= (const RealWorldMappingDataComponent &other)=default |
bool | operator== (const RealWorldMappingDataComponent &other) const |
std::string | id () const override |
Returns a unique string identifier for this type of data component. | |
std::string | rescaleUnit () const |
Returns the real world unit of the intensities. | |
void | setRescaleType (const std::string &rescaleType) |
Sets the DICOM RescaleType of the image. | |
bool | addRealWorldValueMapping (const SharedImageSet &parent, const std::string &unit, double intercept, double slope) |
Add a Real-World-Value-Mapping for the given unit. | |
bool | addStandardizedUptakeValueMapping (const SharedImageSet &parent, double patientWeightKg, double radionuclideHalfLife, double radionuclideTotalDose, std::chrono::seconds timeDifference) |
Add a Standardized Uptake Value based on body weight mapping. | |
const std::vector< Mapping > & | getMappings () const |
void | configure (const Properties *p) override |
Configure this object instance by de-serializing the given Properties. | |
void | configuration (Properties *p) const override |
Serialize the current object configuration into the given Properties object. | |
![]() | |
std::unique_ptr< DataComponentBase > | clone () const override |
Creates a clone of this data component. | |
std::unique_ptr< Subclass > | cloneDerived () const |
bool | assign (const DataComponentBase &other) override |
Assigns the content of other to this data component. | |
bool | equals (const DataComponentBase &other) const override |
Compares this data component to other for equality. | |
![]() | |
virtual void | configureDefaults () |
Retrieve the properties of this object, replaces values with their defaults and sets it again. | |
void | registerParameter (ParameterBase *param) |
Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration(). | |
void | unregisterParameter (const ParameterBase *param) |
Remove the given Parameter or SubProperty from the list of registered parameters. | |
Configurable (const Configurable &rhs) | |
Configurable (Configurable &&rhs) noexcept | |
Configurable & | operator= (const Configurable &) |
Configurable & | operator= (Configurable &&) noexcept |
Additional Inherited Members | |
![]() | |
Signal | signalParametersChanged |
Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
![]() | |
DataComponentBase (const DataComponentBase &)=default | |
DataComponentBase & | operator= (const DataComponentBase &other)=default |
![]() | |
std::vector< Param > | m_params |
List of all registered Parameter and SubProperty instances. | |
|
overridevirtual |
Returns a unique string identifier for this type of data component.
Implements DataComponentBase.
std::string rescaleUnit | ( | ) | const |
Returns the real world unit of the intensities.
An example would be 'HU' for Hounsfield units in CT images or 'Bq/ml' in PET images. The returned value does not garantuee a specific formatting or scheme and should only be used for display purposes. Returns an empty string if no unit is available.
bool addRealWorldValueMapping | ( | const SharedImageSet & | parent, |
const std::string & | unit, | ||
double | intercept, | ||
double | slope ) |
Add a Real-World-Value-Mapping for the given unit.
The intercept and slope values map from Storage Values (SV) to Real-World Values (RWV): Internally the mapping will be transformed to apply from Original Values (OV) to RWV. Like this, the mapping remains valid even when the storage values change. Mappings can only be added if the parent image has the same shift and scale for each image. If this is not the case, no mapping is added.
bool addStandardizedUptakeValueMapping | ( | const SharedImageSet & | parent, |
double | patientWeightKg, | ||
double | radionuclideHalfLife, | ||
double | radionuclideTotalDose, | ||
std::chrono::seconds | timeDifference ) |
Add a Standardized Uptake Value based on body weight mapping.
This mapping is usually only used for PET data.
|
overridevirtual |
Configure this object instance by de-serializing the given Properties.
The default implementation will do so automatically for all registered Parameter and SubProperty instances.
Reimplemented from Configurable.
|
overridevirtual |
Serialize the current object configuration into the given Properties object.
The default implementation will do so automatically for all registered Parameter and SubProperty instances.
Reimplemented from Configurable.