public class JPEGLosslessFrameConverterOp extends BaseFrameConverterOp
Compression.| Constructor and Description |
|---|
JPEGLosslessFrameConverterOp() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(DicomObject dcm)
Implementors must indicate this FrameConverterOp can be applied to
the specified dicom image.
|
byte[] |
convert(byte[] frame,
ImageInfo imageInfo)
converts a frame.
|
long |
getConvertedPixelDataLength(DicomObject dcm,
long originalPixelDataLength,
int originalType)
encapsulated pixel data always has undefined length
|
int |
getConvertedPixelDataType(DicomObject dcm,
long originalPixelDataLength,
int originalType)
encapsulated pixel data is always OB
|
TransferSyntaxUID |
getConvertedTransferSyntax(DicomObject dcm)
returns the new transfer syntax of the image to which this frame conversion operation has been applied
Eg: If the operation compresses frames according to a particular codec, then the encapsulated transfer syntax
corresponding to this transfer syntax should be returned.
|
modifyDicomObjectpublic boolean canConvert(DicomObject dcm)
FrameConverterOpdcm - the source DicomObject (read up until the pixeldata data element)public TransferSyntaxUID getConvertedTransferSyntax(DicomObject dcm)
FrameConverterOpdcm - the source DicomObject (read up until the pixeldata data element)public byte[] convert(byte[] frame,
ImageInfo imageInfo)
FrameConverterOpframe - the source pixel frameimageInfo - relevant information of the imagepublic int getConvertedPixelDataType(DicomObject dcm, long originalPixelDataLength, int originalType) throws DicomException
getConvertedPixelDataType in interface FrameConverterOpgetConvertedPixelDataType in class BaseFrameConverterOpdcm - the source dicom objectoriginalPixelDataLength - the original pixel data length of the sourceoriginalType - the original vr type of the source pixel dataDicomException - -public long getConvertedPixelDataLength(DicomObject dcm, long originalPixelDataLength, int originalType) throws DicomException
getConvertedPixelDataLength in interface FrameConverterOpgetConvertedPixelDataLength in class BaseFrameConverterOpdcm - the source dicom objectoriginalPixelDataLength - the length of the pixel data of the sourceoriginalType - the type of the pixel dataof the sourceDicomException - -