Package com.xinapse.multisliceimage.roi
Class VOI
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<ROI>,Collection<ROI>,Deque<ROI>,List<ROI>,Queue<ROI>
A volume-of-interest, which is a stack of ROIs that connect in 3-D across slices.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
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 java.util.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, set, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSequentialList
iteratorMethods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.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
Add an ROI to this VOI.- Parameters:
roi- the ROI to add.
-
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.
-