Introduction

Wood properties are directly determined by cell arrangement, cell size and shape, and cell wall structure and thickness. Each species is characterized by a relatively constant arrangement of tissue elements, which is thus in use for wood species identification (Smith 1967). On the other hand, differences in macroscopic and microscopic structure of wood in softwood species result from genetic and abiotic factors: plant age (juvenile or mature wood—Zobel and Sprague 1998; Plomion et al. 2001), season of maturation within the growth ring (early and late wood—Uggla et al. 2001) or mechanical stress as a consequence of wind and stem lean (compression wood, opposite wood and normal wood—Timell 1986). In the forest products’ industry, juvenile wood, early wood and compression wood, generally have limited value, and therefore the determination of their amounts is of great importance. Cross-sectional tracheid shapes are a good indicator of the anisotropy of wood properties (Watanabe et al. 1998), thus measurements of various cross-sectional dimensions of wood cells are often used in comparative research of wood structure, either for evaluating environmental influences, or for structure/properties ratio estimation as important features that distinguish wood quality. Different methods have been applied for measuring different wood cell dimensions (cell wall area, radial cell wall width, double wall thickness, or cell lumen), such as manual and automated measurements on micrographs (Mork 1928; Brown et al. 1949; Gofas and Tsoumis 1975; Klisz 2009; Selig et al. 2012), or from distance maps reconstructed from digital images (Travis et al. 1996; Lorbach et al. 2012). Such measurements have been widely in use for estimation of early wood (EW) and late wood (LW) ratio within an annual ring in gymnosperms by Mork’s index (Mork 1928), circularity index (Jagels and Dyer 1983), or aspect ratio (Diao et al. 1999).

Tracheid double wall thickness, as an important wood anatomical feature, besides being known as an indicator of transition from EW to LW within an annual ring in gymnosperms (the ratio between radial double cell wall thickness and cell lumen diameter, Mork 1928), also characterizes the differences between juvenile and mature wood (Mitchell and Denne 1997; Luostarinen 2012), as well as between normal and compression wood (Timell 1986; Plomion et al. 2001). Hence, determination of tracheid double wall thickness could provide good evidence of environmental influences during conifer trees growth and development.

In this study, we present and test an automatic image processing morphometric method for the analysis of tracheid double wall thickness. The use of Euclidian distance maps for calculating the thickness of wood cell wall was suggested earlier in estimations of pulp or paper quality (Koskenhely and Paulapuro 2005; Selig et al. 2012; Lorbach et al. 2012). The novelty of our method is the use of morphological image processing of structural elements with the different orientations (Dougherty 1992) on Euclidian distance maps reconstructed from microscopic images. This kind of image processing allows determination of the distribution of tracheid double wall thickness separately for tangential walls, radial walls, and cell corners.

For testing the performance of our automatic image processing morphometric method, we used confocal laser scanning microscopy (CLSM) images of stem cross-sections of juvenile P. omorika trees exposed to long-term static bending. Conifers, as a response to mechanical stress, form reaction wood called compression wood (CW) (Timell 1986). Compression wood occurs in a range of gradations from near normal wood (NW) to severe CW (SCW), mild CW (MCW) forming a continuum between NW and severe CW. In slow-growing natural conifer trees, CW, if present, typically occurs in a severe form, but in fast growing plantation forests and in juvenile wood, a mild form of CW can often be found (Donaldson et al. 2004). Conifer young trees, both in virgin forests of spruce and in pine plantations, contain a fair amount of CW, being usually most evident near the pith, as a young thin stem frequently needs to reorient itself, by constant lean corrections under the influence of wind, or by reposition of its crown to better capture the light (Timell 1986). Under the influence of constant wind with changing direction, CW may form around the entire growth ring even in straight vertical fast growing young conifer stems (Barnett et al. 2014). Compression wood formed under moderate wind conditions was found to be MCW (Donaldson and Singh 2013). Correspondingly, artificial inclination at the small angle of juvenile Picea glauca trees resulted in MCW formation, while inclination at the high angle resulted in SCW formation (Yumoto et al. 1983). Anatomic features of severe CW includes: increased wall thickness, reduced lumen diameter, rounder cell cross-sectional profile, presence of intercellular spaces, S2 layer divided into an outer S2L region and an inner S2 region containing helical cavities, and absence of S3 layer (Yumoto et al. 1983; Plomion et al. 2001; Donaldson et al. 2004). Mild CW tracheids may have a distinct S3 layer; they show the varying extent of development of S2L region, no helical cavities, thicker cell walls than the NW and lack of intercellular spaces (Yumoto et al. 1983; Donaldson et al. 1999; Donaldson and Singh 2013). The degree of development of particular features of CW does not necessarily change in parallel to each other, so the severity of a given tracheid is represented as a function of the degrees of development of individual features, mainly lignification, helical cavities and cell wall thickness (Yumoto et al. 1983). Although cell wall thickness is strongly subjected to the annual variation, with some limitations it could be an indicator of CW severity (Yumoto et al. 1983). As the severity of compression wood affects mechanical and chemical properties of wood, it is desirable to be able to measure CW severity (Altaner et al. 2009). Since visual detection of compression wood severity, more precisely the determination of mild CW, is difficult, different digital image analysis techniques for distinguishing wood samples on a compression severity scale were developed (Andersson and Walter 1995; Nyström and Hagman 1999; Moëll and Fujita 2004; Duncker and Spiecker 2009; Savić et al. 2016).

Various non-morphometric methods for quantification of compression wood severity based on lignin content and structure, as the most reliable indicator of compression wood, and polysaccharides composition and organization, have also been established: scanning Fourier transform infrared microspectroscopy and immunolabeling of (1–4)-β-galactan (Altaner et al. 2009), chemical analysis (Nanayakkara et al. 2009), fluorescence spectroscopy and spectral analysis of lignin (Donaldson et al. 2010).

Our automatic image processing morphometric method that enables the assessment of double cell wall thickness, separately for different regions of tracheid cell wall (radial, tangential, and cell corners), could provide valuable data in evaluation of environmental influences during conifer trees growth and development, and consequently in estimation of wood quality, as wood properties are directly determined, among other features, by tracheid wall shape and thickness.

Materials and methods

Plant growth and sample collection

Picea omorika (Pančić) Purkynĕ, the Serbian spruce, is a Balkan endemic coniferous species and tertiary relict of the European flora. Despite its endemism, P. omorika is considered as one of the most adaptable spruces. It belongs to slow-growing conifer species, its wood is characterized by small, densely packed tracheids, while CW typically occurs in a severe form (Timell 1986; Donaldson et al. 2004).

Four-year-old P. omorika trees were grown in plastic pots (20 × 20 × 20 cm) outdoors in Belgrade, Serbia (44°49′N, 20°29′E). The plants were about 70 cm tall. Severe static bending stress was applied by wiring at the end of the growing season, in October 2009. The bending angle was about 90° (Mitrović et al. 2015). Stem samples (about 3 cm long) were taken at about 15 cm from the stem base in July 2010, and then debarked, air dried, and 100 µm thick cross-sections were prepared on a microtome.

Selection of CW wood samples for microscopic analysis was made by location relative to stem bending. Strongly leaned trees form SCW on the lower side of the lean, while on the lateral sides form MCW (Yumoto et al. 1983). So, SCW samples (S5 and S6, Fig. 1) were selected from the lower side of the lean, while MCW samples were selected from the lateral sides (S3 and S4, Fig. 1) of the last growth ring from plants exposed to long-term static bending. Normal wood is often uncommon in juvenile conifers, as they produce large amounts of randomly distributed mild CW (Donaldson et al. 2004). So, NW samples (S1 and S2, Fig. 1) were selected from the growth ring with the lowest amount of CW.

Fig. 1
figure 1

The CLSM images (first column, image size 512 × 512 pixels, with 160 × 160 µm image physical size and 0.3125 µm pixel size), corresponding binary images (second column) and distance maps (third column) of P. omorika stem samples; S1 and S2—NW samples, selected from the growth ring with the lowest amount of CW; S3 and S4—MCW samples, selected from the lateral sides of the last growth ring from plants exposed to long-term static bending; S5 and S6—SCW samples, selected from the lower side of the lean of the last growth ring from plants exposed to long-term static bending; number of analysed tracheids per sample: 93 (S1), 53 (S2), 75 (S3), 99 (S4), 80 (S5), 62 (S6)

Confocal microscopy

Cross-sections, 100 µm thick, of air-dried stem samples were stained for two hours in Congo Red 1 mM solution (from Sigma, Steinheim, Germany) and then washed with deionised water to remove the unbound dye.

For imaging, we used a Zeiss LSM 410 microscope. Confocal images were 512 × 512 pixels, with 160 × 160 µm image physical size and 0.3125 µm pixel size, using a 40×/0.75 objective and 2× zoom (Fig. 1). Congo Red was excited using the 488 nm line of the Ar-ion laser, and fluorescence emission was detected above 560 nm. Analyzed stem cross-sections were always oriented the same way—tracheid tangential walls parallel to the X-axis and radial walls parallel to the Y-axis, to be able to determine tangential and radial double wall thickness.

Tracheid cell wall analysis on digital images

A new algorithm for image analysis was developed for calculating double cell wall thickness. This algorithm was realized in the universal system for image analysis—Imagewarp (http://www.imagewarp.com/) from A&B Software company (USA). It is realized as specific scripts that use the function of Imagewarp such as distance map, gray-scale thinning, mathematical morphology and measurement. Also, these scripts were adapted for software for image analysis QTIP that was developed in United Institute of Informatics Problems (UIIP), National Academy of Sciences (Belarus). The first step of this algorithm is the extraction of cell patterns on the original image. It was performed via binarization (Fig. 1) of the enhanced image using Otsu’s threshold method (Otsu 1979). The result is an aligned histogram of brightness and the threshold for binarization is selected on it. The threshold is unique for each image. This way the shading of the confocal images due to a change in the depth of the focal plane is overcome to a significant extent. After that, operations of mathematical morphology were applied to the binary images (Fig. 1) for their shape correction. The next step is the reconstruction of the distance maps (Kimmel et al. 1996) obtained from the images (Fig. 1) to determine the distances between lumens of two adjacent cells.

The intensity of each pixel on the distance map image corresponds to the distance to the nearest cell lumen. The distance between lumens of two adjacent cells was determined as a conjunction of the morphological medial lines and the distance map. To find the morphological medial lines, pixels corresponding to the local maxima were found and then gray thinning was applied to those pixels (Ablameyko et al. 2006).

For the construction of a distance map, a gray-scale image is represented as 3D shape (Fig. 2a) or as a collection of binary layers where every lower layer includes pixels from a higher layer. The 3D space is represented in horizontal, vertical and brightness axis (Fig. 2a, c). This way the image is described as a topological surface. Distance map of one binary layer is constructed by increasing pixels depth for reflecting distance properties of pixels. A gray-scale image has up to 256 Gy levels. In this way, a binary image may be constructed as the cross-section of the two-dimensional brightness function of the gray-scale image, and one may construct up to 255 binary images.

Fig. 2
figure 2

Construction of a distance map: a example of an object as the 3D representation of the image as topological surface, the 3D space is represented by X-, Y-, and brightness axis (Z-axis), b its distance map; c distance map (2D) that corresponds to S6 sample from Fig. 1

Our algorithm of the distance transform contains two raster-scans of the image. The first scan is realized in the direction from top to bottom of the original gray-scale image and then from left to right. For constructing pseudo-distance maps in this direction, every pixel is changed by the following condition:

$$p=\left\{ {\begin{array}{*{20}{l}} {({p_i}+{f_i}),\quad {\text{if}}\quad ({p_i}+{f_i}<p)\;{\text{and}}\;({p_i}+{f_i} \geqslant L(p))\;,\;i=0,...,n} \\ {L(p),\quad {\text{if}}\quad ({p_i}+{f_i}<L(p))\;,\;i=0,...,n} \\ {p,\quad {\text{another}}\,{\text{case}}} \end{array}} \right.,$$

where p—is the pixel gray value, L(p)—the level of a binary layer in the image, pi—the value of neighborhood pixels, fi—the value of the corresponding point from the mask-table for Chamfer metrics (Fig. 2), i—index of the element in the mask-table, n—number of elements in mask-table. The second scan is realized by the similar condition with direction from bottom to top and from right to left. It finalizes construction of the distance map for every binary layer. In result, we have a set of layers of distance maps for all layers. Every layer starts from a fixed value, which is multiplied by 256. In the result, numbers of the map reflect combined properties of the pixel gray-values and distances. Example of the distance map is shown in Fig. 2c.

Using the calculated distance map, one can use a thinning algorithm that is based on the metric used for the distance map construction. The algorithm for detection of skeleton pixels consists of two parts (see Table 1):

Table 1 Conditions to detect feature pixels
  1. 1.

    Detection of feature pixels (topological properties):

  1. a.

    End pixels;

  2. b.

    Saddle pixels;

  3. c.

    Duplex of saddle pixels;

  4. d.

    Local maximum.

  1. 2.

    Determination of remaining elements of a skeleton.

Example of the gray-level skeleton is shown in Fig. 2c.

The result of distance map thinning is the skeleton of all double walls on the image that consist of ridge pixels from the distance map. For this skeleton, the distribution of pixel brightness corresponds to the distribution of double wall thickness in pixels.

The next step in our new algorithm was the classification of resulting lines (Fig. 3) by orientation to determine double wall thickness of radial and tangential walls (Fig. 3c, d). It is realized by morphological processing with structure elements of different orientation (Dougherty 1992). As a result we calculated: distribution of double wall thickness of entire tracheids (Fig. 3a), distribution of double wall thickness of tracheids at cell corners (Fig. 3b, which yields information on circularity/rectangularity of cross-sectional profile of tracheid wall), and distribution of double wall thickness of radial and tangential walls (Fig. 3d).

Fig. 3
figure 3

The result of thinning of distance map: a skeleton of all double cell walls; bd topological features of cell walls: b fragments of double cell walls skeleton (nodes in the skeleton) representing cell walls at cell corners; c fragments of double cell walls, separated as branches of the wall skeleton; d classification of those fragments by orientation (green and red lines—radial walls; blue lines—tangential walls)

To the obtained set of data (the distribution of pixel brightness which corresponds to distribution of double wall thickness in pixels), we applied IBM SPSS software, Nonlinear Curve Fit function for fitting the Gaussian curves on the data that were used to show the overall variation in tracheid double cell wall thickness in a response to mechanical stress. For comparison of the maxima positions of Gaussian curves between samples S1–S6 (Fig. 1), we used one-way ANOVA to test for significant differences, while the Duncan test was used for post hoc analysis. In all tests, p ≤ 0.05 was used to define “significant difference”.

Results and discussion

Image processing techniques are in use for estimation of the EW and LW ratio as a significant feature for forest products’ industry (Mork 1928; Jagels and Dyer 1983; Diao et al. 1999). Computerized image analysis has also been suggested as a tool for estimation of pulp or paper quality (Koskenhely and Paulapuro 2005; Selig et al. 2012; Lorbach et al. 2012) The efforts to use such techniques for the estimation of compression wood severity were more (Duncker and Spiecker 2009; Savić et al. 2016) or less (Andersson and Walter 1995; Nyström and Hagman 1999; Moëll and Fujita 2004) successful in recognizing mild CW.

Here we present and test an automatic image processing morphometric method for the analysis of tracheid double wall thickness. Our new algorithm consists of the extraction of cell patterns from the original microscopy image via binarization using Otsu’s threshold method (Otsu 1979) and reconstruction of the distance maps (Kimmel et al. 1996). The use of Euclidian distance maps for calculating the thickness of wood cell wall was suggested earlier in estimations of pulp or paper quality (Travis et al. 1996; Koskenhely and Paulapuro 2005; Selig et al. 2012; Lorbach et al. 2012). The novelty of our method is the use of morphological image processing of structural elements with the different orientations (Dougherty 1992) on distance maps reconstructed from microscopic images, allowing determination of the distribution of tracheid double wall thickness separately for tangential walls, radial walls, and cell corners (Fig. 4b–d).

Fig. 4
figure 4

Distribution of double wall thickness of a entire tracheid walls, b tracheid at cell corners, c tangential walls and d radial walls, determined by morphological processing of structural elements with different orientation from distance maps obtained from the CLSM images of (S1–S6) samples (Fig. 1); af significant difference at 5% level of significance of the maxima positions of Gaussian curves between samples S1–S6 from Fig. 1; µ mean values, \(\sigma\) standard deviation, px pixels

We test our automatic image processing morphometric method using CLSM images of stem cross-sections of juvenile P. omorika trees exposed to long-term static bending. As samples for the analysis were selected from the last growth ring from plants exposed to static bending, as well as from the growth ring with the lowest amount of CW (S1 and S2), this is at the same time the test of our method as a tool for estimation of compression wood severity. Juvenile conifer stem samples could be a good choice of samples for evaluating the precision of methods for estimation of compression wood severity, since juvenile conifers produce randomly distributed MCW (Donaldson et al. 2004). The examples are the methods successful in the estimation of compression wood severity, which were evaluated on samples of juvenile Picea abies (Duncker and Spiecker 2009) and P. omorika (Savić et al. 2016).

One-way ANOVA and Duncan test were performed for the maxima positions of Gaussian curves of the distribution of pixel brightness corresponding to double wall thickness distribution for the samples S1–S6 (Fig. 1). As a result, our image processing method aligns juvenile P. omorika wood samples from NW to severe CW (Fig. 4a–d), suggesting that it could be used as a tool for fine gradation of wood samples on compression severity scale. On the obtained scales (Fig. 4a–d), the samples S1 and S2 (Fig. 1), representatives of NW, selected from the growth ring with the lowest amount of CW, are positioned to the left. The samples S5 and S6, representatives of SCW, selected from the lower side of the last growth ring from plants exposed to long-term static bending, are positioned to the right (Fig. 4a–d). The samples S3 and S4, representatives of MCW, selected from the lateral sides of the last growth ring from plants exposed to static bending, are positioned in the middle of the formed scale (Fig. 4a–d).

In addition, our automatic image processing morphometric method separates samples S1 and S2 (Fig. 1), representatives of NW, positioning the S2 sample to the right on the scale, closer to mild compression wood samples S3 or S4 (Fig. 4a–d). This could be easily explained as NW samples (S1 and S2) were selected from the growth ring with the lowest amount of CW, since juvenile conifers produce large amounts of randomly distributed mild CW, NW often being uncommon (Donaldson et al. 2004).

However, compression severity scales based on double wall thickness distribution of entire tracheids (Fig. 4a), tracheids at cell corners (Fig. 4b), tangential (Fig. 4c) and radial walls (Fig. 4d), differ to some degree. Compression severity scale based on double wall thickness distribution of entire tracheids (Fig. 4a) aligns samples (S1-S6, Fig. 1) in the following order: S1, S2, S4, S3, S5, S6; the scale based on double wall thickness distribution of tracheids at cell corners (Fig. 4b): S1, S3, S2, S4, S6, S5; the scale based on double wall thickness distribution of tangential walls (Fig. 4c): S1, S2, S3, S4, S6, S5. This suggests that different regions of P. omorika tracheid cell wall (radial walls, tangential walls, and cell corners) show somewhat different cell wall thickening in response to mechanical stress.

Compression severity scale based on double wall thickness distribution of radial walls (Fig. 4d) shows additional specificity: there is no significant difference between maxima positions of Gaussian curves for the samples S3, S4, and S5, S6, respectively. In other words, compression severity scale based on double wall thickness distribution of radial walls (Fig. 4d) is grouping, and consequently sharply distinguishing mild CW samples (S3 and S4) from severe CW samples (S5 and S6).

It is known that radial and tangential walls can vary significantly regarding cellulose microfibril angle as the most commonly measured feature of wood cell walls (Gorišek and Torelli 1999; Khalili et al. 2001; Anagnost et al. 2005), or regarding distribution and order of cellulose fibrils (Savić et al. 2016). So far, most investigations, regarding cellulose microfibrils (Donaldson 2008), or other features of wood cell walls such as cell wall thickness (Mork 1928), have been carried out on radial cell walls.

After testing our automatic image processing morphometric method for the analysis of tracheid double cell wall thickness, combined with statistical analysis, on wood samples of juvenile P. omorika exposed to long-term static bending, we could suggest it as a tool for fine gradation of conifer wood samples on a compression severity scale.

Conclusion

We have presented hereby an automatic image processing morphometric method for the analysis of tracheid double wall thickness. We have tested the performance of our method on CLSM images of stem cross-sections of juvenile P. omorika trees exposed to long-term static bending. The method has many advantages with a small number of requirements. It enables fast automatic analyses of wood samples. It is independent of the type of microscopy used. The quality of digital images is not limiting, as only the contrast between cell lumen and cell wall is of interest. The only requirement concerning image quality is the use of microscopic images of the same resolution. Our method applies a new algorithm of image analysis to examine double wall thickness distribution of radial walls, tangential walls and cell corners separately, based on the morphological processing of structural elements with the different orientation from distance maps. That is the reason for the second requirement of our method—tangential and radial walls must be oriented the same way on all microscopic images being compared.

We showed that our morphometric method analyzing double wall thickness distribution of entire tracheids, tracheids at cell corners, tangential and radial walls, provides a fine gradation of juvenile P. omorika wood samples from NW to the severest form of CW, compression severity scales being partially different. Radial walls double wall thickness distribution, in addition, is grouping and consequently sharply distinguishing mild CW samples from severe CW samples, and hence could be suggested as a useful and rapid tool for distinguishing severe CW samples from mild CW samples. The presented result could qualify our method for use in estimation of compression wood severity in forest products industries, alone or in combination with other non-morphometric methods.

Our new image processing algorithm, combined with statistical analysis, could be a useful tool in estimation and gradation of changes in tracheid cell wall thickness as a response to environmental influences during growth and developmental process. As tracheid radial and tangential walls can vary significantly regarding cell wall thickness, its potential for estimation of double wall thickness distribution separately for different regions of tracheid cell wall (radial walls, tangential walls, and cell corners) is a valuable advantage of our automatic morphometric method.

Author contribution statement

AM, JBP, JSR and KR—experimental design, sample collection and processing. AS, GS and GG—confocal laser scanning microscopy. AN and VS—image processing methods. DM—statistical data analysis. AM, and KR—general consideration of the results and writing the manuscript. KR—coordinated the study.