MeVisLab Toolbox Reference
ml::DcmtkMLConvertersTools Namespace Reference

Functions

MLDCMTKMLCONVERTERS_EXPORT std::string getTagValueFromImage (DCMTree::RawTagId tagId, PagedImage *image)
 Returns tag value of first tag with given ID found in the DICOM tree associated with given image. More...
 
MLDCMTKMLCONVERTERS_EXPORT std::string getFrameSpecificTagValueFromImage (DCMTree::RawTagId tagId, int frameIndex, PagedImage *image)
 Returns tag value of a tag with given ID associated with given frame of input image. More...
 
MLDCMTKMLCONVERTERS_EXPORT bool getSliceRangeOfCSO (const CSO &cso, const PagedImage &image, int &minSlice, int &maxSlice)
 Returns range of slices on which CSO lays. More...
 
MLDCMTKMLCONVERTERS_EXPORT void throwIfShouldAbort ()
 Function throwing std::runtime_error if a global abort was requested. More...
 

Function Documentation

◆ getFrameSpecificTagValueFromImage()

MLDCMTKMLCONVERTERS_EXPORT std::string ml::DcmtkMLConvertersTools::getFrameSpecificTagValueFromImage ( DCMTree::RawTagId  tagId,
int  frameIndex,
PagedImage image 
)

Returns tag value of a tag with given ID associated with given frame of input image.

Returns
Tag value as a string if a valid image was passed, image contains frame with given index and given tag exists, empty string otherwise.

◆ getSliceRangeOfCSO()

MLDCMTKMLCONVERTERS_EXPORT bool ml::DcmtkMLConvertersTools::getSliceRangeOfCSO ( const CSO cso,
const PagedImage image,
int &  minSlice,
int &  maxSlice 
)

Returns range of slices on which CSO lays.

This is simply the minimum and maximum of all CSO points mapped to the voxel space, without regard for the actual image extent.

Returns
false if the CSO has no points

◆ getTagValueFromImage()

MLDCMTKMLCONVERTERS_EXPORT std::string ml::DcmtkMLConvertersTools::getTagValueFromImage ( DCMTree::RawTagId  tagId,
PagedImage image 
)

Returns tag value of first tag with given ID found in the DICOM tree associated with given image.

Returns
Tag value as string if a valid image was passed and the tag exists, empty string otherwise.

◆ throwIfShouldAbort()

MLDCMTKMLCONVERTERS_EXPORT void ml::DcmtkMLConvertersTools::throwIfShouldAbort ( )

Function throwing std::runtime_error if a global abort was requested.