GDCM
2.2.6
|
ImageHelper (internal class, not intended for user level) More...
#include <gdcmImageHelper.h>
Static Public Member Functions | |
static bool | ComputeSpacingFromImagePositionPatient (const std::vector< double > &imageposition, std::vector< double > &spacing) |
DO NOT USE. More... | |
static std::vector< unsigned int > | GetDimensionsValue (const File &f) |
static bool | GetDirectionCosinesFromDataSet (DataSet const &ds, std::vector< double > &dircos) |
static std::vector< double > | GetDirectionCosinesValue (File const &f) |
static bool | GetForcePixelSpacing () |
static bool | GetForceRescaleInterceptSlope () |
static SmartPointer< LookupTable > | GetLUT (File const &f) |
static std::vector< double > | GetOriginValue (File const &f) |
Set/Get Origin (IPP) from/to a file. More... | |
static PhotometricInterpretation | GetPhotometricInterpretationValue (File const &f) |
static PixelFormat | GetPixelFormatValue (const File &f) |
static unsigned int | GetPlanarConfigurationValue (const File &f) |
static const ByteValue * | GetPointerFromElement (Tag const &tag, File const &f) |
Moved from PixampReader to here. Generally used for photometric interpretation. More... | |
static std::vector< double > | GetRescaleInterceptSlopeValue (File const &f) |
static std::vector< double > | GetSpacingValue (File const &f) |
Set/Get Spacing from/to a File. More... | |
static void | SetDimensionsValue (File &f, const Image &img) |
static void | SetDirectionCosinesValue (DataSet &ds, const std::vector< double > &dircos) |
static void | SetForcePixelSpacing (bool) |
static void | SetForceRescaleInterceptSlope (bool) |
static void | SetOriginValue (DataSet &ds, const Image &img) |
static void | SetRescaleInterceptSlopeValue (File &f, const Image &img) |
static void | SetSpacingValue (DataSet &ds, const std::vector< double > &spacing) |
Static Protected Member Functions | |
static Tag | GetSpacingTagFromMediaStorage (MediaStorage const &ms) |
static Tag | GetZSpacingTagFromMediaStorage (MediaStorage const &ms) |
ImageHelper (internal class, not intended for user level)
Helper for writing World images in DICOM. DICOM has a 'template' approach to image where MR Image Storage are distinct object from Enhanced MR Image Storage. For example the Pixel Spacing in one object is not at the same position (ie Tag) as in the other this class is the central (read: fragile) place where all the dispatching is done from a unified view of a world image (typically VTK or ITK point of view) down to the low level DICOM point of view.
|
static |
DO NOT USE.
|
static |
This function checks tags (0x0028, 0x0010) and (0x0028, 0x0011) for the rows and columns of the image in pixels (as opposed to actual distances). The output is {col , row}
|
static |
|
static |
Get Direction Cosines (IOP) from/to a file Requires a file because mediastorage must be known
|
static |
|
static |
|
static |
|
static |
Set/Get Origin (IPP) from/to a file.
|
static |
|
static |
This function returns pixel information about an image from its dataset That includes samples per pixel and bit depth (in that order)
|
static |
|
static |
Moved from PixampReader to here. Generally used for photometric interpretation.
|
static |
Set/Get shift/scale from/to a file
|
staticprotected |
|
static |
|
staticprotected |
|
static |
|
static |
GDCM 1.x compatibility issue: When using ReWrite an MR Image Storage would be rewritten as Secondary Capture Object while still having a Pixel Spacing tag (0028,0030). If you have deal with those files, use this very special flag to handle them Unless explicitely set elsewhere by the standard, it will use value from 0028,0030 / 0018,0088 for the Pixel Spacing of the Image
|
static |
GDCM 1.x compatibility issue: when using ReWrite an MR Image Storage would be rewritten with a Rescale Slope/Intercept while the standard would prohibit this (Philips Medical System is still doing that) Unless explicitely set elsewhere by the standard, it will use value from 0028,1052 / 0028,1053 for the Rescale Slope & Rescale Intercept values
|
static |