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()); // ... } }
Modifier and Type | Method and Description |
---|---|
DicomPackage |
getDicomPackage()
Gets the DICOM native metadata package.
|
getImageType
getFileType, sanitize
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final DicomPackage getDicomPackage()
Gets the DICOM native metadata package.