Introduction

Structure of bread crumb has been traditionally analyzed based on the experience of baker who evaluates compactness and uniformity of the bread grain, as visually perceived traits dealing with the size, shape, uniformity and wall thickness of crumb cells or pores (Rogers et al. 1995; Pyler 1988) all of them representing, at a macroscopic level, the solid and fluid phases of bread crumb (Scanlon and Aghal 2001). The fluid phase also named as cells or pores (Fig. 1) can be divided in three groups: closed, blind and flow-through pores or cells, covering diameters of a few microns to several thousand microns (Datta et al. 2007).

Fig. 1
figure 1

Schematic diagram of the structure of bread crumb structure

In recent years, image analysis (IA) has been used as quantitative tool for the assessment of crumb features (Zayas 1993; Sapirstein et al. 1994; Crowley et al. 2000; Riva and Liviero 2000; Lagrain et al. 2006; Gonzales-Barron and Butler 2006; Calderón-Domínguez et al. 2008; Ribotta et al. 2010) and digital scanners to capture bread crumb two dimensions (2D) high-resolution images (Esteller and Lannes 2008; Datta et al. 2007; Lassoued et al. 2007; Esteller et al. 2006). Hatcher et al. (2004) reported that the use of a scanner for image acquisition, for the assessment of oriental noodle appearance and colour, offers all the advantages of previously investigated camera based systems, while Esteller et al. (2006) explained that the acquisition of 2D images by flatbed scanning is fast, easy to use, economical, robust, independent of the external light conditions and with good accuracy.

In bread-making practice, IA has been used for quantifying crumb features such as cell size, cell size distribution, number of cells per unit area, cell wall thickness, void fraction and shape factor (Calderón-Domínguez et al. 2008; Rosales-Juárez et al. 2008; Gonzales-Barron and Butler 2006; Lagrain et al. 2006; Takano et al. 2002) or even the volume of the product (Chevallier et al. 2010). However, there is not yet a standardized technique for this evaluation as differences among the reported IA methodologies for acquiring images by scanning or when pre-processing or processing these images to obtain crumb features are found. Some of these differences among the reported methodologies are about the scanning resolution, where it is possible to find reports using 150 dpi (Skendi et al. 2010; Crowley et al. 2000), 200 dpi (Esteller and Lannes 2008; Esteller et al. 2006; Collar et al. 2005), 300 dpi (Pérez-Nieto et al. 2010; Lagrain et al. 2006, 2008), 350 dpi (Rosell and Santos 2010; Gonzales-Barron and Butler 2006), 550 dpi (López-Guel et al. 2010), 600 dpi (Baiano et al. 2009) or even without reporting the scanning resolution applied to the analysis. In the same context, the range of cells used to evaluate the crumb features, with some exceptions (Pérez-Nieto et al. 2010; Skendi et al. 2010; Gonzales-Barron and Butler 2008b; Crowley et al. 2000) is not mentioned. These differences in methodologies could result in different data for similar breads, making difficult to compare information among published reports.

Another parameter obtained by IA is the fractal dimension (FD) which provides a numerical descriptor of the morphology of objects with complex and irregular structures and it has been used to explain changes in the structure of food materials during or as a consequence of processing (Kerdpiboon and Devahastin 2007; Chanona et al. 2003; Rahman 1997; Barletta and Barbosa 1993; Peleg and Normand 1985). This parameter, very often a non-integer, measures the degree of irregularity of an object over multiple scales and determines how a fractal differs from Euclidean objects such as a point (FD = 0), a line (FD = 1.0), a surface (FD = 2) or a solid (FD = 3), resulting in a measure of their geometrical complexity. So a porous material, like bread, is described as a wrinkled surface that resembles a solid, with a fractal dimension between 2 and 3. Theiler (1990) cited that fractals are crinkly objects that defy conventional measures, such as length and area, and they are most often characterized by their FD, while Barret and Peleg (1995) explain that many foods, including bread, like other natural materials, are irregular in conformation and with complex geometry and structural irregularities such as pores, protuberances and apparently replicating structures and can be described in terms of their fractal dimension, which may serve as an index of morphological roughness or tortuosity.

