[go: up one dir, main page]

CN113112516A - Image edge feature library construction method and device, computer equipment and storage medium - Google Patents

Image edge feature library construction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113112516A
CN113112516A CN202110358150.XA CN202110358150A CN113112516A CN 113112516 A CN113112516 A CN 113112516A CN 202110358150 A CN202110358150 A CN 202110358150A CN 113112516 A CN113112516 A CN 113112516A
Authority
CN
China
Prior art keywords
image
edge
threshold
image set
scale
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110358150.XA
Other languages
Chinese (zh)
Inventor
张翔
刘吉刚
王升
王月
吴丰礼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Topstar Technology Co Ltd
Original Assignee
Guangdong Topstar Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Topstar Technology Co Ltd filed Critical Guangdong Topstar Technology Co Ltd
Priority to CN202110358150.XA priority Critical patent/CN113112516A/en
Priority to PCT/CN2021/097250 priority patent/WO2022205605A1/en
Publication of CN113112516A publication Critical patent/CN113112516A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种图像边缘特征库构建方法、装置、终端设备及存储介质。所述方法包括:将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,图像集包括多角度的图像和/或多尺度的图像;将基于图像集确定的图像边缘进行细边处理后根据细边处理后的图像集确定双阈值;所述双阈值包括第一阈值和第二阈值,所述第一阈值大于第二阈值;根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集;根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。该方法通过根据图像自适应计算双阈值能够有效解决图像边缘轮廓提取自适应弱的问题。

Figure 202110358150

The invention discloses an image edge feature library construction method, device, terminal equipment and storage medium. The method includes: transforming at least one edge image to be extracted by scale and/or angle to obtain an image set, where the image set includes multi-angle images and/or multi-scale images; After processing, a double threshold is determined according to the image set after thin edge processing; the double threshold includes a first threshold and a second threshold, and the first threshold is greater than the second threshold; according to the double threshold, each of the image sets is divided into The pixel points of the image are divided into the strong edge of the image, the weak edge of the image and the non-edge of the image, and the image set after edge extraction is obtained; according to the scale level of the image in the image set after the edge extraction, the image edge feature library is constructed to use for image edge extraction. This method can effectively solve the problem of weak self-adaptation in image edge contour extraction by adaptively calculating double thresholds according to the image.

Figure 202110358150

Description

图像边缘特征库构建方法、装置、计算机设备及存储介质Image edge feature library construction method, device, computer equipment and storage medium

技术领域technical field

本发明实施例涉及图像处理技术领域,尤其涉及一种图像边缘特征库构建方法、装置、计算机设备及存储介质。Embodiments of the present invention relate to the technical field of image processing, and in particular, to a method, apparatus, computer device, and storage medium for constructing an image edge feature library.

背景技术Background technique

随着数字处理技术的发展,图像已经逐渐成为获取信息的重要工具。图像的边缘包含图像中的高频信息,如自动驾驶车辆的道路识别、人脸检测等都依赖于图像的边缘检测与提取。图像边缘检测是图像配准、目标跟踪领域的基础,是影响整个系统性能的一个重要因素。With the development of digital processing technology, images have gradually become an important tool for obtaining information. The edge of the image contains high-frequency information in the image, such as road recognition of autonomous vehicles, face detection, etc., all rely on the edge detection and extraction of images. Image edge detection is the basis of image registration and target tracking, and is an important factor affecting the performance of the entire system.

现有技术中,提取图像边缘的方法是利用量子基本逻辑门建立9个量子图像集,通过量子黑箱计算图像梯度值,采用人为设置阈值的方式对梯度进行分类,进而提取到量子图像的边缘。该方法由于人为设置的梯度分类阈值存在很强的随机性,在边缘提取过程中引入人为因素的影响,自适应能力较弱。In the prior art, the method of extracting image edges is to use quantum basic logic gates to establish 9 quantum image sets, calculate image gradient values through a quantum black box, classify the gradients by artificially setting thresholds, and then extract the edges of the quantum images. Due to the strong randomness of the artificially set gradient classification threshold, this method introduces the influence of artificial factors in the process of edge extraction, and the adaptive ability is weak.

因此,图像边缘轮廓提取自适应弱的技术问题是当前亟待解决的。Therefore, the technical problem of weak self-adaptation in image edge contour extraction is an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种图像边缘特征库构建方法、装置、计算机设备及存储介质,该方案通过根据图像自适应计算双阈值能够有效解决图像边缘轮廓提取自适应弱的问题。The embodiments of the present invention provide a method, device, computer equipment and storage medium for constructing an image edge feature library. The solution can effectively solve the problem of weak self-adaptation in image edge contour extraction by adaptively calculating double thresholds according to the image.

第一方面,本发明实施例提供了一种图像边缘特征库构建方法,包括:In a first aspect, an embodiment of the present invention provides a method for constructing an image edge feature library, including:

将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像;Perform scale and/or angle transformation on at least one edge image to be extracted to obtain an image set, where the image set includes multi-angle images and/or multi-scale images;

将基于所述图像集确定的图像边缘进行细边处理后根据细边处理后的图像集确定双阈值;其中,所述双阈值包括第一阈值和第二阈值,所述第一阈值大于第二阈值;After performing thin edge processing on the image edge determined based on the image set, a double threshold value is determined according to the image set after the thin edge processing; wherein, the double threshold value includes a first threshold value and a second threshold value, and the first threshold value is greater than the second threshold value threshold;

根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集;Divide the pixel points of each image in the image set into strong edges of the image, weak edges of the image and non-edges of the image according to the double thresholds to obtain an image set after edge extraction;

根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。An image edge feature library is constructed according to the scale level of the images in the image set after edge extraction, so as to be used for image edge extraction.

第二方面,本发明实施例还提供了一种图像边缘特征库构建装置,包括:In a second aspect, the embodiment of the present invention also provides an image edge feature library construction device, including:

图像变换模块,用于将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像;An image transformation module, configured to perform scale and/or angle transformation on at least one edge image to be extracted to obtain an image set, where the image set includes multi-angle images and/or multi-scale images;

确定模块,用于将基于所述图像集确定的图像边缘进行细边处理后根据细边处理后的图像集确定双阈值;其中,所述双阈值包括第一阈值和第二阈值,所述第一阈值大于第二阈值;A determination module, configured to perform thin edge processing on the image edge determined based on the image set and determine a double threshold value according to the image set after the thin edge processing; wherein, the double threshold value includes a first threshold value and a second threshold value, the first threshold value a threshold is greater than the second threshold;

划分模块,用于根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集;a dividing module, configured to divide the pixels of each image in the image set into strong edges of the image, weak edges of the image and non-edges of the image according to the double thresholds, to obtain an image set after edge extraction;

构建模块,用于根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。The building module is configured to build an image edge feature library according to the scale level of the image in the image set after edge extraction, so as to be used for image edge extraction.

第三方面,本发明实施例还提供了一种计算机设备,包括:In a third aspect, an embodiment of the present invention also provides a computer device, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序;a storage device for storing one or more programs;

所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任意实施例中所述的图像边缘特征库构建方法。The one or more programs are executed by the one or more processors, so that the one or more processors implement the image edge feature library construction method described in any embodiment of the present invention.

第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明任意实施例所提供的图像边缘特征库构建方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the image edge feature library construction method provided by any embodiment of the present invention.

本发明实施例提供了一种图像边缘特征库构建方法、装置、计算机设备及存储介质,首先将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像;然后将基于所述图像集确定的图像边缘进行细边处理后根据细边处理后的图像集确定双阈值;之后根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集;最后根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。上述技术方案通过根据图像自适应计算双阈值能够有效解决图像边缘轮廓提取自适应弱的问题。Embodiments of the present invention provide a method, device, computer equipment and storage medium for constructing an image edge feature library. First, at least one edge image to be extracted is scaled and/or angularly transformed to obtain an image set, where the image set includes multiple angles The image and/or multi-scale image; then the edge of the image determined based on the image set is subjected to thin edge processing and then a double threshold is determined according to the image set after the thin edge processing; then according to the double threshold value The pixels of each image are divided into the strong edge of the image, the weak edge of the image and the non-edge of the image, and the image set after edge extraction is obtained; finally, the image edge feature library is constructed according to the scale level of the image in the image set after edge extraction. , for image edge extraction. The above technical solution can effectively solve the problem of weak self-adaptation in image edge contour extraction by adaptively calculating dual thresholds according to the image.

附图说明Description of drawings

图1为本发明实施例一提供的一种图像边缘特征库构建方法的流程示意图;1 is a schematic flowchart of a method for constructing an image edge feature library according to Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种图像边缘特征库构建方法的流程示意图;2 is a schematic flowchart of a method for constructing an image edge feature library according to Embodiment 2 of the present invention;

图3为本发明实施例二所提高的一种图像边缘特征库构建方法中的多角度的图像;3 is a multi-angle image in a method for constructing an image edge feature library improved by Embodiment 2 of the present invention;

图4为本发明实施例二所提供的一种图像边缘特征库构建方法中的图像集示意图;4 is a schematic diagram of an image set in a method for constructing an image edge feature library according to Embodiment 2 of the present invention;

图5为本发明实施例二所提供的一种图像边缘特征库构建方法中的方向差分图像示意图;5 is a schematic diagram of a directional difference image in a method for constructing an image edge feature library according to Embodiment 2 of the present invention;

图6为本发明实施例二所提供的一种图像边缘特征库构建方法中的梯度方向划分示意图;6 is a schematic diagram of gradient direction division in a method for constructing an image edge feature library according to Embodiment 2 of the present invention;

图7为本发明实施例二所提供的一种图像边缘特征库构建方法中的细边处理后的图像的示意图;7 is a schematic diagram of an image after thin edge processing in a method for constructing an image edge feature library according to Embodiment 2 of the present invention;

图8为本发明实施例二提供的一种图像边缘特征库构建方法中的边缘提取后的图像示意图;8 is a schematic diagram of an image after edge extraction in a method for constructing an image edge feature library according to Embodiment 2 of the present invention;

图9为本发明实施例二所提供的一种图像边缘特征库构建方法中的边缘提取后的图像集的示意图;9 is a schematic diagram of an image set after edge extraction in a method for constructing an image edge feature library according to Embodiment 2 of the present invention;

图10为本发明实施例二提供的一种图像边缘特征库构建方法的总体流程图;10 is an overall flowchart of a method for constructing an image edge feature library according to Embodiment 2 of the present invention;

图11为本发明实施例三提供的一种图像边缘特征库构建装置的结构示意图;11 is a schematic structural diagram of an apparatus for constructing an image edge feature library according to Embodiment 3 of the present invention;

图12为本发明实施例四提供的一种计算机设备的结构示意图。FIG. 12 is a schematic structural diagram of a computer device according to Embodiment 4 of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。此外,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts various operations (or steps) as a sequential process, many of the operations may be performed in parallel, concurrently, or concurrently. Additionally, the order of operations can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like. Furthermore, the embodiments of the invention and the features of the embodiments may be combined with each other without conflict.

本发明使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”。The term "including" and its variants used in the present invention are open to include, ie, "including but not limited to". The term "based on" is "based at least in part on." The term "one embodiment" means "at least one embodiment."

实施例一Example 1

