Background

Plant biologists employ several macroscopic parameters to describe and study root systems, such as total root length, branching pattern, growth direction and trajectories [1]. Proper analysis of root hairs (RH) is equally important, as these are the main determinants of the root/soil exchange surface, an important site for biotic interactions, and because they constitute an interesting model to study mechanisms governing apical cellular growth [2]. RHs form as single orthogonal cellular extensions of specialized epidermal cells (trichoblasts) as these terminate their elongation, thus their presence defines the differentiation zone of the root (Fig. 1a). In a growing root, division and expansion of cells apical to the differentiation zone propel the apex forward while RHs anchor the root to the substrate. RHs have been studied in order to elucidate several aspects of their development, including general shape description, cytoplasmic architecture, nuclear movement, cytoskeleton and cell wall structure, intracellular trafficking, as well as local reactive oxygen species (ROS) concentration [3,4,5]. In this work, we focus on RH length measurement; as proposed further, this parameter can be used to deduce some of the aformentioned aspects describing RH and root development.

Fig. 1
figure 1

RH development modeled as a sigmoidal curve. a Diagram presenting the different developmental zones of the main root (purple, orange and light blue scale) and RHs (dark blue windows). b A sigmoidal curve (dark blue line) used to fit the evolution of RH growth. Parameters of RH and root growth extracted from this curve (in red)

Several methods describe the measurement of RH length, differing in the approach used to define where to execute the measurement along the root. A first approach simply considers RHs located at a fixed distance from the root tip (RT) [6,7,8,9]. However, this method can be erroneous, since the distance of the differentiation zone from the RT can vary with root growth rate. There is therefore the risk of comparing RHs that emerge at different times before or after the application of a given growth condition. A second approach defines an area including RHs described as fully elongated [10,11,12,13]. However, the area for RH measurement is selected by the experimenter, which allows un-necessary biases or errors. Finally, both methods generate data from a narrow root segment only, mostly restrained to the fully-grown RH zone. Moreover, both rely on time-consuming manual measurements, which are unsuitable for large-scale analysis.

Two automated image analysis approaches to RH length measurement have been described. Narukawa et al. [14] and Inoue et al. [15] semi-automatically detected RH using image pixel intensity thresholding. However, several steps require the manual selection of binarization thresholds, and only 3.2 mm of root area was used for the analysis. A second method, developed by Vincent et al. [16], allows a partially automated detection of the area filled by RHs, using of a subset of manually analysed images to train an algorithm for automated detection, employing a machine learning approach. Nevertheless, albeit powerful and time efficient, this method does not presently allow measurement of RH length, nor does it allow to accurately define and standardize the position where the measurement takes place along the root.

In the present paper, we propose a method based on the modelling of RH length values along the root with a sigmoid curve, leveraging on a simple, semi-automated image analysis procedure to efficiently measure RH length while keeping track of the distance of each measurement from the root tip. This approach generates accurate and robust measurements of RH length and several other biologically meaningful parameters, including, under certain conditions, an estimation of RH growth rate.

Results

Automated RH measurement along the root tip

This method was developed to evaluate RH length in in vitro grown Medicago truncatula seedlings. M. truncatula produces a high amount of RHs, making their individual measurement challenging, in contrast with for example Arabidopsis. The procedure requires as input a root tip image where accessible RHs are in focus and well distinct from the root environment in terms of pixel intensity. To achieve this, we summed planes of z-stacks acquired with bright field microscopy (see “Materials and methods”; other image acquisition methods can be used). The modality to produce the images can be kept as presented here, or replaced by any other suitable modality (e.g.: machine learning [16] or plugin “Trainable Weka Segmentation” of ImageJ [17]). It is important to obtain an image of hairs all along the root stem, and to visualize a root outline whereby one can reference the position of hairs from the root tip. Hence, colour images, scanned images and confocal image are worth considering. This root tip image is processed following the procedure summarized in Table 1 to obtain a binarized image of RHs along the root tip, as illustrated in Fig. 2. The outline of the thresholded area obtained follows clearly the RHs profile as shown in Fig. 2a, b. This binarized root image is then straightened to allow an estimation of RH length by sliding a rectangular measuring selection along the root axis (Fig. 2b). The simple formula

