[go: up one dir, main page]

WO2019178717A1 - Binocular matching method, visual imaging device and device with storage function - Google Patents

Binocular matching method, visual imaging device and device with storage function Download PDF

Info

Publication number
WO2019178717A1
WO2019178717A1 PCT/CN2018/079433 CN2018079433W WO2019178717A1 WO 2019178717 A1 WO2019178717 A1 WO 2019178717A1 CN 2018079433 W CN2018079433 W CN 2018079433W WO 2019178717 A1 WO2019178717 A1 WO 2019178717A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel point
specific pixel
value
binocular
point
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.)
Ceased
Application number
PCT/CN2018/079433
Other languages
French (fr)
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.)
Shenzhen A&E Intelligent Technology Institute Co Ltd
Original Assignee
Shenzhen A&E Intelligent Technology Institute 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 Shenzhen A&E Intelligent Technology Institute Co Ltd filed Critical Shenzhen A&E Intelligent Technology Institute Co Ltd
Priority to CN201880087302.3A priority Critical patent/CN111630569B/en
Priority to PCT/CN2018/079433 priority patent/WO2019178717A1/en
Publication of WO2019178717A1 publication Critical patent/WO2019178717A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof

Definitions

  • the present invention relates to the field of visual imaging, and in particular to a method of binocular matching, a method of visual imaging, and a device having a storage function.
  • stereo vision technology is widely used in the fields of manufacturing, inspection, document analysis, medical diagnosis and military.
  • Stereoscopic vision mainly uses the disparity value of the same point in space to calculate the three-dimensional coordinates of the spatial point on the two camera planes, and the disparity is obtained by stereo matching.
  • stereo matching is through Two or more pairs of images with viewpoint differences, geometric distortion, grayscale distortion, and noise interference.
  • the stereo matching method generally includes the following three problems:
  • Matching criteria which express some inherent features of the physical world as a number of rules that must be followed to match, so that the matching results can truly reflect the true face of the scene;
  • stereo vision matching algorithms are mainly divided into three categories, namely region matching, phase matching and feature matching.
  • the information of the image is detected by changing the size and form of the matching window.
  • this calculation method has a large amount of calculation, and reducing the matching window in order to reduce the calculation amount may cause the computer to obtain insufficient gray scale change information.
  • the technical problem to be solved by the present invention is to provide a binocular matching method, a visual imaging method device and a device having a storage function, and perform binocular matching by acquiring a robust support point, thereby reducing the amount of calculation.
  • the present invention provides a method for binocular matching, comprising the following steps:
  • the present invention further provides a visual imaging device including an image collector, a processor and a memory coupled to each other, the image collector for acquiring a binocular image of a target area, and a memory for storing a binocular image.
  • the processor causes the visual imaging device to perform the following steps when acquiring the program data: acquiring a binocular image of the target area; acquiring a specific pixel point in the binocular image; Wherein, the specific pixel point is the pixel point with the smallest hue value of the color statistical histogram in the binocular image, the pixel point with the largest difference in the neighborhood hue or the pixel with the largest difference in the edge histogram in the binocular image; Obtaining a gray value or a tone value of a pixel point having a predetermined interval from a specific pixel; determining a similarity between respective specific pixel points on the same matching pole line according to the gray value or the tone value, and At least one pair of specific pixel points with the highest similarity on the same matching pole line is defined as a robust support point; through the robust support point pair binocular map Match.
  • the present invention also provides an apparatus having a storage function, a device having a storage function storing program data, and program data being executable to implement any of the above-described binocular matching methods.
  • the invention has the beneficial effects that: different from the prior art, the present invention obtains a robust support point by defining a specific pixel point in the binocular image, and then performs image matching by using the robust support point as a boundary point, thereby reducing image matching.
  • the range of motion reduces the amount of computation of the algorithm and achieves the goal of fast image matching.
  • FIG. 1 is a schematic flow chart of an embodiment of a method for binocular matching according to the present invention
  • FIG. 2 is a binocular view of selecting a specific pixel point in the binocular matching method of the present invention
  • 3 is a binocular view of obtaining a robust support point in the binocular matching method of the present invention
  • FIG. 5 is a schematic diagram of an embodiment of a robust support line of the binocular matching method of FIG. 1;
  • Figure 6 is a schematic structural view of a visual imaging device of the present invention.
  • FIG. 7 is a schematic structural diagram of an embodiment of a computer readable storage device of the present invention.
  • FIG. 1 is a schematic flowchart of a method for binocular matching according to an embodiment of the present invention.
  • the method for binocular matching in this embodiment includes the following steps:
  • the so-called binocular image refers to an image of an object taken by an image acquisition device (for example, a camera) fixed to different positions on one feature point on the object.
  • the feature point can be obtained by using the binocular image: firstly, the coordinates of the feature point on the two camera image planes are respectively obtained, and then the exact relative positions of the two cameras are obtained, and the geometric method can be used to obtain the feature point.
  • the feature point is the coordinate in the coordinate system of a camera, that is, the position of the feature point is determined.
  • the specific pixel point is a pixel point with the smallest hue value of the color statistical histogram in the binocular image, the pixel point with the largest difference in the neighborhood hue or the edge histogram difference in the binocular image. The pixel with the largest value.
  • the specific pixel is the pixel having the smallest hue value of the color statistical histogram in the binocular image.
  • the color histogram describes the proportion of different colors in the entire image, so the minimum tonal value indicates that the pixel has the lowest probability of repeated occurrence.
  • the specific pixel point may also be the pixel point with the largest difference in the neighborhood hue in the binocular image, preferably the top 5% pixel point with the largest difference in the neighborhood hue.
  • a set (i+p, j+q) formed by surrounding pixels is referred to as a neighborhood of pixel points (i, j).
  • p and q are integers, and the specific values of p and q are adjusted according to the size of the currently defined neighborhood.
  • the top 5% of the pixels with the largest difference in hue in the neighborhood are the pixels with the first 5% difference in hue between the other pixels in this neighborhood.
  • the specific pixel point may also be the pixel point with the largest difference in the edge histogram in the binocular image, preferably the top 5% pixel with the largest difference in the edge histogram. point.
  • the edge of the image is important as visual perception information and one of the most basic features of the image.
  • the so-called image edge refers to the set of pixels in the image where the surrounding pixel values have transitional changes or roof changes, that is, the most significant part of the image local variation.
  • the color edge information in the original binocular image is extracted by detection, and then three kinds of edge histograms which can fully reflect the edge contour content can be directly constructed, which are edge color histogram, edge distance histogram and edge direction histogram.
  • only one of the histograms may be selected to extract the pixel points for subsequent calculation, such as extracting the first 5% of the pixel points having the largest difference in the edge color histogram.
  • FIG. 2 is a binocular view in which a specific pixel point is selected in the binocular matching method of the present invention, and the binocular image mainly includes three pixels of different colors (203, 204, 205), the target area is 201 area in the left image, and the target area is 202 area in the right image.
  • Pixel point 205 is selected as a particular pixel point.
  • 103 Obtain a gray value or a tone value of a pixel point having a predetermined interval from a specific pixel point based on a specific pixel point.
  • FIG. 3 is a binocular view of obtaining a robust support point in the binocular matching method of the present invention.
  • the binocular image plane coordinate system is established, wherein the X axis is a horizontal direction, and the right direction is a positive direction; the Y axis is a vertical direction, and the upward direction is a positive direction (the following steps are subject to this, and will not be described again).
  • the binocular image is subjected to gradation processing, and the gradation value of each pixel point position or the gradient direction of the tone value is calculated.
  • the gray value of the pixel or the gradient of the tonal value mainly refers to the direction in which the gray value or the tonal value of the pixel point increases the fastest.
  • the most common method is to first convolve the original image with the [-1,0,1] gradient operator to obtain the gradient component gradscalx in the x direction, and then use the [1,0,-1]T gradient operator pair.
  • the original image is convoluted to obtain the gradient component gradscaly in the y direction, and then the gradient size and direction of the pixel are calculated.
  • the gradient value of the gray value or the tonal value of the specific pixel is calculated according to the above manner, and the pixel with a predetermined interval from the specific pixel is selected according to the characteristic of the gradient direction, and the corresponding pixel is obtained.
  • Gray value or tonal value Specifically, when the gradient value of the gray value or the tonal value of the specific pixel point and the horizontal direction in the preset binocular image plane coordinate system are smaller than a preset angle, for example, 45 degrees, the acquisition is performed with a specific pixel point.
  • a gray value or a tone value of a pixel point having a predetermined interval on both sides in the horizontal direction preferably a gray value or a tone value of a 1-5 pixel dot buffer of the specific pixel point on both sides in the horizontal direction.
  • a preset angle for example, 45 degrees
  • the vertical pixel direction is acquired.
  • a gray value or a tone value of a pixel having a predetermined interval on both sides preferably a gray value or a tone value of a 1-5 pixel dot buffer of the specific pixel on both sides in the vertical direction.
  • FIG. 3 there are specific pixel points A, B, C, D, and E, and the gradient direction of the specific pixel points A, C, and D in the figure and the preset binocular image plane are calculated.
  • the horizontal angle in the coordinate system is less than 45 degrees. Therefore, the gray value or the tonal value of the 1-5 pixel buffers of the specific pixel points A, C, and D on both sides in the horizontal direction are obtained.
  • the angle between the gradient direction of the specific pixel points B and E in the figure and the horizontal direction in the preset binocular image plane coordinate system is greater than 45 degrees, so that 1-5 of the specific pixel points B and E are obtained on both sides in the vertical direction.
  • the gray value or tonal value of the pixel buffer is
  • 104 determining, according to the gray value or the tonal value, a similarity between respective specific pixel points on the same matching pole line, and defining at least one pair of specific pixel points having the highest similarity on the same matching pole line as Robust support points.
  • the matching pole line is a kind of constraint. Specifically, it is the mapping of the same point on two images. Knowing the mapping point p1 on one picture, the mapping point p2 in the other picture must be relative to p1. On the polar line, this reduces the number of points to be matched.
  • a specific pixel point A in the left figure is used as a matching pole line 301.
  • the matching limit 301 is also found by the specific pixel points C and D in the right figure. a specific pixel point corresponding to a specific pixel point A in the right picture, a gray value or a tone value of a pixel point at a predetermined interval according to a specific pixel point A, and a gray level of a pixel point at a predetermined interval of a specific pixel point C and D
  • the value or the tonal value, the similarity between the specific pixel point A and the specific pixel point C and the specific pixel point D is calculated, and the specific pixel point with the highest similarity is taken as the specific pixel point corresponding to the specific pixel point A in the right image.
  • the specific pixel point A on the matching pole line 301 is in the horizontal direction
  • the negative direction is the gray value corresponding to white
  • the horizontal direction positive direction is the gray corresponding gray value
  • the specific pixel is Point A and a specific pixel point C are defined as robust support points, and the position information of this particular pixel point is recorded.
  • FIG. 4 is another binocular view of obtaining a robust support point in the binocular matching method of the present invention.
  • the black square is a specific pixel point
  • the specific pixel point J is used as the matching pole line 401.
  • the matching pole line 401 sequentially passes through the specific pixel points I, J, K, L, M, and N, at the matching pole line 401.
  • the selection of the robust support point is performed through other matching pole lines. If there is no corresponding specific pixel on all matching pole lines, then the range of gray value or tone value selection is reduced and the robust support point is selected (or the specific pixel point is directly removed). It should be noted that the specific pixel points corresponding to the above selection do not require the two to be completely consistent, and it is only necessary to select a specific pixel point that is most similar to the error range.
  • FIG. 5 is a schematic diagram of an embodiment of the robust support line of the binocular matching method of FIG. 1.
  • the specific pixel points are filtered by the above manner to determine a specific pixel point F, G, H and a corresponding F′.
  • G′, H′ is the robust support point of the binocular image
  • the left graph 501 and the right graph 502 are divided into 1 by the vertical support points F, G, H, F′, G′, H′.
  • these boundary lines are called robust support lines.
  • the regions are corresponding, respectively, regions 1 and 5, 2 and 6, 3 and 7, 4 and 8, matching only in the corresponding regions, effectively reducing image matching by the above method
  • the range of movement reduces the amount of calculation.
  • the selection range of the specific pixel point may be expanded, for example, selecting the top 10% of the pixels with the largest difference in neighborhood tones, or selecting the edge.
  • the first 10% of the pixels with the largest difference in histogram repeat the above steps to obtain a new robust support point, and match the binocular image with the previously obtained robust support point and the new robust support point until a match is obtained. result.
  • the present invention obtains a robust support point by defining a specific pixel point in the binocular image, and then performs image matching by using the robust support point as a boundary point, thereby reducing the moving range of image matching and reducing the algorithm.
  • the amount of calculations achieves the purpose of fast matching of images.
  • FIG. 6 is a schematic structural view of a visual imaging device of the present invention.
  • the present invention also provides a visual imaging device including an image collector 601, a processor 602, and a memory 603 coupled to each other.
  • the image collector 601 is configured to acquire a binocular image of the target area
  • the memory 603 is configured to store a binocular image, a specific pixel point, a robust support point, and program data run by the processor, and the processor 602 implements the program data.
  • Any of the above methods of binocular matching for detailed steps on the method of binocular matching, please refer to the foregoing description, and details are not described herein again.
  • the embodiment provides a visual imaging device.
  • the visual imaging device obtains a robust support point by defining a specific pixel point in the binocular image during operation, and then uses the robust support point as a demarcation point.
  • Image matching is performed, which reduces the moving range of image matching, reduces the calculation amount of the algorithm, and achieves the purpose of image fast matching.
  • FIG. 7 is a schematic structural diagram of an embodiment of a computer readable storage device according to the present invention.
  • the device 701 having a storage function stores program data. 702.
  • the program data 702 can be executed to implement any of the binocular matching methods described above.
  • the storage device 701 may be a storage chip in the terminal, a hard disk, or a portable hard disk or other readable and writable storage tool such as a flash memory, an optical disk, or the like, or a server or the like.
  • the embodiment provides a device with a storage function, in which program data is stored, and when the program data is executed, a robust support point can be obtained by defining a specific pixel point in the binocular image. Then, the robust support point is used as the boundary point for image matching, which reduces the moving range of image matching, reduces the calculation amount of the algorithm, and achieves the purpose of fast image matching.

