Skip to main content
. 2017 Sep 7;12(9):e0184290. doi: 10.1371/journal.pone.0184290

Table 5. Lung nodule image sequence segmentation algorithm.

Algorithm 5 Lung nodule image sequences segmentation algorithm
1: Input the original CT image sequences, and initialize the number of slices of AIP reconstruction area Sr and the total number of AIP reconstruction sequence images Nr.
2: Lung parenchyma image sequence segmentation.
3: Obtain the AIP sequence images AIPi, i ∈ [1,Nr]. The lung parenchyma image sequences are labeled {CTij}j=1Sr, with i ∈ [1,Nr], and j ∈ [1,Sr]; j represents the corresponding relationships of the reconstructed sequence number.
4: For lung parenchyma images labeled {CTi1}, with i ∈ [1,Nr], execute the following:
1) Compared with the AIPi image sequence after multi-scale dot enhancement, retain the dot-like object.
2) Superpixel sequence image segmentation (HMSLIC).
3) Calculate the distance between superpixels and perform the Determine the Threshold algorithm to obtain the starting clustering point, the starting clustering block and the clustering threshold, denoted as [xi, yi], {Si1} and {Ei1}.
5: For lung parenchyma images labeled {CTij}j=2Sr, with i ∈ [1,Nr], and j ∈ [2,Sr], take [xi, yi] as the center and 30 mm as the side to extract ROIs as follows:
1) Convert coordinates [xi, yi] of the clustering starting point to the ROI as [Xi, Yi].
2) Superpixel sequence image segmentation (HMSLIC).
3) Mark the label of the pixel point [Xi, Yi], which belongs to the superpixel as the starting clustering block {Sij}j=2Sr.
4) Obtain the clustering threshold by performing the Determine the Threshold algorithm labeled as {Eij}j=2Sr.
6: According to the clustering starting blocks {Sij}j=1Sr and clustering thresholds {Eij}j=1Sr, perform the Improved DBSCAN algorithm to obtain the lung nodule mask sequence {Mij}j=1Sr.
7: According to {Mij}j=1Sr, sequential segmentation of all lung nodule images.