|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.archimed.dicom.codec.Compression
public class Compression
This is a class providing methods to decompress pixel data.
DICOM supports many different kinds of compression techniques for Media Storage.
Here's a list of supported compression schemes (most common) and their
transfer syntaxes.
| 1.2.840.10008.1.2.4.50 | JPEGBaseline
|
| 1.2.840.10008.1.2.4.70 | JPEGLossless
|
| 1.2.840.10008.1.2.5 | RLELossless
|
TransferSyntax| Field Summary | |
|---|---|
protected JdtLogger |
log
|
| Constructor Summary | |
|---|---|
Compression()
Empty constructor. |
|
Compression(DicomObject d)
Constructs a new Compression object for a DicomObject. |
|
| Method Summary | |
|---|---|
void |
compress(int ts)
Encodes the pixeldata of the associated DicomObject. |
static byte[] |
compressFrame(int encoding,
byte[] frame,
int w,
int h)
Encodes a frame and returns the encoded frame. |
void |
decompress()
Decompresses the pixeldata of the DicomObject specified in the constructor (or last call of setDicomObject), and replaces it in this DicomObject. |
static byte[] |
decompressFrame(int encoding,
byte[] frame,
int w,
int h)
decodes a encoded bytearray 'frame' and returns the result. |
DicomObject |
getDicomObject()
Returns the DicomObject associated with the Compression object. |
void |
setDicomObject(DicomObject d)
replaces the current DicomObject with a new one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JdtLogger log
| Constructor Detail |
|---|
public Compression()
setDicomObject to specify the
source for compression.
public Compression(DicomObject d)
throws DicomException
DicomException| Method Detail |
|---|
public void decompress()
throws DicomException,
java.io.IOException
DicomException - gets thrown when needed information is missing.
java.io.IOException - is thrown when the compressed pixel data seems corrupt.
public static byte[] decompressFrame(int encoding,
byte[] frame,
int w,
int h)
throws DicomException,
java.io.IOException
encoding - - use one of the encapsulating transfer syntaxes specified in
TransferSyntax
DicomException
java.io.IOException
public void compress(int ts)
throws java.io.IOException,
DicomException
ts - the transfer syntax for the wanted compression scheme
java.io.IOException
DicomExceptionTransferSyntax
public static byte[] compressFrame(int encoding,
byte[] frame,
int w,
int h)
throws java.io.IOException,
DicomException
encoding - - use one of the encapsulating transfer syntaxes specified in
TransferSyntax
java.io.IOException
DicomException
public void setDicomObject(DicomObject d)
throws DicomException
DicomExceptionpublic DicomObject getDicomObject()
|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||