public class ImageLibrary
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ImageLibrary.ImageLibraryEntry |
Modifier and Type | Field and Description |
---|---|
protected CompositeInstanceContext |
compositeInstanceContext |
protected java.util.Map<java.lang.String,ImageLibrary.ImageLibraryEntry> |
entriesIndexedBySOPInstanceUID |
Constructor and Description |
---|
ImageLibrary() |
ImageLibrary(AttributeList list) |
ImageLibrary(ContentItem imageLibraryContainer,
AttributeList list) |
ImageLibrary(java.util.Set<java.io.File> files) |
protected java.util.Map<java.lang.String,ImageLibrary.ImageLibraryEntry> entriesIndexedBySOPInstanceUID
protected CompositeInstanceContext compositeInstanceContext
public ImageLibrary()
public ImageLibrary(AttributeList list) throws DicomException
DicomException
public ImageLibrary(ContentItem imageLibraryContainer, AttributeList list)
public ImageLibrary(java.util.Set<java.io.File> files) throws java.io.IOException, DicomException
java.io.IOException
DicomException
public ImageLibrary.ImageLibraryEntry makeImageLibraryEntry(ContentItemFactory.ImageContentItem imageContentItem, java.util.Map<java.lang.String,HierarchicalSOPInstanceReference> hierarchicalSOPInstanceReferencesIndexedBySOPInstanceUID)
public ImageLibrary.ImageLibraryEntry makeImageLibraryEntry(AttributeList list) throws DicomException
DicomException
public java.lang.String toString()
toString
in class java.lang.Object
public SequenceAttribute getCommonInstanceReferenceModuleReferencedSeriesSequence(java.lang.String studyInstanceUID) throws DicomException
DicomException
public SequenceAttribute getHierarchicalEvidenceSequence() throws DicomException
DicomException
public static ContentItem findImageLibraryContainer(ContentItem node)
protected java.util.Map<java.lang.String,HierarchicalSOPInstanceReference> getHierarchicalSOPInstanceReferencesIndexedBySOPInstanceUID(AttributeList list)
protected void constructImageLibrary(ContentItem imageLibraryContainer, AttributeList list)
public ContentItem getStructuredReportFragment(ContentItem root) throws DicomException
DicomException
public StructuredReport getStructuredReport() throws DicomException
DicomException
public AttributeList getAttributeList() throws DicomException
DicomException
public void write(java.lang.String filename) throws DicomException, java.io.IOException
DicomException
java.io.IOException
public static ImageLibrary read(java.lang.String filename) throws DicomException, java.io.IOException
DicomException
java.io.IOException
public ImageLibrary.ImageLibraryEntry addImage(AttributeList list) throws DicomException
DicomException
public static void main(java.lang.String[] arg)
Create an SR Image Library from a bunch of DICOM image instances.
Adds a new series (instance UID) to the existing study (instance UID).
arg
- the path for the SR Image Library output, then the filenames and/or folder names of files containing the input image files