Package net.algart.arrays
Interface ArrayProcessorWithContextSwitching
- All Superinterfaces:
ArrayProcessor
- All Known Subinterfaces:
Convolution
,Derivator
,Morphology
,RankMorphology
- All Known Implementing Classes:
AbstractArrayProcessorWithContextSwitching
,AbstractConvolution
,AbstractDerivator
,AbstractMorphology
,AbstractRankMorphology
,BasicConvolution
,BasicDerivator
,BasicMorphology
,BasicRankMorphology
,ContinuedConvolution
,ContinuedDerivator
,ContinuedMorphology
,ContinuedRankMorphology
,ContinuedStreamingApertureProcessor
,GeneralizedBitProcessing
,StreamingApertureProcessor
,TiledConvolution
,TiledMorphology
,TiledRankMorphology
Array processor allowing to switch the current context.
It is an extended version of ArrayProcessor
interface.
Many algorithms should implement this interface instead of ArrayProcessor
.
The reason is often necessity to extract a subtask of the full algorithmic task,
with a context corresponding to this subtask
(ArrayContext.part(double, double)
method).
- Author:
- Daniel Alievsky
-
Method Summary
Modifier and TypeMethodDescriptioncontext
(ArrayContext newContext) Switches the context: returns an instance, identical to this one excepting that it uses the specified newContext for all operations.Methods inherited from interface net.algart.arrays.ArrayProcessor
context
-
Method Details
-
context
Switches the context: returns an instance, identical to this one excepting that it uses the specified newContext for all operations. The returned instance is usually a clone of this one, but there is no guarantees that it is a deep clone. Usually, the returned instance is used only for performing asubtask
of the full task.- Parameters:
newContext
- another context, used by the returned instance; may be null.- Returns:
- new instance with another context.
-