Uses of Interface
org.anchoranalysis.core.functional.checked.CheckedFunction
Packages that use CheckedFunction
Package
Description
Caching (memozing) calls to a method so an operation does not need to be repeated.
Utilities and interfaces for applying functional-programming.
A collection of named-elements, a
NamedProvider
and related operations.A feature-list (custom list type for features) and associated providers.
Inference of machine learning models on images.
Base classes for generators that ultimately write a
Stack
to the filesystem.The fundamental data class that is an
ObjectMask
and related structures.Specifying how many CPUs and GPUs can be allocated for some purpose.
Base-classes and utilities for generators, which write different types of objects to the file
system.
Classes relating to creating inputs for an experiment / task.
Combining multiple images together into a single image.
Tasks that involved stacks (usually each channel from an image) that are somehow
grouped-together.
Task(s) to export histograms of intensity values.
Non-bean classes for running an inference model with the ONNX
Runtime.
Non-bean classes pertaining to segmentation.
-
Uses of CheckedFunction in org.anchoranalysis.core.cache
Constructors in org.anchoranalysis.core.cache with parameters of type CheckedFunctionModifierConstructorDescriptionLRUCache
(int cacheSize, CheckedFunction<K, V, E> calculator) Constructor. -
Uses of CheckedFunction in org.anchoranalysis.core.functional
Methods in org.anchoranalysis.core.functional with parameters of type CheckedFunctionModifier and TypeMethodDescriptionstatic <S,
T, E extends Exception>
LinkedList<T> 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.CheckedStream.flatMap
(Stream<S> stream, Class<? extends Exception> throwableClass, CheckedFunction<S, Stream<? extends T>, E> flatMapFunction) Performs aStream.flatMap(java.util.function.Function<? super T, ? extends java.util.stream.Stream<? extends R>>)
but accepts a function that can throw a checked-exceptionOptionalUtilities.flatMap
(Optional<S> optional, CheckedFunction<S, Optional<T>, E> mapFunction) LikeOptional.flatMap(java.util.function.Function<? super T, ? extends java.util.Optional<? extends U>>)
but tolerates an exception in the mapping function, which is immediately thrown.FunctionalList.flatMapToList
(Collection<S> collection, Class<? extends Exception> throwableClass, CheckedFunction<S, 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.CheckedStream.map
(Stream<S> stream, Class<? extends Exception> throwableClass, CheckedFunction<S, T, E> mapFunction) Performs aStream.map(java.util.function.Function<? super T, ? extends R>)
but accepts a function that can throw a checked-exception.OptionalUtilities.map
(Optional<S> optional, CheckedFunction<S, T, E> mapFunction) LikeOptional.map(java.util.function.Function<? super T, ? extends U>)
but tolerates an exception in the mapping function, which is immediately thrown.FunctionalList.mapToList
(Collection<S> collection, Class<? extends Exception> throwableClass, CheckedFunction<S, T, E> mapFunction) LikeFunctionalList.mapToList(Object[], Function)
but tolerates exceptions in the mapping function.FunctionalList.mapToList
(Stream<S> stream, Class<? extends Exception> throwableClass, CheckedFunction<S, T, E> mapFunction) LikeFunctionalList.mapToList(Stream, Function)
but tolerates exceptions in the mapping function.FunctionalList.mapToList
(S[] array, Class<? extends Exception> throwableClass, CheckedFunction<S, T, E> mapFunction) LikeFunctionalList.mapToList(Object[], Function)
but tolerates exceptions in the mapping function.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.FunctionalList.mapToListOptional
(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.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. -
Uses of CheckedFunction in org.anchoranalysis.core.identifier.provider
Constructors in org.anchoranalysis.core.identifier.provider with parameters of type CheckedFunctionModifierConstructorDescriptionNamedProviderBridge
(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) Creates a newNamedProviderBridge
instance. -
Uses of CheckedFunction in org.anchoranalysis.feature.bean.list
Methods in org.anchoranalysis.feature.bean.list with parameters of type CheckedFunctionModifier and TypeMethodDescription<S extends FeatureInput,
E extends Exception>
FeatureList<S> FeatureList.filterAndMap
(Predicate<Feature<T>> predicate, CheckedFunction<Feature<T>, Feature<S>, E> mappingFunction) static <S,
T extends FeatureInput, E extends Exception>
FeatureList<T> 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<S> 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>
FeatureList<T> FeatureListFactory.mapFrom
(Iterable<S> iterable, CheckedFunction<S, Feature<T>, E> mapFunc) static <S,
T extends FeatureInput, E extends Exception>
FeatureList<T> FeatureListFactory.mapFromFiltered
(Iterable<S> iterable, 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 -
Uses of CheckedFunction in org.anchoranalysis.image.inference
Methods in org.anchoranalysis.image.inference with parameters of type CheckedFunctionModifier and TypeMethodDescription<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. -
Uses of CheckedFunction in org.anchoranalysis.image.io.stack.output.generator
Constructors in org.anchoranalysis.image.io.stack.output.generator with parameters of type CheckedFunctionModifierConstructorDescriptionRasterGeneratorBridge
(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. -
Uses of CheckedFunction in org.anchoranalysis.image.voxel.object
Methods in org.anchoranalysis.image.voxel.object with parameters of type CheckedFunctionModifier and TypeMethodDescriptionstatic <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
.<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.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 toObjectCollection
and 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 newObjectCollection
by flatMapping an incoming stream toCollection<ObjectMask>
and rethrowing any exception during mapping.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 toObjectCollection
and rethrowing any exception during mapping.<E extends Exception>
ObjectCollectionObjectMaskStream.map
(CheckedFunction<ObjectMask, ObjectMask, E> mapFunction) Creates a newObjectCollection
after mapping each item to another.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 anIterable
toObjectMask
.static <T,
E extends Exception>
ObjectCollectionObjectCollectionFactory.mapFromOptional
(Iterable<T> iterable, Class<? extends Exception> throwableClass, CheckedFunction<T, Optional<ObjectMask>, E> mapFunction) static <T,
E extends Exception>
ObjectCollectionObjectCollectionFactory.mapFromOptional
(Iterator<T> iterator, Class<? extends Exception> throwableClass, CheckedFunction<T, Optional<ObjectMask>, E> mapFunction) ObjectMaskStream.mapToList
(CheckedFunction<ObjectMask, T, E> mapFunction) Creates a newList
after mapping each item to another type.ObjectMaskStream.mapToListOptional
(CheckedFunction<ObjectMask, Optional<T>, E> mapFunction) Creates a newList
after mapping each item to another (optional) typeObjectMaskStream.mapToSortedSet
(CheckedFunction<ObjectMask, T, E> mapFunction) Creates a newSortedSet
after mapping each item to another type. -
Uses of CheckedFunction in org.anchoranalysis.inference.concurrency
Methods in org.anchoranalysis.inference.concurrency with parameters of type CheckedFunctionModifier and TypeMethodDescription<S> S
ConcurrentModelPool.executeOrWait
(CheckedFunction<ConcurrentModel<T>, S, ConcurrentModelException> functionToExecute) Execute on the next available model (or wait until one becomes available). -
Uses of CheckedFunction in org.anchoranalysis.io.generator
Methods in org.anchoranalysis.io.generator with parameters of type CheckedFunctionModifier and TypeMethodDescriptionstatic <S,
T> GeneratorBridge <S, T> GeneratorBridge.createOneToMany
(Generator<T> generator, CheckedFunction<S, Stream<T>, ?> bridge) Creates a bridge that maps ONE-TO-MANY from source to destination (i.e. one or more calls to the generator for each source item)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. one call to the generator for each source item)Constructors in org.anchoranalysis.io.generator with parameters of type CheckedFunctionModifierConstructorDescriptionSingleFileTypeGeneratorBridge
(SingleFileTypeGenerator<V, S> delegate, CheckedFunction<T, V, ? extends Throwable> elementBridge) Creates a newSingleFileTypeGeneratorBridge
instance.TransformingGeneratorBridge
(TransformingGenerator<V, S> delegate, CheckedFunction<T, V, ? extends Throwable> elementBridge) -
Uses of CheckedFunction in org.anchoranalysis.io.input
Methods in org.anchoranalysis.io.input with parameters of type CheckedFunctionModifier and TypeMethodDescription<S extends InputFromManager,
E extends Exception>
InputsWithDirectory<S> InputsWithDirectory.map
(CheckedFunction<T, S, E> mapFunction, Class<? extends E> throwableClass) Creates a newInputsWithDirectory
which is the result of mapping the existing inputs. -
Uses of CheckedFunction in org.anchoranalysis.plugin.image.task.bean.combine
Methods in org.anchoranalysis.plugin.image.task.bean.combine that return CheckedFunctionModifier and TypeMethodDescriptionprotected CheckedFunction
<Channel, Channel, CreateException> AggregateChannelTask.createChannelDeriver
(ChannelSource source) -
Uses of CheckedFunction in org.anchoranalysis.plugin.image.task.bean.grouped
Methods in org.anchoranalysis.plugin.image.task.bean.grouped that return CheckedFunctionModifier and TypeMethodDescriptionprotected abstract CheckedFunction
<Channel, S, CreateException> GroupedStackBase.createChannelDeriver
(ChannelSource source) A function to derive the individual type used for aggregation from aChannel
. -
Uses of CheckedFunction in org.anchoranalysis.plugin.image.task.bean.grouped.histogram
Methods in org.anchoranalysis.plugin.image.task.bean.grouped.histogram that return CheckedFunctionModifier and TypeMethodDescriptionprotected CheckedFunction
<Channel, Histogram, CreateException> ExportImageHistograms.createChannelDeriver
(ChannelSource source) -
Uses of CheckedFunction in org.anchoranalysis.plugin.onnx.model
Methods in org.anchoranalysis.plugin.onnx.model with parameters of type CheckedFunctionModifier and TypeMethodDescription<S> S
OnnxModel.performInference
(ai.onnxruntime.OnnxTensor input, String inputName, List<String> outputNames, CheckedFunction<List<ai.onnxruntime.OnnxTensor>, S, OperationFailedException> convertFunction) -
Uses of CheckedFunction in org.anchoranalysis.plugin.opencv.segment
Methods in org.anchoranalysis.plugin.opencv.segment with parameters of type CheckedFunctionModifier and TypeMethodDescription<S> S
OpenCVModel.performInference
(org.opencv.core.Mat input, String inputName, List<String> outputNames, CheckedFunction<List<org.opencv.core.Mat>, S, OperationFailedException> convertFunction)