nj31415 / emccd_simulator

The (EM)CCD simulator is a MATLAB model for simulating the operation and readout processes for an electron multiplying charge coupled device.
0 stars 0 forks source link

Code Optimization #2

Open nj31415 opened 1 year ago

nj31415 commented 1 year ago

Currently, the EMCCD Simulator is slow and the speed of the program is highly dependent on the size of the array (number of pixels) and the signal level (electrons within the charge cloud). Goal would be to complete full frame (for CCD201-20, 1K x 2K) readouts on the order of seconds.

nj31415 commented 1 year ago

Proposed solution is to eliminate the Pixel object and instead store relevant pixel information directly within arrays in the Detector object. This would eliminate costly function calls being made to the Pixel object (and avoid the use of ArrayFun for accessing each pixel).