Class ScaleImageIndependently

Object
AnchorBean<Task<StackSequenceInput, NoSharedState>>
Task<StackSequenceInput, NoSharedState>
ScaleImage<NoSharedState>
ScaleImageIndependently

public class ScaleImageIndependently extends ScaleImage<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
  • Constructor Details

    • ScaleImageIndependently

      public ScaleImageIndependently()
  • Method Details

    • beforeAnyJobIsExecuted

      public NoSharedState beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<StackSequenceInput> inputs, ParametersExperiment parameters) throws ExperimentExecutionException
      Specified by:
      beforeAnyJobIsExecuted in class Task<StackSequenceInput, NoSharedState>
      Throws:
      ExperimentExecutionException
    • scaleStack

      protected Stack scaleStack(Stack stack, Optional<ImageSizeSuggestion> suggestedSize, VoxelsResizer voxelsResizer, NoSharedState sharedState) throws OperationFailedException
      Description copied from class: ScaleImage
      Produce a scaled version of a Stack, mapping each channel to a scaled version of itself.
      Specified by:
      scaleStack in class ScaleImage<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:
      OperationFailedException - if the scaling operation fails.