$$L = \frac{A}{w}$$
(1)

is applied, where L is the length of the RH profile, computed by dividing A, the tresholded surface within the selection, by the width w of the selection, which is set to about ½ of RH diameter (Fig. 2d). Since not all RHs are orthogonal to the root surface and straight, and some hairless spots may exist, a max filter is applied to extract only the greatest L values over a defined interval of consecutive measurements, reasoning that these Lmax values would be an estimate of the length of the best positioned RHs (Fig. 2c). This process therefore generates a population of RH length values associated with their distance from the root tip (Fig. 2d). The image processing steps are implemented as an automated procedure in the Root Hair Sizer (RHS) script for ImageJ, available as Additional file 1: Script 1. The procedure is presented in more detail in “Materials and methods” section.

Table 1 Steps in Root Hair Sizer (RHS) algorithm
Fig. 2
figure 2

Image processing for root hairs thresholding and measurement. a Example of images before and after image processing to detect RH of M. truncatula root. Scale: 500 µm. b Comparison between automated detection of RHs (red line) and RHs on the original photo. Scale: 100 µm. c Image processing to measure and select maximal RH area in consecutive selections intervals. d RH length calculation using RH area in one selection. Magenta box corresponds to selection used to deduce RH length

Sigmoid modelling of RH length data

Once the RH profile is obtained, it becomes possible to extract relevant quantities such as the maximal size of the RHs, the location of the initiation or arrest of the RH growth, etc. To perform this in an automatic fashion, it is convenient to use a simple and realistic law to fit the RHs profile. Our observations of RHs profile show a sigmoid-like pattern (Fig. 3a, b). Indeed, modelling RH length along this region of the root with a sigmoid curve also makes sense in biological terms, when we consider the fact that epidermal cells stop their longitudinal elongation when they start forming RHs. This allows interpreting RH profiles in terms of changes of RH length over time, with an approximately linear phase of RH growth bordered by acceleration and deceleration phases (Fig. 1a, b). For sake of simplicity and robustness we adopted the symmetrical sigmoidal curve f(d)

$$f\left( d \right) = L_{min} + \frac{{L_{max} - L_{min} }}{{1 + e^{{\left( {d_{50} - d} \right)/\delta }} }}$$
(2)

where d is the distance from the root tip, Lmax and Lmin define the higher and lower asymptotes, d50 is the distance corresponding to the mid-point or inflexion point of the curve, and δ is a slope factor at inflexion point (Fig. 1b). The value of Lmin, which would be ideally equal to zero, corresponds to a small amount of noise measured by the image analysis process on the root section devoid of RHs. Hence, for clarity and hereafter, Lmin will now be named Lnoise. This model fit the experimental data presented below with a r2 = 0.93 ± 0.03 SD. Several biologically significant parameters can be inferred. Firstly, the length of newly formed, fully grown RHs can be measured as Lmax. Secondly, the intersections of Lnoise and Lmax asymptotes with the tangent at the inflection point, placed at d50 − 2δ and d50 + 2δ, can be used to define in an arbitrary fashion the positions of initiation and arrest of RH growth. Furthermore, these positions also delineate the approximately linear portion of the sigmoid curve, of width 4δ. Since epidermal cells have stopped their elongation in this region, linearity of this central portion indicates that RHs are growing at the same rate. This rate can be easily computed provided that the root growth rate is known (for more details on this, see “Discussion”):

$$Growth\; rate_{RH} = \frac{{L_{max} - L_{noise} }}{4 \times \delta } \times Growth \;rate_{root}$$
(3)
Fig. 3
figure 3