Bread crumb features have also been characterized by fractal texture analysis (Pedreschi et al. 2000; Gonzales-Barron and Butler 2008b) where the bread grain fineness has shown good correlation with fractal dimension (R 2 = 0.822) when applying the relative differential box counting method, whereas grain homogeneity has been related to the mass fractal dimension (R 2 = 0.820) (Gonzalez-Barron and Butler 2008a). In other work, Pérez-Nieto et al. (2010) showed that fractal dimension of texture was a useful indicator of coalescence as well as to distinguish the baking time needed for crumb features to remain invariable. However, there is not reported information of fractal dimension analysis applied to sweet breads which have different crumb structure as compared to white or French breads.

A broad variety of sweet breads with different crumb characteristics can be produced. These types of breads (danish, puff pastry, pound cakes, cookies), along with white bread, are widely consumed (32 Kg annual per capita consumption) as part of daily meals in Mexico (Hernández et al. 2003).

Sweet bread quality depends on the wheat flour characteristics, on the ingredients used, as well as on the processing conditions applied, resulting in large differences in bread features among bakeries. Moreover, the use of flours other than wheat in bread making is known to change bread crumb structure and this effect has been barely studied on sweet bread. On the other hand, it is a common practice that bakers evaluate, based on their own experience, the effect of adding new ingredients or additives on bread crumb characteristics, as they do not have simple quantitative methods to analyze them, for which a low-cost IA methodology to evaluate bread crumb structure or to help standardizing bread quality would be useful. The aim of this work was to compare different image scanning resolutions and thresholding techniques and to quantify the differences in crumb structure features of different types of sweet breads (commercial and added with Chia flour) and their relation with fractal dimension, as a way to propose simple procedures to quantify structural changes that could have an effect on bread quality.

Materials and Methods

Commercial Bread Samples

Two sets of experiments were carried out, one to determine the best resolution for scanning and the thresholding method to apply and the other to analyze the suitability of the method to quantified the crumb features and their relation with fractal dimension of texture for different types of sweet breads. For these experiments, different kinds of sweet bread were chosen. Danish bread for the selection of the resolution settings and three other kinds of commercial sweet breads (Fig. 2) for the evaluation of crumb bread structure: Danish bread (cuerno), yeasted sweet bread (concha) and pound cake (panqué). These breads were selected based on its crumb heterogeneity that would allow a wider range of particle sizes. Eight samples of each kind of these breads were used in the study and all samples were bought at a local bakery in Mexico City.

Fig. 2
figure 2

Different types of commercial sweet bread

Sweet Bread Samples Added with Chia Flour

As a way to have more samples with different crumb structure, besides of analyzing the effect of adding Chia (Salvia hispanica) flour at different levels on bread quality, sweet yeasted breads were prepared. The bread making process was carried out as reported by Tlapale-Valdivia et al. (2010) by mixing until optimum dough development 6.9 g of instant active dry yeast (Nevada oro; Safmex), 60 g of sugar (Great Value; Waltmart), 3.6 g of salt (La Fina; Sales del Itsmo), 36 g of skim milk powder (Svelty Nestle), 61.5 g of fresh egg (Bachoco), 48 g of shortening (bizcocho saborex; Natural de Alimentos) and 18 or 36 g of Chia flour (S. hispanica L, 2009 harvest, Hidalgo, Mexico; 21.2 ± 0.2 g protein/100 g sample (db), 6.0 ± 0.08 g ash/100 g sample (db), 36.7 ± 0.6 g fat/100 g sample (db)), mixed with 282 or 264 g of wheat flour, respectively (alveographic deformation energy of 300 × 10−4 J; 11.56 g protein/100 g sample(db)) and the quantity of water required to reach the flours water absorption as obtained from the farinograpic analysis. Mixing was carried out in the farinograph mixing bowl unit (Brabender OHG, Duisburg, Germany). The fermentation process was divided into three bulk fermentation steps (80, 40 and 25 min) and one proofing step (55 min) at constant temperature (32 °C) and humidity (85%). After the final fermentation step, 60 g of dough were weighed, rounded by hand again, placed on a tray and pressure was applied to flatten the samples. Each sample was covered with a dough circular topping (20 g, 3 mm thickness, 8 cm diameter) prepared by mixing sugar (100 g), shortening (100 g) and flour (100 g) and once the product was covered, the topping was marked (“concha” cutter) to obtain a shell pattern. Then, the dough was placed again into the fermentation chamber for 55 min (Precision Scientific Co., USA). Dough samples were baked at 180 °C for 20 min in a rotary oven (Henry Simon Limited, Cheshire, UK). These samples were evaluated by measuring the bread specific volume (method 10–05; American Association of Cereal Chemists, 2000) and crumb colour (Rosales-Juárez et al. 2008). Loaf specific volume was evaluated 120 min after baking using the rapeseed displacement method, while loaf weight was measured immediately after baking. Colour was determined as reported by López-Guel et al. (2010) using a colorimetre (CR-400 Chroma metre, Konica Minolta, USA) with a D65 illumination source at a 0° viewing angle. CIE lab parameters (L*, +a*, +b*) were obtained.

