|
Algorithm 2: NHBCC Algorithm |
Input: ASSRG segmented lobe (right or left) (J), the width of the line (n) Output: Border-corrected lung lobe (Ibcl)
Add ‘n’ columns of zeros to the ‘J’ at the left and right sides to enhance the efficacy of boundary identification.
Apply a morphological opening function to eliminate unsolicited objects from the image.
Morphologically rebuild based on the flood-fill function to fill the holes in the images.
Normalize the shape of the image using MF.
Implement associated component analysis.
Determine the number of linked regions (N).
-
for j = 1:N
Compute the area (j) of every associated region
end
Mine the associated region (Iar) that has the supreme area % of lobe area.
Determine the indices of ‘Iar’ that are genuinely intense and save them as φ=(x(i), y(i)), where ‘i’ is the number of locations with true intensity.
Implement the revealing boundary algorithm with ‘φ’ indexes set, which produces a collection of edge indices (χ). % negates minor deep concave indices.
Implement a convex hull algorithm with ‘φ’ indexes set that produce a collection of edge indices (£). % negates massive deep concave indices.
Generate new index set ‘s’ by linking ‘χ’ and ‘£’ indices (if identical indices, preserve a duplicate).
Link indices (s) with line width ‘n’ that wholly includes a lobe deprived of concavities.
Apply CE to the outcome of step 10 and detect boundaries.
Redo steps 5 to 7.
Mine the linked area that has the smallest area (I_min). % (Inner lobe boundary deprived of highly segmented external soft wall)
The internal area of ‘I_min’ is made intense. Eliminate the intentionally added columns of zeros in step 1.
Return the border-corrected lobe region (Ibcl).
|