图1为本发明实施例一提供的一种图像边缘特征库构建方法的流程示意图,该方法可适用于提取图像的边缘轮廓构建大规模边缘特征库的情况,该方法可以由图像边缘特征库构建装置来执行,其中该装置可由软件和/或硬件实现,并一般集成在计算机设备上。FIG. 1 is a schematic flowchart of a method for constructing an image edge feature library according to Embodiment 1 of the present invention. The method can be applied to a situation in which a large-scale edge feature library is constructed by extracting edge contours of an image. The method can be constructed from an image edge feature library. means, wherein the means may be implemented in software and/or hardware, and are typically integrated on computer equipment.

如图1所示,本发明实施例一提供的一种图像边缘特征库构建方法,包括如下步骤:As shown in FIG. 1 , a method for constructing an image edge feature library provided in Embodiment 1 of the present invention includes the following steps:

S110、将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像。S110. Perform scale and/or angle transformation on at least one edge image to be extracted to obtain an image set, where the image set includes multi-angle images and/or multi-scale images.

其中,待提取边缘图像可以为单通道图像即灰度图,若获取的图像为彩色图像可以将该彩色图像转换为灰度图像,此处不做具体限制。The edge image to be extracted may be a single-channel image, that is, a grayscale image. If the acquired image is a color image, the color image may be converted into a grayscale image, which is not specifically limited here.

其中,图像集可以为变换后的图像构成的图像集合,图像集可以包括多角度的图像、多尺度的图像以及多角度多尺度的图像。多角度的图像为待提取边缘图像经过不同角度变换后得到的多张具有不同角度的图像;多尺度的图像为待提取边缘图像经过不同尺度变换后得到的多张具有不同尺度的图像;多角度多尺度的图像为由待提取边缘图像经过尺度变换得到多尺度的图像后,将多尺度的图像再进行多角度变换得到的多张具有不同尺度和不同角度的图像。The image set may be an image set composed of transformed images, and the image set may include multi-angle images, multi-scale images, and multi-angle and multi-scale images. The multi-angle images are multiple images with different angles obtained by transforming the edge images to be extracted at different angles; the multi-scale images are multiple images with different scales obtained after the edge images to be extracted are transformed by different scales; A multi-scale image is a multi-scale image with different scales and angles obtained by performing multi-angle transformation on the multi-scale image after the edge image to be extracted is scale-transformed to obtain a multi-scale image.

在本实施例中,不限定进行尺度和/或角度变换的具体技术手段,只要能够得到图像集即可。In this embodiment, the specific technical means for performing scale and/or angle transformation is not limited, as long as an image set can be obtained.

在一个实施例中,对待提取边缘图像进行尺度变换的方式可以为在预设尺度范围内选取不同的尺度缩放因子对待提取边缘图像进行缩放得到具有不同尺度的图像。In one embodiment, the scale transformation of the edge image to be extracted may be to select different scale scaling factors within a preset scale range to scale the edge image to be extracted to obtain images with different scales.

在一个实施例中,对待提取边缘图像进行角度变换的方式可以为:在待提取边缘图像内选取待旋转区域,通过构建空间坐标系将待旋转区域绕空间坐标系的Z轴进行旋转,根据旋转的角度不同可以得到多张具有不同角度的图像。In one embodiment, the method of performing angle transformation on the edge image to be extracted may be as follows: selecting the area to be rotated in the edge image to be extracted, and rotating the area to be rotated around the Z axis of the space coordinate system by constructing a space coordinate system, and according to the rotation Different angles can get multiple images with different angles.

在一个实施例中,对待提取边缘图像进行尺度和角度变换的方式可以为:将待提取边缘图像首先进行尺度变换得到多尺度的图像,再将多尺度的图像进行角度变换可以得到多张具有不同角度和不同尺度的图像。In one embodiment, the method of performing scale and angle transformation on the edge image to be extracted may be as follows: first perform scale transformation on the edge image to be extracted to obtain a multi-scale image, and then perform angle transformation on the multi-scale image to obtain multiple images with different Angles and images at different scales.

本步骤得到的图像集是具有多尺度的图像、多角度的图像以及多尺度多角度的图像,可以用于构建图像边缘特征库。The image set obtained in this step is a multi-scale image, a multi-angle image, and a multi-scale and multi-angle image, which can be used to construct an image edge feature library.

S120、将基于所述图像集确定的图像边缘进行细边处理后,根据细边处理后的图像集确定双阈值。S120. After performing thin edge processing on the image edge determined based on the image set, determine a double threshold value according to the image set after the thin edge processing.

其中,图像边缘可以为图像集中包括的每张图像轮廓像素点构成的边缘;双阈值可以包括第一阈值和第二阈值,并且第一阈值大于第二阈值,第一阈值可以为双阈值中的高阈值,第二阈值可以为双阈值中的低阈值。第一阈值和第二阈值可以根据图像的信息自适应计算得到。Wherein, the image edge may be the edge formed by the outline pixels of each image included in the image set; the double threshold may include a first threshold and a second threshold, and the first threshold is greater than the second threshold, and the first threshold may be one of the double thresholds The high threshold, the second threshold may be the low threshold of the dual thresholds. The first threshold and the second threshold can be adaptively calculated according to the information of the image.

在本实施例中,针对图像集中的图像的边缘存在过于粗大而导致无法直接利用边缘信息对图像边缘进行提取的情况时,需要对梯度幅值不够大的像素点进行抑制,只需保留最大的梯度从而达到对边缘进行细边的目的。In this embodiment, when the edge of the image in the image set is too thick, so that the edge information cannot be directly used to extract the image edge, it is necessary to suppress the pixels whose gradient amplitude is not large enough, and only need to keep the largest pixel. Gradient in order to achieve the purpose of thinning the edge.

基于图像集确定图像边缘的方式可以包括对图像集中的图像进行边缘检测得到图像边缘,需要说明的是,在进行边缘检测之前需要对图像集中的图像进行降噪,在本实施例中可以采用快速中值滤波的方法对图像集进行一定程度的降噪处理。其中,中值滤波是一种非线性数字滤波器技术,经常用于去除图像或者其它信号中的噪声,对于斑点噪声和椒盐噪声具有良好的过滤作用。The method of determining the image edge based on the image set may include performing edge detection on the images in the image set to obtain the image edge. It should be noted that the images in the image set need to be denoised before edge detection. The median filter method performs a certain degree of noise reduction on the image set. Among them, median filtering is a nonlinear digital filter technology, which is often used to remove noise in images or other signals, and has a good filtering effect on speckle noise and salt and pepper noise.

下面对中值滤波的过程进行详细说明,示例性的,中值滤波用一个预定义的像素邻域中的灰度中值来代替像素的值,即:The process of median filtering is described in detail below. Exemplarily, median filtering replaces the value of a pixel with a grayscale median value in a predefined pixel neighborhood, that is:

Figure BDA0003004374970000071
Figure BDA0003004374970000071

其中,

Figure BDA0003004374970000072
表示(x,y)点的像素值,Sxy代表中心为(x,y)的8领域。in,
Figure BDA0003004374970000072
Represents the pixel value of the (x,y) point, and S xy represents the 8-area centered at (x,y).

在本实施例中,经过细边处理后的图像会存在杂点即噪声点,该杂点是图像边缘提取不需要的部分,因此需要对其进行滤除。针对上述情况本实施例使用双阈值获取图像的强边缘、图像的弱边缘以及图像的非边缘,可以有效去除杂点的影响。需要说明的是,本实施例中的双阈值是根据图像信息自适应计算出的,通过该双阈值确定的强边缘具有较高的准确性。In this embodiment, the image after the thin edge processing will have noise points, that is, noise points, and the noise points are parts that are not required for edge extraction of the image, and therefore need to be filtered out. In view of the above situation, this embodiment uses double thresholds to acquire the strong edge of the image, the weak edge of the image, and the non-edge of the image, which can effectively remove the influence of noise. It should be noted that the double thresholds in this embodiment are adaptively calculated according to the image information, and the strong edges determined by the double thresholds have high accuracy.

在本实施例中,细边处理可以为非极大值抑制处理,细边处理后的图像集可以为经过非极大值抑制处理后的梯度幅值图像集。In this embodiment, the thin edge processing may be non-maximum value suppression processing, and the image set after thin edge processing may be a gradient magnitude image set after non-maximum value suppression processing.

需要进一步说明的是,根据细边处理后的图像集确定双阈值的方式可以包括:将细边处理后的图像集中的图像进行分级,将分级后的像素值根据待求第一阈值和待求第二阈值划分为三类,通过构造类内方差组计算求解后的第一阈值和第二阈值。It should be further explained that the method of determining the double thresholds according to the image set after the thin edge processing may include: grading the images in the image set after the thin edge processing, and classifying the pixel values after the classification according to the first threshold value to be obtained and the The second threshold is divided into three categories, and the solved first and second thresholds are calculated by constructing an intra-class variance group.

S130、根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集。S130. Divide the pixel points of each image in the image set into strong edges of the image, weak edges of the image, and non-edges of the image according to the double thresholds to obtain an image set after edge extraction.

其中,强边缘可以理解为由图像中的强像素点构成的边缘,还可以理解为图像中较为清晰的边缘;弱边缘可以理解为由图像中的弱像素点构成的边缘,还可以理解为图像中较为模糊的边缘。非边缘点可以理解为图像中不构成图像轮廓的像素点Among them, the strong edge can be understood as the edge composed of strong pixels in the image, and it can also be understood as the clearer edge in the image; the weak edge can be understood as the edge composed of weak pixels in the image, and it can also be understood as the image. Blurred edges. Non-edge points can be understood as pixels in the image that do not constitute the outline of the image

需要说明的是,可以将图像中像素值大于第一阈值的像素点作为强像素点,将图像中像素值大于第二阈值小于第一阈值的点作为弱像素点,将图像中像素值小于第二阈值的点作为非边缘。It should be noted that the pixels with pixel values greater than the first threshold in the image can be regarded as strong pixels, the pixels with pixel values greater than the second threshold and less than the first threshold in the image can be regarded as weak pixels, and the pixel values in the image less than the first threshold can be regarded as weak pixels. Two-threshold points are considered non-edges.

在本实施例中,得到图像的强边缘、图像的弱边缘以及图像的非边缘后即可得到边缘轮廓点集,根据该边缘轮廓点集可以对图像集中的图像进行边缘提取得到边缘提取后的图像集。In this embodiment, the edge contour point set can be obtained after the strong edge of the image, the weak edge of the image and the non-edge of the image are obtained. image set.

S140、根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。在本实施例中,得到边缘提取后的图像集之后,还需要根据该图像集中的每个图像的尺度层级构建图像边缘特征库,其中,构建特征库的方法在本实施例中不做具体限制。S140. Build an image edge feature library according to the scale level of the images in the image set after edge extraction, so as to be used for image edge extraction. In this embodiment, after obtaining the image set after edge extraction, an image edge feature library needs to be constructed according to the scale level of each image in the image set. The method for constructing the feature library is not specifically limited in this embodiment. .

