SpotCounterCore

public class SpotCounterCore

Core of the SpotCounter algorithm

Author:Nico Stuurman

Constructors

SpotCounterCore

public SpotCounterCore(int noiseTolerance, int boxSize, boolean live_mode)
Parameters:
  • noiseTolerance – minimum peak value
  • boxSize – size of scanning box
  • live_mode – if true, live preview is shown

Methods

analyze

public HashMap<String, Double> analyze(ImageProcessor ip)

Analyzes the image and returns information about current state.

Parameters:
  • ip
    • image to be analyzed
Returns:

ResultsTable which contains information about analysis results.

dispose

public void dispose()

Hide live view window if it exists.

getBoxSize

public int getBoxSize()

getNoiseTolerance

public int getNoiseTolerance()

isLiveModeOn

public boolean isLiveModeOn()
Returns:true if live mode is on, false otherwise

liveModeOff

public void liveModeOff()

Turns off live viewing of SpotCounter analysis.

liveModeOn

public void liveModeOn()

Turns on live viewing of SpotCounter analysis.

setParams

public void setParams(int noiseTolerance, int boxSize)

Set new parameters for the analysis

Parameters:
  • noiseTolerance – minimum peak value
  • boxSize – size of scanning box

setROI

public void setROI(Roi roi)

Constrain analysis to given ROI.

Parameters:
  • roi – ROI to constrain analysis to