Image processing method and device

By performing depth alignment processing and feature point matching on multiple color depth images, the cost and quality bottlenecks of naked-eye 3D imaging technology are solved, and more efficient image fusion and display effects are achieved.

CN118799197APending Publication Date: 2024-10-18CHINA MOBILE (XIONGAN) ICT CO LTD +3
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311846680.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Naked-eye 3D imaging technology has bottlenecks in terms of cost and imaging quality, making it difficult to achieve a qualitative breakthrough.

Method used

Through depth alignment processing of multiple color depth images, overlapping and non-overlapping areas are determined, feature points are extracted, and similarity matching and image fusion are performed to shorten the data volume of pixel feature extraction operations and ensure the speed and accuracy of feature extraction. .

Benefits of technology

It improves the quality of image fusion, ensures an improvement in both cost and quality of naked-eye 3D imaging, and achieves more efficient image processing and display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799197A_ABST
    Figure CN118799197A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image fusion method and device, and the method comprises the steps: carrying out the depth alignment processing of a plurality of color depth images, obtaining a plurality of depth-aligned images, determining the overlapping region and the non-overlapping region of each depth-aligned image according to the scale of each depth-aligned image, and carrying out the depth alignment processing of a plurality of color depth images. The method comprises the following steps: performing depth alignment on an overlapped region of each depth alignment image, performing feature point extraction on the overlapped region of each depth alignment image to obtain feature points of the overlapped region, performing similarity matching on the feature points of the overlapped region to obtain overlapped feature points of each depth alignment image, and performing image fusion on the overlapped region based on the overlapped feature points of each depth alignment image to obtain a fusion region; and finally, displaying a spliced image obtained by splicing the fusion region and the non-overlapping region, thereby ensuring the operation speed and accuracy of feature extraction and ensuring the image quality by shortening the data volume of pixel point feature extraction operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of image processing, and in particular to an image processing method and device. Background Art

[0002] With the upgrading of hardware technology and the improvement of display quality, people are no longer satisfied with the existing flat (2D) display imaging technology and have a strong interest in the pursuit of stereoscopic (3D) display. Currently, various electronic products provide a series of virtual synthetic pseudo-3D display effects. Fast, economical and practical naked-eye 3D display technology has become the ultimate goal pursued by various players in the field of display imaging.

[0003] At present, the high cost and high-precision operation requirements of binocular camera shooting and imaging methods have concentrated naked-eye 3D imaging technology in the hands of a small number of people; and the imaging technology that uses independent image shooting for fusion has been bottlenecked by its unstable and low imaging quality. Therefore, it is difficult for naked-eye 3D imaging technology to achieve a qualitative breakthrough under the constraints of cost and quality. How to overcome this problem is the focus of increasing attention of technicians. Summary of the invention

[0004] An object of one embodiment of the present specification is to provide an image processing method and apparatus to solve the problem of low image fusion quality.

[0005] To solve the above technical problems, one embodiment of this specification is implemented as follows:

[0006] In a first aspect, an embodiment of the present specification provides an image processing method, comprising:

[0007] Performing depth alignment processing on multiple color depth images to obtain multiple depth aligned images;

[0008] Determine overlapping areas and non-overlapping areas of the depth alignment images according to the scales of the depth alignment images, and extract feature points from the overlapping areas of the depth alignment images to obtain feature points of the overlapping areas;

[0009] Performing similarity matching on the feature points in the overlapping area to obtain overlapping feature points of the depth-aligned images;

[0010] The images of the overlapping area are fused based on the overlapping feature points of the depth alignment images to obtain a fused area, and a stitched image obtained by stitching the fused area and the non-overlapping area is displayed.

[0011] In a second aspect, another embodiment of the present specification provides an image processing device, including:

[0012] An image alignment module is configured to perform depth alignment processing on a plurality of color depth images to obtain a plurality of depth aligned images;

