An image edge smoothing method, device and related equipment

By determining the edges to be smoothed and the bounding rectangle of the image to be processed, forming the edge region, and then applying anti-aliasing to it, the problem of low efficiency in image edge smoothing processing in the prior art is solved, and a highly efficient image edge smoothing effect is achieved.

CN115131223BActive Publication Date: 2026-07-24SONOSCAPE MEDICAL CORP
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SONOSCAPE MEDICAL CORP
Filing Date
2021-03-29
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Current image edge smoothing technology is inefficient and computationally intensive, making it difficult to meet the requirements for high-efficiency processing.

Method used

By determining the edges to be smoothed and the bounding rectangle of the image to be processed, an edge region is formed, and anti-aliasing is applied to this region. Median filtering and other techniques are used to achieve edge smoothing and reduce pixel computation.

Benefits of technology

It effectively improves the efficiency of image edge smoothing processing, reduces pixel calculation, and enhances image edge quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115131223B_ABST
    Figure CN115131223B_ABST
Patent Text Reader

Abstract

The application discloses an image edge smoothing method, comprising: acquiring a to-be-processed image; determining a to-be-smoothed edge and an outer package rectangle of the to-be-processed image; determining an edge region composed of the to-be-smoothed edge and the outer package rectangle; and performing anti-aliasing drawing on the edge region to obtain a smoothed edge. The image edge smoothing method first determines the to-be-smoothed edge and the outer package rectangle of the to-be-processed image, then performs anti-aliasing drawing on the edge region composed of the to-be-smoothed edge and the outer package rectangle, and finally realizes the edge smoothing processing of the to-be-smoothed edge, that is, realizes the edge smoothing processing of the to-be-processed image, effectively reduces the pixel calculation amount, and further improves the image edge smoothing processing efficiency. The application also discloses an image edge smoothing device, an image edge smoothing equipment, an ultrasonic system and a computer readable storage medium, which all have the beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular to an image edge smoothing method, as well as an image edge smoothing device, apparatus, ultrasound system, and computer-readable storage medium. Background Technology

[0002] Image edge smoothing in ultrasound can improve the overall image quality. Smoothing primarily targets jagged edges, specifically by applying smoothing algorithms to eliminate them. Once jagged edges are eliminated, the image edge quality is significantly improved. Related techniques include image closing operations, Gaussian smoothing, median filtering, and mean filtering for edge smoothing. However, these methods often involve scanning pixels one by one, resulting in computationally intensive and inefficient processes that increase with image size.

[0003] Therefore, how to effectively improve the efficiency of image edge smoothing processing is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] The purpose of this application is to provide an image edge smoothing method that can effectively improve the efficiency of image edge smoothing processing; another purpose of this application is to provide an image edge smoothing device, apparatus, ultrasound system, and computer-readable storage medium, all of which have the above-mentioned beneficial effects.

[0005] In a first aspect, this application provides an image edge smoothing method, including:

[0006] Obtain the image to be processed;

[0007] Determine the edges to be smoothed and the bounding rectangle of the image to be processed;

[0008] Determine the edge region formed by the edge to be smoothed and the outer rectangle;

[0009] Anti-aliasing is applied to the edge region to obtain a smooth edge.

[0010] Preferably, determining the edges to be smoothed in the image to be processed includes:

[0011] Determine the initial edges to be smoothed in the image to be processed;

[0012] The initial edge to be smoothed is translated into the interior of the image to be processed according to a preset pixel threshold to obtain the edge to be smoothed.

[0013] Preferably, the image to be processed is an ultrasound image, and determining the initial edges to be smoothed in the image to be processed includes:

[0014] When the image to be processed is a sector image, obtain the center coordinates, central angle, and radius of the sector image;

[0015] The position of the initial edge to be smoothed is determined based on the center coordinates, central angle, and radius.

[0016] Preferably, the image to be processed is an ultrasound image, and determining the initial edges to be smoothed in the image to be processed includes:

[0017] When the image to be processed is a rectangular image, the width, height, and center point coordinates of the rectangular image are obtained;

[0018] The position of the initial edge to be smoothed is determined based on the width, height, and center point coordinates.

[0019] Preferably, determining the edge region formed by the edge to be smoothed and the outer rectangle includes:

