Package com.pixelmed.dicom
Class ColorPalette
java.lang.Object
com.pixelmed.dicom.ColorPalette
- Direct Known Subclasses:
ColorPaletteHotIron
,ColorPaletteHotMetalBlue
,ColorPalettePET
,ColorPalettePET20Step
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createDICOMInstance
(String dicomFileName, String iccProfileFileName, String aet) Create a DICOM color palette storage instance from the palette characteristics.byte[]
void
setICCProfileFromFile
(String filename)
-
Field Details
-
sopInstanceUID
-
contentLabel
-
contentDescription
-
contentCreatorName
-
referenceEncodedInstanceURL
-
alternateContentDescription
-
alternateContentLanguageCodeValue
-
alternateContentLanguageCodeMeaning
-
red
protected byte[] red -
green
protected byte[] green -
blue
protected byte[] blue -
iccProfile
protected byte[] iccProfile -
list
-
-
Constructor Details
-
ColorPalette
protected ColorPalette()
-
-
Method Details
-
getSOPInstanceUID
-
getContentLabel
-
getContentDescription
-
getReferenceEncodedInstanceURL
-
getICCProfile
public byte[] getICCProfile() -
setICCProfileFromFile
- Throws:
IOException
-
getAttributeList
- 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
- if an I/O error occursDicomException
- if error in DICOM encoding
-