Class VOI
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<ROI>, Collection<ROI>, Deque<ROI>, List<ROI>, Queue<ROI>, SequencedCollection<ROI>
A volume-of-interest, which is a stack of ROIs that connect in 3-D across slices.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an ROI to this VOI.booleanTests whether this volume of interest (VOI) contains an ROI.doublegetVolume(float pixelZSize) Returns the volume of a VOI.booleanintersects(ROI roi) Tests whether this volume of interest (VOI) intersects an ROI.Methods inherited from class LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, reversed, set, size, spliterator, toArray, toArrayMethods inherited from class AbstractSequentialList
iteratorMethods inherited from class AbstractList
equals, hashCode, listIterator, subListMethods inherited from class AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
VOI
public VOI()Creates a new (empty) VOI.
-
-
Method Details
-
addROI
-
getVOIs
-
contains
Tests whether this volume of interest (VOI) contains an ROI.- Parameters:
roi- the ROI to test whether it is contained in this VOI.- Returns:
- true if the roi is within the VOI; false otherwise.
-
intersects
Tests whether this volume of interest (VOI) intersects an ROI.- Parameters:
roi- the ROI to test whether it is intersected by this VOI.- Returns:
- true if the roi intersects the VOI; false otherwise.
-
getVolume
public double getVolume(float pixelZSize) Returns the volume of a VOI. The volume is simply the summed area of all ROIs within a VOI, multiplied by the distance between slices.- Parameters:
pixelZSize- the distance between slice centres.- Returns:
- the volume (in cubic mm) of the supplied VOI.
-