TW202213269A - Image processing method and apparatus, computer device, and storage medium - Google Patents

Image processing method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
TW202213269A
TW202213269A TW110134300A TW110134300A TW202213269A TW 202213269 A TW202213269 A TW 202213269A TW 110134300 A TW110134300 A TW 110134300A TW 110134300 A TW110134300 A TW 110134300A TW 202213269 A TW202213269 A TW 202213269A
Authority
TW
Taiwan
Prior art keywords
color image
light intensity
fusion
reference color
image
Prior art date
Application number
TW110134300A
Other languages
Chinese (zh)
Other versions
TWI773526B (en
Inventor
施路平
楊哲宇
王韜毅
肖潤宇
盛凱楓
趙蓉
何偉
祝夭龍
Original Assignee
大陸商北京靈汐科技有限公司
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 大陸商北京靈汐科技有限公司 filed Critical 大陸商北京靈汐科技有限公司
Publication of TW202213269A publication Critical patent/TW202213269A/en
Application granted granted Critical
Publication of TWI773526B publication Critical patent/TWI773526B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

An image processing method and apparatus, a computer device, and a storage medium. The method comprises: obtaining a reference color image and at least one real-time light intensity change amount corresponding to the reference color image; and generating a fused color image according to the reference color image and each real-time light intensity change amount.

Description

影像處理方法、裝置、電腦設備及儲存媒體Image processing method, device, computer equipment and storage medium

本發明實施例涉及影像處理技術,尤其涉及一種影像處理方法、裝置、電腦設備及儲存媒體。Embodiments of the present invention relate to image processing technologies, and in particular, to an image processing method, device, computer equipment, and storage medium.

隨著電腦視覺技術的不斷發展,人們對傳統拍攝設備捕捉得到的彩色影像的品質要求也在不斷提高。傳統拍攝設備藉由捕捉絕對光強資訊和顏色資訊,可以形成高影像還原度的彩色影像。With the continuous development of computer vision technology, people's requirements for the quality of color images captured by traditional shooting equipment are also increasing. By capturing absolute light intensity information and color information, traditional photographic equipment can form color images with high image reproduction.

目前,傳統拍攝設備在家用娛樂電子設備中的應用非常廣泛,但是,由於傳統拍攝設備每次進行影像採集和輸出時,需要採集和輸出影像中每個像素點的像素值,因此,彩色影像的採集和輸出間隔時間一般都較長,無法有效應用在對影像採集速度要求較高的工業控制領域。At present, traditional shooting equipment is widely used in home entertainment electronic equipment. However, because traditional shooting equipment needs to collect and output the pixel value of each pixel in the image every time it performs image acquisition and output, the The acquisition and output interval time is generally long, which cannot be effectively used in the industrial control field that requires high image acquisition speed.

本發明實施例提供了一種影像處理方法、裝置、電腦設備及儲存媒體,提供了一種新的雙模態影像融合技術,以提高融合彩色影像的影像精度。The embodiments of the present invention provide an image processing method, device, computer equipment and storage medium, and provide a new dual-modal image fusion technology to improve the image accuracy of fused color images.

第一方面,本發明實施例提供了一種影像處理方法,該方法包括:獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量;根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像。In a first aspect, an embodiment of the present invention provides an image processing method, the method includes: acquiring a reference color image, and at least one instant light intensity variation corresponding to the reference color image; Strong variation, resulting in fused color images.

第二方面,本發明實施例還提供了一種影像處理方法,該方法包括:藉由雙模態視覺感測器中彩色影像感測電路,獲取多張彩色影像;藉由雙模態視覺感測器中光強變化量感測電路,獲取即時光強變化量;根據各該彩色影像以及各該即時光強變化量,採用如本發明實施例中任一項所述的影像處理方法,產生用於插入至連續兩張該彩色影像之間的至少一張融合彩色影像。In a second aspect, an embodiment of the present invention further provides an image processing method, the method includes: acquiring a plurality of color images by using a color image sensing circuit in a dual-modal visual sensor; The light intensity change amount sensing circuit in the device obtains the real-time light intensity change amount; according to each of the color images and each of the real-time light intensity change amounts, the image processing method according to any one of the embodiments of the present invention is used to generate the image processing method for At least one fused color image inserted between two consecutive color images.

第三方面,本發明實施例還提供了一種影像處理裝置,該裝置包括:融合特徵獲取模組,用於獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量;融合影像產生模組,用於根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像。In a third aspect, an embodiment of the present invention also provides an image processing device, the device includes: a fusion feature acquisition module, configured to acquire a reference color image and at least one instant light intensity change corresponding to the reference color image; fusion The image generating module is used for generating a fused color image according to the reference color image and each of the real-time light intensity changes.

第四方面,本發明實施例還提供了一種影像處理裝置,該裝置包括:彩色影像獲取模組,用於藉由雙模態視覺感測器中彩色影像感測電路,獲取多張彩色影像;即時光強變化量獲取模組,用於藉由雙模態視覺感測器中光強變化量感測電路,獲取即時光強變化量;融合彩色影像產生模組,用於根據各該彩色影像以及各該即時光強變化量,採用如本發明任一實施例所述的影像處理方法,產生用於插入至連續兩張該彩色影像之間的至少一張融合彩色影像。In a fourth aspect, an embodiment of the present invention further provides an image processing device, the device comprising: a color image acquisition module for acquiring a plurality of color images by using a color image sensing circuit in a dual-modal visual sensor; The real-time light intensity change acquisition module is used for obtaining the real-time light intensity change by the light intensity change sensing circuit in the dual-mode visual sensor; the fusion color image generation module is used for according to each color image and For each of the instantaneous light intensity changes, the image processing method according to any embodiment of the present invention is used to generate at least one fused color image for insertion between two consecutive color images.

第五方面,本發明實施例還提供了一種電腦設備,包括記憶體、處理器及儲存在記憶體上並可在處理器上運行的電腦程式,該處理器執行該程式時實現本發明任一實施例所述的影像處理方法。In a fifth aspect, an embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements any of the present invention when executing the program. The image processing method described in the embodiment.

第六方面,本發明實施例還提供了一種電腦可讀儲存媒體,其上儲存有電腦程式,其特徵在於,該程式被處理器執行時實現如本發明任一實施例所述的影像處理方法。In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, wherein the program is executed by a processor to implement the image processing method according to any embodiment of the present invention .

本發明實施例的技術方案藉由獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量;根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像的技術方案,提出了一種將低速彩色影像與高速光強變化量進行融合的新的雙模態影像融合技術,在融合彩色影像中加入了高速即時光強變化量的特徵,提高了融合彩色影像的影像精度和影像品質。The technical solution of the embodiment of the present invention is to obtain a reference color image and at least one real-time light intensity variation corresponding to the reference color image; and generate a fusion color image technology according to the reference color image and each of the real-time light intensity changes The scheme proposes a new dual-modal image fusion technology that combines low-speed color images and high-speed light intensity changes. The feature of high-speed instant light intensity changes is added to the fusion color image, which improves the image fusion of color images. Accuracy and image quality.

下面結合附圖和實施例對本發明作進一步的詳細說明。可以理解的是,此處所描述的具體實施例僅僅用於解釋本發明,而非對本發明的限定。另外還需要說明的是,為了便於描述,附圖中僅示出了與本發明相關的部分而非全部結構。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

另外還需要說明的是,為了便於描述,附圖中僅示出了與本發明相關的部分而非全部內容。在更加詳細地討論示例性實施例之前應當提到的是,一些示例性實施例被描述成作為流程圖描繪的處理或方法。雖然流程圖將各項操作(或步驟)描述成順序的處理,但是其中的許多操作可以被並行地、併發地或者同時實施。此外,各項操作的順序可以被重新安排。當其操作完成時該處理可以被終止,但是還可以具有未包括在附圖中的附加步驟。該處理可以對應於方法、函數、規程、子常式、副程式等等。In addition, it should be noted that, for the convenience of description, the drawings only show some but not all of the contents related to the present invention. Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts various operations (or steps) as a sequential process, many of the operations may be performed in parallel, concurrently, or concurrently. Additionally, the order of operations can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The process may correspond to a method, function, procedure, subroutine, subroutine, and the like.

在一些相關技術中,可以藉由設定的插值演算法在兩張連續採集的彩色影像之間插入一張或者多張插值影像,以減少最終得到的相鄰彩色影像之間的時間間隔。但是,由於相關技術仍然使用的是傳統拍攝設備採集的彩色影像進行插值,實質上沒有引入額外的影像資訊,因此,插值效果差,插值影像的影像精度低、品質差。In some related technologies, one or more interpolated images can be inserted between two consecutively acquired color images by a set interpolation algorithm, so as to reduce the time interval between adjacent color images finally obtained. However, since the related art still uses color images collected by traditional shooting equipment for interpolation, no additional image information is substantially introduced. Therefore, the interpolation effect is poor, and the image precision and quality of the interpolated images are low.

第一方面,圖1為本發明實施例提供的一種影像處理方法的流程圖,本實施例可適用於對兩種不同模態的影像訊號進行融合,以得到融合彩色影像的情況,該方法可以由影像處理裝置來執行,該裝置可以由軟體和/或硬體的方式實現,並一般可以整合在具有影像處理功能的終端中,或者直接整合在用於獲取兩種模態的影像訊號的雙模態視覺感測器中。本發明實施例的方法具體包括如下步驟。In the first aspect, FIG. 1 is a flowchart of an image processing method provided by an embodiment of the present invention. This embodiment can be applied to the case where image signals of two different modalities are fused to obtain a fused color image. Executed by an image processing device, which can be implemented by software and/or hardware, and can generally be integrated into a terminal with image processing function, or directly integrated into a dual-mode imager for acquiring image signals of two modalities. in the modal vision sensor. The method of the embodiment of the present invention specifically includes the following steps.

S110、獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量。S110. Acquire a reference color image and at least one instant light intensity variation corresponding to the reference color image.

在本實施例中,該基準彩色影像,具體是指用於以其為基礎融合得到融合彩色影像的基準影像,該基準彩色影像由多個行、列像素點構成的陣組合構成。每個像素點具有設定像素值,該像素值可以反映像素點所在位置的顏色資訊。上述像素點的顏色資訊可以使用RGB顏色空間、YUV顏色空間或者YCbCr顏色空間等進行表徵。In this embodiment, the reference color image specifically refers to a reference image used for fusion based on it to obtain a fused color image, and the reference color image is composed of a matrix combination composed of a plurality of rows and columns of pixels. Each pixel has a set pixel value, and the pixel value can reflect the color information of the location of the pixel. The color information of the above-mentioned pixel points can be represented by using RGB color space, YUV color space or YCbCr color space.

其中,該即時光強變化量,具體是指在某一時間段中,該基準彩色影像中某一像素點的光強變化量,或者,也可以表述為一個相對的灰度值(亮度值)變化量,該即時光強變化量表徵該像素點目前的亮度值與之前某一時刻的歷史亮度值之間的變化量。可選的,在某一時刻下獲取的即時光強變化量可以為一個或者多個,如果得到的即時光強變化量為多個時,該多個即時光強變化量對應基準彩色影像中不同的像素位置。The instant light intensity change specifically refers to the light intensity change of a certain pixel in the reference color image in a certain period of time, or it can also be expressed as a relative gray value (brightness value) Change amount, the instant light intensity change amount represents the change amount between the current brightness value of the pixel point and the historical brightness value at a previous moment. Optionally, there may be one or more instant light intensity changes obtained at a certain moment. If there are multiple instant light intensity changes, the multiple instant light intensity changes correspond to different ones in the reference color image. pixel location.

可以理解的是,每張彩色影像在產生時,都要產生各像素點的像素值,因此,彩色影像的產生速度會比較慢,而一個像素點的亮度變化值卻可以被高速即時捕捉(例如,藉由動態視覺感測器捕捉得到)。因此,在本實施例中,發明人創造性的提出使用高速即時採集得到的像素點的即時光強變化量,與基準彩色影像進行融合,得到融合彩色影像。It is understandable that when each color image is generated, the pixel value of each pixel must be generated. Therefore, the generation speed of the color image will be relatively slow, while the brightness change value of a pixel can be captured at high speed (for example, , captured by a dynamic vision sensor). Therefore, in this embodiment, the inventor creatively proposes to use the real-time light intensity variation of pixels obtained by high-speed real-time acquisition to fuse with the reference color image to obtain a fused color image.

在本實施例中,與該基準彩色影像對應的至少一個即時光強變化量,具體是指在基準彩色影像的採集時刻之後的一個或者多個時刻內,針對該基準彩色影像中的各像素點,採集得到的一個或者多個即時光強變化量。一般來說,每當基準彩色影像中的某一個像素點的像素值發生改變時,即可被高速、即時的捕捉得到,以產生該即時光強變化量。In this embodiment, the at least one instant light intensity change amount corresponding to the reference color image specifically refers to, for each pixel in the reference color image, at one or more times after the acquisition time of the reference color image , one or more instant light intensity changes obtained by the collection. Generally speaking, whenever the pixel value of a certain pixel in the reference color image changes, it can be captured at high speed and in real time to generate the real-time light intensity change.

可選的,在針對某一拍攝區域採集得到基準彩色影像之後,可以記錄該基準彩色影像的採集時刻,之後,針對相同的拍攝區域,獲取從該採集時刻後一段時間(例如,5ms,10ms等)內的一個或者多個像素點的即時光強變化量。Optionally, after a reference color image is acquired for a certain shooting area, the acquisition time of the reference color image can be recorded, and then, for the same shooting area, a period of time (for example, 5ms, 10ms, etc.) from the acquisition time can be obtained. ) of the instantaneous light intensity change of one or more pixels in the .