RHS processed on roots submitted to different treatments. Example of application of RHS to analyse the effect of water, NF or IAA treatment on M. truncatula roots development. Roots were immersed 1 h in water (pink data), 10 nM NF (magenta data) or 10 µm IAA (orange data) and observed 18 h after immersion. A batch of untreated roots where also observed at the same time (green data). a Pictures of representative roots for different tested conditions. Red contours highlight root hairs detected with RHS. Yellow lines indicate root regions considered for the first sigmoidal fit. For untreated and NF treated roots, data obtained between 0 and 6000 µm from the RT were used for the adjustment. For water and IAA treated roots, data from 0 to 5000 µm and from 0 to 2000 µm from the RT were used respectively. Green lines indicate regions used for the second consecutive sigmoidal fit at d50_1 ± 5δ_1. Cyan dots point out d50 − 2δ_2 and d50 + 2δ_2, the initiation and termination of RHs growth. Scale: 500 µm. b RH length and sigmoidal curve adjustment of data obtained with pictures presented in a. Black and red curves present the two consecutive fits achieved. Grey areas highlight data used to perform the second fit. The first dashed lines mark d50 − 2δ_2 the initiation of RHs growth, the second dashed line mark d50 + 2δ_2 the arrest of RH growth. ce Whisker plot comparing, for tested conditions: Lmax parameter (c), estimated RHs growth rate (d), the length between d50 ± 2δ_2 and distance from RT at d50 − 2δ_2 (f). Crosses indicate mean value of the corresponding data, dots present outliers according to Tukey method. Data were obtained from two biological replicates, using 7 to 8 M. truncatula roots per replicate. For RH growth rate estimation using root growth rate, see “Material and methods”. Letters present the significative groups obtained from a one-way ANOVA test with Bonferroni multiple comparison post-test (p < 0.05)

Example of application: effect of IAA and Nod factor on RH growth in Medicago truncatula

The auxin hormone IAA is a key regulator of root and RH growth [18, 19], while Nod factor (NF) is involved in signalling processes leading to the specific Legume/Rhizobium symbiotic interaction, inducing, among others cellular responses, cytoarchitecture modifications and RH swelling (Additional file 2: Fig. S1, [20]). In order to test Root Hair Sizer, Medicago plants (two biological replicates for each condition, using 7 to 8 M. truncatula roots per replicate) were treated either with IAA, NF or water for 1 h, and 18 h later roots were imaged. An untreated batch of plants was referred to as untreated control (Fig. 3a). Images were processed and data points were sampled using an interval of 10 selections as described in “Materials and methods”. In order to fit data with the most accurate sigmoid it was necessary to delimit the set of points to consider. For this purpose, we proceeded in a two step adjustment. The first step was to determine a first rough sigmoid. In order to set the range of positions along the root to take into account for the first sigmoid, we have for each experimental condition, pooled all data points (Additional file 2: Fig. S2). Looking at the data points distribution, we defined a range spanning the root from its very tip up to an arbitrary point within the plateau, corresponding to the maximal length attained by root hairs: 0 µm to 6000 µm for untreated and NF treated roots, 0 µm to 5000 µm for H2O treated roots, and 0 µm to 2000 µm for IAA treated roots (Additional file 2: Fig. S2). Following this, the fit of the first sigmoid was performed for each individual root (Fig. 3b, Additional file 2: Figs. S3, S4, black fit) giving a first inflexion point d50_1 and an extension length δ_1. In a second step we computed the definitive sigmoid fit using the range d50_1 ± 5δ_1. Figure 3b, Additional file 2: Figs. S3, S4 exemplify second fits (in red) attesting that we obtained a good estimation of the RH length curve in this region of the root.