Landscapes

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

Abstract

Provided is a binocular matching method, a method device of visual imaging and a device with storage function, wherein the binocular matching method comprises the following steps: obtaining a binocular image of the target area; obtaining a specific pixel point in the binocular image; obtaining a gray value or a tone value of a pixel point having a predetermined interval from the specific pixel point based on the specific pixel point; determining the similarity between respective specific pixel points on the same matching pole line based on the gray value or the tonal value, and defining at least one pair of specific pixel points having the highest similarity on the same matching pole line as a robust support point; the binocular image is matched by the robust support point. Through the above method, the moving range of image matching is reduced, the calculation amount of the algorithm is reduced, and the purpose of image fast matching is achieved.

Description

双目匹配的方法、视觉成像装置及具有存储功能的装置 Binocular matching method, visual imaging device, and device having storage function

【技术领域】[Technical Field]

本发明涉及视觉成像领域,特别是涉及一种双目匹配的方法、视觉成像的方法装置及具有存储功能的装置。The present invention relates to the field of visual imaging, and in particular to a method of binocular matching, a method of visual imaging, and a device having a storage function.

【背景技术】 【Background technique】

随着计算机视觉的发展,立体视觉技术被广泛应用制造业、检验、文档分析、医疗诊断和军事等领域中。立体视觉主要是利用空间中同一点在两摄像机平面上的视差值计算空间点的三维坐标,而视差的获得须通过立体匹配实现,与普通的图像模板匹配不同的是,立体匹配是通过在两幅或多幅存在视点差异、几何畸变、灰度畸变、噪声干扰的图像对之间进行的。With the development of computer vision, stereo vision technology is widely used in the fields of manufacturing, inspection, document analysis, medical diagnosis and military. Stereoscopic vision mainly uses the disparity value of the same point in space to calculate the three-dimensional coordinates of the spatial point on the two camera planes, and the disparity is obtained by stereo matching. Unlike ordinary image template matching, stereo matching is through Two or more pairs of images with viewpoint differences, geometric distortion, grayscale distortion, and noise interference.

立体匹配方法一般包含以下三个问题:The stereo matching method generally includes the following three problems:

1.基元的选择,即选择适当的图像特征(如点、直线、相位等)作为匹配基元;1. The selection of primitives, that is, selecting appropriate image features (such as points, lines, phases, etc.) as matching primitives;

2.匹配的准则,将关于物理世界的某些固有特征表示为匹配所必须遵循的若干规则,使匹配结果能真实反映景物的本来面目;2. Matching criteria, which express some inherent features of the physical world as a number of rules that must be followed to match, so that the matching results can truly reflect the true face of the scene;