[0020] Extend the edge to be smoothed until it intersects with the rectangular side of the outer rectangle, and take the closed area formed by the intersection of the edge to be smoothed and the rectangular side as the edge region.

[0021] Preferably, the step of performing anti-aliasing rendering on the edge region to obtain a smooth edge region includes:

[0022] The smooth edge region is obtained by using median filtering to draw the edge region.

[0023] Secondly, this application also discloses an image edge smoothing device, comprising:

[0024] The image acquisition module is used to acquire the image to be processed.

[0025] An information determination module is used to determine the edges to be smoothed and the outer rectangle of the image to be processed;

[0026] A region combination module is used to determine the edge region composed of the edge to be smoothed and the outer rectangle;

[0027] The edge smoothing module is used to perform anti-aliasing rendering on the edge region to obtain a smooth edge.

[0028] Thirdly, this application also discloses an image edge smoothing device, comprising:

[0029] Memory, used to store computer programs;

[0030] A processor for executing the computer program to implement any of the image edge smoothing methods described above.

[0031] Fourthly, this application also discloses an ultrasound system, comprising:

[0032] Image edge smoothing devices as described above;

[0033] An ultrasonic probe is used to acquire an image to be processed and send the image to the image edge smoothing device for processing.

[0034] An ultrasound image display device is used to display the image to be processed in real time.

[0035] Fifthly, this application also discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the image edge smoothing methods described above.

[0036] The image edge smoothing method provided in this application includes acquiring an image to be processed; determining the edge to be smoothed and the bounding rectangle of the image to be processed; determining the edge region composed of the edge to be smoothed and the bounding rectangle; and performing anti-aliasing rendering on the edge region to obtain a smooth edge.

[0037] As can be seen, the image edge smoothing method provided in this application first determines the edge to be smoothed and the outer rectangle of the image to be processed, and then finds the intersection of the two to obtain the edge region that is inside the outer rectangle and outside the image to be processed. Since the edge region is adjacent to the image to be processed, the edge to be smoothed is both the edge of the image to be processed and the edge of the edge region. Based on this, the smoothed edge corresponding to the edge to be smoothed can be obtained by performing anti-aliasing on the edge region. This is equivalent to simultaneously achieving edge smoothing processing of the edge to be smoothed in the image to be processed. Since the area of ​​the edge region is much smaller than the area of ​​the image to be processed, compared with the traditional method of scanning the image to be processed pixel by pixel, this method greatly reduces the amount of pixel calculation and effectively improves the efficiency of image edge smoothing processing.

[0038] The image edge smoothing device, equipment, ultrasound system, and computer-readable storage medium provided in this application all have the aforementioned beneficial effects, which will not be elaborated further here. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the prior art and the embodiments of this application, the accompanying drawings used in the description of the prior art and the embodiments of this application will be briefly introduced below. Of course, the accompanying drawings described below with respect to the embodiments of this application are only a part of the embodiments in this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort, and such other drawings also fall within the protection scope of this application.

[0040] Figure 1 A flowchart illustrating an image edge smoothing method provided in this application;

[0041] Figure 2 A rectangular ultrasound image provided in this application;

[0042] Figure 3 A fan-shaped ultrasound image provided in this application;

[0043] Figure 4 This application provides a fan-shaped ultrasound image to be processed;

[0044] Figure 5 A sector-shaped ultrasound image to be processed, marked with an outer rectangle, is provided for this application.

[0045] Figure 6 This application provides a fan-shaped ultrasound image of the edge region to be processed;

[0046] Figure 7 This application provides a fan-shaped ultrasound image with smoothed edges.

[0047] Figure 8 A schematic diagram of an image edge smoothing device provided in this application;

[0048] Figure 9 A schematic diagram of the structure of an image edge smoothing device provided in this application;

[0049] Figure 10 This is a schematic diagram of the structure of an ultrasound system provided in this application. Detailed Implementation

[0050] The core of this application is to provide an image edge smoothing method that can effectively improve the efficiency of image edge smoothing processing; another core aspect of this application is to provide an image edge smoothing device, apparatus, ultrasound system, and computer-readable storage medium, which also have the aforementioned beneficial effects.

