com.pixelmed.dicom
Class ImageLibrary

java.lang.Object
  extended by com.pixelmed.dicom.ImageLibrary
Direct Known Subclasses:
CrossSectionalImageLibrary, ProjectionXRayImageLibrary

public class ImageLibrary
extends Object


Nested Class Summary
static class ImageLibrary.ImageLibraryEntry
           
 
Field Summary
protected  CompositeInstanceContext compositeInstanceContext
           
protected  Map<String,ImageLibrary.ImageLibraryEntry> entriesIndexedBySOPInstanceUID
           
 
Constructor Summary
ImageLibrary()
           
ImageLibrary(AttributeList list)
           
ImageLibrary(ContentItem imageLibraryContainer, AttributeList list)
           
ImageLibrary(Set<File> files)
           
 
Method Summary
 ImageLibrary.ImageLibraryEntry addImage(AttributeList list)
           
protected  void constructImageLibrary(ContentItem imageLibraryContainer, AttributeList list)
           
static ContentItem findImageLibraryContainer(ContentItem node)
           
 AttributeList getAttributeList()
           
 SequenceAttribute getCommonInstanceReferenceModuleReferencedSeriesSequence(String studyInstanceUID)
           
 SequenceAttribute getHierarchicalEvidenceSequence()
           
protected  Map<String,HierarchicalSOPInstanceReference> getHierarchicalSOPInstanceReferencesIndexedBySOPInstanceUID(AttributeList list)
           
 StructuredReport getStructuredReport()
           
 ContentItem getStructuredReportFragment(ContentItem root)
           
static void main(String[] arg)
          Create an SR Image Library from a bunch of DICOM image instances.
 ImageLibrary.ImageLibraryEntry makeImageLibraryEntry(AttributeList list)
           
 ImageLibrary.ImageLibraryEntry makeImageLibraryEntry(ContentItemFactory.ImageContentItem imageContentItem, Map<String,HierarchicalSOPInstanceReference> hierarchicalSOPInstanceReferencesIndexedBySOPInstanceUID)
           
static ImageLibrary read(String filename)
           
 String toString()
           
 void write(String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entriesIndexedBySOPInstanceUID

protected Map<String,ImageLibrary.ImageLibraryEntry> entriesIndexedBySOPInstanceUID

compositeInstanceContext

protected CompositeInstanceContext compositeInstanceContext
Constructor Detail

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
Method Detail

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