3.算法结构,通过利用适当的数学方法设计能正确匹配所选择基元的稳定算法。3. Algorithm structure, by using appropriate mathematical methods to design a stable algorithm that can correctly match the selected primitives.

根据匹配基元的不同,立体视觉匹配算法目前主要分为三大类,即区域匹配、相位匹配和特征匹配。According to different matching primitives, stereo vision matching algorithms are mainly divided into three categories, namely region matching, phase matching and feature matching.

目前应用较广的是基于区域匹配的双目匹配算法,主要是利用两张基准图像的相似区域实现图像匹配。这类算法的性能取决于量度的选择和搜索的策略,Currently widely used is a binocular matching algorithm based on region matching, which mainly uses image similar regions of two reference images to achieve image matching. The performance of such algorithms depends on the choice of metrics and the strategy of the search.

通过改变匹配窗口大小、形式对图像进行信息进行检测。但是,这种计算方法计算量较大,为了减小计算量而减小匹配窗口又会使得计算机获取不到足够的灰度变化信息。The information of the image is detected by changing the size and form of the matching window. However, this calculation method has a large amount of calculation, and reducing the matching window in order to reduce the calculation amount may cause the computer to obtain insufficient gray scale change information.

【发明内容】 [Summary of the Invention]

本发明解决的技术问题是提供一种双目匹配的方法、视觉成像的方法装置及具有存储功能的装置,通过获取鲁棒支撑点来进行双目匹配,从而降低计算量。The technical problem to be solved by the present invention is to provide a binocular matching method, a visual imaging method device and a device having a storage function, and perform binocular matching by acquiring a robust support point, thereby reducing the amount of calculation.

为解决上述问题,本发明提供一种双目匹配的方法,包括如下步骤:To solve the above problems, the present invention provides a method for binocular matching, comprising the following steps:

获取目标区域的双目图像;获取双目图像中的特定像素点;其中,特定像素点为双目图像中颜色统计直方图色调值最小的像素点、邻域色调差异最大的像素点或双目图像中边缘直方图边缘直方图差值最大的像素点;以特定像素点为基准,获取与特定像素点具有预定间隔的像素点的灰度值或色调值;根据所述灰度值或色调值以确定在同一匹配极线上的各个特定像素点之间的相似度,并将在同一匹配极线上相似度最高的至少一对特定像素点定义为鲁棒支撑点;通过鲁棒支撑点对双目图像进行匹配。Obtaining a binocular image of the target area; acquiring a specific pixel point in the binocular image; wherein, the specific pixel point is the pixel point with the smallest hue value of the color statistical histogram in the binocular image, the pixel point with the largest difference in the neighborhood hue or the binocular a pixel point having the largest difference in edge histogram edge histogram in the image; acquiring a gray value or a tone value of a pixel point having a predetermined interval from a specific pixel point based on the specific pixel point; according to the gray value or the tonal value Determining the similarity between each specific pixel on the same matching pole line, and defining at least one pair of specific pixel points with the highest similarity on the same matching pole line as a robust support point; Binocular images are matched.

为解决上述问题,本发明还提供一种一种视觉成像装置,包括相互耦接的图像采集器、处理器及存储器,图像采集器用于获取目标区域的双目图像;存储器用于存储双目图像、特定像素点、鲁棒支撑点及处理器运行的程序数据;处理器在执行程序数据时使视觉成像装置实现以下步骤:获取目标区域的双目图像;获取双目图像中的特定像素点;其中,特定像素点为双目图像中颜色统计直方图色调值最小的像素点、邻域色调差异最大的像素点或双目图像中边缘直方图差值最大的像素点;以特定像素点为基准,获取与特定像素点具有预定间隔的像素点的灰度值或色调值;根据所述灰度值或色调值以确定在同一匹配极线上的各个特定像素点之间的相似度,并将在同一匹配极线上相似度最高的至少一对特定像素点定义为鲁棒支撑点;通过鲁棒支撑点对双目图像进行匹配。In order to solve the above problems, the present invention further provides a visual imaging device including an image collector, a processor and a memory coupled to each other, the image collector for acquiring a binocular image of a target area, and a memory for storing a binocular image. a specific pixel point, a robust support point, and program data run by the processor; the processor causes the visual imaging device to perform the following steps when acquiring the program data: acquiring a binocular image of the target area; acquiring a specific pixel point in the binocular image; Wherein, the specific pixel point is the pixel point with the smallest hue value of the color statistical histogram in the binocular image, the pixel point with the largest difference in the neighborhood hue or the pixel with the largest difference in the edge histogram in the binocular image; Obtaining a gray value or a tone value of a pixel point having a predetermined interval from a specific pixel; determining a similarity between respective specific pixel points on the same matching pole line according to the gray value or the tone value, and At least one pair of specific pixel points with the highest similarity on the same matching pole line is defined as a robust support point; through the robust support point pair binocular map Match.

为解决上述问题,本发明还提供一种具有存储功能的装置,具有存储功能的装置存储有程序数据,程序数据能够被执行以实现上述任一的双目匹配的方法。In order to solve the above problems, the present invention also provides an apparatus having a storage function, a device having a storage function storing program data, and program data being executable to implement any of the above-described binocular matching methods.

本发明的有益效果是:区别于现有技术,本发明通过定义双目图像中的特定像素点来获取鲁棒支撑点,再通过该鲁棒支撑点作为分界点进行图像匹配,缩小了图像匹配的移动范围,降低了算法的计算量,达到了图像快速匹配的目的。The invention has the beneficial effects that: different from the prior art, the present invention obtains a robust support point by defining a specific pixel point in the binocular image, and then performs image matching by using the robust support point as a boundary point, thereby reducing image matching. The range of motion reduces the amount of computation of the algorithm and achieves the goal of fast image matching.

【附图说明】 [Description of the Drawings]

图1是本发明双目匹配的方法一实施例的流程示意图;1 is a schematic flow chart of an embodiment of a method for binocular matching according to the present invention;

图2是本发明双目匹配的方法中选取特定像素点的双目视图;2 is a binocular view of selecting a specific pixel point in the binocular matching method of the present invention;

图3是本发明双目匹配的方法中一种获取鲁棒支撑点的双目视图;3 is a binocular view of obtaining a robust support point in the binocular matching method of the present invention;

图4是本发明双目匹配的方法中另一种获取鲁棒支撑点的双目视图;4 is another binocular view of obtaining a robust support point in the binocular matching method of the present invention;

图5是图1双目匹配方法鲁棒支撑线一实施例示意图;5 is a schematic diagram of an embodiment of a robust support line of the binocular matching method of FIG. 1;

图6是本发明视觉成像装置结构示意图;Figure 6 is a schematic structural view of a visual imaging device of the present invention;

图7是本发明计算机可读存储装置一实施例的结构示意图。FIG. 7 is a schematic structural diagram of an embodiment of a computer readable storage device of the present invention.

【具体实施方式】【detailed description】

参阅图1,图1是本发明双目匹配的方法一实施例的流程示意图,本实施例双目匹配的方法包括如下步骤:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for binocular matching according to an embodiment of the present invention. The method for binocular matching in this embodiment includes the following steps:

101:获取目标区域的双目图像。101: Acquire a binocular image of the target area.

所谓双目图像,是指对物体上一个特征点,用两部固定于不同位置的图像获取设备(例如相机)摄得物体的图像。进一步的,利用该双目图像可以实现对该特征点定位:首先,分别获得该特征点在两部相机像平面上的坐标,再获取两部相机精确的相对位置,就可用几何的方法得到该特征点在固定一部相机的坐标系中的坐标,即确定了该特征点的位置。The so-called binocular image refers to an image of an object taken by an image acquisition device (for example, a camera) fixed to different positions on one feature point on the object. Further, the feature point can be obtained by using the binocular image: firstly, the coordinates of the feature point on the two camera image planes are respectively obtained, and then the exact relative positions of the two cameras are obtained, and the geometric method can be used to obtain the feature point. The feature point is the coordinate in the coordinate system of a camera, that is, the position of the feature point is determined.

102:获取双目图像中的特定像素点;其中,特定像素点为双目图像中颜色统计直方图色调值最小的像素点、邻域色调差异最大的像素点或双目图像中边缘直方图差值最大的像素点。102: Acquire a specific pixel point in the binocular image; wherein, the specific pixel point is a pixel point with the smallest hue value of the color statistical histogram in the binocular image, the pixel point with the largest difference in the neighborhood hue or the edge histogram difference in the binocular image. The pixel with the largest value.