在一個具體例子中,可以使用靜態影像感測器,以及動態視覺感測器分別獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量。In a specific example, a static image sensor and a dynamic visual sensor can be used to obtain a reference color image and at least one instant light intensity variation corresponding to the reference color image, respectively.

可選的,可以分別使用靜態影像感測器,以及動態視覺感測器對同一拍攝區域進行影像採集,並保證靜態影像感測器所採集的影像的各像素點,與動態視覺感測器所採集的各像素點具有一一對應關係,進而可以在使用靜態影像感測器拍攝兩張圖片的時間間隙,獲取動態視覺感測器高速即時採集得到的一個或者多個即時光強變化量,準確融合得到採集時間位於兩張圖片之間的高品質的融合彩色影像。Optionally, a static image sensor and a dynamic vision sensor can be used to capture images in the same shooting area, and ensure that each pixel of the image captured by the static image sensor is the same as the image captured by the dynamic vision sensor. Each pixel point collected has a one-to-one correspondence, and then one or more real-time light intensity changes obtained by the dynamic visual sensor can be obtained at high speed and in real time during the time gap between two pictures taken by the static image sensor, which is accurate. The fusion results in a high-quality fused color image whose acquisition time lies between the two images.

可選的,靜態影像感測器包括APS感測器、CCD感測器等。Optionally, the still image sensor includes an APS sensor, a CCD sensor, and the like.

在另一個具體的例子中,可以使用雙模態視覺感測器同時獲取上述基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量。In another specific example, a dual-modality visual sensor can be used to simultaneously acquire the reference color image and at least one instantaneous light intensity change corresponding to the reference color image.

可選的,該雙模態視覺感測器可以同時針對同一拍攝區域,採集得到基準彩色影像,以及即時光強變化量,進而可以將基準彩色影像的採集時刻之後,採集得到的一個或者多個即時光強變化量,作為與基準彩色影像對應的即時光強變化量。Optionally, the dual-modal visual sensor can simultaneously acquire a reference color image and an instantaneous change in light intensity for the same shooting area, and then can collect one or more images obtained after the acquisition time of the reference color image. Instantaneous light intensity change amount, as the instant light intensity change amount corresponding to the reference color image.

S120、根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像。S120. Generate a fused color image according to the reference color image and each of the real-time light intensity changes.

在本實施例中,該融合彩色影像中為同時帶有該基準彩色影像的資訊,以及各該即時光強變化量的資訊的彩色影像。In this embodiment, the fused color image is a color image that simultaneously includes the information of the reference color image and the information of the real-time light intensity variation.

其中,根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像的方式可以為:根據各即時光強變化量採集時間由先到後的順序,依次獲取一個即時光強變化量對融合彩色影像中的對應位置的像素點(或者,由對應位置的像素點所確定的一個像素區域內各像素點)的像素值(例如,像素點的亮度值,或者像素點的R值、B值、G值等)進行調整,以根據每個即時光強變化量對該基準彩色影像中至少一個像素點進行一次像素值的更新,並最終得到融合彩色影像。Wherein, according to the reference color image and each of the real-time light intensity changes, the method of generating the fusion color image may be: according to the order of the acquisition time of each real-time light intensity change in a first-to-last order, sequentially acquiring a pair of real-time light intensity changes The pixel value (for example, the brightness value of the pixel, or the R value, B value, G value, etc.), so as to update the pixel value of at least one pixel in the reference color image once according to each instantaneous light intensity change, and finally obtain a fused color image.

本發明實施例的技術方案藉由獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量;根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像的技術方案,提出了一種將低速彩色影像與高速光強變化量進行融合的雙模態影像融合技術,在融合彩色影像中加入了高速即時光強變化量的特徵,提高融合彩色影像的影像精度和影像品質。The technical solution of the embodiment of the present invention is to obtain a reference color image and at least one real-time light intensity variation corresponding to the reference color image; and generate a fusion color image technology according to the reference color image and each of the real-time light intensity changes The scheme proposes a dual-modal image fusion technology that fuses low-speed color images and high-speed light intensity changes. The feature of high-speed instant light intensity changes is added to the fused color images to improve the image accuracy and image quality of the fused color images. quality.

在上述各實施例的基礎上,根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像,可以為:在該基準彩色影像中,對與各即時光強變化量的像素位置分別對應的融合區域進行像素值調整,以產生該融合彩色影像。On the basis of the above embodiments, generating a fusion color image according to the reference color image and each of the instantaneous light intensity changes may be: Pixel value adjustment is performed on the corresponding fused region to generate the fused color image.

如前所述,即時光強變化量反映了基準彩色影像中某一個像素點的亮度變化量,因此,在獲取該即時光強變化量之後,可以僅對與該即時光強變化量相匹配的像素點的亮度值進行調整,但是,這樣調整會使得該像素點與其他像素點之間發生亮度突變,進而使得融合彩色影像的影像顯示效果比較突兀,融合效果不理想。As mentioned above, the instantaneous light intensity change reflects the brightness change of a certain pixel in the reference color image. Therefore, after obtaining the instantaneous light intensity change, it is possible to The brightness value of a pixel is adjusted. However, such adjustment will cause sudden change in brightness between the pixel and other pixels, which in turn makes the image display effect of the fused color image more abrupt and the fusion effect is unsatisfactory.

基於此,在本實施例中,發明人提出基於每個即時光強變化量的像素位置,在整個基準彩色影像中確定一個融合區域(像素點集合,其中包括多個像素點),並對融合區域內的每個像素點的像素值進行整體調整,以進一步提高融合彩色影像的影像顯示效果。Based on this, in this embodiment, the inventor proposes to determine a fusion region (a set of pixel points, including a plurality of pixel points) in the entire reference color image based on the pixel position of each instantaneous light intensity change, and to determine the fusion region The pixel value of each pixel in the area is adjusted as a whole to further improve the image display effect of the fused color image.

其中,在確定該融合區域時,可以將與該即時光強變化量匹配的像素位置確定為中心點,確定一個設定形狀(例如,矩形或者圓形等)的、設定尺寸(例如,10像素點*10像素點、100像素點*100像素點或者以設定像素點數量為半徑)的像素區域,作為該融合區域。這樣設置的好處是,使得融合彩色影像中各像素點的像素值的亮度過渡更加平滑,提高融合彩色影像的顯示效果。Wherein, when determining the fusion area, the pixel position that matches the instantaneous light intensity change can be determined as the center point, and a set shape (for example, a rectangle or circle, etc.) and a set size (for example, 10 pixels) can be determined. *10 pixels, 100 pixels * 100 pixels, or the pixel area with the set number of pixels as the radius), as the fusion area. The advantage of this setting is that the brightness transition of the pixel values of each pixel in the fused color image is smoother, and the display effect of the fused color image is improved.

圖2示出了本發明實施例中的另一種影像處理方法的流程圖,本實施例以上述實施例為基礎進行具體化,在本實施例中,將在該基準彩色影像中,對與各即時光強變化量的像素位置分別對應的融合區域進行像素值調整,具體化為:確定與目前處理的目標即時光強變化量對應的目標像素位置;在該基準彩色影像中,獲取與該目標像素位置匹配的目標融合區域;根據該目標即時光強變化量,對該目標融合區域進行像素值調整。FIG. 2 shows a flowchart of another image processing method in an embodiment of the present invention. This embodiment is embodied on the basis of the above-mentioned embodiment. In this embodiment, in the reference color image, The pixel value adjustment is performed on the fusion regions corresponding to the pixel positions of the instantaneous light intensity variation respectively, which is embodied as: determining the target pixel position corresponding to the instantaneous light intensity variation of the target currently being processed; The target fusion area with matching pixel positions; adjust the pixel value of the target fusion area according to the instantaneous light intensity change of the target.

相應的,如圖2所示,本實施例的方法可以包括以下步驟。Correspondingly, as shown in FIG. 2 , the method of this embodiment may include the following steps.

S210、獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量。S210. Acquire a reference color image and at least one instant light intensity variation corresponding to the reference color image.

S220、在與該基準彩色影像對應的至少一個即時光強變化量中依次獲取一個作為目前處理的目標即時光強變化量。S220: Obtain one of the at least one instant light intensity change corresponding to the reference color image in sequence as the target instant light intensity change currently being processed.

在本實施例中,每個即時光強變化量均具有一個產生時間,進而可以將基準採集影像的產生時間作為起始點,按照距離該基準採集影像的產生時間由近到遠的順序,將與該基準彩色影像對應的至少一個即時光強變化量進行排序,該排序結果反映了基準彩色影像中各像素點的像素值的亮度變化順序。進而,可以根據該排序結果,依次獲取一個即時光強變化量,對該基準彩色影像中的一個或者多個像素點的像素值進行調整。In this embodiment, each real-time light intensity change has a generation time, and then the generation time of the reference acquisition image can be used as the starting point. The at least one real-time light intensity change amount corresponding to the reference color image is sorted, and the sorting result reflects the luminance change order of pixel values of each pixel in the reference color image. Further, according to the sorting result, a real-time light intensity change amount can be sequentially obtained, and the pixel value of one or more pixel points in the reference color image can be adjusted.

S230、確定與目前處理的目標即時光強變化量對應的目標像素位置。S230. Determine the target pixel position corresponding to the current processing target instant light intensity variation.

如前所述,基準彩色影像中的各像素點,與即時光強變化量所關聯的各像素點具有一一對應關係,也即,該即時光強變化量對應於基準彩色影像中的某一個像素位置(即一個像素點的位置)。As mentioned above, each pixel in the reference color image has a one-to-one correspondence with each pixel associated with the instantaneous light intensity change, that is, the instantaneous light intensity change corresponds to a certain one in the reference color image Pixel position (that is, the position of a pixel).

在本實施例的一個可選的實施方式中,動態視覺感測器或雙模態視覺感測器採集得到的即時光強變化量的形式可以為(X,Y,P,T)。其中“X,Y”為事件位址,“P”為4值事件輸出(包括第一位符號位元),“T”為事件產生的時間。In an optional implementation manner of this embodiment, the instant light intensity variation obtained by the dynamic visual sensor or the dual-modal visual sensor may be in the form of (X, Y, P, T). Among them, "X, Y" is the event address, "P" is the 4-value event output (including the first sign bit), and "T" is the time when the event occurs.

其中,該事件位址對應於基準彩色影像中的一個像素位置,可選的,“X,Y”可以分別為基準彩色影像中的行、列位置,“P”為即時光強變化量的具體數值,“T”為該即時光強變化量的產生時間。Wherein, the event address corresponds to a pixel position in the reference color image. Optionally, "X, Y" can be the row and column positions in the reference color image, respectively, and "P" is the specific value of the instantaneous light intensity change. Numerical value, "T" is the generation time of the instant light intensity change.

相應的,在獲取與目前處理的目標即時光強變化量之後,可以進而獲取與該目標即時光強變化量對應的目標像素位置。Correspondingly, after obtaining the instantaneous light intensity change amount of the target currently processed, the target pixel position corresponding to the target instantaneous light intensity change amount can be further obtained.

S240、在該基準彩色影像中,獲取與該目標像素位置匹配的目標融合區域。S240. In the reference color image, obtain a target fusion region matching the target pixel position.

在本實施例中,為了使得最終得到的融合彩色影像更加平滑,可以對該目標像素位置匹配的目標融合區域內的每個像素點的像素值均進行像素值的調整。In this embodiment, in order to make the finally obtained fused color image smoother, the pixel value of each pixel in the target fusion region whose position of the target pixel is matched may be adjusted.

在本實施例的一個可選的實施方式中,在該基準彩色影像中,獲取與該目標像素位置匹配的目標融合區域,可以為:根據該像素位置以及預設的擴展融合範圍,在該基準彩色影像中確定目標融合區域。In an optional implementation of this embodiment, in the reference color image, acquiring a target fusion region matching the target pixel position may be: according to the pixel position and a preset extended fusion range, in the reference color image Determine the target fusion area in the color image.

可選的,該擴展融合範圍可以為一個預先設定的以目標像素位置為中心位置的一個區域範圍(例如,矩形或者圓形等),例如,以目標像素位置為中心位置的100像素點*100像素點的區域範圍;也可以為一個藉由神經網路模型學習得到的動態變化的學習值等,本實施例對此並不進行限制。Optionally, the extended fusion range may be a preset area range (for example, a rectangle or a circle, etc.) centered on the target pixel position, for example, 100 pixels * 100 centered on the target pixel position The area range of the pixel point; it may also be a dynamically changing learning value obtained by learning a neural network model, etc., which is not limited in this embodiment.

