CN117975179A - Image processing method, device and electronic device - Google Patents

Image processing method, device and electronic device Download PDF

Info

Publication number
CN117975179A
CN117975179A CN202211312678.4A CN202211312678A CN117975179A CN 117975179 A CN117975179 A CN 117975179A CN 202211312678 A CN202211312678 A CN 202211312678A CN 117975179 A CN117975179 A CN 117975179A
Authority
CN
China
Prior art keywords
feature
screening
points
matrix
feature points
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
CN202211312678.4A
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202211312678.4A priority Critical patent/CN117975179A/en
Publication of CN117975179A publication Critical patent/CN117975179A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/771Feature selection, e.g. selecting representative features from a multi-dimensional feature space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention discloses an image processing method, an image processing device and electronic equipment; an image processing method, comprising: determining at least two feature points corresponding to an image to be processed; determining a target feature screening scale according to the first feature screening scale and/or the second feature screening scale; the first feature screening scale is related to the image information to be processed and the feature point information, and the second feature screening scale is related to the optical parameters of the image acquisition equipment; and screening the at least two feature points according to the target feature screening scale to obtain screened feature points. The image processing method, the device and the electronic equipment are used for realizing reasonable screening of high-quality characteristic points with uniform spatial distribution.

Description

图像处理方法、装置和电子设备Image processing method, device and electronic device

技术领域Technical Field

本公开涉及图像处理技术领域,尤其涉及一种图像处理方法、装置和电子设备。The present disclosure relates to the field of image processing technology, and in particular to an image processing method, device and electronic device.

背景技术Background technique

当前基于视觉的定位技术、导航技术等利用图像与图像之间的匹配关系进行运动状态估计。其中,图像与图像之间的匹配效果除了受特征检测算法和匹配方法的影响,还与特征点的质量有关;提取高质量的特征点有助于提高图像匹配的正确率、效率和稳定性。Current vision-based positioning and navigation technologies use the matching relationship between images to estimate motion states. The matching effect between images is not only affected by feature detection algorithms and matching methods, but also by the quality of feature points. Extracting high-quality feature points helps improve the accuracy, efficiency, and stability of image matching.

高质量的特征点所需要具备的条件之一是其分布需要尽可能均匀,即高质量的特征点不能集中于图像中的某一区域,需要保证点与点之间有一定的距离,避免密集分布。因此,需要在特征提取后,对特征点进行筛选来保留分布较为均匀的高质量特征点。One of the conditions for high-quality feature points is that their distribution needs to be as uniform as possible, that is, high-quality feature points cannot be concentrated in a certain area of the image, and a certain distance must be maintained between points to avoid dense distribution. Therefore, after feature extraction, it is necessary to screen the feature points to retain high-quality feature points with a relatively uniform distribution.

发明内容Summary of the invention

提供该公开内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该公开内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This disclosure section is provided to introduce concepts in a brief form, which will be described in detail in the detailed description section below. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

本公开实施例提供了一种图像处理方法、装置和电子设备,用于实现空间分布均匀的高质量特征点的合理筛选。The embodiments of the present disclosure provide an image processing method, an apparatus, and an electronic device for realizing reasonable screening of high-quality feature points with uniform spatial distribution.

第一方面,本公开实施例提供了一种图像处理方法,包括:确定待处理图像对应的至少两个特征点;根据第一特征筛选尺度和/或第二特征筛选尺度,确定目标特征筛选尺度;其中,所述第一特征筛选尺度与待处理图像信息和特征点信息相关,所述第二特征筛选尺度与图像采集设备的光学参数相关;根据所述目标特征筛选尺度对所述至少两个特征点进行筛选,获得筛选出的特征点。In a first aspect, an embodiment of the present disclosure provides an image processing method, comprising: determining at least two feature points corresponding to an image to be processed; determining a target feature screening scale based on a first feature screening scale and/or a second feature screening scale; wherein the first feature screening scale is related to the image information to be processed and the feature point information, and the second feature screening scale is related to the optical parameters of an image acquisition device; screening the at least two feature points according to the target feature screening scale to obtain screened feature points.

第二方面,本公开实施例提供了又一种图像处理方法,包括:确定待处理图像对应的至少两个特征点和特征筛选尺度;将所述特征筛选尺度作为标准差,生成高斯函数;根据所述高斯函数对所述至少两个特征点进行多次筛选。In a second aspect, an embodiment of the present disclosure provides another image processing method, comprising: determining at least two feature points and a feature screening scale corresponding to the image to be processed; using the feature screening scale as the standard deviation to generate a Gaussian function; and screening the at least two feature points multiple times according to the Gaussian function.

第三方面,本公开实施例提供了一种图像处理装置,包括:确定单元,用于确定待处理图像对应的至少两个特征点;所述确定单元还用于根据第一特征筛选尺度和/或第二特征筛选尺度,确定目标特征筛选尺度;其中,所述第一特征筛选尺度与待处理图像信息和特征点信息相关,所述第二特征筛选尺度与图像采集设备的光学参数相关;筛选单元,用于根据所述目标特征筛选尺度对所述至少两个特征点进行筛选,获得筛选出的特征点。In a third aspect, an embodiment of the present disclosure provides an image processing device, comprising: a determination unit, used to determine at least two feature points corresponding to an image to be processed; the determination unit is also used to determine a target feature screening scale based on a first feature screening scale and/or a second feature screening scale; wherein the first feature screening scale is related to the image information to be processed and the feature point information, and the second feature screening scale is related to the optical parameters of an image acquisition device; a screening unit, used to screen the at least two feature points according to the target feature screening scale to obtain screened feature points.

第四方面,本公开实施例提供了又一种图像处理装置,包括:确定单元,用于确定待处理图像对应的至少两个特征点和特征筛选尺度;生成单元,用于将所述特征筛选尺度作为标准差,生成高斯函数;筛选单元,用于根据所述高斯函数对所述至少两个特征点进行多次筛选。In a fourth aspect, an embodiment of the present disclosure provides another image processing device, comprising: a determination unit, used to determine at least two feature points and a feature screening scale corresponding to an image to be processed; a generation unit, used to generate a Gaussian function using the feature screening scale as a standard deviation; and a screening unit, used to perform multiple screening on the at least two feature points according to the Gaussian function.

第五方面,本公开实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面或者第二方面所述的图像处理方法。In a fifth aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the image processing method as described in the first aspect or the second aspect.

第六方面,本公开实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面或者第二方面所述的图像处理方法。In a sixth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the image processing method as described in the first aspect or the second aspect.

本公开实施例提供的图像处理方法、装置和电子设备,考虑图像本身受到分辨率的制约,分辨率与图像采集设备的光学参数相关,从而,图像采集设备的光学参数影响特征点之间的距离。基于此,利用与图像信息和特征点信息相关的特征筛选尺度,和/或与图像采集设备的光学参数相关的特征筛选尺度作为先验信息,确定出特征点的筛选尺度,并基于该特征点的筛选尺度对特征点进行筛选;使得特征点的筛选规避由于分辨率带来的影响,进而实现空间分布均匀的高质量特征点的合理筛选。The image processing method, device and electronic device provided by the embodiments of the present disclosure take into account that the image itself is restricted by the resolution, and the resolution is related to the optical parameters of the image acquisition device, so that the optical parameters of the image acquisition device affect the distance between the feature points. Based on this, the feature screening scale related to the image information and the feature point information, and/or the feature screening scale related to the optical parameters of the image acquisition device are used as prior information to determine the screening scale of the feature points, and the feature points are screened based on the screening scale of the feature points; so that the screening of the feature points avoids the influence caused by the resolution, and then realizes the reasonable screening of high-quality feature points with uniform spatial distribution.

以及,通过基于特征筛选尺度生成的高斯函数对至少两个特征点进行多次筛选,实现特征点的迭代筛选,保留尽可能均匀的特征点的分布;使得响应足够大、距离稍近的特征点也能保留下来,避免被粗暴的筛选掉,从而合理筛选出空间分布均匀的高质量特征点。Furthermore, at least two feature points are screened multiple times by using a Gaussian function generated based on the feature screening scale to achieve iterative screening of feature points and retain the distribution of feature points as evenly as possible; feature points with sufficiently large responses and slightly close distances can also be retained to avoid being roughly screened out, thereby reasonably screening out high-quality feature points with uniform spatial distribution.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

图1是根据本公开的图像处理方法的一个实施例的流程图;FIG1 is a flow chart of an embodiment of an image processing method according to the present disclosure;

图2是根据本公开的图像处理方法的另一个实施例的流程图;FIG2 is a flow chart of another embodiment of an image processing method according to the present disclosure;

图3是根据本公开的图像处理方法的另一个实施例的流程图;FIG3 is a flow chart of another embodiment of an image processing method according to the present disclosure;

图4是根据本公开的图像处理方法的另一个实施例的流程图;FIG4 is a flow chart of another embodiment of an image processing method according to the present disclosure;

图5是根据本公开的图像处理装置的一个实施例的结构示意图;FIG5 is a schematic structural diagram of an image processing device according to an embodiment of the present disclosure;

图6是根据本公开的图像处理装置的又一个实施例的结构示意图;FIG6 is a schematic structural diagram of another embodiment of an image processing device according to the present disclosure;

图7是本公开的一个实施例的图像处理方法可以应用于其中的示例性系统架构;FIG. 7 is an exemplary system architecture in which the image processing method according to an embodiment of the present disclosure may be applied;

图8是根据本公开实施例提供的电子设备的基本结构的示意图。FIG8 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. In addition, the method embodiments may include additional steps and/or omit the steps shown. The scope of the present disclosure is not limited in this respect.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

