DCMTK  Version 3.6.9
OFFIS DICOM Toolkit
Public Member Functions | Private Attributes | List of all members
DiJPLSPlugin Class Reference

Implementation of a JPEG-LS plugin for the dcmimgle/dcmimage library. More...

+ Inheritance diagram for DiJPLSPlugin:

Public Member Functions

 DiJPLSPlugin ()
 constructor
 
virtual ~DiJPLSPlugin ()
 destructor
 
virtual int write (DiImage *image, FILE *stream, const unsigned long frame=0) const
 write given image to a file stream (JPLS format) More...
 
void setTrueLosslessMode (OFBool mode)
 enable or disable true lossless compression mode More...
 
void setForce8BitMode (OFBool mode)
 enable or disable forcing the output image bit depth to 8 bits in rendered lossless mode More...
 
- Public Member Functions inherited from DiPluginFormat
virtual ~DiPluginFormat ()
 destructor (virtual)
 

Private Attributes

OFBool trueLosslessMode_
 flag indicating the active compression mode
 
OFBool force8BitMode_
 flag indicating the force-to-8-bit mode in rendered lossless mode
 

Additional Inherited Members

- Protected Member Functions inherited from DiPluginFormat
 DiPluginFormat ()
 constructor (protected)
 

Detailed Description

Implementation of a JPEG-LS plugin for the dcmimgle/dcmimage library.

Member Function Documentation

◆ setForce8BitMode()

void DiJPLSPlugin::setForce8BitMode ( OFBool  mode)

enable or disable forcing the output image bit depth to 8 bits in rendered lossless mode

Parameters
mode,OFTruefor force to 8 bits

◆ setTrueLosslessMode()

void DiJPLSPlugin::setTrueLosslessMode ( OFBool  mode)

enable or disable true lossless compression mode

Parameters
mode,OFTruefor true lossless, OFFalse for rendered lossless

◆ write()

virtual int DiJPLSPlugin::write ( DiImage image,
FILE *  stream,
const unsigned long  frame = 0 
) const
virtual

write given image to a file stream (JPLS format)

Parameters
imagepointer to DICOM image object to be written
streamstream to which the image is written (open in binary mode!)
frameindex of frame used for output (default: first frame = 0)
Returns
true if successful, false otherwise

Implements DiPluginFormat.


The documentation for this class was generated from the following file:


Generated on Wed Dec 11 2024 for DCMTK Version 3.6.9 by Doxygen 1.9.1