Scanning Resolution Setting

Samples of Danish breads were cut in halves using an electric knife (Moulinex Classic 012, France). Sweet bread images were acquired at nine different resolutions (75, 100, 150, 200, 300, 355, 435, 515, 555 dpi) with a flat-bed scanner (Benq Corporation, 5000 Colour Scanner, USA, 1200 optical resolution). During this experiment scanner brightness and contrast parameters (MiraScan6, Benq, Taipei, Taiwan) were kept constant in the default value (zero) (Rosales-Juárez et al. 2008). Images were saved as bitmap files, and sRGB colour. Images were cropped at a field of view (FOV) of 4 × 4 cm that represents approximately 36.5% of crumb bread area; then, images were changed to greyscale (8 bit) using the ImageJ software (National Institutes Health, Bethesda, Md, USA). Segmentation was carried out using the same software by applying the manual thresholding tool, where the grey level threshold was selected by finding each of the peaks of the histogram of frequencies and then the valleys between them, looking for the minimum point of this dip and adjusting manually (Crowley et al. 2000; Gonzales-Barron and Butler 2006). The threshold intensity used for grey-scale polarization into binary images was from 110 to 170. The Otsu algorithm was also used (Gonzales-Barron and Butler 2006) for this purpose. The Otsu’s threshold algorithm searches for the threshold that minimizes the intra-class variance, while the manual method locates the threshold by finding each of the peaks of the histogram of frequencies and then the valleys between them (Gonzales-Barron and Butler 2006; On-line docs ImageJ software). The mathematical form of the Otsu’s algorithm has been published elsewhere (Gonzales-Barron and Butler 2006), where the optimal threshold value (t*), expressed in terms of class probabilities(ωi) and class means (μi) can be obtained by a step sequence: (1) computing the probabilities of each intensity grey level (p i), (2) setting up the initial probabilities (ωi) and means (μi), (3) stepping through all possible thresholds (t = 1…maximum intensity) and (4) updating ωi and μi to obtain the desired threshold (t*) which corresponds to the maximum between-class variance (Eq. 1).

$$ \sigma_B^2(t) = \frac{{{{\left[ {{\mu_T}\omega (t) - \mu (t)} \right]}^2}}}{{\omega (t)\left[ {1 - \omega (t)} \right]}} $$
(1)

Where:

\( \omega (t) = \sum\limits_{{i = 0}}^t {p(i)} \) :

Class probability at the threshold value

\( \mu (t) = \sum\limits_{{i = 0}}^t {i\,p(i)} \) :

Mean of the class at the threshold value

\( {\mu_T} = \sum\limits_{{i = 0}}^{{L - 1}} {i\,p(i)} \) :

Total mean of the whole image

Crumb grain measurements were carried out using the SigmaScan Pro Image Analysis 5.0 software (Jandel Scientific Inc. USA). Two crumb grain features were extracted: cell area, in pixels (A), and the number of cells (objects).

Crumb Bread Structure Evaluation