在一个实施例中,根据图像边缘特征库可以进行图像边缘提取,当需要对一个图像的边缘轮廓进行提取时,可以根据该图像构建边缘特征库,然后可以将该图像与图像边缘特征库中的边缘提取后的图像集进行比对匹配,进而可以输出该图像的边缘提取后的图像。In one embodiment, image edge extraction can be performed according to an image edge feature library. When the edge contour of an image needs to be extracted, an edge feature library can be constructed according to the image, and then the image can be compared with the image edge feature library in the image edge feature library. The edge-extracted image set is compared and matched, and then the edge-extracted image of the image can be output.

本发明实施例一提供的一种图像边缘特征库构建方法,首先将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像;其次将基于所述图像集确定的图像边缘进行细边处理后,根据细边处理后的图像集确定双阈值;然后根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集;最终根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。上述方法无需认为设置双阈值,可以自适应根据图像计算阈值,能够解决因认为经验设置因素导致的边缘点冗余或过少的问题,提高边缘提取效率。In a method for constructing an image edge feature library provided by the first embodiment of the present invention, at least one edge image to be extracted is firstly scaled and/or angularly transformed to obtain an image set, where the image set includes multi-angle images and/or multi-scale images secondly, after thin edge processing is performed on the edge of the image determined based on the image set, a double threshold is determined according to the image set after thin edge processing; then the pixel points of each image in the image set are divided according to the double threshold It is divided into strong edges of the image, weak edges of the image and non-edges of the image to obtain an image set after edge extraction; finally, an image edge feature library is constructed according to the scale level of the image in the image set after the edge extraction, so as to be used for image processing. edge extraction. The above method does not need to set double thresholds, and can adaptively calculate the thresholds according to the image, which can solve the problem of redundant or too few edge points caused by factors that are considered to be empirically set, and improve the efficiency of edge extraction.

实施例二Embodiment 2

图2为本发明实施例二提供的一种图像边缘特征库构建方法的流程示意图,本实施例二在上述各实施例的基础上进行优化。在本实施例中,将所述将基于所述图像集确定的图像边缘进行细边处理后,根据细边处理后的图像集确定双阈值进行进一步优化;进一步的,本实施例还将根据双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集进行进一步优化。本实施例尚未详尽的内容请参考实施例一。FIG. 2 is a schematic flowchart of a method for constructing an image edge feature library according to Embodiment 2 of the present invention. This Embodiment 2 is optimized on the basis of the foregoing embodiments. In this embodiment, after performing thin edge processing on the image edge determined based on the image set, double thresholds are determined according to the image set after thin edge processing for further optimization; The threshold divides the pixel points of each image in the image set into strong edges of the image, weak edges of the image and non-edges of the image, to obtain an image set after edge extraction for further optimization. Please refer to the first embodiment for the content that is not yet detailed in this embodiment.

如图2所示,本发明实施例二提供的一种图像边缘特征库构建方法,包括如下步骤:As shown in FIG. 2 , a method for constructing an image edge feature library provided in Embodiment 2 of the present invention includes the following steps:

S210、将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像。S210. Perform scale and/or angle transformation on at least one edge image to be extracted to obtain an image set, where the image set includes multi-angle images and/or multi-scale images.

在本步骤中,得到图像集可以包括:将至少一张待提取边缘图像进行尺度变换得到图像集,将至少一张待提取边缘图像进行角度变换得到图像集,将至少一张待提取边缘图像尺度角度变换得到图像集。In this step, obtaining an image set may include: performing scale transformation on at least one edge image to be extracted to obtain an image set, performing angle transformation on at least one edge image to be extracted to obtain an image set, and scaling at least one edge image to be extracted The angle transformation results in an image set.

进一步的,将至少一张待提取边缘图像进行尺度变换得到图像集,包括:Further, perform scale transformation on at least one edge image to be extracted to obtain an image set, including:

步骤1、根据预设图像尺度范围以及尺度步长,确定多个不同的尺度缩放因子。Step 1. Determine a plurality of different scale scaling factors according to the preset image scale range and scale step size.

其中,根据预设图像尺度范围和尺度步长可以计算图像在X和Y方向的尺度缩放因子,缩放因子可以决定图像在X和Y方向的缩放比例。The scaling factor of the image in the X and Y directions can be calculated according to the preset image scale range and scale step, and the scaling factor can determine the scaling ratio of the image in the X and Y directions.

示例性的,根据预设图像尺度范围[scalemin,scalemax]和尺度变换步长scalestep可以根据如下公式计算待提取边缘图像在X和Y方向的尺度缩放因子:Exemplarily, according to the preset image scale range [scale min , scale max ] and the scale transformation step scalestep, the scale scaling factor of the edge image to be extracted in the X and Y directions can be calculated according to the following formula:

Figure BDA0003004374970000101
Figure BDA0003004374970000101

其中,scalefactor_x、scalefactor_y分别表示图像在X和Y方向的尺度缩放因子。示例性的,预设尺度范围可以为[0.5,1.5],尺度步长可以为0.1。Among them, scale factor_x and scale factor_y represent the scale factor of the image in the X and Y directions, respectively. Exemplarily, the preset scale range may be [0.5, 1.5], and the scale step may be 0.1.

步骤2、根据所述尺度缩放因子对至少一张待提取边缘图像进行尺度缩放,得到图像集。Step 2: Scale at least one edge image to be extracted according to the scale scaling factor to obtain an image set.

在本步骤中,在预设图像尺度范围内可以根据尺度步长选取不同的尺度缩放因子对待提取边缘图像进行不同尺度的缩放以便得到多张具有不同尺度的多尺度的图像。In this step, within the preset image scale range, different scale scaling factors can be selected according to the scale step to perform different scale scaling on the edge image to be extracted, so as to obtain multiple multi-scale images with different scales.

进一步的,将至少一张待提取边缘图像进行角度变换或尺度角度变换得到图像集,包括:根据待变换图像,建立空间坐标系;根据预设旋转角度将所述待变换图像中的待旋转区域绕所述空间坐标系的Z轴进行旋转得到图像集。Further, performing angle transformation or scale angle transformation on at least one edge image to be extracted to obtain an image set, including: establishing a spatial coordinate system according to the to-be-transformed image; The image set is obtained by rotating around the Z axis of the space coordinate system.

其中,待变换图像可以包括至少一张待提取边缘图像或多尺度图像。The image to be transformed may include at least one edge image to be extracted or a multi-scale image.

在本步骤中,当待变换图像包括至少一张待提取边缘图像时,根据待提取边缘图像的中心点为原点建立空间坐标系,根据预设旋转角度将待提取图像中的待旋转区域绕所述空间坐标系的Z轴进行旋转得到多角度的图像。In this step, when the image to be transformed includes at least one edge image to be extracted, a spatial coordinate system is established according to the center point of the edge image to be extracted as the origin, and the area to be rotated in the image to be extracted is rotated around the The Z-axis of the space coordinate system is rotated to obtain a multi-angle image.

在本步骤中,当待变换图像包括至少一张多尺度的图像时,根据尺度图像的中心点为原点建立空间坐标系,根据预设旋转角度将尺度图像中的待旋转区域绕所述空间坐标系的Z轴进行旋转得到多角度的图像。In this step, when the image to be transformed includes at least one multi-scale image, a spatial coordinate system is established according to the center point of the scale image as the origin, and the area to be rotated in the scale image is rotated around the spatial coordinates according to a preset rotation angle. The Z axis of the system is rotated to obtain multi-angle images.

进一步的,根据预设旋转角度将所述待变换图像中的待旋转区域绕所述空间坐标系的Z轴进行旋转得到图像集,包括:基于预设旋转角度确定旋转矩阵;根据所述旋转矩阵和所述待变换图像的旋转中心坐标确定变换矩阵;根据所述旋转中心坐标确定所述待变换图像的最小内接圆半径;基于所述最小内接圆半径确定待旋转区域;将所述待变换图像中所述待旋转区域以外的区域内的像素点坐标作为静止坐标;根据所述变换矩阵以及在所述待旋转区域内的像素点坐标确定角度变换后的像素坐标;根据所述静止坐标以及角度变换后的像素坐标得到图像集。Further, rotating the area to be rotated in the to-be-transformed image around the Z-axis of the spatial coordinate system according to a preset rotation angle to obtain an image set, including: determining a rotation matrix based on a preset rotation angle; and the rotation center coordinates of the image to be transformed to determine a transformation matrix; determine the minimum inscribed circle radius of the to-be-transformed image according to the rotation center coordinates; determine the to-be-rotated area based on the minimum inscribed circle radius; The pixel coordinates in the area other than the to-be-rotated area in the transformed image are taken as static coordinates; the angle-transformed pixel coordinates are determined according to the transformation matrix and the pixel coordinates in the to-be-rotated area; according to the static coordinates And the pixel coordinates after angle transformation to get the image set.

其中,预设旋转角度angleStart可以为预先设置的待变换图像绕空间坐标系Z轴的旋转角度,旋转矩阵可以为仿射变换的旋转矩阵,计算旋转矩阵的公式为:The preset rotation angle angleStart may be the preset rotation angle of the image to be transformed around the Z-axis of the space coordinate system, the rotation matrix may be the rotation matrix of affine transformation, and the formula for calculating the rotation matrix is:

Figure BDA0003004374970000111
Figure BDA0003004374970000111

其中,θ表示预设旋转角度,Zrot(θ)表示待变换图像旋转θ角度对应的旋转矩阵。Among them, θ represents the preset rotation angle, and Z rot(θ) represents the rotation matrix corresponding to the rotation angle θ of the image to be transformed.

在本实施例中,旋转中心坐标可以理解为待变换图像的坐标中心,可以取待变换图像的行像素值的一半和列像素值的一半作为旋转中心坐标。示例性的,行像素值为cols,列像素值为rows,则旋转中心坐标可以为(cols/2,rows/2)。In this embodiment, the rotation center coordinate can be understood as the coordinate center of the image to be transformed, and half of the row pixel value and half of the column pixel value of the to-be-transformed image can be taken as the rotation center coordinate. Exemplarily, if the row pixel value is cols and the column pixel value is rows, then the coordinates of the rotation center may be (cols/2,rows/2).

其中,变换矩阵可以为包含待变换图像旋转平移信息的放射变换矩阵,其表达式如下:Among them, the transformation matrix can be a radiation transformation matrix containing the rotation and translation information of the image to be transformed, and its expression is as follows:

Figure BDA0003004374970000121
Figure BDA0003004374970000121

需要说明的是,θi的每次取值都是相同的,即待变换图像每次旋转的角度步长angleStep都是相同的。It should be noted that each value of θ i is the same, that is, the angle step angleStep of each rotation of the image to be transformed is the same.

由于旋转后,图像存在边缘填充的问题,因此,根据待变换图像最小内接圆进行旋转可以保证旋转后的图像边缘依然有效。Since the image has the problem of edge filling after rotation, rotating according to the minimum inscribed circle of the image to be transformed can ensure that the edge of the rotated image is still valid.

其中,最小内接圆半径可以为中心坐标的横纵坐标中的最小值,示例性的,旋转中心坐标为(cols/2,rows/2),则最小内接圆半径为r=Min(cols/2,rows/2)。Wherein, the minimum inscribed circle radius may be the minimum value of the abscissa and ordinate coordinates of the center coordinates. Exemplarily, the rotation center coordinates are (cols/2,rows/2), then the minimum inscribed circle radius is r=Min(cols /2,rows/2).

