public class ConvertPaletteColorToGrayscale extends Object
A class of static methods to convert PALETTE COLOR to MONOCHROME2 images.
Constructor and Description |
---|
ConvertPaletteColorToGrayscale(String inputFileName,
String outputFileName)
Read a DICOM image input format file with a Photometric Interpretation of PALETTE COLOR, and from it create a DICOM image of Photometric Interpretation MONOCHROME2.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] arg)
Read a DICOM image input format file with a Photometric Interpretation of PALETTE COLOR, and from it create a DICOM image of Photometric Interpretation MONOCHROME2.
|
public ConvertPaletteColorToGrayscale(String inputFileName, String outputFileName) throws DicomException, FileNotFoundException, IOException
Read a DICOM image input format file with a Photometric Interpretation of PALETTE COLOR, and from it create a DICOM image of Photometric Interpretation MONOCHROME2.
inputFileName
- the input file nameoutputFileName
- the output file nameDicomException
FileNotFoundException
IOException
public static void main(String[] arg)
Read a DICOM image input format file with a Photometric Interpretation of PALETTE COLOR, and from it create a DICOM image of Photometric Interpretation MONOCHROME2.
arg
- two parameters, the inputFile, outputFile