S250、根據該目標即時光強變化量,對該目標融合區域進行像素值調整。S250. Adjust the pixel value of the target fusion region according to the instantaneous light intensity change of the target.

在本實施例中,該目標即時光強變化量可以為一個相對的亮度值(也可以稱為灰度值)。基於該目標即時光強變化量,可以對目標融合區域內每個像素點的像素值進行亮度值(灰度值)或者每種顏色的色彩值(例如,R值、B值或者G值,也可理解為每種顏色的分量的亮度值或灰度值)的調整。In this embodiment, the target instant light intensity change amount may be a relative brightness value (also referred to as a grayscale value). Based on the instantaneous light intensity change of the target, the brightness value (gray value) or the color value of each color (for example, R value, B value or G value, or It can be understood as the adjustment of the brightness value or gray value of each color component.

在本實施例的一個可選的實施方式中,根據該目標即時光強變化量,對該目標融合區域進行像素值調整的方式可以為:獲取該目標融合區域中各像素點的亮度值;根據該目標即時光強變化量,對各該像素點的亮度值進行調整。In an optional implementation of this embodiment, according to the instantaneous light intensity change of the target, the method of adjusting the pixel value of the target fusion area may be: obtaining the brightness value of each pixel in the target fusion area; The target real-time light intensity change amount, and the brightness value of each pixel point is adjusted.

可選的,如果該基準彩色影像中各像素點的像素值使用RGB顏色空間表示,則可以首先按照預設的顏色空間變換公式,將目標融合區域中的各像素點的像素值首先轉換為使用YUV顏色空間表示,或者使用YCbCr顏色空間表示。Optionally, if the pixel value of each pixel in the reference color image is represented by the RGB color space, you can first convert the pixel value of each pixel in the target fusion area to use the preset color space transformation formula. Represented in YUV color space, or using YCbCr color space.

之後,可以使用目標即時光強變化量對YUV顏色空間的像素點中的Y通道(亮度成分通道)像素值進行調整,或者對YCbCr顏色空間的像素點中的Y通道像素值進行調整,並將完成像素值的調整後,使用上述顏色空間變換公式的逆變換,重新將該目標融合區域中的各像素點的像素值轉換為使用RGB顏色空間表示。After that, you can use the target instant light intensity change to adjust the pixel value of the Y channel (luminance component channel) in the pixel point of the YUV color space, or adjust the pixel value of the Y channel in the pixel point of the YCbCr color space. After the adjustment of the pixel values is completed, the inverse transformation of the above-mentioned color space transformation formula is used to re-convert the pixel values of each pixel in the target fusion region to be represented by the RGB color space.

具體的,該目標即時光強變化量可以為一個正值(表示一個像素點亮度值的增加),也可以為一個負值(表示一個像素點亮度值的減少)。進而,可以直接將該目標即時光強變化量與一個像素點的Y通道像素值進行直接疊加後,得到該像素點的新的Y通道像素值。Specifically, the instantaneous light intensity change amount of the target can be a positive value (representing an increase in the luminance value of a pixel), or a negative value (representing a decrease in the luminance value of a pixel). Furthermore, after directly superimposing the instantaneous light intensity change of the target and the Y channel pixel value of a pixel point, a new Y channel pixel value of the pixel point can be obtained.

可選的,如果該基準彩色影像中各像素點的像素值直接使用YUV顏色空間表示,或者直接使用YCbCr顏色空間表示,則可以使用目標即時光強變化量直接對目標融合區域中的各YUV顏色空間的像素點中的Y通道像素值進行調整,或者對YCbCr顏色空間的像素點中的Y通道像素值進行調整,以得到目標融合區域中的各像素點的新的像素值。Optionally, if the pixel value of each pixel in the reference color image is directly represented by the YUV color space, or directly represented by the YCbCr color space, the target instant light intensity change can be used to directly compare each YUV color in the target fusion area. The pixel value of the Y channel in the pixel point of the space is adjusted, or the pixel value of the Y channel in the pixel point of the YCbCr color space is adjusted to obtain a new pixel value of each pixel point in the target fusion area.

在本實施例的一個可選方式中,可以使用該目標即時光強變化量,對目標融合區域中每個像素點的亮度值均進行統一的調整,也可以針對目標融合區域內的每個像素點分別設定一個權重值,並規定距離目標像素位置越近的像素點,其權重值越大,進而根據權重值與目標即時光強變化量的乘積,對目標融合區域中各像素點的亮度值進行匹配的個性化的調整。In an optional manner of this embodiment, the instantaneous light intensity change of the target may be used to uniformly adjust the brightness value of each pixel in the target fusion area, or the brightness value of each pixel in the target fusion area may be adjusted uniformly. Set a weight value for each point, and specify that the pixel point that is closer to the target pixel position has a larger weight value, and then according to the product of the weight value and the target instant light intensity change, the brightness value of each pixel in the target fusion area is calculated. Make matching personalized adjustments.

S260、判斷是否完成對全部即時光強變化量的處理:若是,則執行S270;否則,返回執行S220。S260. Determine whether the processing of all the instantaneous light intensity changes is completed: if yes, execute S270; otherwise, return to execute S220.

S270、將目前調整得到的基準彩色影像,作為該融合彩色影像。S270. Use the currently adjusted reference color image as the fusion color image.

本發明實施例的技術方案在使用即時光強變化量對基準彩色影像進行調整時,藉由確定與目前處理的目標即時光強變化量對應的目標像素位置;在該基準彩色影像中,獲取與該目標像素位置匹配的目標融合區域;根據該目標即時光強變化量,對該目標融合區域進行像素值調整的方式,在將目標即時光強變化量中包含的影像資訊加入至基準彩色影像中的同時,也保證了整個融合過程的自然過渡,使得融合彩色影像中各像素點的像素值的過渡更加平滑,並進一步提高了融合彩色影像的顯示效果。In the technical solution of the embodiment of the present invention, when the reference color image is adjusted by the real-time light intensity change, the target pixel position corresponding to the currently processed target real-time light intensity change is determined; in the reference color image, the The target fusion area matching the target pixel position; according to the target real-time light intensity change, the pixel value adjustment of the target fusion area is performed, and the image information contained in the target real-time light intensity change is added to the reference color image. At the same time, it also ensures the natural transition of the whole fusion process, makes the transition of pixel values of each pixel in the fusion color image smoother, and further improves the display effect of the fusion color image.

在上述各實施例的基礎上,根據該目標即時光強變化量,對該目標融合區域進行像素值調整的方式還可以為:根據該目標即時光強變化量,計算光照變化量均值;根據該光照變化量均值,分別對該目標融合區域中各像素點的R值、G值和B值進行調整。On the basis of the above embodiments, according to the instantaneous light intensity change of the target, the pixel value adjustment method of the target fusion area may also be: according to the target instantaneous light intensity change, calculate the average value of the light change; The average value of the illumination change, and the R value, G value and B value of each pixel in the target fusion area are adjusted respectively.

在本可選實施方式中,為了避免在基準彩色影像使用RGB顏色空間表示時,在對該目標融合區域進行像素值的調整過程中,引入額外的顏色空間轉換的計算量。因此,進一步提出了一種直接使用目標即時光強變化量對目標融合區域中各像素點的R值、G值和B值進行調整的方式。In this optional embodiment, when the reference color image is represented by the RGB color space, in the process of adjusting the pixel value of the target fusion region, an additional calculation amount of color space conversion is introduced. Therefore, a method of directly adjusting the R value, G value and B value of each pixel in the target fusion area by using the instantaneous light intensity change of the target is further proposed.

具體的,考慮到不論使用目標即時光強變化量對目標融合區域中各像素點中的R值、G值和B值中的哪一通道進行調整,均會使得目標融合區域中各像素點產生色差。因此,可以考慮按照相同的光強變化量,同時對各像素點的R值、G值和B值進行等值調整,以實現在最大程度減少計算量的前提下,保證融合彩色影像的顯示效果。Specifically, considering which channel of the R value, G value and B value in each pixel in the target fusion area is adjusted by using the target instant light intensity change, each pixel in the target fusion area will produce chromatic aberration. Therefore, it can be considered to adjust the R value, G value and B value of each pixel at the same time according to the same amount of light intensity change, so as to ensure the display effect of the fusion color image under the premise of reducing the amount of calculation to the greatest extent. .

在本實施例中,由於需要使用目標即時光強變化量同時對每個像素點的R值、G值和B值均進行調整,因而,需要將該目標即時光強變化量均分至每一個顏色通道上。因此,可以根據該目標即時光強變化量,首先計算光照變化量均值。In this embodiment, since it is necessary to adjust the R value, G value and B value of each pixel at the same time by using the target instant light intensity change, it is necessary to divide the target instant light intensity change into each pixel. on the color channel. Therefore, according to the instantaneous light intensity change of the target, the average value of the light change can be calculated first.

在一個具體的例子中,例如,目標即時光強變化量為A,可以將A/3作為光照變化量均值,或者也可以將K1*(A/3)作為該光照變化量均值,該K1可以為一個預設的調整比例係數。當然,還可以採取其他的方式,計算光照變化量均值,本實施例對此並不進行限制。In a specific example, for example, if the instantaneous light intensity change of the target is A, A/3 can be used as the average value of the light change, or K1*(A/3) can be used as the average value of the light change, and the K1 can be Adjust the scale factor for a preset. Of course, other methods may also be adopted to calculate the average value of the illumination change, which is not limited in this embodiment.

其中,在根據該光照變化量均值,分別對該目標融合區域中各像素點的R值、G值和B值進行調整時,可以使用該光照變化量均值,對目標融合區域中每個像素點的R值、G值和B值均進行統一的調整,也可以針對目標融合區域內的每個像素點,均設定一個權重值,並規定距離目標像素位置越近的像素點,其權重值越大,進而可以根據權重值與光照變化量均值的乘積,對目標融合區域中各像素點的R值、G值和B值進行匹配的個性化的調整。Wherein, when adjusting the R value, G value and B value of each pixel in the target fusion area according to the average value of the illumination change, the average value of the illumination change can be used to adjust each pixel in the target fusion area. The R value, G value and B value are adjusted uniformly. It is also possible to set a weight value for each pixel in the target fusion area, and specify that the pixel point closer to the target pixel position has a higher weight value. The R value, G value and B value of each pixel in the target fusion area can be adjusted according to the product of the weight value and the average value of the illumination change.

圖3a示出了本發明實施例中的另一種影像處理方法的流程圖,本實施例以上述實施例為基礎進行具體化,在本實施例中,將獲取與該基準彩色影像對應的至少一個即時光強變化量的操作,具體化為:獲取該基準彩色影像的影像產生時間;根據該影像產生時間以及光強變化量累計時長,確定光強變化量採集時間段;將該光強變化量採集時間段內檢測到的即時光強變化量,確定為與該基準彩色影像對應的至少一個即時光強變化量。FIG. 3a shows a flowchart of another image processing method in the embodiment of the present invention. This embodiment is embodied on the basis of the above-mentioned embodiment. In this embodiment, at least one image corresponding to the reference color image is acquired. The operation of the instant light intensity change is embodied as: obtaining the image generation time of the reference color image; determining the light intensity change collection time period according to the image generation time and the accumulated time of the light intensity change; The instantaneous light intensity variation detected in the quantity collection time period is determined as at least one instantaneous light intensity variation corresponding to the reference color image.

相應的,如圖3a所述,本發明實施例的方法可以包括以下步驟。Correspondingly, as shown in FIG. 3a, the method of the embodiment of the present invention may include the following steps.

S310、獲取基準彩色影像。S310. Acquire a reference color image.

在本實施例中,S310中獲取得到的基準彩色影像可以是指由靜態影像感測器採集得到的彩色影像,也可以是指由雙模態視覺感測器採集得到的彩色影像等,上述基準採集影像為產生融合彩色影像的基準影像。In this embodiment, the reference color image obtained in S310 may refer to a color image collected by a static image sensor, or may refer to a color image collected by a dual-modal visual sensor, etc. The above reference The acquired image is the reference image for generating the fused color image.

S320、獲取基準彩色影像的影像產生時間。S320. Obtain the image generation time of the reference color image.

在本實施例中,S320中所述的基準彩色影像可以是指S310中獲取的基準彩色影像,也可以是指S370中融合得到的一張融合彩色影像(即可以用融合得到的前一張融合彩色影像作為基準彩色影像,產生後一張融合彩色影像)。In this embodiment, the reference color image described in S320 may refer to the reference color image obtained in S310, or may refer to a fused color image obtained by fusion in S370 (that is, the previous fusion image obtained by fusion can be used The color image is used as the reference color image to generate the latter fused color image).

相應的,該基準彩色影像的影像產生時間可以是指靜態影像感測器或者雙模態視覺感測器採集得到該基準彩色影像的採集時間,也可以是指根據基準彩色影像和至少一個即時光強變化量融合得到的一張融合彩色影像的影像融合時間。Correspondingly, the image generation time of the reference color image may refer to the acquisition time of the reference color image acquired by the static image sensor or the dual-modal visual sensor, or may refer to the reference color image and at least one instant light. The image fusion time of a fused color image obtained by fusion of strong changes.

S330、根據該影像產生時間以及光強變化量累計時長,確定光強變化量採集時間段。S330. Determine the light intensity change collection time period according to the image generation time and the accumulated time period of the light intensity change.

在本實施例中,可以預先獲取靜態影像感測器或者雙模態視覺感測器採集得到基準彩色影像的時間間隔,以及在上述兩張基準彩色影像中所插入的融合彩色影像的數量詞,基於該時間間隔和數量詞,確定匹配的光強變化量累計時長。In this embodiment, the time interval for obtaining the reference color image collected by the static image sensor or the dual-modal visual sensor, and the quantifier of the fused color image inserted into the above two reference color images can be obtained in advance, based on The time interval and the quantifier determine the cumulative duration of the matched light intensity change.

在一個具體的例子中,如果靜態影像感測器或者雙模態視覺感測器採集得到基準彩色影像的時間間隔為40ms,且預設在上述設備連續採集的兩張基準彩色影像中插入3張融合彩色影像,進而,可以確定光強變化量累計時長為40ms/(3+1)=10ms。也即,每張融合彩色影像在融合時,使用了10ms前由設備採集得到的基準彩色影像,或者是10ms前融合得到的融合彩色影像,以及在這10ms內採集的得到的一個或者多個即時光強變化量。In a specific example, if the time interval between the static image sensor or the dual-modal visual sensor to obtain the reference color image is 40ms, and it is preset to insert 3 reference color images into the two reference color images continuously collected by the above device After fusing the color images, the cumulative duration of the light intensity change can be determined to be 40ms/(3+1)=10ms. That is, each fused color image uses the reference color image acquired by the device 10ms ago, or the fused color image fused 10ms ago, and one or more real-time images acquired within 10ms. Variation in light intensity.

在一個具體的例子中,如果確定該影像產生時間為T1、光強變化量累計時長為∆t,則可以確定一個光強變化量採集時間段為[T1,T1+∆t]。In a specific example, if it is determined that the image generation time is T1 and the cumulative duration of the light intensity change is Δt, then a light intensity change collection time period can be determined to be [T1, T1+Δt].

S340、將該光強變化量採集時間段內檢測到的即時光強變化量,確定為與該基準彩色影像對應的至少一個即時光強變化量。S340. Determine the instant light intensity change detected in the light intensity change collection time period as at least one instant light intensity change corresponding to the reference color image.

S350、根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像。S350. Generate a fused color image according to the reference color image and each of the instantaneous light intensity changes.

S360、判斷是否滿足新基準彩色影像獲取條件:若是,則返回執行S310;否則,執行S370。S360: Determine whether the new reference color image acquisition condition is met: if yes, return to S310; otherwise, execute S370.

S370、在不滿足新基準彩色影像獲取條件時,將該基準彩色影像更新為目前產生的該融合彩色影像,返回執行S320。S370 , when the new reference color image acquisition condition is not met, update the reference color image to the currently generated fused color image, and return to S320 .

在本實施例中,該新基準彩色影像獲取條件具體是指用於採集得到S310中的基準彩色影像的設備的下一個基準彩色影像的採集時刻。In this embodiment, the new reference color image acquisition condition specifically refers to the acquisition time of the next reference color image of the device used to acquire the reference color image in S310.

如果確定滿足新基準彩色影像獲取條件,則使用該設備新採集得到的基準彩色影像為基準彩色影像,繼續產生新的融合彩色影像;如果不確定滿足新基準彩色影像獲取條件,則使用最近時刻產生得到的融合彩色影像為基準彩色影像,繼續產生新的融合彩色影像。If it is determined that the new reference color image acquisition conditions are met, the reference color image newly acquired by the device is used as the reference color image, and new fusion color images are continuously generated; The obtained fused color image is the reference color image, and new fused color images are continuously generated.

可以理解的是,由設備採集得到的基準彩色影像中各像素點的像素值是最準確的,而各融合彩色影像中雖然引入了一個或者多個即時光強變化量,但是,在融合過程中也會引入一定的融合誤差。因此,在設備採集得到的兩張基準彩色影像之間如果引入了過多張的融合彩色影像,會使得上述融合誤差不斷累積並放大,因此,在實際應用時,可以根據對融合彩色影像的精度要求,科學的選擇連續採集的兩張基準彩色影像中所插入的融合彩色影像的數量詞。It can be understood that the pixel value of each pixel in the reference color image collected by the device is the most accurate, and although one or more instant light intensity changes are introduced into each fused color image, during the fusion process, A certain fusion error will also be introduced. Therefore, if too many fused color images are introduced between the two reference color images collected by the device, the above-mentioned fusion errors will continue to accumulate and amplify. , the quantifier of the fused color image inserted into the two reference color images collected continuously.

其中,在圖3b中示出了本發明實施例所適用的一種融合彩色影像產生過程的示意圖。如圖3b所示,在Tx時刻由靜態影像感測器或者雙模態視覺感測器採集得到了一張基準彩色影像3110,在Ty時刻由同一設備採集得到了另一張基準彩色影像3120。在上述兩張基準彩色影像中共插入了三張融合彩色影像,也即,Ta時刻融合得到的第一融合彩色影像3111、Tb時刻融合得到的第二融合彩色影像3112以及Tc時刻融合得到的第三融合彩色影像3113。3b shows a schematic diagram of a process of generating a fused color image to which the embodiment of the present invention is applicable. As shown in Fig. 3b, a reference color image 3110 is acquired by a static image sensor or a dual-modal visual sensor at time Tx, and another reference color image 3120 is acquired by the same device at time Ty. A total of three fused color images are inserted into the above two reference color images, that is, the first fused color image 3111 obtained by merging at time Ta, the second fused color image 3112 obtained by merging at time Tb, and the third fused color image 3112 obtained by merging at time Tc Fusion color image 3113.

該第一融合彩色影像3111藉由基準彩色影像3110,以及[Tx,Ta]時間段內檢測到的至少一個即時光強變化量(圖3b中所示的離散影像點)融合得到;該第二融合彩色影像3112藉由第一融合彩色影像3111以及[Ta,Tb]時間段內檢測到的至少一個即時光強變化量融合得到;該第三融合彩色影像3113藉由第二融合彩色影像3112以及[Tb,Tc]時間段內檢測到的至少一個即時光強變化量融合得到。The first fused color image 3111 is obtained by merging the reference color image 3110 and at least one real-time light intensity variation (discrete image points shown in FIG. 3b ) detected in the [Tx, Ta] time period; the second The fused color image 3112 is obtained by merging the first fused color image 3111 and at least one real-time light intensity change detected in the [Ta, Tb] time period; the third fused color image 3113 is obtained by merging the second fused color image 3112 and At least one instantaneous light intensity change detected in the [Tb, Tc] time period is fused.

本發明實施例的技術方案藉由根據對融合彩色影像的精度要求,有選擇的選定光強變化量累計時間,並進而確定光強變化量採集時間段的技術手段,可以靈活設定相鄰融合彩色影像之間的時間間隔,以及每張融合彩色影像的影像精度,進一步擴大的本發明各實施例技術方案的通用性。The technical solution of the embodiment of the present invention can flexibly set the adjacent fusion color by selectively selecting the accumulated time of the light intensity change according to the accuracy requirements of the fusion color image, and then determining the collection time period of the light intensity change. The time interval between images and the image precision of each fused color image further expand the versatility of the technical solutions of the embodiments of the present invention.

圖4a示出了本發明實施例中的另一種影像處理方法的流程圖,本實施例以上述實施例為基礎進行具體化,在本實施例中,將根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像的操作,具體化為:將該基準彩色影像以及各該即時光強變化量分別輸入至預先訓練的雙模態融合模型中,並獲取該雙模態融合模型輸出的融合彩色影像。FIG. 4a shows a flowchart of another image processing method in the embodiment of the present invention. This embodiment is embodied on the basis of the above-mentioned embodiment. In this embodiment, the reference color image and the real-time light The operation of generating a fused color image is embodied as: inputting the reference color image and each of the instantaneous light intensity changes into a pre-trained dual-modal fusion model, and obtaining the output of the dual-modal fusion model fused color image.

相應的,如圖4a所示,本實施例的方法具體可以包括以下步驟: S410、獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量。 S420、將該基準彩色影像以及各該即時光強變化量分別輸入至預先訓練的雙模態融合模型中,並獲取該雙模態融合模型輸出的融合彩色影像。 Correspondingly, as shown in FIG. 4a, the method of this embodiment may specifically include the following steps: S410. Acquire a reference color image and at least one instant light intensity variation corresponding to the reference color image. S420. Input the reference color image and each of the real-time light intensity changes into a pre-trained dual-modal fusion model, and obtain a fusion color image output by the dual-modal fusion model.

其中,該雙模態融合模型的第一輸入端用於接收該基準彩色影像,該雙模態融合模型的第二輸入端用於接收各該即時光強變化量。Wherein, the first input end of the dual-modal fusion model is used for receiving the reference color image, and the second input end of the dual-modal fusion model is used for receiving each of the instantaneous light intensity changes.

在本實施例中,為了進一步降低融合影像產生過程中的即時計算量,可以預先訓練得到一個雙模態融合模型,藉由將基準彩色影像以及與該基準採集影像對應的各該即時光強變化量分別輸入至該雙模態融合模型中,可以由模型即時輸出匹配的融合彩色影像。In this embodiment, in order to further reduce the real-time calculation amount in the process of generating the fusion image, a dual-modal fusion model can be obtained by pre-training. The parameters are respectively input into the dual-modal fusion model, and the matched fused color image can be output by the model in real time.

具體的,如圖3b所示,假設使用基準彩色影像3110,以及[Tx,Ta]時間段內檢測到的至少一個即時光強變化量融合得到第一融合彩色影像3111,則可以在Tx時刻獲取到基準彩色影像3110之後,首先將該基準彩色影像3110輸入至雙模態融合模型的第一輸入端,並在[Tx,Ta]時間段內,每當檢測到一個即時光強變化量,即刻將該即時光強變化量輸入至該雙模態融合模型的第二輸入端,以使得該雙模態融合模型針對輸入的每個即時光強變化量,對該基準彩色影像3110進行累加的融合計算,並在確定時間點到達Ta時刻時,獲取該雙模態融合模型輸出的融合彩色影像,也即,第一融合彩色影像3111。Specifically, as shown in FIG. 3b, assuming that the reference color image 3110 and at least one real-time light intensity change detected in the [Tx, Ta] time period are used to fuse the first fused color image 3111, the first fused color image 3111 can be obtained at the time Tx After reaching the reference color image 3110, firstly input the reference color image 3110 to the first input end of the dual-modal fusion model, and in the [Tx, Ta] time period, whenever a real-time light intensity change is detected, immediately The real-time light intensity change is input to the second input end of the dual-modal fusion model, so that the dual-modal fusion model performs cumulative fusion of the reference color image 3110 for each input real-time light intensity change Calculate, and when the determined time point reaches time Ta, obtain the fused color image output by the dual-modal fusion model, that is, the first fused color image 3111 .

基於此,需要預先訓練得到該雙模態融合模型。相應的,在獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量之前,還可以包括:獲取訓練樣本集合,每個訓練樣本中包括:標準彩色影像,至少一個光強變化量以及標準融合彩色影像;使用該訓練樣本集合中的各該訓練樣本,對設定機器學習模型進行訓練,得到該雙模態融合模型。Based on this, it is necessary to pre-train to obtain the dual-modal fusion model. Correspondingly, before acquiring the reference color image and at least one instant light intensity variation corresponding to the reference color image, the method may further include: acquiring a training sample set, each training sample includes: a standard color image, at least one light intensity The amount of change and the standard fusion color image; using each of the training samples in the training sample set, the set machine learning model is trained to obtain the dual-modal fusion model.

如前所述,由於相關技術中使用靜態影像感測器是無法採集得到間隔時間比較近的兩張連續的標準彩色影像的,而每個訓練樣本中所包括的標準彩色影像與標準融合彩色影像中,兩者的間隔時間是需要遠遠小於靜態影像感測器採集得到的兩張連續的標準彩色影像的間隔時間的。As mentioned above, due to the use of static image sensors in the related art, it is impossible to acquire two consecutive standard color images with a relatively close interval, and the standard color images included in each training sample and the standard fusion color images , the interval between the two needs to be much smaller than the interval between two consecutive standard color images acquired by the static image sensor.

相應的,在構造訓練樣本時,可以首先對連續獲取的兩張標準彩色影像進行插訊框,得到插訊框後彩色影像。由於上述插訊框過程未引入額外的影像資訊,因此,該插訊框後彩色影像的影像品質不高,不足以作為雙模態融合模型的訓練樣本,進而需要採用一些的高級的影像處理技術,對該插訊框後彩色影像進行影像優化,以提高該插訊框後彩色影像的影像品質,並將影像優化後的插訊框後彩色影像作為該標準融合彩色影像。Correspondingly, when constructing a training sample, an interpolated frame may be firstly performed on two consecutively acquired standard color images to obtain a post-interpolated color image. Since no additional image information is introduced in the above-mentioned interstitial frame process, the image quality of the color image after the interstitial frame is not high enough to be used as a training sample for the dual-modal fusion model, and some advanced image processing techniques are required. , performing image optimization on the color image after the interstitial frame to improve the image quality of the color image after the interstitial frame, and using the optimized color image after the interstitial frame as the standard to fuse the color image.

在本實施例中,訓練得到該雙模態融合模型的機器學習模型可以為CNN(Convolutional Neural Networks,卷積神經網路)模型,也可以為ANN(Artificial Neutral Network,人工神經網路)模型等機器學習模型,本實施例對此並不進行限制。In this embodiment, the machine learning model trained to obtain the dual-modal fusion model may be a CNN (Convolutional Neural Networks, convolutional neural network) model, or an ANN (Artificial Neutral Network, artificial neural network) model, etc. A machine learning model, which is not limited in this embodiment.

在本實施例的一個可選的實施方式中,考慮到該雙模態融合模型具有雙輸入,因此可以選取孿生卷積網路訓練得到該雙模態融合模型。In an optional implementation of this embodiment, considering that the dual-modal fusion model has dual inputs, the twin-modal convolutional network can be selected for training to obtain the dual-modal fusion model.

可選的,如圖4b所示,該孿生卷積網路可以包括第一卷積模組4110、第二卷積模組4120、融合模組4130以及輸出模組4140,第一卷積模組4110包括該第一輸入端,第二卷積模組4120包括該第二輸入端;該第一卷積模組4110和該第二卷積模組4120的輸出端分別與該融合模組4130的輸入端相連,該融合模組4130的輸出端與該ASZD 4140的輸入端相連,該輸出模組的輸出端用於輸出融合彩色影像。 具體的,第一卷積模組4110和第二卷積模組4120中的網路結構相同,具體可以包括:輸入卷積層以及多個隱藏層。其中,該輸入卷積層可以包括一個或者多個卷積單元,每個隱藏層中可以包括依次相連的一個最大池化層以及一個或者多個卷積單元。 Optionally, as shown in Figure 4b, the twin convolutional network may include a first convolution module 4110, a second convolution module 4120, a fusion module 4130, and an output module 4140. The first convolution module 4110 includes the first input end, and the second convolution module 4120 includes the second input end; the output ends of the first convolution module 4110 and the second convolution module 4120 are respectively the same as the output ends of the fusion module 4130. The input end is connected, the output end of the fusion module 4130 is connected with the input end of the ASZD 4140, and the output end of the output module is used for outputting the fusion color image. Specifically, the network structures in the first convolution module 4110 and the second convolution module 4120 are the same, and may specifically include: an input convolution layer and a plurality of hidden layers. Wherein, the input convolution layer may include one or more convolution units, and each hidden layer may include a maximum pooling layer and one or more convolution units connected in sequence.

一般來說,孿生卷積網路中包括第一卷積模組4110以及第二卷積模組4120可以在訓練過程中共用權重值。但是,考慮到本發明各實施例的技術方案需要使用兩種不同模式的影像訊號,也即:基準彩色訊號以及即時光強變化量,因此,在本實施例中,在對該孿生卷積網路的訓練過程中,第一卷積模組4110和第二卷積模組不共用權重值。Generally speaking, the first convolution module 4110 and the second convolution module 4120 in the Siamese convolutional network can share weight values during the training process. However, considering that the technical solutions of the embodiments of the present invention need to use image signals of two different modes, that is, the reference color signal and the real-time light intensity change, in this embodiment, the twin convolutional network During the training process of the path, the first convolution module 4110 and the second convolution module do not share weight values.

其中,融合模組4130為該雙模態融合模型中的核心模組,用於實現根據基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量產生融合結果,並將融合結果提供至輸出模組4140。The fusion module 4130 is the core module in the dual-modal fusion model, and is used to generate a fusion result according to the reference color image and at least one real-time light intensity change corresponding to the reference color image, and combine the fusion result Provided to output module 4140.

可選的,基於孿生卷積網路的結構,該輸出模組4140可以設計為單輸出,也可以設計為雙輸出。當該輸出模組4140設計為單輸出時,可以僅輸出融合彩色影像,當該輸出模組4140設計為雙輸出時,可以一路輸出融合彩色影像,另一路輸出與上述至少一個即時光強變化量對應的光強變化量累加影像,在光強變化量累加影像中,黑色(也可以為其他某一特定顏色)像素值所在的像素位置,為未發生光強變化的像素位置,非黑色像素值所在的像素位置,為發生光強變化的像素位置,並藉由該非黑色像素值,記錄對應像素位置的具體的光強變化量。Optionally, based on the structure of the twin convolutional network, the output module 4140 can be designed as a single output or as a dual output. When the output module 4140 is designed as a single output, it can only output the fused color image, and when the output module 4140 is designed as a dual output, it can output the fused color image in one way, and the other output is related to the above at least one real-time light intensity change The corresponding cumulative image of light intensity change, in the cumulative image of light intensity change, the pixel position where the black (or a specific color) pixel value is located is the pixel position without light intensity change, and the non-black pixel value The pixel position is the pixel position where the light intensity change occurs, and the specific light intensity change amount corresponding to the pixel position is recorded by the non-black pixel value.

可選的,在訓練得到雙模態融合模型時,可以使用L1-loss函數作為損失函數,同時,光流(光強變化量)誤差藉由使用ADAM(A Method for Stochastic Optimization,隨機優化方法)與反向傳播演算法共同訓練得到。Optionally, when training a dual-modal fusion model, the L1-loss function can be used as the loss function, and at the same time, the optical flow (light intensity change) error can be obtained by using ADAM (A Method for Stochastic Optimization, stochastic optimization method) Trained together with the backpropagation algorithm.

本發明實施例的技術方案藉由使用一個預先訓練得到的雙模態融合模型,將基準彩色影像以及與該基準彩色影像對應的各即時光強變化量融合得到融合彩色影像,可以最大程度的節省融合過程中的算力消耗,並進一步提高融合彩色影像的產生效率以及時效性。The technical solution of the embodiment of the present invention uses a pre-trained dual-modal fusion model to fuse the reference color image and the real-time light intensity changes corresponding to the reference color image to obtain a fused color image, which can save the greatest extent. The computing power consumption in the fusion process is reduced, and the production efficiency and timeliness of the fusion color image are further improved.

在上述各實施例的基礎上,該基準彩色影像可以根據雙模態視覺感測器中彩色影像感測電路採集得到的光訊號的光強的電壓訊號產生;該即時光強變化量可以根據該雙模態視覺感測器中光強變化量感測電路採集得到的光訊號的光強變化量的電流訊號產生。On the basis of the above embodiments, the reference color image can be generated according to the voltage signal of the light intensity of the light signal collected by the color image sensing circuit in the dual-mode visual sensor; the real-time light intensity change can be based on the The current signal of the light intensity change of the light signal collected by the light intensity change amount sensing circuit in the dual-modal visual sensor is generated.

在本發明實施例的一個可選實施方式中,該雙模態視覺感測器可以具體包括:第一感測電路(也可以稱為,光強變化量感測電路)和第二感測電路(也可以稱為,彩色影像感測電路);第一感測電路,用於提取目標光訊號中第一設定波段的光訊號,並輸出表徵該第一設定波段的光訊號的光強變化量的電流訊號;第二感測電路,用於提取目標光訊號中第二設定波段的光訊號,並輸出表徵該第二設定波段的光訊號的光強的電壓訊號。In an optional implementation manner of the embodiment of the present invention, the dual-modal visual sensor may specifically include: a first sensing circuit (also referred to as a light intensity variation sensing circuit) and a second sensing circuit ( It can also be referred to as a color image sensing circuit); the first sensing circuit is used to extract the optical signal of the first set wavelength band in the target optical signal, and output the light intensity change amount representing the optical signal of the first set wavelength band. The current signal; the second sensing circuit is used for extracting the optical signal of the second preset wavelength band in the target optical signal, and outputting a voltage signal representing the light intensity of the optical signal of the second preset wavelength band.

可選的,該第一感測電路包括第一興奮型感光單元和第一抑制型感光單元,該第一興奮型感光單元和該第一抑制型感光單元均用於提取目標光訊號中第一設定波段的光訊號,並將該第一設定波段的光訊號轉換為電流訊號;該第一感測電路還用於根據該第一興奮型感光單元和該第一抑制型感光單元轉換的電流訊號之間的差異,輸出表徵該第一設定波段的光訊號的光強變化量的電流訊號。Optionally, the first sensing circuit includes a first excitation type photosensitive unit and a first inhibitory type photosensitive unit, and both the first excitation type photosensitive unit and the first inhibitory type photosensitive unit are used to extract the first in the target light signal. The optical signal of the set wavelength band is converted into a current signal; the first sensing circuit is also used for converting the current signal according to the first excitation type photosensitive unit and the first inhibition type photosensitive unit The difference between the two outputs a current signal representing the variation of the light intensity of the light signal in the first set wavelength band.

可選的,該第二感測電路包括至少一個第二感光單元,該第二感光單元用於提取目標光訊號中第二設定波段的光訊號,並將該第二設定波段的光訊號轉換為電流訊號;該第二感測電路還用於根據該第二感光單元轉換的電流訊號,輸出表徵該第二設定波段的光訊號的光強的電壓訊號。Optionally, the second sensing circuit includes at least one second photosensitive unit, and the second photosensitive unit is used to extract the optical signal of the second preset wavelength band in the target optical signal, and convert the optical signal of the second preset wavelength band into a current signal; the second sensing circuit is also used for outputting a voltage signal representing the light intensity of the light signal of the second set wavelength band according to the current signal converted by the second photosensitive unit.

這樣設置的好處在於:藉由使用雙模態視覺感測器產生基準彩色影像以及即時光強變化量這兩種模式的影像訊號,可以保證上述兩種模式訊號之間的準確對準,以進一步保證融合彩色影像的影像品質。The advantage of this setting is that by using the dual-mode visual sensor to generate the reference color image and the image signal of the two modes of the instantaneous light intensity change, the accurate alignment between the above two modes of signals can be ensured, so as to further Guarantees the image quality of fused color images.

第二方面,圖5a為本發明實施例提供的另一種影像處理方法的流程圖,本實施例可適用於在連續採集得到的兩張彩色影像之間,插入至少一張融合彩色影像的情況,該方法可以由影像處理裝置來執行,該裝置可以由軟體和/或硬體的方式實現,並一般可以整合在具有影像處理功能的終端,或者直接整合在雙模態視覺感測器中。本實施例的方法具體包括如下步驟。In the second aspect, FIG. 5a is a flowchart of another image processing method provided by an embodiment of the present invention. This embodiment can be applied to the case where at least one fused color image is inserted between two color images obtained by continuous collection, The method can be performed by an image processing device, which can be implemented by software and/or hardware, and can generally be integrated in a terminal with image processing function, or directly integrated in a dual-modal visual sensor. The method of this embodiment specifically includes the following steps.

S510、藉由雙模態視覺感測器中彩色影像感測電路,獲取多張彩色影像。S510. Acquire a plurality of color images by using the color image sensing circuit in the dual-modal visual sensor.

在本實施例中,雙模態視覺感測器以設定的採集時間間隔,採集得到多張彩色影像。In this embodiment, the dual-modality visual sensor acquires a plurality of color images at a set acquisition time interval.

S520、藉由雙模態視覺感測器中光強變化量感測電路,獲取即時光強變化量。S520. Acquire a real-time light intensity change by using the light intensity change sensing circuit in the dual-modal visual sensor.

S530、根據各該彩色影像以及各該即時光強變化量,採用如本發明任一實施例所述的方法,產生用於插入至連續兩張該彩色影像之間的至少一張融合彩色影像。S530. According to each of the color images and each of the real-time light intensity changes, use the method described in any embodiment of the present invention to generate at least one fused color image for insertion between two consecutive color images.

其中,圖5b是本發明實施例所適用的一種在連續彩色影像中插入融合彩色影像過程的示意圖。如圖5b所示,雙模態視覺感測器中彩色影像感測電路以設定的取樣間隔,分別取樣得到彩色影像1、彩色影像2以及彩色影像3等影像訊號,藉由使用雙模態視覺感測器中光強變化量感測電路,獲取即時光強變化量,可以在兩張連續的彩色影像之間,插入一張或者多張(圖5b所示的為2張)融合彩色影像。5b is a schematic diagram of a process of inserting and merging color images in continuous color images to which an embodiment of the present invention is applicable. As shown in Figure 5b, the color image sensing circuit in the dual-modal vision sensor samples the image signals such as color image 1, color image 2, and color image 3 at a set sampling interval. The light intensity change sensing circuit in the sensor obtains the instantaneous light intensity change, and can insert one or more (two in Figure 5b) fused color images between two consecutive color images.

本發明實施例的技術方案突破了先前技術對彩色影像採集時間間隔的限制,可以得到採集時間間隔更小的彩色影像,並可以最大程度的保證融合得到的融合彩色影像的影像品質,同時綜合了彩色影像與即時光強變化量訊號的優點,可以得到兼具不同類型的影像特徵資訊的影像訊號。The technical solution of the embodiment of the present invention breaks through the limitation of the color image acquisition time interval in the prior art, can obtain color images with a smaller acquisition time interval, and can ensure the image quality of the fused color image obtained by fusion to the greatest extent. The advantages of color images and real-time light intensity change signals can obtain image signals with different types of image feature information.

第三方面,圖6是本發明實施例提供的一種影像處理裝置的結構圖,如圖6所示,該裝置600包括:融合特徵獲取模組610以及融合影像產生模組620。In a third aspect, FIG. 6 is a structural diagram of an image processing apparatus according to an embodiment of the present invention. As shown in FIG. 6 , the apparatus 600 includes a fusion feature acquisition module 610 and a fusion image generation module 620 .

融合特徵獲取模組610,用於獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量。The fusion feature acquisition module 610 is configured to acquire a reference color image and at least one real-time light intensity variation corresponding to the reference color image.

融合影像產生模組620,用於根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像。The fused image generating module 620 is used for generating a fused color image according to the reference color image and each of the real-time light intensity changes.

本發明實施例的技術方案藉由獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量;根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像的技術方案,提出了一種將低速彩色影像與高速光強變化量進行融合的新的雙模態影像融合技術,在融合彩色影像中加入了高速即時光強變化量的特徵,提高了融合彩色影像的影像精度和影像品質。The technical solution of the embodiment of the present invention is to obtain a reference color image and at least one real-time light intensity variation corresponding to the reference color image; and generate a fusion color image technology according to the reference color image and each of the real-time light intensity changes The scheme proposes a new dual-modal image fusion technology that combines low-speed color images and high-speed light intensity changes. The feature of high-speed instant light intensity changes is added to the fusion color image, which improves the image fusion of color images. Accuracy and image quality.

在上述各實施例的基礎上,融合影像產生模組620,可以包括:區域融合單元,用於在該基準彩色影像中,對與各即時光強變化量的像素位置分別對應的融合區域進行像素值調整,以產生該融合彩色影像。On the basis of the above-mentioned embodiments, the fusion image generation module 620 may include: an area fusion unit, configured to perform pixel fusion on the fusion areas corresponding to the pixel positions of the instantaneous light intensity changes in the reference color image. value adjustment to produce the fused color image.

在上述各實施例的基礎上,該區域融合單元具體可以包括:目標像素位置確定子單元,用於確定與目前處理的目標即時光強變化量對應的目標像素位置;目標融合區域獲取子單元,用於在該基準彩色影像中,獲取與該目標像素位置匹配的目標融合區域;目標融合區域調整子單元,用於根據該目標即時光強變化量,對該目標融合區域進行像素值調整。On the basis of the above embodiments, the area fusion unit may specifically include: a target pixel position determination subunit, which is used to determine the target pixel position corresponding to the instantaneous light intensity change of the currently processed target; a target fusion area acquisition subunit, In the reference color image, the target fusion area matching the target pixel position is obtained; the target fusion area adjustment subunit is used to adjust the pixel value of the target fusion area according to the instantaneous light intensity change of the target.

在上述各實施例的基礎上,目標融合區域獲取子單元可以具體用於:根據該像素位置以及預設的擴展融合範圍,在該基準彩色影像中確定目標融合區域。On the basis of the above embodiments, the target fusion area acquisition subunit may be specifically configured to: determine the target fusion area in the reference color image according to the pixel position and the preset extended fusion range.

在上述各實施例的基礎上,目標融合區域調整子單元,可以具體用於:獲取該目標融合區域中各像素點的亮度值;根據該目標即時光強變化量,對各該像素點的亮度值進行調整。On the basis of the above embodiments, the target fusion area adjustment subunit can be specifically used to: obtain the brightness value of each pixel in the target fusion area; value to adjust.

在上述各實施例的基礎上,目標融合區域調整子單元,可以具體用於:根據該目標即時光強變化量,計算光照變化量均值;根據該光照變化量均值,分別對該目標融合區域中各像素點的R值、G值和B值進行調整。On the basis of the above-mentioned embodiments, the target fusion area adjustment subunit can be specifically used to: calculate the average value of the illumination change according to the real-time light intensity change of the target; The R value, G value and B value of each pixel are adjusted.

在上述各實施例的基礎上,融合特徵獲取模組610,可以具體用於:獲取該基準彩色影像的影像產生時間;根據該影像產生時間以及光強變化量累計時長,確定光強變化量採集時間段;將該光強變化量採集時間段內檢測到的即時光強變化量,確定為與該基準彩色影像對應的至少一個即時光強變化量。On the basis of the above embodiments, the fusion feature acquisition module 610 can be specifically used for: acquiring the image generation time of the reference color image; Collection time period; determine the instant light intensity change amount detected in the light intensity change amount collection time period as at least one instant light intensity change amount corresponding to the reference color image.

在上述各實施例的基礎上,還可以包括,重複執行模組,用於:在根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像之後,在不滿足新基準彩色影像獲取條件時,將該基準彩色影像更新為目前產生的該融合彩色影像,返回執行獲取與該基準彩色影像對應的至少一個即時光強變化量的步驟。On the basis of the above-mentioned embodiments, it may further include, repeating the execution module, for: after the fusion color image is generated according to the reference color image and each of the instantaneous light intensity changes, if the acquisition of the new reference color image does not meet the requirements When conditions are met, the reference color image is updated to the currently generated fused color image, and the process returns to the step of acquiring at least one instant light intensity variation corresponding to the reference color image.

在上述各實施例的基礎上,融合影像產生模組620,可以具體用於:將該基準彩色影像以及各該即時光強變化量分別輸入至預先訓練的雙模態融合模型中,並獲取該雙模態融合模型輸出的融合彩色影像;其中,該雙模態融合模型的第一輸入端用於接收該基準彩色影像,該雙模態融合模型的第二輸入端用於接收各該即時光強變化量。On the basis of the above-mentioned embodiments, the fusion image generation module 620 can be specifically used for: inputting the reference color image and each of the real-time light intensity changes into a pre-trained dual-modal fusion model, and obtaining the The fused color image output by the dual-modal fusion model; wherein, the first input of the dual-modal fusion model is used to receive the reference color image, and the second input of the dual-modal fusion model is used to receive the real-time light Strong variability.

在上述各實施例的基礎上,還可以包括:模型訓練模組,用於:在獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量之前,獲取訓練樣本集合,訓練樣本包括:標準彩色影像,至少一個光強變化量以及標準融合彩色影像;使用該訓練樣本集合中的各該訓練樣本,對設定機器學習模型進行訓練,得到該雙模態融合模型。On the basis of the above embodiments, it may further include: a model training module, configured to: obtain a training sample set before obtaining a reference color image and at least one instant light intensity variation corresponding to the reference color image, and train the The samples include: a standard color image, at least one light intensity variation, and a standard fusion color image; using each of the training samples in the training sample set, train the set machine learning model to obtain the dual-modal fusion model.

在上述各實施例的基礎上,該標準融合彩色影像為對連續獲取的兩張標準彩色影像進行插訊框以及影像優化處理後得到。On the basis of the above-mentioned embodiments, the standard fusion color image is obtained by performing interstitial frame and image optimization processing on two consecutively acquired standard color images.

在上述各實施例的基礎上,該設定機器學習模型為孿生卷積網路;該孿生卷積網路包括第一卷積模組、第二卷積模組、融合模組以及輸出模組,第一卷積模組包括該第一輸入端,第二卷積模組包括該第二輸入端;該第一卷積模組和該第二卷積模組的輸出端分別與該融合模組的輸入端相連,該融合模組的輸出端與該輸出模組的輸入端相連,該輸出模組的輸出端用於輸出融合彩色影像;其中,在對該孿生卷積網路的訓練過程中,第一卷積模組和第二卷積模組不共用權重值。On the basis of the above embodiments, the set machine learning model is a twin convolution network; the twin convolution network includes a first convolution module, a second convolution module, a fusion module and an output module, The first convolution module includes the first input end, and the second convolution module includes the second input end; the output ends of the first convolution module and the second convolution module are respectively connected with the fusion module The input end of the fusion module is connected to the input end of the output module, and the output end of the output module is used to output the fusion color image; wherein, in the training process of the twin convolutional network , the first convolution module and the second convolution module do not share weight values.

在上述各實施例的基礎上,該基準彩色影像根據雙模態視覺感測器中彩色影像感測電路採集得到的光訊號的光強的電壓訊號產生;該即時光強變化量根據該雙模態視覺感測器中光強變化量感測電路採集得到的光訊號的光強變化量的電流訊號產生。On the basis of the above embodiments, the reference color image is generated according to the voltage signal of the light intensity of the light signal collected by the color image sensing circuit in the dual-mode visual sensor; the real-time light intensity variation is based on the dual-mode visual sensor. The current signal of the light intensity change of the light signal collected by the light intensity change amount sensing circuit in the state vision sensor is generated.

本發明實施例所提供的影像處理裝置可執行本發明任意實施例所提供的影像處理方法,具備執行方法相應的功能模組和有益效果。The image processing apparatus provided by the embodiment of the present invention can execute the image processing method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

第四方面,圖7是本發明實施例提供的另一種影像處理裝置的結構圖,如圖7所示,該裝置700包括:彩色影像獲取模組710、即時光強變化量獲取模組720以及融合彩色影像產生模組730。In the fourth aspect, FIG. 7 is a structural diagram of another image processing device provided by an embodiment of the present invention. As shown in FIG. 7 , the device 700 includes: a color image acquisition module 710 , a real-time light intensity change acquisition module 720 , and The fusion color image generation module 730 .

彩色影像獲取模組710,用於藉由雙模態視覺感測器中彩色影像感測電路,獲取多張彩色影像。The color image acquisition module 710 is used for acquiring a plurality of color images through the color image sensing circuit in the dual-mode visual sensor.

即時光強變化量獲取模組720,用於藉由雙模態視覺感測器中光強變化量感測電路,獲取即時光強變化量。The real-time light intensity change amount acquisition module 720 is used for obtaining the real-time light intensity change amount through the light intensity change amount sensing circuit in the dual-mode visual sensor.

融合彩色影像產生模組730,用於根據各該彩色影像以及各該即時光強變化量,採用如本發明任一實施例所述的方法,產生用於插入至連續兩張該彩色影像之間的至少一張融合彩色影像。The fusion color image generating module 730 is used for generating a method for inserting between two consecutive color images according to each of the color images and each of the real-time light intensity changes using the method described in any embodiment of the present invention at least one fused color image.

本發明實施例的技術方案突破了先前技術對彩色影像採集時間間隔的限制,可以得到採集時間間隔更小的彩色影像,並可以最大程度的保證融合得到的融合彩色影像的影像品質,同時綜合了彩色影像與即時光強變化量訊號的優點,可以得到兼具不同類型的影像特徵資訊的影像訊號。The technical solution of the embodiment of the present invention breaks through the limitation of the color image acquisition time interval in the prior art, can obtain color images with a smaller acquisition time interval, and can ensure the image quality of the fused color images obtained by fusion to the greatest extent, and at the same time integrates The advantages of color images and real-time light intensity change signals can obtain image signals with different types of image feature information.

本發明實施例所提供的影像處理裝置可執行本發明任意實施例所提供的影像處理方法,具備執行方法相應的功能模組和有益效果。The image processing apparatus provided by the embodiment of the present invention can execute the image processing method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

第五方面,圖8為本發明實施例提供的一種電腦設備的結構示意圖,如圖8所示,該電腦設備包括處理器80、記憶體81,還可包括輸入裝置82和輸出裝置83;電腦設備中處理器80的數量可以是一個或多個,圖8中以一個處理器80為例;電腦設備中的處理器80、記憶體81、輸入裝置82和輸出裝置83可以藉由匯流排或其他方式連接,圖8中以藉由匯流排連接為例。In the fifth aspect, FIG. 8 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in FIG. 8 , the computer device includes a processor 80, a memory 81, and may also include an input device 82 and an output device 83; the computer The number of processors 80 in the device can be one or more, and one processor 80 is taken as an example in FIG. For connection in other ways, in FIG. 8 , the connection by bus bar is taken as an example.

記憶體81作為一種電腦可讀儲存媒體,可用於儲存軟體程式、電腦可執行程式以及模組,如本發明實施例中的影像處理方法對應的模組。處理器80藉由運行儲存在記憶體81中的軟體程式、電腦可執行程式以及模組,從而執行電腦設備的各種功能應用以及資料處理,即實現如本發明任意實施例所述的影像處理方法,該方法包括:獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量;根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像。As a computer-readable storage medium, the memory 81 can be used to store software programs, computer-executable programs and modules, such as modules corresponding to the image processing method in the embodiment of the present invention. The processor 80 executes various functional applications and data processing of the computer equipment by running the software programs, computer-executable programs and modules stored in the memory 81, that is, to realize the image processing method described in any embodiment of the present invention , the method includes: acquiring a reference color image and at least one instantaneous light intensity variation corresponding to the reference color image; and generating a fusion color image according to the reference color image and each of the instantaneous light intensity variations.

或者,處理器80藉由運行儲存在記憶體81中的軟體程式、電腦可執行程式以及模組,從而執行電腦設備的各種功能應用以及資料處理,實現如發明任意實施例所述的另一影像處理方法,該方法包括:藉由雙模態視覺感測器中彩色影像感測電路,獲取多張彩色影像;藉由雙模態視覺感測器中光強變化量感測電路,獲取即時光強變化量;根據各該彩色影像以及各該即時光強變化量,採用如本發明任一實施例所述的影像處理方法,產生用於插入至連續兩張該彩色影像之間的至少一張融合彩色影像。Alternatively, the processor 80 executes various functional applications and data processing of the computer equipment by running the software programs, computer-executable programs and modules stored in the memory 81 to realize another image according to any embodiment of the invention A processing method, the method comprising: acquiring a plurality of color images by using a color image sensing circuit in a dual-mode visual sensor; acquiring real-time light intensity by using a light intensity variation sensing circuit in the dual-mode visual sensor Variation; according to each of the color images and each of the real-time light intensity changes, the image processing method according to any embodiment of the present invention is used to generate at least one fusion for inserting between two consecutive color images Color image.

記憶體81可主要包括儲存程式區和儲存資料區,其中,儲存程式區可儲存作業系統、至少一個功能所需的應用程式;儲存資料區可儲存根據終端的使用所創建的資料等。此外,記憶體81可以包括高速隨機存取記憶體,還可以包括非揮發性記憶體,例如至少一個磁碟記憶體件、快閃記憶體器件、或其他非揮發性固態記憶體件。在一些實例中,記憶體81可進一步包括相對於處理器80遠端設置的記憶體,這些遠端存放器可以藉由網路連接至電腦設備。上述網路的實例包括但不限於網際網路、企業內部網路、區域網路、移動通訊網路及其組合。The memory 81 may mainly include a stored program area and a stored data area, wherein the stored program area can store an operating system and an application program required for at least one function; the stored data area can store data created according to terminal usage. In addition, the memory 81 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk memory device, flash memory device, or other non-volatile solid-state memory device. In some examples, the memory 81 may further include memory disposed remotely from the processor 80, and these remote storages may be connected to computer equipment via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

輸入裝置82可用於接收輸入的數位或字元資訊,以及產生與電腦設備的使用者設置以及功能控制有關的鍵訊號輸入。輸出裝置83可包括顯示幕等顯示裝置。The input device 82 can be used to receive input digital or character information and generate key signal input related to user settings and function control of the computer equipment. The output device 83 may include a display device such as a display screen.

第六方面,參照圖9,本發明實施例還提供一種包含電腦可執行指令(電腦程式)的電腦可讀儲存媒體900,電腦可執行指令在由電腦處理器執行時用於執行如本發明任意實施例所述的影像處理方法,該方法包括:獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量;根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像。In a sixth aspect, referring to FIG. 9 , an embodiment of the present invention also provides a computer-readable storage medium 900 containing computer-executable instructions (computer programs), and the computer-executable instructions, when executed by a computer processor, are used to execute any of the methods of the present invention. The image processing method according to the embodiment, the method includes: acquiring a reference color image and at least one instant light intensity change amount corresponding to the reference color image; generating a fusion according to the reference color image and each of the instant light intensity changes Color image.

或者,電腦可執行指令在由電腦處理器執行用於執行如本發明任意實施例所述的又一影像處理方法,該方法包括:藉由雙模態視覺感測器中彩色影像感測電路,獲取多張彩色影像;藉由雙模態視覺感測器中光強變化量感測電路,獲取即時光強變化量;根據各該彩色影像以及各該即時光強變化量,採用如本發明任一實施例所述的影像處理方法,產生用於插入至連續兩張該彩色影像之間的至少一張融合彩色影像。Alternatively, the computer-executable instructions are executed by a computer processor to perform another image processing method according to any embodiment of the present invention, the method comprising: using a color image sensing circuit in a dual-modal visual sensor, Acquire a plurality of color images; obtain the real-time light intensity change by the light intensity change sensing circuit in the dual-modal visual sensor; according to each of the color images and each of the real-time light intensity changes, use any one of the present invention The image processing method described in the embodiment generates at least one fused color image for insertion between two consecutive color images.

當然,本發明實施例所提供的一種包含電腦可執行指令(電腦程式)的電腦可讀儲存媒體900,其電腦可執行指令不限於如上的方法操作,還可以執行本發明任意實施例所提供的方法中的相關操作。Of course, a computer-readable storage medium 900 including computer-executable instructions (computer programs) provided by the embodiment of the present invention is not limited to the above-mentioned method operations, and can also execute the computer-executable instructions provided by any embodiment of the present invention. related operations in the method.

藉由以上關於實施方式的描述,所屬領域的技術人員可以清楚地瞭解到,本發明可借助軟體及必需的通用硬體來實現,當然也可以藉由硬體實現,但很多情況下前者是更佳的實施方式。基於這樣的理解,本發明的技術方案本質上或者說對先前技術做出貢獻的部分可以以軟體產品的形式體現出來,該電腦軟體產品可以儲存在電腦可讀儲存媒體中,如電腦的軟碟、唯讀記憶體(Read-Only Memory, ROM)、隨機存取記憶體(Random Access Memory, RAM)、快閃記憶體(FLASH)、硬碟或光碟等,包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)執行本發明各個實施例的方法。From the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented by software and necessary general-purpose hardware, and of course can also be implemented by hardware, but in many cases the former is more best implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products, which can be stored in computer-readable storage media, such as computer floppy disks. , read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD, etc., including several instructions to make a computer A device (which may be a personal computer, a server, or a network device, etc.) executes the methods of the various embodiments of the present invention.

