S - source typeT - target typepublic abstract class AbstractUnaryBlockOperator<S extends net.imglib2.type.NativeType<S>,T extends net.imglib2.type.NativeType<T>> extends Object implements UnaryBlockOperator<S,T>
UnaryBlockOperator.
Takes care of source/target type/dimensionality boilerplate.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUnaryBlockOperator(AbstractUnaryBlockOperator<S,T> op) |
protected |
AbstractUnaryBlockOperator(S sourceType,
T targetType,
int numSourceDimensions,
int numTargetDimensions) |
| Modifier and Type | Method and Description |
|---|---|
S |
getSourceType() |
T |
getTargetType() |
int |
numSourceDimensions()
Number of source dimensions.
|
int |
numTargetDimensions()
Number of target dimensions.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptSourceType, adaptTargetType, andThen, applyTo, compute, independentCopyprotected AbstractUnaryBlockOperator(S sourceType, T targetType, int numSourceDimensions, int numTargetDimensions)
protected AbstractUnaryBlockOperator(AbstractUnaryBlockOperator<S,T> op)
public S getSourceType()
getSourceType in interface UnaryBlockOperator<S extends net.imglib2.type.NativeType<S>,T extends net.imglib2.type.NativeType<T>>public T getTargetType()
getTargetType in interface UnaryBlockOperator<S extends net.imglib2.type.NativeType<S>,T extends net.imglib2.type.NativeType<T>>public int numSourceDimensions()
UnaryBlockOperator
Some operators can be applied to arbitrary dimensions, e.g., converters.
In this case, they should return numSourceDimensions() <= 0. It
is expected that these operators do not modify the number of dimensions,
that is, when such an operator is applied to a 3D block, the result is
also a 3D block.
numSourceDimensions in interface UnaryBlockOperator<S extends net.imglib2.type.NativeType<S>,T extends net.imglib2.type.NativeType<T>>public int numTargetDimensions()
UnaryBlockOperator
Some operators can be applied to arbitrary dimensions, e.g., converters.
In this case, they should return numTargetDimensions() <= 0. It
is expected that these operators do not modify the number of dimensions,
that is, when such an operator is applied to a 3D block, the result is
also a 3D block.
numTargetDimensions in interface UnaryBlockOperator<S extends net.imglib2.type.NativeType<S>,T extends net.imglib2.type.NativeType<T>>Copyright © 2009–2025 ImgLib2. All rights reserved.