com.pixelmed.dicom
Class ImageToDicom

java.lang.Object
  extended by com.pixelmed.dicom.ImageToDicom

public class ImageToDicom
extends Object

A class for converting RGB consumer image input format files (anything JIIO can recognize) into single frame DICOM Secondary Capture images.


Constructor Summary
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 frame DICOM Secondary Capture image.
 
Method Summary
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 a single frame DICOM Secondary Capture image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageToDicom

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 frame DICOM Secondary Capture image.

Parameters:
inputFile -
outputFile -
patientName -
patientID -
studyID -
seriesNumber -
instanceNumber -
Throws:
DicomException
IOException
Method Detail

getCompressionType

protected static String getCompressionType(Node metadata)

getBitsPerSample

protected static short getBitsPerSample(Node metadata)

generateDICOMPixelModuleFromConsumerImageFile

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.

Parameters:
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) added
Throws:
DicomException
IOException

generateDICOMPixelModuleFromConsumerImageFile

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.

Parameters:
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) added
Throws:
DicomException
IOException

generateDICOMPixelModuleFromConsumerImageFile

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.

Parameters:
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) added
Throws:
DicomException
IOException

main

public static void main(String[] arg)

Read a consumer image input format file (anything JIIO can recognize), and create a single frame DICOM Secondary Capture image.

Parameters:
arg - six parameters, the inputFile, outputFile, patientName, patientID, studyID, seriesNumber, instanceNumber