Root hair length values defined by the Lmax parameter obtained through this two-step sigmoidal fit shows that NF compared with water treatment did not affect RH length. However, the treatment itself, consisting in opening square dishes and incubate root for 1 h in aqueous solution, affects root hairs by reducing its elongation (Fig. 3c). IAA treatment, as expected for a treatment at 10 µM [26], induced a strong reduction in RH length. Provided that the root growth rate is known (statistics and root growth rate provided in “Materials and methods”), the model also offers the possibility to estimate RH growth rate (Eq. 3), a parameter that is usually assessed by time dynamic acquisition on individual hairs. In our growing conditions the RH growth rate of 60 µm/h observed for the control was not modified by water, while IAA and NF treatments slowed down the growth rate to 40 µm/h (Fig. 3d). Another interesting parameter is the length of the RH growth region (d50 ± 2δ), which represents the portion of the root along which a RH achieves its full development. RH elongation zones are delimited by the two dashed lines in the sigmoidal fits in Fig. 3b. With a length of about 2000 µm, RH growth regions are equivalent for untreated and H2O and NF treated plants, while IAA treatment strongly affects the elongation of this zone which reaches only 500 µm in this condition (Fig. 3e). Finally, as illustrated in the scheme in Fig. 1, we propose the root segment delimited by the root tip and d50 − 2δ to be a good approximation of the root division and elongation zones. Therefore, the process of division or elongation (or both) is strongly affected in IAA treated roots compared to the other samples (700 μm versus 2000 μm; Fig. 3f; see [25]).

Transfer of the method to other species

In order to explore further the possibilities of the algorithm, RHs of two different species were measured. As for Medicago, the monocotyledon Brachypodium presents a dense population of root hairs, with a light opaque root corpus (Additional file 2: Fig. S5a). Hence the algorithm required only slight modifications to be adapted to the pictures analysed, mainly by adjusting radius or iteration parameters from the steps 3.1, 3.2, 4.1, 4.2, 8.4 and 10 described in Table 1 (Additional file 3: Script 3, see details of adjustable settings in “Materials and methods” section). The sigmoidal fit applied at the region 0 to 6000 µm from the root tip described well the data obtained with RHS (Additional file 2: Fig. S5a). Alternatively, Arabidopsis roots have a very different profile. The hairs are shorter and less dense and the root corpus is more transparent, leading hence to a different grey level dynamic (Additional file 2: Fig. S5b). Consequently, steps 3 to 5, consisting of the thresholding steps, needed to be modified (Additional file 4: Script 4, see details of adjustable settings in “Materials and methods” section). Additionally, the interval of consecutive measurements used to select Lmax was set at 30 instead of 10 in order to adapt the algorithm to the low RH density of such a root. The measured RHs length profile correlates with the image of RHs profile, however the RH length can be locally slightly underestimated when the RH is not growing orthogonally from the root (Additional file 2: Fig. S5b).

Discussion

Relevance of the measured parameters

In previous works, the procedure to select the RHs consisted in defining a fixed distance from the root tip or from the first RH [6,7,8,9]. Such methods can be inaccurate when comparing roots strongly impacted by a treatment, in which RHs length reaches a plateau at widely different distances from the root tip (as in Fig. 3b). Here we propose a method based on the sigmoidal fit of RH length data along the root axis. For sake of simplicity and robustness we adopted a symmetrical sigmoid to describe the growth profile of RHs. A sigmoidal model gave accurate fits when used with our collection of data generated by our image processing routine Root Hair Sizer (RHS). By applying two consecutive, nested sigmoidal fits in a semi-automatic fashion we were able to obtain four relevant RH parameters: (1) length of mature RHs, (2) distance of emerging RHs from the root tip, (3) length of the RH growth region, and (4) estimated RH growth rate (Fig. 3).

We accurately measure maximal RH lengths Lmax and detect experimentally induced changes in length. Hence, this method allows standardizing RH maximal length measured in different physiological conditions, with the robustness deriving from the fit of > 100 data points per root.