本公开的技术方案可以应用于各类涉及到特征点提取图像处理场景中,在一些图像处理场景中,可能需要进行图像之间的匹配,例如:基于视觉的定位场景、导航场景等,而图像之间的匹配需要利用图像的特征点,从而,通过对图像进行处理,获取图像特征点。在另一些图像处理场景中,可能需要对图像进行识别,例如:目标对象的识别等,为了实现目标对象的更准确的识别,需要从图像中提取特征点。The technical solution disclosed in the present invention can be applied to various image processing scenarios involving feature point extraction. In some image processing scenarios, it may be necessary to match images, such as vision-based positioning scenarios, navigation scenarios, etc., and the matching between images requires the use of image feature points, so that the image feature points are obtained by processing the image. In other image processing scenarios, it may be necessary to identify the image, such as the identification of the target object, etc. In order to achieve more accurate identification of the target object, it is necessary to extract feature points from the image.

不管是哪种图像处理场景,在进行特征点提取时,都需要进行特征点的筛选,以保证最终的特征点为高质量的特征点。Regardless of the image processing scenario, when extracting feature points, feature points need to be screened to ensure that the final feature points are high-quality feature points.

相关技术中,采用特征点提取算法在全图范围内进行特征点提取。特征点提取算法,例如:Harris(哈里斯提出的一种角点提取算法)、Fast(Features fromacceleratedsegment test,角点检测算法)等特征点提取算法。In the related art, feature point extraction algorithms are used to extract feature points in the entire image. Feature point extraction algorithms include, for example, Harris (a corner point extraction algorithm proposed by Harris), Fast (Features from accelerated segment test, corner point detection algorithm), and other feature point extraction algorithms.

在这些相关技术中,根据图像内容的不同,可能出现检测到的特征点集中于图像中的某一区域的现象。进而,在相关的应用场景中,若特征点的距离较近,计算的描述子可能相似度较高,则非常容易在待匹配图像中搜索到误匹配的特征点;另一方面,特征点过于集中也会导致对全图其他部分特征点分布较少,使得全图整体位姿的解算存在更大偏差。In these related technologies, depending on the image content, the detected feature points may be concentrated in a certain area of the image. Furthermore, in related application scenarios, if the distance between feature points is close, the calculated descriptors may have a high similarity, which makes it very easy to search for mismatched feature points in the image to be matched; on the other hand, too much concentration of feature points will also lead to fewer feature points in other parts of the whole image, resulting in greater deviation in the solution of the overall pose of the whole image.

因此,相关技术在全图范围内进行特征点提取,导致提取的特征点分布不均匀,不能实现空间分布均匀的高质量特征点的合理提取或者筛选。Therefore, the related technology extracts feature points in the entire image, resulting in uneven distribution of the extracted feature points, and cannot achieve reasonable extraction or screening of high-quality feature points with uniform spatial distribution.

基于此,本公开实施例提供的特征点的筛选方案,一方面,考虑图像本身受到分辨率的制约,分辨率与图像采集设备的光学参数相关,从而,图像采集设备的光学参数影响特征点之间的距离。则,利用与图像信息和特征点信息相关的特征筛选尺度,以及与图像采集设备的光学参数相关的特征筛选尺度作为先验信息,确定出特征点的筛选尺度,并基于该特征点的筛选尺度对特征点进行筛选;使得特征点的筛选规避由于分辨率带来的影响,进而实现空间分布均匀的高质量特征点的合理筛选。Based on this, the feature point screening scheme provided by the embodiment of the present disclosure, on the one hand, takes into account that the image itself is restricted by the resolution, and the resolution is related to the optical parameters of the image acquisition device, so that the optical parameters of the image acquisition device affect the distance between the feature points. Then, the feature screening scale related to the image information and the feature point information, and the feature screening scale related to the optical parameters of the image acquisition device are used as prior information to determine the screening scale of the feature points, and the feature points are screened based on the screening scale of the feature points; so that the screening of feature points avoids the influence caused by the resolution, and then realizes the reasonable screening of high-quality feature points with uniform spatial distribution.

另一方面,基于特征筛选尺度生成的高斯函数,对至少两个特征点进行多次筛选,实现特征点的迭代筛选,保留尽可能均匀的特征点的分布;使得响应足够大、距离稍近的特征点也能保留下来,避免被粗暴的筛选掉,从而合理筛选出空间分布均匀的高质量特征点。On the other hand, based on the Gaussian function generated by the feature screening scale, at least two feature points are screened multiple times to achieve iterative screening of feature points and retain the distribution of feature points as evenly as possible; feature points with sufficiently large responses and slightly closer distances can also be retained to avoid being roughly screened out, thereby reasonably screening out high-quality feature points with uniform spatial distribution.

请参考图1,其示出了根据本公开的图像处理方法的一个实施例的流程。该图像处理方法可以应用于终端设备。如图1所示该图像处理方法,包括以下步骤:Please refer to FIG. 1, which shows a flow chart of an embodiment of an image processing method according to the present disclosure. The image processing method can be applied to a terminal device. As shown in FIG. 1, the image processing method includes the following steps:

步骤101,确定待处理图像对应的至少两个特征点。Step 101: determine at least two feature points corresponding to the image to be processed.

在一些应用场景中,待处理图像为需要进行图像匹配的图像。在另一些应用场景中,待处理图像为需要进行目标对象的识别的图像。In some application scenarios, the image to be processed is an image that needs to be matched. In other application scenarios, the image to be processed is an image that needs to be identified as a target object.

在一些实施例中,待处理图像的数量为1,则针对该待处理图像作相应的处理。在另一些实施例中,待处理图像的数量大于1,则针对每张待处理图像,按照相同的处理方法分别进行处理。In some embodiments, if the number of images to be processed is 1, then the image to be processed is processed accordingly. In other embodiments, if the number of images to be processed is greater than 1, then each image to be processed is processed separately according to the same processing method.

在一些实施例中,步骤101中的多个特征点为基于待处理图像提取出的原始特征点,即没有经过任何处理的特征点。在另一些实施例中,步骤101中的多个特征点为经过初步筛选处理的特征点。例如:基于待处理图像提取出100个特征点,通过对该100个特征点进行初筛,删除了其中的10个特征点,则初步筛选出的特征点为剩下的90个特征点。In some embodiments, the multiple feature points in step 101 are original feature points extracted from the image to be processed, that is, feature points that have not been processed. In other embodiments, the multiple feature points in step 101 are feature points that have been preliminarily screened. For example, 100 feature points are extracted from the image to be processed, and 10 of the 100 feature points are deleted by preliminarily screening the 100 feature points. Then, the preliminarily screened feature points are the remaining 90 feature points.

因此,作为一种可选的实施方式,步骤101包括:获取从待处理图像中提取出的至少两个初始特征点;确定至少两个初始特征点分别对应的特征点响应值;根据至少两个初始特征点分别对应的特征点响应值对至少两个初始特征点进行初步筛选,并将初步筛选出的特征点确定为待处理图像的至少两个特征点。Therefore, as an optional implementation, step 101 includes: obtaining at least two initial feature points extracted from the image to be processed; determining feature point response values corresponding to the at least two initial feature points; performing preliminary screening of the at least two initial feature points according to the feature point response values corresponding to the at least two initial feature points, and determining the preliminary screened feature points as at least two feature points of the image to be processed.

在一些实施例中,至少两个初始特征点基于预设的特征提取算法实现提取。特征提取算法包括但不限于:FAST,Harris,SIFT(Scale-invariant feature transform,尺度不变特征变换),SURF(Speeded Up Robust Features,加速稳健特征)等算法。In some embodiments, at least two initial feature points are extracted based on a preset feature extraction algorithm, including but not limited to FAST, Harris, SIFT (Scale-invariant feature transform), SURF (Speeded Up Robust Features), and other algorithms.

进一步地,至少两个初始特征点分别对应的特征点响应值可以是对应的特征提取算法对应的响应值。在另一些实施例中,不管采用何种特征提取算法,特征点响应值采用Harris角点响应值。Furthermore, the feature point response values corresponding to the at least two initial feature points may be response values corresponding to the corresponding feature extraction algorithms. In other embodiments, no matter which feature extraction algorithm is used, the feature point response value uses the Harris corner point response value.

在一些实施例中,预设特征点响应值阈值,将特征点响应值小于或者等于该特征点响应值阈值的特征点删除;保留特征点响应值大于该特征点响应值阈值的特征点。其中,特征点响应值阈值根据对应的特征点响应值确定方式确定,例如:针对Harris角点响应值,设置对应的Harris角点响应阈值,在此不对具体的值作限定。In some embodiments, a feature point response value threshold is preset, and feature points whose feature point response values are less than or equal to the feature point response value threshold are deleted; feature points whose feature point response values are greater than the feature point response value threshold are retained. The feature point response value threshold is determined according to the corresponding feature point response value determination method, for example, for the Harris corner point response value, the corresponding Harris corner point response threshold is set, and the specific value is not limited here.

因此,作为一种可选的实施方式,特征点响应值为Harris角点响应值。相较于其他的响应值来说,Harris角点响应值能够更好的反映特征点的鲁棒性和特征点的质量,以提高最终筛选出的特征点的质量。Therefore, as an optional implementation, the feature point response value is a Harris corner point response value. Compared with other response values, the Harris corner point response value can better reflect the robustness and quality of the feature points, so as to improve the quality of the feature points finally screened out.