注意,上述僅為本發明的較佳實施例及所運用技術原理。本領域技術人員會理解,本發明不限於這裡所述的特定實施例,對本領域技術人員來說能夠進行各種明顯的變化、重新調整和替代而不會脫離本發明的保護範圍。因此,雖然藉由以上實施例對本發明進行了較為詳細的說明,但是本發明不僅僅限於以上實施例,在不脫離本發明構思的情況下,還可以包括更多其他等效實施例,而本發明的範圍由所附的申請專利範圍範圍決定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail by the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope of the invention is determined by the scope of the appended claims.

80:處理器 81:記憶體 82:輸入裝置 83:輸出裝置 S110、S120、S210、S220、S230、S240、S250、S260、S270、S310、S320、S330、S340、S350、S360、S370、S410、S420、S510、S520、S530:步驟 600、700:裝置 610:融合特徵獲取模組 620:融合影像產生模組 710:彩色影像獲取模組 720:即時光強變化量獲取模組 730:合彩色影像產生模組 900:電腦可讀儲存媒體 3110、3120:基準彩色影像 3111:第一融合彩色影像 3112:第二融合彩色影像 3113:第三融合彩色影像 4110:第一卷積模組 4120:第二卷積模組 4130:融合模組 4140:輸出模組 80: Processor 81: Memory 82: Input device 83: Output device Steps 600, 700: Device 610: Fusion feature acquisition module 620: Fusion image generation module 710: Color Image Acquisition Module 720: Real-time light intensity change acquisition module 730: Combined color image generation module 900: Computer-readable storage media 3110, 3120: Reference color image 3111: First Fusion Color Image 3112: Second Fusion Color Image 3113: Third Fusion Color Image 4110: The first convolution module 4120: The second convolution module 4130: Fusion Module 4140: Output module