Two samples per day of each kind of commercial sweet bread were bought during different days, 1 h after taken them out from the oven. They were allowed to cool for at least 2 h at room temperature (20 °C). After cooling, samples were kept inside polyethylene hermetic bags to avoid moisture loss until they were analyzed for crumb structure, which was performed 24 h after baking. Breads were cut in halves with an electric knife (Moulinex Classic 012, France), and these samples were scanned at the resolution value selected from the previous experiment (scanning resolution setting experiment). Images were saved as bitmap format (bmp), in sRGB colour. The same procedure was followed for the sweet bread added with Chia flour.

Pre-Processing of Images

Images were cropped to different FOV depending on the kind of bread, as each type had different form and size, and the only way of obtaining approximately the same proportion of the crumb bread (36–40%) was by selecting different FOVs. This value was selected after measuring the whole bread crumb area of samples, and calculating, as a percentage of the crumb area, the maximum crop that was possible to obtain in the smallest breads. This value was applied during the cropping step for all the samples. Danish bread samples were cropped to 4 × 4 cm, yeasted sweet dough bread to 5.5 × 2.5 cm, pound cake to 4 × 4.1 cm and Chia bread to 3 × 4 cm. All images were thresholded using the Otsu and the manual thresholding tools of the ImageJ Software, where this tools automatically (Otsu) or interactively (Manual) set lower and upper threshold values (110–170), segmenting the image into features of interest and background.

Crumb grain measurements were determined by SigmaScan Pro Image Analysis 5.0 Program. Four crumb grain features were extracted: cell perimeter in pixels (P), cell area, in pixels (A), number of cells (objects), and shape factor (SF) which is a measure of an object’s circularity, where a perfect circle has a SF of 1.0 and a line has a SF approaching to zero. This last parameter is defined as:

$$ {\hbox{SF}} = \frac{{4 \pi A}}{{{P^2}}} $$
(2)

where SF is the shape factor, A is the cell area and P is the cell perimeter. The fractal dimension of texture was also evaluated.

Fractal Dimension of Texture

The fractal texture of images was evaluated by power law scaling using the Shifting Differential Box Counting method (FDSDBC) which corresponds to the 2-D grey level crumb images as proposed by Wen-Shiung et.al. (2003). FDSDBC was calculated using the ImageJ Software by means of the Mapfractalcount plug-in, v 1.0, as shown in Eq. 3, where “N” is the number of boxes and “r” is the length of the side of box.

$$ {\hbox{F}}{{\hbox{D}}_{\rm{SDBC}}} = \frac{{\log (N)}}{{\log \left( {\left. {\frac{1}{r}} \right)} \right.}} $$
(3)

High values of FDSDBC mean more complex or rougher grey level crumb images, while low values of FDSDBC can be associated to simpler or smoother images.

All measured parameters were analyzed using electronic spreadsheet software (Excel 2000, Microsoft Office Corporation, USA), and where necessary frequency charts (histograms) were obtained grouping results based on crumb cells’ areas, using the histogram function from the analysis data tool of Excel software.

Analysis of Results

Data were analyzed using SigmaStat 3.5 for Windows (Systat Software, Inc. USA), using ANOVA and the Holm–Sidak method or Tukey test as obtained from the software. P < 0.05 was considered to be significant. Correlations were obtained by Table Curve2D v5.01 for Windows (Systat software Inc).

Results and Discussion

Figure 3 shows the effect of varying the scanner resolution on the number of counted objects for the two different thresholding methods applied (Otsu and Manual), where no statistical difference (P < 0.05) was found between both methods. It is also observed that as resolution increased the number of detected objects also increased, without reaching a steady value; however, when analyzing all data, it was observed that the number of the smallest objects increased more than the largest ones at higher resolution values. This is presented in Fig. 4 where a frequency analysis was performed by grouping the percentages of objects by their sizes. This evaluation showed that the increasing amount of objects observed as function of resolution was the result of a better segmentation of the smallest particles in the evaluated images as the objects with areas smaller than 0.1 mm2 significantly increased (P < 0.05) their proportion (25–87%) as scanner resolution increased, while the rest of the objects, with larger areas, remained almost invariable (<30%) for both thresholding methods.

Fig. 3
figure 3

