Package com.pixelmed.convert
Class RawToDicomMultiFrame
java.lang.Object
com.pixelmed.convert.RawToDicomMultiFrame
A class for converting raw image input format files into images of a specified or appropriate SOP Class.
-
Constructor Summary
ConstructorsConstructorDescriptionRawToDicomMultiFrame(String formatFileName, String inputFileName, String outputFileName, String patientName, String patientID, String studyID, String seriesNumber, String instanceNumber) Read a raw image input format files and create an image of a specified or appropriate SOP Class.RawToDicomMultiFrame(String formatFileName, String inputFileName, String outputFileName, String patientName, String patientID, String studyID, String seriesNumber, String instanceNumber, String modality, String sopClass) Read a raw image input format file and create an image of a specified or appropriate SOP Class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeListgenerateDICOMPixelDataModuleAttributesFromNRRDFile(File inputFile, RawImageDescription rawImageDesc, AttributeList list) Using a raw image input file and header, create DICOM Pixel Data Module attributes.static voidRead a raw multiframe image input format file and create an image of a specified or appropriate SOP Class.
-
Constructor Details
-
RawToDicomMultiFrame
public RawToDicomMultiFrame(String formatFileName, String inputFileName, String outputFileName, String patientName, String patientID, String studyID, String seriesNumber, String instanceNumber) throws IOException, DicomException Read a raw image input format files and create an image of a specified or appropriate SOP Class.
- Parameters:
formatFileName-inputFileName-outputFileName-patientName-patientID-studyID-seriesNumber-instanceNumber-- Throws:
IOExceptionDicomException
-
RawToDicomMultiFrame
public RawToDicomMultiFrame(String formatFileName, String inputFileName, String outputFileName, String patientName, String patientID, String studyID, String seriesNumber, String instanceNumber, String modality, String sopClass) throws IOException, DicomException, NumberFormatException Read a raw image input format file and create an image of a specified or appropriate SOP Class.
- Parameters:
formatFileName-inputFileName-outputFileName-patientName-patientID-studyID-seriesNumber-instanceNumber-modality- may be nullsopClass- may be null- Throws:
IOExceptionDicomExceptionNumberFormatException
-
-
Method Details
-
generateDICOMPixelDataModuleAttributesFromNRRDFile
public static AttributeList generateDICOMPixelDataModuleAttributesFromNRRDFile(File inputFile, RawImageDescription rawImageDesc, AttributeList list) throws IOException, DicomException, NumberFormatException Using a raw image input file and header, create DICOM Pixel Data Module attributes.
- Parameters:
inputFile- a raw format image filerawImageDesc- a raw image description already read from the inputFilelist- 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) and other attributes added- Throws:
IOExceptionDicomExceptionNumberFormatException
-
main
Read a raw multiframe image input format file and create an image of a specified or appropriate SOP Class.
If multiple single frame raw images are to be converted, first cat them together in the correct order.
- Parameters:
arg- eight, nine or ten parameters, the JSON formatFile, inputFile, outputFile, patientName, patientID, studyID, seriesNumber, instanceNumber, and optionally the modality, and SOP Class
-