Fig. 2

The process of outlining and analyzing the selected area of interest. (a and d) Are raw images of two teeth at different levels (the yellow arrows point to the gap at the restoration periphery and the green arrow points to the void in the restoration). (b and e) Outline the restoration with the gap to calculate the porosity percentage. (c and f) Outline the restoration alone to calculate the percentage of voids (the yellow arrows point at the gap that was excluded from the outline). (g) Compares the number and sizes of the pores in the binary image of the outlined area with those seen in the raw image of the restoration to confirm the suitability of the threshold at different levels.