Package | Description |
---|---|
org.anchoranalysis.core.cache |
Caching (memozing) calls to a method so an operation does not need to be repeated.
|
org.anchoranalysis.core.functional |
Utilities and interfaces for applying functional-programming.
|
org.anchoranalysis.core.identifier.provider |
A collection of named-elements, a
NamedProvider and related operations. |
org.anchoranalysis.feature.bean.list |
A feature-list (custom list type for features) and associated providers.
|
org.anchoranalysis.image.inference |
Inference of machine learning models on images.
|
org.anchoranalysis.image.io.stack.output.generator |
Base classes for generators that ultimately write a
Stack to the filesystem. |
org.anchoranalysis.image.voxel.object |
The fundamental data class that is an
ObjectMask
and related structures. |
org.anchoranalysis.inference.concurrency |
Specifying how many CPUs and GPUs can be allocated for some purpose.
|
org.anchoranalysis.io.generator |
Base-classes and utilities for generators, which write different types of objects to the file
system.
|
org.anchoranalysis.io.input |
Classes relating to creating inputs for an experiment / task.
|
org.anchoranalysis.plugin.image.task.bean.combine |
Combining multiple images together into a single image.
|
org.anchoranalysis.plugin.image.task.bean.grouped |
Tasks that involved stacks (usually each channel from an image) that are somehow
grouped-together.
|
org.anchoranalysis.plugin.image.task.bean.grouped.histogram |
Task(s) to export histograms of intensity values.
|
org.anchoranalysis.plugin.onnx.model |
Non-bean classes for running an inference model with the ONNX
Runtime.
|
org.anchoranalysis.plugin.opencv.segment |
Non-bean classes pertaining to segmentation.
|
Constructor and Description |
---|
LRUCache(int cacheSize,
CheckedFunction<K,V,E> calculator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static <S,T,E extends Exception> |
FunctionalList.filterAndMapToList(List<S> list,
CheckedPredicate<S,E> predicate,
CheckedFunction<S,T,E> mapFunction)
Creates a new collection by filtering a list and then mapping to a list of another type.
|
static <S,T,E extends Exception> |
OptionalUtilities.flatMap(Optional<S> optional,
CheckedFunction<S,Optional<T>,E> mapFunction)
Like
Optional.flatMap(java.util.function.Function<? super T, java.util.Optional<U>>) but tolerates an exception in the mapping function, which is
immediately thrown. |
static <S,T,E extends Exception> |
CheckedStream.flatMap(java.util.stream.Stream<S> stream,
Class<? extends Exception> throwableClass,
CheckedFunction<S,java.util.stream.Stream<? extends T>,E> flatMapFunction)
Performs a
Stream.flatMap(java.util.function.Function<? super T, ? extends java.util.stream.Stream<? extends R>>) but accepts a function that can throw a checked-exception |
static <S,T,E extends Exception> |
FunctionalList.flatMapToList(Collection<S> collection,
Class<? extends Exception> throwableClass,
CheckedFunction<S,java.util.stream.Stream<? extends T>,E> mapFunction)
Flat-maps a collection to a list where in the original collection can produce many elements
in the outgoing list.
|
static <S,T,E extends Exception> |
OptionalUtilities.map(Optional<S> optional,
CheckedFunction<S,T,E> mapFunction)
Like
Optional.map(java.util.function.Function<? super T, ? extends U>) but tolerates an exception in the mapping function, which is
immediately thrown. |
static <S,T,E extends Exception> |
CheckedStream.map(java.util.stream.Stream<S> stream,
Class<? extends Exception> throwableClass,
CheckedFunction<S,T,E> mapFunction)
Performs a
Stream.map(java.util.function.Function<? super T, ? extends R>) but accepts a function that can throw a checked-exception. |
static <S,T,E extends Exception> |
FunctionalList.mapToList(Collection<S> collection,
Class<? extends Exception> throwableClass,
CheckedFunction<S,T,E> mapFunction)
Like
FunctionalList.mapToList(Object[], Function) but tolerates exceptions in the mapping function. |
static <S,T,E extends Exception> |
FunctionalList.mapToList(S[] array,
Class<? extends Exception> throwableClass,
CheckedFunction<S,T,E> mapFunction)
Like
FunctionalList.mapToList(Object[], Function) but tolerates exceptions in the mapping function. |
static <S,T,E extends Exception> |
FunctionalList.mapToList(java.util.stream.Stream<S> stream,
Class<? extends Exception> throwableClass,
CheckedFunction<S,T,E> mapFunction)
Like
FunctionalList.mapToList(Stream, Function) but tolerates exceptions in the mapping function. |
static <S,T,E extends Exception> |
FunctionalListParallel.mapToListOptional(Collection<S> collection,
Class<? extends Exception> throwableClass,
CheckedFunction<S,Optional<T>,E> mapFunction)
Maps a collection to a list with each element in the original collection maybe producing an
element in the output.
|
static <S,T,E extends Exception> |
FunctionalList.mapToListOptional(Collection<S> collection,
Class<? extends Exception> throwableClass,
CheckedFunction<S,Optional<T>,E> mapFunction)
Maps a collection to a list with each element in the original collection maybe producing an
element in the output.
|
static <S,T,E extends Exception> |
FunctionalList.mapToListOptional(java.util.stream.Stream<S> stream,
Class<? extends Exception> throwableClass,
CheckedFunction<S,Optional<T>,E> mapFunction)
Maps a stream to a list with each element in the original collection maybe producing an
element in the output.
|
Constructor and Description |
---|
NamedProviderBridge(NamedProvider<S> provider,
CheckedFunction<S,T,? extends Exception> bridge)
Creates with a particular provider and bridge.
|
NamedProviderBridge(NamedProvider<S> provider,
CheckedFunction<S,T,? extends Exception> bridge,
boolean bridgeNulls) |
Modifier and Type | Method and Description |
---|---|
<S extends FeatureInput,E extends Exception> |
FeatureList.filterAndMap(java.util.function.Predicate<Feature<T>> predicate,
CheckedFunction<Feature<T>,Feature<S>,E> mappingFunction)
|
static <S,T extends FeatureInput,E extends Exception> |
FeatureListFactory.flatMapFromOptional(Iterable<S> iterable,
CheckedFunction<S,Optional<FeatureList<T>>,E> flatMapFunc)
Creates a new feature-list by flat-mapping an iterable to an optional feature
|
<S extends FeatureInput,E extends Exception> |
FeatureList.map(CheckedFunction<Feature<T>,Feature<S>,E> mapFunc)
Creates a new feature-list where each feature is the result of applying a map-function to an
existing feature.
|
static <S,T extends FeatureInput,E extends Exception> |
FeatureListFactory.mapFrom(Iterable<S> iterable,
CheckedFunction<S,Feature<T>,E> mapFunc)
|
static <S,T extends FeatureInput,E extends Exception> |
FeatureListFactory.mapFromFiltered(Iterable<S> iterable,
java.util.function.Predicate<S> predicate,
CheckedFunction<S,Feature<T>,E> mapFunc)
Creates a new feature-list by filtering an iterable and then mapping it to a feature
|
Modifier and Type | Method and Description |
---|---|
<S> S |
ImageInferenceModel.performInference(T input,
String inputName,
List<String> outputIdentifiers,
CheckedFunction<List<T>,S,OperationFailedException> convertOutput)
Performs inference on a single-input, to create an output.
|
Constructor and Description |
---|
RasterGeneratorBridge(RasterGenerator<V> delegate,
CheckedFunction<T,V,? extends Throwable> elementBridge)
Creates with a delegate and a function to bridge the exposed element-type to the delegate
element-type.
|
Modifier and Type | Method and Description |
---|---|
static <T,E extends Exception> |
ObjectCollectionFactory.filterAndMapFrom(Collection<T> collection,
java.util.function.Predicate<T> predicate,
Class<? extends E> throwableClass,
CheckedFunction<T,ObjectMask,E> mapFunction)
Creates a new collection by filtering an iterable and then mapping it to
ObjectMask . |
<E extends Exception> |
ObjectMaskStream.flatMap(Class<? extends Exception> throwableClass,
CheckedFunction<ObjectMask,ObjectCollection,E> mapFunction)
Like a typical
flatMap() operation but accepts a mapping function that throws a
checked exception. |
static <T,E extends Exception> |
ObjectCollectionFactory.flatMapFrom(java.util.stream.Stream<T> stream,
Class<? extends Exception> throwableClass,
CheckedFunction<T,ObjectCollection,E> mapFunction)
Creates a new collection by flat-mapping an incoming stream to
ObjectCollection and
rethrowing any exception during mapping. |
static <T,E extends Exception> |
ObjectCollectionFactory.flatMapFromCollection(java.util.stream.Stream<T> stream,
Class<? extends Exception> throwableClass,
CheckedFunction<T,java.util.stream.Stream<? extends ObjectMask>,E> mapFunction)
Creates a new
ObjectCollection by flatMapping an incoming stream to Collection<ObjectMask> and rethrowing any exception during mapping. |
static <T,E extends Exception> |
ObjectCollectionFactory.flatMapFromStream(java.util.stream.Stream<T> stream,
Class<? extends Exception> throwableClass,
CheckedFunction<T,java.util.stream.Stream<ObjectMask>,E> mapFunction)
Creates a new collection by flat-mapping an incoming stream to
ObjectCollection and
rethrowing any exception during mapping. |
<E extends Exception> |
ObjectMaskStream.map(CheckedFunction<ObjectMask,ObjectMask,E> mapFunction)
Creates a new
ObjectCollection after mapping each item to another. |
static <T,E extends Exception> |
ObjectCollectionFactory.mapFrom(Iterable<T> iterable,
Class<? extends E> throwableClass,
CheckedFunction<T,ObjectMask,E> mapFunction)
Creates a new collection by mapping an
Iterable to ObjectMask . |
static <T,E extends Exception> |
ObjectCollectionFactory.mapFromOptional(Iterable<T> iterable,
Class<? extends Exception> throwableClass,
CheckedFunction<T,Optional<ObjectMask>,E> mapFunction)
|
static <T,E extends Exception> |
ObjectCollectionFactory.mapFromOptional(Iterator<T> iterator,
Class<? extends Exception> throwableClass,
CheckedFunction<T,Optional<ObjectMask>,E> mapFunction)
|
<T,E extends Exception> |
ObjectMaskStream.mapToList(CheckedFunction<ObjectMask,T,E> mapFunction)
Creates a new
List after mapping each item to another type. |
<T,E extends Exception> |
ObjectMaskStream.mapToListOptional(CheckedFunction<ObjectMask,Optional<T>,E> mapFunction)
Creates a new
List after mapping each item to another (optional) type |
<T,E extends Exception> |
ObjectMaskStream.mapToSortedSet(CheckedFunction<ObjectMask,T,E> mapFunction)
Creates a new
SortedSet after mapping each item to another type. |
Modifier and Type | Method and Description |
---|---|
<S> S |
ConcurrentModelPool.executeOrWait(CheckedFunction<ConcurrentModel<T>,S,ConcurrentModelException> functionToExecute)
Execute on the next available model (or wait until one becomes available).
|
Modifier and Type | Method and Description |
---|---|
static <S,T> GeneratorBridge<S,T> |
GeneratorBridge.createOneToMany(Generator<T> generator,
CheckedFunction<S,java.util.stream.Stream<T>,?> bridge)
Creates a bridge that maps ONE-TO-MANY from source to destination (i.e.
|
static <S,T> GeneratorBridge<S,T> |
GeneratorBridge.createOneToOne(Generator<T> generator,
CheckedFunction<S,T,?> bridge)
Creates a bridge that maps ONE-TO-ONE from source to destination (i.e.
|
Constructor and Description |
---|
SingleFileTypeGeneratorBridge(SingleFileTypeGenerator<V,S> delegate,
CheckedFunction<T,V,? extends Throwable> elementBridge) |
TransformingGeneratorBridge(TransformingGenerator<V,S> delegate,
CheckedFunction<T,V,? extends Throwable> elementBridge) |
Modifier and Type | Method and Description |
---|---|
<S extends InputFromManager,E extends Exception> |
InputsWithDirectory.map(CheckedFunction<T,S,E> mapFunction,
Class<? extends E> throwableClass)
Creates a new
InputsWithDirectory which is the result of mapping the existing inputs. |
Modifier and Type | Method and Description |
---|---|
protected CheckedFunction<Channel,Channel,CreateException> |
AggregateChannelTask.createChannelDeriver(ChannelSource source) |
Modifier and Type | Method and Description |
---|---|
protected abstract CheckedFunction<Channel,S,CreateException> |
GroupedStackBase.createChannelDeriver(ChannelSource source)
A function to derive the individual type used for aggregation from a
Channel . |
Modifier and Type | Method and Description |
---|---|
protected CheckedFunction<Channel,Histogram,CreateException> |
ExportImageHistograms.createChannelDeriver(ChannelSource source) |
Modifier and Type | Method and Description |
---|---|
<S> S |
OnnxModel.performInference(ai.onnxruntime.OnnxTensor input,
String inputName,
List<String> outputNames,
CheckedFunction<List<ai.onnxruntime.OnnxTensor>,S,OperationFailedException> convertFunction) |
Modifier and Type | Method and Description |
---|---|
<S> S |
OpenCVModel.performInference(org.opencv.core.Mat input,
String inputName,
List<String> outputNames,
CheckedFunction<List<org.opencv.core.Mat>,S,OperationFailedException> convertFunction) |
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.