public class RawRGBToDicomMultiFrame
extends java.lang.Object
A class for converting raw RGB color single frame image input format files (such as from Visible Human) into one or more DICOM multi-frame secondary capture images.
Constructor and Description |
---|
RawRGBToDicomMultiFrame(java.lang.String formatFileName,
java.lang.String inputFolderName,
java.lang.String inputFileNameSuffix,
java.lang.String outputFolderName,
java.lang.String patientName,
java.lang.String patientID,
java.lang.String studyID,
java.lang.String seriesNumber)
Read raw RGB color single frame image input format files (such as from Visible Human) into one or more DICOM multi-frame secondary capture images.
|
Modifier and Type | Method and Description |
---|---|
static AttributeList |
generateDICOMPixelDataModuleAttributesFromRawRGBFiles(java.lang.String[] inputFileNames,
java.lang.String inputFileNameSuffix,
RawRGBInformation rawRGBInfo,
AttributeList list)
Create DICOM Pixel Data Module attributes.
|
static AttributeList |
generateGeometryFunctionalGroupsFromRawRGBInformation(RawRGBInformation rawRGBInfo,
AttributeList list,
int numberOfFrames)
Read a per-frame and shared functional group sequences for the geometry defined in a raw image file description.
|
protected static java.lang.String[] |
getSortedInputFileNames(java.lang.String inputFolderName,
java.lang.String inputFileNameSuffix) |
static void |
main(java.lang.String[] arg)
Read raw RGB color single frame image input format files (such as from Visible Human) into one or more DICOM multi-frame secondary capture images.
|
public RawRGBToDicomMultiFrame(java.lang.String formatFileName, java.lang.String inputFolderName, java.lang.String inputFileNameSuffix, java.lang.String outputFolderName, java.lang.String patientName, java.lang.String patientID, java.lang.String studyID, java.lang.String seriesNumber) throws java.io.IOException, DicomException
Read raw RGB color single frame image input format files (such as from Visible Human) into one or more DICOM multi-frame secondary capture images.
Will obtain the description of the geometry of the raw RGB files, e.g., a Visible Human README file, from the specified format description file.
The order of the frames is assumed to be by their lexicographically sorted file name (hence numeric file names need to be the same length, e.g., zero-padded.
formatFileName
- inputFolderName
- inputFileNameSuffix
- outputFolderName
- patientName
- patientID
- studyID
- seriesNumber
- java.io.IOException
DicomException
public static AttributeList generateDICOMPixelDataModuleAttributesFromRawRGBFiles(java.lang.String[] inputFileNames, java.lang.String inputFileNameSuffix, RawRGBInformation rawRGBInfo, AttributeList list) throws java.io.IOException, DicomException
Create DICOM Pixel Data Module attributes.
inputFileNames
- the single frame raw RGB format image files sorted in the correct orderinputFileNameSuffix
- so we can tell whether or not the input files are compressedrawRGBInfo
- description of the size of the raw image 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 addedjava.io.IOException
DicomException
public static AttributeList generateGeometryFunctionalGroupsFromRawRGBInformation(RawRGBInformation rawRGBInfo, AttributeList list, int numberOfFrames) throws DicomException
Read a per-frame and shared functional group sequences for the geometry defined in a raw image file description.
rawRGBInfo
- description of the size of the raw imagelist
- an existing (possibly empty) attribute list, if null, a new one will be created; may already shared and per-frame functional group sequences or they will be addednumberOfFrames
- return attribute list with per-frame and shared functional group sequences for geometry addedDicomException
protected static java.lang.String[] getSortedInputFileNames(java.lang.String inputFolderName, java.lang.String inputFileNameSuffix) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] arg)
Read raw RGB color single frame image input format files (such as from Visible Human) into one or more DICOM multi-frame secondary capture images.
Will obtain the description of the geometry of the raw RGB files, e.g., a Visible Human README file, from the specified format description file.
arg
- eight parameters, the format description file, inputFolder, inputFileNameSuffix, outputFolder, patientName, patientID, studyID, seriesNumber