Local Z Projector - 3D projection method comparison toolbox
Creators: name: Valon, Léo
name: Tinevez, Jean-Yves
Publisher: name: Zenodo
Year: 2021

description: <strong>A toolbox to compare projection method performance.</strong> <strong>Purpose.</strong> We give and document here the set of practices and scripts that enabled us to perform the comparisons of several projection methods, published in: Herbert, S., Valon, L., Mancini, L., Dray, N., Caldarelli, P., Gros, J., Esposito, E., Shorte, S. L., Bally-Cuif, L., Levayer, R., Aulner, N., &amp; Tinevez, J.-Y. (2021). <em>DProj: A toolbox for local 2D projection and accurate morphometrics of large 3D microscopy images</em>. BioRxiv, 2021.01.15.426809. https://doi.org/10.1101/2021.01.15.426809 The 8 methods we tested are: Local-Z-Projector Stack Focuser PreMosa Extended-Depth-Of-Field Min-Cost-Z-Surface Fast SME SurfCut the Maximal Intensity Projection (MIP) Each method offers some parameters to tune to achieve a desirable solution. When possible, we did a systematic parameter sweep for each method, in order to obtain the absolute best projection for the comparison. By 'absolute best', we mean the closest to a ground truth in the root-mean-square-error (RMSE) sense. Running this comparison takes significant time. You will have to generate a ground truth for the projection, the height-map and the segmentation results. Also, running parameter sweeps on all methods takes long. We aim at measuring the following four metrics: <strong>Projection RMSE</strong> - How close are we to the projection ground-truth? <strong>Height-map RMSE</strong> - How close are we to the height-map ground-truth? <strong>Segmentation Object-Consistency-Error (OCE)</strong> - How does the quality of the projection affects subsequent analysis? <strong>Timing</strong> - How long does it take to get the projection? See the associated article and in particular its Supplementary Material for details. <strong>Organization.</strong> This toolbox is organized in several subfolders, one for each step of the comparison. Each subfolder contains a <code>README.md</code> file where the comparison process is documented. You just have to follow the instructions they contain. The recommended order of processing is the following: <code>GroundTruth</code> - Generate ground-truth projection and height-map files. <code>Methods</code> - Run the parameter sweep for all methods and get the absolute best projection and height-map for each. Them measure the RMSE value for the projection and time each method. This folder has one subfolder per method, documented individually. <code>HeightMap</code> - Measure the RMSE metric for the height-maps. <code>Segmentation</code> - Measure the segmentation performance metrics. Collate all metrics in the MATLAB script <code>PlotMetrics.m</code> present in this top-level folder. Then run it and it will generate the 4-panels figure with the comparison results. <strong>Requirements.</strong> This toolbox requires familiarity with MATLAB and Python scripting. The scripts should run turnkey, but you will have to edit them with the proper file names for your own comparison. You also need the following software: A git client. Fiji (https://fiji.sc/) Icy (http://icy.bioimageanalysis.org/) MATLAB, with the Image-Processing toolbox (https://mathworks.com/ &amp; https://mathworks.com/products/image.html). The following MATLAB extensions, available from the FEX: export_fig (https://mathworks.com/matlabcentral/fileexchange/23629-export_fig) brewermap (https://mathworks.com/matlabcentral/fileexchange/45208-colorbrewer-attractive-and-distinctive-colormaps) break Y axis (https://mathworks.com/matlabcentral/fileexchange/45760-break-y-axis) <strong>The test image.</strong> We distribute this toolbox along with a test image, used as Supplementary Data in the article. It is a single 3D image (one channel, one time-point) of a <em>Drosophila</em> pupa notum, captured with a laser-scanning confocal microscope (LSM 880, Zeiss). Pixel size 0.188 µm, z step 1 µm. The data was acquired by Leo Valon in Romain Levayer lab, Institut Pasteur. This specific image was used to investigate how the projection methods fare again an image of high quality, with little spurious structures (the cuticle is faint and there are almost no dead bodies). This is an image of exceptional quality. For the Table 1 in the article we use an image where there are more spurious structures. Normally there should already be result files and data for the comparison of this image in this toolbox.