In addition, the distance from the root tip to the d50 −  point allows a definition of the end of the root elongation zone, corresponding approximately to the first emerging RHs [21, 22]. Therefore, the region between the root tip and the d50 −  point is a convenient and accurate estimate of the cumulated length of the cell division and elongation zones, and changes in its length reflect changes in one or both of these processes. Similarly, the region defined by the d50 −  to d50+  zone reflects the length of the RH growth region.

Root hair growth rate is usually measured using dynamic acquisition of individual RHs elongating between a microscope slide and coverslip. With our method this value can be conveniently estimated from single root tip images. The RH growth rate estimated in this way under our experimental conditions, from 40 to 60 µm/h, is in the same range than the 48 to 84 µm/h measured on individual hairs of M. truncatula by Sieberer and Emons [20].

Large scale screening and application to other plants

Since the Root Hair Sizer method requires only one image per analysed root, it should be suitable to screen a large plant collection. We timed, for the three root images provided (repository link), 84 s per root for the whole processing (from opening the image to obtaining the data point in Excel, with a computer system 1 Processor 4 cores 2.8 GHz, RAM 32Go). This leads to an estimation of 42 roots processed per hour. RHS could also be applied to plant models other than M. truncatula with adjustments to parameters mainly at the thresholding steps. Additionally, roots with any RH density can be studied by adapting the sampling interval used to generate RH length data. Another prerequisite is the necessity of imaging RHs growing nearly orthogonally from the root. We successfully used RHS on the monocot Brachypodium and on the dicot model plant Arabidopsis to quantify their root hair system.

In the approach presented here, RHs were detected by thresholding pixel intensities. For large scale projects, it could be worthwhile to combine the RHS scanning process and sigmoidal fit of RH length with more flexible methods of RH detection, such as the machine learning based RH detection system developed by Vincent et al. [16].

Conclusion

Root Hair Sizer is a convenient and efficient method to measure RH length and developmental parameters, based on the semi-automatic analysis of one image per root. Subsequent to image processing and RH detection, sigmoidal fitting of multiple RH length data points along the root allows to accurately and reliably measure changes in RH length, and provides estimates of RH growth rate and epidermal cell elongation/division.

Materials and methods

Plant material, culture conditions and root treatments

Wild type Medicago truncatula—R108 seedlings, used for this study, were harvested in 2008 at INRA—Montpellier, France, and conserved at − 20 °C in a tube in which empty space was filled with hydrophilic cotton to reduce moisture. Seeds were slightly scarified using sand paper (grit P80) and then surface sterilized 30 min under agitation in a solution prepared dissolving 1/4 of a commercial bleach tablet into 250 mL of water supplemented with 30 µL detergent. Seeds where then thoroughly washed three times in sterile water under a laminar flow. If detergent was still present, additional washing steps were performed. Following the last wash, seeds were kept 1 h in water at room temperature for imbibition. Excess water was removed and seeds were spread randomly on water medium 1% agar (HP 696-Kalys). Plates were positioned upside down at 4 °C in the dark for 3 to 4 days of stratification. Finally, germination was achieved at room temperature in the dark overnight, keeping plates upside down to allow a straight root growth outside of agar, and to facilitate further transfer on a new culture medium. Seedlings were then cultivated on modified Fahraeus medium solidified with 1.3% Agar (HP 696-Kalys) (modified Fahraeus medium: CaCl2 1 mM, MgSO4 0.5 mM, KH2PO4 0.7 mM, Na2HPO4 0.8 mM, Fe EDTA 50 μM, 0.1 mg/L of each following microelements: MnSO4, CuSO4, ZnSO4, H3BO3 et Na2MoO4, pH adjusted at 7.5 with KOH) [23]. A maximum of 8 seedlings with roots around 1 cm were transferred per square Petri dish (12 cm × 12 cm) containing the culture medium covered by an inert absorbent paper (Mega International-USA) to avoid root penetration. During transfer, 125 µL of sterile Milli-Q water was added to each root to prevent dryness before closing boxes with Millipore tape. Black pockets were used to cover the bottom part of the dish in order to protect roots from light. Finally, dishes were positioned with around 45° angle from the vertical in culture rooms maintaining conditions at 24 °C, 60% humidity and 16 h illumination.

