Influence when selecting the evaluation region
In Schaaf et al. (2017) and Dix and Schuler (2018) it was shown that due to geometric constraints (e.g. edges, holes, notches and openings) areas with very high retardation occur in the isochromatic image. These unavoidable anisotropies from boundary conditions can occupy more or less large areas depending on thickness, geometry and glass type. However, a standardized definition of these zones is necessary. In the context of these investigations, zones are excluded from the assessment in accordance with the guideline to assess the visible quality of glass in buildings (Bundesverband Flachglas 2009). This guideline divides the individual glass pane into the areas rebate zone (R), edge zone (E) and main zone (M).
Figure 7 exemplary shows the division of the exclusion zones for the sample B07-CF-HSG-12, represented as iso-chromatic image. The geometrical influence in the boundary areas R and E is clearly visible in the form of higher retardation areas, which are represented by white to colored interference colors. The rebate zone R is defined as the visually covered area in the installed state, e.g. by cover strips, in which very high retardation far above 500 nm can occur and would falsify the evaluation. Although a thickness-dependent width R would make sense, on the one hand there are no verified measured values and on the other hand uniformly large images are required in the subsequent texture analysis. Therefore the width of the rebate zone was chosen with \(w_R=50\,\mathrm{mm}\) and the retardation values from this area were not considered in any evaluation. The edge zone E is the area that requires a less strict evaluation according to Bundesverband Flachglas (2009) and is declared with 20\(\%\) of the respective clear width and height dimensions. The remaining main zone M is subject to the most stringent evaluation. The calculation of the width of zone M \(w_M\) and the height of zone M \(h_M\) is described as:
$$\begin{aligned} w_M= & {} (w_{R+E+M}-2\times w_R) 0.8 \end{aligned}$$
(16)
$$\begin{aligned} h_M= & {} (h_{R+E+M}-2\times h_R) 0.8 \end{aligned}$$
(17)
After defining the evaluation areas on the retardation images from Sect. 2.3, the image processing methods according to Sects. 3.1 and 3.2 were applied for the zones M and E + M. The effects of zoning on the results of the quantile value x\(_{0.95}\) and the isotropy value Iso\(_{75}\) at a threshold of 75 nm is compared in Table 2. In addition, the difference \(\varDelta _{(E+M)-M}\) was determined between the results of the zoning E+M and E.
Table 2 Isotropy- and 95\(\%\) quantile values per exclusion zone Table 3 Information on normalized area A\(_n\) of format A and format B At first it seems that the influence of zoning on the Iso \(_{75}\) is only marginal (\(0\; \)to\(\;4\%\)), whereas it is more obvious in the determination of x\(_{0.95}\) (\(-22 \;\)to\( \;27\) nm). On the one hand, this implies that when comparing different retardation images, it is essential to define evaluation zones, otherwise first-order statistical values will be distorted. On the other hand it is obvious that the isotropy value with only one threshold of 75 nm, underestimates the high retardation values in zone E. A detailed evaluation of the retardation images can be found in Sect. 4.3.
Effects which influence the texture analysis
Normalization for texture analysis
Texture analysis can be of future interest as an additional criterion for the evaluation of retardation images. In Hidalgo and Elstner (2018), this was applied to a set of retardation images corresponding to the same glass format, as mentioned in Sect. 3.3. In our study, the texture analysis approach is applied to glass panes of different sizes and format types. In addition, the retardation images from Sect. 2.3 also differ in resolution [px] because the images were acquired with different setups, see Sect. 2.1 and Table 3. The parameters for the formation of the GLCM, which are necessary for texture analysis, are described in Sect. 3.3. Based on the step size (distance d), the four directions and the symmetry condition of the GLCM, the intensity of the reference pixel i is compared with the neighboring pixels j. The area covered by these parameters will be referred to as window in the following text.
If one considers the Eq. (6), it can be seen that source images of different sizes produce different sized GLCMs. In order to achieve a scale-independent evaluation of the textural features, a normalization of the evaluated area M to a reference area \(A_n\) is proposed and the geometry factors \(f_r\), \(f_{I,n}\) and \(f_{ws,n}\) are introduced. In Sect. 4.2.2 parameter studies are performed on differently sized normalized reference areas A\(_L\), A\(_M\) and A\(_S\), see Fig. 8. Thus the index n represents the different sizes of the normalized reference area A. The effects of the different ratios of glass format A to B on the respective reference areas are shown in Table 3. For the normalized reference area \(A_L\) this results in an image size of 1000 px \(\times \) 1000 px for glass format A and an image size of 1794 px \(\times \) 558 px for glass format B.
The scaling to the normalized area A\(_n\) is performed in Matlab\({}^{\textregistered }\) using the function "imresize", the interpolation method "nearest neighbor" and a scaling factor which is defined here as image scale factor \(f_{I,n}\). For the calculation of \(f_{I,n}\) the ratio factor \(f_r\) is determined first, which considers the ratio height to width. Both factors are mathematically expressed as:
$$\begin{aligned} f_r= & {} \frac{h_{M,O}}{w_{M,O}} \end{aligned}$$
(18)
$$\begin{aligned} f_{I,n}= & {} \frac{\sqrt{\frac{A_n}{f_r}}}{w_{M,n}} \end{aligned}$$
(19)
For the calculation of the geometry factors, Eqs. (18, 19 and 20), \(h_{M,O}\), \(w_{M,O}\) and \(w_{M,n}\) in [px], as well as the true width of the zone M, \(w_M\) in [mm], are used. Here h is the height of an image and w is the width of an image. The guided indices stand for M the evaluation of zone M and O for the original image size. To create comparable GLCMs, the next step is to calculate the window size factor \(f_{ws,n}\), which can be described as:
$$\begin{aligned} f_{ws,n}=\frac{\sqrt{\frac{A_n}{f_r}}}{w_{M}} \end{aligned}$$
(20)
Multiplying \(f_{ws,n}\) and the true distance d in [mm] gives the window size for the formation of the GLCM. An example of how \(f_{ws,n}\) affects the resulting window sizes of the two glass formats with a defined distance d of 100 mm is shown in Fig. 9. For a reference area \(A_L\) of 1,000,000 px\(^2\) this means for glass format A a window of 135 px \(\times \) 135 px and for glass format B a window of 77 px \(\times \) 77 px to form the GLCM. For the calculation of \(f_{ws,n}\) it is important that the geometry of the glass panes is captured during the acquisition of the retardation images.
The flow chart in Fig. 10 represents a scheme by which textural features can be extracted step by step from the original retardation image, independent of the glass format. The normalization of the reference area, the calculation of the geometry factors, the formation of the GLCM and the determination of the textural features is accomplished in a calculation algorithm written in the program MATLAB®.
Influence of the image size
It is known from Hidalgo and Elstner (2018) that the formation of GLCM from retardation images is very computationally intensive and therefore time-consuming. The reason for this is the complex process of forming GLCM and the fact that the original retardation images have a very high resolution and therefore very large m \(\times \) n matrices. One approach to reduce the calculation time is to reduce the size of the original images for the calculation of the GLCM and the textural features. The impact of this approach is examined below.
In order to ensure comparability of the results of the different glass formats (A and B), the original retardation images from Sect. 2.3 were scaled to fixed sizes as proposed in Sect. 4.2.1. The scaling was achieved by the algorithm of "nearest-neighbor interpolation" and was classified into the three image sizes small S, medium M and large L from Table 3. The effects of image size reduction on the textural features Contrast (C) and Cluster Prominence (CP), the global criteria x\(_{95}\), Iso\(_{75}\) and the calculation time were investigated. In this analysis, the calculation time (CT) includes the time required to form the individual GLCM. These were calculated with the step size d\(_S\) = 13 px, d\(_M\) = 67 px and d\(_L\) = 135 px for format A, which corresponds to approximately 100 mm. As number of the grey levels \(N_g=256\) was chosen. The image processing algorithms were applied with the program MATLAB® on a mid-class PC without parallelization of the CPU or use of the GPU. A remarkable deviation between the global characteristics x\(_{L,0.95}\), x\(_{M,0.95}\) and x\(_{S,0.95}\) as well as Iso\(_{L,75}\), Iso\(_{M,75}\) and Iso\(_{S,75}\) could not be identified. The results of the texture features \(C_{L}\), \(C_{M}\), \(C_{S}\) and \(CP_{L}\), \(CP_{M}\), \(CP_{S}\) differed only insignificantly between the image sizes original to small. In return, the computation time of the GLCM is considerably reduced. As an example, in Fig. 11 the results of the texture feature C and the calculation time of the GLCM (CT) for the sample A-01-CF-TSG-6 are compared. Table 4 shows a simple percentage deviation \(\varDelta _{O-S}\) of less than 5\(\%\) between the results of the feature C and CP of image sizes O and S. However, the calculation time (CT) of the GLCM was reduced from more than 5 s for the original image size O to less than 0.08 s for the format size S. For all investigated samples this corresponds to an average speed-up factor \(f_{SP}\) of 170, which is the quotient of \(CT_O\) and \(CT_S\).
Table 4 Influence of reduced image size of features C, CP and \(CT_{GLCM }\) The study has shown that with the same ratio of step size to image size, the textural features C and CP have changed only irrelevant. The use of reduced images while keeping to the geometry factors can therefore be recommended to evaluate different sample geometries.
Influence from GLCM settings
Since there is insufficient experience in applying texture analysis to retardation images resulting from inhomogeneities in the production of thermally toughened glass, a series of parameter studies will be conducted to evaluate the effects of the parameter step size and number of grey value level (\(N_g\)) of the GLCM on the results of texture analysis. Therefore, based on the experience of the previous studies, different distances d from 50 to 400 mm are applied to retardation images of reduced size S.
In Fig. 12a the results of the feature C and CP are shown as a function of the distance d. These results show that there is a significantly change with the variation of d. At the beginning it appears that with increasing d the contrast value also increases. However, this statement can only be made individually for step sizes smaller than 200 mm. In addition, the results show that the values at a distance of 400 mm should not be trusted when applied to retardation images with a width of 720 mm. This statement is also transferable to the results of the textural feature CP. Therefore, it is necessary to define a standardized step size for the formation of GLCMs. A recommended distance of 100 mm can be given based on the study.
Table 5 Comparison of the results of all calculated evaluation criteria which were applied to the retardation images from Fig. 13 The intensities of the grey values occurring in our images have retardation values from 0 to 255 nm. Therefore, the number of grey levels was previously set to 256 when the GLCM was formed. In the following we will investigate how number of grey levels affect the results of the textural features C and CP, as well as the calculation time. For this purpose, retardation images with the reduced size S were used and the GLCMs were formed with a step size of 100 mm. In the study the GLCM parameter \(N_g\) is varied in steps of \(s= 8, 16, 32, 64, 128\) and 256. In the calculation algorithm of the function "graycomatrix" in Matlab\(^{{\textregistered }}\), this is generated by scaling the retardation values in the greyscale image to integers between 1 and the selected level s. From the newly scaled image the GLCM is then formed and the textural features are determined. The previous very abstract values of the Table 4 are transformed into more simple values in Table 5. Comparing the two tables and considering e.g. the feature CP of sample A01, the values change from 1.38E + 06 at \(N_g=256\) to 1.55 at \(N_g=8\).
In order to show how the influence of different \(N_g\) affects the results of the textural features, these are normalized after the calculation. Using the knowledge of the nonlinear relationship of Eqs. (7 and 8), the normalization can be determined and mathematically expressed as:
$$\begin{aligned} C_{Ng}= & {} \biggl (\frac{256}{s}\biggr )^2 \, C_{Ng,s} \end{aligned}$$
(21)
$$\begin{aligned} CP_{Ng}= & {} \biggl (\frac{256}{s}\biggr )^4 CP_{Ng,s} \end{aligned}$$
(22)
Figure 12b shows the results of this examination for the feature C and CP. If no significant deviation from \(N_g=256\) is recognizable between \(N_g=128\) and 16, there is a slightly deviation of the results at \(N_g=8\). However, the basic statement of the textural features does not change. The calculation time of the GLCM is reduced by about half from t\(_{256}\) to t\(_{8}\). Compared to Sect. 4.2.2 this is only marginal, but worth mentioning.
Threshold and texture analysis
The simplest greyscale image is an image with only two intensities: Black and White. In this investigation the combination of threshold and texture analysis will be tested. Therefore the simple global threshold from Sect. 3.2 with a limit value of 75 nm generates exactly these binary images from the retardation images, see Fig. 6a. By using T\(_{75}\) a new pattern is created in Fig. 6b. A GLCM with a number of grey level \(N_g\) = 2 is then formed on this BW image as before and the textural features C\(_{bw}\) and CP\(_{bw}\) are determined.
The results of this study with application on all glass samples from Sect. 2.3 are shown in Table 5 under the heading of bwfeatures. It can be seen that for samples with \(Iso_{75}\) values close to 100\(\%\) no textural statement is possible, since few or no values are available for an analysis. For samples with high x\(_{0.95}\) values (e.g. A03) very high retardation values are not considered as such. Since by setting the threshold of T\(_{75}\) the texture analysis cannot distinguish between values of 77 nm and 220 nm. The evaluation of the results of the features \(C_{bw}\) and features \(CP_{bw}\) should therefore be treated with caution. When evaluating the calculation time, it is noticeable that it is not reduced. The application of the combination of threshold and texture analysis is therefore only possible to a limited extent and requires further research in the future.
Evaluation further textural features
The feature C and CP have already proven their suitability in Hidalgo and Elstner (2018). In this section we will check if the calculation of further textural features from section 3.3 (Eqs. 11, 12, 13, 14, 15) are also useful for evaluating retardation images. In principle, a feature is sought that can detect and evaluate the inhomogeneity of the images, i.e. the frequency of an intensity change and contiguous areas with high intensities. For this study, symmetrical averaged GLCMs of the retardation images were formed using the procedure from Fig. 10 with d = 100 mm and \(N_g\) = 8. The results of the further textural features are shown in Table 5.
The similarity of the features C and DISS in their formulas, see Eqs. (7) and (11), is also reflected in their results. Due to the equality to C, one of the two features is probably obsolete for further investigations. Based on the positive experience with C this is further used. The results of the features Angular Second Moment (ASM) and Entropy (ENT) also determine the texture homogeneity of the images very well. Thus, with ASM = 0.91 and ENT = 0.77 they detect a homogeneous retardation image for sample B06 and an inhomogeneous retardation image for sample A04 with ASM = 0.59 and ENT = 2.87. However, no significant difference is discernible between the values of sample A04 and sample B07, although the global evaluation criteria differ significantly for these. IDM (Eq. 13) recognize inhomogeneous and homogeneous images, but the values differ only marginally from 0.85 to 0.98, so that only a tendency can be read and a further use is currently not recommended. Feature CP captures contiguous areas of higher retardation and is therefore well suited for use in retardation images. Cluster Shade (CS) is similar to CP according to the Eq. (15). However, when comparing the results of both features, it is noticeable that the values for samples A04 and B07 do not correlate. Since the statement of CS cannot be reproduced, it is not recommended.
The investigations have shown that the further textural features DISS, ASM, IDM, ENT and CS are indicators for inhomogeneous images, but are not a superior alternative to the proven features C and CP proposed by Hidalgo and Elstner (2018).
Final evaluation of retardation images
Evaluation of the 6 mm glass panes
Finally, the retardation images from Fig. 13 can now be evaluated and compared according to the presented criteria. Since it is known from Eq. (1) and previous investigation FKG (2019) that glass thickness has an influence on the occurrence of optical anisotropies, samples with a thickness of 6 and 12 mm are considered separately in the further evaluation.
If one considers the 6 mm glass panes, it is immediately apparent that when a threshold of 75 nm is set, all four samples have an Iso \(_{75}\) value greater than 99 percent. A comparison between the quality of the samples does not allow this criterion in this case. In order to obtain meaningful values for these samples, the threshold value for this glass thickness would have to be lowered to e.g. 50 nm. The evaluation according to quantiles such as x\(_{0.95}\) is therefore better suited to assess the glass quality. However, as in this case, an evaluation according to the exclusion zones from Sect. 4.2.1 should be performed. The statistical x\(_{0.95}\) values of samples A01, A02, B05 and B06 are in the range of 43–60 nm. x\(_{0.95}\) classifies A01 as worst of the four panes.
If the textural features C and CP are considered individually, C classifies the homogeneity of the retardation images and CP classifies coherent areas with high retardation. Sample A02 and B06 with low C and CP values are classified as higher quality glass panes. A01 with its overall inhomogeneously distributed retardation has a higher C value of 0.65 than B05 with 0.48, which implies a more frequent variation between lower and higher retardation values. Sample B05 with its punctual high retardation and slightly developed middle stripes, however, also has larger areas with only very low retardation. This results in a lower C value but a higher CP value.
A statement, which texture feature should be weighted more strongly in the evaluation, cannot be given at present. A combination of the two texture features is therefore of interest for future research.
Evaluation of the 12 mm glass panes
In the evaluation of the 12 mm glass panes, samples A03 and A04 show significantly higher retardations over the area compared to samples B07 and B08 with medium coherent retardation areas. All criteria from Table 5, classify them as worse anisotropy quality and also rate A03 as the most striking sample. In the evaluation, the Iso \(_{75}\) values vary in the range from 95 to 56 percent and the x\(_{0.95}\) values from 85 to 166 nm. The texture analysis provided more detailed differentiation between samples B07 and B08, which were both classified as good. It is obvious that although the retardation images differ in the spatial arrangement of the intensities, the results of the global evaluation criteria hardly change. C and CP weighted the stripe pattern with high retardation from B08 as more striking and therefore worse than sample B07. Nevertheless, these glass panes could be classified as good quality and should cause less anisotropy when installed in the façade.