29 #ifndef DCMJPLS_DJCODEC_H 30 #define DCMJPLS_DJCODEC_H 32 #include "dcmtk/config/osconfig.h" 33 #include "dcmtk/dcmdata/dccodec.h" 34 #include "dcmtk/dcmdata/dcofsetl.h" 35 #include "dcmtk/ofstd/ofstring.h" 105 Uint32& startFragment,
108 OFString& decompressedColorModel)
const;
125 const Uint16 * pixelData,
147 const E_TransferSyntax fromRepType,
163 const E_TransferSyntax oldRepType,
164 const E_TransferSyntax newRepType)
const;
184 OFString &decompressedColorModel)
const;
207 const Uint16 *pixelData,
213 double& compressionRatio)
const;
229 const Uint16 * pixelData,
235 double& compressionRatio,
236 Uint16 nearLosslessDeviation)
const;
286 const Uint8 *framePointer,
287 Uint16 bitsAllocated,
290 Uint16 samplesPerPixel,
291 Uint16 planarConfiguration,
292 const OFString& photometricInterpretation,
295 unsigned long &compressedSize,
312 const OFString& photometricInterpretation,
314 unsigned long &compressedSize,
317 Uint16 nearLosslessDeviation)
const;
334 Uint16 bitsAllocated)
const;
351 Uint16 bitsAllocated)
const;
a class representing a list of DICOM elements in which each element has a different tag and elements ...
virtual OFCondition determineDecompressedColorModel(const DcmRepresentationParameter *fromParam, DcmPixelSequence *fromPixSeq, const DcmCodecParameter *cp, DcmItem *dataset, OFString &decompressedColorModel) const
determine color model of the decompressed image
DJLSEncoderBase()
default constructor
abstract base class for codec representation parameter sets.
OFCondition compressCookedFrame(DcmPixelSequence *pixelSequence, DicomImage *dimage, const OFString &photometricInterpretation, DcmOffsetList &offsetList, unsigned long &compressedSize, const DJLSCodecParameter *djcp, Uint32 frame, Uint16 nearLosslessDeviation) const
perform the lossless cooked compression of a single frame
OFCondition convertToSampleInterleaved(Uint8 *target, const Uint8 *source, Uint16 components, Uint32 width, Uint32 height, Uint16 bitsAllocated) const
Convert an image from uninterleaved to sample interleaved.
virtual OFCondition decode(const DcmRepresentationParameter *fromRepParam, DcmPixelSequence *pixSeq, DcmPolymorphOBOW &uncompressedPixelData, const DcmCodecParameter *cp, const DcmStack &objStack) const
decompresses the given pixel sequence and stores the result in the given uncompressedPixelData elemen...
OFCondition updateLossyCompressionRatio(DcmItem *dataset, double ratio) const
create Lossy Image Compression and Lossy Image Compression Ratio.
representation parameter for JPEG-LS
virtual OFCondition encode(const Uint16 *pixelData, const Uint32 length, const DcmRepresentationParameter *toRepParam, DcmPixelSequence *&pixSeq, const DcmCodecParameter *cp, DcmStack &objStack) const
compresses the given uncompressed DICOM image and stores the result in the given pixSeq element...
this class implements a sequence of pixel items, i.e.
codec class for JPEG-LS lossy and lossless TS encoding
virtual OFBool canChangeCoding(const E_TransferSyntax oldRepType, const E_TransferSyntax newRepType) const
checks if this codec is able to convert from the given current transfer syntax to the given new trans...
OFCondition adjustOverlays(DcmItem *dataset, DicomImage &image) const
for all overlay groups create (60xx,3000) Overlay Data.
abstract base class for a codec parameter object that describes the settings (modes of operations) fo...
this class manages a stack of pointers to DcmObject instances.
virtual ~DJLSEncoderBase()
destructor
OFCondition losslessRawEncode(const Uint16 *pixelData, const Uint32 length, DcmItem *dataset, const DJLSRepresentationParameter *djrp, DcmPixelSequence *&pixSeq, const DJLSCodecParameter *djcp, double &compressionRatio) const
lossless encoder that compresses the complete pixel cell (very much like the RLE encoder in module dc...
OFCondition losslessCookedEncode(const Uint16 *pixelData, const Uint32 length, DcmItem *dataset, const DJLSRepresentationParameter *djrp, DcmPixelSequence *&pixSeq, const DJLSCodecParameter *djcp, double &compressionRatio, Uint16 nearLosslessDeviation) const
lossless encoder that moves Overlays to (60xx,3000) and only compresses the stored bits of the pixel ...
virtual OFCondition decodeFrame(const DcmRepresentationParameter *fromParam, DcmPixelSequence *fromPixSeq, const DcmCodecParameter *cp, DcmItem *dataset, Uint32 frameNo, Uint32 &startFragment, void *buffer, Uint32 bufSize, OFString &decompressedColorModel) const
decompresses a single frame from the given pixel sequence and stores the result in the given buffer...
codec parameter for JPEG-LS codecs
Interface class for dcmimgle/dcmimage module.
codec class for JPEG-LS lossless only TS encoding
virtual E_TransferSyntax supportedTransferSyntax() const =0
returns the transfer syntax that this particular codec is able to encode
OFCondition convertToUninterleaved(Uint8 *target, const Uint8 *source, Uint16 components, Uint32 width, Uint32 height, Uint16 bitsAllocated) const
Convert an image from sample interleaved to uninterleaved.
abstract base class for a codec object that can be registered in dcmdata and performs transfer syntax...
a simple string class that implements a subset of std::string.
a class representing DICOM elements (such as uncompressed pixel data) that can be interpreted either ...
OFCondition updateDerivationDescription(DcmItem *dataset, const DJLSRepresentationParameter *djrp, double ratio) const
create Derivation Description.
abstract codec class for JPEG-LS encoders.
OFCondition compressRawFrame(const Uint8 *framePointer, Uint16 bitsAllocated, Uint16 columns, Uint16 rows, Uint16 samplesPerPixel, Uint16 planarConfiguration, const OFString &photometricInterpretation, DcmPixelSequence *pixelSequence, DcmOffsetList &offsetList, unsigned long &compressedSize, const DJLSCodecParameter *djcp) const
perform the lossless raw compression of a single frame
General purpose class for condition codes.