To test the RHS algorithm, roots were submitted to different treatments. A first set of untreated plants were cultivated for 3 days after transfer, prior to imaging their roots under a microscope. For treated conditions, 2 days after transfer, dishes were opened and placed horizontally to add 20 mL of treatment solutions composed of either 10 nM Nod factor (NF), or 10 µM Indole-3-acetic acid (IAA) diluted in sterile Milli-Q water. As a control, plants were treated with sterile Milli-Q. After 1 h of root immersion, excess liquid was removed, and dishes were closed and put back in the culture room for 18 h.

Arabidopsis thaliana (Col0) seeds were surface sterilized for 3 h with chlorine gas produced by mixing 3 mL of HCl 37% with 50 mL of sodium hypochlorite 10%. Seeds were spread in a square dish (12 cm × 12 cm) filled with 1/2MS medium jellified using 0.8% of Plant agar (Duchefa). The dish was stored for 2 days in the dark at 4 °C for stratification and then at 21 °C, 16 h illumination for germination and culture. After 9 days, the seedlings were used for image acquisition.

Brachypodium distachyon (Bd21-3) seeds were peeled off from husk using forceps, then sterilized for 15 min on a rocker in 1 mL of sterilization buffer (20% household bleach, 0.1% Tween20) and rinsed 4 times in double-distilled water. The seeds were deposited into a square dish (12 cm × 12 cm) filled with 1/2MS supplemented with 1% agar, with the embryo pole of the long axis of the seed pointing downward. After 2 days of stratification at 4 °C, the dishes were transferred and place vertically into a growth chamber at 28 °C and 16 h of illumination for germination. The seedlings were ready for imaging 3 days after germination.

Image acquisition

Before describing in detail the different steps of the method, the whole pipeline depicting the entire process that encompass Imaging, Fiji Script analysis, data sorting and sigmoid fit is summarized in Additional file 2: Figure S6.

Three days after transfer into the growth chamber (that is to say 18 h after specific treatments if applicable), roots were excised from aerial organs and placed between slide and coverslip in liquid Fahareus medium. A bright field microscope (Leica DMI6000 with motorized stage x, y, z. LAS software, Halogen Leica lamp, 5× Dry objective with 0.15 numerical aperture, Hamamatsu Orca ER-1395 Camera) was used to acquire images with a resolution of 19,703 ppi. RH width is on average covered by 10 pixels. The motorized stage of the microscope and the mosaic reconstitution facilities of LAS software were used to acquire and reconstitute all the analysed images (analogous tools are freely available in ImageJ and Fiji [24]). The precise selection of the ending of the root zone to acquire is not required, since this selection will be standardized later with the sigmoidal model. To obtain sharp images of RHs along the root, Z-stacks of five images spaced by 100 µm were acquired.

Brightfield images of Arabidopsis roots were obtained with a resolution of 15,631 ppi by placing the opened culture box directly under a Nikon SMZ18 stereoscope, equipped with a 0.5× Nikon SHR Plan Apo WD:71 objective, zoom 8, and Hamamatsu C11440 camera. Three XY positions were acquired per root by manually moving the box under the field of view so that two consecutive images overlapped. No Z-stack was necessary.

Brachypodium seedlings were imaged in between microscope slides and coverslips filled with water, keeping the leaves uncovered from the coverslip. The images were acquired with the same optical system as for Arabidopsis seedlings, with a final magnification of 40×. Two XY positions were acquired per root in order to have 2 consecutive images overlap. No Z-stack was necessary.

