Abstract
Image analysis of a fiber cross-section can provide direct measurements for cotton maturity. Effective segmentation of fiber contours in a cross-sectional image is paramount for accurate fiber geometrical measurements. In a wide-field microscopic image, the adhesion, breakage, and ambiguity (low contrast or noise) of fiber contours make the segmentation rather challenging. This paper presents a new approach for contour segmentation that takes advantage of the shape features of the triple concentric contours, called the coupled-contour model (CCM), of a cross-section, and a CCM-based algorithm developed to locate, split, merge, and refine fiber contours based on the established rules concerning contour features. For a wide-field microscopic image (12 megapixels), this CCM-based algorithm could detect >500 fiber cross-sections with a recall rate of 93.53% and a precision rate of 98.13%, and reduced the errors in maturity measurements by 50%.
Maturity is one of the determinants in evaluating cotton quality because it can affect the tenacity, dyeability, and many other properties of cotton fibers.1–3 Cross-sectional analysis of cotton fibers provides direct, accurate measurements for fiber fineness and maturity, which are often regarded as the reference data used to validate or calibrate other indirect measurements of these important cotton properties.4–6 Much research has been conducted with image analysis technology to measure cotton maturity and other fiber parameters from its cross-section image.7–13 The success of a cross-sectional method using image analysis largely relies on two techniques: fiber cross-sectioning and cross-section detection. 1 Cross-sectioning, including the fiber and grinding and cutting, is the most import step in obtaining analyzable images of fibers.14,15 A well-established cross-sectioning protocol addressed technical issues in fiber embedding, medium polymerization, and microtome setting, and greatly improved the separability and contrast of individual fibers in the image captured on a microscope with transmitting light.6,16–18
Cross-section detection is a computational process to extract fiber cross-section contours from an image for geometrical analysis. Results of cross-section detection influence the accuracy of cotton maturity measurements directly. Due to variations in shape and thickness of fiber cross-sections across a sliced sample, fiber borders in different regions of an image may exhibit different levels of contrast or sharpness. Some cross-sections may adhere to each other, while others may be scratched by a dull cutting blade. These image defects are the object recognition problems targeted by image segmentation algorithms, such as the weighted skeleton,
3
background flooding,
1
dual-thresholding,
19
and watershed,
20
and by contour extracting algorithms, such as snake models,
21
the gradient-vector-flow model,22,23 and level-set model.
24
In a modern light microscope, a high-resolution, wide-field digital camera is often equipped for fast image acquisition and high-volume measurements of fiber properties by increasing the field of view (FOV) of the microscope and the number of fiber cross-sections in one image frame. Figure 1 is an image captured through a 12-megapixel digital camera and a 20× objective lens on a light microscope (Olympus CH30). This image covers a view area approximately 10 times larger than traditional microscopic images.
1
However, the aforementioned problems in cross-section detection are intensified in a high-resolution, wide-field image because of its high variability in lighting and focus, making these algorithms less viable when processing an image containing cross-sections with vastly distinctive shapes and features.
A high-resolution, wide-field microscopic image (4272 × 2848 pixels) of cotton cross-sections: (1) a cross-section with a small lumen (mature); (2) a cross-section with a large open lumen (immature); (3) a cross-section with a collapsed lumen; (4) a self-rolling cross-section; (5) a cross-section with impurities; (6) an overlapped cross-section; (7) multiple cross-sections adhered together; (8) a cross-section with connected fiber and lumen borders by a blade scratch; (9) a cross-section with touching fiber and lumen borders.
This paper presents a new approach for cotton cross-section segmentation by utilizing contour shape features to correct and refine defective contours of fiber and lumen borders. A cross-section was first modeled by a triple concentric contour set, which is called the coupled-contour model (CCM) of the cross-section. Based on the CCM, effective rules concerning contour features were established to (1) locate cross-section contours, (2) split adhering contours and merge broken contours, and (3) refine defective contours. In the experiment, the performances, such as recall, precision, and time efficiency, of this CCM-based contour segmentation algorithm were evaluated.
Method
Coupled-contour model of cotton cross-sections
As shown in Figure 2, a typical cotton cross-section is defined by its fiber border and lumen border, which are normally separated by the cellulosic wall. From the two separated borders, three contours can be generated: the fiber outer contour co, the fiber inner contour ci, and the lumen contour cl. Normally, co and ci are two concentric parallel contours very close to each other. The distance between co and ci is the width of the fiber border, which is influenced by the thickness of the cross-section and the local focusing status. Thus, a cross-section can be depicted by a triple contour set Triple contours of a cotton-section. co: fiber outer contour; ci: fiber inner contour; cl: lumen contour.
The triple contours in a normal CCM should be isolated and concentric. Figure 3 lists a few examples of defective cross-sections and their abnormal contours. Figure 3(a) shows a scratched cross-section with the connected fiber and lumen borders leading to wrong ci and cl; Figure 3(b) shows three adhered cross-sections that generate wrong co; Figure 3(c) shows a self-rolling cross-section producing wrong co, ci, and Defective cross-sections and contours. (a) A scratched cross-section with correct co but wrong ci and cl. The green points on ci are the convex points of the inner contour, which can be used to split ci into a new inner contour and a lumen contour. (b) Adhered cross-sections with wrong 
Geometrical features of the CCM
In an image denoted by I, a contour, c (e.g., co, ci, or cl), is an eight-connected closed curve, which can be expressed by an ordered set of pixels,
Let
The geometrical features of fiber cross-sections are defined by the length (perimeter), area, and circularity of triple contours. For a given cotton variety, these parameters vary in certain ranges, which depend on the maturity of individual fibers and the cross-sectioning locations along fiber axes. The limits on these parameters can be set to distinguish abnormal contours from regular cross-sections. Let
The candidate CCM can be further checked with the relationships among the triple contours
After the
CCM-based contour detection algorithm
Locating outer and inner contours
For any pixel
After the segmentation, there may be multiple contours in co. Let
For any inner contour
Figure 4 shows two cotton cross-section images ((a) and (d)) and the outer and inner contours located by using the CCM model ((b) and (e)) and the distance regularized level set evolution model (DRLSE)
14
((c) and (f)). The two images contain three (a) and six (d) adhered cross-sections, respectively. Therefore, their outer contours, Adhering cotton cross-sections ((a) and (d)), and the contours extracted by the coupled-contour model ((b) and (e)) and by distance regularized level set evolution mode (DRLSE) (
Merging and splitting inner contours
As shown in Figure 3, an inner contour may be broken into small contours (a), connected with other inner contours (b), or adhered to lumen contour (c). In these cases, inner contours need to be merged or split.
The first case is to connect broken inner contours. For outer contour
Let the distance of Merging inner contours to form new inner contour and lumen contour: (a) cross-section with inner contour noise; (b) contours extracted by adaptive local threshold segmentation where the green points are convex (corner) points; (c) new inner contours and lumen contours. (Color online only.)
The second case is to split the adhered inner contours and lumen contour. For outer contour
The larger one of Split inner contours to form a new inner contour and lumen contour: (a) cross-section with inner contour noise; (b) contours extracted by adaptive local threshold segmentation where the green points are convex points; (c) new inner contours and lumen contours. (Color online only.)
Splitting outer contours of adhered cross-sections
As shown in Figures 4(b) and 4(e), adhered cross-sections generated one outer contour,
For outer contour
If there are multiple valid splits are found, all valid splits are denoted by a set, Valid splits in If If Otherwise, iteration stops.
Figure 7 shows examples of splitting outer contour Split outer contour of the three adhered cross-sections in Figure 4(b): (a) contours extracted; (b) concave points of outer contours; (c) valid splits (yellow lines): 
CCM-based contour refinement algorithm
Refining fiber contour
For a detected cross-section, the outer and inner contours can be refined if they contain abnormal fragments caused by impurities or other noise. The refinement is based on analyzing the curvature of the inner and outer contour, and the distance between them. Figure 8(a) gives one cross-section example whose outer contour was bounded with a small object, and Figure 8(b) shows its detected contours, Outer and inner contour optimization: (a) image of one cross-section; (b) contours detected, the outer contour 
After the differential angles, The distance curve (a) and differential angle curves (b) of outer contour 
The abnormal segments on the
Their corresponding fragments on the
From the
This proves that the abnormal noise occurs on outer contour
Contour rectification: (a) rectified outer contour 
Refining lumen contour
Figure 11 displays the cross-sections of three different fibers. When a cotton fiber is fully mature, its inner space is filled with cellulose (Figure 11(a)). An immature fiber has a large lumen that may be collapsed totally (Figure 11(b)) or partially (Figure 11(c)) during the processing or packaging. In all these cases, the detection of lumen can be easily missed (Figure 11(b)), or the contours of noisy regions near the lumen (Figure 11(a)) and discontinued lumen contours (Figure 11(c)) may be generated. To locate a lumen that is too small or incomplete in a cross-section, the skeleton of the cross-section provides useful information.
Fiber cross-sections with wrong lumen detection: (a) mature fiber with a small lumen and noisy regions; (b) immature fiber with a collapsed lumen; (c) immature fiber with discontinued lumens.
After the fiber contour, cf, is obtained with the detected co and ci, the skeleton,
The region defined by
Then, the contour of
Results and discussion
The above CCM-based algorithm was implemented in Microsoft Visual Studio 2010 and OpenCV 2.4.10 under Windows 7. All tests were executed on a Dell computer (Intel duo core CPU E8400 at 2.99 GHz with 4 GB RAM). The images of 15 different cotton varieties were collected for the software performance evaluations. As a reference method, a previously developed fiber image analysis software (FIAS) and the manual editing tools1,25 were used to detect as many valid cross-sections as possible in these images, and the measurements were used as the ground truth when evaluating the recall rate and the precision of the algorithm.
26
The reference method included the automatic cross-section detections with our software and the post-operator corrections of miss- or wrongly detected cross-sections on the screen. Figure 12(a) displays an example image of cotton cross-sections with a selected region of interest (ROI) for a clearer demonstration with larger contours. Figures 12(b)–(e) present the extracted contours with noise (b), the clean background with highlighted defective contours (circles) (c), the corrected contours (d), and the refined lumen contours (e). Figure 12(f) shows the maturity (θ) distributions obtained by using the CCM-based algorithm and the reference method. The two distributions are highly correlated (R2 = 0.984).
An example image of fiber cross-sections with a selected region of interest (a), locating contours (b), noise filtering with defective contours being highlighted by circles (c), corrections of outer and inner contours (d), refinement of lumen contours (e), maturity (θ) distributions from the coupled-contour model-based algorithm, and the reference (f).
The recall and precision rates of the CCM-based algorithm and the FIAS algorithm
1
were calculated for the 15 cottons that are shown in Figure 13. Averagely, the CCM had 93.53% recall rate and 98.13% precision, which are higher than the FIAS’s 90.24% recall rate and 90.96% precision. For all the cottons analyzed, the CCM produced higher precisions than recall rates, which is especially true for cottons 10 and 11. These two cotton varieties have a high content of dead fibers, which are likely to adhere to each other.
Recall rate and precision of the coupled-contour model (CCM)-based algorithm and fiber image analysis software (FIAS).
Comparisons of the θ values of the 15 cotton samples
FIAS: fiber image analysis software; CCM: coupled-contour model.
The errors of θ values in the CCM and the FIAS were measured by the relative differences between their θ values (θccm and θfias) and the reference values (θref), that is, (θccm – θref)/θref. Figure 14(a) shows the θ errors of the CCM and the FIAS over different cottons, and Figure 14(b) shows the θ errors of the two methods over different reference values. The θ errors of the CCM were consistently lower than those of the FIAS, as shown in Figure 14(a). The performance of the CCM was also less influenced by the level of cotton maturity (θref), as shown in Figure 14(b). The FIAS appeared to be more sensitive to lower θ values. These results imply that the CCM can detect contours of cross-sections more accurately than the FIAS, especially for cotton with low maturity.
Comparisons of θ errors of the coupled-contour model (CCM) and fiber image analysis software (FIAS): (a) θ errors over the 15 cottons; (b) θ errors over the reference θ values.
The time efficiency of the CCM-based algorithm was analyzed by counting time consumption in the main steps of the algorithm, including steps of “locating contours” (LC), “merging inner contours” (MIC), “splitting outer contours” (SOC), and “refining contours” (RC). Figure 15 shows the consumed time in the major steps when processing the 15 cottons. Since the cross-section images of these cottons were associated with the levels of their maturity, each cotton needed different amounts of time in different processing steps. Among these steps, locating and splitting contours (LC and SOC) took the major portions of the entire time, with MIC being the least or negligible. In particular, cottons 10 and 11 required significantly more time in SOC than other cottons, because these two cottons contained a large number of dead fibers, which are more difficult to split than mature fibers.
Time consumption in major steps of the coupled-contour model-based algorithm.
Conclusions
This paper presented a new algorithm to process wide-field microscopic images of cotton cross-sections for maturity measurement. The paper utilized a triple concentric contour set, called the CCM, to represent a regular cotton cross-section and to tackle common problems associated with contour segmentation, such as contour adherence, breakage, and ambiguity. Based on the CCM, the algorithm established specific rules or functions for locating, splitting, merging, and refining fiber contours by taking advantage of their shared shape features. The experiments on the images of 15 different cottons demonstrated that this CCM-based algorithm could achieve a recall rate of 93.53% and a precision rate of 98.13%, and reduce the maturity calculation errors by 50%.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This research received no specific grant from any funding agency in the public, commercial or not-for-profit sectors.
