ImageJSimulator¶
-
public class
ImageJSimulator
extends DefaultSimulator¶ The default simulator that is run as, for example, the ImageJ plugin.
Author: Marcel Stefko
Fields¶
TIMEPERFRAME¶
-
protected final long
TIMEPERFRAME
¶ The time duration of each frame. This is here only for compatibility with ALICA’s analyzers, which require a time argument.
controller¶
-
protected final Controller
controller
¶ Takes the output of a single analyzer, processes it, and outputs a signal to the generator, for feedback loop control.
history¶
positionLogger¶
-
protected PositionLogger
positionLogger
¶ Logs the ground truth positions of the molecules.
stateLogger¶
-
protected StateLogger
stateLogger
¶ Logs the state transitions of the molecules.
Constructors¶
ImageJSimulator¶
-
public
ImageJSimulator
(Microscope microscope, Analyzer analyzer, Controller controller)¶ Initialize the simulator from user-specified components.
Parameters: - microscope – The microscope to be simulated.
- analyzer – An analyzer for processing images from the microscope.
- controller – A controller that adjusts the state of the microscope.
Methods¶
execute¶
getImageCount¶
-
public int
getImageCount
()¶ Returns the number of generated images since simulation start.
Returns: number of generated images
getPositionLogger¶
-
public PositionLogger
getPositionLogger
()¶ Returns: The emitter position logger.
getStateLogger¶
-
public StateLogger
getStateLogger
()¶ Returns: The state transition logger.
incrementCounter¶
-
public void
incrementCounter
()¶ Increments image counter in case an image was generated outside of this class.