[0051] To provide a clearer and more complete description of the technical solutions in the embodiments of this application, the technical solutions in the embodiments of this application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0052] Image edge smoothing in ultrasound can improve the overall image quality. Smoothing primarily targets jagged edges, specifically by applying smoothing algorithms to eliminate them. Once jagged edges are eliminated, the image edge quality is significantly improved. Related techniques include image closing operations, Gaussian smoothing, median filtering, and mean filtering for edge smoothing. However, these methods often involve scanning pixels one by one, resulting in computationally intensive and inefficient processes that increase with image size.

[0053] Therefore, in order to solve the above-mentioned technical problems, this application provides an image edge smoothing method. By first determining the edge to be smoothed and its outer rectangle of the image to be processed, and then performing anti-aliasing drawing on the edge region formed by the two, the edge smoothing processing of the edge to be smoothed is realized, that is, the edge smoothing processing of the image to be processed is realized, which effectively reduces the amount of pixel calculation and further improves the efficiency of image edge smoothing processing.

[0054] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating an image edge smoothing method provided in this application. The image edge smoothing method may include:

[0055] S101: Obtain the image to be processed;

[0056] This step aims to acquire the image to be processed, which is the image that requires edge smoothing. The image to be processed can be directly input by the user via a terminal device, or it can be directly input after being acquired by an image acquisition device (such as an ultrasound probe). The image to be processed can be of any type, such as an ultrasound image of any tissue. In other words, the source and type of the image to be processed do not affect the implementation of this technical solution, and this application does not limit it in this regard.

[0057] Understandably, when image edge smoothing methods are used to achieve edge smoothing of ultrasound images, since ultrasound probes are divided into linear array probes and convex array probes, the specific shape of the ultrasound image is generally rectangular or fan-shaped.

[0058] S102: Determine the edges to be smoothed and the bounding rectangle of the image to be processed;

[0059] This step aims to determine the edges to be smoothed and their bounding rectangles in the image to be processed. The edges to be smoothed are those edges in the image that need to be smoothed. These edges are generally straight edges because straight edges have relatively obvious jaggedness, while curved edges have less obvious jaggedness. Of course, the number of edges to be smoothed in the image to be processed is not unique; it can be one or more edges in the image to be processed, or it can be all the edges in the image to be processed. The specific number can be determined according to the actual needs. The bounding rectangle is the rectangle that circumscribes the image to be processed.

[0060] Based on this, please refer to Figure 2 , Figure 2 The rectangular ultrasound image provided in this application has obvious jagged edges on both sides, requiring edge smoothing. Taking the left edge as an example, if edge smoothing is performed directly at line A where the left edge is located, the jagged edges are relatively obvious, and it is easy for the smoothed edge to still have jagged edges, resulting in poor edge quality of the smoothed image. Therefore, to effectively ensure the image edge quality, this application provides the following preferred embodiments.

[0061] As a preferred embodiment, the above-mentioned determination of the edge to be smoothed in the image to be processed may include: determining the initial edge to be smoothed in the image to be processed; and translating the initial edge to be smoothed into the image to be processed according to a preset pixel threshold to obtain the edge to be smoothed.

[0062] For specific details, please refer to the following: Figure 2 The left edge in the image to be processed can be shifted inwards from line A (the initial edge to be smoothed) to the right, reaching line B, thus obtaining the shifted edge to be smoothed. Edge smoothing can then be performed at line B. Because the edge to be smoothed is shifted inwards before smoothing, the filling effect of traditional edge smoothing algorithms is effectively eliminated, resulting in a more complete and comprehensive edge smoothing process, effectively ensuring the quality of image edge smoothing. The right edge, of course, is smoothed by shifting it to the left.

[0063] The translation of the edge to be smoothed can be achieved according to a preset pixel threshold, that is, the distance between line A and line B is a preset number of pixels. It is understood that the specific value of the preset pixel threshold can be set by the technician according to the actual situation. This application does not limit it. Based on historical image data, its specific value is generally 3 to 8.

[0064] It is understandable that determining the edge to be smoothed and the bounding rectangle specifically refers to determining the positional information of the edge to be smoothed and the bounding rectangle. This can be determined based on the relevant attribute information of the image to be processed. For ultrasound images, this attribute information can include various parameters of the ultrasound probe and the imaging display interface. Of course, different images to be processed correspond to different attribute information. Furthermore, after the position is determined, subsequent image edge smoothing processing can be performed.

