.. java:import:: ch.epfl.leb.sass.models.obstructors Obstructor .. java:import:: ch.epfl.leb.sass.utils.images ImageS .. java:import:: ch.epfl.leb.sass.utils.images.internal DefaultImageS .. java:import:: cern.jet.random Gamma .. java:import:: cern.jet.random Normal .. java:import:: ij.process FloatProcessor .. java:import:: ij.process ShortProcessor .. java:import:: java.util ArrayList .. java:import:: java.util Arrays .. java:import:: java.util Random .. java:import:: cern.jet.random Poisson .. java:import:: cern.jet.random.engine MersenneTwister .. java:import:: ch.epfl.leb.sass.models.fluorophores.internal DefaultFluorophore .. java:import:: ch.epfl.leb.sass.utils RNG Device ====== .. java:package:: ch.epfl.leb.sass.models.legacy :noindex: .. java:type:: @Deprecated public class Device Encapsulator class which contains all device objects (camera, laser...) :author: Marcel Stefko, Kyle M. Douglass Constructors ------------ Device ^^^^^^ .. java:constructor:: public Device() :outertype: Device Initialize device with default parameters. Device ^^^^^^ .. java:constructor:: public Device(Camera cam, FluorophoreProperties fluo, Laser laser, ArrayList emitters, ArrayList obstructors) :outertype: Device Initializes the device with given parameters. :param cam: camera properties :param fluo: fluorophore properties :param laser: laser settings :param emitters: list of fluorophores :param obstructors: list of obstructors Methods ------- getFOVsize_um ^^^^^^^^^^^^^ .. java:method:: public double getFOVsize_um() :outertype: Device :return: size of current FOV in square micrometers getLaserPower ^^^^^^^^^^^^^ .. java:method:: public double getLaserPower() :outertype: Device Return current power of the laser. :return: laser power getOnEmitterCount ^^^^^^^^^^^^^^^^^ .. java:method:: public double getOnEmitterCount() :outertype: Device Returns the number of currently active emitters. :return: number of shining emitters getPixelSizeUm ^^^^^^^^^^^^^^ .. java:method:: public double getPixelSizeUm() :outertype: Device :return: length of one pixel side in micrometers getResolution ^^^^^^^^^^^^^ .. java:method:: public int[] getResolution() :outertype: Device Return the camera resolution :return: [res_x, res_y] int array setLaserPower ^^^^^^^^^^^^^ .. java:method:: public void setLaserPower(double laser_power) :outertype: Device Modifies the laser power to desired value. :param laser_power: new laser power [W] simulateFrame ^^^^^^^^^^^^^ .. java:method:: public ImageS simulateFrame() :outertype: Device 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. :return: simulated frame