在一些应用场景中,为了提高特征点的提取效率,在基于待处理图像进行特征提取之前,先对图像进行分块,再基于分块之后的图像进行特征提取。In some application scenarios, in order to improve the extraction efficiency of feature points, before performing feature extraction based on the image to be processed, the image is first divided into blocks, and then feature extraction is performed based on the divided image.

因此,作为一种可选的实施方式,待处理图像为经过图像分块处理的图像,至少两个初始特征点为基于至少两个图像块提取出的特征点。Therefore, as an optional implementation, the image to be processed is an image that has been processed by image block processing, and the at least two initial feature points are feature points extracted based on at least two image blocks.

在一些实施例中,对至少两个图像块进行排序,例如:对至少两个图像块从0开始编号;从而,在提取特征点时,按照图像块的编号顺序依次进行特征点提取,以提高特征点提取的效率和精度,避免重复或者错误提取等情况的出现。In some embodiments, at least two image blocks are sorted, for example, at least two image blocks are numbered starting from 0; thus, when extracting feature points, feature points are extracted in sequence according to the numbering order of the image blocks to improve the efficiency and accuracy of feature point extraction and avoid duplication or erroneous extraction.

步骤102,根据第一特征筛选尺度和/或第二特征筛选尺度,确定目标特征筛选尺度。Step 102: determining a target feature screening scale according to the first feature screening scale and/or the second feature screening scale.

其中,第一特征筛选尺度与待处理图像信息和特征点信息相关,第二特征筛选尺度与图像采集设备的光学参数相关。The first feature screening scale is related to the image information to be processed and the feature point information, and the second feature screening scale is related to the optical parameters of the image acquisition device.

在一些实施例中,待处理图像信息包括:待处理图像的尺寸,特征点信息包括:预设特征点数量和至少两个特征点的数量。In some embodiments, the image information to be processed includes: the size of the image to be processed, and the feature point information includes: the number of preset feature points and the number of at least two feature points.

其中,预设特征点数量可以是预设的特征点数量阈值,结合具体的应用场景进行预设,在此不对具体值作限定。The preset number of feature points may be a preset threshold value of the number of feature points, which is preset in combination with a specific application scenario, and no specific value is limited here.

从而,该图像处理方法还包括:根据待处理图像的尺寸、预设特征点数量和至少两个特征点的数量,确定第一特征筛选尺度。Therefore, the image processing method further includes: determining a first feature screening scale according to the size of the image to be processed, the number of preset feature points and the number of at least two feature points.

在一些实施例中,待处理图像的尺寸可以包括:待处理图像的宽度和高度。In some embodiments, the size of the image to be processed may include: the width and height of the image to be processed.

在一些实施例中,第一特征筛选尺度表示为:其中,w为待处理图像的宽度,h为待处理图像的高度,fp为预设特征点数量,f0为至少两个特征点的数量。In some embodiments, the first feature screening metric is expressed as: Wherein, w is the width of the image to be processed, h is the height of the image to be processed, f p is the number of preset feature points, and f 0 is the number of at least two feature points.

在一些实施例中,图像采集设备为相机,图像采集设备的光学参数包括:点扩散函数和半高宽;该光学参数可由相机模组厂商提供。并且,该光学参数可以理解为,从光学相机分辨率角度给出的特征点筛选先验信息。In some embodiments, the image acquisition device is a camera, and the optical parameters of the image acquisition device include: point spread function and half-height width; the optical parameters can be provided by the camera module manufacturer. In addition, the optical parameters can be understood as feature point screening prior information given from the perspective of optical camera resolution.

进而,该图像处理方法还包括:根据点扩散函数和半高宽,确定第二特征筛选尺度。Furthermore, the image processing method further includes: determining a second feature screening scale according to the point spread function and the half-height width.

在一些实施例中,第二特征筛选尺度可表示为:FWHM(PSF);其中,PSF全称为pointspread function,代表点扩散函数,FWHM全称为Full width half maximum,代表半高宽。In some embodiments, the second feature screening scale can be expressed as: FWHM (PSF); wherein PSF stands for pointspread function, which represents point spread function, and FWHM stands for Full width half maximum, which represents half-height width.

可以理解,若根据第一特征筛选尺度确定目标特征筛选尺度,则只需确定第一特征筛选尺度。若根据第二特征筛选尺度确定目标特征筛选尺度,则只需确定第二特征筛选尺度。若根据第一特征筛选尺度和第二特征筛选尺度确定目标特征筛选尺度,则需确定第一特征筛选尺度和第二特征筛选尺度。It can be understood that if the target feature screening scale is determined according to the first feature screening scale, only the first feature screening scale needs to be determined. If the target feature screening scale is determined according to the second feature screening scale, only the second feature screening scale needs to be determined. If the target feature screening scale is determined according to the first feature screening scale and the second feature screening scale, the first feature screening scale and the second feature screening scale need to be determined.

进一步地,结合第一特征筛选尺度和/或第二特征筛选尺度,可确定目标特征筛选尺度。Furthermore, the target feature screening scale may be determined by combining the first feature screening scale and/or the second feature screening scale.

作为一种可选的实施方式,步骤102包括:确定第一特征筛选尺度和第二特征筛选尺度中的最大特征筛选尺度;根据最大特征筛选尺度,确定目标特征筛选尺度。As an optional implementation, step 102 includes: determining a maximum feature screening scale between the first feature screening scale and the second feature screening scale; and determining a target feature screening scale according to the maximum feature screening scale.

在一些实施例中,目标特征筛选尺度等于最大特征筛选尺度。In some embodiments, the target feature screening dimension is equal to the maximum feature screening dimension.

在另一些实施例中,目标特征筛选尺度为最大特征筛选尺度和预设尺度增益的乘积。其中,预设尺度增益可以根据不同的应用场景进行合理设置。例如,根据经验或者需求进行设置,其依据可以是算法的耗时、对内存的占用等。可以理解,在尺度增益越大的情况下,特征点的筛选速度越快;同理,尺度增益越小,特征点的筛选速度越小。In other embodiments, the target feature screening scale is the product of the maximum feature screening scale and the preset scale gain. The preset scale gain can be reasonably set according to different application scenarios. For example, it can be set according to experience or demand, and the basis can be the time consumption of the algorithm, the memory usage, etc. It can be understood that the larger the scale gain, the faster the feature point screening speed; similarly, the smaller the scale gain, the slower the feature point screening speed.

作为另一种可选的实施方式,步骤102包括:将第一特征筛选尺度确定为目标特征筛选尺度。或者,目标特征筛选尺度为第一特征筛选尺度和预设尺度增益的乘积。其中,预设尺度增益参照前述实施例的介绍。As another optional implementation, step 102 includes: determining the first feature screening scale as the target feature screening scale. Alternatively, the target feature screening scale is the product of the first feature screening scale and a preset scale gain. The preset scale gain refers to the introduction of the above embodiment.

作为又一种可选的实施方式,步骤102包括:将第二特征筛选尺度确定为目标特征筛选尺度。或者,目标特征筛选尺度为第二特征筛选尺度和预设尺度增益的乘积。其中,预设尺度增益参照前述实施例的介绍。As another optional implementation, step 102 includes: determining the second feature screening scale as the target feature screening scale. Alternatively, the target feature screening scale is the product of the second feature screening scale and a preset scale gain. The preset scale gain refers to the introduction of the above embodiment.

步骤103,根据目标特征筛选尺度对至少两个特征点进行筛选,获得筛选出的特征点。Step 103 , screening at least two feature points according to the target feature screening scale to obtain screened feature points.

可以理解,筛选出的特征点为至少两个特征点中,经过筛选之后,保留的特征点。It can be understood that the filtered feature point is a feature point retained after filtering among at least two feature points.

在本公开的实施例中,考虑图像本身受到分辨率的制约,分辨率与图像采集设备的光学参数相关,从而,图像采集设备的光学参数影响特征点之间的距离。基于此,利用与图像信息和特征点信息相关的特征筛选尺度,和/或与图像采集设备的光学参数相关的特征筛选尺度作为先验信息,确定出特征点的筛选尺度,并基于该特征点的筛选尺度对特征点进行筛选;使得特征点的筛选规避由于分辨率带来的影响,进而实现空间分布均匀的高质量特征点的合理筛选。In the embodiments of the present disclosure, it is considered that the image itself is restricted by the resolution, and the resolution is related to the optical parameters of the image acquisition device, so that the optical parameters of the image acquisition device affect the distance between the feature points. Based on this, the feature screening scale related to the image information and the feature point information, and/or the feature screening scale related to the optical parameters of the image acquisition device are used as prior information to determine the screening scale of the feature points, and the feature points are screened based on the screening scale of the feature points; so that the screening of the feature points avoids the influence caused by the resolution, and then realizes the reasonable screening of high-quality feature points with uniform spatial distribution.

在一些实施例中,可以计算目标特征点与邻域范围内的特征点之间的距离,然后将距离小于该目标特征筛选尺度的特征点删除,保留距离大于该目标特征筛选尺度的特征点。In some embodiments, the distance between the target feature point and the feature points within the neighborhood may be calculated, and then the feature points whose distance is less than the target feature screening scale may be deleted, and the feature points whose distance is greater than the target feature screening scale may be retained.

其中,特征点之间的距离可以为曼哈顿距离或者欧氏距离等,对应的,在计算特征点之间的距离时,基于特征点的坐标,采用对应的距离计算方法进行计算,在本公开实施例中不作限定。The distance between feature points may be Manhattan distance or Euclidean distance, etc. Correspondingly, when calculating the distance between feature points, the corresponding distance calculation method is used based on the coordinates of the feature points, which is not limited in the disclosed embodiments.

