public class Convert8To16Bits extends Object
A class of methods to convert 8 to 16 bit gray scale images.
Constructor and Description |
---|
Convert8To16Bits(String inputFileName,
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(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(String inputFileName, String outputFileName, int outputBitsStored) throws DicomException, FileNotFoundException, 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
FileNotFoundException
IOException
public static void main(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