Effect of varying the scanner resolution on the number of detected objects in sweet bread crumb images, by applying two different thresholding methods (Otsu and Manual)

Fig. 4
figure 4

Effect of scanner resolution and thersholding methods on the percentage of crumb cells for different area of cells

In order to have a clearer picture on the potential of both thresholding methods to detect the number of objects when varying the scanning resolution, a new chart was constructed taking into account only the objects with areas equal or larger than 0.1 mm2 and smaller than 4 mm2. This selection was based on the sweet bread coarser crumb structure as compare to salty bread, as well as on the fact that the minimum distance between objects to be distinguished by human vision is 0.2 mm, where particles with diameters smaller than this size, might have not been considered as crumb cells, when evaluating crumb structure by bakers experience. On the other hand, Sapirstein et al. (1994) reported that objects with areas larger than 4 mm2 could be considered as bread crumb defects. For clarity, data were grouped in seven categories based on the area of objects and plotted as the difference between the percentages of objects detected by the Otsu method minus the percentage of objects detected by the manual method as shown in Fig. 5.

Fig. 5
figure 5

Difference between Otsu and Manual thresholding methods for the detection of objects with areas larger than 0.1 mm2 and smaller or equal to 4 mm2 as a function of scanner resolution

From the above results, it is possible to observe that the difference between both thersholding methods is less than 8% units and that this value decreased as the cell size increased, which makes both segmentation processes suitable for image analysis for this kind of bread. Gonzales-Barron and Butler (2006) reported the Otsu method produced binary images with high degree of uniformity.

Figure 6 shows the images of bread crumb acquired at three different resolutions; as expected, it was found that the higher resolution setting the best defined images. It can also be seen from images that crumb is formed by structures of very different sizes, ranging their diameters from <1 to ≥4 mm. Considering that particles with diameters smaller than 0.2 mm are too small to be distinguished by human vision, then particles with diameters smaller than this size may have not been considered as crumb cells when evaluating, by eye, crumb structure by bakers. On the other hand, visual computer assistance methods can detect very small particles, depending on the detection range of the software used to obtain results (Esteller et al. 2006). When applying microscopic techniques, the number of cells has been reported to be even larger than when using traditional image acquisition systems (Gonzales-Barron and Butler 2008c). Under these circumstances, the selection of the range of particles to be considered to evaluate crumb structure may significantly modify the results.

Fig. 6
figure 6

Crops of bread crumb images acquired at three different resolutions. B: big, S: small, VS: very small pores

Table 1 shows cell density results for different kind of commercial sweet breads evaluated by the two different thersholding methods and classified by different cell areas. Cell density was calculated dividing the number of cells (objects) by the FOV.

Table 1 Cell density for different kind of sweet breads

Data showed that both thresholding methods resulted in similar cell densities, with the exception of pound cake, in which the manual segmentation process produced slightly larger values of cell density, being significantly different (P < 0.05) only when considering particles with areas larger than 0.1 mm2. Differences among bread crumb structures were also detected, showing that pound cake bread had the largest number of cells per unit area as compared to the other samples. This difference may be a consequence of the bread making process and the ingredients used, such as fat, sugar, additives or others (Kocer et al. 2007). Results were also affected by the range of cell sizes considered in the evaluation. As expected, the largest value was obtained when all the detected objects were used to calculate cell density. These results highlight the importance of establishing and reporting the range of objects sizes to be measured when applying image analysis methodologies.

Table 2 shows that the three kinds of sweet commercial breads presented different cells areas depending on the range of objects used to evaluated them. When all cells were considered, there were not significant differences (P > 0.05) in the mean cell areas of Danish and yeasted sweet bread samples, while in all other cases, there were significant variations. Cell areas varied at least ten times between the smallest and the largest value. The kind of thresholding method applied (Otsu and Manual) did not render significant difference (P > 0.05) among them.

Table 2 Mean cell areas for different kinds of sweet breads

Table 3 shows the SF for the different commercial breads tested. It can be observed that the form of cells, based on the evaluation of SF, is similar among samples but results depend on the range of cell sizes selected for the evaluation. Both thresholding methods gave similar results.

Table 3 Shape factor for different kind of sweet breads