目标特征点可以是当前剩余的特征点中特征点响应值最大的特征点;则,每次筛选之前,先确定当前剩余的特征点中特征点响应值最大的特征点,再基于该特征点和目标特征筛选尺度进行特征筛选。特征点的特征点响应值可以在筛选之前确定,也可以在筛选过程中确定,其可以是Harris角点响应值。The target feature point may be the feature point with the largest feature point response value among the currently remaining feature points; then, before each screening, the feature point with the largest feature point response value among the currently remaining feature points is first determined, and then feature screening is performed based on the feature point and the target feature screening scale. The feature point response value of the feature point can be determined before screening or during the screening process, and it can be a Harris corner point response value.

在另一些实施例中,还可以利用目标特征筛选尺度实现迭代筛选。In other embodiments, iterative screening can also be implemented using a target feature screening scale.

因此,作为一种可选的实施方式,步骤103包括:将目标特征筛选尺度作为标准差,生成高斯函数;根据高斯函数对至少两个特征点进行多次筛选。Therefore, as an optional implementation, step 103 includes: using the target feature screening scale as the standard deviation to generate a Gaussian function; and screening at least two feature points multiple times according to the Gaussian function.

在一些实施例中,高斯函数可以是二维高斯函数,该二维高斯函数为对称二维高斯函数,其均值为0,需求取的是标准差。In some embodiments, the Gaussian function may be a two-dimensional Gaussian function, which is a symmetric two-dimensional Gaussian function with a mean of 0, and the standard deviation is required.

在一些实施例中,在生成高斯函数之后,还可以进行最大值归一化处理,即将高斯函数的封顶作最大值归一化处理,以便于后续的处理。In some embodiments, after the Gaussian function is generated, maximum value normalization processing may be performed, that is, the capping of the Gaussian function may be subjected to maximum value normalization processing to facilitate subsequent processing.

从而,二维高斯函数的尺寸大小一般可取大于等于2倍的标准差加1。例如:假设标准差为3,则高斯窗口大小可取7*7,该高斯窗口用作下一步特征筛选的先验信息。Therefore, the size of the two-dimensional Gaussian function can generally be greater than or equal to 2 times the standard deviation plus 1. For example, assuming the standard deviation is 3, the Gaussian window size can be 7*7, and the Gaussian window is used as prior information for the next step of feature screening.

可以理解,高斯函数的相关技术,可参照本领域成熟的技术,在此不作详细介绍。It can be understood that the related technology of Gaussian function can refer to the mature technology in the field and will not be introduced in detail here.

进而,作为一种可选的实施方式,根据高斯函数对至少两个特征点进行多次筛选,包括:获取至少两个特征点对应的特征点响应值矩阵,特征点响应值矩阵中包括各个特征点的特征点响应值;根据高斯函数确定高斯矩阵;根据特征点响应值矩阵、高斯矩阵和预设增益对至少两个特征点进行多次筛选。Furthermore, as an optional implementation, at least two feature points are screened multiple times according to a Gaussian function, including: obtaining a feature point response value matrix corresponding to at least two feature points, the feature point response value matrix including feature point response values of each feature point; determining a Gaussian matrix according to the Gaussian function; and screening at least two feature points multiple times according to the feature point response value matrix, the Gaussian matrix and a preset gain.

其中,至少两个特征点对应的特征点响应值矩阵,也可称作特征点响应图,其包括各个特征点的特征点响应值,并且,各个特征点通过特征点的像素横纵坐标表示,是一个跟待处理图像尺寸相同的矩阵。Among them, the feature point response value matrix corresponding to at least two feature points can also be called a feature point response map, which includes the feature point response values of each feature point, and each feature point is represented by the horizontal and vertical coordinates of the pixel of the feature point, which is a matrix with the same size as the image to be processed.

在一些实施例中,高斯矩阵即前述实施例中介绍的高斯窗口,也是一个固定尺寸的矩阵。In some embodiments, the Gaussian matrix, ie, the Gaussian window introduced in the aforementioned embodiments, is also a matrix of fixed size.

在一些实施例中,预设增益可根据噪声水平进行配置。例如,噪声水平越大,增益越大;噪声水平越低,增益越小。In some embodiments, the preset gain may be configured according to the noise level. For example, the greater the noise level, the greater the gain; and the lower the noise level, the smaller the gain.

在一些实施例中,噪声水平可根据噪声信息确定,可以为外部先验信息,在此不对具体的获取方式作限定。In some embodiments, the noise level may be determined based on noise information, which may be external a priori information, and the specific acquisition method is not limited herein.

进而,根据特征点响应值矩阵、高斯矩阵和预设增益,可对至少两个特征点进行多次的迭代筛选。Furthermore, according to the feature point response value matrix, the Gaussian matrix and the preset gain, multiple iterative screenings may be performed on at least two feature points.

作为一种可选的实施方式,多次筛选中的任意一次筛选过程包括:基于目标特征点、高斯矩阵的行列数量和特征点响应值矩阵确定邻域特征点响应值矩阵;目标特征点为当前待筛选的特征点中特征点响应值最大的特征点,邻域特征点响应值矩阵的行列数量与高斯矩阵的行列数量相同,邻域特征点响应值矩阵中包括目标特征点的邻域特征点的特征点响应值;将邻域特征点响应值矩阵与高斯矩阵和预设增益的乘积矩阵作差,获得残差矩阵;确定残差矩阵中的目标矩阵元素,并将目标矩阵元素置为预设值,以从待处理图像中删除所述目标矩阵元素对应的特征点;目标矩阵元素小于所述预设值。As an optional implementation, any one of the multiple screening processes includes: determining a neighborhood feature point response value matrix based on the target feature point, the number of rows and columns of the Gaussian matrix, and the feature point response value matrix; the target feature point is the feature point with the largest feature point response value among the feature points currently to be screened, the number of rows and columns of the neighborhood feature point response value matrix is the same as the number of rows and columns of the Gaussian matrix, and the neighborhood feature point response value matrix includes the feature point response values of the neighborhood feature points of the target feature point; subtracting the neighborhood feature point response value matrix from the product matrix of the Gaussian matrix and the preset gain to obtain a residual matrix; determining the target matrix element in the residual matrix, and setting the target matrix element to a preset value to delete the feature point corresponding to the target matrix element from the image to be processed; the target matrix element is less than the preset value.

在这种实施方式中,在任意一次筛选过程中,需要先确定目标特征点,目标特征点为当前待筛选的特征点中特征点响应值最大的特征点。In this implementation, in any screening process, it is necessary to first determine the target feature point, which is the feature point with the largest feature point response value among the feature points currently to be screened.

然后,按照高斯矩阵的行列数量,在特征点响应值矩阵中找到目标特征点对应的邻域特征点响应值矩阵。例如,假设高斯矩阵为7*7的矩阵,则,以特征点响应值为中心,在特征点响应值矩阵中,提取出7*7大小的邻域特征点响应值矩阵。Then, according to the number of rows and columns of the Gaussian matrix, the neighborhood feature point response value matrix corresponding to the target feature point is found in the feature point response value matrix. For example, assuming that the Gaussian matrix is a 7*7 matrix, then, with the feature point response value as the center, a 7*7 neighborhood feature point response value matrix is extracted from the feature point response value matrix.

接着,基于邻域特征点响应值矩阵可以进行特征点的筛选,在本公开的实施方式中,并不是采用直接筛选的方式,而是采用间接筛选的方式。具体的,将邻域特征点响应值矩阵与高斯矩阵和预设增益的乘积矩阵作差,获得残差矩阵。Next, feature points can be screened based on the neighborhood feature point response value matrix. In the embodiment of the present disclosure, direct screening is not adopted, but indirect screening is adopted. Specifically, the neighborhood feature point response value matrix is subtracted from the product matrix of the Gaussian matrix and the preset gain to obtain a residual matrix.

举例来说,假设高斯矩阵为A,邻域特征点响应值矩阵为B,预设增益为G,则残差矩阵为B-G*A,该残差矩阵对应到前述的特征点响应值矩阵的理解,也可以称之为残差图。For example, assuming that the Gaussian matrix is A, the neighborhood feature point response value matrix is B, and the preset gain is G, the residual matrix is B-G*A. The residual matrix corresponds to the understanding of the aforementioned feature point response value matrix and can also be called a residual map.

进一步地,基于残差矩阵,其中的矩阵元素的值应当符合预设值的条件。从而,先确定矩阵元素小于预设值的目标矩阵元素,并将其值置为预设值。以及,若矩阵元素为预设值,代表该矩阵元素对应的特征点已经被删除。Furthermore, based on the residual matrix, the values of the matrix elements therein should meet the conditions of the preset values. Thus, the target matrix elements whose matrix elements are less than the preset values are first determined, and their values are set to the preset values. And, if the matrix element is the preset value, it means that the feature points corresponding to the matrix element have been deleted.

在一些实施例中,预设值可以为0;或者其他约束值,在此不作限定。In some embodiments, the preset value may be 0; or other constraint values, which are not limited here.

由于需要进行多次迭代筛选,因此,在每次迭代筛选之后,还可以记录相关信息,以根据相关信息判断是否需要停止迭代,或者继续执行迭代过程。Since multiple iterations of screening are required, relevant information may be recorded after each iteration of screening to determine whether to stop the iteration or continue the iteration process based on the relevant information.