[0013] A feature point extraction module is configured to determine the overlapping area and non-overlapping area of ​​each depth alignment image according to the scale of each depth alignment image, and extract feature points from the overlapping area of ​​each depth alignment image to obtain feature points of the overlapping area;

[0014] A similarity matching module is configured to perform similarity matching on the feature points of the overlapping area to obtain overlapping feature points of the depth aligned images;

[0015] The image fusion module is configured to perform image fusion of the overlapping area based on the overlapping feature points of the depth alignment images to obtain a fused area, and display a stitched image obtained by stitching the fused area and the non-overlapping area.

[0016] In a third aspect, another embodiment of the present specification provides an image processing device, comprising: a memory, a processor, and computer executable instructions stored in the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the steps of the image processing method as described in the first aspect above.

[0017] In a fourth aspect, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the image processing method described in the first aspect above are implemented.

[0018] The image processing method provided in the present embodiment performs depth alignment processing on the multiple color depth images after acquiring multiple color depth images to obtain multiple depth aligned images, then determines the overlapping area and non-overlapping area of ​​each depth aligned image according to the scale of each depth aligned image, and extracts feature points from the overlapping area of ​​each depth aligned image to obtain feature points of the overlapping area, then performs similarity matching on the feature points of the overlapping area to obtain overlapping feature points of each depth aligned image, and performs image fusion of the overlapping area based on the overlapping feature points of each depth aligned image to obtain a fused area, and finally displays a spliced ​​image obtained by splicing the fused area and the non-overlapping area, thereby ensuring the operation speed and accuracy of the feature extraction and the image quality by shortening the data volume of the pixel feature extraction operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in one or more embodiments of the present specification, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0020] Figure 1 A processing flow chart of an image processing method provided by one embodiment of this specification;

[0021] Figure 2 A schematic diagram of overlapping feature points of an image processing method provided by an embodiment of this specification;

[0022] Figure 3 A processing flow chart of an image processing method applied to naked-eye 3D imaging scenes provided by one embodiment of this specification;

[0023] Figure 4 A schematic diagram of an image processing device provided in one embodiment of this specification;

[0024] Figure 5 A schematic diagram of the structure of an image processing device provided in one embodiment of this specification. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0026] An embodiment of an image processing method provided in this specification:

[0027] Reference Figure 1 The image processing method provided in this embodiment specifically includes the following steps S102 to S108.

[0028] Step S102: performing depth alignment processing on a plurality of color depth images to obtain a plurality of depth aligned images.

[0029] In this embodiment, the same scene or the same object is photographed at different angles by an image acquisition device to obtain multiple color depth images with cross-content, wherein the color depth image refers to an image that carries both color values ​​and depth values, such as an RGBD image. In addition, the color depth image can also be a combination of a color image and a depth image, such as a combination of a color image taken by an ordinary camera and a depth image taken by a depth camera. Here, the shooting angles of the ordinary camera and the depth camera should be the same. The depth alignment image refers to an image obtained by aligning the depth information of the color depth image, and alignment refers to aligning the depth values ​​of the same pixel in multiple color depth images to the same value.

[0030] In the specific implementation process, in order to improve the quality and clarity of the images collected by the image acquisition device and improve the accuracy of subsequent image processing tasks, the number of pixels of each image collected by the image acquisition device is detected to pre-process each image in a targeted manner to improve the image quality. In an optional implementation manner provided in this embodiment, the image acquisition device acquires the color depth image in the following manner:

[0031] Detecting whether the number of pixels of each image acquired by the image acquisition device reaches a threshold;

[0032] If the number of pixels is less than the threshold, performing data completion processing on the pixels of each image to obtain the multiple color depth images;

[0033] If the number of pixels is greater than the threshold, data noise reduction processing is performed on the pixels of each image to obtain the multiple color depth images.