When analyzing frequency charts of the cell size for different kinds of breads, results showed that smaller cells presented the largest shape factors. It was also observed that as cell size increased, shape factor decreased, which means, as in the other cases, that the value of shape factor depends on the range size used for the evaluation. This information is observed for yeasted sweet bread in Fig. 7.

Fig. 7
figure 7

Frequency chart for shape factor (S, black dots) and cell area (bars) of yeasted sweet bread

The crumb features of the yeasted sweet bread added with different concentrations of Chia flour were also analyzed finding that both thresholding methods rendered similar results (P > 0.05), and reporting in this work only those obtained when applying the Otsu algorithm (Table 4).

Table 4 Crumb structure of yeasted sweet breads added with “Chia” flour

The addition of Chia flour at 6% did not affect cell density, as compared to the non added samples, while the addition of 12% of this flour, increased this parameter. When analyzing the mean cell area of the pores for both Chia flour added breads, it was observed (Table 4) that breads prepared with 12% of Chia flour presented smaller pore areas when all pores or those larger than 0.1 mm2 were considered in the evaluation. For the other areas’ size ranges, the calculations did not render significant differences (P > 0.05). These results indicated that the addition of Chia flour could have affected the capacity of dough to entrap air during mixing, resulting in a larger number of air nuclei, which developed into small pores during fermentation and baking. However, these results were not related to the dough mixing behaviour as not significant differences (P > 0.05) between farinographic properties of Chia flour samples were observed (data no shown). It is known that Chia seed produces a polysaccharide gel when interacting with water (Bushway et al. 1981; Lin et al. 1994), which could be acting in a similar way as cereal oats, barley or rye β-glucans (Polaki et al. 2010; Lazaridou and Biliaderis 2007), which have been reported to be involved in the development of smaller and more uniform crumb bread pores, by stabilizing the air cells in the dough and preventing their coalescence (Polaki et al. 2010; Wang et al. 1998). On the other hand, the addition of Chia flour promoted a decrement in the specific volume of the breads, resulting in smaller breads as the concentration of Chia was increased, varying from 5.3 ± 0.1 g/cm3 (control) to 4.7 ± 0.1 g/cm3 (12% addition) and also increasing all the farinographic parameters as compared to the control sample. This effect on farinographic properties could be related to the Chia water absorption capacity, as the fibre fraction of the seed can absorb up to 11.7 g of water per gram of fibre (Vázquez-Ovando et al. 2009), as well as to an increment in the viscosity of the dough promoted by the mucilage presence. Crumb colour was also affected by Chia addition, decreasing the white appearance of the product (72.8 ± 1.3–61.7 ± 0.8), and increasing the red and yellow colour as the concentration of Chia was increased in the formulation.

Figure 8, shows the fractal texture (FDSDBC) values for the three kinds of breads tested; different crumb structure were found, having pound cake the smallest values of FDSDBC as compared to the other breads which indicates that pound cake has the least complex and smoothest crumb texture.

Fig. 8
figure 8

Fractal dimension of texture of the three different kinds of breads. A FDSDBC: fractal dimension obtained by means of shifting differential box counting method; BD Dough/crumb images corresponding to surface intensity plot

The number of analyzed objects per unit of area correlated well with fractal dimension of texture (Table 5) achieving better correlation coefficients when objects with areas smaller than 0.1 mm2 or larger than 4 mm2 were not considered. Fractal dimension could be a suitable indicator of amount of cells generated during processing.

Table 5 Correlation coefficients between cell density and FDSDBC for different areas of cells

Conclusions

Image analysis was a useful tool to evaluate sweet bread crumb structure, detecting differences among the different kinds of breads analyzed. The thersholding methods applied (Otsu and Manual) rendered similar results; the largest difference between them was no more than 8%. The use of larger resolution values resulted only in an increment of the smallest objects. Crumb structure features results were influenced by the number of detected objects considered in the evaluation, making necessary the establishment of a range of cell sizes to avoid including noise or crumb defects that could make data unreliable. The addition of Chia flour at the highest level seems to be involved in the generation of smaller and more uniform crumb bread pores, maybe by stabilizing the air cells and preventing their coalescence.