Device

public class Device

Encapsulator class which contains all device objects (camera, laser…)

Author:Marcel Stefko, Kyle M. Douglass

Constructors

Device

public Device()

Initialize device with default parameters.

Device

public Device(Camera cam, FluorophoreProperties fluo, Laser laser, ArrayList<DefaultFluorophore> emitters, ArrayList<Obstructor> obstructors)

Initializes the device with given parameters.

Parameters:
  • cam – camera properties
  • fluo – fluorophore properties
  • laser – laser settings
  • emitters – list of fluorophores
  • obstructors – list of obstructors

Methods

getFOVsize_um

public double getFOVsize_um()
Returns:size of current FOV in square micrometers

getLaserPower

public double getLaserPower()

Return current power of the laser.

Returns:laser power

getOnEmitterCount

public double getOnEmitterCount()

Returns the number of currently active emitters.

Returns:number of shining emitters

getPixelSizeUm

public double getPixelSizeUm()
Returns:length of one pixel side in micrometers

getResolution

public int[] getResolution()

Return the camera resolution

Returns:[res_x, res_y] int array

setLaserPower

public void setLaserPower(double laser_power)

Modifies the laser power to desired value.

Parameters:
  • laser_power – new laser power [W]

simulateFrame

public ImageS simulateFrame()

Generates a new frame based on the current device state, and moves device state forward. First the obstructions are drawn on the frame, then the fluorophores, and afterwards noise is added.

Returns:simulated frame