This example shows how to measure the size of a laser beam along the propagation
axis, using using DataLab:
Load all the images in a folder
Apply a threshold to the images
Extract the intensity profile along an horizontal line
Fit the intensity profile to a Gaussian function
Compute the full width at half maximum (FWHM) of intensity profile
Try another method: extract the radial intensity profile
Compute the FWHM of the radial intensity profile
Perform the same analysis on a stack of images and on the resulting profiles
Plot the beam size as a function of the position along the propagation axis
First, we open DataLab and load the images:
The selected images are loaded in the âImagesâ panel. The last image is displayed
in the main window. On each image, we can zoom in and out by pressing the right
mouse button and dragging the mouse up and down. We can also pan the image by
pressing the middle mouse button and dragging the mouse.
Note
If we want to display the images side by side, we can select the
âDistribute on a gridâ entry in the âOperationsâ menu.
But, letâs go back to the initial display by selecting the âReset image positionsâ
entry in the âOperationsâ menu.
If we select on of the images, we can see that there is background noise, so it
might be useful to apply a threshold to the images.
Now, letâs try another method to measure the beam size.
From the âImagesâ panel, we can extract the radial intensity profile with
âOperations > Intensity profiles > Radial profileâ.
All these operations and computations that we have performed on a single image can
be applied to all the images in the âImagesâ panel.
To do that, we begin by cleaning the âSignalsâ panel (with âEdit > Delete allâ or
the button in the toolbar). We alse clean the intermediate results
in the âImagesâ panel by selecting the images obtained during our prototyping
and deleting them individually (with âEdit > Removeâ or the button).
Then, we select all the images in the âImagesâ panel (individually, or by selecting
the whole group âg001â).
Note
If you want to show the analysis results again, you can select the âShow resultsâ
entry in the âAnalysisâ menu, or the âShow resultsâ
button, below the image list:
Finally, we can save the workspace to a file . The workspace contains
all the images and signals that were loaded or processed in DataLab. It also contains
the analysis results, the visualization settings (colormaps, contrast, etc.), the
metadata, and the annotations.
If you want to load the workspace again, you can use the âFile > Open HDF5 fileâŠâ
(or the button in the toolbar) to load the whole workspace, or the
âFile > Browse HDF5 fileâŠâ (or the button in the toolbar) to load
only a selection of data sets from the workspace.