Inheritance diagram for DJCodecEncoder:
Public Member Functions | |
DJCodecEncoder () | |
default constructor | |
virtual | ~DJCodecEncoder () |
destructor | |
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 element. | |
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. | |
virtual OFCondition | encode (const E_TransferSyntax fromRepType, const DcmRepresentationParameter *fromRepParam, DcmPixelSequence *fromPixSeq, const DcmRepresentationParameter *toRepParam, DcmPixelSequence *&toPixSeq, const DcmCodecParameter *cp, DcmStack &objStack) const |
transcodes (re-compresses) the given compressed DICOM image and stores the result in the given toPixSeq element. | |
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 transfer syntax | |
virtual E_TransferSyntax | supportedTransferSyntax () const =0 |
returns the transfer syntax that this particular codec is able to encode and decode. | |
Static Protected Member Functions | |
static void | appendCompressionRatio (OFString &arg, double ratio) |
format compression ratio as string and append to given string object. | |
static OFCondition | togglePlanarConfiguration8 (Uint8 *pixelData, const unsigned long numValues, const Uint16 samplesPerPixel, const Uint16 oldPlanarConfig) |
toggles Planar Configuration of 8-bit pixel data from "by pixel" to "by plane" and vice versa. | |
static OFCondition | togglePlanarConfiguration16 (Uint16 *pixelData, const unsigned long numValues, const Uint16 samplesPerPixel, const Uint16 oldPlanarConfig) |
toggles Planar Configuration of 16-bit pixel data from "by pixel" to "by plane" and vice versa. | |
Private Member Functions | |
virtual OFCondition | encodeColorImage (OFBool YBRmode, DcmItem *dataset, const DcmRepresentationParameter *toRepParam, DcmPixelSequence *&pixSeq, const DJCodecParameter *cp, double &compressionRatio) const |
compresses the given uncompressed DICOM color image and stores the result in the given pixSeq element. | |
virtual OFCondition | encodeMonochromeImage (DcmItem *dataset, const DcmRepresentationParameter *toRepParam, DcmPixelSequence *&pixSeq, const DJCodecParameter *cp, double &compressionRatio) const |
compresses the given uncompressed monochrome DICOM image and stores the result in the given pixSeq element. | |
virtual OFCondition | encodeTrueLossless (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. | |
virtual OFCondition | updateLossyCompressionRatio (DcmItem *dataset, double ratio) const |
create Lossy Image Compression and Lossy Image Compression Ratio. | |
virtual OFCondition | updateDerivationDescription (DcmItem *dataset, const DcmRepresentationParameter *toRepParam, const DJCodecParameter *cp, Uint8 bitsPerSample, double ratio) const |
create Derivation Description. | |
virtual OFCondition | adjustOverlays (DcmItem *dataset, DicomImage &image) const |
for all overlay groups create (60xx,3000) Overlay Data. | |
virtual OFBool | isLosslessProcess () const =0 |
returns true if the transfer syntax supported by this codec is lossless. | |
virtual void | createDerivationDescription (const DcmRepresentationParameter *toRepParam, const DJCodecParameter *cp, Uint8 bitsPerSample, double ratio, OFString &derivationDescription) const =0 |
creates 'derivation description' string after encoding. | |
virtual DJEncoder * | createEncoderInstance (const DcmRepresentationParameter *toRepParam, const DJCodecParameter *cp, Uint8 bitsPerSample) const =0 |
creates an instance of the compression library to be used for encoding/decoding. | |
OFCondition | updatePlanarConfiguration (DcmItem *item, const Uint16 newPlanConf) const |
Static Private Member Functions | |
static OFCondition | correctVOIWindows (DcmItem *dataset, double voiOffset, double voiFactor) |
modifies all VOI window center/width settings in the image. |
This abstract class contains most of the application logic needed for a dcmdata codec object that implements a JPEG encoder using the DJEncoder interface to the underlying JPEG implementation. This class only supports compression, it neither implements decoding nor transcoding.
Definition at line 62 of file djcodece.h.
|
for all overlay groups create (60xx,3000) Overlay Data.
|
|
format compression ratio as string and append to given string object.
|
|
checks if this codec is able to convert from the given current transfer syntax to the given new transfer syntax
Implements DcmCodec. |
|
modifies all VOI window center/width settings in the image. Modifications are based on the pixel value mapping f(x) = (x+voiOffset)*voiFactor
|
|
creates 'derivation description' string after encoding.
Implemented in DJEncoderBaseline, DJEncoderExtended, DJEncoderLossless, DJEncoderProgressive, DJEncoderSpectralSelection, and DJEncoderP14SV1. |
|
creates an instance of the compression library to be used for encoding/decoding.
Implemented in DJEncoderBaseline, DJEncoderExtended, DJEncoderLossless, DJEncoderProgressive, DJEncoderSpectralSelection, and DJEncoderP14SV1. |
|
decompresses the given pixel sequence and stores the result in the given uncompressedPixelData element.
Implements DcmCodec. |
|
transcodes (re-compresses) the given compressed DICOM image and stores the result in the given toPixSeq element.
Implements DcmCodec. |
|
compresses the given uncompressed DICOM image and stores the result in the given pixSeq element.
Implements DcmCodec. |
|
compresses the given uncompressed DICOM color image and stores the result in the given pixSeq element.
|
|
compresses the given uncompressed monochrome DICOM image and stores the result in the given pixSeq element.
|
|
compresses the given uncompressed DICOM image and stores the result in the given pixSeq element. No colorspace conversions, modality or windowing transformations are applied to guarantee, that the quality of the source image is fully preserved.
|
|
returns true if the transfer syntax supported by this codec is lossless.
Implemented in DJEncoderBaseline, DJEncoderExtended, DJEncoderLossless, DJEncoderProgressive, DJEncoderSpectralSelection, and DJEncoderP14SV1. |
|
returns the transfer syntax that this particular codec is able to encode and decode.
Implemented in DJEncoderBaseline, DJEncoderExtended, DJEncoderLossless, DJEncoderProgressive, DJEncoderSpectralSelection, and DJEncoderP14SV1. |
|
toggles Planar Configuration of 16-bit pixel data from "by pixel" to "by plane" and vice versa.
|
|
toggles Planar Configuration of 8-bit pixel data from "by pixel" to "by plane" and vice versa.
|
|
create Derivation Description.
|
|
create Lossy Image Compression and Lossy Image Compression Ratio.
|