Class ScaleImageIndependently
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.experiment.bean.task.Task<T,S>>
org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.stack.input.StackSequenceInput,S>
org.anchoranalysis.plugin.image.task.bean.scale.ScaleImage<org.anchoranalysis.experiment.task.NoSharedState>
org.anchoranalysis.plugin.image.task.bean.scale.ScaleImageIndependently
public class ScaleImageIndependently extends ScaleImage<org.anchoranalysis.experiment.task.NoSharedState>
Creates a scaled copy of images, treating each image independently, and without any padding or
alignment.
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.
- Author:
- Owen Feehan
-
Field Summary
Fields inherited from class org.anchoranalysis.plugin.image.task.bean.scale.ScaleImage
binary, scaleCalculator -
Constructor Summary
Constructors Constructor Description ScaleImageIndependently() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.experiment.task.NoSharedStatebeforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.image.io.stack.input.StackSequenceInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters)protected org.anchoranalysis.image.core.stack.StackscaleStack(org.anchoranalysis.image.core.stack.Stack stack, Optional<org.anchoranalysis.image.core.dimensions.size.suggestion.ImageSizeSuggestion> suggestedSize, org.anchoranalysis.image.voxel.resizer.VoxelsResizer voxelsResizer, org.anchoranalysis.experiment.task.NoSharedState sharedState)Produce a scaled version of aStack, mapping each channel to a scaled version of itself.Methods inherited from class org.anchoranalysis.plugin.image.task.bean.scale.ScaleImage
afterAllJobsAreExecuted, defaultOutputs, doJobOnInput, getInterpolator, getScaleCalculator, hasVeryQuickPerInputExecution, inputTypesExpected, isBinary, setBinary, setInterpolator, setScaleCalculatorMethods inherited from class org.anchoranalysis.experiment.bean.task.Task
executeJob, isInputCompatibleWith
-
Constructor Details
-
ScaleImageIndependently
public ScaleImageIndependently()
-
-
Method Details
-
beforeAnyJobIsExecuted
public org.anchoranalysis.experiment.task.NoSharedState beforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.image.io.stack.input.StackSequenceInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
beforeAnyJobIsExecutedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.image.io.stack.input.StackSequenceInput,org.anchoranalysis.experiment.task.NoSharedState>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
scaleStack
protected org.anchoranalysis.image.core.stack.Stack scaleStack(org.anchoranalysis.image.core.stack.Stack stack, Optional<org.anchoranalysis.image.core.dimensions.size.suggestion.ImageSizeSuggestion> suggestedSize, org.anchoranalysis.image.voxel.resizer.VoxelsResizer voxelsResizer, org.anchoranalysis.experiment.task.NoSharedState sharedState) throws org.anchoranalysis.core.exception.OperationFailedExceptionDescription copied from class:ScaleImageProduce a scaled version of aStack, mapping each channel to a scaled version of itself.- Specified by:
scaleStackin classScaleImage<org.anchoranalysis.experiment.task.NoSharedState>- Parameters:
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.- Returns:
- the scaled version of the stack.
- Throws:
org.anchoranalysis.core.exception.OperationFailedException- if the scaling operation fails.
-