[0034] Among them, the image refers to an image that has not been preprocessed. After the image acquisition device acquires the image that has not been preprocessed, the image that has not been preprocessed is preprocessed and / or data noise reduction is performed on the image to obtain a color depth image. Specifically, it is detected whether the number of pixels of each image reaches a threshold; if the number of pixels is less than the threshold, data completion is performed on the pixels of each image to obtain multiple color depth images; if the number of pixels is greater than the threshold, data noise reduction is performed on the pixels of each image to obtain multiple color depth images.

[0035] For example, the data completion processing can use the least neighbor method or the 4-neighbor average weighted method to fill in the missing pixels according to the neighboring pixels of the missing pixels to complete the pixels; the data denoising processing can use the white noise elimination method to denoise the pixels, and by restoring the color value of the pixel, the pixel value of the pixel can be used for subsequent processing.

[0036] Specifically, after the collected color depth image is preprocessed, the depth value of the color depth image needs to be adjusted. Since the depth information of the image may have errors due to the adjustment of the acquisition device parameters or the change of the acquisition environment, in order to make the subsequent displayed image more accurate, the depth value of the color depth image is adjusted by the focus position of the acquisition device so that the depth values ​​of the same pixel in multiple color depth images can be aligned. In an optional implementation manner provided in this embodiment, the depth alignment processing of multiple color depth images is performed in the following manner:

[0037] If the difference between the depth values ​​of the plurality of color depth images is greater than a preset threshold, calibrating the focus positions of the plurality of color depth images;

[0038] The depth values ​​of the multiple color depth images are adjusted according to the focus position to obtain the multiple depth aligned images.

[0039] Specifically, the depth values ​​of the color depth images collected at the same angle using the same image acquisition device should be the same. However, in practice, the depth values ​​of the color depth images are often inconsistent due to reasons such as adjustment of acquisition device parameters or changes in the acquisition environment. In this case, the depth value of the color depth image needs to be adjusted according to the focus position.

[0040] Among them, the focus position refers to the focus position of the center point of the image. Before adjusting the depth value of the image, it is necessary to select a reference image to calibrate the focus position of the image. When there are only two color depth images, select the image with a higher depth value of the two images as the reference image to calibrate the focus position. When there are multiple color depth images, evaluate the image focusing of the multiple color depth images, and select the image with the best evaluation result as the reference image. By calibrating the focus position, the focus positions of different images are made consistent, and then based on the calibrated focus position and the reference image, subsequent depth value adjustments are performed on other images to obtain the multiple depth-aligned images.

[0041] Specifically, the threshold of the depth value difference can be set according to different needs. For an image whose depth value difference is greater than the threshold of the depth value difference, the focus position of the image is calibrated, and the depth value of the image is adjusted according to the focus position until the depth value is adjusted to be less than the threshold of the depth value difference. For example, the threshold of the depth value difference can be set to 5%. When calibrating the focus position of an image whose depth value difference is greater than 5%, the black and white interval chessboard in the camera focus mode can be used to calibrate the image focus position. After the calibration is completed, the correspondence between the total number of pixel intervals and the chessboard intervals of the image is determined, and the depth value of the image is adjusted based on the correspondence between the total number of pixel intervals and the chessboard intervals until the depth value difference is less than 5%.

[0042] Step S104 : determining the overlapping area and the non-overlapping area of ​​each depth alignment image according to the scale of each depth alignment image, and extracting feature points from the overlapping area of ​​each depth alignment image to obtain feature points of the overlapping area.

[0043] After the depth alignment process is performed on the multiple color depth images to obtain multiple depth aligned images, in this step, the overlapping area and non-overlapping area of ​​each depth aligned image are determined according to the scale corresponding to each depth value of each depth aligned image, and feature points are extracted from the overlapping area to obtain feature points of the overlapping area.

[0044] The scale refers to the correspondence between the number of pixels with equal depth values ​​in the image and the number of chessboard intervals. In the above process of calibrating the focal length position of the image by the black and white interval chessboard, the scale of the depth alignment image has been determined. It should be noted that pixels with different depth values ​​in the color depth image correspond to different areas to be processed. After determining each area to be processed of each depth alignment image, the area boundary of the area to be processed can be corrected according to the scale of each area to be processed, and the overlapping area and non-overlapping area are determined based on the corrected areas to be processed. In an optional implementation manner provided in this embodiment, the overlapping area and non-overlapping area of ​​each depth alignment image are determined according to the scale of each depth alignment image in the following manner:

