com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class DicomRootPackage

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


    public class DicomRootPackage
    extends ImageRootPackage

    Represents the root package intended to work with metadata in a DICOM image.

    This example demonstrates how to read DICOM format-specific metadata properties.

    try (Metadata metadata = new Metadata(Constants.InputDicom)) {
         DicomRootPackage root = metadata.getRootPackageGeneric();
         if (root.getDicomPackage() != null) {
             System.out.println(root.getDicomPackage().getBitsAllocated());
             System.out.println(root.getDicomPackage().getReds());
             System.out.println(root.getDicomPackage().getGreens());
             System.out.println(root.getDicomPackage().getBlues());
             System.out.println(root.getDicomPackage().getNumberOfFrames());
             // ...
         }
     }
     
    • Method Detail

      • getDicomPackage

        public final DicomPackage getDicomPackage()

        Gets the DICOM native metadata package.

        Returns:
        The DICOM native metadata package.