using System;
public class DecompressImage
{
public static int Main(string[] args)
{
string file1 = args[0];
string file2 = args[1];
bool ret = reader.
Read();
if( !ret )
{
return 1;
}
uint[] dims = {0, 0};
if( !ret )
{
return 1;
}
return 0;
}
}
void SetNumberOfDimensions(unsigned int dim)
unsigned long GetBufferLength() const
void SetDimensions(const unsigned int dims[3])
void SetDataElement(DataElement const &de)
Definition gdcmBitmap.h:76
const PixelFormat & GetPixelFormat() const
Get/Set PixelFormat.
Definition gdcmBitmap.h:107
const PhotometricInterpretation & GetPhotometricInterpretation() const
return the photometric interpretation
bool GetBuffer(char *buffer) const
Access the raw data.
void SetPhotometricInterpretation(PhotometricInterpretation const &pi)
unsigned int GetDimension(unsigned int idx) const
unsigned int GetNumberOfDimensions() const
Return the number of dimension of the pixel data bytes; for example 2 for a 2D matrices of values.
void SetPixelFormat(PixelFormat const &pf)
Definition gdcmBitmap.h:115
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
const SequenceOfFragments * GetSequenceOfFragments() const
void SetByteValue(const char *array, VL length)
Definition gdcmDataElement.h:126
const DataElement & GetDataElement(const Tag &t) const
Definition gdcmDataSet.h:188
const DataSet & GetDataSet() const
Get Data Set.
Definition gdcmFile.h:57
ImageReader.
Definition gdcmImageReader.h:34
const Image & GetImage() const
Return the read image.
ImageWriter.
Definition gdcmImageWriter.h:33
bool Write() override
Write.
Image.
Definition gdcmImage.h:47
Class to represent an PhotometricInterpretation.
Definition gdcmPhotometricInterpretation.h:29
virtual void SetImage(Pixmap const &img)
const File & GetFile() const
Set/Get File.
Definition gdcmReader.h:72
void SetFileName(const char *filename_native)
const Fragment & GetFragment(SizeType num) const
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
Value Length.
Definition gdcmVL.h:30
void SetFile(const File &f)
Set/Get the DICOM file (DataSet + Header)
Definition gdcmWriter.h:66
void SetFileName(const char *filename_native)
Set the filename of DICOM file to write: