Retinal vessel image enhancement method and system
10748268 ยท 2020-08-18
Assignee
Inventors
Cpc classification
A61B3/0025
HUMAN NECESSITIES
G06T2207/20016
PHYSICS
A61B3/12
HUMAN NECESSITIES
International classification
A61B3/00
HUMAN NECESSITIES
Abstract
An retinal vessel image enhancement method comprises: constructing a blood vascular dictionary; applying Frangi-based filtering to retinal vessel images, deciding blood vessels in a second image sub-block belong to wide or thin vessels by directional filtering, and setting residual error weight and residual error threshold of a vascular region; calculating inner products between the second image sub-block and each first image sub-block, selecting a first image sub-block with maximum inner product, and calculating its corresponding sparse coefficient; calculating residual error image, and calculating the residual error of the vascular region according to the residual error weight of the vascular region, when the residual error is greater than the residual error threshold, the residual error image is set as a second image sub-block, repeating and calculating residual error; reconstructing the second image sub-block according to the sparse coefficient, then restructuring each reconstructed second image sub-block, obtaining enhanced retinal vessel images.
Claims
1. A retinal vessel image enhancement method, comprising the following steps: step A: constructing a blood vascular dictionary using retinal vessel learning images, wherein the blood vascular dictionary comprises a preset number of first image sub-blocks; step B: applying Frangi-based filtering to a retinal vessel image to be enhanced, and dividing the obtained retinal vessel image into a plurality of second image sub-blocks overlapped each other; step C: applying directional filtering to the second image sub-blocks by means of a directional filter, and deciding that the retinal vessels contained in the second image sub-blocks belong to wide vessels or thin vessels based on directional filtering results; step D: determining a vascular region in each of the second image sub-blocks, and setting residual error weight and residual error threshold of a vascular region in each second image sub-block according to retinal vessel types contained in the second image sub-block; step E: calculating inner products between each second image sub-block and each first image sub-block in the blood vascular dictionary, determining a first image sub-block with maximum inner product for each second image sub-block, and calculating a sparse coefficient corresponding to the first image sub-block with maximum inner product; step F: for each second image sub-block, calculating a residual error image according to the first image sub-block with maximum inner product and the second image sub-block, and calculating the residual error of the vascular region in the second image sub-block according to the residual error weight of the vascular region; step G: when a norm of the residual error is greater than a residual error threshold, setting the residual error image as a second image sub-block, and jumping to step E, otherwise, jumping to step H; step H: reconstructing the second image sub-block according to the sparse coefficient; step I: reconstructing the retinal vessel image according to each reconstructed second image sub-block, and thereby obtaining an enhanced retinal vessel image.
2. The retinal vessel image enhancement method according to claim 1, wherein the step A comprises the sub-steps of: sub-step A1: partitioning the retinal vessel learning image into a plurality of first image sub-blocks with the same size; wherein the number of first image sub-blocks is greater than the preset number; sub-step A2: calculating all the inner products of every two first image sub-blocks; sub-step A3: selecting the preset number of first image sub-blocks with minimum inner product, and constructing the blood vascular dictionary.
3. The retinal vessel image enhancement method according to claim 1, wherein the step B comprises the sub-steps of: sub-step B1: supposing the retinal vessel image to be enhanced as I(x, y), and letting G(x, y; ) be a two-dimensional Gaussian function at scale , smoothing the retinal vessel image I(x, y) to be enhanced using the two-dimensional Gaussian function, thereby obtaining a smoothed image I.sub.(x, y): I.sub.(x, y)=I(x, y).Math.G(x, y; ), where
4. The retinal vessel image enhancement method according to claim 1, wherein the step C comprises the sub-steps of: sub-step C1: setting up 8 directional filters in the directions .sub.1=0,
posE.sub..sub.
negE.sub..sub.
E.sub.i=posE.sub..sub.
5. The retinal vessel image enhancement method according to claim 3, wherein the step D comprises the sub-steps of: sub-step D1: taking the vascular region by the directional filter corresponding to the maximum energy difference among the 8 directions as a vascular region .sub.1, and taking the non-vascular region by the directional filter corresponding to the maximum energy difference among the 8 directions as a non-vascular region .sub.2; sub-step D2: for the second image sub-block containing an retinal vessel image that belongs to wide vessels, setting the residual error weight of the vascular region .sub.1 in the second image sub-block to 1, such that the residual error threshold T.sub.R=T.sub.1; for the second image sub-block containing an retinal vessel image that belongs to thin vessels, setting its residual error weight of the vascular region .sub.1 to 1/v.sub.max, such that the residual error threshold T.sub.R=T.sub.2, where v.sub.max denotes the maximum value among Frangi-based filtering results of the second image sub-block.
6. The retinal vessel image enhancement method according to claim 1, wherein the step E comprises the sub-steps of: sub-step E1: Vectorizing the second image sub-block as x, and let d.sub.i be first No. i image sub-block in the blood vascular dictionary; sub-step E2: taking a first image sub-block corresponding to the largest one of inner products between each first image sub-block in the blood vascular dictionary and the second image sub-block x as the selected No. 1 first image sub-block d.sub.r0:
.sub.r0=<x,d.sub.r0>.
7. The retinal vessel image enhancement method according to claim 1, wherein the step F comprises the sub-steps of: sub-step F1: calculating calculating a residual error image R of the vascular region in the second image sub-block; sub-step F2; multiplying the residual error image R by the residual error weight of the vascular region in the second image sub-block, and obtaining the weighted sum as calculating an final residual error of vascular region in the second image sub-block.
8. The retinal vessel image enhancement method according to claim 1, wherein the reconstructed second image sub-block is defined as:
9. The retinal vessel image enhancement method according to claim 1, wherein the Step I comprises the following: merging non-overlapping parts of all the reconstructed second image sub-blocks, thereby obtaining a complete enhanced retinal vessel image.
10. A retinal vessel image enhancement system, comprising: blood vascular dictionary constructing module, which is configured to construct a blood vascular dictionary using retinal vessel learning images, wherein the blood vascular dictionary comprises a preset number of first image sub-blocks; image filtering and dividing module, which is configured to apply Frangi-based filtering to a retinal vessel image to be enhanced, and divide the obtained retinal vessel images having undergone Frangi-based filtering into a plurality of second image sub-blocks overlapped each other; blood vessel type determining module, which is configured to apply directional filtering to the second image sub-blocks by means of a directional filter, and decide that the blood vessels contained in the second image sub-blocks belong to wide vessels or thin vessels based on directional filtering results; vascular region and its residual error weight and residual error threshold determining module, which is configured to determine a vascular region in each second image sub-block, and set residual error weight and residual error threshold of a vascular region in the second image sub-block according to blood vessel types contained in each second image sub-block; sparse coefficient calculating module, which is configured to calculate, for each second image sub-block, the inner products between the second image sub-block and each first image sub-block in the blood vascular dictionary, determine a first image sub-block with maximum inner product among them, and calculate a sparse coefficient corresponding to the first image sub-block with maximum inner product; vascular region residual error calculating module, which is configured to calculate, for each second image sub-block, a residual error image according to the first image sub-block with maximum inner product and the second image sub-block, and calculate the residual error of the vascular region in the second image sub-block according to the residual error weight of the vascular region; jumping module, which is configured to, when a norm of the residual error is greater than a residual error threshold, set the residual error image as a second image sub-block, and jump to the sparse coefficient calculating module, otherwise, jump to second image sub-block reconstructing module; second image sub-block reconstructing module, which is configured to reconstruct the second image sub-block according to the sparse coefficient; retinal vessel image reconstructing module, which is configured to reconstruct the retinal vessel image according to each reconstructed second image sub-block, and thereby obtaining an enhanced retinal vessel image.
11. The retinal vessel image enhancement system according to claim 10, wherein the blood vascular dictionary constructing module comprises: retinal vessel learning image dividing module, which is configured to partition the retinal vessel learning image into several first image sub-blocks with the same size; and the number of first image sub-blocks is greater than the set number; first image sub-block inner product module, which is configured to calculate all the inner products of every two first image sub-blocks; blood vascular dictionary constructing submodule, which is configured to select the preset number of first image sub-blocks with minimum inner product, and construct the blood vascular dictionary.
12. The retinal vessel image enhancement system according to claim 10, wherein the image filtering and dividing module comprises: smooth filtering module, which is configured to define the retinal vessel image to be enhanced as I(x, y), and let G(x, y; ) be a two-dimensional Gaussian function at scale , smooth the retinal vessel image I(x, y) to be enhanced using the two-dimensional Gaussian function, thereby obtaining a smoothed image I.sub.(x, y): I.sub.(x, y)=I(x, y).Math.G(x, y; ), where
13. The retinal vessel image enhancement system according to claim 10, wherein the blood vessel type determining module comprises: directional filter setting module, which is configured to set up 8 directional filters in the directions .sub.1=0,
posE.sub..sub.
negE.sub..sub.
E.sub.i=posE.sub..sub.
14. The retinal vessel image enhancement system according to claim 13, wherein the vascular region and its residual error weight and residual error threshold determining module comprises: vascular region determining module, which is configured to take the vascular region by the directional filter corresponding to the maximum energy difference among the 8 directions as a vascular region .sub.1, and take the non-vascular region by the directional filter corresponding to the maximum energy difference among the 8 directions as a non-vascular region .sub.2; residual error weight and residual error threshold determining module which is configured to, for the second image sub-block containing an retinal vessel image that belongs to wide vessels, set the residual error weight of the vascular region .sub.1 to 1, such that the residual error threshold T.sub.R=T.sub.1; for the second image sub-block containing an retinal vessel image that belongs to thin vessels, set its residual error weight of the vascular region .sub.1 to 1/v.sub.max, such that the residual error threshold T.sub.R=T.sub.2, where v.sub.max denotes the maximum value among Frangi-based filtering results of the second image sub-block.
15. The retinal vessel image enhancement system according to claim 10, wherein the sparse coefficient calculating module comprises: image vectorizing module, which is configured to vectorize the second image sub-block as x, and take d.sub.i as first No. i image sub-block in the blood vascular dictionary; first image sub-block selecting module, which is configured to take a first image sub-block corresponding to the largest one of inner products between each first image sub-block in the blood vascular dictionary and the second image sub-block x as the selected No. 1 first image sub-block d.sub.r0:
.sub.r0=<x,d.sub.r0>.
16. The retinal vessel image enhancement system according to claim 10, wherein the vascular region residual error calculating module comprises: residual error preliminarily calculating module, which is configured to calculate the residual error image R of the vascular region in the second image sub-block:
R=x<x,d.sub.r0>d.sub.r0; residual error weighting module, which is configured to multiply the residual error R by the residual error weight of the vascular region in the second image sub-block, and obtain the weighted sum as the final residual error of vascular region in the second image sub-block.
17. The retinal vessel image enhancement system according to claim 10, wherein the reconstructed second image sub-block is defined as:
18. The retinal vessel image enhancement system according to claim 10, wherein the retinal vessel image reconstructing module is specifically used to: merge non-overlapping parts of all the reconstructed second image sub-blocks, thereby obtaining a complete enhanced retinal vessel image.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
DESCRIPTION OF THE EMBODIMENTS
(4) In order to make the purpose, technical solutions and advantages of this invention clearer, the present invention will now be further described in detail hereinafter with reference to the drawings and embodiments.
(5) As shown in
(6) Step A: constructing a blood vascular dictionary using retinal vessel learning images, the above-mentioned blood vascular dictionary comprises a preset number of first image sub-blocks.
(7) The Step A specifically comprises the sub-steps of:
(8) Sub-step A1: partitioning the retinal vessel learning image into several first image sub-blocks of the same size; and the number of first image sub-blocks should be greater than the preset number. The retinal vessel learning image can be partitioned into a plurality of first image sub-blocks with a size of 8*8 according to artificially partitioned results of the retinal vessel learning image, moreover, these first image sub-blocks should include retinal vessel image features such as wide vessels, gracile and thin vessels, and highlighted parts.
(9) Sub-step A2: calculating all the inner products of every two first image sub-blocks; the smaller the inner product is, the lower degree of similarity between two first image sub-blocks.
(10) Sub-step A3: selecting the preset number of first image sub-blocks with minimum inner product, and constructing the blood vascular dictionary. Let K be a set number, such that select K most dissimilar first image sub-blocks and construct a blood vascular dictionary.
(11) Step B: applying the Frangi-based filtering to the retinal vessel images to be enhanced, and dividing the obtained images having undergone Frangi-based filtering into a plurality of second image sub-blocks overlapped each other.
(12) The Step B specifically comprises the sub-steps of:
(13) Sub-step B1: defining the retinal vessel image to be enhanced as I(x, y), and let G(x, y; ) be a two-dimensional Gaussian function at scale , smoothing the retinal vessel image I(x, y) to be enhanced using the two-dimensional Gaussian function, thereby obtaining a smoothed image I.sub.(x, y):
(14) I.sub.(x, y)=I(x, y).Math.G(x, y; ), where
(15)
and .Math. denotes a convolutional operation;
(16) Sub-step B2: calculating a Hessian matrix H.sub.(x, y) at point (x, y) and scale in the smoothed image I.sub.(x, y):
(17)
(18) Sub-step B3: performing an eigenvalue analysis of the Hessian matrix H.sub.(x, y), then obtaining the eigenvalues .sub.1 and .sub.2, ordered as |.sub.1|<|.sub.2|; if point (x, y) belongs to a tubular structure, such that |.sub.1|0, and the value of |.sub.2| tends to be greater, accordingly, the vascular feature at scale s can be expressed by:
(19)
(20) Where
(21)
S={square root over (.sub.1.sup.2+.sub.2.sup.2)}, and C are the preset constants;
(22) Sub-step B4: In a multiscale framework, selecting the maximum value of v.sub.0(s) at each scale as a Frangi-based filtering result v of the retinal vessel image I(x, y) to be enhanced:
(23)
(24) Where s.sub.min ands s.sub.max denote the minimum and maximum scales, respectively;
(25) Sub-step B5: dividing the Frangi-based filtering result v into a plurality of second image sub-blocks overlapped each other.
(26) Step C: applying directional filtering to the second image sub-block by means of a directional filter, and deciding that the blood vessels contained in the second image sub-block belong to wide vessels or thin vessels based on directional filtering results.
(27) The Step C specifically comprises the sub-steps of:
(28) Sub-step C1: setting up 8 directional filters in the directions .sub.1=0,
(29)
respectively (as shown in
(30) Sub-step C2: assuming that .sub.1 is a vascular region (white region) by the directional filter in the direction .sub.i, .sub.2 is a non-vascular region (black region), the respective energy posE.sub..sub.
posE.sub..sub.
negE.sub..sub.
(31) where v(x, y) is the value of the Frangi-based filtering result v at point (x, y), N.sub.1 is the number of pixels in .sub.1, and N.sub.2 is the number of pixels in .sub.2.
(32) Sub-step C3: calculating the energy difference between posE.sub..sub.
E.sub.i=posE.sub..sub.
(33) Sub-step C4: determining the maximum energy difference among the above-mentioned 8 directions:
(34)
(35) Sub-step C5: deciding blood vessel types based on the E.sub.max, if E.sub.maxT, the retinal vessel image contained in the second image sub-block belongs to wide vessels, otherwise it belongs to thin vessels. Where T denotes a preset value.
(36) Step D: determining a vascular region in the second image sub-block, and setting residual error weight and residual error threshold of a vascular region in the second image sub-block according to blood vessel types contained in the second image sub-block.
(37) The Step D specifically comprises the sub-steps of:
(38) Sub-step D1: taking the vascular region by the directional filter corresponding to the maximum energy difference (namely the directional filter corresponding to E.sub.max in the direction .sub.i) among the 8 directions as a vascular region .sub.1, and taking the non-vascular region by the directional filter corresponding to the maximum energy difference (namely the directional filter corresponding to E.sub.max in the direction .sub.i) among the 8 directions as a non-vascular region .sub.2.
(39) Sub-step D2: for the second image sub-block containing an retinal vessel image that belongs to wide vessels, setting the residual error weight of the vascular region .sub.1 in the second image sub-block to 1, such that the residual error threshold T.sub.R=T.sub.1; for the second image sub-block containing an retinal vessel image that belongs to thin vessels, setting its residual error weight of the vascular region .sub.1 to 1/v.sub.max, such that the residual error threshold T.sub.R=T.sub.2, where v.sub.max denotes the maximum value among Frangi-based filtering results of the second image sub-block.
(40) The Step D can further comprises the sub-steps of:
(41) Sub-step D3: setting the selected index set S of first image sub-block to an empty set, such that S=, then add the index number r.sub.0 of the selected first image sub-block d.sub.r0 into the set S, such that S=Sr0.
(42) Step E: calculating the inner products between the second image sub-block and each first image sub-block in the blood vascular dictionary, determining a first image sub-block with maximum inner product among them, and calculating the sparse coefficient corresponding to the first image sub-block with maximum inner product.
(43) The Step E specifically comprises the sub-steps of:
(44) Sub-step E1: vectorizing the second image sub-block as x, and let d.sub.i be first No. i image sub-block in the blood vascular dictionary.
(45) Sub-step E2: taking a first image sub-block corresponding to the largest one of inner products between each first image sub-block in the blood vascular dictionary and the second image sub-block x as the selected No. 1 first image sub-block d.sub.r0:
(46)
(47) Where k denotes the number of first image sub-blocks in the blood vascular dictionary, r.sub.0 denotes an index number of the dictionary, and <x,d.sub.i> denotes the computation of inner product between x and d.sub.i;
(48) Sub-step E3: calculating the sparse coefficient .sub.r0 corresponding to the first image sub-block d.sub.r0:
.sub.r0=<x,d.sub.r0>.
(49) add the index number r.sub.0 of the selected first image sub-block d.sub.r0 into the set S, such that S=Sr0.
(50) Step F: calculating a residual error image according to the first image sub-block with maximum inner product and the second image sub-block, and calculating the residual error of the vascular region in the second image sub-block according to the residual error weight of the vascular region.
(51) The Step F specifically comprises the sub-steps of:
(52) Sub-step F1: calculating the residual error image R of the vascular region in the second image sub-block:
R=x<x,d.sub.r0>d.sub.r0;
(53) Sub-step F2: multiplying the residual error R by the residual error weight of the vascular region in the second image sub-block, and obtaining the weighted sum as the final residual error of vascular region in the second image sub-block.
(54) Step G: when the norm of the residual error is greater than the residual error threshold, setting the residual error image as the second image sub-block, and jumping to Step E, otherwise, jumping to Step H. That is to say, in the Step F, if the norm R of the residual error R is greater than the residual error threshold T.sub.R, jump to Step E, otherwise, jump to Step H.
(55) Step H: reconstructing the second image sub-block according to the sparse coefficient; the reconstructed second image sub-block is defined as:
(56)
(57) Where S denotes a set of multiple sparse coefficients determined by multiple execution of Step E, d.sub.r0 denotes a first image sub-block with maximum inner product determined by execution of Step E each time and .sub.r0 denotes a sparse coefficient corresponding to d.sub.r0.
(58) Step I: reconstructing the retinal vessel image according to each reconstructed second image sub-block, and thereby obtaining an enhanced retinal vessel image.
(59) The Step I comprises the following:
(60) merging non-overlapping parts of all the reconstructed second image sub-blocks, thereby obtaining a complete enhanced retinal vessel image.
(61) As shown in
(62) Blood vascular dictionary constructing module 1 is configured to construct a blood vascular dictionary using retinal vessel learning images, and the blood vascular dictionary comprises a preset number of first image sub-blocks. Blood vascular dictionary constructing module 1 comprises retinal vessel learning image dividing module, first image sub-block inner product module, and blood vascular dictionary constructing sub-module.
(63) Retinal vessel learning image dividing module is configured to partition the retinal vessel learning image into a plurality of first image sub-blocks with the same size; and the number of first image sub-blocks is greater than the preset number.
(64) First image sub-block inner product module is configured to calculate all the inner products of every two first image sub-blocks.
(65) Blood vascular dictionary constructing sub-module is configured to select the preset number of first image sub-blocks with minimum inner product, and construct the blood vascular dictionary.
(66) Image filtering and dividing module 2 is configured to apply Frangi-based filtering to retinal vessel images to be enhanced, and divides the obtained images having undergone Frangi-based filtering into a plurality of second image sub-blocks overlapped each other. Image filtering and dividing module 2 comprises smooth filtering module, Hessian matrix calculating module, eigenvalue analyzing module, Frangi-based filtering result generating module, and second image sub-block dividing module.
(67) Smooth filtering module is configured to define the retinal vessel image to be enhanced as I(x, y), and let G(x, y; ) be a two-dimensional Gaussian function at scale , smooth the retinal vessel image I(x, y) to be enhanced using the two-dimensional Gaussian function, thereby obtaining a smoothed image I.sub.(x, y):
(68) I.sub.(x, y)=I(x, y).Math.G(x, y; ), where
(69)
and .Math. denotes a convolutional operation;
(70) Hessian matrix calculating module is configured to calculate a Hessian matrix H.sub.(x, y) at point (x, y) and scale in the smoothed image I.sub.(x, y):
(71)
(72) Eigenvalue analyzing module is configured to performs an eigenvalue analysis of the Hessian matrix H.sub.(x, y), then obtain the eigenvalues .sub.1 and .sub.2, ordered as |.sub.1|<|.sub.2|; accordingly, the vascular feature at scale s can be expressed by:
(73)
(74) Where
(75)
S={square root over (.sub.1.sup.2+.sub.2.sup.2)}; and C are the preset constants;
(76) Frangi-based filtering result generating module is configured to, in a multiscale framework, select the maximum value of v.sub.0(s) at each scale as a Frangi-based filtering result v of the retinal vessel image I(x, y) to be enhanced:
(77)
(78) Where s.sub.min and s.sub.max denote the minimum and maximum scales, respectively;
(79) Second image sub-block dividing module is configured to divide the Frangi-based filtering result v into a plurality of second image sub-blocks overlapped each other.
(80) Blood vessel type determining module 5 is configured to apply directional filtering to the second image sub-block by means of a directional filter, and decide that the blood vessels contained in the second image sub-block belong to wide vessels or thin vessels based on directional filtering results. Blood vessel type determining module 5 comprises directional filter setting module, energy calculating module, energy difference calculating module, maximum energy difference determining module, and blood vessel type determining sub-module.
(81) Directional filter setting module is configured to set up 8 directional filters in the directions .sub.1=0,
(82)
respectively.
(83) Energy calculating module is configured to, assuming that .sub.1 is a vascular region by the directional filter in the direction .sub.i, .sub.2 is a non-vascular region, thus calculate the respective energy posE.sub..sub.
posE.sub..sub.
negE.sub..sub.
(84) where v(x, y) is the value of the Frangi-based filtering result v at point (x, y), N.sub.1 is the number of pixels in .sub.1, and N.sub.2 is the number of pixels in .sub.2.
(85) Energy difference calculating module is configured to calculate the energy difference between posE.sub..sub.
E.sub.i=posE.sub..sub.
(86) Maximum energy difference determining module determines the maximum energy difference among the above 8 directions:
(87)
(88) Blood vessel type determining sub-module is configured to decide blood vessel types based on the E.sub.max, if E.sub.maxT, the retinal vessel image contained in the second image sub-block belongs to wide vessels, otherwise it belongs to thin vessels.
(89) Vascular region and its residual error weight and residual error threshold determining module 4 is configured to determine a vascular region in the second image sub-block, and set residual error weight and residual error threshold of a vascular region in the second image sub-block according to blood vessel types contained in the second image sub-block. Vascular region and its residual error weight and residual error threshold determining module 4 comprises vascular region determining module and residual error weight and residual error threshold determining module.
(90) Vascular region determining module is configured to take the vascular region by the directional filter corresponding to the maximum energy difference among the 8 directions as a vascular region .sub.1, and take the non-vascular region by the directional filter corresponding to the maximum energy difference among the 8 directions as a non-vascular region .sub.2;
(91) Residual error weight and residual error threshold determining module is configured to, for the second image sub-block containing an retinal vessel image that belongs to wide vessels, set the residual error weight of the vascular region .sub.1 to 1, such that the residual error threshold T.sub.R=T.sub.1; for the second image sub-block containing an retinal vessel image that belongs to thin vessels, set its residual error weight of the vascular region .sub.1 to 1/v.sub.max, such that the residual error threshold T.sub.R=T.sub.2, where v.sub.max denotes the maximum value among Frangi-based filtering results of the second image sub-block.
(92) Sparse coefficient calculating module 3 is configured to calculate the inner products between the second image sub-block and each first image sub-block in the blood vascular dictionary, determine a first image sub-block with maximum inner product among them, and calculate the sparse coefficient corresponding to the first image sub-block with maximum inner product. Sparse coefficient calculating module 3 comprises image vectorizing module, first image sub-block selecting module and sparse coefficient calculating sub-module.
(93) Image vectorizing module is configured to vectorize the second image sub-block as x, and take d.sub.i as first No. i image sub-block in the blood vascular dictionary.
(94) First image sub-block selecting module is configured to take a first image sub-block corresponding to the largest one of inner products between each first image sub-block in the blood vascular dictionary and the second image sub-block x as the selected No. 1 first image sub-block d.sub.r0:
(95)
(96) Where k denotes the number of first image sub-blocks in the blood vascular dictionary, r.sub.0 denotes an index number of the dictionary, and <x, d.sub.i> denotes the computation of inner product between x and d.sub.i.
(97) Sparse coefficient calculating submodule is configured to calculate the sparse coefficient .sub.r0 corresponding to the first image sub-block d.sub.r0:
.sub.r0=<x,d.sub.r0>,
(98) it adds the index number r.sub.0 of the selected first image sub-block d.sub.r0 into the set S, such that S=Sr0.
(99) Vascular region residual error calculating module 6 is configured to calculate a residual error image according to the first image sub-block with maximum inner product and the second image sub-block, and calculate the residual error of the vascular region in the second image sub-block according to the residual error weight of the vascular region. Vascular region residual error calculating module 6 comprises residual error preliminarily calculating module and residual error weighting module.
(100) Residual error preliminarily calculating module is configured to calculate the residual error image R of the vascular region in the second image sub-block:
R=x<x,d.sub.r0>d.sub.r0;
(101) Residual error weighting module is configured to multiply the residual error R by the residual error weight of the vascular region in the second image sub-block, and obtain the weighted sum as the final residual error of vascular region in the second image sub-block.
(102) Jumping module 7 is configured to, when the norm of the residual error is greater than the residual error threshold, set the residual error image to a second image sub-block, and jump to the sparse coefficient calculating module 3, otherwise, jump to second image sub-block reconstructing module 8.
(103) Second image sub-block reconstructing module 8 is configured to reconstruct the second image sub-block according to the sparse coefficient. The reconstructed second image sub-block is defined as:
(104)
(105) Where S denotes a set of multiple sparse coefficients determined by the sparse coefficient calculating module multiple times, d.sub.r0 denotes a first image sub-block with maximum inner product determined by the sparse coefficient calculating module each time and .sub.r0 denotes a sparse coefficient corresponding to d.sub.r0.
(106) Retinal vessel image reconstructing module 9 is configured to reconstruct the retinal vessel image according to each reconstructed second image sub-block, and thereby obtaining an enhanced retinal vessel image. Retinal vessel image reconstructing module 9 is specifically used to:
(107) merge non-overlapping parts of all the reconstructed second image sub-blocks, thereby obtaining a complete enhanced retinal vessel image. Specific operating principles of each module in the present system can be understood by reference to the corresponding steps in the aforementioned method for retinal vessel image enhancement.
(108) The above descriptions are just preferred embodiments of the present invention, not for the purpose of limiting the invention, and any modification, equivalent substitution or improvement within the spirit and principles of the invention, should be included in the protection scope of the present invention.