圖1為本發明實施例中的一種影像處理方法的實現流程圖; 圖2是本發明實施例中的另一種影像處理方法的實現流程圖; 圖3a是本發明實施例中的另一種影像處理方法的實現流程圖; 圖3b是本發明實施例所適用的一種融合彩色影像產生過程的示意圖; 圖4a是本發明實施例中的另一種影像處理方法的一種實現流程圖; 圖4b是本發明實施例所適用的一種雙模態融合模型的結構示意圖; 圖5a是本發明實施例中的另一種影像處理方法的實現流程圖; 圖5b是本發明實施例所適用的一種在連續彩色影像中插入融合彩色影像過程的示意圖; 圖6是本發明實施例中的一種影像處理裝置的結構圖; 圖7是本發明實施例中的另一種影像處理裝置的結構圖; 圖8是本發明實施例中的一種電腦設備的結構圖。 圖9是本發明實施例中的一種電腦可讀儲存媒體的結構圖。 FIG. 1 is a flowchart of an implementation of an image processing method in an embodiment of the present invention; Fig. 2 is the realization flow chart of another image processing method in the embodiment of the present invention; FIG. 3a is a flow chart of the realization of another image processing method in an embodiment of the present invention; 3b is a schematic diagram of a process for generating a fused color image to which an embodiment of the present invention is applicable; Fig. 4a is an implementation flowchart of another image processing method in an embodiment of the present invention; 4b is a schematic structural diagram of a dual-modal fusion model to which an embodiment of the present invention is applicable; Fig. 5a is an implementation flowchart of another image processing method in an embodiment of the present invention; 5b is a schematic diagram of a process of inserting and merging color images in a continuous color image to which an embodiment of the present invention is applicable; 6 is a structural diagram of an image processing apparatus according to an embodiment of the present invention; 7 is a structural diagram of another image processing apparatus in an embodiment of the present invention; FIG. 8 is a structural diagram of a computer device in an embodiment of the present invention. FIG. 9 is a structural diagram of a computer-readable storage medium according to an embodiment of the present invention.