[0065] As mentioned above, the specific shape of an ultrasound image is generally rectangular or fan-shaped, and different images to be processed correspond to different attribute information. Therefore, for rectangular ultrasound images and fan-shaped ultrasound images, this application provides the following preferred embodiments to determine the position of the initial edge to be smoothed in ultrasound images of different shapes.

[0066] As a preferred embodiment, determining the initial edge to be smoothed in the image to be processed may include: when the image to be processed is a fan-shaped image, obtaining the center coordinates, central angle, and radius of the fan-shaped image; and determining the position of the initial edge to be smoothed based on the center coordinates, central angle, and radius.

[0067] As a preferred embodiment, determining the initial edge to be smoothed in the image to be processed may include: when the image to be processed is a rectangular image, obtaining the width, height, and center point coordinates of the rectangular image; and determining the position of the initial edge to be smoothed based on the width, height, and center point coordinates.

[0068] As can be seen, for a sector-shaped ultrasound image, its attribute information can include the coordinates of the center of the sector-shaped ultrasound image, the central angle, and the radius. Therefore, geometric relationships can be solved based on these attribute information to obtain the position information of the initial edge to be smoothed in the sector-shaped ultrasound image. For a rectangular ultrasound image, its attribute information can include the width, height, and center point coordinates of the rectangular ultrasound image. Therefore, geometric relationships can be solved based on these attribute information to obtain the position information of the initial edge to be smoothed in the rectangular ultrasound image.

[0069] S103: Determine the edge region consisting of the edge to be smoothed and the enclosing rectangle;

[0070] This step aims to determine the edge region, which is the area formed by the edge to be smoothed and the outer rectangle, located within the outer rectangle and adjacent to the image to be processed. For example, refer to... Figure 3 , Figure 3 The fan-shaped ultrasound image provided in this application has obvious jagged edges on both sides, requiring edge smoothing. The two black lines inside the image represent the straight lines of the edges to be smoothed after translation, and the outer rectangle is as follows: Figure 3 As shown, the regions C and D formed by the outer rectangle and the two edges to be smoothed are the edge regions.

[0071] It is understandable that, due to the irregularity of the image to be processed, the edge to be smoothed after translation may not intersect with the outer rectangle. In this case, it will be impossible to obtain a closed edge region, making it difficult to achieve edge smoothing. Therefore, in order to solve this problem, this application provides the following solution.

[0072] As a preferred embodiment, the above-mentioned determination of the edge region composed of the edge to be smoothed and the outer rectangle may include: extending the edge to be smoothed until it intersects with the rectangular side of the outer rectangle, and taking the closed region formed by the intersection of the edge to be smoothed and the rectangular side as the edge region.

[0073] Specifically, after completing the edge translation, it can be directly extended until it intersects with the outer rectangle, such as... Figure 3 The black line in the middle intersects with the outer rectangle. Thus, the smoothed edge can form a closed region with the outer rectangle, and this closed region is the edge region.

[0074] S104: Apply anti-aliasing to the edge region to obtain a smooth edge.

[0075] This step aims to achieve edge smoothing. Specifically, since the edge region is adjacent to the image to be processed, they share a common edge to be smoothed. Therefore, smoothing the edge region achieves the same effect as smoothing the image to be processed. This edge smoothing is achieved by applying anti-aliasing to the edge region. Thus, by applying anti-aliasing to the edge region, the edge smoothing is completed, effectively smoothing the entire image to be processed simultaneously, resulting in the final smoothed edge.

[0076] As a preferred embodiment, the above-mentioned anti-aliasing rendering of the edge region to obtain a smooth edge region may include: rendering the edge region using median filtering technology to obtain a smooth edge region.

[0077] This preferred embodiment provides a specific anti-aliasing rendering method, namely median filtering. Specifically, median filtering is a non-linear smoothing technique. Its basic principle is to replace the value of a point in a digital image or sequence with the median value of all points in its neighborhood, making the surrounding pixel values ​​closer to the true value, thereby eliminating isolated noise points. Therefore, median filtering can not only smooth image edges but also effectively remove noise. Furthermore, the algorithm for median filtering is relatively simple and easy to implement in hardware.