[0045] Determine each to-be-processed area of ​​each depth-aligned image according to the depth values ​​of the pixel points of each depth-aligned image;

[0046] The region boundaries of the regions to be processed are corrected according to the respective scales of the regions to be processed, and the overlapping regions and the non-overlapping regions are determined based on the corrected regions to be processed.

[0047] Specifically, since the depth values ​​of different areas in the color depth image are different, the areas to be processed of each depth aligned image can be determined according to the depth values ​​of the pixels of the depth aligned image, and the area boundaries of the areas to be processed can be corrected according to the scales of the areas to be processed, and the overlapping areas and non-overlapping areas can be determined based on the corrected areas to be processed. The overlapping area here refers to an area where two or more color depth images have overlapping content. For example, image a contains object 1, object 2 and object 2, and image b also contains object 1, object 2 and object 4. Then the overlapping area of ​​image a and image b is the area where object 1 is located and the area where object 2 is located.

[0048] Further, in the process of determining each to-be-processed area of ​​each depth-aligned image according to the depth value of the pixel point of each depth-aligned image, in an optional implementation manner provided by this embodiment, any to-be-processed area of ​​each to-be-processed area of ​​each depth-aligned image can be obtained in the following manner:

[0049] Filter out pixels with consistent depth values ​​as pixels to be processed;

[0050] According to the concentration degree of the pixels to be processed, edge pixels in the pixels to be processed are eliminated to obtain valid pixels, and a region including the valid pixels is used as the region to be processed.

[0051] Specifically, since the depth values ​​of the same area in the depth-aligned image are usually consistent, but there may be edge pixels that are not concentrated in the same area among the pixels with consistent depth values, after screening out the pixels with consistent depth values ​​as the pixels to be processed, it is necessary to eliminate the edge pixels in the pixels to be processed according to the concentration of the pixels to be processed, obtain valid pixels, and use the area containing the valid pixels as the area to be processed.

[0052] For example, the depth value of object 1 in image a is x, and object 1 is in the upper left corner of image a, and there are 2 pixels with a depth value of x in the middle of image a, and there are 3 pixels with a depth value of x in the lower right part of image a. Therefore, in the process of obtaining the area to be processed, the pixels with a depth value of x in image a are first screened out as the pixels to be processed, and then, based on the feature that the pixels to be processed are concentrated in the upper left corner of image a, the 2 pixels with a depth value of x in the middle of image a and the 3 pixels with a depth value of x in the lower right part of image a are eliminated, and the concentrated area of ​​pixels with a depth value of x in the upper left corner of image a is obtained as the area to be processed. In addition, the above processing is also performed on other depth values ​​in the image, which will not be repeated in this embodiment.

[0053] In the specific implementation process, after determining the overlapping area of ​​each depth-aligned image, feature points are extracted from the overlapping area. Specifically, a pyramid model or an optimized pyramid model can be used for feature extraction. Taking a depth-aligned image as an example, first, the depth-aligned image is used as the first layer of the pyramid, called the original layer. Then, the original layer is Gaussian smoothed to generate the next layer, that is, a depth-aligned image with a lower resolution. The above steps are repeated until the required number of pyramid layers is reached or the image size reaches the minimum limit. After that, feature extraction can be performed on images at each level. Common feature extraction methods include edge detection, corner detection, texture analysis, etc. Various image processing and visual algorithms can be used to achieve feature extraction.

[0054] Step S106: performing similarity matching on the feature points in the overlapping area to obtain overlapping feature points of the depth-aligned images.

