MeVisLab Toolbox Reference
mlDICOMTreeModificationTools.h File Reference

A collection of tools related to DICOM tags and tree removal and modifications. More...

#include "MLDICOMTagsSystem.h"
#include <FMEThirdPartyWarningsDisable.h>
#include <string>
#include <vector>
#include <FMEThirdPartyWarningsRestore.h>
#include <mlUtilsSystem.h>
#include <DCMTree_Lib.h>

Go to the source code of this file.

Classes

struct  ml::DICOMTagTools::DcmTagIdToRemove
 Small helper class describing the raw-id of the DICOM tag as well as its human readable name. More...

Namespaces

namespace  ml
 Defines the class GetTileJob.
namespace  ml::DICOMTagTools
 A namespace collecting tools related to DICOM tags and tree tools.

Typedefs

typedef struct ml::DICOMTagTools::DcmTagIdToRemove ml::DICOMTagTools::TagIdDesc
 < Small structure describing a tag to be removed from a DCMTree tree with the helper function - see removeTags.

Enumerations

enum  ml::DICOMTagTools::OtherTagModificationModes {
  ml::DICOMTagTools::OtherTagDoNotModify = 0 , ml::DICOMTagTools::DropType2SQTagValues , ml::DICOMTagTools::DropType3SQTagValues , ml::DICOMTagTools::ReplaceType2Tags ,
  ml::DICOMTagTools::ReplaceType3Tags , ml::DICOMTagTools::RemoveType3Tags
}
 Available modes for tag modifications. More...
enum  { ml::DICOMTagTools::NumOtherTagModificationModes = RemoveType3Tags+1 }
 Defines the number of available modification modes. More...

Functions

MLDICOMTags_EXPORT void ml::DICOMTagTools::removeTag (DCMTree::TreePtr dcmTree, DCMTree::TagId tagId)
MLDICOMTags_EXPORT void ml::DICOMTagTools::removePrivateTag (DCMTree::TreePtr dcmTree, unsigned char tagIdLowerEightBits, const std::string &privateCreatorString)
MLDICOMTags_EXPORT void ml::DICOMTagTools::removePrivateCreatorTag (DCMTree::TreePtr dcmTree, const std::string &privateCreatorString)
MLDICOMTags_EXPORT void ml::DICOMTagTools::removePrivateSMFTreeTags (DCMTree::TreePtr dcmTree, bool alsoRemovePrivateCreator)
MLDICOMTags_EXPORT void ml::DICOMTagTools::removePrivateTagGroup (DCMTree::TreePtr dcmTree, bool removeAllPrivateTags=false, const std::string &privateCreatorString="")
MLDICOMTags_EXPORT void ml::DICOMTagTools::removeType3Tags (DCMTree::TreePtr dcmTree)
MLDICOMTags_EXPORT void ml::DICOMTagTools::removeTags (DCMTree::TreePtr resultTree, const DcmTagIdToRemove srcTagsToRemove[])
MLDICOMTags_EXPORT void ml::DICOMTagTools::removeMaskedTags (DCMTree::TreePtr dcmTree, MLuint32 idVal, MLuint32 idMask)
MLDICOMTags_EXPORT void ml::DICOMTagTools::recursiveRemoveTags (DCMTree::TreePtr &dcmTree, const std::vector< DCMTree::TagId > &listOfIdsToRemove)
 Remove recursively all appearances of any tags with ids in listOfIdsToRemove from dcmTree.
MLDICOMTags_EXPORT void ml::DICOMTagTools::removeEmptyItemsAtEnd (DCMTree::TagPtr seqTagPtr)
MLDICOMTags_EXPORT void ml::DICOMTagTools::recursiveSequenceTagCleanUp (DCMTree::TagPtr seqTagPtr)
MLDICOMTags_EXPORT void ml::DICOMTagTools::recursiveSequenceTagCleanUp (DCMTree::TreePtr treePtr)
MLDICOMTags_EXPORT void ml::DICOMTagTools::recursiveTagManipulate (DCMTree::TreePtr treePtr, const DCMTree::TagId &tagId, bool remove=true, const std::string &newVal="", size_t *numGoodManips=nullptr, size_t *numBadManips=nullptr, size_t recursionLevel=0)
MLDICOMTags_EXPORT void ml::DICOMTagTools::removePrivateMultiFrameTag (DCMTree::TreePtr &treePtr)
MLDICOMTags_EXPORT bool ml::DICOMTagTools::removePixelDataTag (DCMTree::TreePtr treePtr)
MLDICOMTags_EXPORT bool ml::DICOMTagTools::removeAllTypesPixelDataTags (DCMTree::TreePtr treePtr)
MLDICOMTags_EXPORT bool ml::DICOMTagTools::removeSpectDataTag (DCMTree::TreePtr treePtr)
MLDICOMTags_EXPORT bool ml::DICOMTagTools::removeREGDataTag (DCMTree::TreePtr treePtr)
MLDICOMTags_EXPORT std::vector< DCMTree::RawTagIdml::DICOMTagTools::removeLargeTags (DCMTree::TreePtr treePtr, size_t tagSizeToRemove=0x00040000)
MLDICOMTags_EXPORT DCMTree::TreePtr ml::DICOMTagTools::getSequenceItemTree (DCMTree::TagPtr tagPtr, size_t itemIdx)
MLDICOMTags_EXPORT void ml::DICOMTagTools::manipulateType2Or3Tags (DCMTree::TreePtr dcmTree, OtherTagModificationModes modificationMode, const std::string &modStrVal)
MLDICOMTags_EXPORT void ml::DICOMTagTools::initNULLSequenceItemsToEmptyTrees (DCMTree::TagPtr tag, size_t from, size_t to, std::string &errStr)
MLDICOMTags_EXPORT void ml::DICOMTagTools::resizeToNumberOfSequenceEntries (DCMTree::TagPtr tag, MLint numEntries, std::string &errStr)

Variables

MLDICOMTags_EXPORT const char *const ml::DICOMTagTools::OtherTagModificationModesStrings [NumOtherTagModificationModes]
 String versions for OtherTagModificationModes.

Detailed Description

A collection of tools related to DICOM tags and tree removal and modifications.

Author
Wolf Spindler.
Date
07/2013

Definition in file mlDICOMTreeModificationTools.h.