在一个具体实施例中,特定像素点为双目图像中颜色统计直方图色调值最小的像素点。颜色直方图描述的是不同色彩在整幅图像中所占的比例,因此色调值最小,即表明该像素点重复出现概率最低。In a specific embodiment, the specific pixel is the pixel having the smallest hue value of the color statistical histogram in the binocular image. The color histogram describes the proportion of different colors in the entire image, so the minimum tonal value indicates that the pixel has the lowest probability of repeated occurrence.

基于类似的考虑,在另一个具体实施例中,特定像素点也可以为双目图像中邻域色调差异最大的像素点,优选的为邻域色调差异最大的前5%的像素点。具体的,对于任一像素点(i,j),把其周围像素构成的集合(i+p,j+q),称为做像素点(i,j)的邻域。其中p、q为整数,根据当前定义的邻域的大小调整p、q具体的数值。邻域色调差异最大的前5%的像素点,即为在此邻域内与其他像素点色调差异值为前5%的像素点。Based on similar considerations, in another specific embodiment, the specific pixel point may also be the pixel point with the largest difference in the neighborhood hue in the binocular image, preferably the top 5% pixel point with the largest difference in the neighborhood hue. Specifically, for any pixel point (i, j), a set (i+p, j+q) formed by surrounding pixels is referred to as a neighborhood of pixel points (i, j). Where p and q are integers, and the specific values of p and q are adjusted according to the size of the currently defined neighborhood. The top 5% of the pixels with the largest difference in hue in the neighborhood are the pixels with the first 5% difference in hue between the other pixels in this neighborhood.

基于类似的考虑,在另一个优选的实施例中,特定像素点也可以为该双目图像中边缘直方图差值最大的像素点,优选的为边缘直方图差值最大的前5%的像素点。具体地,图像边缘是重要是视觉感知信息,也是图像最基本的特征之一。所谓图像边缘,是指图像中周围像素值有跃迁变化或屋顶变化的像素集合,即图像局部变化最显著的部分。先通过检测提取出原始的双目图像中的彩色边缘信息,进而可以直接构造出能全面反映边缘轮廓内容的3种边缘直方图,分别为边缘颜色直方图、边缘距离直方图和边缘方向直方图,本实施例为简化计算,可只选取其中任意一种直方图提取像素点进行后续计算,如提取边缘颜色直方图中差值最大的前5%的像素点。Based on similar considerations, in another preferred embodiment, the specific pixel point may also be the pixel point with the largest difference in the edge histogram in the binocular image, preferably the top 5% pixel with the largest difference in the edge histogram. point. Specifically, the edge of the image is important as visual perception information and one of the most basic features of the image. The so-called image edge refers to the set of pixels in the image where the surrounding pixel values have transitional changes or roof changes, that is, the most significant part of the image local variation. Firstly, the color edge information in the original binocular image is extracted by detection, and then three kinds of edge histograms which can fully reflect the edge contour content can be directly constructed, which are edge color histogram, edge distance histogram and edge direction histogram. In this embodiment, in order to simplify the calculation, only one of the histograms may be selected to extract the pixel points for subsequent calculation, such as extracting the first 5% of the pixel points having the largest difference in the edge color histogram.

这类像素点由于差异较大,重复出现概率较低,因此容易显示出目标区域的细节信息,能更好的确认目标区域的位置信息。Since such pixels have large differences and low probability of repeated occurrences, it is easy to display the detailed information of the target area, and the position information of the target area can be better confirmed.

在一个具体的实施方式中,如图2所示,图2是本发明双目匹配的方法中选取特定像素点的双目视图,双目图像中主要包含三种不同颜色的像素点(203、204、205),目标区域在左图像中为201区域,目标区域在右图像中为202区域,获取了左右两幅图像的全部点像素后,由于像素点205在颜色统计中占有比例最少,因此选取像素点205为特定像素点。In a specific embodiment, as shown in FIG. 2, FIG. 2 is a binocular view in which a specific pixel point is selected in the binocular matching method of the present invention, and the binocular image mainly includes three pixels of different colors (203, 204, 205), the target area is 201 area in the left image, and the target area is 202 area in the right image. After all the point pixels of the left and right images are acquired, since the pixel point 205 has the least proportion in the color statistics, Pixel point 205 is selected as a particular pixel point.

103:以特定像素点为基准,获取与特定像素点具有预定间隔的像素点的灰度值或色调值。103: Obtain a gray value or a tone value of a pixel point having a predetermined interval from a specific pixel point based on a specific pixel point.

在一个具体的实施方式中,如图3所示,图3是本发明双目匹配的方法中一种获取鲁棒支撑点的双目视图。建立双目图像平面坐标系,其中,X轴为水平方向,以向右为正方向;Y轴为垂直方向,以向上为正方向(下述步骤均以此为准,不再赘述)。对双目图像进行灰度化处理,计算每个像素点位置的灰度值或色调值的梯度方向。像素点的灰度值或色调值的梯度主要是指像素点的灰度值或色调值增长最快的方向。最常用的方法是:首先用[-1,0,1]梯度算子对原图像做卷积运算,得到x方向的梯度分量gradscalx,然后用[1,0,-1]T梯度算子对原图像做卷积运算,得到y方向的梯度分量gradscaly,然后计算出像素点的梯度大小和方向。In a specific embodiment, as shown in FIG. 3, FIG. 3 is a binocular view of obtaining a robust support point in the binocular matching method of the present invention. The binocular image plane coordinate system is established, wherein the X axis is a horizontal direction, and the right direction is a positive direction; the Y axis is a vertical direction, and the upward direction is a positive direction (the following steps are subject to this, and will not be described again). The binocular image is subjected to gradation processing, and the gradation value of each pixel point position or the gradient direction of the tone value is calculated. The gray value of the pixel or the gradient of the tonal value mainly refers to the direction in which the gray value or the tonal value of the pixel point increases the fastest. The most common method is to first convolve the original image with the [-1,0,1] gradient operator to obtain the gradient component gradscalx in the x direction, and then use the [1,0,-1]T gradient operator pair. The original image is convoluted to obtain the gradient component gradscaly in the y direction, and then the gradient size and direction of the pixel are calculated.

在一个具体的实施方式中,依据上述方式计算出特定像素点的灰度值或色调值的梯度方向,并根据该梯度方向的特性选择与该特定像素点具有预定间隔的像素点,并获取相应的灰度值或色调值。具体的,当该特定像素点的灰度值或色调值的梯度方向与预设的双目图像平面坐标系中的水平方向夹角小于预设角度,例如45度时,获取与特定像素点在水平方向两侧具有预定间隔的像素点的灰度值或色调值,优选的为该特定像素点在水平方向两侧1-5个像素点缓冲区的灰度值或色调值。当该特定像素点的灰度值或色调值的梯度方向与预设的双目图像平面坐标系中的水平方向夹角大于等于预设角度,例如45度时,获取与特定像素点在垂直方向两侧具有预定间隔的像素点的灰度值或色调值,优选的为该特定像素点在垂直方向两侧1-5个像素点缓冲区的灰度值或色调值。In a specific embodiment, the gradient value of the gray value or the tonal value of the specific pixel is calculated according to the above manner, and the pixel with a predetermined interval from the specific pixel is selected according to the characteristic of the gradient direction, and the corresponding pixel is obtained. Gray value or tonal value. Specifically, when the gradient value of the gray value or the tonal value of the specific pixel point and the horizontal direction in the preset binocular image plane coordinate system are smaller than a preset angle, for example, 45 degrees, the acquisition is performed with a specific pixel point. A gray value or a tone value of a pixel point having a predetermined interval on both sides in the horizontal direction, preferably a gray value or a tone value of a 1-5 pixel dot buffer of the specific pixel point on both sides in the horizontal direction. When the gradient value of the gray value or the tone value of the specific pixel point and the horizontal direction in the preset binocular image plane coordinate system are greater than or equal to a preset angle, for example, 45 degrees, the vertical pixel direction is acquired. A gray value or a tone value of a pixel having a predetermined interval on both sides, preferably a gray value or a tone value of a 1-5 pixel dot buffer of the specific pixel on both sides in the vertical direction.

