Uses of Class
org.anchoranalysis.image.voxel.object.ObjectCollection
Packages that use ObjectCollection
Package
Description
A region in proximity to a voxel, encompassing this voxel as well as others.
The fundamental data class that is an
ObjectMask
and related structures.-
Uses of ObjectCollection in org.anchoranalysis.image.voxel.binary.connected
Methods in org.anchoranalysis.image.voxel.binary.connected that return ObjectCollectionModifier and TypeMethodDescriptionObjectsFromConnectedComponentsFactory.createUnsignedByte(BinaryVoxels<UnsignedByteBuffer> voxels) Finds the connected-components in unsigned byte voxels.ObjectsFromConnectedComponentsFactory.createUnsignedInt(BinaryVoxels<UnsignedIntBuffer> voxels) Finds the connected-components in unsigned int voxels. -
Uses of ObjectCollection in org.anchoranalysis.image.voxel.neighborhood
Methods in org.anchoranalysis.image.voxel.neighborhood with parameters of type ObjectCollectionModifier and TypeMethodDescriptionstatic GraphWithPayload<ObjectMask, Integer> NeighborGraph.create(ObjectCollection objects, Extent sceneExtent, boolean preventObjectIntersection, boolean do3D) Create the graph with object-masks as vertices, where edges represent the number of neighboring voxels between objects. -
Uses of ObjectCollection in org.anchoranalysis.image.voxel.object
Methods in org.anchoranalysis.image.voxel.object that return ObjectCollectionModifier and TypeMethodDescriptionObjectCollection.createSubset(Collection<Integer> indices) A subset of the collection identified by particular indices.ObjectCollection.duplicate()Deep copy, including duplicatingObjectMasks.ObjectCollection.duplicateShallow()Shallow copy of objects.static ObjectCollectionObjectCollectionFactory.empty()Creates a newly created object-collection that is empty.ObjectMaskStream.filter(Predicate<ObjectMask> predicate) Filters aObjectCollectionto include certain items based on a predicate<E extends Exception>
ObjectCollectionObjectMaskStream.filter(CheckedPredicate<ObjectMask, E> predicate, Class<? extends Exception> throwableClass) Filters aObjectCollectionto include certain items based on a predicateObjectMaskStream.filterAndMap(Predicate<ObjectMask> predicate, UnaryOperator<ObjectMask> mapFunction) Performs aObjectMaskStream.filter(java.util.function.Predicate<org.anchoranalysis.image.voxel.object.ObjectMask>)and then aObjectMaskStream.map(org.anchoranalysis.core.functional.checked.CheckedFunction<org.anchoranalysis.image.voxel.object.ObjectMask, org.anchoranalysis.image.voxel.object.ObjectMask, E>).static <T, E extends Exception>
ObjectCollectionObjectCollectionFactory.filterAndMapFrom(Collection<T> collection, Predicate<T> predicate, Class<? extends E> throwableClass, CheckedFunction<T, ObjectMask, E> mapFunction) Creates a new collection by filtering an iterable and then mapping it toObjectMask.static <T> ObjectCollectionObjectCollectionFactory.filterAndMapFrom(Collection<T> collection, Predicate<T> predicate, Function<T, ObjectMask> mapFunction) Creates a new collection by filtering an iterable and then mapping it toObjectMask.static <T, E extends Exception>
ObjectCollectionObjectCollectionFactory.filterAndMapWithIndexFrom(List<T> list, Predicate<T> predicate, Class<? extends E> throwableClass, CheckedBiFunction<T, Integer, ObjectMask, E> mapFunctionWithIndex) Creates a new collection by filtering a list and then mapping from it toObjectMask.ObjectMaskStream.filterExclude(Predicate<ObjectMask> predicate) Filters aObjectCollectionto exclude certain items based on a predicateObjectMaskStream.filterSubset(Predicate<ObjectMask> predicate, Collection<Integer> indices) LikeObjectMaskStream.filter(java.util.function.Predicate<org.anchoranalysis.image.voxel.object.ObjectMask>)but only operates on certain indices of the collection.<E extends Exception>
ObjectCollectionObjectMaskStream.flatMap(Class<? extends Exception> throwableClass, CheckedFunction<ObjectMask, ObjectCollection, E> mapFunction) Like a typicalflatMap()operation but accepts a mapping function that throws a checked exception.ObjectMaskStream.flatMap(Function<ObjectMask, ObjectCollection> mapFunction) Creates a newObjectCollectionafter mapping each item to several others.static <T> ObjectCollectionObjectCollectionFactory.flatMapFrom(Collection<T> collection, Function<T, ObjectCollection> mapFunction) Creates a new collection by flat-mapping an incoming stream toObjectCollection.static <T, E extends Exception>
ObjectCollectionObjectCollectionFactory.flatMapFrom(Stream<T> stream, Class<? extends Exception> throwableClass, CheckedFunction<T, ObjectCollection, E> mapFunction) Creates a new collection by flat-mapping an incoming stream toObjectCollectionand rethrowing any exception during mapping.static <T, E extends Exception>
ObjectCollectionObjectCollectionFactory.flatMapFromCollection(Stream<T> stream, Class<? extends Exception> throwableClass, CheckedFunction<T, Stream<? extends ObjectMask>, E> mapFunction) Creates a newObjectCollectionby flatMapping an incoming stream toCollection<ObjectMask>and rethrowing any exception during mapping.static <E extends Exception>
ObjectCollectionObjectCollectionFactory.flatMapFromRange(int startInclusive, int endExclusive, Class<? extends Exception> throwableClass, CheckedIntFunction<ObjectCollection, E> mapFunction) Creates a new collection by flat-mapping integers (from a range) each to aObjectCollection.static ObjectCollectionObjectCollectionFactory.flatMapFromRange(int startInclusive, int endExclusive, IntFunction<ObjectCollection> mapFunction) Creates a new collection by flat-mapping integers (from a range) each to aObjectCollection.static <T, E extends Exception>
ObjectCollectionObjectCollectionFactory.flatMapFromStream(Stream<T> stream, Class<? extends Exception> throwableClass, CheckedFunction<T, Stream<ObjectMask>, E> mapFunction) Creates a new collection by flat-mapping an incoming stream toObjectCollectionand rethrowing any exception during mapping.static ObjectCollectionObjectCollectionFactory.fromRepeated(int repeats, Supplier<ObjectMask> createObjectMask) Creates a new collection by repeatedly calling a function to create a singleObjectMask.static ObjectCollectionObjectCollectionFactory.fromSet(Set<ObjectMask> set) Creates a new collection from a set ofObjectMask.<E extends Exception>
ObjectCollectionObjectMaskStream.map(CheckedFunction<ObjectMask, ObjectMask, E> mapFunction) Creates a newObjectCollectionafter mapping each item to another.ObjectMaskStream.mapBoundingBoxChangeExtent(BoundingBox boxToAssign) Creates a newObjectCollectionafter mapping the bounding-box on each object (while maybe changing the extent).ObjectMaskStream.mapBoundingBoxPreserveExtent(UnaryOperator<BoundingBox> mapFunction) Creates a newObjectCollectionafter mapping the bounding-box on each object (whose extent should remain unchanged).static <T, E extends Exception>
ObjectCollectionObjectCollectionFactory.mapFrom(Iterable<T> iterable, Class<? extends E> throwableClass, CheckedFunction<T, ObjectMask, E> mapFunction) Creates a new collection by mapping anIterabletoObjectMask.static <T> ObjectCollectionObjectCollectionFactory.mapFrom(Iterable<T> iterable, Function<T, ObjectMask> mapFunction) Creates a new collection by mapping anIterabletoObjectMask.static <T, E extends Exception>
ObjectCollectionObjectCollectionFactory.mapFromOptional(Iterable<T> iterable, Class<? extends Exception> throwableClass, CheckedFunction<T, Optional<ObjectMask>, E> mapFunction) static <T> ObjectCollectionObjectCollectionFactory.mapFromOptional(Iterable<T> iterable, Function<T, Optional<ObjectMask>> mapFunction) static <T, E extends Exception>
ObjectCollectionObjectCollectionFactory.mapFromOptional(Iterator<T> iterator, Class<? extends Exception> throwableClass, CheckedFunction<T, Optional<ObjectMask>, E> mapFunction) static <T> ObjectCollectionObjectCollectionFactory.mapFromOptional(Iterator<T> iterator, Function<T, Optional<ObjectMask>> mapFunction) static <E extends Exception>
ObjectCollectionObjectCollectionFactory.mapFromRange(int startInclusive, int endExclusive, Class<? extends Exception> throwableClass, CheckedIntFunction<ObjectMask, E> mapFunction) Creates a new collection by mapping integers (from a range) each to aObjectMask.static ObjectCollectionObjectCollectionFactory.mapFromRange(int startInclusive, int endExclusive, IntFunction<ObjectMask> mapFunction) Creates a new collection by mapping integers (from a range) each to aObjectMask.static ObjectCollectionObjectCollectionFactory.of(Collection<ObjectMask>... collections) Creates a new collection with elements copied from existing collections.static ObjectCollectionObjectCollectionFactory.of(Optional<ObjectCollection>... collections) Creates a new collection with elements copied from existing collections, if they exist.static ObjectCollectionObjectCollectionFactory.of(BinaryVoxels<UnsignedByteBuffer>... masks) Creates a new collection with elements from the parameter-list ofBinaryVoxelsconverting the voxels in their entirety to an object-mask at the origin.static ObjectCollectionObjectCollectionFactory.of(ObjectCollection... collection) Creates a new collection with elements copied from existing collections.static ObjectCollectionObjectCollectionFactory.of(ObjectMask... object) Creates a new collection with elements from the parameter-list.ObjectCollection.shiftBy(ReadableTuple3i shiftBy) Shifts the bounding-box of each object by adding to it.Methods in org.anchoranalysis.image.voxel.object with parameters of type ObjectCollectionModifier and TypeMethodDescriptionstatic IntersectingObjects<ObjectMask> IntersectingObjects.create(ObjectCollection objects) Creates from anObjectCollection.booleanObjectCollection.equalsDeep(ObjectCollection other) Checks if two collections are equal in a deeper way.static ObjectCollectionObjectCollectionFactory.of(ObjectCollection... collection) Creates a new collection with elements copied from existing collections.Method parameters in org.anchoranalysis.image.voxel.object with type arguments of type ObjectCollectionModifier and TypeMethodDescription<E extends Exception>
ObjectCollectionObjectMaskStream.flatMap(Class<? extends Exception> throwableClass, CheckedFunction<ObjectMask, ObjectCollection, E> mapFunction) Like a typicalflatMap()operation but accepts a mapping function that throws a checked exception.ObjectMaskStream.flatMap(Function<ObjectMask, ObjectCollection> mapFunction) Creates a newObjectCollectionafter mapping each item to several others.static <T> ObjectCollectionObjectCollectionFactory.flatMapFrom(Collection<T> collection, Function<T, ObjectCollection> mapFunction) Creates a new collection by flat-mapping an incoming stream toObjectCollection.static <T, E extends Exception>
ObjectCollectionObjectCollectionFactory.flatMapFrom(Stream<T> stream, Class<? extends Exception> throwableClass, CheckedFunction<T, ObjectCollection, E> mapFunction) Creates a new collection by flat-mapping an incoming stream toObjectCollectionand rethrowing any exception during mapping.static <E extends Exception>
ObjectCollectionObjectCollectionFactory.flatMapFromRange(int startInclusive, int endExclusive, Class<? extends Exception> throwableClass, CheckedIntFunction<ObjectCollection, E> mapFunction) Creates a new collection by flat-mapping integers (from a range) each to aObjectCollection.static ObjectCollectionObjectCollectionFactory.flatMapFromRange(int startInclusive, int endExclusive, IntFunction<ObjectCollection> mapFunction) Creates a new collection by flat-mapping integers (from a range) each to aObjectCollection.Constructors in org.anchoranalysis.image.voxel.object with parameters of type ObjectCollection