其中,待旋转区域可以为一个圆形区域,该圆形的半径为最小内接圆半径。The area to be rotated may be a circular area, and the radius of the circle is the radius of the minimum inscribed circle.

在本实施例中,确定角度变换后的像素坐标的方式包括:遍历待变换图像的像素行,根据待变换图像的在待旋转区域内的像素坐标以及变换矩阵可以得到角度变换后的像素坐标。In this embodiment, the method of determining the pixel coordinates after angle transformation includes: traversing the pixel rows of the image to be transformed, and obtaining the pixel coordinates after angle transformation according to the pixel coordinates of the image to be transformed in the area to be rotated and the transformation matrix.

示例性的,计算角度变换后的像素坐标的公式为:Exemplarily, the formula for calculating the pixel coordinates after angle transformation is:

Figure BDA0003004374970000122
Figure BDA0003004374970000122

其中,ui表示待变换图像第i次旋转后得到的变换后的像素坐标的横坐标,vi表示待变换图像第i次旋转后得到的变换后的像素坐标的纵坐标,xi表示待变换图像在待旋转区域内的像素坐标的横坐标,yi表示待变换图像在待旋转区域内的像素坐标的纵坐标。根据上述公式可以计算得到在待旋转区域内待变换图像放射变换后的像素坐标,从而可以实现待变换图像的旋转。图3为本发明实施例二所提高的一种图像边缘特征库构建方法中的多角度的图像,如图3所示,一张待变换图像在待旋转区域内旋转后可以得到一张多角度的图像。Among them, ui represents the abscissa of the transformed pixel coordinates obtained after the ith rotation of the image to be transformed, v i represents the ordinate of the transformed pixel coordinates obtained after the ith rotation of the image to be transformed, and xi represents the ordinate of the transformed pixel coordinates. The abscissa of the pixel coordinates of the transformed image in the area to be rotated, and y i represents the ordinate of the pixel coordinates of the to-be-transformed image in the area to be rotated. According to the above formula, the radiation-transformed pixel coordinates of the image to be transformed in the area to be transformed can be calculated, so that the rotation of the image to be transformed can be realized. FIG. 3 is a multi-angle image in a method for constructing an image edge feature library improved by Embodiment 2 of the present invention. As shown in FIG. 3 , a multi-angle image can be obtained after an image to be transformed is rotated in the area to be rotated Image.

在本实施例中,只需要对待变换图像中的待旋转区域进行旋转,对待变换图像的其他区域保持原有角度,即将待变换图像中的静止区域内像素点坐标作为静止坐标,保持不变。因此,多角度图像包括静止坐标和角度变换后的像素坐标。In this embodiment, only the to-be-rotated area in the to-be-transformed image needs to be rotated, and other areas of the to-be-transformed image maintain the original angle, that is, the pixel coordinates in the static area in the to-be-transformed image are taken as static coordinates and remain unchanged. Therefore, a multi-angle image includes stationary coordinates and angle-transformed pixel coordinates.

图4为本发明实施例二所提供的一种图像边缘特征库构建方法中的图像集示意图。如图4所示,图像集中的九张图像分别具有不同尺度和不同角度。FIG. 4 is a schematic diagram of an image set in a method for constructing an image edge feature library according to Embodiment 2 of the present invention. As shown in Figure 4, the nine images in the image set have different scales and different angles, respectively.

S220、将所述图像集中的每个图像进行方向差分得到方向差分图像。S220. Perform a direction difference on each image in the image set to obtain a direction difference image.

在本步骤之前,还需要对图像集中的每个图像进行降噪处理,即通过快速中值滤波进行降噪,具体过程在实施例一中已说明,此处不做赘述。Before this step, it is also necessary to perform noise reduction processing on each image in the image set, that is, noise reduction through fast median filtering. The specific process has been described in Embodiment 1 and will not be repeated here.

其中,方向差分可以为Sobel图像方向差分,在图像处理中,Sobel图像方向差分本质上是一个一阶滤波器。The directional difference may be the Sobel image directional difference. In image processing, the Sobel image directional difference is essentially a first-order filter.

示例性的,Sobel算子的卷积核可以包含两组3×3的矩阵,分别为x方向卷积核和y方向卷积核,其表达式如下:Exemplarily, the convolution kernel of the Sobel operator may include two sets of 3×3 matrices, which are the convolution kernel in the x-direction and the convolution kernel in the y-direction, respectively, and the expressions are as follows:

Figure BDA0003004374970000131
Figure BDA0003004374970000131

通过x方向卷积核和y方向卷积核可以对进行降噪处理后的图像集进行卷积处理,可以得到方向差分图像。可以通过以下公式计算差分图像:Through the convolution kernel in the x direction and the convolution kernel in the y direction, the image set after noise reduction can be convolved, and the direction difference image can be obtained. The difference image can be calculated by the following formula:

Figure BDA0003004374970000132
Figure BDA0003004374970000132

其中,Sx、Sy分别为x方向和y方向卷积核,L(x,y)为经过降噪处理后的图像集中图像的像素坐标,Gx(x,y)和Gy(x,y)分别为x方向差分值和y方向差分值。根据其差分值和其对应的像素坐标可以得到差分图像。Among them, S x and S y are the convolution kernels in the x and y directions, respectively, L(x, y) is the pixel coordinates of the image in the image set after noise reduction, G x (x, y) and G y (x , y) are the difference value in the x direction and the difference value in the y direction, respectively. A differential image can be obtained according to its differential value and its corresponding pixel coordinates.

图5为本发明实施例二所提供的一种图像边缘特征库构建方法中的方向差分图像示意图,如图5所示,方向差分图像可以包括x方向差分图像和y方向差分图像。5 is a schematic diagram of a direction difference image in a method for constructing an image edge feature library according to Embodiment 2 of the present invention. As shown in FIG. 5 , the direction difference image may include an x-direction difference image and a y-direction difference image.

S230、将所述方向差分图像通过非极大值抑制处理得到细边处理后的图像集。S230 , performing a non-maximum value suppression process on the directional difference image to obtain a thin-edge processed image set.

在本步骤中,首先需要计算方向差分图像的梯度幅值,根据x方向差分值和y方向差分值可以计算其对应图像的梯度幅值,计算公式如下:In this step, the gradient magnitude of the directional difference image needs to be calculated first, and the gradient magnitude of the corresponding image can be calculated according to the difference value in the x direction and the difference value in the y direction. The calculation formula is as follows:

Figure BDA0003004374970000141
Figure BDA0003004374970000141

其中,F(x,y)为对应坐标的梯度幅值。Among them, F(x,y) is the gradient magnitude of the corresponding coordinate.

进一步的,可以根据梯度幅值计算梯度方向,计算公式为:Further, the gradient direction can be calculated according to the gradient magnitude, and the calculation formula is:

θ=atan2(Gy(x,y),Gx(x,y))θ=atan2(G y (x,y),G x (x,y))

其中,θ为对应坐标的梯度方向。Among them, θ is the gradient direction of the corresponding coordinate.

本实施例中,得到梯度方向之后可以将差分图像的中心像素点根据梯度角度划分到四个方向上。图6为本发明实施例二所提供的一种图像边缘特征库构建方法中的梯度方向划分示意图,如图6所示,通过4根直线可以将差分图像划分为四个方向。In this embodiment, after the gradient directions are obtained, the central pixel point of the differential image can be divided into four directions according to the gradient angles. FIG. 6 is a schematic diagram of gradient direction division in a method for constructing an image edge feature library according to Embodiment 2 of the present invention. As shown in FIG. 6 , a differential image can be divided into four directions by four straight lines.

示例性的,可以将差分图像划分为如下四个方向:Exemplarily, the differential image can be divided into the following four directions:

水平梯度方向:(θ>-22.5&&θ<22.5)||(θ<-157.5&&θ>157.5)即图6中直线3和直线4之间的双箭头方向;Horizontal gradient direction: (θ>-22.5&&θ<22.5)||(θ<-157.5&&θ>157.5) That is, the double arrow direction between straight line 3 and straight line 4 in Figure 6;

垂直梯度方向:(θ>=67.5&&θ<=112.5)||(θ>=-112.5&&θ<=-67.5)即图6中直线1和直线2之间的双箭头方向;Vertical gradient direction: (θ>=67.5&&θ<=112.5)||(θ>=-112.5&&θ<=-67.5) That is, the double arrow direction between straight line 1 and straight line 2 in Figure 6;

右上对角梯度方向:(θ>=22.5&&θ<67.5)||(θ>=-157.5&&θ<-112.5)即图6中直线2和直线4之间的双箭头方向;The upper right diagonal gradient direction: (θ>=22.5&&θ<67.5)||(θ>=-157.5&&θ<-112.5), which is the double arrow direction between straight line 2 and straight line 4 in Figure 6;

右下对角梯度方向:(θ>=-67.5&&θ<=-22.5)||(θ>112.5&&θ<=157.5)即图6中直线1和直线3之间的双箭头方向。The lower right diagonal gradient direction: (θ>=-67.5&&θ<=-22.5)||(θ>112.5&&θ<=157.5), which is the double arrow direction between straight line 1 and straight line 3 in FIG. 6 .

本实施例中,得到四个方向后可以分别比较8领域内梯度直线上像素点的梯度值。其中,8领域为由直线1、直线2、直线3和直线4将图像分割成8个相邻的区域,梯度直线可以为图6中的四个双箭头直线,梯度直线可以包括水平梯度直线、竖直梯度直线、左下右上-45°梯度直线和左上右下45°梯度直线。In this embodiment, after the four directions are obtained, the gradient values of the pixel points on the gradient line in the 8 domains can be compared respectively. Among them, the 8 areas are divided into 8 adjacent areas by the straight line 1, the straight line 2, the straight line 3 and the straight line 4, the gradient straight line can be the four double-arrow straight lines in FIG. 6, and the gradient straight line can include the horizontal gradient straight line, Vertical gradient line, lower left upper right -45° gradient line, and upper left right lower 45° gradient line.

进一步的,根据求得的对应坐标的梯度方向可以确定出其在上述四个方向中的哪个方向内,示例性的,对应坐标的梯度方向θ=80°,则可以确定其属于垂直梯度方向。确定方向后可以确定该方向内的梯度直线,计算该梯度直线上的中心点梯度值和两个端点的梯度值,当中心点梯度值大于梯度直线上两个端点的梯度值时,则将该中心点梯度值确定为8领域内的极大值,取该中心点对应的像素值作为选择的像素;当中心点梯度值小于或等于梯度直线上两个端点的梯度值时,则将该中心点对应像素值取值为0。由此,可以将方向差分图像的轮廓边缘进行细边处理得到细边处理后的图像集。图7为本发明实施例二所提供的一种图像边缘特征库构建方法中的细边处理后的图像的示意图。Further, according to the obtained gradient direction of the corresponding coordinate, it can be determined which direction it is in the above four directions. Exemplarily, if the gradient direction of the corresponding coordinate is θ=80°, it can be determined that it belongs to the vertical gradient direction. After the direction is determined, the gradient line in the direction can be determined, and the gradient value of the center point and the gradient values of the two endpoints on the gradient line can be calculated. When the gradient value of the center point is greater than the gradient value of the two endpoints on the gradient line, the The gradient value of the center point is determined as the maximum value in the 8 fields, and the pixel value corresponding to the center point is taken as the selected pixel; when the gradient value of the center point is less than or equal to the gradient value of the two endpoints on the gradient line, the center point The pixel value corresponding to the point is 0. In this way, the contour edge of the directional difference image can be thinned to obtain a thinned image set. FIG. 7 is a schematic diagram of an image after thin edge processing in a method for constructing an image edge feature library according to Embodiment 2 of the present invention.