仍然以图3为例,在图3中,存在特定像素点A、B、C、D和E,经过计算,图中特定像素点A、C、D的梯度方向与预设的双目图像平面坐标系中的水平方向夹角均小于45度,因此,获取特定像素点A、C、D在水平方向两侧1-5个像素点缓冲区的灰度值或色调值。而图中特定像素点B和E的梯度方向与预设的双目图像平面坐标系中的水平方向夹角大于45度,因此,获取特定像素点B和E在垂直方向两侧1-5个像素点缓冲区的灰度值或色调值。Still taking FIG. 3 as an example, in FIG. 3, there are specific pixel points A, B, C, D, and E, and the gradient direction of the specific pixel points A, C, and D in the figure and the preset binocular image plane are calculated. The horizontal angle in the coordinate system is less than 45 degrees. Therefore, the gray value or the tonal value of the 1-5 pixel buffers of the specific pixel points A, C, and D on both sides in the horizontal direction are obtained. The angle between the gradient direction of the specific pixel points B and E in the figure and the horizontal direction in the preset binocular image plane coordinate system is greater than 45 degrees, so that 1-5 of the specific pixel points B and E are obtained on both sides in the vertical direction. The gray value or tonal value of the pixel buffer.

104:根据所述灰度值或色调值以确定在同一匹配极线上的各个特定像素点之间的相似度,并将在同一匹配极线上相似度最高的至少一对特定像素点定义为鲁棒支撑点。104: determining, according to the gray value or the tonal value, a similarity between respective specific pixel points on the same matching pole line, and defining at least one pair of specific pixel points having the highest similarity on the same matching pole line as Robust support points.

匹配极线是一种约束方式,具体的说,就是同一个点在两幅图像上的映射,已知一幅图上的映射点p1,那么另一幅图中映射点p2一定在相对于p1的极线上,这样可以减少待匹配的点数量。The matching pole line is a kind of constraint. Specifically, it is the mapping of the same point on two images. Knowing the mapping point p1 on one picture, the mapping point p2 in the other picture must be relative to p1. On the polar line, this reduces the number of points to be matched.

在一个具体的实施方式中,继续参阅图3,过左图中特定像素点A作一条匹配极线301,本实施例中匹配极限301还通过右图中的特定像素点C和D,为找到特定像素点A在右图中所对应的特定像素点,根据特定像素点A在预定间隔的像素点的灰度值或色调值以及特定像素点C和D的在预定间隔的像素点的灰度值或色调值,计算特定像素点A与特定像素点C以及特定像素点D之间的相似度,并将相似度最高的特定像素点作为特定像素点A在右图中所对应的特定像素点。例如,由于匹配极线301上的特定像素点A,其水平方向负方向为白色对应的灰度值,其水平方向正方向为黑色对应的灰度值,在同一匹配极线上,只有特定像素点C其水平方向负方向为白色对应的灰度值,其水平方向正方向为黑色对应的灰度值,也即特定像素点A与特定像素点C的相似度最高,,因此将该特定像素点A和特定像素点C定义为鲁棒支撑点,并记录此特定像素点的位置信息。In a specific embodiment, referring to FIG. 3, a specific pixel point A in the left figure is used as a matching pole line 301. In this embodiment, the matching limit 301 is also found by the specific pixel points C and D in the right figure. a specific pixel point corresponding to a specific pixel point A in the right picture, a gray value or a tone value of a pixel point at a predetermined interval according to a specific pixel point A, and a gray level of a pixel point at a predetermined interval of a specific pixel point C and D The value or the tonal value, the similarity between the specific pixel point A and the specific pixel point C and the specific pixel point D is calculated, and the specific pixel point with the highest similarity is taken as the specific pixel point corresponding to the specific pixel point A in the right image. . For example, since the specific pixel point A on the matching pole line 301 is in the horizontal direction, the negative direction is the gray value corresponding to white, and the horizontal direction positive direction is the gray corresponding gray value, and on the same matching pole line, only the specific pixel The negative direction of the horizontal direction is the white corresponding gray value, and the horizontal direction positive direction is the gray corresponding gray value, that is, the specific pixel A and the specific pixel point C have the highest similarity, so the specific pixel is Point A and a specific pixel point C are defined as robust support points, and the position information of this particular pixel point is recorded.

在另一个具体的实施方式中,参阅图4,图4是本发明双目匹配的方法中另一种获取鲁棒支撑点的双目视图。图中黑色方块为特定像素点,过特定像素点J作匹配极线401,本实施例中匹配极线401依次通过特定像素点I、J、K、L、M和N,在匹配极线401上,假设仅选取左右预设范围为1的灰度值,特定像素点J和M在沿其水平方向两侧的像素点为白色对应的灰度值,而特定像素点I、K、L和N分别在沿其水平方向两侧的像素点为灰色对应的灰度值,也即特定像素点J和M的相似度最高, 因此,将特定像素点J和M定义为鲁棒支撑点,并记录此特定像素点的位置信息。也就是说,在同一匹配极线出现多对相似的特定像素点时,选取相似度最高的一对特定像素点定义为鲁棒支撑点。此外,如果当前匹配极线上没有对应的特定像素点,则通过其他匹配极线再进行鲁棒支撑点的选取。如果全部匹配极线上都没有对应的特定像素点,则降低灰度值或色调值选取的范围再进行鲁棒支撑点的选取(或直接将此特定像素点去掉)。需要说明的是,上述选取对应的特定像素点,并不要求二者完全一致,只需在误差范围内,选取与之最相似的特定像素点即可。In another specific embodiment, referring to FIG. 4, FIG. 4 is another binocular view of obtaining a robust support point in the binocular matching method of the present invention. In the figure, the black square is a specific pixel point, and the specific pixel point J is used as the matching pole line 401. In this embodiment, the matching pole line 401 sequentially passes through the specific pixel points I, J, K, L, M, and N, at the matching pole line 401. In the above, it is assumed that only the gray value of the left and right preset ranges is selected, and the pixel points of the specific pixel points J and M on both sides in the horizontal direction are white corresponding gray values, and the specific pixel points I, K, L and N is gray corresponding to the pixel points on both sides of the horizontal direction, that is, the similarity of the specific pixel points J and M is the highest. Therefore, specific pixel points J and M are defined as robust support points, and position information of this particular pixel point is recorded. That is to say, when a plurality of pairs of similar specific pixel points appear in the same matching polar line, a pair of specific pixel points with the highest similarity are selected as the robust support points. In addition, if there is no corresponding specific pixel on the current matching pole line, the selection of the robust support point is performed through other matching pole lines. If there is no corresponding specific pixel on all matching pole lines, then the range of gray value or tone value selection is reduced and the robust support point is selected (or the specific pixel point is directly removed). It should be noted that the specific pixel points corresponding to the above selection do not require the two to be completely consistent, and it is only necessary to select a specific pixel point that is most similar to the error range.

105:通过鲁棒支撑点对双目图像进行匹配。105: Matching binocular images by robust support points.

通过鲁棒支撑点对双目图像进行图像匹配的具体过程和现有的通过特征点进行图像匹配的方法基本一致,不同之处在于,在本发明中,鲁棒支撑点为图像匹配的分界点。如图5所示,图5是图1双目匹配方法鲁棒支撑线一实施例示意图,通过上述方式对特定像素点进行筛选,确定特定像素点F、G、H和与之对应的F′、G′、H′为此双目图像的鲁棒支撑点,通过鲁棒支持点F、G、H、F′、G′、H′作垂线将左图501和右图502分成1~8个区域,这些边界线称为鲁棒支撑线。根据对应的鲁棒支撑点,将各区域对应起来,分别为区域1和5,2和6,3和7,4和8,仅在各对应区域内进行匹配,通过上述方式有效缩小了图像匹配的移动范围,减少了计算量。The specific process of image matching of binocular images by robust support points is basically the same as the existing method of image matching by feature points, except that in the present invention, the robust support points are the boundary points of image matching. . As shown in FIG. 5, FIG. 5 is a schematic diagram of an embodiment of the robust support line of the binocular matching method of FIG. 1. The specific pixel points are filtered by the above manner to determine a specific pixel point F, G, H and a corresponding F′. , G′, H′ is the robust support point of the binocular image, and the left graph 501 and the right graph 502 are divided into 1 by the vertical support points F, G, H, F′, G′, H′. Eight areas, these boundary lines are called robust support lines. Corresponding to the corresponding robust support points, the regions are corresponding, respectively, regions 1 and 5, 2 and 6, 3 and 7, 4 and 8, matching only in the corresponding regions, effectively reducing image matching by the above method The range of movement reduces the amount of calculation.

在另一个具体的实施例中,如果通过以上鲁棒支撑点不能够得到匹配结果,则可以扩大特定像素点的选择范围,例如选择邻域色调差异最大的前10%的像素点,或者选择边缘直方图差值最大的前10%的像素点,重复上述步骤以获得新的鲁棒支撑点,结合之前获得的鲁棒支撑点和新的鲁棒支撑点对双目图像进行匹配,直至获得匹配结果。In another specific embodiment, if the matching result cannot be obtained by the above robust support points, the selection range of the specific pixel point may be expanded, for example, selecting the top 10% of the pixels with the largest difference in neighborhood tones, or selecting the edge. The first 10% of the pixels with the largest difference in histogram, repeat the above steps to obtain a new robust support point, and match the binocular image with the previously obtained robust support point and the new robust support point until a match is obtained. result.

