29 #ifndef DCMJPLS_DJCPARAM_H
30 #define DCMJPLS_DJCPARAM_H
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/dcmdata/dccodec.h"
34 #include "dcmtk/dcmjpls/djlsutil.h"
74 OFBool jpls_optionsEnabled,
78 Uint16 jpls_reset = 64,
79 Uint16 jpls_limit = 0,
80 OFBool preferCookedEncoding = OFTrue,
81 Uint32 fragmentSize = 0,
82 OFBool createOffsetTable = OFTrue,
83 JLS_UIDCreation uidCreation = EJLSUC_default,
84 OFBool convertToSC = OFFalse,
85 JLS_PlanarConfiguration planarConfiguration = EJLSPC_restore,
95 JLS_UIDCreation uidCreation = EJLSUC_default,
96 JLS_PlanarConfiguration planarConfiguration = EJLSPC_restore,
Uint16 getT1() const
returns JPEG-LS parameter T1
OFBool ignoreOffsetTable_
flag indicating if temporary files should be kept, false if they should be deleted after use ...
DJLSCodecParameter & operator=(const DJLSCodecParameter &)
private undefined copy assignment operator
Uint32 fragmentSize_
maximum fragment size (in kbytes) for compression, 0 for unlimited.
Uint16 getT2() const
returns JPEG-LS parameter T2
JLS_UIDCreation getUIDCreation() const
returns mode for SOP Instance UID creation
JLS_UIDCreation uidCreation_
mode for SOP Instance UID creation (used both for encoding and decoding)
Line-interleaved (color-by-line)
OFBool getUseCustomOptions() const
returns true if JPEG-LS parameters T1-T3, RESET and LIMIT are enabled, false otherwise ...
OFBool jpls_optionsEnabled_
enable/disable use of all five JPEG-LS parameters
interleaveMode
Constants describing the interleave mode which the encoder will use.
JLS_PlanarConfiguration planarConfiguration_
flag describing how planar configuration of decompressed color images should be handled ...
Uint32 getFragmentSize() const
returns maximum fragment size (in kbytes) for compression, 0 for unlimited.
Uint16 jpls_t1_
JPEG-LS parameter "Threshold 1" (used for quantization)
OFBool preferCookedEncoding_
Flag indicating if the "cooked" lossless encoder should be preferred over the "raw" one...
Sample-interleaved (color-by-pixel)
virtual ~DJLSCodecParameter()
destructor
interleaveMode jplsInterleaveMode_
Flag describing the interleave mode which the encoder will use.
abstract base class for a codec parameter object that describes the settings (modes of operations) fo...
Uint16 jpls_t2_
JPEG-LS parameter "Threshold 2".
OFBool createOffsetTable_
create offset table during image compression
virtual DcmCodecParameter * clone() const
this methods creates a copy of type DcmCodecParameter * it must be overweritten in every subclass...
DJLSCodecParameter(OFBool jpls_optionsEnabled, Uint16 jpls_t1=3, Uint16 jpls_t2=7, Uint16 jpls_t3=21, Uint16 jpls_reset=64, Uint16 jpls_limit=0, OFBool preferCookedEncoding=OFTrue, Uint32 fragmentSize=0, OFBool createOffsetTable=OFTrue, JLS_UIDCreation uidCreation=EJLSUC_default, OFBool convertToSC=OFFalse, JLS_PlanarConfiguration planarConfiguration=EJLSPC_restore, OFBool ignoreOffsetTable=OFFalse, interleaveMode jplsInterleaveMode=interleaveLine)
constructor, for use with encoders.
OFBool getCreateOffsetTable() const
returns create offset table flag
Uint16 jpls_limit_
JPEG-LS parameter "LIMIT".
OFBool ignoreOffsetTable() const
returns true if the offset table should be ignored when decompressing multiframe images ...
codec parameter for JPEG-LS codecs
Uint16 getT3() const
returns JPEG-LS parameter T3
JLS_PlanarConfiguration getPlanarConfiguration() const
returns mode for handling planar configuration
Uint16 getLimit() const
returns JPEG-LS parameter LIMIT
Uint16 getReset() const
returns JPEG-LS parameter RESET
OFBool convertToSC_
flag indicating whether image should be converted to Secondary Capture upon compression ...
virtual const char * className() const
returns the class name as string.
interleaveMode getJplsInterleaveMode() const
returns the interleave mode which the encoder should use
OFBool cookedEncodingPreferred() const
returns flag indicating whether or not the "cooked" lossless encoder should be preferred over the "ra...
Uninterleaved (color-by-plane)
Use same interleave mode as the DICOM header says in planarConfiguration, if possible.
OFBool getConvertToSC() const
returns secondary capture conversion flag
Uint16 jpls_reset_
JPEG-LS parameter "RESET", i.e., value at which the counters A, B, and N are halved.
Uint16 jpls_t3_
JPEG-LS parameter "Threshold 3".