S240、根据所述细边处理后的图像集确定像素分级。S240. Determine pixel classification according to the image set after the thin edge processing.

其中,像素分级可以理解为将图像根据像素值划分为多个层级。Among them, pixel classification can be understood as dividing an image into multiple levels according to pixel values.

本步骤可以包括将所述细边处理后的图像集中的图像根据图像位数将图像的像素值进行分级。其中,细边处理后的图中集中的图像根据每个图像的像素值进行分级,分级总数可以根据图像的位数进行确定,示例性的,将8位细边处理后的图像按照像素值可以分为[0,1,…,255],分级总数L=256。This step may include grading the pixel values of the images according to the number of image bits in the images in the thin edge processed image set. The images in the image after the thin edge processing are classified according to the pixel value of each image, and the total number of classifications can be determined according to the number of bits of the image. Divided into [0,1,...,255], the total number of classifications L=256.

S250、根据所述像素分级确定双阈值。S250. Determine dual thresholds according to the pixel classification.

在本实施例中,根据像素分级可以根据待求第一阈值和待求第二阈值将细边处理后的图像的像素值划分为三个类别,并根据构造的类内方差组可以对待求第一阈值和待求第二阈值进行求解得到双阈值。In this embodiment, according to the pixel classification, the pixel values of the image after the thin edge processing can be divided into three categories according to the first threshold to be obtained and the second threshold to be obtained. A threshold value and a second threshold value to be obtained are solved to obtain a double threshold value.

进一步的,本步骤可以包括如下步骤:Further, this step may include the following steps:

S251、将分级后的像素值按照待求第一阈值和待求第二阈值分为非边缘点像素值类、弱边缘点像素值类和强边缘点像素值类;S251, classifying the graded pixel values into a non-edge point pixel value class, a weak edge point pixel value class and a strong edge point pixel value class according to the first threshold value to be obtained and the second threshold value to be obtained;

其中,待求第一阈值可以为分割强边缘像素值类的值,待求第二阈值可以为分割弱边缘像素值类的值。示例性的,待求第一阈值可以为m,待求第二阈值可以为k。Wherein, the first threshold value to be determined may be a value for segmenting the pixel value class of strong edges, and the second threshold value to be determined may be a value for segmenting the pixel value class of weak edge edges. Exemplarily, the first threshold to be determined may be m, and the second threshold to be determined may be k.

示例性的,将分级后的图像中的像素值进一步划分为C0、C1和C2三类,其中,C0=[0,1,…,k]表示非边缘点像素值类,C1=[k,k+1,…,m]表示弱边缘点像素值类,C2=[m+1,m+2,…,L-1]表示强边缘点像素值类。Exemplarily, the pixel values in the graded image are further divided into three categories: C 0 , C 1 and C 2 , where C 0 =[0,1,...,k] represents the non-edge point pixel value category, and C 1 =[k,k+1,...,m] represents the weak edge point pixel value class, and C 2 =[m+1,m+2,...,L-1] represents the strong edge point pixel value class.

S252、根据所述分级后的像素值、待求第一阈值和待求第二阈值构造非边缘点像素值类方差、弱边缘点像素值类方差以及强边缘点像素值类方差,得到类内方差组;S252. Construct non-edge point pixel value class variance, weak edge point pixel value class variance, and strong edge point pixel value class variance according to the graded pixel values, the first threshold value to be determined, and the second threshold value to be determined, to obtain the intra-class variance variance group;

在本步骤中,根据像素分级可以计算每一级像素在整个细边处理后的图像中的比例,计算公式如下:In this step, the proportion of each level of pixels in the entire thin-edge processed image can be calculated according to the pixel classification, and the calculation formula is as follows:

Figure BDA0003004374970000161
Figure BDA0003004374970000161

其中,Pi表示第i级像素在整个图像中的比例,ni为第i级像素的数量,N为图像的像素总数。Among them, P i represents the proportion of i-th level pixels in the whole image, n i is the number of i-th level pixels, and N is the total number of pixels in the image.

示例性的,待求第一阈值为m,待求第二阈值为k,可以计算小于待求第二阈值的前k项的像素概率和,计算公式如下:Exemplarily, the value of the first threshold to be determined is m, and the value of the second threshold to be determined is k. The sum of the pixel probabilities of the top k items less than the second threshold to be determined can be calculated, and the calculation formula is as follows:

Figure BDA0003004374970000171
Figure BDA0003004374970000171

其中,ω0(k)表示前k项的像素概率和。where ω 0 (k) represents the sum of the pixel probabilities of the first k items.

基于前k项的像素概率和还可以进一步计算小于待求第二阈值的前k项的期望和,计算公式如下:Based on the pixel probability sum of the top k items, the expected sum of the top k items less than the second threshold to be calculated can be further calculated. The calculation formula is as follows:

Figure BDA0003004374970000172
Figure BDA0003004374970000172

其中,μ0(k)表示前k项的期望和。where μ 0 (k) represents the expected sum of the first k terms.

还可以计算高于待求第二阈值小于待求第一阈值的概率和,计算公式如下:It is also possible to calculate the probability sum that is higher than the second threshold to be determined and less than the first threshold to be determined, and the calculation formula is as follows:

Figure BDA0003004374970000173
Figure BDA0003004374970000173

其中,ω1(k,m)表示高于待求第二阈值小于待求第一阈值的概率和。Wherein, ω 1 (k,m) represents the probability sum that is higher than the second threshold to be determined and smaller than the first threshold to be determined.

基于高于待求第二阈值小于待求第一阈值的概率和可以进一步计算高于待求第二阈值小于待求第一阈值的期望和,计算公式如下:Based on the probability sum that is higher than the second threshold to be determined and smaller than the first threshold to be determined, the expected sum that is higher than the second threshold to be determined and smaller than the first threshold to be determined can be further calculated. The calculation formula is as follows:

Figure BDA0003004374970000174
Figure BDA0003004374970000174

其中,μ1(k,m)表示高于待求第二阈值小于待求第一阈值的期望和。Wherein, μ 1 (k,m) represents the expected sum that is higher than the second threshold to be determined and smaller than the first threshold to be determined.

还可以继续计算高于待求第一阈值的概率和,公式如下:You can also continue to calculate the probability sum that is higher than the first threshold to be calculated. The formula is as follows:

Figure BDA0003004374970000175
Figure BDA0003004374970000175

其中,ω2(m)代表高于待求第一阈值的概率和。Among them, ω 2 (m) represents the probability sum that is higher than the first threshold value to be obtained.

基于高于待求第一阈值的概率和可以进一步计算高于第一阈值的期望和,计算公式如下:Based on the probability sum higher than the first threshold to be calculated, the expected sum higher than the first threshold can be further calculated, and the calculation formula is as follows:

Figure BDA0003004374970000181
Figure BDA0003004374970000181

其中,μ2(m)表示高于第一阈值的期望和。where μ 2 (m) represents the expected sum above the first threshold.

基于上述计算得到的参数可以进一步构造类内方差组,构造的类内方差组为:Based on the parameters calculated above, the intra-class variance group can be further constructed, and the constructed intra-class variance group is:

Figure BDA0003004374970000182
Figure BDA0003004374970000182

其中,

Figure BDA0003004374970000183
表示非边缘点像素值类方差,
Figure BDA0003004374970000184
表示弱边缘点像素值类方差,
Figure BDA0003004374970000185
表示强边缘点像素值类方差。in,
Figure BDA0003004374970000183
represents the class variance of pixel values of non-edge points,
Figure BDA0003004374970000184
represents the class variance of weak edge point pixel values,
Figure BDA0003004374970000185
Represents the class variance of pixel values of strong edge points.

S253、根据所述类内方差组建立最小化评价函数,将所述最小化评价函数求偏导得到最小化计算公式;S253, establishing a minimization evaluation function according to the intra-class variance group, and obtaining a partial derivative of the minimization evaluation function to obtain a minimization calculation formula;

在本步骤中,基于上述构造的类内方差组可以计算最小化评价函数,计算公式为:In this step, the minimum evaluation function can be calculated based on the intra-class variance group constructed above, and the calculation formula is:

Figure BDA0003004374970000186
Figure BDA0003004374970000186

其中,J(k,m)表示最小化评价函数。为使其最小化需要对最小化评价函数求偏导得到最小化公式为:Among them, J(k,m) represents the minimization evaluation function. In order to minimize it, the partial derivative of the minimized evaluation function needs to be obtained to obtain the minimized formula:

Figure BDA0003004374970000191
Figure BDA0003004374970000191

根据上述公式可以求得最小化公式。According to the above formula, the minimization formula can be obtained.

S254、将所述待求第一阈值和待求第二阈值在分级后的像素值内遍历取值,得到满足所述最小化计算公式的求解后的第一阈值和第二阈值。S254 , traversing the to-be-determined first threshold value and the to-be-determined second threshold value within the graded pixel values to obtain the solved first threshold value and the second threshold value that satisfy the minimization calculation formula.

在本步骤中,求解后的第一阈值和第一阈值即为双阈值。In this step, the solved first threshold and the first threshold are dual thresholds.

S260、将所述图像集中的每个图像中高于第一阈值的像素点确定为强边缘,将高于第二阈值低于第一阈值的像素点确定为弱边缘,将低于第二阈值的像素点确定为非边缘。S260: Determine the pixel points higher than the first threshold in each image in the image set as strong edges, determine the pixels higher than the second threshold and lower than the first threshold as weak edges, and determine the pixels lower than the second threshold as weak edges. Pixels are determined to be non-edges.

在本实施例中,本步骤属于滞后阈值处理,根据得到的双阈值可以设置高于第一阈值的像素点属于强边缘,低于第一阈值高于第二阈值的像素点属于弱边缘,将低于第二阈值的像素点划分为非边缘。In this embodiment, this step belongs to hysteresis threshold processing. According to the obtained double thresholds, it can be set that the pixels higher than the first threshold belong to strong edges, and the pixels lower than the first threshold and higher than the second threshold belong to weak edges. Pixels below the second threshold are classified as non-edges.

进一步的,得到所述弱边缘后,还包括:确定在所述弱边缘构成的区域内的每个像素点在预设的数值邻域内是否存在强边缘像素点;若存在,则将所述强边缘像素点设置为强边缘;若不存在,则将所述像素点去除。Further, after obtaining the weak edge, it also includes: determining whether each pixel in the area formed by the weak edge has a strong edge pixel in a preset numerical neighborhood; The edge pixel is set as a strong edge; if it does not exist, the pixel is removed.

