public class ColorPalette extends Object
A class to encapsulate color palettes, including serialization and deserialization to and from standard DICOM color palette IODs.
May be used as a base class for specific standard or private color palettes.
Modifier and Type | Field and Description |
---|---|
protected String[] |
alternateContentDescription |
protected String[] |
alternateContentLanguageCodeMeaning |
protected String[] |
alternateContentLanguageCodeValue |
protected byte[] |
blue |
protected String |
contentCreatorName |
protected String |
contentDescription |
protected String |
contentLabel |
protected byte[] |
green |
protected byte[] |
iccProfile |
protected AttributeList |
list |
protected byte[] |
red |
protected String |
referenceEncodedInstanceURL |
protected String |
sopInstanceUID |
Modifier | Constructor and Description |
---|---|
protected |
ColorPalette() |
Modifier and Type | Method and Description |
---|---|
protected void |
createDICOMInstance(String dicomFileName,
String iccProfileFileName,
String aet)
Create a DICOM color palette storage instance from the palette characteristics.
|
AttributeList |
getAttributeList() |
String |
getContentDescription() |
String |
getContentLabel() |
byte[] |
getICCProfile() |
String |
getReferenceEncodedInstanceURL() |
String |
getSOPInstanceUID() |
void |
setICCProfileFromFile(String filename) |
protected String[] alternateContentDescription
protected String[] alternateContentLanguageCodeMeaning
protected String[] alternateContentLanguageCodeValue
protected byte[] blue
protected String contentCreatorName
protected String contentDescription
protected String contentLabel
protected byte[] green
protected byte[] iccProfile
protected AttributeList list
protected byte[] red
protected String referenceEncodedInstanceURL
protected String sopInstanceUID
protected void createDICOMInstance(String dicomFileName, String iccProfileFileName, String aet) throws IOException, DicomException
Create a DICOM color palette storage instance from the palette characteristics.
dicomFileName
- to writeiccProfileFileName
- to readaet
- our Application Entity Title to include in the metaheaderIOException
- if an I/O error occursDicomException
- if error in DICOM encodingpublic AttributeList getAttributeList() throws DicomException
DicomException
public String getContentDescription()
public String getContentLabel()
public byte[] getICCProfile()
public String getReferenceEncodedInstanceURL()
public String getSOPInstanceUID()
public void setICCProfileFromFile(String filename) throws IOException
IOException