[0078] It is understood that the median filtering technique described above is only one implementation method provided by this preferred embodiment, and is not the only one. Other types of anti-aliasing techniques can also be used, such as image closing operation, Gaussian smoothing, mean filtering, etc. This application does not limit this.

[0079] As can be seen, the image edge smoothing method provided in this application first determines the edge to be smoothed and the outer rectangle of the image to be processed, and then finds the intersection of the two to obtain the edge region that is inside the outer rectangle and outside the image to be processed. Since the edge region is adjacent to the image to be processed, the edge to be smoothed is both the edge of the image to be processed and the edge of the edge region. Based on this, the smoothed edge corresponding to the edge to be smoothed can be obtained by performing anti-aliasing on the edge region. This is equivalent to simultaneously achieving edge smoothing processing of the edge to be smoothed in the image to be processed. Since the area of ​​the edge region is much smaller than the area of ​​the image to be processed, compared with the traditional method of scanning the image to be processed pixel by pixel, this method greatly reduces the amount of pixel calculation and effectively improves the efficiency of image edge smoothing processing.

[0080] The following specific embodiment, using a fan-shaped ultrasound image as an example, further illustrates the image edge smoothing method provided in this application.

[0081] Ultrasound images are generated by an ultrasound probe, which acquires echoes that are processed by a specific algorithm before being displayed on a host computer screen. The key algorithm is the Digital Scan Conversion (DSC) algorithm, a transformation from model coordinates to screen coordinates. The model coordinates represent a real-world model—the tissue image acquired by the probe through ultrasound echoes. This model can then be digitally modeled. Since ultrasound images are generally categorized into linear array models (rectangular images) and convex array models (sector-shaped images), the digital models used in the modeling process are either rectangular or sector-shaped. Furthermore, once the model is obtained, it can be solved geometrically to obtain the edge equations.

[0082] Please refer to Figure 4 , Figure 4 The present application provides a fan-shaped ultrasound image to be processed, in which the edges of the two straight lines of the fan-shaped ultrasound image are obviously jagged and need to be smoothed. The processing flow is as follows:

[0083] (1) Obtain the attribute information of the fan-shaped ultrasound image to be processed, which may include the coordinates of the center of the fan, the radius of the fan, the central angle of the fan, etc. Substitute the above information into the corresponding edge equation to solve, and you can obtain the two boundary regions (initial edges to be smoothed) of the fan-shaped ultrasound image to be processed.

[0084] (2) Based on the preset pixel threshold, shift the left boundary line to the right and the right boundary line to the left to obtain... Figure 4 Two black lines (edges to be smoothed) at the boundary of the fan-shaped ultrasound image to be processed;

[0085] (3) Determine the bounding rectangle of the sector ultrasound image to be processed, and... Figure 4 Extend the two black lines in the diagram until they intersect with the outer rectangle, as shown below. Figure 5 As shown, Figure 5 A sector-shaped ultrasound image to be processed, marked with an outer rectangle, is provided for this application.

[0086] (4) The area formed by the outer rectangle and the two black lines consists of two triangular areas (edge ​​areas), such as... Figure 6 The heavily shaded area shown is... Figure 6 This application provides a fan-shaped ultrasound image of the edge region to be processed;

[0087] (5) Anti-aliasing is applied to the two triangular regions to achieve edge smoothing, thereby obtaining a fan-shaped ultrasound image with smoothed edges, as shown below. Figure 7 As shown, Figure 7 This application provides a fan-shaped ultrasound image with smoothed edges.

[0088] This completes the image edge smoothing process, combined with... Figure 7 and Figure 4 It is obvious that... Figure 7 The fan-shaped ultrasound image shown is compared to Figure 4 The edge of the fan-shaped ultrasound image to be processed shown is effectively improved. Since the area of ​​the edge region is much smaller than the area of ​​the fan-shaped ultrasound image, edge smoothing of the fan-shaped ultrasound image is achieved by applying anti-aliasing to the edge region, which greatly reduces the amount of pixel calculation and further improves the efficiency of image edge smoothing.