区别于现有技术,本发明通过定义双目图像中的特定像素点来获取鲁棒支撑点,再通过该鲁棒支撑点作为分界点进行图像匹配,缩小了图像匹配的移动范围,降低了算法的计算量,达到了图像快速匹配的目的。Different from the prior art, the present invention obtains a robust support point by defining a specific pixel point in the binocular image, and then performs image matching by using the robust support point as a boundary point, thereby reducing the moving range of image matching and reducing the algorithm. The amount of calculations achieves the purpose of fast matching of images.

请参阅图6,图6是本发明视觉成像装置结构示意图。本发明还提供一种视觉成像装置,视觉成像装置包括相互耦接的图像采集器601、处理器602及存储器603。其中,图像采集器601用于获取目标区域的双目图像,存储器603用于存储双目图像、特定像素点、鲁棒支撑点及处理器运行的程序数据,处理器602在执行程序数据时实现上述任一双目匹配的方法。有关双目匹配的方法的详细步骤请参阅前述说明,在此不再赘述。Please refer to FIG. 6. FIG. 6 is a schematic structural view of a visual imaging device of the present invention. The present invention also provides a visual imaging device including an image collector 601, a processor 602, and a memory 603 coupled to each other. The image collector 601 is configured to acquire a binocular image of the target area, and the memory 603 is configured to store a binocular image, a specific pixel point, a robust support point, and program data run by the processor, and the processor 602 implements the program data. Any of the above methods of binocular matching. For detailed steps on the method of binocular matching, please refer to the foregoing description, and details are not described herein again.

区别于现有技术,本实施例提供了一种视觉成像装置,视觉成像装置在工作时通过定义双目图像中的特定像素点来获取鲁棒支撑点,再通过该鲁棒支撑点作为分界点进行图像匹配,缩小了图像匹配的移动范围,降低了算法的计算量,达到了图像快速匹配的目的。Different from the prior art, the embodiment provides a visual imaging device. The visual imaging device obtains a robust support point by defining a specific pixel point in the binocular image during operation, and then uses the robust support point as a demarcation point. Image matching is performed, which reduces the moving range of image matching, reduces the calculation amount of the algorithm, and achieves the purpose of image fast matching.

进一步的,本发明还提供一种具有存储功能的装置,如图7所示,图7是本发明计算机可读存储装置一实施例的结构示意图,这种具有存储功能的装置701存储有程序数据702,该种程序数据702能够被执行以实现上述任一双目匹配的方法。在一个具体的实施例中,具有存储功能的装置701可以是终端中的存储芯片、硬盘或者是移动硬盘或者闪存、光盘等其他可读写存储的工具,还可以是服务器等等。Further, the present invention further provides a device having a storage function. As shown in FIG. 7, FIG. 7 is a schematic structural diagram of an embodiment of a computer readable storage device according to the present invention. The device 701 having a storage function stores program data. 702. The program data 702 can be executed to implement any of the binocular matching methods described above. In a specific embodiment, the storage device 701 may be a storage chip in the terminal, a hard disk, or a portable hard disk or other readable and writable storage tool such as a flash memory, an optical disk, or the like, or a server or the like.

区别于现有技术,本实施例提供了一种具有存储功能的装置,该装置中存储有程序数据,该程序数据被执行时能够通过定义双目图像中的特定像素点来获取鲁棒支撑点,再通过该鲁棒支撑点作为分界点进行图像匹配,缩小了图像匹配的移动范围,降低了算法的计算量,达到了图像快速匹配的目的。Different from the prior art, the embodiment provides a device with a storage function, in which program data is stored, and when the program data is executed, a robust support point can be obtained by defining a specific pixel point in the binocular image. Then, the robust support point is used as the boundary point for image matching, which reduces the moving range of image matching, reduces the calculation amount of the algorithm, and achieves the purpose of fast image matching.

以上所述实施例仅表达了本发明的实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。 The above-described embodiments are merely illustrative of the embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.

Claims (20)

