Right now, for the SCMOS CameraType, if CameraGain, CameraOffset and CameraNoise are scalars and CalibrationFilePath is empty, the algorithm can access random bits of memory, Note the comments in DataToPhotons:
% NOTE: This may be overwritten below if a calibration file
% is present and the camera type is specified as
% 'SCMOS'. If that happens, it was done on purpose!
% It's best to use the value in the calibration file
% rather than what the user has entered.
% If no filepath is given, or if the camera is
% specified as an EMCCD, we don't need to load a
% calibration file.
The fix is to make a 2D array for each of these quantities of the appropriate size and set equal to the scalar value provided, probably in DataToPhotons.m