public class CommonConvertedAttributeGeneration
extends java.lang.Object
A class to support converting proprietary image input format files into images of a specified or appropriate SOP Class.
Constructor and Description |
---|
CommonConvertedAttributeGeneration() |
Modifier and Type | Method and Description |
---|---|
static void |
generateCommonAttributes(AttributeList list,
java.lang.String patientName,
java.lang.String patientID,
java.lang.String studyID,
java.lang.String seriesNumber,
java.lang.String instanceNumber,
java.lang.String modality,
java.lang.String sopClass,
boolean generateUnassignedConverted)
Generate common attributes for converted images.
|
static java.lang.String |
selectSOPClassForModalityNumberOfFramesAndPixelCharacteristics(java.lang.String modality,
int numberOfFrames,
int samplesPerPixel,
int bitsAllocated,
boolean isFloatPixelData)
Select a suitable SOP Class based on modality, number of frames and pixel data characteristics.
|
public static void generateCommonAttributes(AttributeList list, java.lang.String patientName, java.lang.String patientID, java.lang.String studyID, java.lang.String seriesNumber, java.lang.String instanceNumber, java.lang.String modality, java.lang.String sopClass, boolean generateUnassignedConverted) throws DicomException
Generate common attributes for converted images.
Does NOT add ManufacturerModelName ... that should be added by caller.
Does NOT call CodingSchemeIdentification.replaceCodingSchemeIdentificationSequenceWithCodingSchemesUsedInAttributeList ... that should be done by caller.
list
- patientName
- patientID
- studyID
- seriesNumber
- instanceNumber
- modality
- may be nullsopClass
- may be nullgenerateUnassignedConverted
- whether or not to generate empty Unassigned Converted Attributes Sequences (populates Shared and Per-Frame Functional Groups)DicomException
java.lang.NumberFormatException
public static java.lang.String selectSOPClassForModalityNumberOfFramesAndPixelCharacteristics(java.lang.String modality, int numberOfFrames, int samplesPerPixel, int bitsAllocated, boolean isFloatPixelData)
Select a suitable SOP Class based on modality, number of frames and pixel data characteristics.
If multi-frame selects legacy converted rather than true enhanced multi-frame SOP Classes.
Worst case returns the Secondary Capture Image Storage SOP Class.
modality
- may be null or empty stringnumberOfFrames
- samplesPerPixel
- bitsAllocated
- isFloatPixelData
-