14 #ifndef GDCMIMAGEHELPER_H
15 #define GDCMIMAGEHELPER_H
56 static void SetForceRescaleInterceptSlope(
bool);
57 static bool GetForceRescaleInterceptSlope();
65 static void SetForcePixelSpacing(
bool);
66 static bool GetForcePixelSpacing();
71 static std::vector<unsigned int> GetDimensionsValue(
const File& f);
72 static void SetDimensionsValue(
File& f,
const Image & img);
82 static std::vector<double> GetRescaleInterceptSlopeValue(
File const & f);
83 static void SetRescaleInterceptSlopeValue(
File & f,
const Image & img);
86 static std::vector<double> GetOriginValue(
File const & f);
87 static void SetOriginValue(
DataSet & ds,
const Image & img);
91 static std::vector<double> GetDirectionCosinesValue(
File const & f);
98 static void SetDirectionCosinesValue(
DataSet & ds,
const std::vector<double> & dircos);
101 static std::vector<double> GetSpacingValue(
File const & f);
102 static void SetSpacingValue(
DataSet & ds,
const std::vector<double> & spacing);
105 static bool ComputeSpacingFromImagePositionPatient(
const std::vector<double> &imageposition, std::vector<double> & spacing);
107 static bool GetDirectionCosinesFromDataSet(
DataSet const & ds, std::vector<double> & dircos);
114 static unsigned int GetPlanarConfigurationValue(
const File& f);
120 static const ByteValue* GetPointerFromElement(
Tag const &tag,
File const& f);
127 static bool ForceRescaleInterceptSlope;
128 static bool ForcePixelSpacing;
133 #endif // GDCMIMAGEHELPER_H
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
Class to represent binary value (array of bytes)
Definition: gdcmByteValue.h:33
a DICOM File See PS 3.10 File: A File is an ordered string of zero or more bytes, where the first byt...
Definition: gdcmFile.h:33
Class to represent an PhotometricInterpretation.
Definition: gdcmPhotometricInterpretation.h:28
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38
Image This is the container for an Image in the general sense. From this container you should be able...
Definition: gdcmImage.h:46
ImageHelper (internal class, not intended for user level)
Definition: gdcmImageHelper.h:48