📜 ⬆️ ⬇️

Blood vessel segmentation

Introduction


The retina, like any other object, has its symptoms. Its main features are blood vessels, the optical disk and the macular region (Fig. 1).

image
Fig. 1. The structure of the retina

As a rule, during authentication, only blood vessels or signs associated with them are compared, since their uniqueness is easily distinguishable. The disk can serve only as an additional parameter for comparison, however, it is used quite rarely. The macular area is not used for authentication purposes at all.

Blood vessel segmentation


Before proceeding to segmentation, in order to obtain more accurate results, it is necessary to improve the contrast between the background and the segmented object.
')
Improved contrast between background and blood vessels
When segmentation of blood vessels, the green channel is used instead of the usual gray one (fig. 2). This is done because the green channel contains the maximum local contrast between the background and the object.

image
Fig. 2. An example from the DRIVE database (the gray channel is on the left, the green channel is on the right)

In addition to using the green channel, a contrast-limited adaptive histogram equalization (clahe) is used. The result of the algorithm is shown in Fig. 3

image
Fig. 3. Clahe (on the left - the original image, on the right - the image after applying the algorithm)

Remove background with average filter


To simplify vessel segmentation, the background is first removed. This is done by subtracting the original image from the smoothed average filter image. The size of the filter window is chosen equal to the maximum thickness of the vessels in pixels.

To remove the boundaries of a circle, its mask is calculated (Fig. 4) using a threshold transform and morphological discovery and subtracted from the image obtained at the previous step. Then again clahe is applied. The result is shown in Fig. five.

image
Fig. 4. Retina mask

image
Fig. 5. Background removal (on the left - the result of the average filter, on the right - after subtraction and clahe)

Next, apply the automatic threshold conversion method Otsu, the median filter and the filter length. The result of the segmentation algorithm and the standard are shown in Fig. 6

For convenience, this segmentation algorithm and the background removal algorithm will both be referred to as background exclusion.

image
Fig. 6. Segmentation result (on the left - the result of the algorithm, on the right - the standard, manually marked by an expert)

Gabor filter


This segmentation method is based on the use of the Gabor filter series. A distinctive feature of this filter is that it is able to select straight lines of a certain size and at a certain angle.
The real part of this filter is as follows:

image
Where

Thus, to select the vessels, you need to apply a Gabor filter with different angles of inclination of the core and count the maximum response of each pixel to a series of filters.

As seen in fig. 7, most of the noise disappeared, but the optical disk, the background and the macular area still remained. To eliminate them, a background removal algorithm with the same parameters as in the previous section is applied before the Gabor filter series. The result is shown in Fig. eight.

image
Fig. 7. Gabor filter (on the left - the original image after clahe, on the right - the result of applying a series of Gabor filters)

image
Fig. 8. Background removal + Gabor filter (on the left - the original image obtained using the background exclusion algorithm, on the right - the result of applying a series of Gabor filters)

The next step in the algorithm is the threshold transform.
In order for the Otsu method to show more accurate segmentation results, it is necessary to convert all the background colors into one color. To do this, consider the histogram of the right image in Fig. 8 (fig. 9):

image
Fig. 9. Histogram of the image obtained using the Gabor filter series

From the graph it is clear that the peak number of pixels falls on a gray background. Therefore, the pixels whose color is to the right of the peak can be repainted in a different color. However, a slight noise will still be present on the segmented image. To eliminate it, you can shift the threshold threshold from the peak to the left.

We introduce the sensitivity parameter of the algorithm from 0 to 100. The threshold for the conversion will be the closest color, the number of pixels of which does not exceed the value of the sensitivity parameter to the left of the peak. The value found will be the new value of the intensity of the pixels to the right of the border. The result is shown in Fig. ten.

image
Fig. 10. Threshold conversion of the image intensity (on the left - the original image obtained after repainting pixels in accordance with the sensitivity parameter, on the right - the result of the Otsu method)

In the implementation, the Gabor filter was used with the following parameters:
  • core size - 15 x 15;
  • image - four;
  • image - from 0 to 170 degrees in increments of 10;
  • image - one;
  • image - 0;
  • image - 0.15.

The above parameters were selected for the DRIVE database.

Testing segmentation algorithms
The algorithm was tested on two databases: DRIVE and STARE. The first base consists of 40 images captured with a Canon CR5 camera in a 24-bit color space and with a resolution of 565 x 584. The second database consists of 20 images captured with a TopCon TRV-50 camera in a 24-bit color space and c 700 x 605 resolution. Both databases provide manually marked out standards for vascular segmentation.

Algorithm performance parameters:
  • P is the number of pixels corresponding to the vessels;
  • N is the number of pixels corresponding to the background;
  • TP is the number of pixels that are part of the vessel and defined as the pixel of the vessel;
  • TN is the number of pixels that are not part of the vessel and are defined as background;
  • FP - the number of pixels that are not part of the vessel and defined as the pixel of the vessel;
  • FN - the number of pixels that are part of the vessel and defined as the background;
  • Sensitivity = TP / (TP + FN);
  • Specificity = TN / (TN + FP);
  • Accuracy = (TP + TN) / (P + N).


Efficiency of various blood vessel segmentation algorithms based on DRIVE database
Segmentation methodAccuracySensitivitySpecificity
Human observer0.94730.77610.9725
Staal et al.0.94420.73450.9773
Niemeijer et al.0.94160.71450.9801
Zana and klein0.93770.69710.9769
Jiang and mojon0.92120.63990.9625
Vlachos and Dermatas0.92850.74680.9551
Wang et al.0.9461N / AN / A
Martinez-Perez et al.0.91810.63890.9496
Szpak and Tapamo0.9299N / AN / A
Chaudhuri et al.0.87730.33570.9794
Soares et al.0.9466N / AN / A
Akram and Khan0.9469N / AN / A
Mendonca and Campilho0.94630.7315N / A
Marin et al.0.94520.70670.9801
Ricci and Perfetti0.9595N / AN / A
Xiao et al.0.95290.75130.9792
Yin et al.0.92670.65220.9710
Chakraborti et al.0.93700.72050.9579
Background exclusion0.95010.71830.9722
Background exclusion + Gabor0.95800.71740.9809

Efficiency of various blood vessel segmentation algorithms based on STARE data
Segmentation methodAccuracySensitivitySpecificity
Human observer0.93540.8949N / A
Hoover0.92750.67510.9567
Staal et al.0.95160.6970N / A
Jiang and mojon0.9009N / AN / A
Marin et al.0.95260.69440.9819
Ricci and Perfetti0.9584N / AN / A
Soares et al.0.9480N / AN / A
Akram and Khan0.9502N / AN / A
Wang et al.0.9521N / AN / A
Mendonca and Campilho0.94790.7123N / A
Xiao et al.0.94760.71470.9735
Yin et al.0.94120.72480.9666
Chakraborti et al.0.93790.67860.9586
Background exclusion0.95620.73790.9742
Background exclusion + Gabor0.93810.79180.9502


List of used sources and literature


Continuation of feature matching

Source: https://habr.com/ru/post/259017/


All Articles