其中,在弱边缘部分对每个像素点在8领域内判断是否存在强边缘像素点,如果存在,则将该像素点重新设置划分为强边缘;如果不存在强边缘像素点,则将该像素点去除。通过这一操作可以将图像中单个杂点去除同时还可以扩大强边缘。Among them, in the weak edge part, it is judged whether there is a strong edge pixel point for each pixel point within 8 fields, if there is, the pixel point is reset and divided into a strong edge point; if there is no strong edge pixel point, the pixel point is Click to remove. This operation removes individual noise in the image and also enlarges strong edges.

图8为本发明实施例二提供的一种图像边缘特征库构建方法中的边缘提取后的图像示意图。如图8所示,该图像自适应计算出的第一阈值为150,第二阈值为92,该图像是根据双阈值经过滞后阈值处理后得到的图像。FIG. 8 is a schematic diagram of an image after edge extraction in a method for constructing an image edge feature library according to Embodiment 2 of the present invention. As shown in FIG. 8 , the first threshold value of the image adaptively calculated is 150, and the second threshold value is 92, and the image is obtained by hysteresis threshold processing according to the double thresholds.

S270、基于所述强边缘、弱边缘以及非边缘对所述图像集进行边缘提取,得到边缘提取后的图像集。S270. Perform edge extraction on the image set based on the strong edge, weak edge, and non-edge to obtain an edge-extracted image set.

在本步骤中,将图像集中图像的非边缘部分不进行边缘提取,将图像集中图像的弱边缘部分的像素值设置为0,将图像集中图像的强边缘进边缘提取得到边缘提取后的图像集。In this step, the non-edge part of the image in the image set is not subjected to edge extraction, the pixel value of the weak edge part of the image in the image set is set to 0, and the strong edge of the image in the image set is extracted into the edge to obtain the image set after edge extraction. .

图9为本发明实施例二所提供的一种图像边缘特征库构建方法中的边缘提取后的图像集的示意图,如图9所示,边缘提取后的图像集中可以包括多张具有不同尺度、不同角度以及不同尺度角度的边缘提取后的图像。FIG. 9 is a schematic diagram of an image set after edge extraction in a method for constructing an image edge feature library according to Embodiment 2 of the present invention. As shown in FIG. 9 , the image set after edge extraction may include multiple images with different scales, Image after edge extraction at different angles and different scale angles.

S280、根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。S280. Build an image edge feature library according to the scale level of the images in the image set after edge extraction, so as to be used for image edge extraction.

在本实施例中,将边缘提取后的图像集中的单幅图像的边缘点以连续内存存储,对尺度层级采用无序图的数据结构,示例性的,图像边缘数据结构可以为:unordered_map<float,vector<vector<Points>>>,其中,float表示尺度层,表示包含旋转角度的边缘轮廓点集。In this embodiment, the edge points of a single image in the image set after edge extraction are stored in a continuous memory, and an unordered map data structure is used for the scale level. Exemplarily, the image edge data structure may be: unordered_map<float ,vector<vector<Points>>>>, where float represents the scale layer, which represents the edge contour point set containing the rotation angle.

本发明实施例二提供的一种图像边缘特征库构建方法,该方法不局限于某一角度或某一尺度图像的边缘提取,能够实现对同一待提取边缘图像进行多尺度多角度图像集的构建,对构建大规模图像边缘特征库提供有效的指导策略。此外,该方法针对图像边缘提取可以自适应根据图像信息计算双阈值提高边缘提取效率。该方法中的边缘提取采用无序图与连续内存存储的数据结构,通过嵌套可实现多层次大规模图像边缘特征信息存储,降低数据结构的复杂度。The second embodiment of the present invention provides a method for constructing an image edge feature library. The method is not limited to the edge extraction of a certain angle or a certain scale image, and can realize the construction of a multi-scale and multi-angle image set for the same edge image to be extracted. , which provides an effective guidance strategy for building a large-scale image edge feature library. In addition, the method can adaptively calculate double thresholds according to image information for image edge extraction to improve edge extraction efficiency. The edge extraction in this method adopts the data structure of disordered graph and continuous memory storage. Through nesting, multi-level large-scale image edge feature information storage can be realized, and the complexity of the data structure can be reduced.

本发明实施例二还提供一种图像边缘特征库构建方法的总体流程,图10为本发明实施例二提供的一种图像边缘特征库构建方法的总体流程图,如图10所示,一种图像边缘特征库构建方法的总体流程可以包括如下流程:Embodiment 2 of the present invention also provides an overall flow chart of a method for constructing an image edge feature library. FIG. 10 is an overall flow chart of a method for constructing an image edge feature library according to Embodiment 2 of the present invention. As shown in FIG. 10 , a The overall process of the image edge feature library construction method can include the following processes:

获取待提取边缘图像,对待提取边缘图像进行多尺度多角度变换得到图像集;对图像集中的图像进行快速中值滤波处理、计算Sobel图像方向差分、计算图像梯度幅值和方向以及对方向差分图像进行非极大值抑制;建立图像梯度幅值直方图即细边处理后的图像、构造类内方差组、计算双阈值最后进行滞后阈值处理后输出待提取边缘数据集得到图像边缘特征库。Obtain the edge image to be extracted, perform multi-scale and multi-angle transformation on the edge image to be extracted to obtain an image set; perform fast median filtering on the images in the image set, calculate the Sobel image direction difference, calculate the image gradient magnitude and direction, and compare the direction difference image. Perform non-maximum suppression; establish image gradient amplitude histogram, that is, the image after thin edge processing, construct intra-class variance group, calculate double threshold, and finally perform lag threshold processing and output the edge data set to be extracted to obtain the image edge feature library.

实施例三Embodiment 3

图11为本发明实施例三提供的一种图像边缘特征库构建装置的结构示意图,该装置可适用于提取图像的边缘轮廓构建大规模边缘特征库的情况,其中该装置可由软件和/或硬件实现,并一般集成在计算机设备上。11 is a schematic structural diagram of an apparatus for constructing an image edge feature library according to Embodiment 3 of the present invention. The apparatus is applicable to the case of extracting the edge contour of an image to construct a large-scale edge feature library, wherein the apparatus can be configured by software and/or hardware implemented and generally integrated on computer equipment.

如图11所示,该装置包括:图像变换模块111、确定模块112、划分模块113以及构建模块114。As shown in FIG. 11 , the apparatus includes: an image transformation module 111 , a determination module 112 , a division module 113 and a construction module 114 .

图像变换模块111,用于将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像;An image transformation module 111, configured to perform scale and/or angle transformation on at least one edge image to be extracted to obtain an image set, where the image set includes multi-angle images and/or multi-scale images;

确定模块112,用于将基于所述图像集确定的图像边缘进行细边处理后根据细边处理后的图像集确定双阈值;其中,所述双阈值包括第一阈值和第二阈值,所述第一阈值大于第二阈值;The determining module 112 is configured to perform thin edge processing on the image edge determined based on the image set and determine a double threshold value according to the image set after the thin edge processing; wherein, the double threshold value includes a first threshold value and a second threshold value, the the first threshold is greater than the second threshold;

划分模块113,用于根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集;The dividing module 113 is used to divide the pixel points of each image in the image set into strong edges of the image, weak edges of the image and non-edges of the image according to the double threshold, to obtain the image set after edge extraction;

构建模块114,用于根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。The construction module 114 is configured to construct an image edge feature library according to the scale level of the image in the image set after the edge extraction, so as to be used for image edge extraction.

在本实施例中,该装置首先通过图像变换模块将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像;其次通过确定模块将基于所述图像集确定的图像边缘进行细边处理后根据细边处理后的图像集确定双阈值;然后通过划分模块根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集;最后通过构建模块根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。该装置通过根据图像自适应计算双阈值能够有效解决图像边缘轮廓提取自适应弱的问题。In this embodiment, the apparatus first performs scale and/or angle transformation on at least one edge image to be extracted through the image transformation module to obtain an image set, the image set includes multi-angle images and/or multi-scale images; secondly The image edge determined based on the image set is subjected to thin edge processing by the determining module, and a double threshold is determined according to the image set after the thin edge processing; then the pixel of each image in the image set is divided by the dividing module according to the double threshold The points are divided into the strong edge of the image, the weak edge of the image and the non-edge of the image, and an image set after edge extraction is obtained; Used for image edge extraction. The device can effectively solve the problem of weak self-adaptation in image edge contour extraction by adaptively calculating double thresholds according to the image.

进一步的,图像变换模块111包括:尺度变换单元、尺度角度变换单元。Further, the image transformation module 111 includes: a scale transformation unit and a scale angle transformation unit.

其中,尺度变换单元用于根据预设图像尺度范围以及尺度步长,确定多个不同的尺度缩放因子;根据所述尺度缩放因子对至少一张待提取边缘图像进行尺度缩放,得到图像集,所述图像集包括多尺度的图像。The scale transformation unit is configured to determine a plurality of different scale scaling factors according to the preset image scale range and scale step size; scale at least one edge image to be extracted according to the scale scaling factors to obtain an image set, the The image set includes images of multiple scales.

其中,尺度角度变换单元用于根据待变换图像,建立空间坐标系;根据预设旋转角度将所述待变换图像中的待旋转区域绕所述空间坐标系的Z轴进行旋转得到图像集;所述待变换图像包括至少一张待提取边缘图像或多尺度的图像;在所述待变换图像包括至少一张待提取边缘图像时,所述图像集包括多角度的图像;在所述待变换图像包括至少一张多尺度的图像时,所述图像集包括多角度多尺度的图像。The scale and angle transformation unit is used to establish a spatial coordinate system according to the image to be transformed; rotate the area to be rotated in the image to be transformed around the Z axis of the spatial coordinate system according to a preset rotation angle to obtain an image set; The image to be transformed includes at least one edge image to be extracted or a multi-scale image; when the image to be transformed includes at least one edge image to be extracted, the image set includes multi-angle images; When including at least one multi-scale image, the image set includes multi-angle and multi-scale images.

在上述优化的基础上,尺度角度变换单元还用于基于预设旋转角度确定旋转矩阵;根据所述旋转矩阵和所述待变换图像的旋转中心坐标确定变换矩阵;根据所述旋转中心坐标确定所述待变换图像的最小内接圆半径;基于所述最小内接圆半径确定待旋转区域;将所述待变换图像中所述待旋转区域以外的区域内的像素点坐标作为静止坐标;根据所述变换矩阵以及在所述待旋转区域内的像素点坐标确定角度变换后的像素坐标;根据所述静止坐标以及角度变换后的像素坐标得到图像集。On the basis of the above optimization, the scale and angle transformation unit is further configured to determine a rotation matrix based on a preset rotation angle; determine a transformation matrix according to the rotation matrix and the rotation center coordinates of the to-be-transformed image; determine the rotation matrix according to the rotation center coordinates The minimum inscribed circle radius of the image to be transformed; the area to be rotated is determined based on the minimum inscribed circle radius; the coordinates of pixels in the area other than the area to be rotated in the image to be transformed are taken as static coordinates; The transformation matrix and the coordinates of the pixel points in the area to be rotated determine the pixel coordinates after angle transformation; an image set is obtained according to the static coordinates and the pixel coordinates after angle transformation.