S110、S120:步驟 S110, S120: Steps

Claims (18)

一種影像處理方法,其特徵在於,包括: 獲取一基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量; 根據該基準彩色影像和各該即時光強變化量,產生一融合彩色影像。 An image processing method, comprising: acquiring a reference color image and at least one real-time light intensity variation corresponding to the reference color image; According to the reference color image and each of the real-time light intensity changes, a fused color image is generated. 如請求項1所述的方法,其中,根據該基準彩色影像和各該即時光強變化量,產生一融合彩色影像,包括: 在該基準彩色影像中,對與各即時光強變化量的像素位置分別對應的融合區域進行像素值調整,以產生該融合彩色影像。 The method of claim 1, wherein generating a fused color image according to the reference color image and each of the real-time light intensity changes, comprising: In the reference color image, pixel value adjustment is performed on the fusion regions corresponding to the pixel positions of each instantaneous light intensity variation, so as to generate the fusion color image. 如請求項2所述的方法,其中,在該基準彩色影像中,對與各即時光強變化量的像素位置分別對應的融合區域進行像素值調整,包括: 確定與目前處理的一目標即時光強變化量對應的一目標像素位置; 在該基準彩色影像中,獲取與該目標像素位置匹配的一目標融合區域; 根據該目標即時光強變化量,對該目標融合區域進行像素值調整。 The method according to claim 2, wherein, in the reference color image, adjusting the pixel values of the fusion regions corresponding to the pixel positions of each instantaneous light intensity change amount respectively includes: determining a target pixel position corresponding to a target instant light intensity change currently being processed; In the reference color image, obtain a target fusion region matching the target pixel position; According to the instantaneous light intensity change of the target, the pixel value of the target fusion area is adjusted. 如請求項3所述的方法,其中,在該基準彩色影像中,獲取與該目標像素位置匹配的一目標融合區域,包括: 根據該像素位置以及預設的擴展融合範圍,在該基準彩色影像中確定目標融合區域。 The method of claim 3, wherein, in the reference color image, acquiring a target fusion region matching the target pixel position, comprising: According to the pixel position and the preset extended fusion range, the target fusion area is determined in the reference color image. 如請求項3所述的方法,其中,根據該目標即時光強變化量,對該目標融合區域進行像素值調整,包括: 獲取該目標融合區域中各像素點的亮度值; 根據該目標即時光強變化量,對各該像素點的亮度值進行調整。 The method according to claim 3, wherein adjusting the pixel value of the target fusion region according to the instantaneous light intensity change of the target, comprising: Obtain the brightness value of each pixel in the target fusion area; Adjust the brightness value of each pixel point according to the change amount of the real-time light intensity of the target. 如請求項3所述的方法,其中,根據該目標即時光強變化量,對該目標融合區域進行像素值調整,包括: 根據該目標即時光強變化量,計算一光照變化量均值; 根據該光照變化量均值,分別對該目標融合區域中各像素點的R值、G值和B值進行調整。 The method according to claim 3, wherein adjusting the pixel value of the target fusion region according to the instantaneous light intensity change of the target, comprising: According to the real-time light intensity change of the target, calculate a mean value of the light change; According to the average value of the illumination change, the R value, G value and B value of each pixel in the target fusion area are adjusted respectively. 如請求項1所述的方法,其中,獲取與該基準彩色影像對應的至少一個即時光強變化量,包括: 獲取該基準彩色影像的一影像產生時間; 根據該影像產生時間以及光強變化量累計時長,確定光強變化量採集時間段; 將該光強變化量採集時間段內檢測到的即時光強變化量,確定為與該基準彩色影像對應的至少一個即時光強變化量。 The method according to claim 1, wherein acquiring at least one instant light intensity variation corresponding to the reference color image comprises: obtaining an image generation time of the reference color image; According to the generation time of the image and the accumulated time of the light intensity change, determine the light intensity change collection time period; The instant light intensity change detected in the light intensity change collection time period is determined as at least one instant light intensity change corresponding to the reference color image. 如請求項1所述的方法,其中,在根據該基準彩色影像和各該即時光強變化量,產生一融合彩色影像之後,還包括: 在不滿足新基準彩色影像獲取條件時,將該基準彩色影像更新為目前產生的該融合彩色影像,返回執行獲取與該基準彩色影像對應的至少一個即時光強變化量的步驟。 The method of claim 1, wherein after generating a fused color image according to the reference color image and each of the instant light intensity changes, further comprising: When the acquisition condition of the new reference color image is not satisfied, the reference color image is updated to the currently generated fused color image, and the step of acquiring at least one instant light intensity variation corresponding to the reference color image is returned to. 如請求項1所述的方法,其中,根據該基準彩色影像和各該即時光強變化量,產生一融合彩色影像,包括: 將該基準彩色影像以及各該即時光強變化量分別輸入至預先訓練的一雙模態融合模型中,並獲取該雙模態融合模型輸出的融合彩色影像;其中,該雙模態融合模型的一第一輸入端用於接收該基準彩色影像,該雙模態融合模型的一第二輸入端用於接收各該即時光強變化量。 The method of claim 1, wherein generating a fused color image according to the reference color image and each of the real-time light intensity changes, comprising: The reference color image and each of the real-time light intensity changes are respectively input into a pre-trained dual-modal fusion model, and the fusion color image output by the dual-modal fusion model is obtained; wherein, the dual-modal fusion model A first input terminal is used for receiving the reference color image, and a second input terminal of the dual-modal fusion model is used for receiving each of the instantaneous light intensity changes. 如請求項9所述的方法,其中,在獲取基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量之前,還包括: 獲取一訓練樣本集合,訓練樣本包括:一標準彩色影像,至少一個光強變化量以及一標準融合彩色影像; 使用該訓練樣本集合中的各該訓練樣本,對設定機器學習模型進行訓練,得到該雙模態融合模型。 The method according to claim 9, wherein before acquiring the reference color image and at least one instantaneous light intensity variation corresponding to the reference color image, further comprising: acquiring a training sample set, the training samples include: a standard color image, at least one light intensity variation and a standard fusion color image; Using each of the training samples in the training sample set, the set machine learning model is trained to obtain the dual-modal fusion model. 如請求項10所述的方法,其中,該標準融合彩色影像為對連續獲取的兩張標準彩色影像進行插訊框以及影像優化處理後得到。The method according to claim 10, wherein the standard fused color image is obtained by performing interstitial frame and image optimization processing on two continuously acquired standard color images. 如請求項10所述的方法,其中,該設定機器學習模型為一孿生卷積網路; 該孿生卷積網路包括一第一卷積模組、一第二卷積模組、一融合模組以及一輸出模組,第一卷積模組包括該第一輸入端,第二卷積模組包括該第二輸入端; 該第一卷積模組和該第二卷積模組的輸出端分別與該融合模組的輸入端相連,該融合模組的輸出端與該輸出模組的輸入端相連,該輸出模組的輸出端用於輸出融合彩色影像; 其中,在對該孿生卷積網路的訓練過程中,第一卷積模組和第二卷積模組不共用權重值。 The method of claim 10, wherein the set machine learning model is a twin convolutional network; The twin convolutional network includes a first convolution module, a second convolution module, a fusion module and an output module, the first convolution module includes the first input end, and the second convolution module The module includes the second input end; The output ends of the first convolution module and the second convolution module are respectively connected to the input end of the fusion module, the output end of the fusion module is connected to the input end of the output module, and the output module The output terminal is used to output the fused color image; Among them, in the training process of the twin convolutional network, the first convolution module and the second convolution module do not share weight values. 如請求項1至請求項12中任一項所述的方法,其中: 該基準彩色影像根據一雙模態視覺感測器中彩色影像感測電路採集得到的光訊號的光強的電壓訊號產生; 該即時光強變化量根據該雙模態視覺感測器中光強變化量感測電路採集得到的光訊號的光強變化量的電流訊號產生。 The method of any one of claim 1 to claim 12, wherein: The reference color image is generated according to the voltage signal of the light intensity of the light signal collected by the color image sensing circuit in a dual-modal visual sensor; The real-time light intensity change amount is generated according to the current signal of the light intensity change amount of the light signal collected by the light intensity change amount sensing circuit in the dual-mode visual sensor. 一種影像處理方法,其特徵在於,包括: 藉由雙模態視覺感測器中彩色影像感測電路,獲取多張彩色影像; 藉由雙模態視覺感測器中光強變化量感測電路,獲取即時光強變化量; 根據各該彩色影像以及各該即時光強變化量,採用如請求項1至請求項13中任一項所述的方法,產生用於插入至連續兩張該彩色影像之間的至少一張融合彩色影像。 An image processing method, comprising: Acquiring a plurality of color images through the color image sensing circuit in the dual-modal vision sensor; Obtain the real-time light intensity change through the light intensity change sensing circuit in the dual-modal visual sensor; According to each of the color images and each of the real-time light intensity changes, adopt the method described in any one of claim 1 to claim 13 to generate at least one fusion for insertion between two consecutive color images Color image. 一種影像處理裝置,其特徵在於,包括: 一融合特徵獲取模組,用於獲取一基準彩色影像,以及與該基準彩色影像對應的至少一個即時光強變化量; 一融合影像產生模組,用於根據該基準彩色影像和各該即時光強變化量,產生融合彩色影像。 An image processing device, comprising: a fusion feature acquisition module for acquiring a reference color image and at least one real-time light intensity variation corresponding to the reference color image; A fused image generating module is used for generating a fused color image according to the reference color image and each of the real-time light intensity changes. 一種影像處理裝置,其特徵在於,包括: 一彩色影像獲取模組,用於藉由雙模態視覺感測器中彩色影像感測電路,獲取多張彩色影像; 一即時光強變化量獲取模組,用於藉由雙模態視覺感測器中光強變化量感測電路,獲取即時光強變化量; 一融合彩色影像產生模組,用於根據各該彩色影像以及各該即時光強變化量,採用如請求項1至請求項13中任一項所述的方法,產生用於插入至連續兩張該彩色影像之間的至少一張融合彩色影像。 An image processing device, comprising: a color image acquisition module for acquiring a plurality of color images by using the color image sensing circuit in the dual-mode visual sensor; a real-time light intensity change acquisition module, used for obtaining the real-time light intensity change through the light intensity change sensing circuit in the dual-modal visual sensor; A fused color image generating module, for generating a module for inserting into two consecutive two images by adopting the method described in any one of claim 1 to claim 13 according to each of the color images and each of the real-time light intensity changes At least one fused color image between the color images. 一種電腦設備,包括一記憶體、一處理器及儲存在記憶體上並可在處理器上運行的一電腦程式,其特徵在於,該處理器執行該電腦程式時實現如請求項1至請求項13中任一所述的影像處理方法,或者,實現如請求項14所述的影像處理方法。A computer device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that when the processor executes the computer program, items such as request item 1 to request item are implemented The image processing method described in any one of 13, or the image processing method described in claim 14 is implemented. 一種電腦可讀儲存媒體,其上儲存有一電腦程式,其特徵在於,該電腦程式被處理器執行時實現如請求項1至請求項13中任一所述的影像處理方法,或者,實現請求項14所述的影像處理方法。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the image processing method as described in any one of request item 1 to request item 13 is realized, or, the request item is realized The image processing method described in 14.
TW110134300A 2020-09-29 2021-09-15 Image processing method, device, computer equipment and storage medium TWI773526B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011057291.XA CN112200757A (en) 2020-09-29 2020-09-29 Image processing method, image processing device, computer equipment and storage medium
CN202011057291.X 2020-09-29

