public class DicomImage extends DicomObject
set
s provided in DicomObject
.Constructor and Description |
---|
DicomImage() |
Modifier and Type | Method and Description |
---|---|
void |
generalEquipmentData(java.lang.String manufacturer)
Method to insert the General Equipment Module data into this DicomImage.
|
void |
generalImageData(java.lang.String imageNumber)
Method to insert the General Image Module data into this DicomImage.
|
void |
generalSeriesData(java.lang.String modality,
java.lang.String instanceUID,
java.lang.String seriesNumber)
Method to insert the General Series Module data into this DicomImage.
|
void |
generalStudyData(java.lang.String instanceUID,
java.lang.String date,
java.lang.String time,
java.lang.String physName,
java.lang.String studyID,
java.lang.String orderNumber)
Method to insert the General Study Module data into this DicomImage.
|
void |
imagePixelData(int rows,
int cols,
byte[] pixelData,
byte[] red,
byte[] green,
byte[] blue)
Method to insert the Image Pixel Module data into this DicomImage.
|
void |
imagePixelData(int rows,
int cols,
int planarConf,
byte[] pixelData)
Inserts the Image Pixel Module data into the DICOM data set.
|
void |
imagePixelData(int rows,
int cols,
int planarConf,
int[] pixelData)
basically does the same as
imagePixelData(rows, cols, pc, pixels)
but takes an int[] as argument for pixeldata. |
void |
imagePixelData(int rows,
int cols,
int bitsAlloc,
int bitsStored,
int highBit,
byte[] pixelData)
Method to insert the Image Pixel Module data into this DicomImage.
|
void |
imagePixelData(int rows,
int cols,
int bitsAlloc,
int bitsStored,
int highBit,
int[] pixelData)
inserts the Image Pixel Module data into this DicomImage.
|
void |
patientData(java.lang.String patientName,
java.lang.String patientID,
java.lang.String birthDate,
java.lang.String sex)
Method to insert the Patient Module data into this DicomImage.
|
void |
sopCommonData(java.lang.String sopClassUID,
java.lang.String sopInstanceUID)
The method is used to set SOP Common Module Data
|
addATValue_ge, addATValue, addBigDecimal_ge, addBigDecimal_ge, addBigDecimal, addBulkDataReference_ge, addBulkDataReference_ge, addBulkDataReference, addByteArray_ge, addByteArray_ge, addByteArray, addBytes_ge, addBytes_ge, addBytes, addDouble_ge, addDouble_ge, addDouble, addDoubles_ge, addDoubles_ge, addDoubles, addFloat_ge, addFloat_ge, addFloat, addFloats_ge, addFloats_ge, addFloats, addInteger_ge, addInteger_ge, addInteger, addLong_ge, addLong_ge, addLong, addPersonName_ge, addPersonName_ge, addPersonName_ge, addPersonName_ge, addPersonName, addPersonName, addSequenceItem_ge, addSequenceItem_ge, addSequenceItem, addShort_ge, addShort_ge, addShort, addString_ge, addString_ge, addString, append_ge, append_ge, append, calculateOffset, deleteItem_ge, deleteItem_ge, deleteItem_ge, deleteItem_ge, deleteItem, deleteItem, dicomCharsets, dumpVRs, dumpVRs, dumpVRs, get_ge, get_ge, get_ge, get_ge, get, get, getATValue_ge, getATValue, getBigDecimal_ge, getBigDecimal_ge, getBigDecimal, getBulkDataReference_ge, getBulkDataReference_ge, getBulkDataReference, getByteArray_ge, getByteArray_ge, getByteArray, getBytes_ge, getBytes_ge, getBytes, getDataElement, getDataElement, getDataElement, getDouble_ge, getDouble_ge, getDouble, getDoubles_ge, getDoubles_ge, getDoubles, getFileMetaInformation, getFloat_ge, getFloat_ge, getFloat, getFloats_ge, getFloats_ge, getFloats, getI_ge, getI_ge, getI, getI, getInteger_ge, getInteger_ge, getInteger, getLong_ge, getLong_ge, getLong, getOffset, getParent, getPersonName_ge, getPersonName_ge, getPersonName, getPreamble, getS_ge, getS_ge, getS, getS, getSeqItemLenState, getSeqLenState_ge, getSeqLenState_ge, getSeqLenState, getSequenceItem_ge, getSequenceItem_ge, getSequenceItem, getShort_ge, getShort_ge, getShort, getSize_ge, getSize_ge, getSize, getString_ge, getString_ge, getString_ge, getString_ge, getString, getString, getType_ge, getType_ge, getType, newDataElement_ge, newDataElement_ge, newDataElement, read, read, read, remove_ge, remove_ge, remove, set_ge, set_ge, set_ge, set_ge, set, set, setATValue_ge, setATValue, setBigDecimal_ge, setBigDecimal_ge, setBigDecimal, setBulkDataReference_ge, setBulkDataReference_ge, setBulkDataReference, setByteArray_ge, setByteArray_ge, setByteArray, setBytes_ge, setBytes_ge, setBytes, setDouble_ge, setDouble_ge, setDouble, setDoubles_ge, setDoubles_ge, setDoubles, setFileMetaInformation, setFloat_ge, setFloat_ge, setFloat, setFloats_ge, setFloats_ge, setFloats, setInteger_ge, setInteger_ge, setInteger, setLong_ge, setLong_ge, setLong, setPersonName_ge, setPersonName_ge, setPersonName_ge, setPersonName_ge, setPersonName, setPersonName, setPreamble, setSeqItemLenState, setSeqLenState_ge, setSeqLenState_ge, setSeqLenState, setSequenceItem_ge, setSequenceItem_ge, setSequenceItem, setShort_ge, setShort_ge, setShort, setString_ge, setString_ge, setString, setType_ge, setType_ge, setType, write, write, write
addGroups, clear, containsGroup, copyGroup, enumerateVRs, enumerateVRs, isEmpty, numberOfElements, numberOfGroups, removeGroup
protected JdtLogger log
public void patientData(java.lang.String patientName, java.lang.String patientID, java.lang.String birthDate, java.lang.String sex) throws DicomException
patientID
- Primary hospital identification number or code for the patientsex
- Patient's sex. Allowed values: M (male), F (female), O (other)DicomException
- is thrown when one of the given parameters has an invalid format.public void generalStudyData(java.lang.String instanceUID, java.lang.String date, java.lang.String time, java.lang.String physName, java.lang.String studyID, java.lang.String orderNumber) throws DicomException
instanceUID
- Unique identifier for the studydate
- Date the study startedtime
- Time the study startedphysName
- Patient's referring PhysicianstudyID
- User or equipment generated Study identifierorderNumber
- A RIS generated number which identifies the order for the StudyDicomException
- is thrown when one of the given parameters has an invalid format.public void generalSeriesData(java.lang.String modality, java.lang.String instanceUID, java.lang.String seriesNumber) throws DicomException
modality
- Type of equipment that originally acquired the data used to
create the images in this Series.
Two letter abbreviation e.g.: NM (nuclear medicine)instanceUID
- Unique identifier of the SeriesseriesNumber
- A number that identifies this SeriesDicomException
- is thrown when one of the given parameters has an invalid format.public void generalEquipmentData(java.lang.String manufacturer)
manufacturer
- Manufacturer of the equipment that produced the image.public void generalImageData(java.lang.String imageNumber) throws DicomException
imageNumber
- A number that identifies this ImageDicomException
- is thrown when imageNumber does not represent an integerpublic void imagePixelData(int rows, int cols, int bitsAlloc, int bitsStored, int highBit, byte[] pixelData) throws DicomException
bitsAlloc
- Number of bits allocated for each pixel sample.
Only 8, 16, 24 and 32 bits are allowedbitsStored
- Number of bits stored for each pixel samplehighBit
- Most significant bit for pixel sample datapixelData
- A byte array of the pixel data. All pixels have to be stored
as unsigned integers (little endian encoding)rows
- heightcols
- widthDicomException
- is thrown if one/some of the parameters are inconsistentpublic void imagePixelData(int rows, int cols, int bitsAlloc, int bitsStored, int highBit, int[] pixelData) throws DicomException
imagePixelData(int, int, int, int, int, byte[])
but takes an int[] as parameter for pixeldata.rows
- heightcols
- widthDicomException
public void imagePixelData(int rows, int cols, int planarConf, byte[] pixelData) throws DicomException
rows
- heightcols
- widthplanarConf
- Planar Configuration, indicates in what order the R,G and B bytes are:
DicomException
public void imagePixelData(int rows, int cols, int planarConf, int[] pixelData) throws DicomException
imagePixelData(rows, cols, pc, pixels)
but takes an int[] as argument for pixeldata.rows
- heightcols
- widthplanarConf
- pixelData
- DicomException
public void imagePixelData(int rows, int cols, byte[] pixelData, byte[] red, byte[] green, byte[] blue) throws DicomException
pixelData
- A byte array of the pixel data.red
- Red palette color LUT datagreen
- Green palette color LUT datablue
- Blue palette color LUT datarows
- heightcols
- widthDicomException
- is thrown if one/some of the parameters are inconsistentpublic void sopCommonData(java.lang.String sopClassUID, java.lang.String sopInstanceUID)
sopClassUID
- Uniquely identifies the SOP Class
if 'null' is given, the method uses 1.2.840.10008.5.1.4.1.1.7
which is the UID for Secondary Capture Image Storage.sopInstanceUID
- Uniquely identifies the SOP Instance.