Abstract
Objective: To develop an algorithm to detect the edges between lung tissue, perivascular interstitium. and microvessel using digital processing of in vivo microscopic images of lung surface.
Methods: A numerical technique was developed to identify three different regions (namely, pulmonary microvessel, perivascular interstitium, and lung tissue) based on their corresponding gray level distributions. We present a theoretical demonstration of the method and a semiautomatic procedure that, once the edges are detected, determines microvascular diameters and perivascular interstitium thickness.
Results: Microvessel diameters and perivascular interstitium thickness were calculated for precapillary arteriolar branching (40 to 140 μm) and saved in an ASCII file.
Conclusions: We proved that the maximum value of the moving variance is useful to detect the edge between two adjacent regions whose gray level distributions satisfy the condition: ∥σY2-σX2∥ ≤ (μX-μY)2, where μX, μY, σX2, σY2 are the statistical moments of the two regions X and Y. Moreover, when the regions have similar means, the above condition is not met, but the edge between them can be detected by the maximum of the moving variance error.