因此,作为一种可选的实施方式,该任意一次筛选过程还包括:响应于检测到目标特征点不属于预设特征点统计表中的特征点,将目标特征点记录到预设特征点统计表中,并将特征点数量加1;其中,第一次筛选时,特征点数量为预设数量,预设特征点统计表为空;响应于检测到特征点数量达到预设特征点数量,将当前剩余的特征点确定为最终筛选出的特征点。Therefore, as an optional implementation, any screening process also includes: in response to detecting that the target feature point does not belong to the feature points in the preset feature point statistical table, recording the target feature point in the preset feature point statistical table, and increasing the number of feature points by 1; wherein, during the first screening, the number of feature points is the preset number, and the preset feature point statistical table is empty; in response to detecting that the number of feature points reaches the preset number of feature points, determining the currently remaining feature points as the feature points finally screened out.

在这种实施方式中,预设有特征点统计表,该特征点统计表可以用于记录已经被用于筛选的目标特征点,从而可以基于特征点统计表统计特征点数量,以基于特征点数量判断迭代是否结束。In this embodiment, a feature point statistics table is preset, which can be used to record the target feature points that have been used for screening, so that the number of feature points can be counted based on the feature point statistics table to determine whether the iteration is completed based on the number of feature points.

在特征点统计表中,可以记录各个特征点的坐标,在检测目标特征点是否属于特征点统计表时,将特征点统计表中各特征点的坐标与目标特征点的坐标进行比较,可实现检测。In the feature point statistics table, the coordinates of each feature point can be recorded. When detecting whether a target feature point belongs to the feature point statistics table, the coordinates of each feature point in the feature point statistics table are compared with the coordinates of the target feature point to achieve detection.

其中,预设特征点数量可结合具体的应用场景进行配置,在此不作具体的值作限定。The number of preset feature points can be configured in combination with specific application scenarios, and no specific value is limited here.

对应的,假设检测到特征点数量未达到预设特征点数量,则继续下一次筛选过程。Correspondingly, if the number of detected feature points does not reach the preset number of feature points, the next screening process will continue.

在一些实施例中,除了从特征点数量的角度进行判断,还可以结合迭代次数判断。In some embodiments, in addition to judging from the number of feature points, judgment may also be made in combination with the number of iterations.

作为一种可选的实施方式,该图像处理方法还包括:响应于检测到特征点的筛选次数大于或者等于预设筛选次数,展示用于指示预设增益不合理的提示信息。As an optional implementation, the image processing method further includes: in response to detecting that the number of screening times of the feature point is greater than or equal to the preset number of screening times, displaying prompt information indicating that the preset gain is unreasonable.

其中,预设筛选次数可取较大的值,从而,筛选次数一般不会达到该预设筛选次数,用于防止无限迭代循环。The preset number of screening times may be a larger value, so that the number of screening times generally does not reach the preset number of screening times, which is used to prevent an infinite iterative loop.

在这种实施方式中,在每次迭代之后,可将筛选次数加1;并判断当前的特征点的筛选次数是否大于或者等于预设筛选次数;若是,则展示用于指示预设增益不合理的提示信息;若否,则继续进行迭代。In this embodiment, after each iteration, the number of screenings may be increased by 1; and it is determined whether the number of screenings of the current feature point is greater than or equal to the preset number of screenings; if so, a prompt message indicating that the preset gain is unreasonable is displayed; if not, the iteration is continued.

在一些实施例中,提示信息可以是例如:“预设的增益不合理,需要调整”。In some embodiments, the prompt message may be, for example: "The preset gain is unreasonable and needs to be adjusted."

采用本公开实施例提供的特征点迭代筛选方式,并不是直接依照目标特征筛选尺度对大范围内的特征点进行筛选,而是利用矩阵之间的运算进行间接的、小范围内的筛选,从而,能够保留尽可能均匀的特征点的分布;使得响应足够大、距离稍近的特征点也能保留下来,避免被粗暴的筛选掉,从而合理筛选出空间分布均匀的高质量特征点。The iterative screening method of feature points provided in the embodiment of the present disclosure does not directly screen feature points in a large range according to the target feature screening scale, but uses matrix operations to perform indirect screening in a small range, thereby retaining the distribution of feature points as uniform as possible; feature points with sufficiently large responses and slightly close distances can also be retained to avoid being roughly screened out, thereby reasonably screening out high-quality feature points with uniform spatial distribution.

进一步参考图2和图3,作为前述的特征筛选方案在实际应用时的可选的流程。Further reference is made to FIG. 2 and FIG. 3 , which are optional processes for the aforementioned feature screening scheme in practical application.

在图2中,针对输入图像,先利用特征点提取算法实现特征提取;再基于提取的特征点进行特征点响应值计算。接着,保留特征点响应值大于预设响应值的特征点,实现特征点的初步筛选。再接着,统计特征点的数量,并结合特征点数量、输入图像的尺寸信息,以及预设的特征点上限、图像采集设备的光学参数确定特征点筛选尺度。进而,以特征点筛选尺度为标准差,生成二维高斯函数,并进行最大值归一化处理。进一步地,再利用二维高斯函数实现特征筛选,并输出图像以及筛选后的特征点。In Figure 2, for the input image, the feature point extraction algorithm is first used to realize feature extraction; then the feature point response value is calculated based on the extracted feature points. Next, the feature points whose feature point response values are greater than the preset response value are retained to realize the preliminary screening of the feature points. Next, the number of feature points is counted, and the feature point screening scale is determined by combining the number of feature points, the size information of the input image, the preset upper limit of the feature points, and the optical parameters of the image acquisition device. Then, the feature point screening scale is used as the standard deviation to generate a two-dimensional Gaussian function, and the maximum value normalization is performed. Furthermore, the two-dimensional Gaussian function is used to realize feature screening, and the image and the screened feature points are output.

在图3中,描述了特征点的迭代筛选过程,该迭代筛选过程的输入为:特征筛选先验矩阵,即高斯矩阵;特征点响应值矩阵,包含坐标和响应值;预设处理增益和最大迭代次数K。FIG3 shows an iterative screening process of feature points. The input of the iterative screening process is: a feature screening prior matrix, i.e., a Gaussian matrix; a feature point response value matrix, including coordinates and response values; a preset processing gain and a maximum number of iterations K.

首先,基于特征点响应值矩阵和预设处理增益,找到当前特征点响应值最大的特征点,基于该特征点和特征筛选先验矩阵计算残差图,即进行特征点筛选。First, based on the feature point response value matrix and the preset processing gain, the feature point with the largest current feature point response value is found, and the residual map is calculated based on the feature point and the feature screening prior matrix, that is, feature point screening is performed.

接着,迭代次数K自增1,并进行迭代次数是否小于最大迭代次数Km的判断。若是,则更新特征点统计表;若否,提示预设处理增益不合理,需要调整。Next, the number of iterations K is incremented by 1, and a determination is made as to whether the number of iterations is less than the maximum number of iterations Km. If so, the feature point statistics table is updated; if not, it is indicated that the preset processing gain is unreasonable and needs to be adjusted.

进一步地,在更新特征点统计表时,判断特征点坐标是否已存在于特征点统计表中,若是,则继续下一次迭代;若佛,则特征点数量自增1,并判断特征点数量是否小于预设特征点数量。若是,则继续下一次迭代;若否,则输出筛选后的特征点坐标。Furthermore, when updating the feature point statistics table, it is determined whether the feature point coordinates already exist in the feature point statistics table. If so, the next iteration is continued; if not, the number of feature points is increased by 1, and it is determined whether the number of feature points is less than the preset number of feature points. If so, the next iteration is continued; if not, the filtered feature point coordinates are output.

请参考图4,为本公开的实施例提供的图像处理方法的又一实施方式的流程图,该图像处理方法包括:Please refer to FIG4 , which is a flowchart of another implementation of an image processing method provided in an embodiment of the present disclosure. The image processing method includes:

步骤401,确定待处理图像对应的至少两个特征点和特征筛选尺度。Step 401: Determine at least two feature points and a feature screening scale corresponding to the image to be processed.

其中,特征筛选尺度可参照图1所示的流程进行确定;也可以利用其他的实施方式确定,例如:根据噪声信息确定、采用预设的特征筛选尺度等,在此不作限定。The feature screening scale may be determined with reference to the process shown in FIG. 1 ; it may also be determined using other implementations, for example, based on noise information, using a preset feature screening scale, etc., which is not limited here.

至少两个特征点的确定过程,参照前述实施例中的介绍,在此不再重复介绍。The process of determining at least two feature points has been described in the foregoing embodiments and will not be repeated here.

步骤402,将特征筛选尺度作为标准差,生成高斯函数。Step 402, using the feature screening scale as the standard deviation to generate a Gaussian function.

步骤403,根据高斯函数对至少两个特征点进行多次筛选。Step 403: Screen at least two feature points multiple times according to the Gaussian function.

在本公开的实施例中,可从两方面改进特征点的筛选,一方面是特征筛选尺度的计算的改进,另一方面是特征点迭代筛选过程的改进。并且,这两方面可结合使用,也可单独使用。因此,本公开的实施例可保护三种方案:一是基于改进的特征点筛选尺度的计算方式实现的特征点筛选方案,二是基于改进的特征点迭代筛选过程实现的特征点筛选方案,三是基于改进的特征点筛选尺度的计算方式,以及改进的特征点迭代筛选过程共同实现的特征点筛选方案。In the embodiments of the present disclosure, the screening of feature points can be improved from two aspects: one is the improvement of the calculation of the feature screening scale, and the other is the improvement of the iterative screening process of the feature points. Moreover, these two aspects can be used in combination or separately. Therefore, the embodiments of the present disclosure can protect three schemes: one is a feature point screening scheme based on the calculation method of the improved feature point screening scale, the second is a feature point screening scheme based on the improved feature point iterative screening process, and the third is a feature point screening scheme based on the calculation method of the improved feature point screening scale and the improved feature point iterative screening process.