Publications (2)

Publication Number Publication Date
TW202213269A true TW202213269A (en) 2022-04-01
TWI773526B TWI773526B (en) 2022-08-01

Family

ID=74007146

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110134300A TWI773526B (en) 2020-09-29 2021-09-15 Image processing method, device, computer equipment and storage medium

Country Status (3)

Country Link
CN (1) CN112200757A (en)
TW (1) TWI773526B (en)
WO (1) WO2022068584A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI827411B (en) * 2022-12-21 2023-12-21 新唐科技股份有限公司 Micro-controller unit and processing method thereof

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112200757A (en) * 2020-09-29 2021-01-08 北京灵汐科技有限公司 Image processing method, image processing device, computer equipment and storage medium
CN113506320B (en) * 2021-07-15 2024-04-12 清华大学 Image processing method and device, electronic equipment and storage medium
CN113506322B (en) * 2021-07-15 2024-04-12 清华大学 Image processing method and device, electronic equipment and storage medium
CN113506323B (en) * 2021-07-15 2024-04-12 清华大学 Image processing method and device, electronic equipment and storage medium
CN113899312B (en) * 2021-09-30 2022-06-21 苏州天准科技股份有限公司 Image measuring equipment and image measuring method
CN115082371B (en) * 2022-08-19 2022-12-06 深圳市灵明光子科技有限公司 Image fusion method and device, mobile terminal equipment and readable storage medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101006334B1 (en) * 2009-02-17 2011-01-06 포항공과대학교 산학협력단 Apparatus and method for processing images, and record medium for performing the method
US9363427B2 (en) * 2013-08-28 2016-06-07 Disney Enterprises, Inc. Device and method for calibrating a temporal contrast sensor with a frame-based camera sensor
US10198660B2 (en) * 2016-01-27 2019-02-05 Samsung Electronics Co. Ltd. Method and apparatus for event sampling of dynamic vision sensor on image formation
CN107038695A (en) * 2017-04-20 2017-08-11 厦门美图之家科技有限公司 A kind of image interfusion method and mobile device
US10812711B2 (en) * 2018-05-18 2020-10-20 Samsung Electronics Co., Ltd. Semantic mapping for low-power augmented reality using dynamic vision sensor
KR102640236B1 (en) * 2018-07-06 2024-02-26 삼성전자주식회사 A method and apparatus for capturing dynamic images
CN109003270B (en) * 2018-07-23 2020-11-27 北京市商汤科技开发有限公司 Image processing method, electronic device and storage medium
CN109361855B (en) * 2018-10-24 2020-12-11 深圳六滴科技有限公司 Panoramic image pixel brightness correction method and device, panoramic camera and storage medium
CN110166704B (en) * 2019-05-30 2021-07-13 深圳市道创智能创新科技有限公司 Calibration method and device of multispectral camera
CN110298812B (en) * 2019-06-25 2021-08-27 浙江大华技术股份有限公司 Image fusion processing method and device
CN110956581B (en) * 2019-11-29 2022-08-02 南通大学 Image modality conversion method based on dual-channel generation-fusion network
CN111083402B (en) * 2019-12-24 2020-12-01 清华大学 Bimodal bionic vision sensor
CN111382683B (en) * 2020-03-02 2023-05-23 东南大学 Target detection method based on feature fusion of color camera and infrared thermal imager
CN111402306A (en) * 2020-03-13 2020-07-10 中国人民解放军32801部队 Low-light-level/infrared image color fusion method and system based on deep learning
CN112200757A (en) * 2020-09-29 2021-01-08 北京灵汐科技有限公司 Image processing method, image processing device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI827411B (en) * 2022-12-21 2023-12-21 新唐科技股份有限公司 Micro-controller unit and processing method thereof

