DicomRootPackage
Leave feedback
On this page
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()); // … } }
| Method | Description |
|---|---|
| getDicomPackage() | Gets the DICOM native metadata package. |
public final DicomPackage getDicomPackage()
Gets the DICOM native metadata package.
Returns: DicomPackage - The DICOM native metadata package.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.