The imaging function
Synthax
% prototype
IM = imaging(DIs,IL,MI,Npx)
Description
Function that computes the \(E\) field at the image plane, corresponding to a given set of dipoles at the sample plane. The computation is based on DDA calculations, which take into account dipoles optical coupling.
DIs is an array of Dipole objects.
IL and MI are respectively the Illumination and Microscope objects of the setup.
Npx is the size of the image (width and height).
Example
Image simulation
Image simulation
Code that simulates the image of a gold nanoparticle
%% code that simulates the image of a gold nanoparticle
lambda = 530e-9; % Illumination wavelength
Npx = 300; % Final image with Npx*Npx pixels
n = 1.33; % Refractive index of the surrounding medium
ME = Medium(n);
OB = Objective(200,1.3,'Olympus');
CGcam = CGcamera('Silios_mono');
MI = Microscope(OB,180,CGcam);
IL = Illumination(lambda,ME);
radius = 50e-9; % Nanoparticle radius
DI = Dipole('Au',radius);
DI = DI.shine(IL);
IM0 = imaging(DI,IL,MI,Npx);
IM0.figure