XY images obtained for Arabidopsis and Brachypodium were stitched in Fiji using the plugin 2D Stitching [24]. If the image overlap wasn’t sufficient for 2D Stitching to work properly, the stitching was executed manually using the plugin MosaicJ [25].

Root Hair Sizer: image processing

All image processing was done using Fiji open source software, but can be achieved also in ImageJ open source software with AnalyzeSkeleton and Auto_Threshold plugins installed [26,27,28]. As a starting point, a single image is required where all RHs are focused. Here, we generated Z-projections by summing five acquired slices, but any acquisition and processing method producing a single sharp image of RHs along the root can be employed.

The rest of the processing can be applied by running the RHS algorithm available in Additional file 1: Script 1. A summary of all the algorithm’s steps is also available in Table 1 and illustrated in Figs. 2 and Additional file 2: Fig. S5. The Additional file 5: Movie 1 is additionally available to clarify the understanding of the interface. The first part of RHS processing consists of the detection of RHs area. The method, inspired by Inoue et al. [15], consists of pixel intensity thresholding. A first process will detect the RHs outline, while a second processes the outline of the root only. To avoid manual definition of the pixel intensity threshold, an automated thresholding was used. Detection of root with RHs was achieved using the Bernsen method, whereas the root axis alone was detected by the Phansalkar method (Additional file 2: Fig. S7 and Table 1-steps 3 and 4) [29, 30]. To smooth and fill holes of both binary images generated, several steps of pixel dilatations and erosion were applied (Table 1-steps 3.2 and 4.2). The root axis image was then subtracted from the whole root image (root with RHs) (Additional file 2: Fig. S7 and Table 1-step 5) to obtain the surface covered by RHs alone. Background noise was erased in step 5.2 (Table 1-step 5.2).

As subsequent steps require the root to be straight, the root medium line (RML) is recovered as the longest path of the skeleton obtained from the root axis image after running the ‘Skeletonize’ and ‘Analyse Skeleton (2D/3D)’ commands (Additional file 2: Fig. S7 and Table 1-steps 8.1 and 8.2). The RML image is then converted into a poly-linear selection (steps 8.3 and 8.4), and straightened with FijiStraighten’ command (Additional file 2: Fig. S7 and Table 1-step 10). Since ‘Straighten’ generates a grey levels image, an additional binarization is implemented (Table 1-steps 11 and 12). In the final image, RH pixels have a value of 1, and background pixels a value of 0.

Root Hair Sizer: RH length measurement

Root hair length measurement is done in two steps, as detailed in “Results” section (Fig. 2). First, a rectangular selection is slid along the root axis of the straightened, binarized image of RHs, measuring the height “L” of RH surface within the selection at each step (Table 1-steps 14.1 to 14.3) with formula (1). Second, a given number (typically 10) of consecutive individual L values were Max-filtered to obtain a Lmax value as an estimate of RH length (Table 1-steps 14.4 to 14.5). Each Lmax value is associated with a corresponding distance from the root tip and written to a table.

Root Hair Sizer: adjustable settings

Depending on the type of root and properties of the acquired image, it may be necessary to adjust some settings. Adjustable steps are highlighted with several asterisks in RHS script, while settings we employed in Medicago examples shown are listed in Table 1. When thresholding the image, the radius value for the Bernsen and Phansalkar thresholding methods can be adapted e.g. for images of different resolution, as well as the number of erosions and dilatations applied directly after. If the root hair profile and the type of optical set up used for the acquisition are very different from the example presented here, the users are encouraged to personalise the thresholding strategy to adapt to their own settings. For Arabidopsis roots for example, the Phansalkar instead of Bernsen thresholding method was used at step 3 to detect RH shape, whereas the Bernsen instead of Phansalkar thresholding method was used at step 4 to detect root shape. Additionally, step 5 was no longer necessary (Additional file 4: Script 4). The root skeletonization process might also need some adjustment. The amount of simplification of the poly-line highlighting the root medium line obtained after ‘Skeletonize’ and ‘Analyse Skeleton (2D/3D)’ commands can be adjusted for much larger or smaller images. Finally, in the straightening process, it is important to adjust the width of the poly-line so that it covers all RHs.

