Class SetOfFrameSets
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<FrameSet>,Collection<FrameSet>,Set<FrameSet>
A class to describe a set of frame sets, each of which shares common characteristics suitable for display or analysis as an entity.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty new set ofFrameSets.SetOfFrameSets(String[] paths) Create a new set ofFrameSets, from a set of DICOM files.SetOfFrameSets(Set<File> files) Create a new set ofFrameSets, from a set of DICOM files. -
Method Summary
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAllMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
SetOfFrameSets
public SetOfFrameSets()Create an empty new set of
FrameSets. -
SetOfFrameSets
Create a new set of
FrameSets, from a set of DICOM files.Non-DICOM files and problems parsing files are ignored, rather than causing failure
- Parameters:
files- a set of files
-
SetOfFrameSets
Create a new set of
FrameSets, from a set of DICOM files.Non-DICOM files and problems parsing files are ignored, rather than causing failure
- Parameters:
paths- a set of paths of filenames and/or folder names of files containing the images
-
-
Method Details
-
insertIntoFrameSets
Insert a single frame object into the set of existing
FrameSets, creating newFrameSets as necessary.Multi-frame, especially enhanced multi-frame, objects are not yet supported, since one purpose of this is to use
FrameSets to create or simulate them. In future, support of creation ofFrameSets from functional groups, and from frame vectors (as in NM images esp. RECON TOMO) may be added.- Parameters:
list- a list of DICOM attributes for an object- Throws:
DicomException- if no SOP Instance UID
-
toString
Return a String representing this object's value.
- Overrides:
toStringin classAbstractCollection<FrameSet>- Returns:
- a string representation of the value of this object
-
main
For testing, read all DICOM files and partition them into
FrameSets.- Parameters:
arg- the filenames and/or folder names of files containing the images
-