AutoLaseAnalyzer

class AutoLaseAnalyzer

This class estimates the density of activations. The density at a particular point relates to the maximum time a certain pixel is “on”, or above a certain threshold. The density is calculated as a moving average 30 frames. The code only works for 2 bytes per pixel cameras for now.

Author:Thomas Pengo

Fields

currentDensity

double currentDensity

running

boolean running

stopping

boolean stopping

Constructors

AutoLaseAnalyzer

public AutoLaseAnalyzer(int threshold)

Methods

getCurrentValue

public double getCurrentValue()

Returns error signal value from AutoLase

Returns:estimated averaged max emitter density

getRawCurrentValue

public double getRawCurrentValue()

Returns raw error signal value from AutoLase

Returns:estimated max emitter density for most recent frame

nextImage

public void nextImage(ShortProcessor sp)

Analyzes next image and adjusts internal state.

Parameters:
  • image – image to be analyzed

setParameters

public void setParameters(int threshold)

setROI

public void setROI(Roi roi)