12 #ifndef mitkTestDICOMLoading_h
13 #define mitkTestDICOMLoading_h
18 #include <MitkDICOMTestingExports.h>
95 const std::string& test );
99 typedef std::map<std::string,std::string> KeyValueMap;
101 DICOMFileReader::Pointer
104 void SetDefaultLocale();
106 void ResetUserLocale();
108 std::string ComponentTypeToString( itk::IOComponentEnum type );
110 KeyValueMap ParseDump(
const std::string& dump );
112 bool CompareSpacedValueFields(
const std::string& reference,
113 const std::string& test,
116 bool CompareJSON(
const std::string& reference,
117 const std::string& test );
125 std::string reduce(
const std::string& pString,
126 const std::string& pFill =
" ",
127 const std::string& pWhitespace =
" \t");
134 std::string trim(
const std::string& pString,
135 const std::string& pWhitespace =
" \t");
138 bool StringToNumber(
const std::string& s, T& value)
140 std::stringstream stream(s);
142 return (!stream.fail()) && (std::abs(value) <= std::numeric_limits<T>::max());
147 const char* m_PreviousCLocale;
148 std::locale m_PreviousCppLocale;
Abstract base class for caching DICOM tag values scanned from files.
Image class for storing multi-dimensional medical image data.
Class that can be used to specify nested or wild carded property keys. E.g. for the use in context of...
Utility class for testing DICOM file loading and comparing loaded image properties.
std::string DumpImageInformation(const Image *image)
Dump relevant image information to a string for later comparison.
bool CompareImageInformationDumps(const std::string &reference, const std::string &test)
Compare two image information dumps for equality.
Image::Pointer DecorateVerifyCachedImage(const StringList &files, DICOMTagCache *tagCache, mitk::Image::Pointer cachedImage)
Verify a cached image using a specific tag cache.
Image::Pointer DecorateVerifyCachedImage(const StringList &files, mitk::Image::Pointer cachedImage)
Verify a cached image by decorating it with DICOM properties.
ImageList LoadFiles(const StringList &files)
Load DICOM files and return the resulting images.
std::list< Image::Pointer > ImageList
List of loaded image pointers.
Find image slices visible on a given plane.
MITKCORE_EXPORT const ScalarType eps
Epsilon value for floating point comparison (vnl_math::eps * 100).
std::vector< std::string > StringList
A list of strings, used throughout the DICOM module to hold file paths and similar data.