14#ifndef GDCMIMAGEHELPER_H
15#define GDCMIMAGEHELPER_H
157 double rescaleintercept = 0,
double rescaleslope = 1 );
164 static bool ForceRescaleInterceptSlope;
165 static bool PMSRescaleInterceptSlope;
166 static bool ForcePixelSpacing;
167 static bool SecondaryCaptureImagePlaneModule;
Class to represent binary value (array of bytes)
Definition gdcmByteValue.h:35
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
a DICOM File
Definition gdcmFile.h:34
ImageHelper (internal class, not intended for user level)
Definition gdcmImageHelper.h:60
static PixelFormat GetPixelFormatValue(const File &f)
static std::vector< double > GetOriginValue(File const &f)
Set/Get Origin (IPP) from/to a file.
static bool GetPMSRescaleInterceptSlope()
static std::vector< double > GetRescaleInterceptSlopeValue(File const &f)
static void SetDirectionCosinesValue(DataSet &ds, const std::vector< double > &dircos)
static void SetOriginValue(DataSet &ds, const Image &img)
static bool GetDirectionCosinesFromDataSet(DataSet const &ds, std::vector< double > &dircos)
static bool ComputeSpacingFromImagePositionPatient(const std::vector< double > &imageposition, std::vector< double > &spacing)
DO NOT USE.
static Tag GetSpacingTagFromMediaStorage(MediaStorage const &ms)
static PhotometricInterpretation GetPhotometricInterpretationValue(File const &f)
static void SetDimensionsValue(File &f, const Pixmap &img)
static bool GetRealWorldValueMappingContent(File const &f, RealWorldValueMappingContent &rwvmc)
static std::vector< unsigned int > GetDimensionsValue(const File &f)
static void SetSpacingValue(DataSet &ds, const std::vector< double > &spacing)
static std::vector< double > GetDirectionCosinesValue(File const &f)
static unsigned int GetPlanarConfigurationValue(const File &f)
static Tag GetZSpacingTagFromMediaStorage(MediaStorage const &ms)
static bool GetSecondaryCaptureImagePlaneModule()
static void SetSecondaryCaptureImagePlaneModule(bool)
static void SetForcePixelSpacing(bool)
static std::vector< double > GetSpacingValue(File const &f)
Set/Get Spacing from/to a File.
static const ByteValue * GetPointerFromElement(Tag const &tag, File const &f)
static SmartPointer< LookupTable > GetLUT(File const &f)
returns the lookup table of an image file
static MediaStorage ComputeMediaStorageFromModality(const char *modality, unsigned int dimension=2, PixelFormat const &pf=PixelFormat(), PhotometricInterpretation const &pi=PhotometricInterpretation(), double rescaleintercept=0, double rescaleslope=1)
Moved from MediaStorage here, since we need extra info stored in PixelFormat & PhotometricInterpretat...
static void SetForceRescaleInterceptSlope(bool)
static void SetPMSRescaleInterceptSlope(bool)
static bool GetForceRescaleInterceptSlope()
static bool GetForcePixelSpacing()
static void SetRescaleInterceptSlopeValue(File &f, const Image &img)
Image.
Definition gdcmImage.h:47
Class to represent an PhotometricInterpretation.
Definition gdcmPhotometricInterpretation.h:29
Pixmap class.
Definition gdcmPixmap.h:33
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmImageHelper.h:36
double RealWorldValueSlope
Definition gdcmImageHelper.h:38
double RealWorldValueIntercept
Definition gdcmImageHelper.h:37
std::string CodeValue
Definition gdcmImageHelper.h:40
std::string CodeMeaning
Definition gdcmImageHelper.h:41