[0089] As can be seen, the image edge smoothing method provided in this application first determines the edge to be smoothed and the outer rectangle of the image to be processed, and then finds the intersection of the two to obtain the edge region that is inside the outer rectangle and outside the image to be processed. Since the edge region is adjacent to the image to be processed, the edge to be smoothed is both the edge of the image to be processed and the edge of the edge region. Based on this, the smoothed edge corresponding to the edge to be smoothed can be obtained by performing anti-aliasing on the edge region. This is equivalent to simultaneously achieving edge smoothing processing of the edge to be smoothed in the image to be processed. Since the area of ​​the edge region is much smaller than the area of ​​the image to be processed, compared with the traditional method of scanning the image to be processed pixel by pixel, this method greatly reduces the amount of pixel calculation and effectively improves the efficiency of image edge smoothing processing.

[0090] To address the aforementioned technical problems, this application also provides an image edge smoothing device, please refer to... Figure 8 , Figure 8 This is a schematic diagram of an image edge smoothing device provided in this application. The image edge smoothing device may include:

[0091] Image acquisition module 1 is used to acquire the image to be processed;

[0092] Information determination module 2 is used to determine the edges to be smoothed and the outer rectangle of the image to be processed;

[0093] Region combination module 3 is used to determine the edge region composed of the edge to be smoothed and the enclosing rectangle;

[0094] Edge smoothing module 4 is used to perform anti-aliasing drawing on edge regions to obtain smooth edges.

[0095] As can be seen, the image edge smoothing device provided in this application first determines the edge to be smoothed and the outer rectangle of the image to be processed, and then finds the intersection of the two to obtain the edge region that is inside the outer rectangle and outside the image to be processed. Since the edge region is adjacent to the image to be processed, the edge to be smoothed is both the edge of the image to be processed and the edge of the edge region. Based on this, the smoothed edge corresponding to the edge to be smoothed can be obtained by performing anti-aliasing on the edge region. This is equivalent to simultaneously achieving the edge smoothing processing of the edge to be smoothed in the image to be processed. Since the area of ​​the edge region is much smaller than the area of ​​the image to be processed, compared with the traditional method of scanning the image to be processed pixel by pixel, this method greatly reduces the amount of pixel calculation and effectively improves the efficiency of image edge smoothing processing.

[0096] In a preferred embodiment, the information determination module 2 described above may include:

[0097] The initial edge to be smoothed determination unit is used to determine the initial edges to be smoothed in the image to be processed;

[0098] The edge to be smoothed determination unit is used to translate the initial edge to be smoothed into the interior of the image to be processed according to a preset pixel threshold to obtain the edge to be smoothed.

[0099] In a preferred embodiment, the image to be processed can be an ultrasound image. In this case, the initial edge to be smoothed determination unit can be specifically used to obtain the center coordinates, central angle and radius of the fan-shaped image when the image to be processed is a fan-shaped image; and determine the position of the initial edge to be smoothed based on the center coordinates, central angle and radius.

[0100] In a preferred embodiment, the image to be processed can be an ultrasound image. In this case, the initial edge to be smoothed determination unit can be specifically used to obtain the width, height, and center point coordinates of the rectangular image when the image to be processed is a rectangular image; and determine the position of the initial edge to be smoothed based on the width, height, and center point coordinates.

[0101] In a preferred embodiment, the aforementioned region combination module 3 can be specifically used to extend the edge to be smoothed until it intersects with the rectangular side of the outer rectangle, and to take the closed region formed by the intersection of the edge to be smoothed and the rectangular side as the edge region.

[0102] In a preferred embodiment, the edge smoothing module 4 described above may include:

[0103] The drawing unit is used to perform anti-aliasing drawing on the edge region to obtain a smooth edge region;

[0104] The determining unit is used to identify the already smoothed edges in the smoothed edge region that correspond to the edges to be smoothed as the smoothed edges of the image to be processed.

[0105] In a preferred embodiment, the above-mentioned drawing unit can be specifically used to draw edge regions using median filtering technology to obtain smooth edge regions.

[0106] For a description of the device provided in this application, please refer to the above method embodiments; further details will not be provided here.

[0107] To address the aforementioned technical problems, this application also provides an image edge smoothing device, please refer to... Figure 9 , Figure 9 This application provides a schematic diagram of the structure of an image edge smoothing device, which may include:

[0108] Memory 10 is used to store computer programs;

[0109] The processor 20 is configured to execute computer programs to implement steps of any of the image edge smoothing methods described above.

[0110] For a description of the equipment provided in this application, please refer to the above method embodiments; further details will not be provided here.

[0111] To address the aforementioned technical problems, this application also provides an ultrasonic system, please refer to... Figure 10 , Figure 10 This application provides a schematic diagram of the structure of an ultrasound system, which may include:

[0112] Image edge smoothing device 100 as described above;

[0113] An ultrasonic probe 200 is used to acquire an image to be processed and send the image to an image edge smoothing device 100 for processing.

[0114] Ultrasonic image display device 300 is used to display images to be processed in real time.

[0115] For a description of the system provided in this application, please refer to the above method embodiments; further details will not be provided here.

[0116] To address the aforementioned problems, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps of any of the image edge smoothing methods described above.

[0117] The computer-readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0118] For a description of the computer-readable storage medium provided in this application, please refer to the above method embodiments; further details will not be repeated here.

[0119] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0120] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0121] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0122] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the methods and core ideas of this application. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of this application.

Claims

1. An image edge smoothing method, characterized in that, include: Obtain the image to be processed; Determine the edges to be smoothed and the bounding rectangle of the image to be processed; Determine the edge region formed by the edge to be smoothed and the outer rectangle; The edge region is the area within the bounding rectangle and outside the image to be processed, and the edge region is adjacent to the image to be processed; the edge to be smoothed is simultaneously the edge of the image to be processed and the edge of the edge region. Anti-aliasing is applied to the edge region to obtain a smooth edge; The process of determining the edge to be smoothed in the image to be processed includes: determining the initial edge to be smoothed in the image to be processed; and shifting the initial edge to be smoothed into the image to be processed according to a preset pixel threshold to obtain the edge to be smoothed.

2. The image edge smoothing method according to claim 1, characterized in that, The image to be processed is an ultrasound image, and determining the initial edges to be smoothed in the image to be processed includes: When the image to be processed is a sector image, obtain the center coordinates, central angle, and radius of the sector image; The position of the initial edge to be smoothed is determined based on the center coordinates, central angle, and radius.

3. The image edge smoothing method according to claim 1, characterized in that, The image to be processed is an ultrasound image, and determining the initial edges to be smoothed in the image to be processed includes: When the image to be processed is a rectangular image, the width, height, and center point coordinates of the rectangular image are obtained; The position of the initial edge to be smoothed is determined based on the width, height, and center point coordinates.

4. The image edge smoothing method according to claim 1, characterized in that, Determining the edge region formed by the edge to be smoothed and the outer rectangle includes: Extend the edge to be smoothed until it intersects with the rectangular side of the outer rectangle, and take the closed area formed by the intersection of the edge to be smoothed and the rectangular side as the edge region.

5. The image edge smoothing method according to claim 1, characterized in that, The step of performing anti-aliasing rendering on the edge region to obtain a smooth edge region includes: The smooth edge region is obtained by using median filtering to draw the edge region.

6. An image edge smoothing device, characterized in that, include: The image acquisition module is used to acquire the image to be processed. An information determination module is used to determine the edges to be smoothed and the outer rectangle of the image to be processed; A region combination module is used to determine the edge region formed by the edge to be smoothed and the outer rectangle; the edge region is a region located within the outer rectangle and outside the image to be processed, and the edge region is adjacent to the image to be processed; the edge to be smoothed is simultaneously the edge of the image to be processed and the edge of the edge region. An edge smoothing module is used to perform anti-aliasing rendering on the edge region to obtain a smooth edge; Specifically, the information determination module is used to determine the initial edge to be smoothed in the image to be processed; and to translate the initial edge to be smoothed into the image to be processed according to a preset pixel threshold to obtain the edge to be smoothed.

7. An image edge smoothing device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the image edge smoothing method as described in any one of claims 1 to 5.

8. An ultrasonic system, characterized in that, include: The image edge smoothing device as described in claim 7; An ultrasonic probe is used to acquire an image to be processed and send the image to the image edge smoothing device for processing. An ultrasound image display device is used to display the image to be processed in real time.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the image edge smoothing method as described in any one of claims 1 to 5.