因此,步骤402和步骤403的实施方式,可参照前述实施方式中的介绍。Therefore, the implementation of step 402 and step 403 may refer to the introduction in the aforementioned implementation.

从而,步骤403可包括:获取至少两个特征点对应的特征点响应值矩阵,特征点响应值矩阵中包括各个特征点的特征点响应值;根据高斯函数确定高斯矩阵;根据特征点响应值矩阵、高斯矩阵和预设增益对至少两个特征点进行多次筛选。Thus, step 403 may include: obtaining a feature point response value matrix corresponding to at least two feature points, the feature point response value matrix including feature point response values of each feature point; determining a Gaussian matrix according to a Gaussian function; and screening at least two feature points multiple times according to the feature point response value matrix, the Gaussian matrix and a preset gain.

以及,多次筛选中的任意一次筛选过程包括:基于目标特征点、高斯矩阵的行列数量和特征点响应值矩阵确定邻域特征点响应值矩阵;目标特征点为当前待筛选的特征点中特征点响应值最大的特征点,邻域特征点响应值矩阵的行列数量与高斯矩阵的行列数量相同,邻域特征点响应值矩阵中包括目标特征点的邻域特征点的特征点响应值;将邻域特征点响应值矩阵与高斯矩阵和预设增益的乘积矩阵作差,获得残差矩阵;确定残差矩阵中的目标矩阵元素,并将目标矩阵元素置为预设值,以从待处理图像中删除目标矩阵元素对应的特征点;目标矩阵元素小于预设值。And, any screening process in multiple screenings includes: determining a neighborhood feature point response value matrix based on the target feature point, the number of rows and columns of the Gaussian matrix and the feature point response value matrix; the target feature point is the feature point with the largest feature point response value among the feature points to be screened, the number of rows and columns of the neighborhood feature point response value matrix is the same as the number of rows and columns of the Gaussian matrix, and the neighborhood feature point response value matrix includes the feature point response values of the neighborhood feature points of the target feature point; subtracting the neighborhood feature point response value matrix from the product matrix of the Gaussian matrix and the preset gain to obtain a residual matrix; determining a target matrix element in the residual matrix, and setting the target matrix element to a preset value to delete the feature point corresponding to the target matrix element from the image to be processed; the target matrix element is less than the preset value.

该任意一次筛选过程还包括:响应于检测到目标特征点不属于预设特征点统计表中的特征点,将目标特征点记录到预设特征点统计表中,并将特征点数量加1;其中,第一次筛选时,特征点数量为预设数量,预设特征点统计表为空;响应于检测到特征点数量达到预设特征点数量,将当前剩余的特征点确定为最终筛选出的特征点。Any screening process also includes: in response to detecting that the target feature point does not belong to the feature points in the preset feature point statistical table, recording the target feature point in the preset feature point statistical table, and increasing the number of feature points by 1; wherein, during the first screening, the number of feature points is the preset number, and the preset feature point statistical table is empty; in response to detecting that the number of feature points reaches the preset number of feature points, determining the currently remaining feature points as the feature points finally screened out.

该图像处理方法还包括:响应于检测到特征点的筛选次数大于或者等于预设筛选次数,展示用于指示预设增益不合理的提示信息。The image processing method further includes: in response to detecting that the number of screening times of the feature point is greater than or equal to the preset number of screening times, displaying prompt information for indicating that the preset gain is unreasonable.

图4所示的流程的各步骤的详细实施方式,为了说明书的简洁,在此不再重复说明。For the sake of brevity, the detailed implementation of each step of the process shown in FIG. 4 will not be repeated here.

进一步参考图5,作为对图1所示方法的实现,本公开提供了一种图像处理装置的一个实施例,该装置实施例与图1所示的图像处理方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 5 , as an implementation of the method shown in FIG. 1 , the present disclosure provides an embodiment of an image processing device. The device embodiment corresponds to the image processing method embodiment shown in FIG. 1 , and the device can be specifically applied to various electronic devices.

如图5所示,本实施例的图像处理装置包括:As shown in FIG5 , the image processing device of this embodiment includes:

第一确定单元501,用于确定待处理图像对应的至少两个特征点;第一确定单元501,还用于根据第一特征筛选尺度和/或第二特征筛选尺度,确定目标特征筛选尺度;其中,所述第一特征筛选尺度与待处理图像信息和特征点信息相关,所述第二特征筛选尺度与图像采集设备的光学参数相关;第一筛选单元502,用于根据所述目标特征筛选尺度对所述至少两个特征点进行筛选,获得筛选出的特征点。The first determination unit 501 is used to determine at least two feature points corresponding to the image to be processed; the first determination unit 501 is also used to determine the target feature screening scale according to the first feature screening scale and/or the second feature screening scale; wherein the first feature screening scale is related to the image information to be processed and the feature point information, and the second feature screening scale is related to the optical parameters of the image acquisition device; the first screening unit 502 is used to screen the at least two feature points according to the target feature screening scale to obtain the screened feature points.

在一些实施例中,所述待处理图像信息包括:待处理图像的尺寸;所述特征点信息包括:预设特征点数量和所述至少两个特征点的数量;第一确定单元501,还用于根据所述待处理图像的尺寸、所述预设特征点数量和所述至少两个特征点的数量,确定所述第一特征筛选尺度。In some embodiments, the image information to be processed includes: the size of the image to be processed; the feature point information includes: the number of preset feature points and the number of the at least two feature points; the first determination unit 501 is also used to determine the first feature screening scale based on the size of the image to be processed, the number of preset feature points and the number of the at least two feature points.

在一些实施例中,所述光学参数包括:点扩散函数和半高宽;所述图像处理方法还包括:第一确定单元501,还用于根据所述点扩散函数和所述半高宽,确定所述第二特征筛选尺度。In some embodiments, the optical parameters include: a point spread function and a half-height width; the image processing method further includes: a first determination unit 501, which is also used to determine the second feature screening scale according to the point spread function and the half-height width.

在一些实施例中,第一确定单元501,进一步用于确定所述第一特征筛选尺度和所述第二特征筛选尺度中的最大特征筛选尺度;根据所述最大特征筛选尺度,确定所述目标特征筛选尺度。In some embodiments, the first determining unit 501 is further configured to determine a maximum feature screening scale between the first feature screening scale and the second feature screening scale; and determine the target feature screening scale according to the maximum feature screening scale.

在一些实施例中,第一筛选单元502进一步用于将所述目标特征筛选尺度作为标准差,生成高斯函数;根据所述高斯函数对所述至少两个特征点进行多次筛选。In some embodiments, the first screening unit 502 is further configured to use the target feature screening scale as a standard deviation to generate a Gaussian function; and perform multiple screening on the at least two feature points according to the Gaussian function.

在一些实施例中,第一筛选单元502进一步用于:获取所述至少两个特征点对应的特征点响应值矩阵,所述特征点响应值矩阵中包括各个特征点的特征点响应值;根据所述高斯函数确定高斯矩阵;根据所述特征点响应值矩阵、所述高斯矩阵和预设增益对所述至少两个特征点进行多次筛选。In some embodiments, the first screening unit 502 is further used to: obtain a feature point response value matrix corresponding to the at least two feature points, the feature point response value matrix including feature point response values of each feature point; determine a Gaussian matrix according to the Gaussian function; and perform multiple screening on the at least two feature points according to the feature point response value matrix, the Gaussian matrix and a preset gain.

在一些实施例中,多次筛选中的任意一次筛选过程包括:基于目标特征点、所述高斯矩阵的行列数量和所述特征点响应值矩阵确定邻域特征点响应值矩阵;所述目标特征点为当前待筛选的特征点中特征点响应值最大的特征点,所述邻域特征点响应值矩阵的行列数量与所述高斯矩阵的行列数量相同,所述邻域特征点响应值矩阵中包括所述目标特征点的邻域特征点的特征点响应值;将所述邻域特征点响应值矩阵与所述高斯矩阵和所述预设增益的乘积矩阵作差,获得残差矩阵;确定所述残差矩阵中的目标矩阵元素,并将所述目标矩阵元素置为预设值,以从所述待处理图像中删除所述目标矩阵元素对应的特征点;所述目标矩阵元素小于所述预设值。In some embodiments, any one of the multiple screening processes includes: determining a neighborhood feature point response value matrix based on the target feature point, the number of rows and columns of the Gaussian matrix, and the feature point response value matrix; the target feature point is the feature point with the largest feature point response value among the feature points currently to be screened, the number of rows and columns of the neighborhood feature point response value matrix is the same as the number of rows and columns of the Gaussian matrix, and the neighborhood feature point response value matrix includes feature point response values of neighborhood feature points of the target feature point; subtracting the neighborhood feature point response value matrix from the product matrix of the Gaussian matrix and the preset gain to obtain a residual matrix; determining a target matrix element in the residual matrix, and setting the target matrix element to a preset value to delete the feature point corresponding to the target matrix element from the image to be processed; the target matrix element is less than the preset value.

