Class RoiStatsProcessor

All Implemented Interfaces:
DatasetProcessor, Configurable, Findable

public class RoiStatsProcessor extends DatasetProcessorBase
Receive dataset from processing Nexus Detector Retrieve rois from gui.

For each roi, create a dataset for it and pass into a DatasetStats processor.

  • Constructor Details

    • RoiStatsProcessor

      public RoiStatsProcessor()
  • Method Details

    • process

      public GDANexusDetectorData process(String detectorName, String dataName, org.eclipse.january.dataset.Dataset dataset) throws Exception
      Description copied from interface: DatasetProcessor
      Processes the given dataset, returning a GDANexusDetectorData containing the INexusTrees nodes describing the datasets to be added to the nexus tree.
      Parameters:
      detectorName - name of detector
      dataName - name of dataset to process
      dataset - dataset to process
      Returns:
      a GDANexusDetectorData with t
      Throws:
      Exception
    • getPlotName

      public String getPlotName()
    • setPlotName

      public void setPlotName(String plotName)
    • _getExtraNames

      protected Collection<String> _getExtraNames()
      Specified by:
      _getExtraNames in class DatasetProcessorBase
    • _getOutputFormat

      protected Collection<String> _getOutputFormat()
      Specified by:
      _getOutputFormat in class DatasetProcessorBase
    • updateNames

      public void updateNames()
    • setRois

      public void setRois(List<RegionOfInterest> rois)
    • setUseSingleDataGroupPerRoi

      public void setUseSingleDataGroupPerRoi(boolean useSingleDataGroupPerRoi)
    • atScanStart

      public void atScanStart()
    • atScanEnd

      public void atScanEnd()
    • getStatsProcessor

      public DatasetStats getStatsProcessor()
    • setStatsProcessor

      public void setStatsProcessor(DatasetStats statsProcessor)
    • configure

      public void configure() throws FactoryException
      Description copied from class: ConfigurableBase
      Default implementation for classes that do not have to do any specific configuration.
      Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.
      Specified by:
      configure in interface Configurable
      Overrides:
      configure in class ConfigurableBase
      Throws:
      FactoryException - if there is an error in configuration e.g. required variable not set or cannot connect to device
    • getRoiList

      public List<RegionOfInterest> getRoiList()
    • getDetectorName

      public String getDetectorName()
    • setDetectorName

      public void setDetectorName(String detectorName)