When running RHS, a dialog box allows the user to select the root segment to analyse. The width w of the scanning selection can be adjusted so that it is slightly thinner than one RH (from 1/2 to 2/3). Finally, the interval size in which Lmax should be chosen can also be adapted. An interval of 10 selections to collect Lmax seemed accurate in the examples shown here. The effect of varying this parameter, which regulates the amount of data points retained versus data variability due to e.g. “holes” in RH profile, is illustrated in Additional file 2: Fig. S8).

Root Hair Sizer also proposes to annotate the image if some parts of the root need to be removed from the analysis. The position of these comments along the root are recovered in the final table through the annotation of each data point as 1 and 0 (respectively the presence and absence of the comment at this point) on separated columns. Furthermore, at several steps RHS allows the user to check and eventually manually correct the automatic process achieved by the algorithm. All automatic definitions and manual corrections are recorded and saved as region of interest (ROI). After running RHS a first time, it is possible to analyse another region of the root while using ROI associated with the original image by employing the script presented in Additional file 6: Script 2. To run this script, it is important to use the same RML width and to fill the first dialog box with the same comment names used with the main RHS algorithm.

Data processing

Data collected with RHS are sorted with Excel spreadsheet software. For all presented results, regions presenting an artefact (for example, a bubble or dust) were removed from the analysis. For some images, one side of the root presented smaller RH all along the length compare to the other side, mostly for roots growing side by side. In these cases, only the side with longer RH were kept for the analysis. Other specific data sorting or parameters are mentioned in figure legends or in the text. As described above in “Results”, in order to accurately fit data points we proceed with two successive sigmoid fits. Then, as exampled in Figures Fig. 3b, Additional file 2: Figs. S3, S4, we obtained a good estimate of the section of the curve harbouring a sigmoid shape.

Data were fitted with the sigmoidal curve \(f\left( d \right)\)

$$f\left( d \right) = L_{min} + \frac{{L_{max} - L_{min} }}{{1 + e^{{\left( {d_{50} - d} \right)/\delta }} }}$$
(4)

This first fit provides the inflexion point d50_1 and extension length δ_1. Then, we settle the limits for the second fit between d50_1 ± 5δ_1.

Sigmoidal adjustment was achieved using GraphPad Prism software. Data obtained from each image were treated separately. A least squares fitting has been applied using the following rules to define the fit’s initial values for each considered image:

$$initial\;L_{noise} = L_{absolute\;min}$$
$$initial\;L_{max} = L_{absolute\;max}$$
$$initial\;d_{50} = d at \left( {L_{absolute\;max} /2} \right)$$
$$initial\;\delta = d at \left( {0.1 \times L_{absolute\;max} /2} \right)$$

with Labsolute min and Labsolute max respectively the minimal and maximal RH length measured in all data obtained along the whole root of the considered image.

Root growth rate measurement

This measurement was done on separate batches of roots in the same condition than for RH length measurement. After 1 h of root immersion in the treatment solution, boxes were emptied, then closed, and the RT position was marked on the box cap with a marker. After 18 h of incubation, the new RT position was marked and the box was scanned. The distance between two consecutive points was then measured using Fiji software. The root growth rate can be measured as the ratio of this distance by the time between the two measures. Root growth was measured from two biological replicates giving the following values (mean ± SE): untreated: 296 ± 17 µm/h (n = 26); H2O: 304 ± 16 µm/h (n = 26); NF: 225 ± 15 µm/h (n = 23); IAA: 55 ± 3 µm/h (n = 19).

Statistics

GraphPad Prism software was used to achieve statistical analysis and sigmoidal fitting. All details about sample size, biological replicates or leaded tests are specified in the figure legends.