Package com.pixelmed.dicom
Class LossyImageCompression
java.lang.Object
com.pixelmed.dicom.LossyImageCompression
A class to categorize DICOM images as having been lossy compressed or not.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Describe the nature of lossy compressed that has ever been applied to an image.static boolean
determine if an image has ever been lossy compressed.static void
Read a DICOM image input file, and determine if it has ever been lossy compressed.
-
Constructor Details
-
LossyImageCompression
public LossyImageCompression()
-
-
Method Details
-
hasEverBeenLossyCompressed
determine if an image has ever been lossy compressed.
- Parameters:
list
- list of attributes representing a DICOM image- Returns:
- true if has ever been lossy compressed
-
describeLossyCompression
Describe the nature of lossy compressed that has ever been applied to an image.
- Parameters:
list
- list of attributes representing a DICOM image- Returns:
- a string describing the compression, including method and ratio if possible, or a zero length string if never lossy compressed
-
main
Read a DICOM image input file, and determine if it has ever been lossy compressed.
- Parameters:
arg
- one required parameters, the input file name
-