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.

  • Field Details

    • 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
  • Constructor Details

    • ColorPalette

      protected ColorPalette()
  • Method Details

    • 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 write
      iccProfileFileName - to read
      aet - our Application Entity Title to include in the metaheader
      Throws:
      IOException - if an I/O error occurs
      DicomException - if error in DICOM encoding