Interface HistogramSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Subinterfaces:
ImageHistogramModule
All Known Implementing Classes:
DigitalIntraOralXRayImageIOD, DigitalMammographyXRayImageIOD, DigitalXRayImageIOD
Enclosing class:
HistogramSequence

public static interface HistogramSequence.Holder extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "Histogram Sequence" (see HistogramSequence)
  • Method Details

    • wrap

      static HistogramSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - An attributes object containing the Histogram Sequence (see HistogramSequence)
      Returns:
      A wrapper object implementing the HistogramSequence.Holder interface.
    • getHistogramSequence

      default HistogramSequence getHistogramSequence()
      Returns:
      the Histogram Sequence (see HistogramSequence)
    • newHistogramSequence

      default HistogramSequence newHistogramSequence(int initialCapacity)
      Adds a new Histogram Sequence. (see HistogramSequence)
      Parameters:
      initialCapacity - the initial capacity for the new Histogram Sequence
    • ensureHistogramSequence

      default HistogramSequence ensureHistogramSequence(int initialCapacity)
      Adds a new Histogram Sequence (see HistogramSequence) if it does not already exist. (see Attributes.ensureSequence(int, int)
      Parameters:
      initialCapacity - The initial capacity (see ArrayList(int)) if a new Histogram Sequence is created.
      Returns:
      Either the already existing Histogram Sequence (see HistogramSequence) or a new one with capacity initialCapacity.
    • ensureHistogramSequence

      default HistogramSequence ensureHistogramSequence()
      Adds a new Histogram Sequence (see HistogramSequence) with initial capacity 1 (see ensureHistogramSequence(int)) if it does not already exist.
      Returns:
      Either the already existing Histogram Sequence (see HistogramSequence) or a new one with capacity 1.
    • containsHistogramSequence

      default boolean containsHistogramSequence()
      Returns:
      Whether it contains the Histogram Sequence (see HistogramSequence)
    • removeHistogramSequence

      default void removeHistogramSequence()
      Removes the Histogram Sequence (see HistogramSequence