- Open Access
LocalZProjector and DeProj: a toolbox for local 2D projection and accurate morphometrics of large 3D microscopy images
BMC Biology volume 19, Article number: 136 (2021)
Quantitative imaging of epithelial tissues requires bioimage analysis tools that are widely applicable and accurate. In the case of imaging 3D tissues, a common preprocessing step consists of projecting the acquired 3D volume on a 2D plane mapping the tissue surface. While segmenting the tissue cells is amenable on 2D projections, it is still very difficult and cumbersome in 3D. However, for many specimen and models used in developmental and cell biology, the complex content of the image volume surrounding the epithelium in a tissue often reduces the visibility of the biological object in the projection, compromising its subsequent analysis. In addition, the projection may distort the geometry of the tissue and can lead to strong artifacts in the morphology measurement.
Here we introduce a user-friendly toolbox built to robustly project epithelia on their 2D surface from 3D volumes and to produce accurate morphology measurement corrected for the projection distortion, even for very curved tissues. Our toolbox is built upon two components. LocalZProjector is a configurable Fiji plugin that generates 2D projections and height-maps from potentially large 3D stacks (larger than 40 GB per time-point) by only incorporating signal of the planes with local highest variance/mean intensity, despite a possibly complex image content. DeProj is a MATLAB tool that generates correct morphology measurements by combining the height-map output (such as the one offered by LocalZProjector) and the results of a cell segmentation on the 2D projection, hence effectively deprojecting the 2D segmentation in 3D. In this paper, we demonstrate their effectiveness over a wide range of different biological samples. We then compare its performance and accuracy against similar existing tools.
We find that LocalZProjector performs well even in situations where the volume to project also contains unwanted signal in other layers. We show that it can process large images without a pre-processing step. We study the impact of geometrical distortions on morphological measurements induced by the projection. We measured very large distortions which are then corrected by DeProj, providing accurate outputs.
Tissue morphogenesis and homeostasis emerge from the integration of the properties and behaviors of a large number of cells (from hundreds to millions). This includes the regulation and shaping of epithelia, essential tissue barriers composed of one or several layer of cells tightly bound to one another. The emergence of complex epithelial shape relies quite often on the integration of local mechanical and biochemical cues regulated at the cellular levels . For instance, during Drosophila pupal development, local cell-to-cell interactions through adhesion forces ensure tissue integrity, control cell shape and cell division orientation, and affect tissue-wide cell death probability [2, 3]. In the avian embryo during gastrulation, mechanical properties of cells affect the emergent tissue fluidity which is essential to form the first tissue fold . In vertebrate adult brains, neural stem cells (NSCs) are organized in a pool forming an epithelium. The architecture and size of the brain relies on the rate of division and differentiation of stem cells which is in part regulated by local cell-cell interactions . All these examples illustrates an essential challenge of tissue and developmental biology: namely bridging the gap between the cellular scales and emerging properties at the tissue level. The capacity to image large tissues, while reaching a single cell resolution amenable for the quantification of cell scale parameters, is key to elucidate this question.
Modern microscopy technologies can fulfill this imaging challenge and microscopes that can acquire fluorescence images of the embryo and generate volumetric, multi-channel, time-lapse datasets of a live sample are now used routinely. They offer single-cell resolution on a field-of-view large enough to encompass a significant part of the tissue/embryo studied. However, the large size of the data generated and the limited image signal-to-noise ratio (SNR) imposed by preservation of the tissue health during live-imaging call for optimized image analysis tools.
Epithelia are a continuous layer of cells forming a smooth surface which may not be flat. When cells are labeled with a junction marker (e.g., E-cadherin, ZO1), the tissue resembles a manifold wrapped on a 3D surface. A simple approach to visualization and analysis is to perform a projection of the tissue 3D surface on a 2D plane. This dimensionality-reduction approach proves to be particularly convenient: First, the resulting data size is considerably diminished. Second, the visualization of the tissue layer content is immediate in 2D. Third, it may enhance signal-to-noise ratio. Finally, most of the segmentation algorithms that can extract cell shapes have a better robustness and accuracy in 2D than in 3D so far, and manual corrections can still be reasonably performed in 2D.
The biological significance of the information extracted from these manifolds prompted for the development of several tools that can perform 2D projection. MorphoGraphX  and ImSAnE  belong to a first class of tools, where a reference surface is built as a mesh mapping the sample boundary. The fluorescence intensity is then collected at or a few microns away from the boundary into the sample, in a direction perpendicular to the surface. This approach is particularly adequate for images of samples with complex, possibly closed boundaries. A second class of tools perform a projection of the 3D volume along the Z-axis of the 3D image. The resulting projection created by these tools is a 2D plane that has the same width and height as the source 3D volume. They cannot harness samples where the tissue layer folds, since there must be at most one surface Z value per (X, Y) position. They are however particularly convenient with classical confocal microscopy. Indeed, the point-spread-function (PSF) of a microscope is the most elongated along the Z-axis. This causes some larger blurring of structures in this direction compared to along the X and Y axes. By projecting along the Z-axis, the projections given by these techniques are devoid of this large blurring. The most simple projection technique in this class consists in taking the largest pixel value along a Z column for each (X, Y) position. As noted in , this maximum intensity projection (MIP) technique is the most commonly used by biologists. An important drawback is that this projection incorporates noise from throughout the sample, in particular inside cells, and may compromise segmentation based on the membrane signal. To address this limitation, several projection tools have been developed that aim at including in the projection only the signal coming from the tissue layer. Among them are StackFocuser , PreMosa , Extended Depth-of-Field (EDF) , SurfCut , MinCostZSurface [13–15], the Smooth Manifold Extraction (SME) tool  and a new implementation of the latter: FastSME . In , authors also proposed an approach based on Deep-Learning for the projection along the Z-axis, but it requires for its training and along with the source images a possibly large set of images pre-projected by an other method or manually. While these approaches have been proven to work well for tissue imaging, they left open some challenges. First, bright or noisy structures outside of the cell layer might compromise the extraction of a meaningful reference surface, in turn strongly affecting the quality of the projection. Second, most of those approaches will be very time-consuming for large volume and may even not be working when the volume to project has a size larger than the available computer memory. Third, the tissue surface and the XY plane may have in some regions a large angle. Beyond 30∘, the morphological features of cells measured on the 2D projection will be significantly altered, as noted in .
Our toolbox fits into this second class of tools, and builds upon them to address several challenges they left open. LocalZProjector is its first component, and is a user-friendly and widely configurable projection tool that can be tuned to detect the right reference surface. Its maneuverability makes it amenable to a wide range of samples and image qualities, as well as to images of large size beyond the size of the available computer memory. DeProj, its second component, can correct for the distortions induced by the projection of tissue even if they are very curved, hence deprojecting the 2D segmentation results in 3D. We illustrate below these capacities using three different samples: the Drosophila pupal notum, the quail embryo and the adult zebrafish telencephalon. We also compare the toolbox features, performance and accuracy to existing tools.
The software toolbox we present is made of two components: LocalZProjector and DeProj (Fig. 1). It is built for accurate morphology measurements on epithelial tissues.
LocalZProjector performs the projection of a curved surface from a 3D stack on a single 2D plane by only including the signal of the planes with local highest variance/mean intensity, corresponding to the signal of interest (Fig. 2a). It is an ImageJ2  plugin distributed within Fiji  that focuses on usability and is designed to be adaptable to many different cases and image quality (Fig. 2b). It can work with 3D time-lapses, multiple color channels, takes advantage of computers with multiple cores, can be used in scripts and can process images too large to fit in memory using the virtual stack feature of ImageJ. The local Z projection processes as follow: First it extracts a reference surface that maps the epithelial layer (Fig. 2c, Additional File 1: Figure S1). The reference surface is represented by the height-map, which consists in a single 2D image per time-point of the source image, that specifies for every (X, Y) position the Z position of the layer of interest. Second, the height-map is used to extract projections of the different channels from the 3D image, according to their relative, sometimes different, offset with this reference surface.
LocalZProjector relies on a few parameters set by the user. The height-map is determined by applying a 2D filter on each plane of the 3D source image, chosen and configured to yield a strong response for the layer of interest (either mean or standard deviation filter). To speed-up computation and reduce the effect of pixel noise, each 2D plane can be first binned. Noise can be further reduced through filtering with a Gaussian kernel. The height-map is then regularized using a median filter with a large window and rescaled to the original width and height. It is then used to extract a projection from the 3D image. A fixed offset can be specified separately for each channel, and is used to collect intensity in planes above or below the reference surface. Several planes, specified by a last parameter Δz, can be accumulated to generate a better projection, averaging the pixel values or taking the maximum value of these planes (Fig. 2c, Additional File 2: Movie S1).
Once the 3D volume has been projected on a single 2D plane, many tools are available that can segment the individual cells in the tissue. Several of them offer an intuitive user interface, allowing for immediate usage and user interaction. For instance, EpiTools  is a toolbox with MATLAB and Icy  components built to study the dynamics of Drosophila imaginal discs. Its segmentation algorithm relies on region growing from seeds determined automatically and merged based on region areas. SEGGA  is a standalone application written with MATLAB proposed for the investigation of Drosophila embryo germband epithelium. Recognizing that a small number of mistakes in segmentation can have major negative impact on cell tracking accuracy for long time-lapses, the authors propose several approaches to increase the robustness of segmentation and have a near perfect tracking results. TissueAnalyzer  is a tissue segmentation tool, distributed along TissueMiner  and the combination of these two softwares offers a framework that let end-users implement their own analyses using the R software and custom commands. EPySeg, a Python software that relies on deep-learning for the segmentation was recently made available in .
But these tools operate on 2D images only, which implies that the epithelium is a flat plane and parallel to XY. When this is not the case, most morphological measurements made on the 2D segmentation results will be corrupted by geometrical distortions induced by the projection (Fig. 3a). Indeed, almost all morphology metrics, such as area, eccentricity and orientation will be affected when they are measured on the 2D projection of a curved or angled surface. DeProj aims at correcting these artifacts. It is a MATLAB tool that combines segmentation results and height-maps or 3D meshes to correct morphology measurements made on the 2D projection. DeProj returns corrected metrics, as if they were measured on the reference surface in the original 3D image (Fig. 3b).
LocalZProjector is an accurate, fast, and convenient tool to generate projections of 3D manifolds on 2D planes
One of our recent study involves long-term 3D time-lapses imaging of a Drosophila pupal notum [3, 26]. To follow the cells dynamics in the tissue, we relied on generating an accurate 2D projection of the cell monolayer (adherent junctions marked with E-Cadherin signal, Ecad-GFP), taken from the epithelium surface, and at the same time collecting the RFP signal from cell nuclei a few μm below this surface (nls-RFP). Imaging relevant signal in this tissue brings a few difficulties. First, the epithelium is not flat. Sampling a large portion of the tissue requires the acquisition of about 40–60 μm thick optically-sectioned volumes. Second, the cuticle (the exoskeleton of the fly) is located apically to the epithelium and is auto-fluorescent on a large spectrum (green to far red). Third, below the epithelial layer lie large cells called fat bodies which are also highly fluorescent. In the GFP channel, the resulting 3D images display mainly three layers. The top one (low Z values) corresponds to the auto-fluorescent signal collected from the cuticle. The middle one corresponds to the epithelial cell layer, where the cell membranes build a manifold with a large curvature (Fig. 2b). Below these two layers, the fat bodies generate punctate, bright structures. If not properly excluded from the projection, these unwanted structures in the imaged volume will degrade its quality and complicate or even forbid the subsequent segmentation task.
As the problem introduced here with the pupal notum is frequent in epithelium tissue imaging, we used it to validate the performance of the LocalZProjector plugin by comparing it to currently available projection tools (Table 1). We generated the user-expected 2D projection of the epithelium (ground truth) by manually selecting the junctional signal of epithelial cells in each plane (see Additional File 1: Supplemental Note 1 for details). We then calculated several metrics measuring the accuracy and performance of the projection generated by the LocalZProjector tool, and compared the results to 7 other methods (Additional File 1: Supplemental Note 2 [27, 28]): the standard maximal-intensity-projection (MIP), the StackFocuser tool , SurfCut , PreMosa , the Extended Depth-of-Field (EDF) tool , the Mininum-Cost-Z-Surface (MinCostZ) approach of [13, 14], implemented in  and the Smooth Manifold Extraction tool [8, 16]. We first assessed how close the resulting projection was to the ground-truth projection using the root-mean square error (RMSE). This metrics proves useful in two aspects. First, because it allows for quantitatively comparing several methods and assessing how useful the projections will be in a subsequent analysis step. Second, because it offers a way to systematically search for optimal parameters for the 8 methods tested. For the comparison to be robust and fair, we ran indeed an extensive parameter sweep for each method, searching for the parameter set that gives the absolute best projection by minimizing the RMSE over a wide range of values (Additional File 1: Supplemental Note 2A). We then used this optimal projection for each method for the comparison. We find that the LocalZProjector projection is favored (Table 1, Additional File 1: Figure S3a and Additional File 1: Supplemental Note 2B) because it is robust against noise and can be configured to deal with regions of high-curvature. The accuracy of the height-map output is also important for the subsequent correction of the cell morphology measurements made by DeProj. We therefore calculated the RMSE of the height-maps compared with the ground-truth (Additional File 1: Supplemental Note 2C), for the projection tools that can return a height-map of the cell layer (LocalZProjector, StackFocuser, PreMosa, EDF, MinCostZ and FastSME). We find again that LocalZProjector offers the height-map with the lowest RMSE (Additional File 1: Figure S3b). Because LocalZProjector aims at being a tool possibly used on very long time-lapse movies, the time needed to generate a projection is important, we confirmed it is fast in comparison to most of the other methods (Additional File 1: Figure S3c). Finally, the projection accuracy of such a dataset is relevant mainly for its use in a subsequent analysis. We chose to focus on cell segmentation, as DeProj will be used to measure accurate and unbiased cell morphology. We therefore derived a simple, fully automated segmentation workflow on the projections, and compared segmentation results against a ground-truth segmentation (Additional File 1: Figure S3d, Additional File 1: Supplemental Note 3 [29–31]). We repeated the comparison presented in this table on a high quality image of a Drosophila pupa notum (Additional File 1: Table S1), and on an adult zebrafish brain image (Additional File 1: Table S2). The data, methodology and tools that support these comparisons are available online [32, 33]. These results exemplify the usefulness of LocalZProjector, both for accuracy and performance.
Finally, in this study, we wanted to generate projections of the E-cadherin channel but also needed to visualize the nuclei reporter of some of these cells localized a few micrometers just below the reference surface, and follow it over time. This was easily feasible as LocalZProjector can handle multiple-channel long time-lapse images in a user-friendly manner. We compared some of the LocalZProjector capabilities with other tools in Table 1. We also proved qualitatively that LocalZProjector can be used on a wide-range of images coming from very different samples and we especially validated it on a large set of example images introduced in , taken from samples ranging from Neuroscience to Cell Biology and synthetic images. In Additional File 1: Figure S12 we present the projections obtained successfully with LocalZProjector on this dataset.
Projecting large images with LocalZProjector
In toto imaging of developing embryos allows for investigating the dynamics of tissues at a large spatial scale. For instance when analyzing gastrulation in entire avian embryos, we showed that it is driven by the graded contraction of a large-scale supracellular actomyosin ring at the margin between the embryonic and extraembryonic territories . For this study we relied on particle image velocimetry (PIV) to measure the tissue displacement field. This technique does not require the segmentation and tracking of individual cells. However, several key mechanisms at large scales emerge from the dynamics of single cells . The need to segment all the cells in a whole embryo prompts for imaging at high resolution and special microscopes . But such acquisition setups generate in turn very large images. Also some imaging modalities that enable imaging large specimen at high resolution, such as Light-Sheet Fluorescence Microscopy (LSFM), may bring additional distortions in the image. In order to image a quail embryo at high resolution, we relied on LSFM using an inverted selective plane illumination microscope [35, 36]. While the light-sheet is held stationary at 45∘ of the embryo surface, the embryo is translated horizontally through the light-sheet. The 2D planes acquired for each translation are then concatenated in a 3D stack. Because the axis of the embryo translation and the light-sheet plane are at a 45∘ angle, the stack needs to be post-processed to remove the induced skew. The resulting is a 8669 ×2285 ×1067 image, amounting to a 42 GB file for a single time-point.
The 2D projection of such an image is very relevant as the epithelium of interest is a smooth and thin cell layer within a large 3D volume. It would also reduce the image size by 1067 and make it much more amenable to analysis and compact storage. To tackle the challenges coming with such large datasets, we use the Fiji Virtual Stack importer, which only loads one Z-slice in memory at a time. This allows for the opening and to some extent the processing of images much larger than RAM. While the MIP works well with virtual stacks, the resulting projection is corrupted by projection artifacts. Moreover, in such images the point-spread function (PSF) is not aligned with Z-axis of the image. The elongation of the PSF generates marked distortions and blurs the membrane signal in the projection, up to the point where cells cannot be outlined by eye (Fig. 4a), even on a source image with little signal coming from spurious structures.
To improve the projection quality, we developed the LocalZProjector so that it can work with virtual stacks as well, granting it the ability to project images larger than the available memory amount and without having to do any pre-processing or resaving of the image. LocalZProjector works with two passes through the image data, one to compute the reference surface, one to perform the local projection (Additional File 3: Movie S2), ensuring that individual planes are read from disk at most twice. This still comes at a time penalty. LocaLZprojector takes 8.5 min per time-point, against 1.3 min for the MIP. But the LocalZProjector result is completely devoid of the defects observed with the MIP and is amenable to segmentation and quantification (Fig. 4b).
Accurate measurements of cell morphology: DeProj
In vertebrates, adult neural stem cells (NSCs) are responsible for adult neurogenesis  and, in some vertebrates, regeneration post-injury . NSCs are organized as an epithelial-like structure lining ventricles that has to be maintained functional for very long periods of time (often over years). To understand NSC population homeostasis, it is essential to integrate large-scale and long-term imaging of the NSC pool and the zebrafish telencephalon has recently emerged as a unique model for these studies [39, 40]. To study cellular and mechanical functions of NSCs over the entire dorsal telencephalon (pallium) we can image whole-mount immunostainings against ZO1 (a component of tight junctions ), highlighting apical domains of the NSCs. However, since the pallial hemispheres are highly curved, we so far could not extract the geometrical parameters of many NSCs (falling in periphery, in sulci, etc.).
DeProj is a MATLAB app specifically built to address this issue. DeProj requires the reference surface that gives the shape of the tissue in the form zt=f(x,y). The reference surface can be specified as the height-map which is the secondary output of LocaLZProjector and several others projection tools, or as a mesh that extends over the epithelium surface. It is smoothed by a Gaussian filter with a σ equals to the median diameter of the cells, to mitigate step-wise patterns, happening for instance when the height-map is made of integer Z-slice positions. DeProj then takes the 2D output of the segmentation results, and creates cell objects as closed polygons. For each point of the polygon, a z position is determined from its (x,y) coordinates from the reference surface function. A new 3D polygon is then created, that represents the cell apical surface in 3D, effectively deprojecting it on the tissue surface. The cells segmentation can be specified as a black and white mask, or as a MATLAB structure returned e.g. by TissueMiner  or the tool of , and documented online. Several morphological metrics (area, perimeter, orientation, eccentricity, number of neighbors, fit by an ellipse in 3D, Euler angles, local curvatures) are then computed and saved, along with the cell contour mapped on the tissue surface. The generated DeProj data object is used to store the analysis results and offer exporting facilities and several visualizations of the results.
On the telecephalon image, a 3D view generated by DeProj shows the shape of the epithelium. We can see several regions where the tissue is very curved, particularly at its borders and in the sulcus separating the regions (Fig. 5a). A visual representation of the cell area does not show a salient difference between a measurement made on the proper 3D epithelium surface (Fig. 5b) or on the 2D projection (Fig. 5c). However the histogram of the error metric ea=(1−a2D/a3D) between these two quantities shows that for a large number of cells, using the 2D measurement induces an error greater than 20% (Fig. 5d, 22% of the 3000 cells in this epithelium have an error larger than 20%). The cells with a large error are found at the epithelium border and in the sulcus (Fig. 5e), which are regions where the angle between the cell apical planes and the XY plane is especially large (Fig. 5f). Without surprise, we find that a large slope correlates with a large error (Fig. 5g). If a cell would be a square of side a, with one side making an angle θ with the XY plane, then its real area measured in 3D is a2. The 2D projection of this cell contour on the XY plane generates a rectangle of sides a and a× cosθ, so that the error ea is equal to 1− cosθ for this cell. Because real cells have complex shapes and have a contour that is not necessarily contained in a plane, we find that this expression constitutes a lower bound for ea (Fig. 5g, red line).
The correction offered by DeProj is only accurate if the height-map or the tissue mesh follow the tissue surface accurately. We have seen above that projection methods can return height-maps that deviate from the ground-truth (Table 1). Of course, a uniform error in the Z positions returned by the height-map won’t impact the cells morphology measurements. Similarly, an error that is uniform over a spatial scale larger than a cell will have only a limited effect. We must therefore consider a difficult scenario, where individual cells are deformed by an erroneous height-map. To assess the impact of such a situation, we took the data of Fig. 5 and artificially moved the Z position of half the points along the boundary of each cell by one Z-slice, keeping the other half in place. We then compared the 3D area and 3D perimeter measurements made with and without altering the cell contour. We found that the error induced is 4.2 ± 3.5% on the area measurements and 2.4 ± 2.0% on the perimeter. This error range is smaller than what we aim at correcting for with DeProj (Fig. 5d), but is important enough to recommend checking for the accuracy of the height-maps with the same scrutiny than for the projections.
As can be noted in the comparative study of this work, there exists already several tools that perform projection of tissues in 2D from a 3D image. Their number demonstrates the importance of the information that can be extracted from the resulting images. This, and the still popular usage of MIP despite its shortcomings, also points out the difficulty of having a tool that can address all types and qualities of images to project, despite the similarity in tissues staining and shape. Yet the quality of projection dictates the subsequent step in analysis, as demonstrated in Additional File 1: Figure S3d. Some of these tools have the advantage of being parameter-free [8, 13–16]. LocalZProjector takes another approach and requires several parameters to be tuned. In turn, this configuration step allows it to work even with difficult 3D images containing spurious structures and confers it a greater adaptability. It is also to our knowledge the only one that can process large images without pre-processing.
DeProj allows for the correction of geometrical distortions caused by the projection on morphological measurements. These artifacts remain often overlooked, despite possibly compromising the measurements accuracy when the local angle of the tissue with the XY plane is large. It works as the final step in our bioimage analysis pipeline and combine the cell segmentation results with the original shape of the sample, such as a height-map, to yield various corrected tissue visualizations and accurate morphological measurements on cells. Typically microscopists prepare samples in such a way that the orientation of the tissue is favorable for imaging, with its main orientation parallel to the XY plane. Yet, we found that in a tissue like the pallium, the slope can exceed 40∘ in the regions of interest. But even a more moderate slope yields dramatic errors on measurements taken directly on the 2D projection (Fig. 5g). DeProj offers robustness against these distortions, and makes it possible to accurately access the morphology of cells in highly curved samples while taking advantage of a simplified 2D dimensionality to segment the tissue morphology.
The flexibility of LocalZProjector enables obtaining high-quality 2D projections even when the source image display spurious structures, a high curvature, low signal-to-noise ratio, and is of large size. High-quality projections are required for the robustness of subsequent analysis such as cell segmentation. DeProj is an ideal companion tool in a cell segmentation pipeline, as it allows for retrieving accurate morphology measurements, even on the 2D projections of highly curved samples. LocalZProjector and DeProj constitute together a useful toolbox to get accurate cell morphology measurements on epithelial tissues.
Notum live imaging was performed as described previously . Briefly, the pupae were collected at the early stage (0–6 h after pupal formation), aged at 29∘C, glued on double sided tape on a slide and surrounded by two metal spacers of approx. 0.650 mm. The pupal case was opened up to the abdomen using forceps and mounted with a 20 × 40 mm #1.5 coverslip where we buttered halocarbon oil 10S. The coverslip was then tapped on the spacers using regular tape. Pupae were collected 48 or 72 h after clone induction and dissected 16-18h after pupae formation (APF). Pupae were imaged at 29∘C for 22 h on a LSM 880 scanning laser confocal microscope (Carl Zeiss A.G.) equipped with a fast Airyscan module using an oil 40X objective (NA 1.3), Z stacks (1 μm/slice), every 5 min using autofocus. The autofocus was performed using the autofluorescence of the cuticle in far red (using a Zen Macro developed by Jan Ellenberg laboratory, MyPic). Movies were performed in the nota close to the scutellum region containing the midline and the aDC and pDC macrochaetae. The experiment presents a pupae with endoCad::GFP signal and groups of cell over-expressing UAS-yorkie S11A S168A S250A V5 clones and nuclei in red over the control of the GAL80TS thermosensitive. The cross and the progeny were kept at 18∘C, and the pupae were switched to 29∘C 8 h prior to the movie for conditional activation.
Quail embryo imaging
Fertilized quail eggs (Coturnix japonica) were purchased from Cailles de Chanteloup. The embryos were collected at stage XI, fixed in 4% formaldehyde/PBS for 3 h at 4∘C and washed / blocked in PBS / 0.1% Triton X-100 / 2% BSA (from Roche)/10% FBS (from Gibco). The primary antibody used was ZO-1 (Invitrogen ZO1-1A12) at 1:200 and the secondary antibody was goat anti-mouse AlexaFluor 488 (A28175) at 1:500. The embryos were mounted with DAPI-containing Fluoromount-GTM (eBioscience) between slide and coverslip and sealed with commercial nail polish.
Fixed quail embryos were imaged using a Dual Inverted Single Plane Imaging Microscope (DiSPIM, 3i Marianas Light sheet). The system geometry consists in two identical arms containing an illumination path composed of laser light output directed to a XY scanner for generating the light sheet and a detection path where an sCMOS camera (Hamamatsu Orca Flash 4) is fitted. Both arms are assembled at 90 degrees and alternate from stimulating the embryo to detecting its opposite side. This ensemble is rotated by 45 degrees which allows to work on flat mounted sample . Those arms are fitted with 40x 0.8NA water immersion objective (Nikon CFI Apo NIR 40x W) with a 3.5-mm working distance. The field of view of the objective is 330 mm and the depth detection is limited to scattering and absorption of the light within the sample (around 30 μm in our sample). The embryo was irradiated with 561 nm excitation light and the stage was scanned through both light-sheets simultaneously across 1.408 mm with a step size of 0.42 mm. The resulting acquired stacks dimensions are 1024 × 2048 × 3339 pixels. The image stack produced by this system was then de-skewed and rotated by 45∘ to yield a proper geometrical representation of the sample. After de-skewing and rotation, the final image dimension are 8669 ×2285 ×1067 pixels.
Adult zebrafish brain imaging
Brains were dissected in 1X solution of phosphate buffered saline (PBS - Fisher Bioreagents) and directly transferred to a 4% paraformaldehyde solution in PBS for fixation. They were fixed for 2 to 4 h at room temperature (RT) under permanent agitation. After four washing steps in PBS, brains were dehydrated through 5 min series of 25%, 50% and 75% methanol diluted in 0.1% tween-20 (Sigma Life Science – P9416) PBS solution and kept in 100% methanol (Sigma-Aldrich, 322415) at − 20∘C. The whole-mount immunohistochemistry (IHC) started by the rehydration of the telencephali. Then, the brains were subjected to an antigen retrieval step using Histo-VT One (Nacalai Tesque) for an hour at 65∘C. Brains were rinsed in a 0.1% DMSO and 0.1% Triton X-100 (Sigma Life Science– 1002135493) PBS 1X solution (PBT) and then blocked with 4% normal goat serum in PBT (blocking buffer) 4 h at RT. The blocking buffer was later replaced by the primary antibodies solution, and the brains were kept overnight at 4∘C on a rocking platform. The next day, brains were rinsed over 24 h at room temperature with PBT and incubated in a solution of secondary antibodies diluted in PBT overnight, in the dark, and at 4∘C on a rocking platform. After several washes, the telencephali were mounted in PBS on slides using a 0.7-mm-thick holder. The primary antibody anti-ZO1 was used at 1:200 (Mouse monoclonal IgG1 anti-ZO1, Thermo Fisher, cat. #33-9100, RRID: AB_2533147) and the secondary antibody anti IgG was used at 1:1000 (Goat anti-Mouse IgG (H+L) Alexa633 conjugated, Thermo Fisher, cat. #A-21052, RRID : AB_2535719).
Images of whole-mounted immunostained telencephali were acquired on confocal microscope (LSM700, Carl Zeiss A.G), using a 40X oil objective. We acquired images with a z-step of 0.65 μm. We averaged each line four times with an image resolution of 1024 ×1024 pixels with a bit-depth of 12-bits. The power of the lasers was kept constant for all of the acquisitions and the gain was adjusted for each experiment. We recorded mosaics with a 15% overlap to image an entire hemisphere per fish.
Availability of data and materials
The project homepages contain the source code, installation instructions, documentations and extra implementation details. For DeProj, the homepage also contains 3 example scripts and data to reproduce some panels in Figs. 1, 2 and 5. Part of the raw data of this study and several examples are available on Zenodo [32, 42, 43]. The tools and methodology to determine optimal parameter sets and performance metrics for the 8 methods compared in Table 1 are available and documented, along with an example dataset, on Zenodo as well . The rest of the data is available upon reasonable request.
Local Z Projector
• Project name: LocalZProjector.
• Project homepage: https://gitlab.pasteur.fr/iah-public/localzprojector
• Operating systems: Platform independent.
• Programming language: Java.
• Other requirements: Runs from Fiji .
• License: BSD 3
• Any restrictions to use by non-academics: None.
• Project name: DeProj.
• Project homepage: https://gitlab.pasteur.fr/iah-public/DeProj
• Operating systems: Platform independent.
• Programming language: MATLAB.
• Other requirements: at least MATLAB R2019b and the Image Processing Toolbox.
• License: BSD 3
• Any restrictions to use by non-academics: None.
Collinet C, Lecuit T. Programmed and self-organized flow of information during morphogenesis. Nat Rev Mol Cell Biol. 2021. https://doi.org/10.1038/s41580-020-00318-6.
Bosveld F, Bonnet I, Guirao B, Tlili S, Wang Z, Petitalot A, Marchand R, Bardet P-L, Marcq P, Graner F, Bellaïche Y. Mechanical control of morphogenesis by fat/dachsous/four-jointed planar cell polarity pathway. Science. 2012; 336(6082):724–7. https://doi.org/10.1126/science.1221071.
Levayer R, Dupont C, Moreno E. Tissue crowding induces caspase-dependent competition for space. Curr Biol. 2016; 26(5):670–7. https://doi.org/10.1016/j.cub.2015.12.072.
Saadaoui M, Rocancourt D, Roussel J, Corson F, Gros J. A tensile ring drives tissue flows to shape the gastrulating amniote embryo. Science. 2020. https://doi.org/10.1126/science.aaw1965.
Dray N, Mancini L, Binshtok U, Cheysson F, Supatto W, Mahou P, Bedu S, Ortica S, Than-Trong E, Krecsmarik M, Herbert S, Masson J-B, Tinevez J-Y, Lang G, Beaurepaire E, Sprinzak D, Bally-Cuif L. Dynamic spatiotemporal coordination of neural stem cell fate decisions occurs through local feedback in the adult vertebrate brain. Cell Stem Cell. 2021. https://doi.org/10.1016/j.stem.2021.03.014.
Barbier de Reuille P, Routier-Kierzkowska AL, Kierzkowski D, Bassel G, Schüpbach T, Tauriello G, Bajpai N, Strauss S, Weber A, Kiss A, Burian A, Hofhuis H, Sapala A, Lipowczan M, Heimlicher M, Robinson S, Bayer E, Basler K, Koumoutsakos P, Roeder A, Aegerter-Wilmsen T, Nakayama N, Tsiantis M, Hay A, Kwiatkowska D, Xenarios I, Kuhlemeier C, Smith R. Morphographx: A platform for quantifying morphogenesis in 4d. eLife. 2015; 4:05864. https://doi.org/10.7554/eLife.05864.
Heemskerk I, Streichan S. Tissue cartography: Compressing bio-image data by dimensional reduction. Nat Methods. 2015. https://doi.org/10.1038/nmeth.3648.
Shihavuddin A, Basu S, Rexhepaj E, Delestro F, Menezes N, Sigoillot S, Del Nery E, Selimi F, Spassky N, Genovesio A. Smooth 2d manifold extraction from 3d image stack. Nat Commun. 2017; 8:15554.
Umorin M. Stack Focuser. ImageJ. 2006. https://imagej.nih.gov/ij/plugins/stack-focuser.html. Accessed 08 Sept 2019.
Blasse C, Saalfeld S, Etournay R, Sagner A, Eaton S, Myers E. PreMosa: extracting 2d surfaces from 3d microscopy mosaics. Bioinforma. 2017; 33(16):2563–9. https://doi.org/10.1093/bioinformatics/btx195.
Forster B, Van De Ville D, Berent J, Sage D, Unser M. Complex wavelets for extended depth-of-field: A new method for the fusion of multichannel microscopy images. Microsc Res Tech. 2004; 65(1-2):33–42.
Erguvan O, Louveaux M, Hamant O, Verger S. ImageJ SurfCut: a user-friendly pipeline for high-throughput extraction of cell contours from 3d image stacks. BMC Biol. 2019; 17(1):38. https://doi.org/10.1186/s12915-019-0657-1.
Wu X, Chen DZ. Optimal net surface problems with applications. In: Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics). Springer Verlag: 2002. p. 1029–1042. https://doi.org/10.1007/3-540-45465-9_88.
Li K, Wu X, Chen D, Sonka M. Optimal surface segmentation in volumetric images-a graph-theoretic approach. IEEE Trans Pattern Anal Mach Intell. 2006; 28(1):119–34. https://doi.org/10.1109/TPAMI.2006.19.
Lombardot B. Min Cost Z Surface Projection Fiji. 2017. https://imagej.net/Minimum_Cost_Z_surface_Projection. Accessed: 08 Sept 2019.
Basu S, Rexhepaj E, Spassky N, Genovesio A, Reinhold Paulsen R, Shihavuddin A. FastSME: Faster and Smoother Manifold Extraction from 3D Stack. In: 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW). IEEE: 2018. p. 2362–23628. https://doi.org/10.1109/CVPRW.2018.00305.
Weigert M, Schmidt U, Boothe T, Müller A, Dibrov A, Jain A, Wilhelm B, Schmidt D, Broaddus C, Culley S, Rocha-Martins M, Segovia-Miranda F, Norden C, Henriques R, Zerial M, Solimena M, Rink J, Tomancak P, Royer L, Jug F, Myers E. Content-aware image restoration: pushing the limits of fluorescence microscopy. Nat Methods. 2018. https://doi.org/10.1038/s41592-018-0216-7.
Rueden CT, Schindelin J, Hiner MC, DeZonia BE, Walter AE, Arena ET, Eliceiri K. ImageJ2: ImageJ for the next generation of scientific image data. BMC Bioinformatics. 2017; 18:529. https://doi.org/10.1186/s12859-017-1934-z.
Schindelin J, Arganda-Carreras I, Frise E, Kaynig V, Longair M, Pietzsch T, Preibisch S, Rueden C, Saalfeld S, Schmid B, Tinevez J-Y, White D, Hartenstein V, Eliceiri K, Tomancak P, Cardona A. Fiji: an open-source platform for biological-image analysis. Nat Meth. 2012; 9(7):676–82.
Heller D, Hoppe A, Restrepo S, Gatti L, Tournier A, Tapon N, Basler K, Mao Y. EpiTools: An Open-Source Image Analysis Toolkit for Quantifying Epithelial Growth Dynamics. Dev Cell. 2016; 36(1):103–16. https://doi.org/10.1016/j.devcel.2015.12.012.
de Chaumont F, Dallongeville S, Chenouard N, Hervé N, Pop S, Provoost T, Meas-Yedid V, Pankajakshan P, Lecomte T, Le Montagner Y, Lagache T, Dufour A, Olivo-Marin JC. Icy: an open bioimage informatics platform for extended reproducible research. Nat Methods. 2012; 9:690. https://doi.org/10.1038/nmeth.2075.
Farrell D, Weitz O, Magnasco M, Zallen J. SEGGA: A toolset for rapid automated analysis of epithelial cell polarity and dynamics. Development. 2017. https://doi.org/10.1242/dev.146837.
Aigouy B, Umetsu D, Eaton S. Segmentation and quantitative analysis of epithelial tissues. In: Methods in Molecular Biology: 2016. p. 227–39. https://doi.org/10.1007/978-1-4939-6371-3_13.
Etournay R, Merkel M, Popović M, Brandl H, Dye N, Aigouy B, Salbreux G, Eaton S, Jülicher F. TissueMiner: A multiscale analysis toolkit to quantify how cellular processes create tissue dynamics. eLife. 2016. https://doi.org/10.7554/eLife.14334.
Aigouy B, Cortes C, Liu S, Prud’Homme B. Epyseg: a coding-free solution for automated segmentation of epithelia using deep learning. Development. 2020;147. https://doi.org/10.1242/dev.194589.
Moreno E, Valon L, Levillayer F, Levayer R. Competition for space induces cell elimination through compaction-driven erk downregulation. Curr Biol. 2019; 29(1):23–348. https://doi.org/10.1016/j.cub.2018.11.007.
Schneider C, Rasband W, Eliceiri K. NIH Image to ImageJ: 25 years of image analysis. Nat Methods. 2012; 9:671. https://doi.org/10.1038/nmeth.2089.
Sobel I, Feldman G. A 3 × 3 Isotropic Gradient Operator for Image Processing. Pattern Classif Scene Anal.1973.
Ulman V, Maška M, Magnusson K, Ronneberger O, Haubold C, Harder N, Matula P, Matula P, Svoboda D, Radojevic M, Smal I, Rohr K, Jaldén J, Blau H, Dzyubachyk O, Lelieveldt B, Xiao P, Li Y, Cho S-Y, Dufour A, Olivo-Marin JC, Reyes-Aldasoro C, Solis-Lemus J, Bensch R, Brox T, Stegmaier J, Mikut R, Wolf S, Hamprecht F, Esteves T, Quelhas P, Demirel O, Malmström L, Jug F, Tomancak P, Meijering E, Muñoz-Barrutia A, Kozubek M, Ortiz-de-Solorzano C. An objective comparison of cell-tracking algorithms. Nat Methods. 2017; 14:1141. https://doi.org/10.1038/nmeth.4473.
Polak M, Zhang H, Pi M. An evaluation metric for image segmentation of multiple objects. Image Vis Comput. 2009; 27(8):1223–27. https://doi.org/10.1016/j.imavis.2008.09.008.
Legland D, Arganda-Carreras I, Andrey P. Morpholibj: integrated library and plugins for mathematical morphology with imagej. Bioinforma. 2016; 32(22):3532–3534. https://doi.org/10.1093/bioinformatics/btw413.
Mancini L, Dray N, Bally-Cuif L, Tinevez J-Y. Local Z Projector example dataset and parameters 03. Zenodo. 2021. https://doi.org/10.5281/zenodo.4629231.
Valon L, Tinevez J-Y. Local Z Projector - 3D projection method comparison toolbox. Zenodo. 2021. https://doi.org/10.5281/zenodo.4629187.
Firmino J, Rocancourt D, Saadaoui M, Moreau C, Gros J. Cell Division Drives Epithelial Cell Rearrangements during Gastrulation in Chick. Dev Cell. 2016. https://doi.org/10.1016/j.devcel.2016.01.007.
Rozbicki E, Chuai M, Karjalainen A, Song F, Sang H, Martin R, Knölker H, Macdonald M, Weijer C. Myosin-II-mediated cell shape changes and cell intercalation contribute to primitive streak formation. Nat Cell Biol. 2015. https://doi.org/10.1038/ncb3138.
Kumar A, Wu Y, Christensen R, Chandris P, Gandler W, McCreedy E, Bokinsky A, Colón-Ramos D, Bao Z, McAuliffe M, Rondeau G, Shroff H. Dual-view plane illumination microscopy for rapid and spatially isotropic imaging. Nat Protoc. 2014. https://doi.org/10.1038/nprot.2014.172.
Bond A, Ming G-l, Song H. Adult Mammalian Neural Stem Cells and Neurogenesis: Five Decades Later. Cell Stem Cell. 2015; 17(4):385–95. https://doi.org/10.1016/j.stem.2015.09.003.
Alunni A, Bally-Cuif L. A comparative view of regenerative neurogenesis in vertebrates. Dev. 2016; 143(5):741–53. https://doi.org/10.1242/dev.122796.
Dray N, Than-Trong E, Bally-Cuif L. Neural stem cell pools in the vertebrate adult brain: Homeostasis from cell-autonomous decisions or community rules?Bioessays. 2020. https://doi.org/10.1002/bies.202000228.
Than-Trong E, Kiani B, Dray N, Ortica S, Simons B, Rulands S, Alunni A, Bally-Cuif L. Lineage hierarchies and stochasticity ensure the long-term maintenance of adult neural stem cells. Sci Adv. 2020; 6(18). https://doi.org/10.1126/sciadv.aaz5424.
Guirao B, Rigaud S, Bosveld F, Bailles A, López-Gay J, Ishihara S, Sugimura K, Graner F, Bellaïche Y. Unified quantitative characterization of epithelial tissue development. eLife. 2015. https://doi.org/10.7554/eLife.08519.
Valon L, Tinevez J-Y. Local Z Projector example dataset and parameters 01. Zenodo. 2021. https://doi.org/10.5281/zenodo.4625047.
Valon L, Tinevez J-Y. Local Z Projector example dataset and parameters 02. Zenodo. 2021. https://doi.org/10.5281/zenodo.4625051.
We thank Stéphane Rigaud for his help with the software from .
This work was supported by the Labex REVIVE (Investissement d’Avenir; ANR-10-LABX-73), France BioImaging (Investissement d’Avenir; ANR-10–INSB–04) and the Région Île-de-France in the framework of DIM ELICIT. Work in the R. L. laboratory is supported by the Institut Pasteur (G5 starting package), a ERC starting grant (CoSpaDD, #758457), the “Cercle FSER” and the CNRS (UMR 3738). L. V. is supported by a Post-doctoral grant “Aide au 224 Retour en France” from the Fondation pour la Recherche Médicale (ARF20170938651) and a Marie Sklodowska-Curie postdoctoral fellowship (MechDeath, 789573). Work in the J. G. laboratory was supported by the European Research Council under the European Union’s Seventh Framework Program (FP7/2007-2013) / ERC Grant Agreement no. 337635. P. C. is sponsored by the Institut Pasteur and the European Union’s Horizon 2020 research and innovation program under the Marie Sklodowska Curie (665807). Work in the L. B-C. laboratory was supported by the Ligue Nationale Contre le Cancer and the European Research Council (AdG 322936). L. M. was recipient of a PhD student fellowship from the Fondation pour la Recherche Médicale.
Ethics approval and consent to participate
Consent for publication
The authors declare that they have no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information for “LocalZProjector and DeProj: A toolbox for local 2D projection and accurate morphometrics of large 3D microscopy images.”
Additional file 2: : Capture of a local projection process of the drosophila pupal notum. Top, from left top right: Individual Z-slices of the 3D stack of the Cadherin-GFP channel. Mask indicating what part of the current Z-slice belongs to the reference surface. Part of the current Z-slice within the mask. Bottom, from left to right: Resulting local projection of the Cadherin-GFP channel (left), of the miniCic ERK biosensor (middle, Scarlet fluorescent protein), and of a nuclear far red protein (right, iRFP1.0 fluorescent protein) centered 3 μm below the reference plane (for the middle and right projections).
About this article
Cite this article
Herbert, S., Valon, L., Mancini, L. et al. LocalZProjector and DeProj: a toolbox for local 2D projection and accurate morphometrics of large 3D microscopy images. BMC Biol 19, 136 (2021). https://doi.org/10.1186/s12915-021-01037-w
- Image analysis
- 3D imaging
- Tissue imaging