com.pixelmed.dicom
Class ColorPalette
java.lang.Object
com.pixelmed.dicom.ColorPalette
- Direct Known Subclasses:
- ColorPaletteHotIron, ColorPaletteHotMetalBlue, ColorPalettePET, ColorPalettePET20Step
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sopInstanceUID
protected String sopInstanceUID
contentLabel
protected String contentLabel
contentDescription
protected String contentDescription
contentCreatorName
protected String contentCreatorName
referenceEncodedInstanceURL
protected String referenceEncodedInstanceURL
alternateContentDescription
protected String[] alternateContentDescription
alternateContentLanguageCodeValue
protected String[] alternateContentLanguageCodeValue
alternateContentLanguageCodeMeaning
protected String[] alternateContentLanguageCodeMeaning
red
protected byte[] red
green
protected byte[] green
blue
protected byte[] blue
iccProfile
protected byte[] iccProfile
list
protected AttributeList list
ColorPalette
protected ColorPalette()
getSOPInstanceUID
public String getSOPInstanceUID()
getContentLabel
public String getContentLabel()
getContentDescription
public String getContentDescription()
getReferenceEncodedInstanceURL
public String getReferenceEncodedInstanceURL()
getICCProfile
public byte[] getICCProfile()
setICCProfileFromFile
public void setICCProfileFromFile(String filename)
throws IOException
- Throws:
IOException
getAttributeList
public AttributeList getAttributeList()
throws DicomException
- Throws:
DicomException
createDICOMInstance
protected void createDICOMInstance(String dicomFileName,
String iccProfileFileName,
String aet)
throws IOException,
DicomException
Create a DICOM color palette storage instance from the palette characteristics.
- Parameters:
dicomFileName - to writeiccProfileFileName - to readaet - our Application Entity Title to include in the metaheader
- Throws:
IOException
DicomException