一种双目匹配的方法,其特征在于,包括如下步骤:A method for binocular matching, comprising the steps of: 获取目标区域的双目图像;Obtain a binocular image of the target area; 获取所述双目图像中的特定像素点;其中,所述特定像素点为所述双目图像中颜色统计直方图色调值最小的像素点、邻域色调差异最大的像素点或所述双目图像中边缘直方图差值最大的像素点;Obtaining a specific pixel point in the binocular image; wherein the specific pixel point is a pixel point with a smallest hue value of a color statistical histogram in the binocular image, a pixel point having the largest difference in neighborhood color tone, or the binocular The pixel with the largest difference in edge histogram in the image; 以所述特定像素点为基准,获取与所述特定像素点具有预定间隔的像素点的灰度值或色调值;Obtaining a gray value or a tone value of a pixel point having a predetermined interval from the specific pixel point based on the specific pixel point; 根据所述灰度值或色调值以确定在同一匹配极线上的各个特定像素点之间的相似度,并将在同一匹配极线上相似度最高的至少一对特定像素点定义为鲁棒支撑点;Determining the similarity between respective specific pixel points on the same matching pole line according to the gray value or the tonal value, and defining at least one pair of specific pixel points having the highest similarity on the same matching pole line as robust Support point 通过所述鲁棒支撑点对所述双目图像进行匹配。The binocular image is matched by the robust support points. 根据权利要求1所述的双目匹配的方法,其特征在于,所述以所述特定像素点为基准,获取与所述特定像素点具有预定间隔的像素点的灰度值或色调值的具体步骤包括:The binocular matching method according to claim 1, wherein the specificity of the gray value or the tonal value of the pixel point having a predetermined interval from the specific pixel point is obtained based on the specific pixel point The steps include: 以所述特定像素点为基准,获取所述特定像素点的灰度值或色调值的梯度方向,根据所述梯度方向的特性选择与该特定像素点具有预定间隔的像素点,并获取相应的灰度值或色调值。Obtaining a gradient value of the gray value or the tonal value of the specific pixel point based on the specific pixel point, selecting a pixel point having a predetermined interval from the specific pixel point according to the characteristic of the gradient direction, and acquiring a corresponding pixel Gray value or tonal value. 根据权利要求2所述的双目匹配的方法,其特征在于,所述根据所述梯度方向的特性选择与该特定像素点具有预定间隔的像素点,并获取相应的灰度值或色调值的步骤具体包括:The binocular matching method according to claim 2, wherein the selecting a pixel point having a predetermined interval from the specific pixel point according to the characteristic of the gradient direction, and acquiring a corresponding gray value or tone value The steps specifically include: 当所述特定像素点的灰度值或色调值的梯度方向与预设的双目图像平面坐标系中的水平方向夹角小于预设角度时,获取与所述特定像素点在水平方向两侧具有预定间隔的像素点的灰度值或色调值;When the angle of the gray value or the tone value of the specific pixel point is smaller than the preset angle in the horizontal direction in the preset binocular image plane coordinate system, acquiring the specific pixel point on both sides in the horizontal direction a gray value or a tone value of a pixel having a predetermined interval; 当所述特定像素点的灰度值或色调值的梯度方向与预设的双目图像平面坐标系中的水平方向夹角大于等于预设角度时,获取与所述特定像素点在垂直方向两侧具有预定间隔的像素点的灰度值或色调值。When the gradient direction of the gray value or the tonal value of the specific pixel point and the horizontal direction in the preset binocular image plane coordinate system are greater than or equal to the preset angle, obtaining the vertical direction with the specific pixel point The side has a gray value or a tone value of a pixel of a predetermined interval. 根据权利要求3所述的双目匹配的方法,其特征在于,所述预定间隔为1-5个像素点。The method of binocular matching according to claim 3, wherein said predetermined interval is 1-5 pixels. 根据权利要求2所述的双目匹配的方法,其特征在于,所述获取所述特定像素点的灰度值或色调值的梯度方向的步骤具体包括:建立双目图像平面坐标系,对双目图像进行灰度化处理,并据此计算特定像素点位置的灰度值的梯度方向。The method of binocular matching according to claim 2, wherein the step of acquiring a gradient value of the gray value or the tonal value of the specific pixel point comprises: establishing a binocular image plane coordinate system, The mesh image is subjected to grayscale processing, and the gradient direction of the grayscale value of the specific pixel point position is calculated accordingly. 根据权利要求1所述的双目匹配的方法,其特征在于,所述邻域色调差异最大的像素点包括邻域色调差异最大的前5%的像素点。The method of binocular matching according to claim 1, wherein the pixel point having the largest difference in the color tone of the neighborhood comprises the first 5% of the pixel points having the largest difference in the color tone of the neighborhood. 根据权利要求1所述的双目匹配的方法,其特征在于,所述边缘直方图差值最大的像素点包括边缘直方图差值最大的前5%的像素点。The binocular matching method according to claim 1, wherein the pixel point having the largest difference in the edge histogram includes the first 5% of the pixel having the largest difference in the edge histogram. 根据权利要求1所述的双目匹配的方法,其特征在于,所述通过所述鲁棒支撑点对所述双目图像进行匹配的步骤具体包括:将所述鲁棒支撑点连接成鲁棒支撑线,通过所述鲁棒支撑线的方式对图像进行匹配。The method of binocular matching according to claim 1, wherein the step of matching the binocular image by the robust support point comprises: connecting the robust support points to be robust Support lines that match the image by the robust support lines. 根据权利要求1所述的双目匹配的方法,其特征在于,在所述通过所述鲁棒支撑点对所述双目图像进行匹配的步骤之后还包括:The binocular matching method according to claim 1, wherein after the step of matching the binocular image by the robust support point, the method further comprises: 如果不能够得到匹配结果,则扩大特定像素点的选择范围以获得新的鲁棒支撑点;If the matching result cannot be obtained, the selection range of the specific pixel point is expanded to obtain a new robust support point; 结合所述鲁棒支撑点和所述新的鲁棒支撑点对所述双目图像进行匹配,获得匹配结果。The binocular image is matched in combination with the robust support point and the new robust support point to obtain a matching result. 一种视觉成像装置,其特征在于,包括相互耦接的图像采集器、处理器及存储器,A visual imaging device, comprising: an image collector, a processor and a memory coupled to each other, 所述图像采集器用于获取目标区域的双目图像;The image collector is configured to acquire a binocular image of a target area; 所述存储器用于存储双目图像、特定像素点、鲁棒支撑点及处理器运行的程序数据;The memory is configured to store binocular images, specific pixel points, robust support points, and program data run by the processor; 所述处理器在执行程序数据时使所述视觉成像装置实现以下步骤:The processor causes the visual imaging device to perform the following steps when executing program data: 获取目标区域的双目图像;获取所述双目图像中的特定像素点;其中,所述特定像素点为所述双目图像中颜色统计直方图色调值最小的像素点、邻域色调差异最大的像素点或所述双目图像中边缘直方图差值最大的像素点;以所述特定像素点为基准,获取与所述特定像素点具有预定间隔的像素点的灰度值或色调值;根据所述灰度值或色调值以确定在同一匹配极线上的各个特定像素点之间的相似度,并将在同一匹配极线上相似度最高的至少一对特定像素点定义为鲁棒支撑点;通过所述鲁棒支撑点对所述双目图像进行匹配。Obtaining a binocular image of the target area; acquiring a specific pixel point in the binocular image; wherein the specific pixel point is a pixel point with the smallest hue value of the color statistical histogram in the binocular image, and the neighborhood color difference is the largest a pixel point or a pixel point having the largest difference in edge histogram in the binocular image; acquiring, according to the specific pixel point, a gray value or a tone value of a pixel point having a predetermined interval from the specific pixel point; Determining the similarity between respective specific pixel points on the same matching pole line according to the gray value or the tonal value, and defining at least one pair of specific pixel points having the highest similarity on the same matching pole line as robust a support point; the binocular image is matched by the robust support point. 根据权利要求10所述的视觉成像装置,其特征在于,所述处理器在执行所述以所述特定像素点为基准,获取与所述特定像素点具有预定间隔的像素点的灰度值或色调值的具体步骤包括:The visual imaging apparatus according to claim 10, wherein said processor acquires a gradation value of a pixel point having a predetermined interval from said specific pixel point or based on said specific pixel point The specific steps of the tone value include: 所述处理器以所述特定像素点为基准,获取所述特定像素点的灰度值或色调值的梯度方向,根据所述梯度方向的特性选择与该特定像素点具有预定间隔的像素点,并获取相应的灰度值或色调值。The processor acquires a gradient value of a gray value or a tone value of the specific pixel point based on the specific pixel point, and selects a pixel point having a predetermined interval from the specific pixel point according to the characteristic of the gradient direction, And get the corresponding gray value or tonal value. 根据权利要求11所述的视觉成像装置,其特征在于,所述处理器在执行所述根据所述梯度方向的特性选择与该特定像素点具有预定间隔的像素点,并获取相应的灰度值或色调值的步骤具体包括:The visual imaging apparatus according to claim 11, wherein said processor selects a pixel point having a predetermined interval from said specific pixel point according to a characteristic according to said gradient direction, and acquires a corresponding gray value Or the step of the tone value specifically includes: 所述处理器在所述特定像素点的灰度值或色调值的梯度方向与预设的双目图像平面坐标系中的水平方向夹角小于预设角度时,获取与所述特定像素点在水平方向两侧具有预定间隔的像素点的灰度值或色调值;Obtaining, when the gradient direction of the gray value or the tonal value of the specific pixel point and the horizontal direction in the preset binocular image plane coordinate system are smaller than a preset angle, acquiring a gray value or a tone value of a pixel point having a predetermined interval on both sides in the horizontal direction; 在所述特定像素点的灰度值或色调值的梯度方向与预设的双目图像平面坐标系中的水平方向夹角大于等于预设角度时,获取与所述特定像素点在垂直方向两侧具有预定间隔的像素点的灰度值或色调值。Obtaining a vertical angle with the specific pixel point when the angle between the gradient value of the gray value or the tonal value of the specific pixel point and the horizontal direction in the preset binocular image plane coordinate system is greater than or equal to the preset angle The side has a gray value or a tone value of a pixel of a predetermined interval. 根据权利要求12所述的视觉成像装置,其特征在于,所述预定间隔为1-5个像素点。The visual imaging apparatus according to claim 12, wherein said predetermined interval is 1-5 pixels. 根据权利要求11所述的视觉成像装置,其特征在于,所述处理器在执行所述获取所述特定像素点的灰度值或色调值的梯度方向的步骤具体包括:所述处理器建立双目图像平面坐标系,对双目图像进行灰度化处理,并据此计算特定像素点位置的灰度值的梯度方向。The visual imaging apparatus according to claim 11, wherein the step of the processor performing the obtaining a gradient direction of a gray value or a tonal value of the specific pixel point comprises: the processor establishing a double The eye image plane coordinate system performs grayscale processing on the binocular image, and calculates the gradient direction of the gray value of the specific pixel point position accordingly. 根据权利要求10所述的视觉成像装置,其特征在于,所述邻域色调差异最大的像素点包括邻域色调差异最大的前5%的像素点。The visual imaging apparatus according to claim 10, wherein the pixel point having the largest difference in the neighborhood hue includes the first 5% of the pixel points having the largest difference in the neighborhood hue. 根据权利要求10所述的视觉成像装置,其特征在于,所述边缘直方图差值最大的像素点包括边缘直方图差值最大的前5%的像素点。The visual imaging apparatus according to claim 10, wherein the pixel point having the largest difference in edge histogram includes the first 5% of the pixel having the largest difference in edge histogram. 根据权利要求10所述的视觉成像装置,其特征在于,所述处理器在执行所述通过所述鲁棒支撑点对所述双目图像进行匹配的步骤具体包括:所述处理器将所述鲁棒支撑点连接成鲁棒支撑线,通过所述鲁棒支撑线的方式对图像进行匹配。The visual imaging apparatus according to claim 10, wherein the step of the processor performing the matching of the binocular image by the robust support point comprises: the processor The robust support points are connected into a robust support line, and the images are matched by the robust support lines. 根据权利要求10所述的视觉成像装置,其特征在于,所述处理器在执行所述通过所述鲁棒支撑点对所述双目图像进行匹配的步骤之后还包括:The visual imaging apparatus according to claim 10, wherein the processor further comprises: after performing the step of matching the binocular image by the robust support point: 所述处理器如果不能够得到匹配结果,则扩大特定像素点的选择范围以获得新的鲁棒支撑点;结合所述鲁棒支撑点和所述新的鲁棒支撑点对所述双目图像进行匹配,获得匹配结果。If the processor is unable to obtain a matching result, expanding a selection range of a specific pixel point to obtain a new robust support point; combining the robust support point and the new robust support point to the binocular image Match and get the matching result. 一种具有存储功能的装置,其特征在于,所述具有存储功能的装置存储有程序数据,所述程序数据能够被执行以下步骤:A device having a storage function, characterized in that the device having a storage function stores program data, and the program data can be executed by the following steps: 获取目标区域的双目图像;Obtain a binocular image of the target area; 获取所述双目图像中的特定像素点;其中,所述特定像素点为所述双目图像中颜色统计直方图色调值最小的像素点、邻域色调差异最大的像素点或所述双目图像中边缘直方图差值最大的像素点;Obtaining a specific pixel point in the binocular image; wherein the specific pixel point is a pixel point with a smallest hue value of a color statistical histogram in the binocular image, a pixel point having the largest difference in neighborhood color tone, or the binocular The pixel with the largest difference in edge histogram in the image; 以所述特定像素点为基准,获取与所述特定像素点具有预定间隔的像素点的灰度值或色调值;Obtaining a gray value or a tone value of a pixel point having a predetermined interval from the specific pixel point based on the specific pixel point; 根据所述灰度值或色调值以确定在同一匹配极线上的各个特定像素点之间的相似度,并将在同一匹配极线上相似度最高的至少一对特定像素点定义为鲁棒支撑点;Determining the similarity between respective specific pixel points on the same matching pole line according to the gray value or the tonal value, and defining at least one pair of specific pixel points having the highest similarity on the same matching pole line as robust Support point 通过所述鲁棒支撑点对所述双目图像进行匹配。The binocular image is matched by the robust support points. 根据权利要求19所述的具有存储功能的装置,其特征在于,所述以所述特定像素点为基准,获取与所述特定像素点具有预定间隔的像素点的灰度值或色调值的具体步骤包括:The device having a storage function according to claim 19, wherein said obtaining, based on said specific pixel point, a specific value of a gray value or a tone value of a pixel point having a predetermined interval from said specific pixel point The steps include: 以所述特定像素点为基准,获取所述特定像素点的灰度值或色调值的梯度方向,根据所述梯度方向的特性选择与该特定像素点具有预定间隔的像素点,并获取相应的灰度值或色调值。Obtaining a gradient value of the gray value or the tonal value of the specific pixel point based on the specific pixel point, selecting a pixel point having a predetermined interval from the specific pixel point according to the characteristic of the gradient direction, and acquiring a corresponding pixel Gray value or tonal value.
PCT/CN2018/079433 2018-03-19 2018-03-19 Binocular matching method, visual imaging device and device with storage function Ceased WO2019178717A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880087302.3A CN111630569B (en) 2018-03-19 2018-03-19 Binocular matching method, visual imaging device and device with storage function
PCT/CN2018/079433 WO2019178717A1 (en) 2018-03-19 2018-03-19 Binocular matching method, visual imaging device and device with storage function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/079433 WO2019178717A1 (en) 2018-03-19 2018-03-19 Binocular matching method, visual imaging device and device with storage function

