public class AddTIFFOrOffsetTables extends 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(String inputFileName,
String outputFileName,
boolean addTIFF,
boolean useBigTIFF)
Read a DICOM image input format file and create a dual-personality DICOM-TIFF file.
|
AddTIFFOrOffsetTables(String inputFileName,
String outputFileName,
boolean addTIFF,
boolean useBigTIFF,
boolean addExtendedOffsetTable,
boolean addBasicOffsetTable)
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(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(String inputFileName, String outputFileName, boolean addTIFF, boolean useBigTIFF) throws IOException, DicomException, TIFFException, NumberFormatException
Read a DICOM image input format file and create a dual-personality DICOM-TIFF file.
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 fileIOException
DicomException
NumberFormatException
TIFFException
public AddTIFFOrOffsetTables(String inputFileName, String outputFileName, boolean addTIFF, boolean useBigTIFF, boolean addExtendedOffsetTable, boolean addBasicOffsetTable) throws IOException, DicomException, TIFFException, 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 fileaddExtendedOffsetTable
- whether or not to add an Extended Offset Table (EOT)addBasicOffsetTable
- whether or not to add a Basic Offset Table (EOT)IOException
DicomException
NumberFormatException
TIFFException
public static void main(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
ADDEXTENDEDOFFSETTABLE | DONOTADDEXTENDEDOFFSETTABLE (default)
ADDBASICOFFSETTABLE | DONOTADDBASICOFFSETTABLE (default)
arg
- two parameters plus options, the DICOM inputFile, the DICOM outputFile, then various options controlling conversion