[0055] The above-mentioned method determines the overlapping area and non-overlapping area of ​​each depth aligned image according to the scale of each depth aligned image, and extracts feature points of the overlapping area of ​​each depth aligned image. After obtaining the feature points of the overlapping area, in this step, similarity matching is performed on the feature points of the overlapping area to obtain the overlapping feature points of each depth aligned image.

[0056] In the specific implementation process, in order to improve the reliability of image description and reduce the computational complexity, after obtaining the feature points of the overlapping area, the feature points can be screened, and subsequent similarity matching operations are performed based on feature points with higher feature dimensions. In an optional implementation provided by this embodiment, similarity matching is performed on the feature points of the overlapping area in the following manner to obtain overlapping feature points of each depth aligned image:

[0057] Screening the feature points of the overlapping area according to the feature dimensions of the feature points to obtain target feature points;

[0058] A similarity matching algorithm is used to perform similarity matching on the target feature points to obtain the overlapping feature points.

[0059] Specifically, after obtaining the feature points of the overlapping area, the feature points can be sorted according to their feature dimensions, and the feature points in the sequence at a preset position are taken for similarity matching. In the process of similarity matching, a scale-invariant feature transformation method or an optimization method thereof can be used for similarity matching to find the overlapping feature points of the overlapping areas of each depth-aligned image. It should be noted that the overlapping feature points of each depth-aligned image are in a one-to-one correspondence.

[0060] For example, Figure 2 As shown in the schematic diagram of overlapping feature points, after determining the overlapping area of ​​the two depth aligned images, feature points are extracted for the overlapping area of ​​the left image and the overlapping area of ​​the right image respectively to obtain black feature points and white feature points in the left image, and the corresponding black feature points and white feature points in the right image, wherein the black feature points in the left image and the black feature points in the right image are black overlapping feature points, and the white feature points in the left image and the white feature points in the right image are white overlapping feature points.

[0061] Step S108 , performing image fusion of the overlapping area based on the overlapping feature points of the depth alignment images to obtain a fused area, and displaying a stitched image obtained by stitching the fused area and the non-overlapping area.

[0062] After the similarity matching is performed on the feature points of the overlapping areas to obtain the overlapping feature points of each depth aligned image, in this step, image fusion of the overlapping areas is performed based on the overlapping feature points of each depth aligned image to obtain a fused area, and a stitched image obtained by stitching the fused area and the non-overlapping area is displayed.

[0063] In the specific implementation process, after obtaining the overlapping feature points, the coordinate positions of the overlapping feature points can be unified by using the projection change principle to perform image fusion. In an optional implementation provided by this embodiment, the image fusion of the overlapping area is performed based on the overlapping feature points of each depth alignment image in the following manner to obtain the fusion area:

[0064] Taking any feature point among the overlapping feature points as a reference feature point, and calculating a displacement vector between other feature points among the overlapping feature points and the reference feature point;

[0065] The coordinates of each feature point in the overlapping feature points in a two-dimensional coordinate system are determined based on the displacement vector, and the images of the overlapping area are fused according to the coordinates to obtain the fused area.

[0066] Specifically, one of the depth aligned images is selected as a reference image, and an overlapping feature point in the reference image is selected as a reference feature point. For each overlapping feature point corresponding to it, according to its displacement vector with the reference feature point, the overlapping feature point can be transformed to the same two-dimensional coordinate (world coordinate) by projection transformation. After that, the image fusion method such as Laplacian pyramid or Gaussian fusion can be used to fuse the image.

[0067] Taking the fusion of the overlapping areas of two images through the Laplacian pyramid as an example, first, the overlapping areas of the two images are constructed into Laplacian pyramids respectively. The Laplacian pyramid is an image pyramid obtained by multiple downsampling and upsampling of the original image. Each layer of the image is the difference between the original image and the previous layer after upsampling. Then, the corresponding pyramid layers of the two images are fused. Simple weighted average or other fusion strategies can be selected. Finally, the fused pyramid levels are upsampled and accumulated layer by layer to obtain the final fused fusion area.

