Class ExtractSlice

Object
AnchorBean<Task<NamedChannelsInput, SharedStateSelectedSlice>>
Task<NamedChannelsInput, SharedStateSelectedSlice>
ExtractSlice

public class ExtractSlice extends Task<NamedChannelsInput, SharedStateSelectedSlice>
Reduces a z-stack to a single-slice by taking the optima of a feature calculated for each slice.

Expects a second-level output "stack" to determine which slices are outputted or not.

Author:
Owen Feehan
  • Constructor Details

    • ExtractSlice

      public ExtractSlice()
  • Method Details

    • beforeAnyJobIsExecuted

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

      public InputTypesExpected inputTypesExpected()
      Specified by:
      inputTypesExpected in class Task<NamedChannelsInput, SharedStateSelectedSlice>
    • doJobOnInput

      public void doJobOnInput(InputBound<NamedChannelsInput, SharedStateSelectedSlice> input) throws JobExecutionException
      Specified by:
      doJobOnInput in class Task<NamedChannelsInput, SharedStateSelectedSlice>
      Throws:
      JobExecutionException
    • afterAllJobsAreExecuted

      public void afterAllJobsAreExecuted(SharedStateSelectedSlice sharedState, InputOutputContext context) throws ExperimentExecutionException
      Specified by:
      afterAllJobsAreExecuted in class Task<NamedChannelsInput, SharedStateSelectedSlice>
      Throws:
      ExperimentExecutionException
    • defaultOutputs

      public OutputEnabledMutable defaultOutputs()
      Overrides:
      defaultOutputs in class Task<NamedChannelsInput, SharedStateSelectedSlice>
    • hasVeryQuickPerInputExecution

      public boolean hasVeryQuickPerInputExecution()
      Specified by:
      hasVeryQuickPerInputExecution in class Task<NamedChannelsInput, SharedStateSelectedSlice>
    • getScoreProvider

      public FeatureListProvider<FeatureInputStack> getScoreProvider()
    • setScoreProvider

      public void setScoreProvider(FeatureListProvider<FeatureInputStack> scoreProvider)
    • getStackEnergy

      public StackProvider getStackEnergy()
    • setStackEnergy

      public void setStackEnergy(StackProvider stackEnergy)
    • isFindMaxima

      public boolean isFindMaxima()
      If true, the maxima of the score is searched for. If false, rather the minima.
    • setFindMaxima

      public void setFindMaxima(boolean findMaxima)
      If true, the maxima of the score is searched for. If false, rather the minima.