public interface FrameConverterOp
FrameConverter
must
implement this interface.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)
returns the new length of the pixeldata data element after conversion of the frames.
|
int |
getConvertedPixelDataType(DicomObject dcm,
long originalPixelDataLength,
int originalType)
returns the new VR type of the pixeldata data element.
|
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.
|
DicomObject |
modifyDicomObject(DicomObject dcm)
allows the frame converter op to modify to dicom data set written (before the pixeldata)
default implementation modifies the transfer syntax of the file meta information to the target transfer syntax
|
boolean canConvert(DicomObject dcm)
dcm
- the source DicomObject (read up until the pixeldata data element)TransferSyntaxUID getConvertedTransferSyntax(DicomObject dcm) throws DicomException
dcm
- the source DicomObject (read up until the pixeldata data element)DicomException
- an exceptionbyte[] convert(byte[] frame, ImageInfo imageInfo) throws DicomException
frame
- the source pixel frameimageInfo
- relevant information of the imageDicomException
- an exceptionlong getConvertedPixelDataLength(DicomObject dcm, long originalPixelDataLength, int originalType) throws DicomException
dcm
- the source DicomObject (read up until the pixeldata data element)originalPixelDataLength
- the length of the pixel data data element of the source DicomObjectoriginalType
- the value type of the pixel data element of the source DicomObjectDicomException
int getConvertedPixelDataType(DicomObject dcm, long originalPixelDataLength, int originalType) throws DicomException
dcm
- the source DicomObject (read up until the pixeldata data element)originalPixelDataLength
- the length of the pixel data data element of the source DicomObjectoriginalType
- the value type of the pixel data element of the source DicomObjectDicomException
DicomObject modifyDicomObject(DicomObject dcm) throws DicomException
dcm
- the source DicomObject (read up until the pixeldata data element)DicomException