| CPC G06T 7/136 (2017.01) [G06T 7/0012 (2013.01); G06T 2207/10132 (2013.01)] | 10 Claims |

|
1. A generation method for a blood flow spectrum envelope, being implemented by a computer device with a processor according to the following steps:
S1: importing an image;
the image being a blood flow spectrum image acquired from a blood vessel of an organism by an ultrasound device, a starting position of a blood flow spectrum waveform in the image serving as a first lateral edge, a second lateral edge being opposite to the first lateral edge, and a spacing between the first lateral edge and the second lateral edge serving as a width of the image; a direction directed by a peak of the blood flow spectrum waveform serving as an upside of the image, a direction opposite to the upside serving as a downside, and a spacing between the upside and the downside serving as a height of the image;
S2: finding block domains;
(i) the block domain being a maximum connected domain between the first lateral edge and the second lateral edge; and (ii) further comprising other domains located between the maximum connected domain and each of the first lateral edge and the second lateral edge being further comprised when a width of the maximum connected domain does not fully occupy a width of the image, and gray values of the other domains and the maximum connected domain being within the same interval;
S3: drawing a contour of each block domain by using contour pixel points to obtain a contour map; and
S4: finding the contour pixel points from a first side of the contour map, recording coordinates of the found contour pixel points, and connecting all the coordinates to form a blood flow spectrum envelope, wherein
(i) the coordinates of the contour pixel points found among all the block domains are not connected to each other;
(ii) the found contour pixel points are first contour pixel points found from top to bottom in respective columns;
(iii) coordinates of a contour pixel point found in a current column except a first column of each block domain need to be located in eight neighborhoods of coordinates of a contour pixel point found in a previous column; otherwise, coordinates are supplemented until the coordinates of the contour pixel point found in the current column are located in the eight neighborhoods of the coordinates of the contour pixel points found in the previous column.
|