GABOR WAVELET-FUSED MULTI-SCALE LOCAL LEVEL SET ULTRASONIC IMAGE SEGMENTATION METHOD
20230070200 · 2023-03-09
Assignee
Inventors
Cpc classification
A61B8/12
HUMAN NECESSITIES
G06V10/26
PHYSICS
G06T2207/20016
PHYSICS
A61B8/085
HUMAN NECESSITIES
A61B8/5207
HUMAN NECESSITIES
International classification
A61B8/00
HUMAN NECESSITIES
Abstract
Disclosed is a Gabor wavelet-fused multi-scale local level set ultrasonic image segmentation method. In the method, non-uniformity of the grayscale of an ultrasonic image is taken as a texture having cluttered directions, the multi-directional property of Gabor wavelets is used to process the image, and intermediate images in different filtering directions are fused by taking maximum values, so as to obtain an intermediate image having a weakened texture effect and an enhanced difference between a foreground and a background. For the feature of a weak edge of an ultrasonic image, a concept of multi-scale is used to improve the conventional LIC method, Gaussian convolution kernels having different variances are set, and a final edge is obtained by means of average fusion.
Claims
1. An image segmentation method, comprising the following steps: step S1: obtaining an original image to be processed; step S2: performing filtering decomposition on the original image by using multi-directional Gabor wavelets, to obtain a plurality of intermediate images; step S3: fusing the plurality of intermediate images by taking maximum values, to obtain an enhanced image; step S4: constructing a corresponding level set energy equation for the intermediate images; step S5: optimizing parameters of the energy equation to enable an energy function to take a minimum value, to obtain an accurate position of an edge; and step S6: repeating step S5 until the energy function takes the minimum value to obtain a final edge.
2. The image segmentation method according to claim 1, wherein a change function of the multi-directional Gabor wavelets in step S2 is:
g.sub.q(x,y)=g(x cos θ+y sin θ,−x sin θ+y cos θ), wherein g(x, y) is a Gabor function in a two-dimensional space; g.sub.q(x, y) is a multi-directional Gabor wavelet transformation template, where x and y are coordinates in two directions of the template; θ=qπ/,
represents a total quantity of directions in wavelet transformation, and q is a direction parameter; and convolution is performed on Gabor wavelets in different directions with the original image to obtain the plurality of intermediate images, as shown by the following formula:
I.sub.q(x,y)=I(x,y)*g.sub.q(x,y) q=0,1, . . . Q−1 wherein I(x, y) is original image data, and I.sub.q(x, y) is intermediate image data.
3. The image segmentation method according to claim 1, wherein a fusion equation for fusing the plurality of intermediate images in step S3 is as follows:
I′(x,y)=max {I.sub.q(x,y), q=0,1, . . . Q−1} where I′(x, y) is the fused image data.
4. The image segmentation method according to claim 1, wherein the energy equation comprises: an energy functional item related to the image itself, a length regularization item for keeping edge smoothness by limiting an edge length, and a distance regularization item for keeping a level set equation from reinitialization.
5. The image segmentation method according to claim 4, wherein it is assumed that an image having non-uniform grayscale is a result obtained after a grayscale offset item and an actual image are weighted and summed with noise added therein, and Gaussian templates having different variances are constructed to calculate the energy functional item; and the Gaussian templates are as follows:
(ϕ,c,b)=ε(ϕ,c,b)+ν
(ϕ)+μ
(ϕ), wherein
(ϕ, c, b) is a constructed energy function, ε(ϕ, c, b) is the energy functional item related to the image itself, L(ϕ) is the length regularization item used for forcing level set contour to be smooth by limiting an arc length thereof, R(ϕ) is the distance regularization item that keeps a level set function stable during iteration in order to keep a level set from reinitialization, and ν and μ are respectively corresponding weighting factors;
H(ϕ); and H(x) is a Heaviside function; M.sub.1(ϕ) and M.sub.2(ϕ) respectively correspond to an edge inside and an edge outside of the image. L(ϕ) and R.sub.p(ϕ) are the two regularization items, L(ϕ) is the length regularization item used for calculating a length of a zero-level contour of a level set equation ϕ and forcing level set contour to be smooth by limiting an arc length thereof; and an expression of the length regularization item is as follows:
(ϕ)=∫|∇H(ϕ)|dx where R(ϕ) is the distance regularization item that keeps a level set function stable during iteration in order to keep a level set from reinitialization, and an expression of the distance regularization item is as follows:
6. The image segmentation method according to claim 5, wherein ϕ, c, b are optimized to enable the energy function to take the minimum value, the three parameters are respectively optimized, and during optimization of one parameter, values of the other two parameters are firstly fixed, the level set equation ϕ is optimized by using a Euler-Lagrange formula, c and b are optimized by using a partial differential equation, and an optimization equation for ϕ is as follows:
7. An image processing apparatus, comprising: a storage medium configured to store an image to be processed; and a processor configured to: obtain the image to be processed from the storage medium; perform filtering decomposition on the original image by using multi- directional Gabor wavelets, to obtain a plurality of intermediate images; fuse the plurality of intermediate images by taking maximum values, to obtain an enhanced image; construct a corresponding level set energy equation for the intermediate images; optimize parameters of the energy equation to enable an energy function to take a minimum value, to obtain an accurate position of an edge; and repeat optimizing the parameters of the energy equation until the energy function takes the minimum value to obtain a final edge.
8. An ultrasonic imaging apparatus, comprising: an ultrasonic probe configured to emit an ultrasonic wave to an object under test, receive a reflected ultrasonic wave reflected by the object under test, and generate an echo signal corresponding to the reflected ultrasonic wave; a generation part configured to generate an ultrasonic image related to the object under test according to the echo signal; and a processing part configured to: obtain the image to be processed from the storage medium; perform filtering decomposition on the original image by using multi-directional Gabor wavelets, to obtain a plurality of intermediate images; fuse the plurality of intermediate images by taking maximum values, to obtain an enhanced image; construct a corresponding level set energy equation for the intermediate images; optimize parameters of the energy equation to enable an energy function to take a minimum value, to obtain an accurate position of an edge; and repeat optimizing the parameters of the energy equation until the energy function takes the minimum value to obtain a final edge.
9. The ultrasonic imaging apparatus of claim 8, wherein the ultrasonic imaging apparatus is part of an ultrasonic endo scope that further comprises an insertion part and a control part.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0041]
[0042]
[0043]
DETAILED DESCRIPTION
[0044] An image segmentation method, an image processing apparatus, and an ultrasonic imaging apparatus according to the present application are described below with reference to the accompanying drawings.
Embodiment 1
[0045] An implementation procedure of the image segmentation method in this embodiment is shown in
[0046] Step 1: Read an acquired original ultrasonic image. In a preferred embodiment, the ultrasonic image is a two-dimensional ultrasonic image of a stomach cross-section.
[0047] Step 2: Filter the image by using a multi-directional Gabor filter. A Gabor function in a two-dimensional space is shown in the following formula:
[0048] In the formula, σ.sub.x and σ.sub.y respectively represent broadenings of a Gaussian function in an x direction and a y direction, and W represents a frequency bandwidth of a Gabor wavelet. A multi-directional Gabor wavelet transformation function may be represented as:
g.sub.q(x,y)=g(x cos θ+y sin θ, −x sin θ+y cos θ)
[0049] where, g(x, y) is a Gabor function in a two-dimensional space; g.sub.q(x, y) is a multi-directional Gabor wavelet transformation template, where x and y are coordinates in two directions of the template; θ=qπ/, and
represents a total quantity of directions in wavelet transformation; and convolution is performed on Gabor wavelets in different directions with the original image to obtain the plurality of intermediate images, as shown by the following formula:
I.sub.q(x,y)=I(x,y)*g.sub.q(x,y)q=0,1, . . . Q−1,
[0050] I(x, y) is the original image data and I.sub.q(x, y) is intermediate image data.
[0051] Step S3: To keep as many details as possible of the original image and enhance a difference between a foreground to be segmented and a background, fuse the plurality of intermediate images by taking maximum values, to obtain an enhanced image.
I′(x,y)=max{I.sub.q(x,y),q=0,1, . . . , Q−1},
where I′(x, y) is the fused image data.
[0052] Step S4: Construct a corresponding level set energy equation for the intermediate images. The energy equation of the entire image is formed by three parts, which include: an energy functional item related to the image itself, a length regularization item for keeping edge smoothness by limiting an edge length, and a distance regularization item for keeping a level set equation from reinitialization. It is assumed that an image having non-uniform grayscale is a result obtained after a grayscale offset item and an actual image are weighted and summed with noise added therein, and Gaussian templates having different variances are constructed to calculate the energy functional item. The Gaussian templates are as follows:
where σ.sub.p=σ.sub.0×p, σ.sub.p is a variance of a different scale, and σ.sub.0 is a minimum variance, and p is the different scale, K.sub.σ.sub.
(ϕ,c,b)=ε(ϕ,c,b)+ν
(ϕ)+μ
(ϕ),
where (ϕ,c,b) is a constructed energy function, ε(ϕ, c, b) is the energy functional item related to the image itself, L(ϕ) is the length regularization item used for forcing level set contour to be smooth by limiting an arc length thereof, R(ϕ) is the distance regularization item that keeps a level set function stable during iteration in order to keep a level set from reinitialization, and ν and μ are respectively corresponding weighting factors;
where P is a quantity of different scales, M.sub.1(ϕ)=H(ϕ), M.sub.2(ϕ)=1−H(ϕ). H(x) is a Heaviside function. M.sub.1(ϕ) and M.sub.2(ϕ) respectively correspond to an edge inside and an edge outside of the image. In the formula, (ϕ)=∫|∇H(ϕ)|dx,
(ϕ)=∫p(|∇ϕ|)dx. A functional form of p(s) is as follows:
where p(s) represents a part of a regularization item equation, where s represents the absolute value of an edge gradient of the image.
[0053] Step 5: Optimize ϕ, c, b, to enable the energy function to take the minimum value, the three parameters are respectively optimized, and during optimization of one parameter, values of the other two parameters are firstly fixed, the level set equation ϕ is optimized by using a Euler-Lagrange formula, c and b are optimized by using a partial differential equation, and an optimization equation for ϕ is as follows:
where
represents performing iteration on the level set equation, P represents a scale, δ(ϕ) is an impulse function, and ν and μ respectively represent the corresponding weighting factors, and div represents a difference operation; e.sub.i,p is an energy factor related to a distance constructed in a different scale; and ϕ and b are fixed, and c is optimized by the following equation:
where b.sub.p is a grayscale offset field calculated in the scale p; and c.sub.i,p is an image corrected by using the grayscale offset field in the scale p, and includes an inside part and an outside part of the level set;
ϕ and c are fixed, and b is optimized by the following equation:
where b.sub.p is the grayscale offset field calculated in the scale p, and K.sub.σ.sub.
[0054] Step S6: Repeat the calculation of the optimization equations in step S5 until the energy function takes the minimum value to obtain a final edge.
Embodiment 2
[0055] As shown in
[0056] The processing part is configured to obtain edge information in the image in the storage apparatus by using the method in any implementation in Embodiment 1.
Embodiment 3
[0057] As shown in
[0058] The ultrasonic probe is configured to emit an ultrasonic wave to an object under test, receive a reflected ultrasonic wave reflected by the object under test, and generate an echo signal corresponding to the reflected ultrasonic wave.
[0059] The generation part is configured to generate an ultrasonic image related to the object under test according to the echo signal.
[0060] The processing part is configured to obtain edge information in the ultrasonic image by using the method in any implementation in Embodiment 1.
[0061] A person skilled in the art can understand that although the image segmentation method in the above embodiments uses an ultrasonic image as a processing object, the present application is not limited to thereto. That is, in addition to using an ultrasonic image as a processing object, the image segmentation method in the embodiments of the present application can also process various grayscale images suitable for processing by using the method, for example, a CT image generated by an X-ray computed tomography device, an X-ray image generated by an X-ray diagnostic device, and an MR image generated by a magnetic resonance imaging device.
[0062] Several embodiments of the present application are described with respect to the present application. However, these embodiments are shown as examples and are not intended to limit the scope of the present application. These new embodiments may be implemented in various other ways, and various omissions, substitutions, and changes can be made without departing from the scope of the main idea of the present application. These embodiments and variations thereof fall within the scope and the main idea of the present application and fall within the scope of the prevent application and its equivalents as set forth in the claims.