基于上述技术方案,确定模块112具体用于:将所述图像集中的每个图像进行方向差分得到方向差分图像;将所述方向差分图像通过非极大值抑制处理得到细边处理后的图像集;根据所述细边处理后的图像集确定像素分级;根据所述像素分级确定双阈值。Based on the above technical solution, the determining module 112 is specifically configured to: perform directional difference on each image in the image set to obtain a directional difference image; perform non-maximum suppression processing on the directional difference image to obtain a thin edge processed image set ; determining a pixel classification according to the image set after the thin edge processing; determining a double threshold value according to the pixel classification.

进一步的,确定模块112还用于:将所述细边处理后的图像集中的图像根据图像位数将图像的像素值进行分级;将分级后的像素值按照待求第一阈值和待求第二阈值分为非边缘点像素值类、弱边缘点像素值类和强边缘点像素值类;根据所述分级后的像素值、待求第一阈值和待求第二阈值构造非边缘点像素值类方差、弱边缘点像素值类方差以及强边缘点像素值类方差,得到类内方差组;根据所述类内方差组建立最小化评价函数,将所述最小化评价函数求偏导得到最小化计算公式;将所述待求第一阈值和待求第二阈值在分级后的像素值内遍历取值,得到满足所述最小化计算公式的求解后的第一阈值和第二阈值。Further, the determining module 112 is further configured to: classify the pixel values of the images according to the number of bits of the images in the image set after the thin edge processing; classify the pixel values after the classification according to the first threshold to be determined and the first The two thresholds are divided into non-edge point pixel value class, weak edge point pixel value class and strong edge point pixel value class; non-edge point pixels are constructed according to the classified pixel values, the first threshold value to be determined and the second threshold value to be determined value class variance, weak edge point pixel value class variance, and strong edge point pixel value class variance to obtain an intra-class variance group; establish a minimized evaluation function according to the intra-class variance group, and obtain the partial derivative of the minimized evaluation function to obtain Minimizing the calculation formula; traversing the to-be-calculated first threshold and the to-be-calculated second threshold within the graded pixel values to obtain the solved first and second thresholds that satisfy the minimization calculation formula.

进一步的,划分模块113具体用于将所述图像集中的每个图像中高于第一阈值的像素点确定为强边缘,将高于第二阈值低于第一阈值的像素点确定为弱边缘,将低于第二阈值的像素点确定为非边缘;基于所述强边缘、弱边缘以及非边缘对所述图像集进行边缘提取,得到边缘提取后的图像集。Further, the dividing module 113 is specifically configured to determine the pixel points higher than the first threshold in each image in the image set as strong edges, and determine the pixels higher than the second threshold and lower than the first threshold as weak edges, Determine the pixel points below the second threshold as non-edges; perform edge extraction on the image set based on the strong edges, weak edges and non-edges to obtain an edge-extracted image set.

进一步的,划分模块113在得到所述弱边缘后还用于确定在所述弱边缘构成的区域内的每个像素点在预设的数值邻域内是否存在强边缘像素点;若存在,则将所述强边缘像素点设置为强边缘;若不存在,则将所述像素点去除。Further, after obtaining the weak edge, the dividing module 113 is also used to determine whether each pixel in the region formed by the weak edge has a strong edge pixel in the preset numerical neighborhood; The strong edge pixel is set as a strong edge; if it does not exist, the pixel is removed.

上述图像边缘特征库构建装置可执行本发明任意实施例所提供的图像边缘特征库构建方法,具备执行方法相应的功能模块和有益效果。The above image edge feature library construction apparatus can execute the image edge feature library construction method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

实施例四Embodiment 4

图12为本发明实施例四提供的一种计算机设备的结构示意图。如图12所示,本发明实施例四提供的计算机设备包括:一个或多个处理器121和存储装置122;该计算机设备中的处理器121可以是一个或多个,图12中以一个处理器121为例;存储装置122用于存储一个或多个程序;所述一个或多个程序被所述一个或多个处理器121执行,使得所述一个或多个处理器121实现如本发明实施例中任一项所述的图像边缘特征库构建方法。FIG. 12 is a schematic structural diagram of a computer device according to Embodiment 4 of the present invention. As shown in FIG. 12 , the computer device provided by the fourth embodiment of the present invention includes: one or more processors 121 and a storage device 122; the processor 121 in the computer device may be one or more, and in FIG. 12, one processor Take the processor 121 as an example; the storage device 122 is used to store one or more programs; the one or more programs are executed by the one or more processors 121, so that the one or more processors 121 implement the present invention The image edge feature library construction method according to any one of the embodiments.

所述计算机设备还可以包括:输入装置123和输出装置124。The computer equipment may further include: an input device 123 and an output device 124 .

计算机设备中的处理器121、存储装置122、输入装置123和输出装置124可以通过总线或其他方式连接,图12中以通过总线连接为例。The processor 121 , the storage device 122 , the input device 123 , and the output device 124 in the computer equipment may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 12 .

该计算机设备中的存储装置122作为一种计算机可读存储介质,可用于存储一个或多个程序,所述程序可以是软件程序、计算机可执行程序以及模块,如本发明实施例一或二所提供的图像边缘特征库构建方法对应的程序指令/模块(例如,附图11所示的图像边缘特征库构建装置中的模块,包括:图像变换模块111、确定模块112、划分模块113和构建模块114)。处理器121通过运行存储在存储装置122中的软件程序、指令以及模块,从而执行计算机设备的各种功能应用以及数据处理,即实现上述方法实施例中的图像边缘特征库构建方法。As a computer-readable storage medium, the storage device 122 in the computer device may be used to store one or more programs, and the programs may be software programs, computer-executable programs, and modules, as described in Embodiment 1 or Embodiment 2 of the present invention. The program instructions/modules corresponding to the provided image edge feature library construction method (for example, the modules in the image edge feature library construction device shown in FIG. 114). The processor 121 executes various functional applications and data processing of the computer equipment by running the software programs, instructions and modules stored in the storage device 122, ie, implements the image edge feature library construction method in the above method embodiments.

存储装置122可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储装置122可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储装置122可进一步包括相对于处理器121远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The storage device 122 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the computer equipment, and the like. Additionally, storage device 122 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, storage device 122 may further include memory located remotely from processor 121, which may be connected to the device through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

输入装置123可用于接收输入的数字或字符信息,以及产生与计算机设备的用户设置以及功能控制有关的键信号输入。输出装置124可包括显示屏等显示设备。The input device 123 may be used to receive input numerical or character information, and to generate key signal input related to user settings and function control of the computer device. The output device 124 may include a display device such as a display screen.

并且,当上述计算机设备所包括一个或者多个程序被所述一个或者多个处理器121执行时,程序进行如下操作:Moreover, when one or more programs included in the above-mentioned computer device are executed by the one or more processors 121, the programs perform the following operations:

将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像;Perform scale and/or angle transformation on at least one edge image to be extracted to obtain an image set, where the image set includes multi-angle images and/or multi-scale images;

将基于所述图像集确定的图像边缘进行细边处理后,根据细边处理后的图像集确定双阈值;其中,所述双阈值包括第一阈值和第二阈值,所述第一阈值大于第二阈值;After performing thin edge processing on the image edge determined based on the image set, a double threshold is determined according to the image set after the thin edge processing; wherein, the double threshold includes a first threshold and a second threshold, and the first threshold is greater than the first threshold. two thresholds;

根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集;Divide the pixel points of each image in the image set into strong edges of the image, weak edges of the image and non-edges of the image according to the double thresholds to obtain an image set after edge extraction;

根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。An image edge feature library is constructed according to the scale level of the images in the image set after edge extraction, so as to be used for image edge extraction.

实施例五Embodiment 5

本发明实施例五提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时用于执行图像边缘特征库构建方法,该方法包括:Embodiment 5 of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, is used to execute a method for constructing an image edge feature library, and the method includes:

将至少一张待提取边缘图像进行尺度和/或角度变换得到图像集,所述图像集包括多角度的图像和/或多尺度的图像;Perform scale and/or angle transformation on at least one edge image to be extracted to obtain an image set, where the image set includes multi-angle images and/or multi-scale images;

将基于所述图像集确定的图像边缘进行细边处理后,根据细边处理后的图像集确定双阈值;其中,所述双阈值包括第一阈值和第二阈值,所述第一阈值大于第二阈值;After performing thin edge processing on the image edge determined based on the image set, a double threshold is determined according to the image set after the thin edge processing; wherein, the double threshold includes a first threshold and a second threshold, and the first threshold is greater than the first threshold. two thresholds;

根据所述双阈值将所述图像集中的每个图像的像素点划分为图像的强边缘、图像的弱边缘以及图像的非边缘,得到边缘提取后的图像集;Divide the pixel points of each image in the image set into strong edges of the image, weak edges of the image and non-edges of the image according to the double thresholds to obtain an image set after edge extraction;

根据所述边缘提取后的图像集中图像的尺度层级构建图像边缘特征库,以用于进行图像边缘提取。An image edge feature library is constructed according to the scale level of the images in the image set after edge extraction, so as to be used for image edge extraction.

可选的,该程序被处理器执行时还可以用于执行本发明任意实施例所提供的图像边缘特征库构建方法。Optionally, when the program is executed by the processor, it can also be used to execute the image edge feature library construction method provided by any embodiment of the present invention.

本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是,但不限于,电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(Random Access Memory,RAM)、只读存储器(Read Only Memory,ROM)、可擦式可编程只读存储器(ErasableProgrammable Read Only Memory,EPROM)、闪存、光纤、便携式CD-ROM、光存储器件、磁存储器件、或者上述的任意合适的组合。计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may adopt any combination of one or more computer-readable mediums. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination of the above. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (Read Only Memory, ROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM), flash memory, optical fiber, portable CD-ROM, optical storage device, magnetic storage device, or any suitable combination of the above. A computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.

计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于:电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .

计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、无线电频率(Radio Frequency,RF)等等,或者上述的任意合适的组合。Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber cable, radio frequency (RF), etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional A procedural programming language, such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (eg, through the Internet using an Internet service provider) connect).

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (11)