[0068] The following combination Figure 3 , taking the application of the image processing method provided by this embodiment in the naked eye 3D imaging scene as an example, the image processing method provided by this embodiment is further described. Figure 3 The image processing method applied to the naked-eye 3D imaging scene specifically includes steps S302 to S326.

[0069] Step S302: Detect whether the number of pixels of each image acquired by the image acquisition device reaches a threshold.

[0070] Step S304: if the number of pixels is less than the threshold, data completion processing is performed on the pixels of each image to obtain a plurality of color depth images.

[0071] Step S306: If the number of pixels is greater than the threshold, data noise reduction processing is performed on the pixels of each image to obtain multiple color depth images.

[0072] Step S308 : if the difference between the depth values ​​of the plurality of color depth images is greater than a preset threshold, calibrate the focus positions of the plurality of color depth images.

[0073] Step S310: adjusting depth values ​​of a plurality of color depth images according to a focus position to obtain a plurality of depth aligned images.

[0074] Step S312: determining each to-be-processed area of ​​each depth-aligned image according to the depth values ​​of the pixels of each depth-aligned image.

[0075] Step S314: correcting the region boundaries of the regions to be processed according to the scales of the regions to be processed, and determining overlapping regions and non-overlapping regions based on the corrected regions to be processed.

[0076] Step S316: extract feature points from the overlapping areas of the depth aligned images to obtain feature points of the overlapping areas.

[0077] Step S318, screening the feature points in the overlapping area according to the feature dimensions of the feature points to obtain target feature points.

[0078] Step S320: perform similarity matching on the target feature points using a similarity matching algorithm to obtain overlapping feature points.

[0079] Step S322: taking any feature point in the overlapping feature points as a reference feature point, and calculating the displacement vector between the other feature points in the overlapping feature points and the reference feature point.

[0080] Step S324, determining the coordinates of each feature point in the overlapping feature points in the two-dimensional coordinate system based on the displacement vector, and performing image fusion of the overlapping area according to the coordinates to obtain a fused area.

[0081] Step S326, displaying a stitched image obtained by stitching the fused area and the non-overlapping area.

[0082] Figure 4 A schematic diagram of an image processing device provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the device comprises:

[0083] The image alignment module 402 is configured to perform depth alignment processing on the multiple color depth images to obtain multiple depth aligned images;

[0084] The feature point extraction module 404 is configured to determine the overlapping area and the non-overlapping area of ​​each depth alignment image according to the scale of each depth alignment image, and extract feature points from the overlapping area of ​​each depth alignment image to obtain feature points of the overlapping area;

[0085] A similarity matching module 406 is configured to perform similarity matching on the feature points of the overlapping area to obtain overlapping feature points of the depth aligned images;

[0086] The image fusion module 408 is configured to perform image fusion of the overlapping area based on the overlapping feature points of the depth alignment images to obtain a fused area, and display a stitched image obtained by stitching the fused area and the non-overlapping area.

[0087] The image processing method provided in this embodiment firstly performs depth alignment processing on multiple color depth images by running an image alignment module 402 to obtain multiple depth alignment images, and runs a feature point extraction module 404 to determine the overlapping area and non-overlapping area of ​​each depth alignment image according to the scale of each depth alignment image, and extracts feature points from the overlapping area of ​​each depth alignment image to obtain the feature points of the overlapping area. Furthermore, after obtaining the feature points of the overlapping area, runs a similarity matching module 406 to perform similarity matching on the feature points of the overlapping area to obtain the overlapping feature points of the depth alignment images, and then runs an image fusion module 408 to perform image fusion of the overlapping area based on the overlapping feature points of the depth alignment images to obtain a fused area, and displays a spliced ​​image obtained by splicing the fused area and the non-overlapping area. In this way, by shortening the data amount of pixel feature extraction operation, the operation speed and accuracy of feature extraction are guaranteed, and the image quality is ensured.

