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.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)  
    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)
    Produce a scaled version of a Stack, mapping each channel to a scaled version of itself.

    Methods inherited from class org.anchoranalysis.experiment.bean.task.Task

    executeJob, isInputCompatibleWith

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • 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:
      beforeAnyJobIsExecuted in class org.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.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<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.