public class ConvertNonRGBToRGB extends Object
A class of static methods to convert non-RGB (e.g., YBR_FULL) to RGB true color images.
Constructor and Description |
---|
ConvertNonRGBToRGB(String inputFileName,
String outputFileName)
Read a DICOM color image input format file and change the photometric interpretation of the the encoded pixel data to RGB.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] arg)
Read a DICOM image input format file with a Photometric Interpretation of non-RGB (e.g., YBR_FULL), and from it create a DICOM image of Photometric Interpretation RGB.
|
public ConvertNonRGBToRGB(String inputFileName, String outputFileName) throws DicomException, FileNotFoundException, IOException
Read a DICOM color image input format file and change the photometric interpretation of the the encoded pixel data to RGB.
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 non-RGB (e.g., YBR_FULL), and from it create a DICOM image of Photometric Interpretation RGB.
arg
- two parameters, the inputFile, outputFile