[0088] The image processing device provided in one embodiment of the present specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0089] Furthermore, an embodiment of the present specification also provides an image processing device, Figure 5 A schematic diagram of the structure of an image processing device provided in an embodiment of this specification is shown in FIG. Figure 5As shown, the device includes: a memory 501, a processor 502, a bus 503 and a communication interface 504. The memory 501, the processor 502 and the communication interface 504 communicate through the bus 503, and the communication interface 504 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.

[0090] Figure 5 In the embodiment, the memory 501 stores computer executable instructions that can be run on the processor 502. When the computer executable instructions are executed by the processor 502, the following process is implemented:

[0091] Performing depth alignment processing on multiple color depth images to obtain multiple depth aligned images;

[0092] Determine overlapping areas and non-overlapping areas of the depth alignment images according to the scales of the depth alignment images, and extract feature points from the overlapping areas of the depth alignment images to obtain feature points of the overlapping areas;

[0093] Performing similarity matching on the feature points in the overlapping area to obtain overlapping feature points of the depth-aligned images;

[0094] The images of the overlapping area are fused based on the overlapping feature points of the depth alignment images to obtain a fused area, and a stitched image obtained by stitching the fused area and the non-overlapping area is displayed.

[0095] The image processing device provided in this embodiment, through the cooperation of the memory 501, the processor 502, the bus 503 and the communication interface 504, after acquiring multiple color depth images, performs depth alignment processing on the multiple color depth images to obtain multiple depth aligned images, then determines the overlapping area and non-overlapping area of ​​each depth aligned image according to the scale of each depth aligned image, and extracts feature points from the overlapping area of ​​each depth aligned image to obtain feature points of the overlapping area, then performs similarity matching on the feature points of the overlapping area to obtain overlapping feature points of each depth aligned image, and performs image fusion of the overlapping area based on the overlapping feature points of each depth aligned image to obtain a fused area, and finally displays a spliced ​​image obtained by splicing the fused area and the non-overlapping area, thereby ensuring the speed and accuracy of feature extraction and image quality by shortening the data volume of pixel feature extraction operation.

[0096] The image processing device provided in one embodiment of the present specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0097] Furthermore, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the following process is implemented:

[0098] Performing depth alignment processing on multiple color depth images to obtain multiple depth aligned images;

[0099] Determine overlapping areas and non-overlapping areas of the depth alignment images according to the scales of the depth alignment images, and extract feature points from the overlapping areas of the depth alignment images to obtain feature points of the overlapping areas;

[0100] Performing similarity matching on the feature points in the overlapping area to obtain overlapping feature points of the depth-aligned images;

[0101] The images of the overlapping area are fused based on the overlapping feature points of the depth alignment images to obtain a fused area, and a stitched image obtained by stitching the fused area and the non-overlapping area is displayed.

[0102] The computer-readable storage medium provided in the present embodiment performs depth alignment processing on the multiple color depth images after acquiring multiple color depth images to obtain multiple depth aligned images, then determines the overlapping area and non-overlapping area of ​​each depth aligned image according to the scale of each depth aligned image, and extracts feature points from the overlapping area of ​​each depth aligned image to obtain feature points of the overlapping area, then performs similarity matching on the feature points of the overlapping area to obtain overlapping feature points of each depth aligned image, and performs image fusion of the overlapping area based on the overlapping feature points of each depth aligned image to obtain a fused area, and finally displays a spliced ​​image obtained by splicing the fused area and the non-overlapping area, thereby ensuring the speed and accuracy of feature extraction and image quality by shortening the data volume of pixel feature extraction operation.

[0103] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0104] The computer-readable storage medium provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0105] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0106] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0109] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0110] Memory may include non-permanent storage in a computer-readable storage medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable storage medium.

[0111] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0112] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0113] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0114] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. An image processing method, characterized in that: include: Performing depth alignment processing on multiple color depth images to obtain multiple depth aligned images; Determine overlapping areas and non-overlapping areas of the depth alignment images according to the scales of the depth alignment images, and extract feature points from the overlapping areas of the depth alignment images to obtain feature points of the overlapping areas; Performing similarity matching on the feature points in the overlapping area to obtain overlapping feature points of the depth-aligned images; The images of the overlapping area are fused based on the overlapping feature points of the depth alignment images to obtain a fused area, and a stitched image obtained by stitching the fused area and the non-overlapping area is displayed.

