Class SharedStateSelectedSlice

Object
SharedStateSelectedSlice

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

    • SharedStateSelectedSlice

      public SharedStateSelectedSlice(Outputter baseOutputter) throws CreateException
      Creates a new instance of SharedStateSelectedSlice.
      Parameters:
      baseOutputter - the base outputter for creating the CSV writer
      Throws:
      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.