1. An image edge feature library construction method is characterized by comprising the following steps:
carrying out scale and/or angle transformation on at least one edge image to be extracted to obtain an image set, wherein the image set comprises multi-angle images and/or multi-scale images;
performing thin edge processing on the image edge determined based on the image set, and determining a double threshold value according to the image set subjected to thin edge processing; wherein the dual threshold comprises a first threshold and a second threshold, the first threshold being greater than the second threshold;
dividing pixel points of each image in the image set into a strong edge of the image, a weak edge of the image and a non-edge of the image according to the double thresholds to obtain an image set after edge extraction;
and constructing an image edge feature library according to the scale levels of the images in the image set after the edge extraction so as to extract the image edges.
2. The method according to claim 1, wherein the scaling at least one edge image to be extracted to obtain an image set comprises:
determining a plurality of different scale scaling factors according to a preset image scale range and a scale step length;
and carrying out scale scaling on at least one edge image to be extracted according to the scale scaling factor to obtain an image set, wherein the image set comprises multi-scale images.
3. The method according to claim 1, wherein the subjecting at least one edge image to be extracted to angle transformation or scale-angle transformation to obtain an image set comprises:
establishing a space coordinate system according to the image to be transformed;
rotating the region to be rotated in the image to be transformed around the Z axis of the space coordinate system according to a preset rotation angle to obtain an image set;
the image to be transformed comprises at least one edge image to be extracted or a multi-scale image;
when the image to be transformed comprises at least one edge image to be extracted, the image set comprises images of multiple angles; when the image to be transformed comprises at least one multi-scale image, the image set comprises multi-angle multi-scale images.
4. The method according to claim 3, wherein the rotating the region to be rotated in the image to be transformed around the Z axis of the spatial coordinate system according to a preset rotation angle to obtain an image set comprises:
determining a rotation matrix based on a preset rotation angle;
determining a transformation matrix according to the rotation matrix and the rotation center coordinate of the image to be transformed;
determining the minimum inscribed circle radius of the image to be transformed according to the rotation center coordinate;
determining a region to be rotated based on the minimum inscribed circle radius;
taking the coordinates of pixel points in the region outside the region to be rotated in the image to be transformed as static coordinates;
determining pixel coordinates after angle transformation according to the transformation matrix and the pixel point coordinates in the region to be rotated;
and obtaining an image set according to the static coordinate and the pixel coordinate after the angle transformation.
5. The method of claim 1, wherein determining a dual threshold from the thin-edged image set after the thin-edged processing of the image edges determined based on the image set comprises:
carrying out direction difference on each image in the image set to obtain a direction difference image;
carrying out non-maximum suppression processing on the direction difference image to obtain an image set subjected to thin edge processing;
determining pixel grading according to the image set subjected to the thin edge processing;
determining a dual threshold from the pixel hierarchy.
6. The method of claim 5, wherein determining a pixel rank from the set of edge-processed images, determining a dual threshold from the pixel rank, comprises:
grading the pixel values of the images in the image set after the thin edge processing according to the image bits;
dividing the classified pixel values into a non-edge point pixel value class, a weak edge point pixel value class and a strong edge point pixel value class according to a first threshold value to be solved and a second threshold value to be solved;
constructing a non-edge point pixel value class variance, a weak edge point pixel value class variance and a strong edge point pixel value class variance according to the classified pixel values, the to-be-solved first threshold and the to-be-solved second threshold to obtain an intra-class variance group;
establishing a minimum evaluation function according to the intra-class variance group, and solving the deviation of the minimum evaluation function to obtain a minimum calculation formula;
traversing the first threshold value to be solved and the second threshold value to be solved in the classified pixel values to obtain the solved first threshold value and the solved second threshold value which meet the minimization calculation formula.
7. The method according to claim 1, wherein the dividing pixel points of each image in the image set into a strong edge of the image, a weak edge of the image, and a non-edge of the image according to the dual threshold to obtain an image set after edge extraction comprises:
determining pixel points higher than a first threshold in each image in the image set as strong edges, determining pixel points higher than a second threshold and lower than the first threshold as weak edges, and determining pixel points lower than the second threshold as non-edges;
and performing edge extraction on the image set based on the strong edge, the weak edge and the non-edge to obtain an image set after edge extraction.
8. The method of claim 7, further comprising, after obtaining the weak edge:
determining whether each pixel point in the region formed by the weak edge has a strong edge pixel point in a preset numerical neighborhood;
if yes, setting the strong edge pixel point as a strong edge;
and if not, removing the pixel points.
9. An image edge feature library construction device, comprising:
the image transformation module is used for carrying out scale and/or angle transformation on at least one edge image to be extracted to obtain an image set, wherein the image set comprises multi-angle images and/or multi-scale images;
the determining module is used for performing edge thinning processing on the image edge determined based on the image set and then determining a double threshold value according to the image set after the edge thinning processing; wherein the dual threshold comprises a first threshold and a second threshold, the first threshold being greater than the second threshold;
the dividing module is used for dividing pixel points of each image in the image set into a strong edge of the image, a weak edge of the image and a non-edge of the image according to the double thresholds to obtain an image set after edge extraction;
and the construction module is used for constructing an image edge feature library according to the scale levels of the images in the image set after the edge extraction so as to extract the image edges.
10. A computer device, comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs are executable by the one or more processors to cause the one or more processors to perform the image edge feature library construction method of any of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the image edge feature library construction method according to any one of claims 1 to 8.
CN202110358150.XA 2021-04-01 2021-04-01 Image edge feature library construction method and device, computer equipment and storage medium Pending CN113112516A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110358150.XA CN113112516A (en) 2021-04-01 2021-04-01 Image edge feature library construction method and device, computer equipment and storage medium
PCT/CN2021/097250 WO2022205605A1 (en) 2021-04-01 2021-05-31 Method and apparatus for constructing image edge feature library, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110358150.XA CN113112516A (en) 2021-04-01 2021-04-01 Image edge feature library construction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113112516A true CN113112516A (en) 2021-07-13

Family

ID=76713422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110358150.XA Pending CN113112516A (en) 2021-04-01 2021-04-01 Image edge feature library construction method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113112516A (en)
WO (1) WO2022205605A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113763273A (en) * 2021-09-07 2021-12-07 北京的卢深视科技有限公司 Face complementing method, electronic device and computer readable storage medium
CN113837171A (en) * 2021-11-26 2021-12-24 成都数之联科技有限公司 Candidate region extraction method, candidate region extraction system, candidate region extraction device, medium and target detection method
CN116363390A (en) * 2023-05-25 2023-06-30 之江实验室 Method, device, storage medium and electronic equipment for detecting weak and small infrared targets
CN116883415A (en) * 2023-09-08 2023-10-13 东莞市旺佳五金制品有限公司 Thin-wall zinc alloy die casting quality detection method based on image data

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115294162B (en) * 2022-10-09 2022-12-06 腾讯科技(深圳)有限公司 Target identification method, device, equipment and storage medium
CN115358497B (en) * 2022-10-24 2023-03-10 湖南长理尚洋科技有限公司 GIS technology-based intelligent panoramic river patrol method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256394A (en) * 2016-12-28 2018-07-06 中林信达(北京)科技信息有限责任公司 A kind of method for tracking target based on profile gradients
US20190096031A1 (en) * 2017-09-25 2019-03-28 Shanghai Zhaoxin Semiconductor Co., Ltd. Image interpolation methods and related image interpolation devices thereof
CN110060284A (en) * 2019-04-25 2019-07-26 王荩立 A kind of binocular vision environmental detecting system and method based on tactilely-perceptible
CN111091107A (en) * 2019-12-20 2020-05-01 广州杰赛科技股份有限公司 A kind of face area edge detection method, device and storage medium
CN111985329A (en) * 2020-07-16 2020-11-24 浙江工业大学 Remote sensing image information extraction method based on FCN-8s and improved Canny edge detection
CN112419372A (en) * 2020-11-11 2021-02-26 广东拓斯达科技股份有限公司 Image processing method, image processing device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2293247B1 (en) * 2009-07-29 2012-09-05 Harman Becker Automotive Systems GmbH Edge detection with adaptive threshold
CN110660071A (en) * 2019-08-23 2020-01-07 中山市奥珀金属制品有限公司 Automatic edge detection double-threshold setting method and system
CN112308872B (en) * 2020-11-09 2023-06-23 西安工程大学 Image Edge Detection Method Based on Multiscale Gabor First Derivative

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256394A (en) * 2016-12-28 2018-07-06 中林信达(北京)科技信息有限责任公司 A kind of method for tracking target based on profile gradients
US20190096031A1 (en) * 2017-09-25 2019-03-28 Shanghai Zhaoxin Semiconductor Co., Ltd. Image interpolation methods and related image interpolation devices thereof
CN110060284A (en) * 2019-04-25 2019-07-26 王荩立 A kind of binocular vision environmental detecting system and method based on tactilely-perceptible
CN111091107A (en) * 2019-12-20 2020-05-01 广州杰赛科技股份有限公司 A kind of face area edge detection method, device and storage medium
CN111985329A (en) * 2020-07-16 2020-11-24 浙江工业大学 Remote sensing image information extraction method based on FCN-8s and improved Canny edge detection
CN112419372A (en) * 2020-11-11 2021-02-26 广东拓斯达科技股份有限公司 Image processing method, image processing device, electronic equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113763273A (en) * 2021-09-07 2021-12-07 北京的卢深视科技有限公司 Face complementing method, electronic device and computer readable storage medium
CN113837171A (en) * 2021-11-26 2021-12-24 成都数之联科技有限公司 Candidate region extraction method, candidate region extraction system, candidate region extraction device, medium and target detection method
CN113837171B (en) * 2021-11-26 2022-02-08 成都数之联科技有限公司 Candidate region extraction method, candidate region extraction system, candidate region extraction device, medium and target detection method
CN116363390A (en) * 2023-05-25 2023-06-30 之江实验室 Method, device, storage medium and electronic equipment for detecting weak and small infrared targets
CN116363390B (en) * 2023-05-25 2023-09-19 之江实验室 An infrared weak and small target detection method, device, storage medium and electronic equipment
CN116883415A (en) * 2023-09-08 2023-10-13 东莞市旺佳五金制品有限公司 Thin-wall zinc alloy die casting quality detection method based on image data
CN116883415B (en) * 2023-09-08 2024-01-05 东莞市旺佳五金制品有限公司 Thin-wall zinc alloy die casting quality detection method based on image data

Also Published As

Publication number Publication date
WO2022205605A1 (en) 2022-10-06

Similar Documents

Publication Publication Date Title
CN113112516A (en) Image edge feature library construction method and device, computer equipment and storage medium
US11321593B2 (en) Method and apparatus for detecting object, method and apparatus for training neural network, and electronic device
CN111028327B (en) A processing method, device and equipment for a three-dimensional point cloud
WO2023193401A1 (en) Point cloud detection model training method and apparatus, electronic device, and storage medium
CN113393514B (en) Three-dimensional disordered point cloud data processing method, system and equipment
US9122960B2 (en) Patch size adaptation for image enhancement
CN110852349A (en) Image processing method, detection method, related equipment and storage medium
CN112200826B (en) An industrial weak defect segmentation method
CN114494174A (en) Method and device for detecting chip bonding line defects
CN110188815B (en) Feature point sampling method, device, equipment and storage medium
CN109658378B (en) Pore identification method and system based on soil CT image
CN113159103A (en) Image matching method, image matching device, electronic equipment and storage medium
CN114743121A (en) Image processing method, training method and device for image processing model
CN112330701A (en) Tissue pathology image cell nucleus segmentation method and system based on polar coordinate representation
CN114882252A (en) Semi-supervised remote sensing image change detection method and device and computer equipment
CN112419372A (en) Image processing method, image processing device, electronic equipment and storage medium
CN105913451B (en) A kind of natural image superpixel segmentation method based on graph model
CN110751156A (en) Method, system, device and medium for table line bulk interference removal
CN119048343B (en) A video image stitching method and system based on feature matching
CN114462514A (en) Target grabbing detection algorithm based on edge extraction and cavity convolution
CN112017203B (en) Image processing method, video processing method, device, equipment and storage medium
CN116580216B (en) Pathological image matching method, device, equipment and storage medium
CN115829878A (en) A method and device for image enhancement
CN118968110B (en) Feature matching method, system, medium, product and equipment based on K clustering
CN119181011B (en) Image recognition method, device, equipment and storage medium using adaptive multi-scale feature fusion

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210713