public class AddTIFFOrOffsetTables
extends java.lang.Object
A class for to add make a dual-personality DICOM-TIFF file and/or add Basic or Extended Offset Tables.
TIFFToDicom
Constructor and Description |
---|
AddTIFFOrOffsetTables(java.lang.String inputFileName,
java.lang.String outputFileName,
boolean addTIFF,
boolean useBigTIFF)
Read a DICOM image input format file and create a dual-personality DICOM-TIFF file and/or add Basic or Extended Offset Tables.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] arg)
Read a DICOM image input format file and create a dual-personality DICOM-TIFF file and/or add Basic or Extended Offset Tables.
|
public AddTIFFOrOffsetTables(java.lang.String inputFileName, java.lang.String outputFileName, boolean addTIFF, boolean useBigTIFF) throws java.io.IOException, DicomException, TIFFException, java.lang.NumberFormatException
Read a DICOM image input format file and create a dual-personality DICOM-TIFF file and/or add Basic or Extended Offset Tables.
Does not change the Transfer Syntax.
inputFileName
- outputFileName
- addTIFF
- whether or not to add a TIFF IFD in the DICOM preamble to make a dual=personality DICOM-TIFF file sharing the same pixel datauseBigTIFF
- whether or not to create a BigTIFF rather than Classic TIFF filejava.io.IOException
DicomException
java.lang.NumberFormatException
TIFFException
public static void main(java.lang.String[] arg)
Read a DICOM image input format file and create a dual-personality DICOM-TIFF file and/or add Basic or Extended Offset Tables.
Options are:
ADDTIFF | DONOTADDTIFF (default)
USEBIGTIFF (default) | DONOTUSEBIGTIFF
arg
- two parameters plus options, the DICOM inputFile, the DICOM outputFile, then various options controlling conversion