32 #include "dcmtk/config/osconfig.h" 33 #include "dcmtk/dcmdata/dccodec.h" 34 #include "dcmtk/dcmjpeg/djutils.h" 76 E_CompressionColorSpaceConversion pCompressionCSConversion,
77 E_DecompressionColorSpaceConversion pDecompressionCSConversion,
78 E_UIDCreation pCreateSOPInstanceUID,
79 E_PlanarConfiguration pPlanarConfiguration,
80 OFBool predictor6WorkaroundEnable = OFFalse,
81 OFBool pOptimizeHuffman = OFFalse,
82 int pSmoothingFactor = 0,
83 int pForcedBitDepth = 0,
84 Uint32 pFragmentSize = 0,
85 OFBool pCreateOffsetTable = OFTrue,
86 E_SubSampling pSampleFactors = ESS_444,
87 OFBool pWriteYBR422 = OFFalse,
88 OFBool pConvertToSC = OFFalse,
89 unsigned long pWindowType = 0,
90 unsigned long pWindowParameter = 0,
91 double pVoiCenter = 0.0,
92 double pVoiWidth = 0.0,
93 unsigned long pRoiLeft = 0,
94 unsigned long pRoiTop = 0,
95 unsigned long pRoiWidth = 0,
96 unsigned long pRoiHeight = 0,
97 OFBool pUsePixelValues = OFTrue,
98 OFBool pUseModalityRescale = OFFalse,
99 OFBool pAcceptWrongPaletteTags = OFFalse,
100 OFBool pAcrNemaCompatibility = OFFalse,
101 OFBool pTrueLosslessMode = OFTrue);
226 unsigned long& left_pos,
227 unsigned long& top_pos,
228 unsigned long& width,
229 unsigned long& height)
const unsigned long windowType
mode for VOI transformation of monochrome images.
OFBool predictor6WorkaroundEnabled() const
returns flag indicating whether the workaround for buggy JPEG lossless images with incorrect predicto...
virtual const char * className() const
returns the class name as string.
OFBool getUseModalityRescale() const
returns flag indicating if compression should compute Rescale Slope/Intercept
OFBool getUsePixelValues() const
returns flag indicating if compression to be optimized for real pixel values
E_DecompressionColorSpaceConversion getDecompressionColorSpaceConversion() const
returns color conversion mode for compression
E_CompressionColorSpaceConversion getCompressionColorSpaceConversion() const
returns color conversion mode for compression
OFBool getOptimizeHuffmanCoding() const
returns huffman table optimization flag for 8 bits/pixel compression
OFBool getAcrNemaCompatibility() const
Returns flag indicating if compatibility to old ACR-NEMA images without photometric interpretation is...
unsigned long windowParameter
parameter for VOI transform of monochrome images, used in modes 1, 2, 4, 6
int forcedBitDepth
forced bit depth for image compression, 0 (auto) or 8/12/16
E_PlanarConfiguration planarConfiguration
flag describing how planar configuration of decompressed color images should be handled ...
OFBool createOffsetTable
create offset table during image compression
E_UIDCreation uidCreation
mode for SOP Instance UID creation
OFBool writeYBR422
flag indicating whether a compressed YBR color stream should be marked as YBR_FULL or YBR_FULL_422 on...
virtual DcmCodecParameter * clone() const
this methods creates a copy of type DcmCodecParameter * it must be overweritten in every subclass...
int getSmoothingFactor() const
returns smoothing factor for image compression, 0..100
unsigned long getWindowParameter() const
returns parameter for VOI transform of monochrome images, used in VOI modes 1, 2, 4...
Uint32 getFragmentSize() const
returns maximum fragment size (in kbytes) for compression, 0 for unlimited.
OFBool acceptWrongPaletteTags
Accept wrong palette attribute tags.
OFBool useModalityRescale
Create Rescale Slope/Intercept to scale back to original pixel range, mode 0 only.
int getForcedBitDepth() const
returns forced bit depth for image compression, 0 (auto) or 8/12/16
void getROI(unsigned long &left_pos, unsigned long &top_pos, unsigned long &width, unsigned long &height) const
returns ROI coordinates for VOI mode 7
OFBool trueLosslessMode
True losless mode, replaces old "pseudo" lossless encoders, when true (default)
int smoothingFactor
smoothing factor for image compression, 0..100
abstract base class for a codec parameter object that describes the settings (modes of operations) fo...
E_SubSampling getSampleFactors() const
returns subsampling mode for color image compression
OFBool getWriteYBR422() const
returns flag indicating whether a compressed YBR color stream should be marked as YBR_FULL or YBR_FUL...
E_DecompressionColorSpaceConversion decompressionCSConversion
color conversion mode for decompression
Uint32 fragmentSize
maximum fragment size (in kbytes) for compression, 0 for unlimited.
OFBool usePixelValues
Check smallest and largest pixel value and optimize compression, mode 0 only.
DJCodecParameter & operator=(const DJCodecParameter &)
private undefined copy assignment operator
unsigned long roiWidth
Region of Interest width for for VOI transform of monochrome images, mode 7.
unsigned long roiLeft
Region of Interest left corner for for VOI transform of monochrome images, mode 7.
DJCodecParameter(E_CompressionColorSpaceConversion pCompressionCSConversion, E_DecompressionColorSpaceConversion pDecompressionCSConversion, E_UIDCreation pCreateSOPInstanceUID, E_PlanarConfiguration pPlanarConfiguration, OFBool predictor6WorkaroundEnable=OFFalse, OFBool pOptimizeHuffman=OFFalse, int pSmoothingFactor=0, int pForcedBitDepth=0, Uint32 pFragmentSize=0, OFBool pCreateOffsetTable=OFTrue, E_SubSampling pSampleFactors=ESS_444, OFBool pWriteYBR422=OFFalse, OFBool pConvertToSC=OFFalse, unsigned long pWindowType=0, unsigned long pWindowParameter=0, double pVoiCenter=0.0, double pVoiWidth=0.0, unsigned long pRoiLeft=0, unsigned long pRoiTop=0, unsigned long pRoiWidth=0, unsigned long pRoiHeight=0, OFBool pUsePixelValues=OFTrue, OFBool pUseModalityRescale=OFFalse, OFBool pAcceptWrongPaletteTags=OFFalse, OFBool pAcrNemaCompatibility=OFFalse, OFBool pTrueLosslessMode=OFTrue)
constructor.
OFBool acrNemaCompatibility
Compatibility with old ACR-NEMA images without photometric interpretation.
virtual ~DJCodecParameter()
destructor
unsigned long roiTop
Region of Interest upper corner for for VOI transform of monochrome images, mode 7.
OFBool predictor6WorkaroundEnabled_
flag indicating that the workaround for buggy JPEG lossless images with incorrect predictor 6 is enab...
E_UIDCreation getUIDCreation() const
returns mode for SOP Instance UID creation
unsigned long getWindowType() const
returns mode for VOI transformation of monochrome images.
double voiCenter
VOI window center for mode 5.
OFBool getTrueLosslessMode() const
returns flag indicating if real lossless mode is enabled
OFBool getConvertToSC() const
returns secondary capture conversion flag
E_SubSampling sampleFactors
subsampling mode for color image compression
OFBool getCreateOffsetTable() const
returns offset table creation flag
E_PlanarConfiguration getPlanarConfiguration() const
returns planar configuration flag
OFBool optimizeHuffman
perform huffman table optimization for 8 bits/pixel compression?
void getVOIWindow(double ¢er, double &width) const
returns VOI window center and width for VOI mode 5
unsigned long roiHeight
Region of Interest height for for VOI transform of monochrome images, mode 7.
double voiWidth
VOI window width for mode 5.
OFBool convertToSC
flag indicating whether image should be converted to Secondary Capture upon compression ...
codec parameter for IJG codecs
E_CompressionColorSpaceConversion compressionCSConversion
color conversion mode for compression
OFBool getAcceptWrongPaletteTags() const
Returns flag indicating if incorrect palette attribute tags should be accepted.