2. The image processing method according to claim 1, characterized in that: The performing depth alignment processing on the multiple color depth images to obtain multiple depth aligned images includes: If the difference between the depth values ​​of the plurality of color depth images is greater than a preset threshold, calibrating the focus positions of the plurality of color depth images; The depth values ​​of the multiple color depth images are adjusted according to the focus position to obtain the multiple depth aligned images.

3. The image processing method according to claim 1, characterized in that: The determining the overlapping area and the non-overlapping area of ​​each depth alignment image according to the scale of each depth alignment image includes: Determine each to-be-processed area of ​​each depth-aligned image according to the depth values ​​of the pixel points of each depth-aligned image; The region boundaries of the regions to be processed are corrected according to the respective scales of the regions to be processed, and the overlapping regions and the non-overlapping regions are determined based on the corrected regions to be processed.

4. The image processing method according to claim 3, characterized in that: Any of the to-be-processed areas in the to-be-processed areas of the depth-aligned images is obtained in the following manner: Filter out pixels with consistent depth values ​​as pixels to be processed; According to the concentration degree of the pixels to be processed, edge pixels in the pixels to be processed are eliminated to obtain valid pixels, and a region including the valid pixels is used as the region to be processed.

5. The image processing method according to claim 1, characterized in that: The performing similarity matching on the feature points of the overlapping area to obtain the overlapping feature points of the depth aligned images includes: Screening the feature points of the overlapping area according to the feature dimensions of the feature points to obtain target feature points; A similarity matching algorithm is used to perform similarity matching on the target feature points to obtain the overlapping feature points.

6. The image processing method according to claim 1, characterized in that: The performing image fusion of the overlapping area based on the overlapping feature points of the depth aligned images to obtain the fused area includes: Taking any feature point among the overlapping feature points as a reference feature point, and calculating a displacement vector between other feature points among the overlapping feature points and the reference feature point; The coordinates of each feature point in the overlapping feature points in a two-dimensional coordinate system are determined based on the displacement vector, and the images of the overlapping area are fused according to the coordinates to obtain the fused area.

7. The image processing method according to claim 1, characterized in that: Before the step of performing depth alignment processing on the multiple color depth images to obtain multiple depth aligned images is performed, the method further includes: Detecting whether the number of pixels of each image acquired by the image acquisition device reaches a threshold; If the number of pixels is less than the threshold, performing data completion processing on the pixels of each image to obtain the multiple color depth images; If the number of pixels is greater than the threshold, data noise reduction processing is performed on the pixels of each image to obtain the multiple color depth images.

8. An image processing device, characterized in that: include: An image alignment module is configured to perform depth alignment processing on a plurality of color depth images to obtain a plurality of depth aligned images; A feature point extraction module is configured to determine the overlapping area and non-overlapping area of ​​each depth alignment image according to the scale of each depth alignment image, and extract feature points from the overlapping area of ​​each depth alignment image to obtain feature points of the overlapping area; A similarity matching module is configured to perform similarity matching on the feature points of the overlapping area to obtain overlapping feature points of the depth aligned images; The image fusion module is configured to perform image fusion of the overlapping area based on the overlapping feature points of the depth alignment images to obtain a fused area, and display a stitched image obtained by stitching the fused area and the non-overlapping area.

9. An image processing device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer executable instructions, and when the computer executable instructions are executed on the processor, the steps of the method described in any one of claims 1 to 7 can be implemented.

10. A computer-readable storage medium having computer-executable instructions stored therein, characterized in that: When the computer executable instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 can be implemented.

Citation Information

Cited By

  • External parameter calibration method and equipment for shooting equipment and computer program product

    CN119963660A