|
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 & PhotometricInterpretation. More...
|
|
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) |
|
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.
- Warning
- : do not expect the API of this class to be maintained at any point, since as Modalities are added the API might have to be augmented or behavior changed to cope with new modalities.