com.pixelmed.dicom
Class ImageLibrary
java.lang.Object
com.pixelmed.dicom.ImageLibrary
- Direct Known Subclasses:
- CrossSectionalImageLibrary, ProjectionXRayImageLibrary
public class ImageLibrary
- extends Object
entriesIndexedBySOPInstanceUID
protected Map<String,ImageLibrary.ImageLibraryEntry> entriesIndexedBySOPInstanceUID
compositeInstanceContext
protected CompositeInstanceContext compositeInstanceContext
ImageLibrary
public ImageLibrary()
ImageLibrary
public ImageLibrary(AttributeList list)
throws DicomException
- Throws:
DicomException
ImageLibrary
public ImageLibrary(ContentItem imageLibraryContainer,
AttributeList list)
ImageLibrary
public ImageLibrary(Set<File> files)
throws IOException,
DicomException
- Throws:
IOException
DicomException
makeImageLibraryEntry
public ImageLibrary.ImageLibraryEntry makeImageLibraryEntry(ContentItemFactory.ImageContentItem imageContentItem,
Map<String,HierarchicalSOPInstanceReference> hierarchicalSOPInstanceReferencesIndexedBySOPInstanceUID)
makeImageLibraryEntry
public ImageLibrary.ImageLibraryEntry makeImageLibraryEntry(AttributeList list)
throws DicomException
- Throws:
DicomException
toString
public String toString()
- Overrides:
toString in class Object
getCommonInstanceReferenceModuleReferencedSeriesSequence
public SequenceAttribute getCommonInstanceReferenceModuleReferencedSeriesSequence(String studyInstanceUID)
throws DicomException
- Throws:
DicomException
getHierarchicalEvidenceSequence
public SequenceAttribute getHierarchicalEvidenceSequence()
throws DicomException
- Throws:
DicomException
findImageLibraryContainer
public static ContentItem findImageLibraryContainer(ContentItem node)
getHierarchicalSOPInstanceReferencesIndexedBySOPInstanceUID
protected Map<String,HierarchicalSOPInstanceReference> getHierarchicalSOPInstanceReferencesIndexedBySOPInstanceUID(AttributeList list)
constructImageLibrary
protected void constructImageLibrary(ContentItem imageLibraryContainer,
AttributeList list)
getStructuredReportFragment
public ContentItem getStructuredReportFragment(ContentItem root)
throws DicomException
- Throws:
DicomException
getStructuredReport
public StructuredReport getStructuredReport()
throws DicomException
- Throws:
DicomException
getAttributeList
public AttributeList getAttributeList()
throws DicomException
- Throws:
DicomException
write
public void write(String filename)
throws DicomException,
IOException
- Throws:
DicomException
IOException
read
public static ImageLibrary read(String filename)
throws DicomException,
IOException
- Throws:
DicomException
IOException
addImage
public ImageLibrary.ImageLibraryEntry addImage(AttributeList list)
throws DicomException
- Throws:
DicomException
main
public static void main(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).
- Parameters:
arg - the path for the SR Image Library output, then the filenames and/or folder names of files containing the input image files