public class ImageToDicom extends Object
A class for converting RGB consumer image input format files (anything JIIO can recognize) into images of a specified SOP Class, or single or multi frame DICOM Secondary Capture images.
Constructor and Description |
---|
ImageToDicom(String inputFile,
String outputFile,
String patientName,
String patientID,
String studyID,
String seriesNumber,
String instanceNumber)
Read a consumer image input format file (anything JIIO can recognize), and create a single or multi frame DICOM Secondary Capture image.
|
ImageToDicom(String inputFile,
String outputFile,
String patientName,
String patientID,
String studyID,
String seriesNumber,
String instanceNumber,
String modality,
String sopClass)
Read a consumer image input format file (anything JIIO can recognize), and create an image of the specified SOP Class, or a single or multi frame DICOM Secondary Capture image.
|
Modifier and Type | Method and Description |
---|---|
static AttributeList |
generateDICOMPixelModuleFromConsumerImageFile(File inputFile,
AttributeList list)
Read a consumer image input format file (anything JIIO can recognize), and create a single frame DICOM Image Pixel Module.
|
static AttributeList |
generateDICOMPixelModuleFromConsumerImageFile(String inputFile)
Read a consumer image input format file (anything JIIO can recognize), and create a single frame DICOM Image Pixel Module.
|
static AttributeList |
generateDICOMPixelModuleFromConsumerImageFile(String inputFile,
AttributeList list)
Read a consumer image input format file (anything JIIO can recognize), and create a single frame DICOM Image Pixel Module.
|
protected static short |
getBitsPerSample(Node metadata) |
protected static String |
getCompressionType(Node metadata) |
static void |
main(String[] arg)
Read a consumer image input format file (anything JIIO can recognize), and create an image of the specified SOP Class, or a single or multi frame DICOM Secondary Capture image.
|
public ImageToDicom(String inputFile, String outputFile, String patientName, String patientID, String studyID, String seriesNumber, String instanceNumber) throws IOException, DicomException
Read a consumer image input format file (anything JIIO can recognize), and create a single or multi frame DICOM Secondary Capture image.
inputFile
- outputFile
- patientName
- patientID
- studyID
- seriesNumber
- instanceNumber
- DicomException
IOException
public ImageToDicom(String inputFile, String outputFile, String patientName, String patientID, String studyID, String seriesNumber, String instanceNumber, String modality, String sopClass) throws IOException, DicomException
Read a consumer image input format file (anything JIIO can recognize), and create an image of the specified SOP Class, or a single or multi frame DICOM Secondary Capture image.
inputFile
- outputFile
- patientName
- patientID
- studyID
- seriesNumber
- instanceNumber
- modality
- may be nullsopClass
- may be nullDicomException
IOException
protected static short getBitsPerSample(Node metadata)
public static AttributeList generateDICOMPixelModuleFromConsumerImageFile(String inputFile, AttributeList list) throws IOException, DicomException
Read a consumer image input format file (anything JIIO can recognize), and create a single frame DICOM Image Pixel Module.
inputFile
- a consumer format image file (e.g., 8 or > 8 bit JPEG, JPEG 2000, GIF, etc.)list
- an existing (possibly empty) attribute list, if null, a new one will be created; may already include "better" image pixel module attributes to use
return attribute list with Image Pixel Module (including Pixel Data) addedDicomException
IOException
public static AttributeList generateDICOMPixelModuleFromConsumerImageFile(File inputFile, AttributeList list) throws IOException, DicomException
Read a consumer image input format file (anything JIIO can recognize), and create a single frame DICOM Image Pixel Module.
inputFile
- a consumer format image file (e.g., 8 or > 8 bit JPEG, JPEG 2000, GIF, etc.)list
- an existing (possibly empty) attribute list, if null, a new one will be created; may already include "better" image pixel module attributes to use
return attribute list with Image Pixel Module (including Pixel Data) addedDicomException
IOException
public static AttributeList generateDICOMPixelModuleFromConsumerImageFile(String inputFile) throws IOException, DicomException
Read a consumer image input format file (anything JIIO can recognize), and create a single frame DICOM Image Pixel Module.
inputFile
- a consumer format image file (e.g., 8 or > 8 bit JPEG, JPEG 2000, GIF, etc.)
return a new attribute list with Image Pixel Module (including Pixel Data) addedDicomException
IOException
public static void main(String[] arg)
Read a consumer image input format file (anything JIIO can recognize), and create an image of the specified SOP Class, or a single or multi frame DICOM Secondary Capture image.
arg
- seven, eight or nine parameters, the inputFile, outputFile, patientName, patientID, studyID, seriesNumber, instanceNumber, and optionally the modality, and SOP Class