Publications (1)

Publication Number Publication Date
WO2019178717A1 true WO2019178717A1 (en) 2019-09-26

Family

ID=67988249

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/079433 Ceased WO2019178717A1 (en) 2018-03-19 2018-03-19 Binocular matching method, visual imaging device and device with storage function

Country Status (2)

Country Link
CN (1) CN111630569B (en)
WO (1) WO2019178717A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111551920A (en) * 2020-04-16 2020-08-18 重庆大学 Three-dimensional target real-time measurement system and method based on target detection and binocular matching
CN114782506A (en) * 2022-05-06 2022-07-22 汉斯夫(杭州)医学科技有限公司 Stereo matching occlusion removing method based on binocular camera
CN118864907A (en) * 2024-09-24 2024-10-29 江西有色地质矿产勘查开发院 A remote sensing image matching method for complex environments
CN119831869A (en) * 2025-03-19 2025-04-15 南昌虚拟现实研究院股份有限公司 Image detail enhancement method and system of binocular near-to-eye display equipment
CN120298639A (en) * 2025-06-12 2025-07-11 南昌虚拟现实研究院股份有限公司 A method for enhancing perception difference to improve the visual effect of near-eye display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709950A (en) * 2016-11-28 2017-05-24 西安工程大学 Binocular-vision-based cross-obstacle lead positioning method of line patrol robot
US20170221211A1 (en) * 2016-02-03 2017-08-03 Mitsubishi Electric Research Laboratories, Inc. Method and System for Reconstructing Scenes as 3D Models from Sequences of Images Using Constraint Satisfaction
CN107170008A (en) * 2017-05-19 2017-09-15 成都通甲优博科技有限责任公司 A kind of depth map creation method, system and image weakening method, system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106659A (en) * 2013-01-28 2013-05-15 中国科学院上海微系统与信息技术研究所 Open area target detection and tracking method based on binocular vision sparse point matching

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170221211A1 (en) * 2016-02-03 2017-08-03 Mitsubishi Electric Research Laboratories, Inc. Method and System for Reconstructing Scenes as 3D Models from Sequences of Images Using Constraint Satisfaction
CN106709950A (en) * 2016-11-28 2017-05-24 西安工程大学 Binocular-vision-based cross-obstacle lead positioning method of line patrol robot
CN107170008A (en) * 2017-05-19 2017-09-15 成都通甲优博科技有限责任公司 A kind of depth map creation method, system and image weakening method, system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111551920A (en) * 2020-04-16 2020-08-18 重庆大学 Three-dimensional target real-time measurement system and method based on target detection and binocular matching
CN114782506A (en) * 2022-05-06 2022-07-22 汉斯夫(杭州)医学科技有限公司 Stereo matching occlusion removing method based on binocular camera
CN118864907A (en) * 2024-09-24 2024-10-29 江西有色地质矿产勘查开发院 A remote sensing image matching method for complex environments
CN119831869A (en) * 2025-03-19 2025-04-15 南昌虚拟现实研究院股份有限公司 Image detail enhancement method and system of binocular near-to-eye display equipment
CN120298639A (en) * 2025-06-12 2025-07-11 南昌虚拟现实研究院股份有限公司 A method for enhancing perception difference to improve the visual effect of near-eye display device

Also Published As

Publication number Publication date
CN111630569B (en) 2024-02-27
CN111630569A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN105608671B (en) A kind of image split-joint method based on SURF algorithm
CN102665086B (en) Method for obtaining parallax by using region-based local stereo matching
WO2019178717A1 (en) Binocular matching method, visual imaging device and device with storage function
CN116823895B (en) Digital image calculation method and system based on variable template for RGB-D camera multi-view matching
CN109035394B (en) Face three-dimensional model reconstruction method, device, equipment, system and mobile terminal
CN114119739A (en) Binocular vision-based hand key point space coordinate acquisition method
WO2020259271A1 (en) Image distortion correction method and apparatus
TW202004679A (en) Image feature extraction method and saliency prediction method including the same
WO2014044126A1 (en) Coordinate acquisition device, system and method for real-time 3d reconstruction, and stereoscopic interactive device
CN111553862B (en) A method for defogging and binocular stereo vision positioning of sea and sky background images
CN102034247B (en) Motion capture method for binocular vision image based on background modeling
US20170270644A1 (en) Depth image Denoising Method and Denoising Apparatus
CN108510540A (en) Stereoscopic vision video camera and its height acquisition methods
CN108596975A (en) A kind of Stereo Matching Algorithm for weak texture region
CN115082777A (en) Binocular vision-based underwater dynamic fish form measuring method and device
CN109493373B (en) Stereo matching method based on binocular stereo vision
WO2023169281A1 (en) Image registration method and apparatus, storage medium, and electronic device
CN116749198A (en) Binocular stereoscopic vision-based mechanical arm grabbing method
CN116310131B (en) Three-dimensional reconstruction method considering multi-view fusion strategy
CN109978934A (en) A kind of binocular vision solid matching method and system based on matching cost weighting
CN116129037B (en) Visual touch sensor, three-dimensional reconstruction method, system, equipment and storage medium thereof
CN110099268B (en) Blind area perspective display method with natural color matching and natural fusion of display area
CN118350991A (en) Endoscopic image stitching method, endoscopic image stitching device, storage medium, and computer device
CN109978928A (en) A kind of binocular vision solid matching method and its system based on Nearest Neighbor with Weighted Voting
CN110246169A (en) A kind of window adaptive three-dimensional matching process and system based on gradient

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18910655

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18910655

Country of ref document: EP

Kind code of ref document: A1