The CGMinSilico function

Synthax

% prototypes
Itf = CGMinSilico(Im, Name, Value);

% examples
Itf = CGMinSilico(Im, 'ShotNoise',true, 'Nimages', 30);

Description

The CGMinSilico function simulates the interferogram corresponding to the ImageEM object Im. It basically considers Im as the image at the sample plane without QLSI grating, and compute the interferogram once the grating is placed. The function returns an Interfero object.

The interest of this function is that it can add shot noise on the interferogram. The amplitude of the noise is calculated from the full well capacity of the camera, and the number of averaged images, specified by the option Nimages.

The option ShotNoise tells whether the shot noise is included (true) or not (false).

Example

In Silico simulation

In Silico simulation
Code that simulates the image of a gold nanoparticle including shot noise
%% code that simulates the image of a gold nanoparticle including shot noise

lambda = 530e-9;            % Illumination wavelength
Npx = 120;                  % Final image with Npx*Npx pixels

% model the setup
ME = Medium('water', 'glass');
OB = Objective(100,1.0,'Olympus');
CGcam = CGcamera('sC8-944');
MI = Microscope(OB,'Olympus',CGcam);
IL = Illumination(lambda,ME);

% model the nanoparticle
radius = 60e-9;             % Nanoparticle radius
DI = Dipole('Au',radius);   % creation of the Dipole object
DI = DI.shine(IL);          % illumination of the dipole

% compute the images
IM0 = imaging(DI,IL,MI,Npx);

% model the experimental interferogram
Itf = CGMinSilico(IM0,'shotNoise',true);

% processing the in Silico images
IM = QLSIprocess(Itf,IL);

% display the theoretical and in Silico images
dynamicFigure('gb',IM0,'gb',IM)
../_images/NPinSilico.png