MeVisLab Toolbox Reference
ml::DicomToMLTools::DicomFrameSetMinMaxCalculation Class Reference

Class to collect incrementally per frame all min/max related parameters of a DICOM frame set. More...

#include <mlDicomFrameSetMinMaxCalculation.h>

Public Member Functions

 DicomFrameSetMinMaxCalculation (CalculateMinMaxFromDicomModes calcMinMaxModeArg, double defaultFillValueArg, DicomMessageCollector &dcmMsgCollectorArg)
 
void updateMinMaxParamsForFrame (DCMTree::Const_TreePtr frameTree, const DICOMCachedIOFileHandle &frameHandle)
 Updates minMaxParams for a frameTree; once for each frame of a frame set.
 
void logMinMaxFailures (const DICOMCachedIOFileHandle &firstFileName)
 Check minMaxParams container for final min/max validity and log errors if necessary.
 
void updateMinMaxInImageProperties (MedicalImageProperties &imgProps) const
 Updates min/max values in resultImgProps if we could determine min/max values.
 

Detailed Description

Class to collect incrementally per frame all min/max related parameters of a DICOM frame set.

Definition at line 39 of file mlDicomFrameSetMinMaxCalculation.h.

Constructor & Destructor Documentation

◆ DicomFrameSetMinMaxCalculation()

ml::DicomToMLTools::DicomFrameSetMinMaxCalculation::DicomFrameSetMinMaxCalculation ( CalculateMinMaxFromDicomModes calcMinMaxModeArg,
double defaultFillValueArg,
DicomMessageCollector & dcmMsgCollectorArg )
Parameters
calcMinMaxModeArgSelects the mode how the min/max values are extracted/calculated from the DICOM trees. See CalculateMinMaxFromDicomModes for details.
defaultFillValueArgEmpty frames in srcFrameTrees will be handled as if they are filled with voxels of value defaultFillValue.
dcmMsgCollectorArgCollects error, info and issue messages (typically related to a handle).

Member Function Documentation

◆ logMinMaxFailures()

void ml::DicomToMLTools::DicomFrameSetMinMaxCalculation::logMinMaxFailures ( const DICOMCachedIOFileHandle & firstFileName)

Check minMaxParams container for final min/max validity and log errors if necessary.

◆ updateMinMaxInImageProperties()

void ml::DicomToMLTools::DicomFrameSetMinMaxCalculation::updateMinMaxInImageProperties ( MedicalImageProperties & imgProps) const

Updates min/max values in resultImgProps if we could determine min/max values.

◆ updateMinMaxParamsForFrame()

void ml::DicomToMLTools::DicomFrameSetMinMaxCalculation::updateMinMaxParamsForFrame ( DCMTree::Const_TreePtr frameTree,
const DICOMCachedIOFileHandle & frameHandle )

Updates minMaxParams for a frameTree; once for each frame of a frame set.

Parameters
frameTreeThe DCMTree for which min/max parameters shall be updated, nullptr is explicitly allowed to handle empty frames and their corresponding default fill values.
frameHandleThe frame handle corresponding to frameTree.

The documentation for this class was generated from the following file: