MeVisLab Toolbox Reference
mlDICOMTagSpectTools.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
5
10//----------------------------------------------------------------------------------
11#pragma once
12
13#include "MLDICOMTagsSystem.h"
14
15#include <mlUtilsSystem.h>
16
17// DICOM Tree prototypes.
18#include <DCMTree_Lib.h>
19
20#include <FMEThirdPartyWarningsDisable.h>
21#include <complex>
22#include <FMEThirdPartyWarningsRestore.h>
23
24ML_START_NAMESPACE
25
26//----------------------------------------------------------------------------------
28//----------------------------------------------------------------------------------
29namespace DICOMTagTools {
30
32typedef std::complex<float> SpectComplex;
33
34
38
47 size_t *valSizeInBytes=nullptr);
48
56 size_t &chunkSize,
57 SpectComplex *&cplxChunk);
58};
59
60ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTags_EXPORT
If included by external modules, exported symbols are declared as import symbols.
boost::shared_ptr< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:67
MLDICOMTags_EXPORT void getComplexSpectDataCopy(DCMTree::Const_TreePtr treePtr, size_t &chunkSize, SpectComplex *&cplxChunk)
Tries to get a copy of the complex spectroscopy data chunk form the DCMree.
MLDICOMTags_EXPORT bool hasMrsASCIITag(DCMTree::Const_TreePtr treePtr)
Returns true if the spectroscopy ASCII tags (0x0029, 0x1120) or (0x0029, 0x1220) are available in tre...
MLDICOMTags_EXPORT const SpectComplex * getSpectDataPtrFromTree(DCMTree::Const_TreePtr treePtr, size_t *valSizeInBytes=nullptr)
Returns the pointer to the data value in the tag (0x7fe1, 0x1010) or - if that one does not exist - f...
std::complex< float > SpectComplex
Define a complex data type to be used for spectroscopy data.