Also Published As

Publication number Publication date
WO2022068584A1 (en) 2022-04-07
TWI773526B (en) 2022-08-01
CN112200757A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
TWI773526B (en) Image processing method, device, computer equipment and storage medium
WO2022057837A1 (en) Image processing method and apparatus, portrait super-resolution reconstruction method and apparatus, and portrait super-resolution reconstruction model training method and apparatus, electronic device, and storage medium
KR102281017B1 (en) Neural network model training method, apparatus and storage medium for image processing
CN110288614B (en) Image processing method, device, equipment and storage medium
CN109587560A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN111047529B (en) Video processing method based on machine learning
WO2021110066A1 (en) Food maturity level identification method and device, and computer storage medium
US10848746B2 (en) Apparatus including multiple cameras and image processing method
US11200681B2 (en) Motion detection method and motion detection system with low computational complexity and high detection accuracy
CN103268594A (en) Blind pixel replacing method of thermal infrared imager system
CN114841897B (en) Depth deblurring method based on self-adaptive fuzzy kernel estimation
Han et al. Hybrid high dynamic range imaging fusing neuromorphic and conventional images
CN111031256B (en) Image processing method, image processing device, storage medium and electronic equipment
WO2023005115A1 (en) Image processing method, image processing apparatus, electronic device, and readable storage medium
CN111586321A (en) Video generation method and device, electronic equipment and computer-readable storage medium
WO2019179242A1 (en) Image processing method and electronic device
CN102426478A (en) Information processing device, information processing method, program and electronic apparatus
WO2017004953A1 (en) Numerical image conversion method and device, and storage medium and device
CN113034412A (en) Video processing method and device
CN115004220A (en) Neural network for raw low-light image enhancement
US20140140624A1 (en) Face component extraction apparatus, face component extraction method and recording medium in which program for face component extraction method is stored
CN113658091A (en) Image evaluation method, storage medium and terminal equipment
CN114885144B (en) High frame rate 3D video generation method and device based on data fusion
CN114885112A (en) High frame rate video generation method and device based on data fusion
CN114494005A (en) Image processing method, image processing device, storage medium and electronic equipment