Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::DICOMIOHelper Namespace Reference

Helper namespace for DICOM I/O operations. More...

Typedefs

using FindingsListVectorType = std::vector< DICOMDatasetAccess::FindingsListType >
 Vector of findings lists, one per tag path of interest. More...
 

Functions

MITKDICOM_EXPORT IDICOMTagsOfInterest * GetTagsOfInterestService ()
 Retrieve the IDICOMTagsOfInterest service from the module registry. More...
 
MITKDICOM_EXPORT FindingsListVectorType ExtractPathsOfInterest (const DICOMTagPathList &pathsOfInterest, const DICOMDatasetAccessingImageFrameList &frames)
 Extract tag values for paths of interest from DICOM frame information. More...
 
MITKDICOM_EXPORT void SetProperties (BaseData *image, const FindingsListVectorType &findings)
 Set DICOM tag values as properties on a BaseData instance. More...
 

Detailed Description

Helper namespace for DICOM I/O operations.

Provides utility functions for retrieving DICOM tags of interest services, extracting tag values from frame information, and setting properties on BaseData instances.

See also
IDICOMTagsOfInterest, DICOMDatasetAccess

Typedef Documentation

◆ FindingsListVectorType

Vector of findings lists, one per tag path of interest.

Definition at line 37 of file mitkDICOMIOHelper.h.

Function Documentation

◆ ExtractPathsOfInterest()

MITKDICOM_EXPORT FindingsListVectorType mitk::DICOMIOHelper::ExtractPathsOfInterest ( const DICOMTagPathList &  pathsOfInterest,
const DICOMDatasetAccessingImageFrameList &  frames 
)

Extract tag values for paths of interest from DICOM frame information.

For each tag path in pathsOfInterest, queries the first frame in frames for its value and collects the results.

Parameters
[in]pathsOfInterestList of DICOMTagPath instances to query.
[in]framesList of dataset-accessing frame info objects to query from.
Returns
A vector of findings lists, one per path of interest.
See also
SetProperties

◆ GetTagsOfInterestService()

MITKDICOM_EXPORT IDICOMTagsOfInterest* mitk::DICOMIOHelper::GetTagsOfInterestService ( )

Retrieve the IDICOMTagsOfInterest service from the module registry.

Queries the CppMicroServices module context for a registered IDICOMTagsOfInterest service. If multiple services are registered, the first one found is returned.

Returns
Pointer to the service instance, or nullptr if no service is available.
See also
IDICOMTagsOfInterest

◆ SetProperties()

MITKDICOM_EXPORT void mitk::DICOMIOHelper::SetProperties ( BaseData *  image,
const FindingsListVectorType &  findings 
)

Set DICOM tag values as properties on a BaseData instance.

Iterates over all findings and sets each tag value as a TemporoSpatialStringProperty on the given image, using the tag path converted to a property name as the key.

Parameters
[in,out]imageThe BaseData instance on which to set the properties.
[in]findingsThe extracted tag findings to set as properties.
See also
ExtractPathsOfInterest, DICOMTagPathToPropertyName