DicomRootPackage
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage, com.groupdocs.metadata.core.ImageRootPackage
public class DicomRootPackage extends ImageRootPackage
Represents the root package intended to work with metadata in a DICOM image.
Learn more
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()); // … } }
Methods
Method | Description |
---|---|
getDicomPackage() | Gets the DICOM native metadata package. |
getDicomPackage()
public final DicomPackage getDicomPackage()
Gets the DICOM native metadata package.
Returns: DicomPackage - The DICOM native metadata package.