public class ScaleImageIndependently extends ScaleImage<NoSharedState>
When given input images of identical size, it will produce outputs of identical (scaled) size.
However, when given inputs of varying size, it will usually produce outputs of varying (scaled) size.
binary, scaleCalculator
Constructor and Description |
---|
ScaleImageIndependently() |
Modifier and Type | Method and Description |
---|---|
NoSharedState |
beforeAnyJobIsExecuted(Outputter outputter,
ConcurrencyPlan concurrencyPlan,
List<StackSequenceInput> inputs,
ParametersExperiment parameters)
Called once before all calls to
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>) . |
protected Stack |
scaleStack(Stack stack,
Optional<ImageSizeSuggestion> suggestedSize,
VoxelsResizer voxelsResizer,
NoSharedState sharedState)
Produce a scaled version of a
Stack , mapping each channel to a scaled version of
itself. |
afterAllJobsAreExecuted, defaultOutputs, doJobOnInput, getInterpolator, getScaleCalculator, hasVeryQuickPerInputExecution, inputTypesExpected, isBinary, setBinary, setInterpolator, setScaleCalculator
executeJob, isInputCompatibleWith
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public NoSharedState beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<StackSequenceInput> inputs, ParametersExperiment parameters) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.beforeAnyJobIsExecuted
in class Task<StackSequenceInput,NoSharedState>
outputter
- the output-manager for the experiment (not for an individual job)concurrencyPlan
- available numbers of processors that can call Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
inputs
- a list of inputs, each will result in at least one call to Task.executeJob(ParametersUnbound)
.parameters
- the experiment-parameters.Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
and to Task.afterAllJobsAreExecuted(S, org.anchoranalysis.io.output.outputter.InputOutputContext)
.ExperimentExecutionException
- if a fatal error occurs executing this step of the
experiment.protected Stack scaleStack(Stack stack, Optional<ImageSizeSuggestion> suggestedSize, VoxelsResizer voxelsResizer, NoSharedState sharedState) throws OperationFailedException
ScaleImage
Stack
, mapping each channel to a scaled version of
itself.scaleStack
in class ScaleImage<NoSharedState>
stack
- the stack before scaling.suggestedSize
- the suggested-size that has been passed into the task.voxelsResizer
- how to resize the voxels in a channel.sharedState
- the shared-state of the task.OperationFailedException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.