Class SharedStateSelectedSlice

Object
org.anchoranalysis.plugin.image.task.stack.SharedStateSelectedSlice

public class SharedStateSelectedSlice
extends Object
Shared state for writing selected slice information to a CSV file.
  • Constructor Summary

    Constructors 
    Constructor Description
    SharedStateSelectedSlice​(org.anchoranalysis.io.output.outputter.Outputter baseOutputter)
    Creates a new instance of SharedStateSelectedSlice.
  • Method Summary

    Modifier and Type Method Description
    void close()
    Closes the CSV writer if it exists.
    void writeRow​(String name, int selectedSliceIndex, double featureOptima)
    Writes a row of selected slice information to the CSV file.

    Methods inherited from class java.lang.Object

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

    • SharedStateSelectedSlice

      public SharedStateSelectedSlice​(org.anchoranalysis.io.output.outputter.Outputter baseOutputter) throws org.anchoranalysis.core.exception.CreateException
      Creates a new instance of SharedStateSelectedSlice.
      Parameters:
      baseOutputter - the base outputter for creating the CSV writer
      Throws:
      org.anchoranalysis.core.exception.CreateException - if there's an error creating the CSV writer
  • Method Details

    • writeRow

      public void writeRow​(String name, int selectedSliceIndex, double featureOptima)
      Writes a row of selected slice information to the CSV file.
      Parameters:
      name - the name of the image or stack
      selectedSliceIndex - the index of the selected slice
      featureOptima - the feature optima value
    • close

      public void close()
      Closes the CSV writer if it exists.