Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
static FileHelper *New() {return new FileHelper();}
/// \brief Constructs a FileHelper with a RefCounter from a fileHelper
static FileHelper *New(File *header) {return new FileHelper(header);}
static FileHelper *New() {return new FileHelper();}
/// \brief Constructs a FileHelper with a RefCounter from a fileHelper
static FileHelper *New(File *header) {return new FileHelper(header);}
DataEntry *InsertEntryString(std::string const &content,
uint16_t group, uint16_t elem, const VRKey &vr);
DataEntry *InsertEntryBinArea(uint8_t *binArea, int lgth,
DataEntry *InsertEntryString(std::string const &content,
uint16_t group, uint16_t elem, const VRKey &vr);
DataEntry *InsertEntryBinArea(uint8_t *binArea, int lgth,
/// (as opposed to 'Grey pixels + Palettes color')
void SetWriteModeToRGB() { SetWriteMode(WMODE_RGB); }
/// \brief Sets the Write Mode ( )
/// (as opposed to 'Grey pixels + Palettes color')
void SetWriteModeToRGB() { SetWriteMode(WMODE_RGB); }
/// \brief Sets the Write Mode ( )
- void SetWriteMode(FileMode mode) {
- WriteMode = mode;
- // Deal with Samples per Pixel
- //if (mode == WMODE_RGB) FileInternal->InsertEntryString("3",0x0028,0x0002);
- }
+ void SetWriteMode(FileMode mode) { WriteMode = mode; }
void SetWriteTypeToAcr() { SetWriteType(ACR); }
/// \brief Tells the writer we want to write as LibIDO
void SetWriteTypeToAcrLibido() { SetWriteType(ACR_LIBIDO); }
void SetWriteTypeToAcr() { SetWriteType(ACR); }
/// \brief Tells the writer we want to write as LibIDO
void SetWriteTypeToAcrLibido() { SetWriteType(ACR_LIBIDO); }
void SetWriteTypeToJPEG() { SetWriteType(JPEG); }
/// \brief Tells the writer we want to write as JPEG2000
void SetWriteTypeToJPEG() { SetWriteType(JPEG); }
/// \brief Tells the writer we want to write as JPEG2000
/// \brief Tells the writer which format we want to write
/// (ImplicitVR, ExplicitVR, ACR, ACR_LIBIDO)
void SetWriteType(FileType format) { WriteType = format; }
/// \brief Gets the format we talled the write we wanted to write
/// (ImplicitVR, ExplicitVR, ACR, ACR_LIBIDO)
FileType GetWriteType() { return WriteType; }
/// \brief Tells the writer which format we want to write
/// (ImplicitVR, ExplicitVR, ACR, ACR_LIBIDO)
void SetWriteType(FileType format) { WriteType = format; }
/// \brief Gets the format we talled the write we wanted to write
/// (ImplicitVR, ExplicitVR, ACR, ACR_LIBIDO)
FileType GetWriteType() { return WriteType; }
- PhotometricInterpretation = 1;}
- /// \brief 2 : black=0, white=high value (default)
+ PhotometricInterpretation = 1;}
+ /// \brief 2 : black=0, white=high value (default)
// Write pixels of ONE image on hard drive
// No test is made on processor "endianness"
// The user must call his reader correctly
// Write pixels of ONE image on hard drive
// No test is made on processor "endianness"
// The user must call his reader correctly
void SetWriteFileTypeToExplicitVR();
void SetWriteFileTypeToImplicitVR();
void RestoreWriteFileType();
void SetWriteFileTypeToExplicitVR();
void SetWriteFileTypeToImplicitVR();
void RestoreWriteFileType();
void RestoreWriteOfLibido();
DataEntry *CopyDataEntry(uint16_t group, uint16_t elem,
void RestoreWriteOfLibido();
DataEntry *CopyDataEntry(uint16_t group, uint16_t elem,
void CheckMandatoryElements();
void CheckMandatoryEntry(uint16_t group, uint16_t elem, std::string value,
void CheckMandatoryElements();
void CheckMandatoryEntry(uint16_t group, uint16_t elem, std::string value,
void SetMandatoryEntry(uint16_t group, uint16_t elem, std::string value,
void SetMandatoryEntry(uint16_t group, uint16_t elem, std::string value,
void CopyMandatoryEntry(uint16_t group, uint16_t elem, std::string value,
void CopyMandatoryEntry(uint16_t group, uint16_t elem, std::string value,
/// \brief (ImplicitVR, ExplicitVR, ACR, ACR_LIBIDO)
FileType WriteType;
/// \brief (ImplicitVR, ExplicitVR, ACR, ACR_LIBIDO)
FileType WriteType;
/// \brief Pointer to a user supplied function to allow modification
/// of pixel order (e.g. : Mirror, UpsideDown, 90°Rotation, ...)
/// use as : void userSuppliedFunction(uint8_t *im, gdcm::File *f)
/// \brief Pointer to a user supplied function to allow modification
/// of pixel order (e.g. : Mirror, UpsideDown, 90°Rotation, ...)
/// use as : void userSuppliedFunction(uint8_t *im, gdcm::File *f)
- /// \brief 1 : white=0, black=high value
- /// 2 : black=0, white=high value (default)
+ /// \brief 1 : white=0, black=high value
+ /// 2 : black=0, white=high value (default)