在一些实施例中,该任意一次筛选过程还包括:响应于检测到目标特征点不属于预设特征点统计表中的特征点,将所述目标特征点记录到所述预设特征点统计表中,并将特征点数量加1;其中,第一次筛选时,所述特征点数量为预设数量,所述预设特征点统计表为空;响应于检测到特征点数量达到预设特征点数量,将当前剩余的特征点确定为最终筛选出的特征点。In some embodiments, any screening process also includes: in response to detecting that the target feature point does not belong to the feature points in the preset feature point statistical table, recording the target feature point in the preset feature point statistical table, and increasing the number of feature points by 1; wherein, during the first screening, the number of feature points is the preset number, and the preset feature point statistical table is empty; in response to detecting that the number of feature points reaches the preset number of feature points, determining the currently remaining feature points as the feature points finally screened out.

在一些实施例中,第一筛选单元502还用于:响应于检测到特征点的筛选次数大于或者等于预设筛选次数,展示用于指示所述预设增益不合理的提示信息。In some embodiments, the first screening unit 502 is further used for: in response to detecting that the number of screening times of the feature point is greater than or equal to the preset number of screening times, displaying prompt information indicating that the preset gain is unreasonable.

请参考图6,作为对图4所示方法的实现,本公开提供了一种图像处理装置的一个实施例,该装置实施例与图4所示的图像处理方法实施例相对应,该装置具体可以应用于各种电子设备中。Please refer to FIG6 . As an implementation of the method shown in FIG4 , the present disclosure provides an embodiment of an image processing device. The device embodiment corresponds to the image processing method embodiment shown in FIG4 . The device can be specifically applied to various electronic devices.

如图6所示,本实施例的图像处理装置包括:第二确定单元601,用于确定待处理图像对应的至少两个特征点和特征筛选尺度;生成单元602,用于将所述特征筛选尺度作为标准差,生成高斯函数;第二筛选单元603,用于根据所述高斯函数对所述至少两个特征点进行多次筛选。As shown in Figure 6, the image processing device of this embodiment includes: a second determination unit 601, used to determine at least two feature points and a feature screening scale corresponding to the image to be processed; a generation unit 602, used to generate a Gaussian function using the feature screening scale as a standard deviation; and a second screening unit 603, used to perform multiple screening on the at least two feature points according to the Gaussian function.

在一些实施例中,第二筛选单元603进一步用于:获取所述至少两个特征点对应的特征点响应值矩阵,所述特征点响应值矩阵中包括各个特征点的特征点响应值;根据所述高斯函数确定高斯矩阵;根据所述特征点响应值矩阵、所述高斯矩阵和预设增益对所述至少两个特征点进行多次筛选。In some embodiments, the second screening unit 603 is further used to: obtain a feature point response value matrix corresponding to the at least two feature points, the feature point response value matrix including feature point response values of each feature point; determine a Gaussian matrix according to the Gaussian function; and perform multiple screening on the at least two feature points according to the feature point response value matrix, the Gaussian matrix and a preset gain.

在一些实施例中,多次筛选中的任意一次筛选过程包括:基于目标特征点、所述高斯矩阵的行列数量和所述特征点响应值矩阵确定邻域特征点响应值矩阵;所述目标特征点为当前待筛选的特征点中特征点响应值最大的特征点,所述邻域特征点响应值矩阵的行列数量与所述高斯矩阵的行列数量相同,所述邻域特征点响应值矩阵中包括所述目标特征点的邻域特征点的特征点响应值;将所述邻域特征点响应值矩阵与所述高斯矩阵和所述预设增益的乘积矩阵作差,获得残差矩阵;确定所述残差矩阵中的目标矩阵元素,并将所述目标矩阵元素置为预设值,以从所述待处理图像中删除所述目标矩阵元素对应的特征点;所述目标矩阵元素小于所述预设值。In some embodiments, any one of the multiple screening processes includes: determining a neighborhood feature point response value matrix based on the target feature point, the number of rows and columns of the Gaussian matrix, and the feature point response value matrix; the target feature point is the feature point with the largest feature point response value among the feature points currently to be screened, the number of rows and columns of the neighborhood feature point response value matrix is the same as the number of rows and columns of the Gaussian matrix, and the neighborhood feature point response value matrix includes feature point response values of neighborhood feature points of the target feature point; subtracting the neighborhood feature point response value matrix from the product matrix of the Gaussian matrix and the preset gain to obtain a residual matrix; determining a target matrix element in the residual matrix, and setting the target matrix element to a preset value to delete the feature point corresponding to the target matrix element from the image to be processed; the target matrix element is less than the preset value.

在一些实施例中,该任意一次筛选过程还包括:响应于检测到目标特征点不属于预设特征点统计表中的特征点,将所述目标特征点记录到所述预设特征点统计表中,并将特征点数量加1;其中,第一次筛选时,所述特征点数量为预设数量,所述预设特征点统计表为空;响应于检测到特征点数量达到预设特征点数量,将当前剩余的特征点确定为最终筛选出的特征点。In some embodiments, any screening process also includes: in response to detecting that the target feature point does not belong to the feature points in the preset feature point statistical table, recording the target feature point in the preset feature point statistical table, and increasing the number of feature points by 1; wherein, during the first screening, the number of feature points is the preset number, and the preset feature point statistical table is empty; in response to detecting that the number of feature points reaches the preset number of feature points, determining the currently remaining feature points as the feature points finally screened out.

在一些实施例中,第二筛选单元603还用于:响应于检测到特征点的筛选次数大于或者等于预设筛选次数,展示用于指示所述预设增益不合理的提示信息。In some embodiments, the second screening unit 603 is further used for: in response to detecting that the number of screening times of the feature point is greater than or equal to the preset number of screening times, displaying prompt information indicating that the preset gain is unreasonable.

请参考图7,图7示出了本公开的一个实施例的图像处理方法可以应用于其中的示例性系统架构。Please refer to FIG. 7 , which shows an exemplary system architecture in which the image processing method according to an embodiment of the present disclosure can be applied.

如图7所示,系统架构可以包括终端设备701、702、703,网络704,服务器707。网络704可以用以在终端设备701、702、703和服务器707之间提供通信链路的介质。网络704可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in Fig. 7, the system architecture may include terminal devices 701, 702, 703, a network 704, and a server 707. The network 704 may be used to provide a medium for a communication link between the terminal devices 701, 702, 703 and the server 707. The network 704 may include various connection types, such as wired, wireless communication links, or optical fiber cables.

终端设备701、702、703可以通过网络704与服务器707交互,以接收或发送消息等。终端设备701、702、703上可以安装有各种客户端应用,例如网页浏览器应用、搜索类应用、新闻资讯类应用。终端设备701、702、703中的客户端应用可以接收用户的指令,并根据用户的指令完成相应的功能,例如根据用户的指令在信息中添加相应信息。The terminal devices 701, 702, and 703 can interact with the server 707 through the network 704 to receive or send messages, etc. Various client applications, such as web browser applications, search applications, and news information applications, can be installed on the terminal devices 701, 702, and 703. The client applications in the terminal devices 701, 702, and 703 can receive user instructions and perform corresponding functions according to the user instructions, such as adding corresponding information to the information according to the user instructions.

终端设备701、702、703可以是硬件,也可以是软件。当终端设备701、702、703为硬件时,可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。当终端设备701、702、703为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。Terminal devices 701, 702, and 703 can be hardware or software. When terminal devices 701, 702, and 703 are hardware, they can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers, and desktop computers, etc. When terminal devices 701, 702, and 703 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

服务器707可以是提供各种服务的服务器,例如接收终端设备701、702、703发送的信息获取请求,根据信息获取请求通过各种方式获取信息获取请求对应的展示信息。并展示信息的相关数据发送给终端设备701、702、703。The server 707 may be a server that provides various services, such as receiving information acquisition requests sent by the terminal devices 701, 702, and 703, acquiring display information corresponding to the information acquisition requests in various ways according to the information acquisition requests, and sending the relevant data of the display information to the terminal devices 701, 702, and 703.

需要说明的是,本公开实施例所提供的图像处理方法可以由终端设备执行,相应地,图像处理装置可以设置在终端设备701、702、703中。此外,本公开实施例所提供的图像处理方法还可以由服务器707执行,相应地,图像处理装置可以设置于服务器707中。It should be noted that the image processing method provided in the embodiment of the present disclosure can be executed by a terminal device, and accordingly, the image processing apparatus can be set in the terminal devices 701, 702, and 703. In addition, the image processing method provided in the embodiment of the present disclosure can also be executed by a server 707, and accordingly, the image processing apparatus can be set in the server 707.

应该理解,图7中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks and servers in Figure 7 is only illustrative. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

下面参考图8,其示出了适于用来实现本公开实施例的电子设备(例如图7中的终端设备或服务器)的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图8示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring to FIG8 below, it shows a schematic diagram of the structure of an electronic device (such as the terminal device or server in FIG7) suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG8 is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.

如图8所示,电子设备可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置708加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM 803中,还存储有电子设备600操作所需的各种程序和数据。处理装置801、ROM802以及RAM803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG8 , the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 708 into a random access memory (RAM) 803. In RAM 803, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.

通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备与其他设备进行无线或有线通信以交换数据。虽然图8示出了具有各种装置的电子设备,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device to communicate wirelessly or wired with other devices to exchange data. Although FIG. 8 shows an electronic device with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:确定待处理图像对应的至少两个特征点;根据第一特征筛选尺度和/或第二特征筛选尺度,确定目标特征筛选尺度;其中,所述第一特征筛选尺度与待处理图像信息和特征点信息相关,所述第二特征筛选尺度与图像采集设备的光学参数相关;根据所述目标特征筛选尺度对所述至少两个特征点进行筛选,获得筛选出的特征点。The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: determines at least two feature points corresponding to the image to be processed; determines the target feature screening scale according to the first feature screening scale and/or the second feature screening scale; wherein the first feature screening scale is related to the image information to be processed and the feature point information, and the second feature screening scale is related to the optical parameters of the image acquisition device; and screens the at least two feature points according to the target feature screening scale to obtain the screened feature points.

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

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一确定单元501还可以被描述为“确定待处理图像对应的至少两个特征点的单元”。The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first determination unit 501 may also be described as a "unit for determining at least two feature points corresponding to the image to be processed".

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims (18)

