public class DefaultUnaryBlockOperator<S extends NativeType<S>,T extends NativeType<T>> extends Object implements UnaryBlockOperator<S,T>
| Constructor and Description |
|---|
DefaultUnaryBlockOperator(S sourceType,
T targetType,
BlockProcessor<?,?> blockProcessor) |
| Modifier and Type | Method and Description |
|---|---|
<I,O> BlockProcessor<I,O> |
blockProcessor()
Get (an instance of) the wrapped
BlockProcessor. |
S |
getSourceType() |
T |
getTargetType() |
UnaryBlockOperator<S,T> |
independentCopy()
Returns an instance of this
UnaryBlockOperator that can be used
independently, e.g., in another thread or in another place in the same
pipeline. |
UnaryBlockOperator<S,T> |
threadSafe()
Get a thread-safe version of this
UnaryBlockOperator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptSourceType, adaptTargetType, andThenpublic DefaultUnaryBlockOperator(S sourceType, T targetType, BlockProcessor<?,?> blockProcessor)
public <I,O> BlockProcessor<I,O> blockProcessor()
UnaryBlockOperatorBlockProcessor.
Note that this involves an unchecked cast, that is, the returned BlockProcessor<I,O> will be cast to the I, O types expected by
the caller.
This is mostly intented for internal use, e.g., in BlockAlgoUtils.
blockProcessor in interface UnaryBlockOperator<S extends NativeType<S>,T extends NativeType<T>>I - input primitive array type, e.g., float[]. Must correspond to S.O - output primitive array type, e.g., float[]. Must correspond to T.BlockProcessorpublic S getSourceType()
getSourceType in interface UnaryBlockOperator<S extends NativeType<S>,T extends NativeType<T>>public T getTargetType()
getTargetType in interface UnaryBlockOperator<S extends NativeType<S>,T extends NativeType<T>>public UnaryBlockOperator<S,T> independentCopy()
UnaryBlockOperatorUnaryBlockOperator that can be used
independently, e.g., in another thread or in another place in the same
pipeline.independentCopy in interface UnaryBlockOperator<S extends NativeType<S>,T extends NativeType<T>>public UnaryBlockOperator<S,T> threadSafe()
UnaryBlockOperatorUnaryBlockOperator.
(Implemented as a wrapper that makes ThreadLocal copies).threadSafe in interface UnaryBlockOperator<S extends NativeType<S>,T extends NativeType<T>>Copyright © 2009–2024 ImgLib2. All rights reserved.