|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.archimed.dicom.GroupList
com.archimed.dicom.DicomObject
com.archimed.dicom.image.DicomImage
public class DicomImage
This class provides methods to construct a Dicom image,
only the modules which are common to all DICOM image modalities, can be
manipulated with this class.
Note: only required (type 1 & 2) attributes are mentioned, the
rest can be set using the different sets provided in DicomObject.
| Field Summary | |
|---|---|
protected JdtLogger |
log
|
| Constructor Summary | |
|---|---|
DicomImage()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class com.archimed.dicom.GroupList |
|---|
addGroups, clear, containsGroup, copyGroup, enumerateVRs, enumerateVRs, isEmpty, numberOfElements, numberOfGroups, removeGroup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JdtLogger log
| Constructor Detail |
|---|
public DicomImage()
| Method Detail |
|---|
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 Study
DicomException - 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 Series
DicomException - 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 Image
DicomException - is thrown when imageNumber does not represent an integer
public 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 - width
DicomException - is thrown if one/some of the parameters are inconsistent
public 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 - width
DicomException
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 - width
DicomException - is thrown if one/some of the parameters are inconsistent
public 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.
|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||