1. An image processing method, comprising:
Determining at least two feature points corresponding to an image to be processed;
Determining a target feature screening scale according to the first feature screening scale and/or the second feature screening scale; the first feature screening scale is related to the image information to be processed and the feature point information, and the second feature screening scale is related to the optical parameters of the image acquisition equipment;
And screening the at least two feature points according to the target feature screening scale to obtain screened feature points.
2. The image processing method according to claim 1, wherein the image information to be processed includes: the size of the image to be processed; the feature point information includes: presetting the number of feature points and the number of the at least two feature points; the image processing method further includes:
And determining the first feature screening scale according to the size of the image to be processed, the number of preset feature points and the number of the at least two feature points.
3. The image processing method according to claim 1, wherein the optical parameters include: a point spread function and a half-width; the image processing method further includes:
And determining the second feature screening scale according to the point spread function and the half-width.
4. The image processing method according to claim 1, wherein the determining a target feature screening scale according to the first feature screening scale and/or the second feature screening scale comprises:
determining a largest feature screening scale of the first feature screening scale and the second feature screening scale;
And determining the target feature screening scale according to the maximum feature screening scale.
5. The image processing method according to claim 1, wherein the screening the at least two feature points according to the target feature screening scale includes:
Taking the target feature screening scale as a standard deviation to generate a Gaussian function;
and screening the at least two characteristic points for multiple times according to the Gaussian function.
6. The image processing method according to claim 5, wherein the performing a plurality of filtering on the at least two feature points according to the gaussian function includes:
Acquiring a characteristic point response value matrix corresponding to the at least two characteristic points, wherein the characteristic point response value matrix comprises characteristic point response values of all the characteristic points;
determining a Gaussian matrix according to the Gaussian function;
And screening the at least two characteristic points for multiple times according to the characteristic point response value matrix, the Gaussian matrix and the preset gain.
7. The image processing method according to claim 6, wherein any one screening process among the plurality of screens includes:
Determining a neighborhood characteristic point response value matrix based on the target characteristic points, the row and column numbers of the Gaussian matrix and the characteristic point response value matrix; the target feature points are feature points with the largest feature point response values in the feature points to be screened currently, the number of rows and columns of the neighborhood feature point response value matrix is the same as that of the Gaussian matrix, and the neighborhood feature point response value matrix comprises feature point response values of neighborhood feature points of the target feature points;
The neighborhood characteristic point response value matrix is subjected to difference with a product matrix of the Gaussian matrix and the preset gain, and a residual error matrix is obtained;
determining target matrix elements in the residual matrix, and setting the target matrix elements as preset values so as to delete characteristic points corresponding to the target matrix elements from the image to be processed; the target matrix element is smaller than the preset value.
8. The image processing method according to claim 7, wherein the arbitrary one-time filtering process further includes:
in response to detecting that a target feature point does not belong to a feature point in a preset feature point statistics table, recording the target feature point into the preset feature point statistics table, and adding 1 to the number of feature points; the feature point statistical table is used for selecting feature points according to the number of the feature points, wherein the number of the feature points is preset in the first screening process, and the preset feature point statistical table is empty;
And determining the current residual characteristic points as the finally screened characteristic points in response to the fact that the number of the characteristic points reaches the preset number of the characteristic points.
9. The image processing method according to claim 6, characterized in that the image processing method further comprises:
And displaying prompt information for indicating that the preset gain is unreasonable in response to the detection that the screening times of the feature points are larger than or equal to the preset screening times.
10. An image processing method, comprising:
determining at least two feature points and feature screening scales corresponding to the image to be processed;
taking the feature screening scale as a standard deviation to generate a Gaussian function;
and screening the at least two characteristic points for multiple times according to the Gaussian function.
11. The image processing method according to claim 10, wherein the performing a plurality of filtering on the at least two feature points according to the gaussian function includes:
Acquiring a characteristic point response value matrix corresponding to the at least two characteristic points, wherein the characteristic point response value matrix comprises characteristic point response values of all the characteristic points;
determining a Gaussian matrix according to the Gaussian function;
And screening the at least two characteristic points for multiple times according to the characteristic point response value matrix, the Gaussian matrix and the preset gain.
12. The image processing method according to claim 11, wherein any one screening process of the plurality of screens includes:
Determining a neighborhood characteristic point response value matrix based on the target characteristic points, the row and column numbers of the Gaussian matrix and the characteristic point response value matrix; the target feature points are feature points with the largest feature point response values in the feature points to be screened currently, the number of rows and columns of the neighborhood feature point response value matrix is the same as that of the Gaussian matrix, and the neighborhood feature point response value matrix comprises feature point response values of neighborhood feature points of the target feature points;
The neighborhood characteristic point response value matrix is subjected to difference with a product matrix of the Gaussian matrix and the preset gain, and a residual error matrix is obtained;
determining target matrix elements in the residual matrix, and setting the target matrix elements as preset values so as to delete characteristic points corresponding to the target matrix elements from the image to be processed; the target matrix element is smaller than the preset value.
13. The image processing method according to claim 12, wherein the arbitrary one-time filtering process further includes:
in response to detecting that a target feature point does not belong to a feature point in a preset feature point statistics table, recording the target feature point into the preset feature point statistics table, and adding 1 to the number of feature points; the feature point statistical table is used for selecting feature points according to the number of the feature points, wherein the number of the feature points is preset in the first screening process, and the preset feature point statistical table is empty;
And determining the current residual characteristic points as the finally screened characteristic points in response to the fact that the number of the characteristic points reaches the preset number of the characteristic points.
14. The image processing method according to claim 10, characterized in that the image processing method further comprises:
And displaying prompt information for indicating that the preset gain is unreasonable in response to the detection that the screening times of the feature points are larger than or equal to the preset screening times.
15. An image processing apparatus, comprising:
the determining unit is used for determining at least two characteristic points corresponding to the image to be processed;
The determining unit is further used for determining a target feature screening scale according to the first feature screening scale and/or the second feature screening scale; the first feature screening scale is related to the image information to be processed and the feature point information, and the second feature screening scale is related to the optical parameters of the image acquisition equipment;
And the screening unit is used for screening the at least two characteristic points according to the target characteristic screening scale to obtain screened characteristic points.
16. An image processing apparatus, comprising:
the determining unit is used for determining at least two characteristic points and characteristic screening scales corresponding to the image to be processed;
the generation unit is used for generating a Gaussian function by taking the characteristic screening scale as a standard deviation;
And the screening unit is used for carrying out multiple screening on the at least two characteristic points according to the Gaussian function.
17. An electronic device, comprising:
one or more processors;
Storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-14.
18. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-14.
CN202211312678.4A 2022-10-25 2022-10-25 Image processing method, device and electronic device Pending CN117975179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211312678.4A CN117975179A (en) 2022-10-25 2022-10-25 Image processing method, device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211312678.4A CN117975179A (en) 2022-10-25 2022-10-25 Image processing method, device and electronic device

Publications (1)

Publication Number Publication Date
CN117975179A true CN117975179A (en) 2024-05-03

Family

ID=90858529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211312678.4A Pending CN117975179A (en) 2022-10-25 2022-10-25 Image processing method, device and electronic device

Country Status (1)

Country Link
CN (1) CN117975179A (en)

Similar Documents

Publication Publication Date Title
CN110321958B (en) Training method of neural network model and video similarity determination method
CN112561840B (en) Video clipping method and device, storage medium and electronic equipment
CN112565890B (en) Video clipping method and device, storage medium and electronic equipment
CN113255812B (en) Video border detection method, device and electronic device
CN114692085B (en) Feature extraction method and device, storage medium and electronic equipment
CN115082515A (en) Target tracking method, device, equipment and medium
CN115205305A (en) Instance segmentation model training method, instance segmentation method and device
CN112380819B (en) Document editing method, device and electronic device
WO2024240144A1 (en) Method and apparatus for calculating data width, and device and storage medium
CN114429628A (en) Image processing method and device, readable storage medium and electronic equipment
CN110413603B (en) Method and device for determining repeated data, electronic equipment and computer storage medium
CN116758198B (en) Image reconstruction method, device, equipment and storage medium
CN117975180A (en) Image processing method, device and electronic device
CN117975179A (en) Image processing method, device and electronic device
CN111338827A (en) Method and device for pasting table data and electronic equipment
CN116541544A (en) Graphic typesetting method, device, medium and electronic equipment
CN111611417B (en) Image de-duplication method, device, terminal equipment and storage medium
CN118196547A (en) Target detection method, device, electronic equipment and computer readable medium
CN118537206A (en) Model construction method, image generation method, device, equipment and medium
CN114998599A (en) A data processing method, apparatus, device and computer readable medium
CN111898658B (en) Image classification method and device and electronic equipment
CN114140613A (en) Image detection method, device, electronic device and storage medium
CN113808134A (en) Oil tank layout information generation method, oil tank layout information generation device, electronic apparatus, and medium
CN114359673B (en) Small sample smoke detection method, device and equipment based on metric learning
CN118411537A (en) Feature point screening method and device and electronic equipment

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