TWI766434B - Image stitching apparatus, image processing chip and image stitching method - Google Patents

Image stitching apparatus, image processing chip and image stitching method Download PDF

Info

Publication number
TWI766434B
TWI766434B TW109139553A TW109139553A TWI766434B TW I766434 B TWI766434 B TW I766434B TW 109139553 A TW109139553 A TW 109139553A TW 109139553 A TW109139553 A TW 109139553A TW I766434 B TWI766434 B TW I766434B
Authority
TW
Taiwan
Prior art keywords
image
splicing
area
line
overlapping area
Prior art date
Application number
TW109139553A
Other languages
Chinese (zh)
Other versions
TW202219892A (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 大陸商星宸科技股份有限公司
Priority to TW109139553A priority Critical patent/TWI766434B/en
Publication of TW202219892A publication Critical patent/TW202219892A/en
Application granted granted Critical
Publication of TWI766434B publication Critical patent/TWI766434B/en

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

An image stitching apparatus, an image processing chip and an image stitching method are provided. The image stitching apparatus includes a motion detection unit, a determining unit and a stitching unit. The motion detection unit performs motion detection on an overlapped area of a first image and a second image to be stitched to obtain a motion area having a moving object in the overlapped area. The determining unit calculates a target stitching line by using constrained criteria of avoiding the motion area. The stitching unit stitches the first image and the second image according to the stitching line to generate a stitched image.

Description

影像拼接裝置、影像處理晶片及影像拼接方法Image splicing device, image processing chip and image splicing method

本發明是關於影像處理技術,尤其是關於一種影像拼接裝置、影像處理晶片及影像拼接方法。The present invention relates to image processing technology, in particular to an image splicing device, an image processing chip and an image splicing method.

影像拼接是指將兩張或者兩張以上的影像融合為一張影像,使得融合後的影像包含更多的資訊,能夠更方便的供使用者查看或者供電腦處理等。影像拼接是影像處理技術領域一個重要的研究方向,有著廣泛的應用價值。然而,相關技術中在進行影像拼接時,僅關注於待拼接影像間的視覺差異,導致最終得到拼接影像的品質不高。Image stitching refers to the fusion of two or more images into one image, so that the fused image contains more information and can be more conveniently viewed by users or processed by computers. Image stitching is an important research direction in the field of image processing technology and has a wide range of application values. However, in the related art, when performing image splicing, only the visual difference between the images to be spliced is concerned, resulting in low quality of the spliced images finally obtained.

鑑於先前技術的問題,本發明之一目的在於提供一種影像拼接裝置、影像處理晶片及影像拼接方法,以改善先前技術。In view of the problems of the prior art, one object of the present invention is to provide an image splicing device, an image processing chip and an image splicing method to improve the prior art.

本發明包含一種影像拼接裝置,包含一移動偵測單元、一確定單元以及一拼接單元。移動偵測單元對需要拼接的一第一影像和一第二影像的重疊區域進行移動偵測,得到重疊區域中存在移動物體的一移動區域。確定單元以避開該移動區域為約束條件,計算一目標拼接線。拼接單元根據目標拼接線拼接第一影像以及第二影像,得到一拼接影像。The invention includes an image splicing device, which includes a motion detection unit, a determination unit and a splicing unit. The motion detection unit performs motion detection on the overlapping area of a first image and a second image to be spliced to obtain a moving area in which a moving object exists in the overlapping area. The determining unit calculates a target splicing line with avoiding the moving area as a constraint. The splicing unit splices the first image and the second image according to the target splicing line to obtain a spliced image.

本發明另包含一種影像處理晶片,包含一介面單元、一區域確定單元以及一影像拼接裝置。介面單元獲取需要進行影像拼接一第一影像及一第二影像。區域確定單元確述第一影像與第二影像間的一重疊區域。影像拼接裝置包含一移動偵測單元、一確定單元以及一拼接單元。移動偵測單元對需要拼接的一第一影像和一第二影像的重疊區域進行移動偵測,得到重疊區域中存在移動物體的一移動區域。確定單元以避開該移動區域為約束條件,計算一目標拼接線。拼接單元根據目標拼接線拼接第一影像以及第二影像,得到一拼接影像。The present invention further includes an image processing chip, which includes an interface unit, an area determination unit and an image splicing device. The interface unit acquires a first image and a second image that need to be stitched. The area determination unit determines an overlapping area between the first image and the second image. The image splicing device includes a motion detection unit, a determination unit and a splicing unit. The motion detection unit performs motion detection on the overlapping area of a first image and a second image to be spliced to obtain a moving area in which a moving object exists in the overlapping area. The determining unit calculates a target splicing line with avoiding the moving area as a constraint. The splicing unit splices the first image and the second image according to the target splicing line to obtain a spliced image.

本發明還包含一種影像拼接方法,包含:對一第一影像和一第二影像間的重疊區域進行移動偵測,得到該重疊區域中存在移動物體的一移動區域;以避開該移動區域為約束條件,計算一目標拼接線;以及,根據該目標拼接線拼接該第一影像以及該第二影像,得到一拼接影像。The present invention also includes an image splicing method, comprising: performing motion detection on an overlapping area between a first image and a second image to obtain a moving area in which a moving object exists in the overlapping area; avoiding the moving area as Constraints, calculating a target splicing line; and splicing the first image and the second image according to the target splicing line to obtain a spliced image.

有關本案的特徵、實作與功效,茲配合圖式作較佳實施例詳細說明如下。Regarding the features, implementation and effects of this case, a preferred embodiment is described in detail as follows in conjunction with the drawings.

應當說明的是,本發明的原理是以實施在一適當的應用環境中來舉例說明。以下的說明是通過所例示的本發明具體實施例,其不應被視為限制本發明未在此詳述的其他具體實施例。It should be noted that the principles of the present invention are exemplified by implementation in an appropriate application environment. The following description is by way of illustrative embodiments of the invention and should not be construed as limiting other embodiments of the invention not detailed herein.

本發明實施例提供的技術是關於影像處理技術領域,具體相關於影像的拼接,透過下文中的實施例進行說明。請參照圖1。圖1顯示本發明一實施例中,影像拼接裝置100的第一種方塊示意圖。影像拼接裝置100可包含相互連接的移動偵測單元110、確定單元120及拼接單元130。實施上,移動偵測單元110、確定單元120以及拼接單元130可藉由硬體電路搭配軟體來實現。The technology provided by the embodiments of the present invention relates to the technical field of image processing, specifically related to image splicing, which will be described through the following embodiments. Please refer to Figure 1. FIG. 1 shows a first block schematic diagram of an image splicing apparatus 100 according to an embodiment of the present invention. The image splicing device 100 may include a motion detection unit 110 , a determination unit 120 and a splicing unit 130 which are connected to each other. In practice, the motion detection unit 110 , the determination unit 120 and the splicing unit 130 can be implemented by hardware circuits and software.

請參照圖2。圖2顯示本發明一實施例中,圖1中的運動偵測單元110對第一影像和第二影像的重疊區域進行運動偵測得到運動區域的示例圖。移動偵測單元110被配置為對需要拼接的第一影像和第二影像之間的重疊區域進行移動偵測,從而得到第一影像和第二影像的重疊區域中具有移動物體的移動區域,此處的移動物體可為任意具有移動的物體,包含但不限於人、物等。此處不對移動偵測單元110的移動偵測方式進行具體限制,可由本領域普通技術人員根據實際需要進行配置。Please refer to Figure 2. FIG. 2 shows an example diagram of the motion detection unit 110 in FIG. 1 performing motion detection on the overlapping area of the first image and the second image to obtain a motion area according to an embodiment of the present invention. The motion detection unit 110 is configured to perform motion detection on the overlapping area between the first image and the second image to be spliced, so as to obtain a moving area with moving objects in the overlapping area of the first image and the second image. The moving object at can be any object with movement, including but not limited to people, objects, and the like. The motion detection method of the motion detection unit 110 is not specifically limited here, and can be configured by those of ordinary skill in the art according to actual needs.

此外,本發明實施例中,對於以上第一影像和第二影像的來源不作具體限制,比如,第一影像和第二影像可為同一攝影機在水平旋轉過程中的不同角度所拍攝的視野區域部分重疊的兩張影像,或是,第一影像和第二影像可為視野區域部分重疊的兩個攝影機所分別拍攝的兩張影像等。In addition, in this embodiment of the present invention, there is no specific limitation on the sources of the first image and the second image. For example, the first image and the second image may be part of the field of view captured by the same camera at different angles during the horizontal rotation process. The two overlapping images, or, the first image and the second image may be two images respectively shot by two cameras with partially overlapping visual fields.

請參照圖3。圖3顯示本發明一實施例中,圖1中的確定單元120計算得到的目標拼接線的示例圖。確定單元120被配置為以避開移動區域為約束條件,計算用於拼接第一影像和第二影像的一拼接線,記為目標拼接線。如圖3所示,確定單元120所計算得到的目標拼接線避開了移動區域,也即是目標拼接線並不穿過移動區域。此處不對確定單元120計算目標拼接線的方式進行具體限制,可由本領域普通技術人員根據實際需要進行配置。Please refer to Figure 3. FIG. 3 shows an example diagram of a target splice line calculated by the determining unit 120 in FIG. 1 according to an embodiment of the present invention. The determining unit 120 is configured to calculate a splicing line for splicing the first image and the second image with avoiding the moving area as a constraint, which is recorded as a target splicing line. As shown in FIG. 3 , the target splicing line calculated by the determining unit 120 avoids the moving area, that is, the target splicing line does not pass through the moving area. The manner in which the determination unit 120 calculates the target splicing line is not specifically limited here, and can be configured by those of ordinary skill in the art according to actual needs.

請參照圖4。圖4顯示本發明一實施例中,圖1中的拼接單元130根據圖3所示的目標拼接線拼接第一影像和第二影像得到拼接影像的示例圖。拼接單元130被配置為根據目標拼接線拼接第一影像以及第二影像,得到一拼接影像。如圖4所示,第一影像和第二影像所拼接得到的拼接影像包含第一影像和第二影像的影像內容,其中拼接影像中拼接線左側的影像內容來自於第一影像,拼接線右側的影像內容來自於第二影像。Please refer to Figure 4. FIG. 4 shows an exemplary diagram in which the splicing unit 130 in FIG. 1 splices the first image and the second image according to the target splicing line shown in FIG. 3 to obtain a spliced image according to an embodiment of the present invention. The splicing unit 130 is configured to splicing the first image and the second image according to the target splicing line to obtain a spliced image. As shown in FIG. 4 , the spliced image obtained by splicing the first image and the second image includes the image content of the first image and the second image, wherein the image content on the left side of the splicing line in the spliced image comes from the first image, and the right side of the splicing line in the spliced image comes from the first image. The content of the image comes from the second image.

請參照圖5。圖5顯示本發明一實施例中,影像拼接裝置100的第二方塊示意圖。在一實施例中,影像拼接裝置100還包含一差異計算單元140,其被配置為針對重疊區域計算得到第一影像和第二影像之間的至少一差異矩陣。得到差異矩陣後,確定單元120還被配置為根據差異矩陣,以最小化拼接線兩側差異且避開移動區域為約束條件計算目標拼接線。Please refer to Figure 5. FIG. 5 shows a second block diagram of the image splicing apparatus 100 according to an embodiment of the present invention. In one embodiment, the image stitching apparatus 100 further includes a difference calculation unit 140 configured to calculate at least one difference matrix between the first image and the second image for the overlapping area. After the difference matrix is obtained, the determining unit 120 is further configured to calculate the target splice line according to the difference matrix with the constraints of minimizing the difference on both sides of the splice line and avoiding the moving area.

應當說明的是,差異計算單元140所計算的差異矩陣用於描述第一影像和第二影像的重疊區域中各個位置的差異,可以是像素點之間的差異,也可以是多個像素點構成的像素區塊之間的差異。差異計算單元140計算第一影像和第二影像之間的差異可為色彩差異、灰階值差異、邊緣差異中的一種或者多種。比如,差異計算單元140被配置為計算像素點之間的色彩差異,差異計算單元140將針對第一影像和第二影像的重疊區域計算得到第一影像和第二影像之間的色彩差異矩陣,該色彩差異矩陣用於描述第一影像和第二影像的重疊區域中相同位置的兩個像素點之間的色彩差異。It should be noted that the difference matrix calculated by the difference calculation unit 140 is used to describe the difference of each position in the overlapping area of the first image and the second image, which may be the difference between pixels, or may be composed of multiple pixels. difference between pixel blocks. The difference calculation unit 140 calculates the difference between the first image and the second image, which can be one or more of color difference, gray level difference, and edge difference. For example, the difference calculation unit 140 is configured to calculate the color difference between the pixels, and the difference calculation unit 140 calculates the color difference matrix between the first image and the second image for the overlapping area of the first image and the second image, The color difference matrix is used to describe the color difference between two pixels at the same position in the overlapping area of the first image and the second image.

如上,在差異計算單元140計算得到前述差異矩陣,移動偵測單元110偵測到前述移動區域之後,確定單元130即根據前述差異矩陣,以最小化拼接線兩側差異且避開前述移動區域為約束條件,計算得到前述目標拼接線。由此,當拼接單元130採用該目標拼接線拼接第一影像和第二影像時,得到的拼接影像在目標拼接線左右兩側的影像內容的差異最小,且目標拼接線不會穿過移動物體,能夠進一步提高影像的拼接品質。As above, after the difference calculation unit 140 calculates and obtains the aforementioned difference matrix, and after the motion detection unit 110 detects the aforementioned moving area, the determining unit 130 uses the aforementioned difference matrix to minimize the difference between the two sides of the splicing line and avoid the aforementioned moving area as Constraints, the above-mentioned target splicing line is obtained by calculation. Therefore, when the splicing unit 130 uses the target splicing line to splices the first image and the second image, the difference between the image contents on the left and right sides of the spliced image obtained is the smallest, and the target splicing line will not pass through the moving object , which can further improve the image stitching quality.

在一實施例中,差異計算單元140被配置為按照多種不同的差異計算方式,針對重疊區域計算得到第一影像和第二影像之間不同類型的多個差異矩陣。In one embodiment, the difference calculating unit 140 is configured to obtain a plurality of difference matrices of different types between the first image and the second image by calculating for the overlapping area according to a plurality of different difference calculation methods.

請參照圖6。圖6顯示本發明一實施例中,圖5中的差異計算單元140更詳細的方塊示意圖。在一實施例中,差異計算單元140包含色彩差異計算電路1402、邊緣偵測器1404及邊緣差異計算電路1406。色彩差異計算電路1402針對重疊區域,計算第一影像和第二影像中每一組相同位置像素點之間的色彩差異,從而得到一描述第一影像和第二影像的重疊區域中相同位置像素點之間色彩差異的色彩差異矩陣。或者,通過對色彩差異計算電路1402進行配置,使得色彩差異計算電路1402按照一分塊方式,將第一影像和第二影像的重疊區域劃分為多個像素區塊(每一像素區塊包含多個像素點),並計算第一影像和第二影像中重疊區域相同位置像素區塊(對於一像素區塊,融合該像素區塊內所有像素點的色彩值得到一融合色彩值,用於色彩差異的計算,如針對每一色彩通道,分別計算所有像素點的平均色彩值)的色彩差異,從而得到一描述第一影像和第二影像的重疊區域中相同位置像素區塊之間色彩差異的色彩差異矩陣。Please refer to Figure 6. FIG. 6 shows a more detailed block diagram of the difference calculation unit 140 in FIG. 5 according to an embodiment of the present invention. In one embodiment, the difference calculation unit 140 includes a color difference calculation circuit 1402 , an edge detector 1404 and an edge difference calculation circuit 1406 . The color difference calculation circuit 1402 calculates the color difference between each group of pixel points at the same position in the first image and the second image for the overlapping area, so as to obtain a pixel point at the same position in the overlapping area describing the first image and the second image. Color difference matrix of color differences between. Or, by configuring the color difference calculation circuit 1402, the color difference calculation circuit 1402 divides the overlapping area of the first image and the second image into a plurality of pixel blocks (each pixel block includes multiple pixels), and calculate the pixel block at the same position in the overlapping area of the first image and the second image (for a pixel block, fuse the color values of all pixels in the pixel block to obtain a fusion color value, which is used for color The calculation of the difference, such as for each color channel, calculate the color difference of the average color value of all pixels respectively, so as to obtain a description of the color difference between the pixel blocks at the same position in the overlapping area of the first image and the second image. Color difference matrix.

比如,請參照圖7。圖7顯示本發明之一實施例中,圖6中的色彩差異計算電路1402計算得到色彩差異矩陣的示例圖。第一影像和第二影像的重疊區域分別為第一影像右側區域和第二影像左側區域。在進行色彩方面的差異計算時,色彩差異計算電路1402按照相同的分塊方式,將第一影像右側區域和第二影像左側區域均劃分為4x4共16個像素區塊。然後,色彩差異計算電路1402對第一影像右側區域和第二影像左側區域相同位置的每一組像素區塊進行色彩差異的計算。例如,對於第一影像右側區域左上頂點的像素區塊和第二影像左側區域左上頂點的像素區塊為相同位置的一組像素區塊。假設第一影像右側區域左上頂點像素區塊紅色通道、綠色通道、藍色通道的像素值分別為56、255、251,第二影像左側區域左上頂點像素區塊紅色通道、綠色通道、藍色通道的像素值分別為52、253、250,色彩差異計算電路1402分別計算前組像素區塊分別在紅色通道、綠色通道以及藍色通道的之間的差值絕對值,得到結果為4、2、1,取其中最大值4作為前組像素區塊的差異值。For example, please refer to Figure 7. FIG. 7 shows an example diagram of a color difference matrix obtained by the color difference calculation circuit 1402 in FIG. 6 according to an embodiment of the present invention. The overlapping areas of the first image and the second image are respectively a right area of the first image and a left area of the second image. When performing color difference calculation, the color difference calculation circuit 1402 divides the right side area of the first image and the left side area of the second image into 4×4 16 pixel blocks in the same block manner. Then, the color difference calculation circuit 1402 calculates the color difference for each group of pixel blocks in the same position in the right area of the first image and the left area of the second image. For example, the pixel block of the upper left vertex of the right area of the first image and the pixel block of the upper left vertex of the left area of the second image are a group of pixel blocks in the same position. Assuming that the pixel values of the red channel, green channel, and blue channel of the upper left vertex pixel block in the right area of the first image are 56, 255, and 251, respectively, and the red channel, green channel, and blue channel of the upper left vertex pixel block in the left area of the second image are the red channel, green channel, and blue channel. The pixel values are 52, 253, and 250, respectively. The color difference calculation circuit 1402 calculates the absolute value of the difference between the red channel, green channel and blue channel of the previous group of pixel blocks respectively, and the obtained results are 4, 2, 1. Take the maximum value of 4 as the difference value of the previous group of pixel blocks.

按照以上計算方式,色彩差異計算電路1402將計算得到第一影像和第二影像重疊區域中其他相同位置像素區塊之間的色彩方面的差異值,從而由這些對應不同像素區塊組的差異值構成圖7所示的色彩差異矩陣。According to the above calculation method, the color difference calculation circuit 1402 will calculate the color difference between other pixel blocks at the same position in the overlapping area of the first image and the second image, so that the difference values corresponding to different pixel block groups The color difference matrix shown in FIG. 7 is constructed.

邊緣偵測器1404分別針對第一影像和和第二影像的重疊區域進行邊緣偵測,以分別產生第一邊緣偵測結果以及第二邊緣偵測結果,實施上,邊緣偵測器1404可藉由分析影像中各像素與其週邊像素的像素值變化或相對關係來偵測影像中物件的邊緣。The edge detector 1404 performs edge detection on the overlapping regions of the first image and the second image respectively, so as to generate the first edge detection result and the second edge detection result respectively. In practice, the edge detector 1404 can use the The edge of the object in the image is detected by analyzing the pixel value change or relative relationship between each pixel in the image and its surrounding pixels.

邊緣差異計算電路1406可被配置為根據第一邊緣偵測結果以及第二邊緣偵測結果,計算第一影像和第二影像中重疊區域每一組相同位置像素點或像素區塊之間的邊緣差異,從而得到一描述第一影像和第二影像的重疊區域中相同位置像素點或像素區塊之間邊緣差異的邊緣差異矩陣。當以像素區塊為計算的基礎時,一像素區塊為融合該像素區塊內所有像素點的邊緣值得到的一融合邊緣值,例如像素區塊內所有像素點的平均邊緣值。The edge difference calculation circuit 1406 can be configured to calculate the edge between each group of pixel points or pixel blocks at the same position in the overlapping area of the first image and the second image according to the first edge detection result and the second edge detection result difference, thereby obtaining an edge difference matrix describing the edge difference between pixels or pixel blocks at the same position in the overlapping area of the first image and the second image. When the calculation is based on a pixel block, a pixel block is a fused edge value obtained by fusing the edge values of all the pixel points in the pixel block, such as the average edge value of all the pixel points in the pixel block.

比如,請參照圖8。圖8顯示本發明之一實施例中,圖6中的邊緣偵測器1404進行邊緣偵測,並由圖6中的邊緣差異計算電路1406計算得到邊緣差異矩陣的示例圖。第一影像和第二影像的重疊區域分別為第一影像右側區域和第二影像左側區域。在進行邊緣方面的差異計算時,邊緣差異計算電路1406按照相同的分塊方式,將第一影像右側區域和第二影像左側區域均劃分為4x4共16個像素區塊。然後,邊緣差異計算電路1406對第一影像右側區域和第二影像左側區域相同位置的每一組像素區塊進行邊緣差異的計算。例如,對於第一影像右側區域左上頂點的像素區塊和第二影像左側區域左上頂點的像素區塊為相同位置的一組像素區塊,計算得到的差異值為2。For example, please refer to Figure 8. FIG. 8 shows an example diagram of edge detection performed by the edge detector 1404 in FIG. 6 and an edge difference matrix calculated by the edge difference calculation circuit 1406 in FIG. 6 in an embodiment of the present invention. The overlapping areas of the first image and the second image are respectively a right area of the first image and a left area of the second image. When performing edge difference calculation, the edge difference calculation circuit 1406 divides the right side area of the first image and the left side area of the second image into 4x4 blocks of 16 pixels in the same block manner. Then, the edge difference calculation circuit 1406 performs edge difference calculation for each group of pixel blocks at the same position in the right area of the first image and the left area of the second image. For example, if the pixel block of the upper left vertex of the right area of the first image and the pixel block of the upper left vertex of the left area of the second image are a group of pixel blocks in the same position, the calculated difference value is 2.

按照以上計算方式,邊緣差異計算電路1406將計算得到第一影像和第二影像重疊區域中其他相同位置像素區塊之間的邊緣方面的差異值,從而由這些對應不同像素區塊組的差異值構成圖8所示的邊緣差異矩陣,用於描述第一影像和第二影像的重疊區域中每一相同位置像素區塊之間邊緣差異的邊緣差異矩陣。According to the above calculation method, the edge difference calculation circuit 1406 will calculate the edge difference between other pixel blocks at the same position in the overlapping area of the first image and the second image, so that the difference values corresponding to different pixel block groups The edge difference matrix shown in FIG. 8 is formed, which is used to describe the edge difference matrix between each pixel block at the same position in the overlapping area of the first image and the second image.

本發明實施例中,通過對色彩差異計算電路1402和邊緣差異計算電路1406進行配置,使得色彩差異計算電路1402所計算得到的色彩差異矩陣與邊緣差異計算電路1406所技術得到的邊緣差異矩陣形狀相同。比如,通過配置色彩差異計算電路1402和邊緣差異計算電路1406均以像素點為差異計算對象,或者均以像素區塊(按照相同的分塊方式進行像素區塊的劃分)為差異計算對象,以使得二者所計算得到的邊緣差異矩陣和色彩差異矩陣的形狀相同。In the embodiment of the present invention, by configuring the color difference calculation circuit 1402 and the edge difference calculation circuit 1406, the color difference matrix calculated by the color difference calculation circuit 1402 and the edge difference matrix obtained by the edge difference calculation circuit 1406 have the same shape . For example, by configuring the color difference calculation circuit 1402 and the edge difference calculation circuit 1406 to use pixel points as the difference calculation object, or both pixel blocks (pixel blocks are divided according to the same block method) as the difference calculation objects, The shapes of the edge difference matrix and the color difference matrix calculated by the two are the same.

請參照圖9。圖9顯示本發明之一實施例中,圖5中的確定單元120的方塊示意圖。確定單元120由兩部分構成,分別為資料處理電路1202和拼接線計算電路1204。為了能夠有效的利用所計算得到的第一影像和第二影像之間重疊區域在不同方面的差異,資料處理電路1202首先將色彩差異矩陣和邊緣差異矩陣進行融合,將融合得到的攜帶了色彩差異和邊緣差異的融合差異矩陣作為一用於計算拼接線的成本圖。此外,為了使得計算得到的目標拼接線能夠避開移動區域,資料處理電路1202進一步根據之前偵測到的移動區域,為成本圖對應位置的元素增加懲罰成本,以抑制拼接線經過重疊區域中移動區域的機率。也就是說,資料處理電路1202進一步根據移動區域對成本圖進行修正,而得到修正後的成本圖。其中,對於色彩差異矩陣和邊緣差異矩陣的融合方式,以及懲罰成本的具體取值,此處不作具體限定,可由本領域普通技術人員根據實際需要進行配置。可以理解的是,懲罰成本取值越大,計算的拼接線避開移動區域的機率越大。Please refer to Figure 9. FIG. 9 shows a block diagram of the determining unit 120 in FIG. 5 according to an embodiment of the present invention. The determination unit 120 is composed of two parts, which are a data processing circuit 1202 and a splice line calculation circuit 1204 respectively. In order to effectively utilize the differences in different aspects of the overlapped regions between the first image and the second image, the data processing circuit 1202 first fuses the color difference matrix and the edge difference matrix, and fuses the obtained color difference matrix with the color difference and the fused disparity matrix of edge disparities as a cost map for computing splice lines. In addition, in order to enable the calculated target splicing line to avoid the moving area, the data processing circuit 1202 further adds a penalty cost to the element at the corresponding position of the cost map according to the previously detected moving area, so as to prevent the splicing line from moving through the overlapping area area probability. That is to say, the data processing circuit 1202 further corrects the cost map according to the moving area to obtain the corrected cost map. The fusion method of the color difference matrix and the edge difference matrix and the specific value of the penalty cost are not specifically limited here, and can be configured by those of ordinary skill in the art according to actual needs. It can be understood that the larger the value of the penalty cost, the higher the probability that the calculated splicing line avoids the moving area.

比如,可以配置色彩差異矩陣和邊緣差異矩陣的融合方式為對應位置元素直接相加,以及配置懲罰成本取值為6。請參照圖10。圖10顯示本發明之一實施例中,圖9中的資料處理電路1202計算得到成本圖的示例圖。假設移動區域為重疊區域右下角的兩像素區塊區域,資料處理電路1202將根據該移動區域生成一移動矩陣,移動矩陣中值為0的元素表示其在重疊區域中對應位置的像素區塊不為移動區域,而值為懲罰成本6的元素表示其在重疊區域中對應位置的像素區塊為移動區域。如圖10所示,資料處理電路1202將色彩差異矩陣和邊緣差異矩陣對應位置上的元素直接相加,得到一成本圖,然後將成本圖與移動矩陣對應位置上的元素直接相加,為成本圖增加懲罰成本,最終得到修正後的成本圖。For example, the fusion method of the color difference matrix and the edge difference matrix can be configured to directly add the corresponding position elements, and the penalty cost can be configured to be 6. Please refer to Figure 10. FIG. 10 shows an example diagram of a cost map calculated by the data processing circuit 1202 in FIG. 9 according to an embodiment of the present invention. Assuming that the moving area is the two-pixel block area in the lower right corner of the overlapping area, the data processing circuit 1202 will generate a moving matrix according to the moving area, and the element whose value is 0 in the moving matrix indicates that the pixel block at the corresponding position in the overlapping area is different. is the moving area, and the element whose value is the penalty cost 6 indicates that the pixel block at the corresponding position in the overlapping area is the moving area. As shown in FIG. 10 , the data processing circuit 1202 directly adds the elements at the corresponding positions of the color difference matrix and the edge difference matrix to obtain a cost map, and then directly adds the cost map and the elements at the corresponding positions of the movement matrix, which is the cost The graph increases the penalty cost, resulting in a revised cost graph.

在一實施例中,資料處理電路1202被配置為將色彩差異矩陣和邊緣差異矩陣對應位置上的元素加權相加,得到成本圖。例如,以色彩差異矩陣和邊緣差異矩陣的權重之和為1作為約束,並由本領域普通技術人員根據實際需要為色彩差異矩陣和邊緣差異矩陣分配權重。可以理解是,若分配色彩差異矩陣的權重較大,則第一影像和第二影像之間重疊區域的色彩差異將更多地影響目標拼接線的計算,同理,若分配邊緣差異矩陣的權重較大,則第一影像和第二影像之間重疊區域的邊緣差異將更多地影響目標拼接線的計算。In one embodiment, the data processing circuit 1202 is configured to perform weighted addition of elements at corresponding positions of the color difference matrix and the edge difference matrix to obtain a cost map. For example, the sum of the weights of the color difference matrix and the edge difference matrix is 1 as a constraint, and a person of ordinary skill in the art assigns weights to the color difference matrix and the edge difference matrix according to actual needs. It can be understood that if the weight assigned to the color difference matrix is larger, the color difference in the overlapping area between the first image and the second image will affect the calculation of the target splicing line more. Similarly, if the weight of the edge difference matrix is assigned, If it is larger, the edge difference of the overlapping area between the first image and the second image will affect the calculation of the target splicing line more.

得到成本圖之後,拼接線計算電路1204可利用最小成本法根據成本圖計算得到一最小成本拼接線,並將該最小成本拼接線作為用於拼接第一影像和第二影像的目標拼接線。After obtaining the cost map, the splicing line calculation circuit 1204 can calculate a minimum cost splicing line according to the cost map using the minimum cost method, and use the minimum cost splicing line as the target splicing line for splicing the first image and the second image.

在一實施例中,拼接線計算電路1204延著一累加方向以最小化累加值為約束條件對成本圖的多個元素與其鄰排的相鄰元素中的一元素進行累加,以得到目標拼接線。In one embodiment, the splice line calculation circuit 1204 accumulates a plurality of elements of the cost map and one of the adjacent elements in the adjacent row along an accumulation direction with the constraint condition of minimizing the accumulation value, so as to obtain the target splice line .

比如,請參照圖11。圖11顯示本發明之一實施例中,圖9中的拼接線計算電路1204計算目標拼接線的示例圖。其為計算目標拼接線的示例圖。拼接線計算電路1204首先根據第一影像和第二影像的重疊區域確定進行成本累加的一累加方向,假設第一影像和第二影像左右重疊,則拼接線計算電路1204可以選擇由上至下的方向為累加方向,也可以選擇由下至上的方向為累加方向,此處選擇由上至下的方向為累加方向進行示例說明。For example, please refer to Figure 11. FIG. 11 shows an exemplary diagram of calculating the target splice line by the splice line calculation circuit 1204 in FIG. 9 according to an embodiment of the present invention. It is an example graph of calculating target splice lines. The splicing line calculation circuit 1204 first determines an accumulation direction for cost accumulation according to the overlapping area of the first image and the second image. Assuming that the first image and the second image overlap left and right, the splicing line calculation circuit 1204 can select from top to bottom. The direction is the accumulation direction, and the bottom-to-top direction can also be selected as the accumulation direction. Here, the top-to-bottom direction is selected as the accumulation direction for illustration.

在確定累加方向之後,拼接線計算電路1204根據累加方向在成本圖中確定一起始排元素和一結束排元素。請繼續參照圖11,按照前述累加方向,修正成本圖的橫排「6,1,0,1」為首個橫排,不存在累加對象,相應將橫排「6,1,0,1」作為成本累加圖的初始橫排,將橫排「1,6,6,1」設為起始排元素,將橫排「1,7,8,9」設為結束排元素。也即將累加方向上第二排元素設為起始排元素,將累加方向上的最後一排元素設為結束排元素。After the accumulation direction is determined, the splice line calculation circuit 1204 determines a start row of elements and an end row of elements in the cost map according to the accumulation direction. Please continue to refer to Fig. 11, according to the aforementioned accumulation direction, the horizontal row "6, 1, 0, 1" of the revised cost map is the first horizontal row, and there is no accumulation object, correspondingly the horizontal row "6, 1, 0, 1" is used as the For the initial horizontal row of the cost accumulation graph, set horizontal row "1, 6, 6, 1" as the starting row element, and set horizontal row "1, 7, 8, 9" as the ending row element. That is, the second row element in the accumulation direction is set as the start row element, and the last row element in the accumulation direction is set as the end row element.

在確定起始排元素和結束排元素轉換之後,對於起始排元素中的每一元素,拼接線計算電路1204在與累加方向相反方向的一鄰排元素中,以最小化累加成本(也即最小化累加值)為約束選擇一目標元素進行成本累加。其中,對於累加的一排元素,除了兩端的兩個元素在累加方向相反方向的一鄰排元素中兩個鄰近元素中搜索目標元素之之外,其他元素在累加方向相反方向的一鄰排元素中三個鄰近元素中搜索目標元素。請繼續參照圖11,對於起始排元素左端的「1」,在累加方向相反方向的一鄰排元素「6,1,0,1」中兩個鄰近元素「6,1」中搜索目標元素,此時選擇「1」作為目標元素進行累加,得到累加成本「2」,以及對應的累加路徑「1」-「2」(如圖11中實線箭頭所示);而對於起始排元素中「6」(此處為由左至右的第一個「6」),在累加方向相反方向的一鄰排元素「6,1,0,1」中三個鄰近元素「6,1,0」中搜索目標元素,此時選擇「0」作為目標元素進行累加,得到累加成本「6」,以及對應的累加路徑「0」-「6」;以此類推,完成對起始排元素的成本累加,對應的累加成本為「2,6,6,1」。After determining the starting row element and ending row element transition, for each element in the starting row element, the splice line calculation circuit 1204 is in an adjacent row element in the opposite direction to the accumulation direction to minimize the accumulation cost (ie, Minimize Accumulation) Select a target element for the constraint to accumulate cost. Among them, for the accumulated row of elements, except that the two elements at both ends search for the target element in the two adjacent elements in the adjacent row of elements in the opposite direction of the accumulation direction, the other elements in the adjacent row of elements in the opposite direction of the accumulation direction Searches for the target element among the three adjacent elements in it. Please continue to refer to Figure 11, for the "1" at the left end of the initial row element, search for the target element in the two adjacent elements "6, 1" in the adjacent row elements "6, 1, 0, 1" in the opposite direction of accumulation. , at this time, select "1" as the target element for accumulation, and obtain the accumulated cost "2" and the corresponding accumulation path "1"-"2" (as shown by the solid arrow in Figure 11); and for the initial row element In "6" (here is the first "6" from left to right), three adjacent elements "6, 1, 1" in the adjacent row of elements "6, 1, 0, 1" in the opposite direction of accumulation Search for the target element in 0. At this time, select "0" as the target element for accumulation, and obtain the accumulated cost "6" and the corresponding accumulation path "0"-"6"; The cost is accumulated, and the corresponding accumulated cost is "2, 6, 6, 1".

以此類推,拼接線計算電路1204繼續對起始排元素在累加方向的鄰排元素(即成本圖中由上至下第三排元素)進行成本累加,得到對應的累加成本如圖11中成本累加圖中由上至下的第三排元素所示,為「3,2,1,2」。如此,直至累加至結束排元素(即成本圖中由上至下第四排元素)。By analogy, the splicing line calculation circuit 1204 continues to perform cost accumulation on the adjacent row elements in the accumulation direction of the initial row elements (that is, the elements in the third row from top to bottom in the cost diagram), to obtain the corresponding accumulated costs as shown in Figure 11 . The third row of elements from top to bottom in the accumulation diagram is "3, 2, 1, 2". In this way, it is accumulated to the end row element (that is, the fourth row element from top to bottom in the cost graph).

最終,得到成本累加圖同樣4橫排以及4縱排共16個元素,其中按照由上至下的順序分別為「6,1,0,1」、「2,6,6,1」、「3,2,1,2」以及「3,8,9,10」。相應的,拼接線計算電路1204根據累加成本最小的累加路徑(此時為「1」-「2」-「2」-「3」)生成最小成本拼接線,如圖11所示。Finally, the cost accumulation graph is also obtained with 4 horizontal rows and 4 vertical rows, a total of 16 elements, which are "6, 1, 0, 1", "2, 6, 6, 1", " 3, 2, 1, 2" and "3, 8, 9, 10". Correspondingly, the splice line calculation circuit 1204 generates the minimum cost splice line according to the accumulated path with the smallest accumulated cost ("1"-"2"-"2"-"3" in this case), as shown in FIG. 11 .

在另一實施例中,拼接線計算電路1204延著一累加方向以最小化累加值為約束條件對成本圖的多個元素與其同排及鄰排的相鄰元素中的一元素進行累加,以得到該目標拼接線。與前面實施例不同的是在這實施例中拼接線計算電路1204在選擇一目標元素進行成本累加的過程中,是自同排及鄰排的相鄰元素中進行選擇,並非僅自鄰排的相鄰元素中選擇。In another embodiment, the splice line calculation circuit 1204 accumulates a plurality of elements in the cost map and an element in the adjacent elements in the same row and adjacent rows along an accumulation direction with the constraint condition of minimizing the accumulation value, so as to obtain Get the target splice line. The difference from the previous embodiment is that in this embodiment, the splicing line calculation circuit 1204 selects a target element from the adjacent elements in the same row and adjacent rows, not only from the adjacent row, in the process of selecting a target element for cost accumulation. Select from adjacent elements.

請參照圖12。圖12顯示本發明之一實施例中,圖9中的拼接線計算電路1204計算目標拼接線的另一示例圖。其為此實施例計算目標拼接線的示例圖。此實施例選擇由上至下的方向為累加方向進行示例說明。如同前面的實施例,將橫排「1,6,6,1」設為起始排元素,將橫排「1,7,8,9」設為結束排元素。Please refer to Figure 12. FIG. 12 shows another exemplary diagram of calculating the target splice line by the splice line calculation circuit 1204 in FIG. 9 according to an embodiment of the present invention. It calculates an example graph of the target splice line for this embodiment. In this embodiment, the top-to-bottom direction is selected as the accumulation direction for illustration. As in the previous embodiment, set the horizontal row "1, 6, 6, 1" as the starting row element, and set the horizontal row "1, 7, 8, 9" as the ending row element.

請繼續參照圖12,對於起始排元素左端的「1」,在累加方向相反方向的一鄰排元素「6,1,0,1」中兩個鄰近元素「6,1」中搜索目標元素,此時選擇「1」作為目標元素進行累加,得到累加成本「2」,以及對應的累加路徑「1」-「2」(如圖12中實線箭頭所示);然後,拼接線計算電路1204進一步按照累加方向的一第一垂直方向進行累加成本的更新,即針對同排的鄰近元素進行累加成本的更新。此處以由左至右的方向為第一垂直方向進行示例說明。此時「1」並不存在左側相鄰的元素,不對其累加成本進行更新,保留累加成本「2」。Please continue to refer to Figure 12, for the "1" at the left end of the initial row element, search for the target element in the two adjacent elements "6, 1" in the adjacent row elements "6, 1, 0, 1" in the opposite direction of the accumulation direction , at this time, select "1" as the target element for accumulation, and obtain the accumulated cost "2" and the corresponding accumulation path "1"-"2" (as shown by the solid arrow in Figure 12); then, the splicing line calculation circuit 1204 further updates the accumulated cost according to a first vertical direction of the accumulation direction, that is, updates the accumulated cost for adjacent elements in the same row. Herein, the left-to-right direction is taken as the first vertical direction for illustration. At this time, there is no adjacent element on the left of "1", and its accumulated cost is not updated, and the accumulated cost "2" is retained.

而對於起始排元素中左側的「6」(此處為由左至右的第一個「6」),在累加方向相反方向的一鄰排元素「6,1,0,1」中三個鄰近元素「6,1,0」中搜索目標元素,此時選擇「0」作為目標元素進行累加,得到累加成本「6」,以及對應的累加路徑「0」-「6」;然後,拼接線計算電路1204進一步按照累加方向的一第一垂直方向(此時為由左至右的方向)進行累加成本的更新。此時「6」的左側相鄰元素為「1」,拼接線計算電路1204判斷「6」對應的累加成本是否大於「1」對應的累加成本與「6」的成本之和,是則將「6」對應的累加成本替換為「1」對應的累加成本與「6」的成本之和。如圖12所示,「6」對應的累加成本為6,小於「1」對應的累加成本(2)與「6」的成本(6)之和(8),不對「6」對應的累加成本進行替換。For the "6" on the left side of the initial row of elements (here, the first "6" from left to right), three elements in the adjacent row of elements "6, 1, 0, 1" in the opposite direction of accumulation Search for the target element in the adjacent elements "6, 1, 0". At this time, select "0" as the target element for accumulation to obtain the accumulated cost "6" and the corresponding accumulated path "0"-"6"; then, splicing The line calculation circuit 1204 further updates the accumulated cost according to a first vertical direction of the accumulation direction (in this case, the direction from left to right). At this time, the adjacent element on the left of "6" is "1", and the splicing line calculation circuit 1204 determines whether the accumulated cost corresponding to "6" is greater than the sum of the accumulated cost corresponding to "1" and the cost of "6". The cumulative cost corresponding to 6" is replaced by the sum of the cumulative cost corresponding to "1" and the cost of "6". As shown in Figure 12, the accumulated cost corresponding to "6" is 6, which is less than the sum (8) of the accumulated cost (2) corresponding to "1" and the cost (6) of "6", and the accumulated cost corresponding to "6" is not make a replacement.

以此類推,在第一垂直方向完成對所有元素的更新後,起始排元素對應的累加成本為「2,6,6,1」,此時,拼接線計算電路1204按照與第一垂直方向相反的一第二垂直方向(此時為由右至左的方向),根據每一元素在第二垂直方向的反向相鄰元素對每一元素的累加成本再次進行更新。對於起始排元素右端的「1」,此時「1」並不存在右側相鄰的元素,不對其累加成本進行更新,保留累加成本「1」。而對於起始排元素中右側的「6」(此處為由左至右的第二個「6」)。此時「6」的右側相鄰元素為「1」,拼接線計算電路1204判斷「6」對應的累加成本是否大於「1」對應的累加成本與「6」的成本之和,是則將「6」對應的累加成本替換為「1」對應的累加成本與「6」的成本之和。如圖12所示,「6」對應的累加成本為6,小於「1」對應的累加成本與「6」的成本之和7,不對「6」對應的累加成本進行替換。以此類推,在第二垂直方向完成對起始排元素累加成本的再次更新,最終得到起始排元素對應的累加成本仍然為「2,6,6,1」。By analogy, after the update of all elements in the first vertical direction is completed, the accumulated cost corresponding to the first row of elements is "2, 6, 6, 1". At this time, the splicing line calculation circuit 1204 calculates In the opposite second vertical direction (in this case, the direction from right to left), the accumulated cost of each element is updated again according to the opposite adjacent elements of each element in the second vertical direction. For the "1" at the right end of the element in the initial row, at this time, there is no adjacent element on the right side of "1", and the accumulated cost is not updated, and the accumulated cost "1" is retained. And for the "6" on the right in the first row of elements (here, the second "6" from left to right). At this time, the adjacent element on the right side of "6" is "1", and the splicing line calculation circuit 1204 determines whether the accumulated cost corresponding to "6" is greater than the sum of the accumulated cost corresponding to "1" and the cost of "6". The cumulative cost corresponding to 6" is replaced by the sum of the cumulative cost corresponding to "1" and the cost of "6". As shown in Figure 12, the accumulated cost corresponding to "6" is 6, which is less than the sum of the accumulated cost corresponding to "1" and the cost of "6" by 7, and the accumulated cost corresponding to "6" is not replaced. By analogy, the cumulative cost of the initial row element is updated again in the second vertical direction, and finally the cumulative cost corresponding to the initial row element is still "2, 6, 6, 1".

如上,拼接線計算電路1204繼續對起始排元素在累加方向的鄰排元素(即成本圖中由上至下第三排元素「1,0,0,1」)進行成本累加,並在第一垂直方向和第二垂直方向針對同排的鄰近元素進行更新。如此,直至累加至結束排元素(即成本圖中由上至下第四排元素)。最終,得到成本累加圖同樣4橫排以及4縱排共16個元素,其中按照由上至下的順序分別為「6,1,0,1」、「2,6,6,1」、「2,1,1,2」以及「2,8,9,10」。相應的,拼接線計算電路1204根據累加成本最小的累加路徑(此時為「0」-「1」-「1」-「1」-「1」-「2」)生成最小成本拼接線,如圖12所示。As above, the splice line calculation circuit 1204 continues to perform cost accumulation on the adjacent row elements of the initial row elements in the accumulation direction (that is, the third row element "1, 0, 0, 1" from top to bottom in the cost map), and in the first row A vertical direction and a second vertical direction are updated for adjacent elements in the same row. In this way, it is accumulated to the end row element (that is, the fourth row element from top to bottom in the cost graph). Finally, the cost accumulation graph is also obtained with 4 horizontal rows and 4 vertical rows, a total of 16 elements, which are "6, 1, 0, 1", "2, 6, 6, 1", " 2, 1, 1, 2" and "2, 8, 9, 10". Correspondingly, the splice line calculation circuit 1204 generates the minimum cost splice line according to the accumulated path with the smallest accumulated cost (in this case, "0"-"1"-"1"-"1"-"1"-"2"), such as Figure 12.

請參照圖13。圖13顯示本發明之一實施例中,影像拼接裝置100的第三方塊示意圖。在一實施例中,影像拼接裝置100還包含一位移限制單元150,用於獲取拼接線計算電路1204之前計算得到的一先前拼接線,並根據先前拼接線產生一位移限制資料。確定單元120再以避開該移動區域為約束條件,根據前述的至少一差異矩陣及位移限制資料計算目標拼接線。藉由考慮先前拼接線相關的位移限制資料,以避免當下畫面所計算的目標拼接線與前一畫面的先前拼接線差距過大,而影響畫面的連續性。Please refer to Figure 13. FIG. 13 shows a schematic diagram of a third block of the image splicing apparatus 100 according to an embodiment of the present invention. In one embodiment, the image splicing apparatus 100 further includes a displacement limiting unit 150 for acquiring a previous splicing line calculated by the splicing line calculating circuit 1204 before, and generating a displacement limiting data according to the previous splicing line. The determining unit 120 then calculates the target splicing line according to the aforementioned at least one difference matrix and the displacement restriction data with avoiding the moving area as a constraint. By considering the displacement restriction data related to the previous splicing line, it is avoided that the difference between the target splicing line calculated in the current picture and the previous splicing line of the previous picture is too large, which will affect the continuity of the picture.

詳細來說,位移限制單元150可針對成本圖中各元素與先前拼接線的距離而確定移動成本,比如,以距離越大,確定的位移成本越大為約束,進而產生對應的位移限制資料。而確定單元120中的資料處理電路1202再根據位移限制資料對成本圖進行修正。In detail, the displacement limiting unit 150 may determine the moving cost according to the distance between each element in the cost map and the previous splicing line. For example, the larger the distance, the greater the determined displacement cost as a constraint, thereby generating corresponding displacement limiting data. The data processing circuit 1202 in the determining unit 120 then corrects the cost map according to the displacement restriction data.

比如,存在視野區域部分重疊的第一攝影機和第二攝影機,且第一攝影機和第二攝影機均處於攝影模式,連續地進行影像擷取。在第一攝影機和第二攝影機開始擷取的起始時刻t0,將第一攝影機在t0時刻擷取的影像作為第一影像,將的第二攝影機在t0時刻擷取的影像作為第二影像,由於此時並不存在先前第一影像和先前第二影像,拼接線計算電路1204在資料處理電路1202融合得到成本圖之後,即根據該成本圖計算一最小成本拼接線,作為用於拼接t0時刻的第一影像和第二影像的目標拼接線。在t0時刻的下一時刻t1,將第一攝影機在t1時刻擷取的影像作為第一影像,將的第二攝影機在t1時刻擷取的影像作為第二影像,此時的先前第一影像即第一攝影機在t0時刻擷取的影像,先前第二影像即第二攝影機在t0時刻擷取的影像,相應的,先前拼接線即拼接線計算電路1204根據先前第一影像和先前第二影像所計算的拼接線。位移限制單元150根據先前拼接線產生對應的位移限制資料。資料處理電路1202可綜合考慮色彩差異矩陣、邊緣差異矩陣、移動矩陣及位移限制資料來產生最後的成本圖。比如,資料處理電路1202可在如圖10所示根據色彩差異矩陣、邊緣差異矩陣、移動矩陣得到一成本圖後,再根據位移限制資料來修正成本圖,其修正方式可為將成本圖中各元素的成本值與位移限制資料中各元素對應的移動成本進行相加。相應的,拼接線計算電路1204再根據修正後的成本圖計算得到目標拼接線。For example, there are a first camera and a second camera with partially overlapping fields of view, and both the first camera and the second camera are in a shooting mode, and images are continuously captured. At the start time t0 when the first camera and the second camera start capturing, the image captured by the first camera at time t0 is taken as the first image, and the image captured by the second camera at time t0 is taken as the second image, Since the previous first image and the previous second image do not exist at this time, after the data processing circuit 1202 fuses the cost map, the splicing line calculation circuit 1204 calculates a minimum cost splicing line according to the cost map, which is used for splicing at time t0 The target stitching line of the first image and the second image. At the next time t1 at time t0, the image captured by the first camera at time t1 is used as the first image, and the image captured by the second camera at time t1 is used as the second image. The previous first image at this time is The image captured by the first camera at time t0, the previous second image is the image captured by the second camera at time t0, and correspondingly, the previous stitching line is the stitching line calculation circuit 1204 according to the previous first image and the previous second image. Calculated splice line. The displacement limiting unit 150 generates corresponding displacement limiting data according to the previous splice line. The data processing circuit 1202 can comprehensively consider the color difference matrix, edge difference matrix, movement matrix and displacement limit data to generate the final cost map. For example, the data processing circuit 1202 may, after obtaining a cost map according to the color difference matrix, the edge difference matrix and the movement matrix as shown in FIG. 10, correct the cost map according to the displacement limit data. The cost value of the element is added to the movement cost corresponding to each element in the displacement limit data. Correspondingly, the splice line calculation circuit 1204 calculates and obtains the target splice line according to the revised cost map.

在一實施例中,移動偵測單元110被配置為針對重疊區域對第一影像進行移動偵測,得到一第一候選移動區域,針對重疊區域對第二影像進行移動偵測,得到一第二候選移動區域,及融合第一候選移動區域和第二候選移動區域得到移動區域。In one embodiment, the motion detection unit 110 is configured to perform motion detection on the first image for the overlapping area to obtain a first candidate motion area, and perform motion detection on the second image for the overlapping area to obtain a second candidate motion area. candidate moving regions, and fusing the first candidate moving regions and the second candidate moving regions to obtain the moving regions.

應當說明的是,對於移動偵測單元110採用何種移動偵測方式,可由本領域普通技術人員根據實際需要進行配置,此處不作具體限制。It should be noted that the motion detection method adopted by the motion detection unit 110 can be configured by those of ordinary skill in the art according to actual needs, which is not specifically limited here.

比如,請參照圖14。圖14顯示本發明之一實施例中,圖1中的運動偵測單元110偵測得到運動區域的示意圖。第一影像和第二影像的重疊區域分別為第一影像右側區域和第二影像左側區域。其中,按照相同的劃分方式將第一影像右側區域和第二影像左側區域均劃分為4x4共16個像素區塊。對於第一影像,移動偵測單元110偵測到的第一候選移動區域為圖14所示2個像素區塊所構成,對於第二影像,移動偵測單元110偵測到的第二候選移動區域為圖14所示2個像素區塊所構成。相應的,移動偵測單元110對第一候選移動區域和第二候選移動區域進行融合,得到圖14所示3個像素區塊所構成的移動區域。For example, see Figure 14. FIG. 14 shows a schematic diagram of a motion area detected by the motion detection unit 110 in FIG. 1 according to an embodiment of the present invention. The overlapping areas of the first image and the second image are respectively a right area of the first image and a left area of the second image. The right area of the first image and the left area of the second image are both divided into 4×4 16 pixel blocks according to the same division method. For the first image, the first candidate motion area detected by the motion detection unit 110 is composed of two pixel blocks as shown in FIG. 14 , and for the second image, the second candidate motion area detected by the motion detection unit 110 The area is composed of two pixel blocks shown in FIG. 14 . Correspondingly, the motion detection unit 110 fuses the first candidate motion area and the second candidate motion area to obtain a motion area composed of three pixel blocks as shown in FIG. 14 .

在一實施例中,移動偵測單元110被配置為獲取與第一影像視野區域相同的先前第一影像,並針對重疊區域計算第一影像和先前第一影像的像素灰階值差異,以及根據像素灰階值差異偵測出第一候選移動區域。In one embodiment, the motion detection unit 110 is configured to acquire a previous first image that is the same as the first image field of view area, and calculate the pixel gray level difference between the first image and the previous first image for the overlapping area, and according to The first candidate moving region is detected by the difference of pixel gray level values.

比如,存在視野區域部分重疊的第一攝影機和第二攝影機,且第一攝影機和第二攝影機均處於攝影模式,連續地進行影像擷取。在第一攝影機和第二攝影機開始擷取的起始時刻t0,將第一攝影機在t0時刻擷取的影像作為第一影像,將的第二攝影機在t0時刻擷取的影像作為第二影像,由於此時並不存在先前第一影像和先前第二影像,不進行移動區域的偵測。For example, there are a first camera and a second camera with partially overlapping fields of view, and both the first camera and the second camera are in a shooting mode, and images are continuously captured. At the start time t0 when the first camera and the second camera start capturing, the image captured by the first camera at time t0 is taken as the first image, and the image captured by the second camera at time t0 is taken as the second image, Since the previous first image and the previous second image do not exist at this time, the detection of the moving area is not performed.

在t0時刻的下一時刻t1,將第一攝影機在t1時刻擷取的影像作為第一影像,將的第二攝影機在t1時刻擷取的影像作為第二影像,此時的先前第一影像即第一攝影機在t0時刻擷取的影像,先前第二影像即第二攝影機在t0時刻擷取的影像。相應的,移動偵測單元110針對重疊區域計算第一影像和先前第一影像的像素灰階值差異,以及根據像素灰階值差異偵測出第一候選移動區域。At the next time t1 at time t0, the image captured by the first camera at time t1 is used as the first image, and the image captured by the second camera at time t1 is used as the second image. The previous first image at this time is The image captured by the first camera at time t0, the previous second image is the image captured by the second camera at time t0. Correspondingly, the motion detection unit 110 calculates the difference of pixel gray level values of the first image and the previous first image for the overlapping area, and detects the first candidate motion area according to the difference of pixel gray level values.

以此類推,在t1時刻之後的時刻,移動偵測單元110將按照如上方式進行移動偵測。By analogy, at a time after time t1, the motion detection unit 110 will perform motion detection in the above manner.

在一實施例中,移動偵測單元110被配置為將重疊區域劃分為多個子塊,並融合每一子塊內的像素灰階值差異得到一融合灰階值差異,以及根據融合灰階值差異大於預設閾值的子塊生成第一候選移動區域。其中,對於預設閾值的具體取值,可由本領域普通技術人員根據實際需要進行配置,此處不作具體限定。In one embodiment, the motion detection unit 110 is configured to divide the overlapping area into a plurality of sub-blocks, fuse the pixel gray-scale value differences in each sub-block to obtain a fused gray-scale value difference, and obtain a fused gray-scale value difference according to the fused gray-scale value. The sub-blocks whose differences are greater than the preset threshold generate a first candidate moving area. The specific value of the preset threshold can be configured by those of ordinary skill in the art according to actual needs, which is not specifically limited here.

作為一可選的實施方式,移動偵測單元110被配置計算每一子塊內的像素灰階值差異的平均灰階值差異,並將每一子塊的平均灰階值差異作為每一子塊的融合灰階值差異。As an optional embodiment, the motion detection unit 110 is configured to calculate the average gray-level value difference of the pixel gray-level value difference in each sub-block, and use the average gray-level value difference of each sub-block as each sub-block The fused grayscale value difference of the block.

應當說明的是,對於移動偵測單元110對第二影像的移動偵測方式,可以參照移動偵測單元110對第一影像的移動偵測方式相應實施,此處不再贅述。It should be noted that the motion detection method of the motion detection unit 110 for the second image can be implemented with reference to the motion detection method of the motion detection unit 110 for the first image, which will not be repeated here.

請參照圖15。圖15顯示本發明之一實施例中,影像處理晶片10的方塊示意圖。本發明還提供一種影像處理晶片10,其包含介面單元200、區域確定單元300及影像拼接裝置100。介面單元200用於獲取需要進行影像拼接一第一影像,及一第二影像。區域確定單元300用於確定第一影像與第二影像的一重疊區域。影像拼接裝置100用於根據重疊區域拼接第一影像以及第二影像得到一拼接影像。Please refer to Figure 15. FIG. 15 shows a block diagram of the image processing wafer 10 according to an embodiment of the present invention. The present invention also provides an image processing chip 10 , which includes an interface unit 200 , a region determination unit 300 and an image splicing device 100 . The interface unit 200 is used to obtain a first image and a second image that need to be stitched. The area determination unit 300 is used for determining an overlapping area of the first image and the second image. The image splicing device 100 is used for splicing the first image and the second image according to the overlapping area to obtain a spliced image.

舉例來說,介面單元200可以為移動產業處理器介面(Mobile Industry Processor Interface;MIPI)。介面單元200可以接收影像資料,比如介面單元200可以接收來同一攝影機在水平旋轉過程中的不同角度所拍攝的視野區域部分重疊的兩張影像,也可以接收視野區域部分重疊的兩個攝影機所分別拍攝的兩張影像。介面單元200接收到影像資料後,可以將該影像資料傳輸到區域確定單元300進行重疊區域的識別。For example, the interface unit 200 may be a Mobile Industry Processor Interface (MIPI). The interface unit 200 can receive image data. For example, the interface unit 200 can receive two images with partially overlapping view areas shot by the same camera at different angles during the horizontal rotation, or can receive the respective images of two cameras with partially overlapping view areas. Two images were taken. After the interface unit 200 receives the image data, it can transmit the image data to the area determination unit 300 to identify the overlapping area.

比如,介面單元200接收到同一攝影機在旋轉過程中的不同角度所拍攝的視野區域部分重疊的第一影像和第二影像,並將第一影像及第二影像傳輸至區域確定單元300。相應的,區域確定單元300對第一影像和第二影像的重疊區域進行識別。此外,影像拼接裝置100可以為本發明以上任一實施例所提供的影像拼接裝置100。For example, the interface unit 200 receives the first image and the second image partially overlapped by the field of view area captured by the same camera at different angles during the rotation process, and transmits the first image and the second image to the area determination unit 300 . Correspondingly, the area determination unit 300 identifies the overlapping area of the first image and the second image. In addition, the image splicing apparatus 100 may be the image splicing apparatus 100 provided by any of the above embodiments of the present invention.

在一實施例中,介面單元200從一第一監控攝影機獲取第一影像,及從一第二監控攝影機獲取第二影像。In one embodiment, the interface unit 200 acquires the first image from a first surveillance camera, and acquires the second image from a second surveillance camera.

本發明還提供一種影像拼接方法,請參照圖16。圖16顯示本發明之一實施例中,影像拼接方法的流程示意圖。該影像拼接方法的流程說明如下。The present invention also provides an image splicing method, please refer to FIG. 16 . FIG. 16 shows a schematic flowchart of an image stitching method according to an embodiment of the present invention. The flow of the image stitching method is described as follows.

在步驟510中,對需要拼接的一第一影像和一第二影像的重疊區域進行移動偵測,得到重疊區域中存在移動物體的一移動區域。In step 510, motion detection is performed on the overlapping area of a first image and a second image to be spliced to obtain a moving area in which a moving object exists in the overlapping area.

在步驟520中,以避開移動區域為約束條件,計算一目標拼接線。In step 520, a target splicing line is calculated with avoiding the moving area as a constraint.

在步驟530中,根據目標拼接線拼接第一影像以及第二影像,得到一拼接影像。In step 530, the first image and the second image are spliced according to the target splicing line to obtain a spliced image.

在一實施例中,本發明提供的影像拼接方法還包含針對重疊區域計算得到第一影像和第二影像之間的至少一差異矩陣。之後,再根據差異矩陣,以最小化拼接線兩側差異且避開移動區域為約束條件計算目標拼接線。In one embodiment, the image stitching method provided by the present invention further includes calculating at least one difference matrix between the first image and the second image for the overlapping area. Then, according to the difference matrix, the target splicing line is calculated with the constraints of minimizing the difference on both sides of the splicing line and avoiding the moving area.

在一實施例中,本發明提供的影像拼接方法還包含獲取之前計算得到的一先前拼接線。再根據先前拼接線對成本圖進行修正。In one embodiment, the image splicing method provided by the present invention further includes acquiring a previous splicing line calculated previously. The cost map is then revised based on the previously spliced lines.

應當說明的是,影像拼接方法的詳細說明請參照以上實施例中對於影像拼接裝置的相關說明,在此不再贅述。It should be noted that, for the detailed description of the image splicing method, please refer to the relevant description of the image splicing device in the above embodiment, and details are not repeated here.

以上對本發明實施例提供的影像拼接裝置、影像處理晶片及影像拼接方法進行了詳細介紹。本文中應用了具體個例對本發明的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本發明。同時,對於本領域的技術人員,依據本發明的思想,在具體實施方式及應用範圍上均會有改變之處,綜上該,本說明書內容不應理解為對本發明的限制。The image splicing device, the image processing chip, and the image splicing method provided by the embodiments of the present invention have been described in detail above. The principles and implementations of the present invention are described herein by using specific examples, and the descriptions of the above embodiments are only used to help understand the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific embodiments and application scope. In conclusion, the content of this specification should not be construed as a limitation to the present invention.

10:影像處理晶片 100:影像拼接裝置 110:移動偵測單元 120:確定單元 1202:資料處理電路 1204:拼接線計算電路 130:拼接單元 140:差異計算單元 1402:色彩差異計算電路 1404:邊緣偵測器 1406:邊緣差異計算電路 150:位移限制單元 200:介面單元300:區域確定單元 510~530:步驟 10: Image processing chip 100: Image stitching device 110: Motion detection unit 120: Determine unit 1202: Data Processing Circuits 1204: Splice line calculation circuit 130: Splicing unit 140: Difference calculation unit 1402: Color Difference Calculation Circuit 1404: Edge Detector 1406: Edge Difference Computation Circuit 150: Displacement limit unit 200: interface unit 300: area determination unit 510~530: Steps

[圖1]顯示本發明之一實施例中,影像拼接裝置的第一種方塊示意圖; [圖2]顯示本發明之一實施例中,圖1中的運動偵測單元對第一影像和第二影像的重疊區域進行運動偵測得到運動區域的示例圖; [圖3]顯示本發明之一實施例中,圖1中的確定單元計算得到的目標拼接線的示例圖; [圖4]顯示本發明之一實施例中,圖1中的拼接單元根據圖3所示的目標拼接線拼接第一影像和第二影像得到拼接影像的示例圖; [圖5]顯示本發明之一實施例中,影像拼接裝置的第二方塊示意圖; [圖6]顯示本發明之一實施例中,圖5中的差異計算單元更詳細的方塊示意圖; [圖7]顯示本發明之一實施例中,圖6中的色彩差異計算電路計算得到色彩差異矩陣的示例圖; [圖8]顯示本發明之一實施例中,圖6中的邊緣偵測器進行邊緣偵測,並由圖6中的邊緣差異計算電路計算得到邊緣差異矩陣的示例圖; [圖9]顯示本發明之一實施例中,圖5中的確定單元的方塊示意圖; [圖10]顯示本發明之一實施例中,圖9中的資料處理電路計算得到成本圖的示例圖; [圖11]顯示本發明之一實施例中,圖9中的拼接線計算電路計算目標拼接線的示例圖; [圖12]顯示本發明之一實施例中,圖9中的拼接線計算電路計算目標拼接線的另一示例圖; [圖13]顯示本發明之一實施例中,影像拼接裝置的第三方塊示意圖; [圖14]顯示本發明之一實施例中,圖1中的運動偵測單元偵測得到運動區域的示意圖; [圖15]顯示本發明之一實施例中,影像處理晶片的方塊示意圖;以及 [圖16]顯示本發明之一實施例中,影像拼接方法的流程示意圖。 [FIG. 1] shows a first block schematic diagram of an image splicing device in an embodiment of the present invention; [FIG. 2] In an embodiment of the present invention, the motion detection unit in FIG. 1 performs motion detection on the overlapping area of the first image and the second image to obtain an example diagram of a motion area; [Fig. 3] shows an example diagram of the target splicing line calculated by the determining unit in Fig. 1 in an embodiment of the present invention; [FIG. 4] shows an example diagram in which the splicing unit in FIG. 1 splices the first image and the second image according to the target splicing line shown in FIG. 3 to obtain a spliced image in an embodiment of the present invention; [ Fig. 5 ] shows a second block diagram of an image splicing device in an embodiment of the present invention; [FIG. 6] shows a more detailed block diagram of the difference calculation unit in FIG. 5 in an embodiment of the present invention; [Fig. 7] shows an example diagram of a color difference matrix calculated by the color difference calculation circuit in Fig. 6 in an embodiment of the present invention; [FIG. 8] shows an example diagram of edge detection performed by the edge detector in FIG. 6 and an edge difference matrix calculated by the edge difference calculation circuit in FIG. 6 in an embodiment of the present invention; [Fig. 9] shows a block diagram of the determination unit in Fig. 5 in an embodiment of the present invention; [FIG. 10] shows an example diagram of a cost map calculated by the data processing circuit in FIG. 9 in an embodiment of the present invention; [FIG. 11] shows an example diagram of calculating the target splice line by the splice line calculation circuit in FIG. 9 in an embodiment of the present invention; [ Fig. 12 ] shows another example diagram of calculating the target splice line by the splice line calculation circuit in Fig. 9 in an embodiment of the present invention; [ Fig. 13 ] shows a schematic diagram of a third block of an image splicing device in an embodiment of the present invention; [FIG. 14] shows a schematic diagram of a motion area detected by the motion detection unit in FIG. 1 in an embodiment of the present invention; [ FIG. 15 ] shows a block diagram of an image processing chip in an embodiment of the present invention; and [ FIG. 16 ] is a schematic flowchart showing an image stitching method according to an embodiment of the present invention.

100:影像拼接裝置 110:移動偵測單元 120:確定單元 130:拼接單元 100: Image stitching device 110: Motion detection unit 120: Determine unit 130: Splicing unit

Claims (11)

一種影像拼接裝置,包含:一移動偵測單元,對一當下時刻的一第一影像和一第二影像間的一重疊區域進行移動偵測,得到該重疊區域中具有一移動物體的一移動區域;一確定單元,以避開該移動區域為約束條件,於該重疊區域中計算一目標拼接線;一拼接單元,根據該目標拼接線拼接該第一影像以及該第二影像,得到一拼接影像;一差異計算單元,針對該重疊區域計算得到該第一影像和該第二影像之間的至少一差異矩陣;以及一位移限制單元,根據該確定單元對在該當下時刻之前的一先前時刻計算得到的一先前拼接線產生一位移限制資料;其中,該確定單元以避開該移動區域為約束條件,根據該至少一差異矩陣及該位移限制資料計算該目標拼接線。 An image splicing device, comprising: a motion detection unit for performing motion detection on an overlapping area between a first image and a second image at a current moment, to obtain a moving area with a moving object in the overlapping area ; A determination unit, with avoiding this moving area as a constraint condition, calculates a target splicing line in this overlapping area; A splicing unit, splicing this first image and this second image according to this target splicing line, obtains a splicing image ; A difference calculating unit, for this overlapping area, calculates and obtains at least one difference matrix between the first image and the second image; A displacement limit data is generated from a previous splicing line obtained; wherein, the determining unit calculates the target splicing line according to the at least one difference matrix and the displacement limiting data with avoiding the moving area as a constraint. 如請求項1所述之影像拼接裝置,其中該差異計算單元按照多種不同的差異計算方式,針對該重疊區域計算得到該第一影像和該第二影像之間不同類型的多個該差異矩陣。 The image splicing device according to claim 1, wherein the difference calculation unit calculates a plurality of the difference matrices of different types between the first image and the second image for the overlapping area according to a variety of different difference calculation methods. 如請求項1所述之影像拼接裝置,其中該差異計算單元包含:一色彩差異計算電路,針對該重疊區域計算得到該第一影像和該第二影像之間的一色彩差異矩陣; 一邊緣偵測器,針對該重疊區域分別對該第一影像和該第二影像進行邊緣偵測,得到對應該第一影像的一第一邊緣偵測結果,及對應該第二影像的一第二邊緣偵測結果;以及一邊緣差異計算電路,根據該第一邊緣偵測結果和該第二邊緣偵測結果進行差異計算,得到一邊緣差異矩陣。 The image splicing device as claimed in claim 1, wherein the difference calculation unit comprises: a color difference calculation circuit, which calculates a color difference matrix between the first image and the second image for the overlapping area; an edge detector for performing edge detection on the first image and the second image respectively with respect to the overlapping area to obtain a first edge detection result corresponding to the first image and a first edge detection result corresponding to the second image two edge detection results; and an edge difference calculation circuit, which performs difference calculation according to the first edge detection result and the second edge detection result to obtain an edge difference matrix. 如請求項3所述之影像拼接裝置,其中該邊緣差異矩陣和該色彩差異矩陣的形狀相同。 The image splicing device of claim 3, wherein the edge difference matrix and the color difference matrix have the same shape. 如請求項3所述之影像拼接裝置,其中該確定單元包含:一資料處理電路,根據該色彩差異矩陣、該邊緣差異矩陣及該移動區域,得到一成本圖;以及一拼接線計算電路,根據該成本圖計算該目標拼接線。 The image splicing device as claimed in claim 3, wherein the determining unit comprises: a data processing circuit, which obtains a cost map according to the color difference matrix, the edge difference matrix and the moving area; and a splicing line calculation circuit, according to The costmap computes the target splice line. 如請求項5所述之影像拼接裝置,其中該拼接線計算電路延著一累加方向以一最小化累加值為約束條件對該成本圖的多個元素與其鄰排的相鄰元素中的一元素進行累加,以得到該目標拼接線。 The image splicing device as claimed in claim 5, wherein the splicing line calculation circuit is along an accumulation direction with a minimum accumulation value as a constraint condition for an element of the plurality of elements of the cost map and its adjacent elements in its adjacent rows Accumulate to get the target splice line. 如請求項5所述之影像拼接裝置,其中該拼接線計算電路延著一累加方向以一最小化累加值為約束條件對該成本圖的多個元素與其同排及鄰排的相鄰元素中的一元素進行累加,以得到該目標拼接線。 The image splicing device as claimed in claim 5, wherein the splicing line calculation circuit extends along an accumulation direction with a minimum accumulation value as a constraint condition among the plurality of elements of the cost map and its adjacent elements in the same row and adjacent rows One element of is accumulated to obtain the target splice line. 如請求項1所述之影像拼接裝置,其中該移動偵測單元針對該重疊區域依據該第一影像所對應的一先前第一影像對該第一影像進行移動偵測,得到一第一候選移動區域,並針對該重疊區域依據該第二影像所對應的一先前第二影像對該第二影像進行移動偵測,得到一第二候選移動區域,及融合該第一候選移動區域和該第二候選移動區域得到該移動區域。 The image splicing device according to claim 1, wherein the motion detection unit performs motion detection on the overlapping area according to a previous first image corresponding to the first image to obtain a first candidate motion area, and perform motion detection on the second image according to a previous second image corresponding to the second image to obtain a second candidate moving area, and fuse the first candidate moving area and the second moving area The candidate moving area gets the moving area. 一種影像處理晶片,包含:一介面單元,獲取一當下時刻的一第一影像及一第二影像;一區域確定單元,確定該第一影像與該第二影像間的一重疊區域;以及一影像拼接裝置,根據該重疊區域拼接該第一影像以及該第二影像得到一拼接影像,該影像拼接裝置包含:一移動偵測單元,對該第一影像和該第二影像的重疊區域進行移動偵測,得到該重疊區域中具有一移動物體的一移動區域;一確定單元,以避開該移動區域為約束條件,計算一目標拼接線;一拼接單元,根據該目標拼接線拼接該第一影像以及該第二影像,得到一拼接影像;一差異計算單元,針對該重疊區域計算得到該第一影像和該第二影像之間的至少一差異矩陣;以及一位移限制單元,根據該確定單元對在該當下時刻之前的一先前時刻計算得到的一先前拼接線產生一位移限制資料;其中,該確定單元以避開該移動區域為約束條件,根據該至少一差異矩陣及該位移限制資料計算該目標拼接線。 An image processing chip, comprising: an interface unit for acquiring a first image and a second image at a current moment; an area determination unit for determining an overlapping area between the first image and the second image; and an image A splicing device for splicing the first image and the second image according to the overlapping area to obtain a splicing image, the image splicing device comprising: a motion detection unit for performing motion detection on the overlapping area of the first image and the second image A moving area with a moving object in the overlapping area is obtained; a determining unit, taking avoiding the moving area as a constraint, calculates a target splicing line; a splicing unit, splicing the first image according to the target splicing line and the second image to obtain a spliced image; a difference calculation unit to calculate at least one difference matrix between the first image and the second image for the overlapping area; A previous splice line calculated at a previous time before the current time generates a displacement limit data; wherein, the determining unit calculates the displacement limit data according to the at least one difference matrix and the displacement limit data with avoiding the moving area as a constraint condition Target splice line. 如請求項9所述之影像處理晶片,其中該介面單元從一第一監控攝影機獲取該第一影像,及從一第二監控攝影機獲取該第二影像。 The image processing chip of claim 9, wherein the interface unit acquires the first image from a first surveillance camera, and acquires the second image from a second surveillance camera. 一種影像拼接方法,包含:對一當下時刻的一第一影像和一第二影像間的重疊區域進行移動偵測,得到該重疊區域中具有一移動物體的一移動區域;針對該重疊區域計算得到該第一影像和該第二影像之間的至少一差異矩陣;根據對在該當下時刻之前的一先前時刻計算得到的一先前拼接線產生一位移限制資料;以避開該移動區域為約束條件,根據該至少一差異矩陣以及該位移限制資料計算一目標拼接線;以及根據該目標拼接線拼接該第一影像以及該第二影像,得到一拼接影像。 An image splicing method, comprising: performing motion detection on an overlapping area between a first image and a second image at a current moment to obtain a moving area with a moving object in the overlapping area; calculating the overlapping area to obtain at least one difference matrix between the first image and the second image; a displacement restriction data is generated according to a previous splicing line calculated at a previous time before the current time; the constraint condition is to avoid the moving area , calculating a target splicing line according to the at least one difference matrix and the displacement limit data; and splicing the first image and the second image according to the target splicing line to obtain a spliced image.
TW109139553A 2020-11-12 2020-11-12 Image stitching apparatus, image processing chip and image stitching method TWI766434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109139553A TWI766434B (en) 2020-11-12 2020-11-12 Image stitching apparatus, image processing chip and image stitching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109139553A TWI766434B (en) 2020-11-12 2020-11-12 Image stitching apparatus, image processing chip and image stitching method

Publications (2)

Publication Number Publication Date
TW202219892A TW202219892A (en) 2022-05-16
TWI766434B true TWI766434B (en) 2022-06-01

Family

ID=82558717

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109139553A TWI766434B (en) 2020-11-12 2020-11-12 Image stitching apparatus, image processing chip and image stitching method

Country Status (1)

Country Link
TW (1) TWI766434B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859433A (en) * 2009-04-10 2010-10-13 日电(中国)有限公司 Image mosaic device and method
CN104217414A (en) * 2014-09-10 2014-12-17 中科九度(北京)空间信息技术有限责任公司 Method and device for extracting mosaicing line for image mosaic
US20200101899A1 (en) * 2013-02-27 2020-04-02 Magna Electronics Inc. Method for stitching images captured by multiple vehicular cameras
TW202016880A (en) * 2018-10-24 2020-05-01 緯創資通股份有限公司 Image stitching processing method and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859433A (en) * 2009-04-10 2010-10-13 日电(中国)有限公司 Image mosaic device and method
US20200101899A1 (en) * 2013-02-27 2020-04-02 Magna Electronics Inc. Method for stitching images captured by multiple vehicular cameras
CN104217414A (en) * 2014-09-10 2014-12-17 中科九度(北京)空间信息技术有限责任公司 Method and device for extracting mosaicing line for image mosaic
TW202016880A (en) * 2018-10-24 2020-05-01 緯創資通股份有限公司 Image stitching processing method and system thereof

Also Published As

Publication number Publication date
TW202219892A (en) 2022-05-16

Similar Documents

Publication Publication Date Title
CN115022606B (en) Projection equipment and obstacle avoidance projection method
KR102126513B1 (en) Apparatus and method for determining the pose of the camera
KR101862889B1 (en) Autofocus for stereoscopic camera
US20180218485A1 (en) Method and apparatus for fusing plurality of depth images
US8798387B2 (en) Image processing device, image processing method, and program for image processing
JP6701930B2 (en) Authoring device, authoring method, and authoring program
JP2007278845A (en) Image processing apparatus and its processing method
KR20110059506A (en) System and method for obtaining camera parameters from multiple images and computer program products thereof
JPWO2018163843A1 (en) Imaging device, imaging method, image processing device, and image processing method
US11017587B2 (en) Image generation method and image generation device
US8774276B2 (en) Image processing method for determining motion vectors of interpolated picture and related apparatus
JP6173218B2 (en) Multi-view rendering apparatus and method using background pixel expansion and background-first patch matching
US8482619B2 (en) Image processing method, image processing program, image processing device, and imaging device for image stabilization
JP4296617B2 (en) Image processing apparatus, image processing method, and recording medium
CN112200727B (en) Image stitching device, image processing chip, and image stitching method
US20080226159A1 (en) Method and System For Calculating Depth Information of Object in Image
JP4394487B2 (en) Stereo image processing device
JP2001243478A (en) Target body tracing device
TWI766434B (en) Image stitching apparatus, image processing chip and image stitching method
JPH10240934A (en) Object extractor
US20130057701A1 (en) Device and method for image processing
US9380285B2 (en) Stereo image processing method, stereo image processing device and display device
KR101219126B1 (en) Control Method And System According to Image Motion Information Estimated with Image Characteristic
JPH10289315A (en) Parallax calculation device and method, and distance calculation device and method
EP2657909B1 (en) Method and image processing device for determining disparity