public class Convert8To16Bits
extends java.lang.Object
A class of methods to convert 8 to 16 bit gray scale images.
Constructor and Description |
---|
Convert8To16Bits(java.lang.String inputFileName,
java.lang.String outputFileName,
int outputBitsStored)
Read a DICOM 8 bit grayscale image input format file and change the bit depth.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] arg)
Read a DICOM a image input format file with a BitsAllocated of 8, and from it create a DICOM image with a BitsAllocated of 16.
|
public Convert8To16Bits(java.lang.String inputFileName, java.lang.String outputFileName, int outputBitsStored) throws DicomException, java.io.FileNotFoundException, java.io.IOException
Read a DICOM 8 bit grayscale image input format file and change the bit depth.
inputFileName
- the input file nameoutputFileName
- the output file nameoutputBitsStored
- less than or equal to 16DicomException
java.io.FileNotFoundException
java.io.IOException
public static void main(java.lang.String[] arg)
Read a DICOM a image input format file with a BitsAllocated of 8, and from it create a DICOM image with a BitsAllocated of 16.
arg
- three parameters, the inputFile, outputFile, and the bitsStored value to use in the output