TWI526987B - Method for real-time simultaneous image stitching based on visual content maximization - Google Patents
Method for real-time simultaneous image stitching based on visual content maximization Download PDFInfo
- Publication number
- TWI526987B TWI526987B TW103118170A TW103118170A TWI526987B TW I526987 B TWI526987 B TW I526987B TW 103118170 A TW103118170 A TW 103118170A TW 103118170 A TW103118170 A TW 103118170A TW I526987 B TWI526987 B TW I526987B
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- input image
- input
- color
- images
- Prior art date
Links
Description
本發明係有關於一種即時影像拼接方法,尤其是基於涵蓋視覺內容最大化之即時影像拼接方法,挑選出連續擷取影像序列中較為重要且不重複的較少畫面以進行拼接處理,可涵蓋觀測較廣大的場景視覺資訊,進而達到即時且品質較好的拼接結果。 The invention relates to an instant image splicing method, in particular to an instant image splicing method that covers the maximization of visual content, and selects less important images that are more important and not repeated in the continuous captured image sequence for splicing processing, and can cover observations. A wider range of visual information for the scene, in order to achieve instant and good quality stitching results.
影像拼接(Image Stitching)是相當重要的影像處理技術,普遍應用於將相似的影像結合成單一影像,用以顯示整個場景的整體影像,而非只是其中某一小部分的局部影像。例如,利用攝影機或數位相機所拍攝的360度環場全景攝影,其中連續拍攝的影像需要適當的拼接處理,去除後續影像中重疊的部分,或相同、類似的部分,並保留其中差異的部分,進而縫合而延伸影像的可顯示範圍。 Image Stitching is a very important image processing technology. It is commonly used to combine similar images into a single image to display the entire image of the entire scene, rather than just a small part of the partial image. For example, a 360-degree panoramic photography taken with a camera or a digital camera, where successively captured images require appropriate stitching, removing overlapping portions of the subsequent images, or the same, similar portions, and retaining the differences, The stitching is then stitched to extend the displayable range of the image.
不過,當攝影機受到外力干擾而震動或晃動時,所拍攝的影像會模糊,雖然實質上場景的影像差異不大,但會被處理系統誤認為與前、後影像的差異性變大,導致拼接時進行不需要的運算,浪費可貴的運算資源,降低處理速度及效率,還會影響影像品質,造成影像不清晰。 However, when the camera is shaken or shaken by external force, the captured image will be blurred. Although the image difference of the scene is not large, it will be mistaken by the processing system as the difference between the front and back images becomes larger, resulting in stitching. Perform unnecessary calculations, waste valuable computing resources, reduce processing speed and efficiency, and affect image quality, resulting in unclear images.
此外,隨著影像感測器的解析度增加,使得單一影像的資料量相當龐大,對於需處理連續影像拼接的影像處理,造成運算上相當大的挑戰,尤其是即時性的應用領域。 In addition, as the resolution of the image sensor increases, the amount of data of a single image is quite large, which causes considerable computational challenges for image processing that requires continuous image stitching, especially for instant applications.
因此,非常需要一種創新的即時影像拼接方法,先剔除模糊影像以避免影響後續影像處理,並篩選出相似影像,以減少影像數目,不僅可有效提昇拼接影像的品質,降低累積誤差,並能加快處理速度,改善整體影像拼接的處理效率,藉以解決上述習用技術的問題。 Therefore, there is a great need for an innovative method for instant image stitching, which first removes the blurred image to avoid affecting subsequent image processing, and filters out similar images to reduce the number of images, which not only can effectively improve the quality of the stitched image, reduce the cumulative error, and can speed up The processing speed improves the processing efficiency of the overall image splicing, thereby solving the problems of the above-mentioned conventional techniques.
本發明之主要目的在於提供一種基於涵蓋視覺內容最大化之即時影像拼接(Real-time Image Stictching)方法,主要包括輸入影像步驟、決定模糊影像步驟、決定色彩相似性步驟、尋找縫合線步驟、特徵點匹配步驟、計算單應性轉移矩陣步驟及拼接影像步驟,用以針對連續的輸入影像進行拼接及定位處理,以涵蓋觀測較廣大的場景視覺資訊,進而達到即時且品質較好的拼接結果。 The main object of the present invention is to provide a real-time image splicing method based on maximizing visual content, which mainly includes an input image step, a step of determining a blurred image, a step of determining a color similarity, a step of finding a suture, and a feature. The point matching step, the calculation of the homography transfer matrix step and the stitching image step are used for splicing and locating the continuous input image to cover the visual information of the wider scene, thereby achieving an instant and good quality splicing result.
具體而言,在輸入影像步驟中,主要是將一連串的連續影像輸入至系統中,比如由微處理器、中央處理器、個人電腦、筆記型電腦、平板電腦、手機所實現的系統,而連續影像可由攝影機、數位像機、平板電腦、手機經拍攝而產生,或由記憶體媒介而輸入,比如硬碟或光碟。 Specifically, in the input image step, a series of continuous images are mainly input into the system, such as a system implemented by a microprocessor, a central processing unit, a personal computer, a notebook computer, a tablet computer, a mobile phone, and continuously. Images can be generated by shooting from a camera, digital camera, tablet, or mobile phone, or input from a memory medium such as a hard disk or a compact disc.
接著進入決定模糊影像步驟,利用影像在不同尺寸下的邊緣量差異,或利用描述影像區域邊緣量的多寡,藉以決定是否為模糊影像,比如拍攝過程中,因突然攝影機的晃動或目標影像的速度改變而產生的模糊影像,同時如果是模糊影像,則直接剔除,藉以避免模糊影像影響後續的拼接處理而影像品質。 Then enter the step of determining the blurred image, using the difference of the edge amount of the image in different sizes, or using the amount of the edge of the image area to determine whether it is a blurred image, such as the sudden shaking of the camera or the speed of the target image during the shooting. The blurred image generated by the change, and if it is a blurred image, is directly removed, so as to avoid the blurred image affecting the subsequent stitching processing and image quality.
此外,為了減少運算時間,達到即時拼接的功效,同時有能維持拼接影像的品質,需要針對所有的連續影像,挑選出具有重要且最大量豐富資訊的影像,以進行拼接。因此,必需決定影像之間的相似性,當作參考數據。 In addition, in order to reduce the computing time, achieve the effect of instant splicing, and at the same time maintain the quality of the spliced image, it is necessary to select images with important and maximum amount of rich information for all continuous images for splicing. Therefore, it is necessary to determine the similarity between images as reference data.
在決定色彩相似性步驟中,先將輸入影像由RGB色彩空間轉換至HSV(Hue-Saturation-Value,色相-飽合度-亮度)色彩空間,得到輸入影像的色彩分佈直方圖(Color Histogram),再利用巴氏距離(Bhattacharyya distance)以計算前後二影像之間的色彩相似性,依據色彩相似性以決定目前的輸入影像相對於前一輸入影像是否為相似影像,而如果是相似影像,則刪除目前的輸入影像。因此,可減少拼接影像的數目,降低拼接的累積誤差,同時還能減少運算時間,進而加快系統的運算速度,改善整體效率。 In the step of determining the color similarity, the input image is first converted from the RGB color space to the HSV (Hue-Saturation-Value) color space to obtain a color histogram of the input image, and then The Bhattacharyya distance is used to calculate the color similarity between the two images before and after, and the color similarity is used to determine whether the current input image is a similar image with respect to the previous input image, and if it is a similar image, the current image is deleted. Input image. Therefore, the number of stitched images can be reduced, the cumulative error of the stitching can be reduced, and the calculation time can be reduced, thereby speeding up the operation speed of the system and improving the overall efficiency.
在此,為去除拼接影像間重疊區域的一致處所導致的混色殘影,以提升拼接影像的品質,可尋找拼接影像間的縫合線,進而利用影像 中的縫合線進行影像的切割及混色。 Here, in order to remove the color mixture afterimage caused by the coincidence of the overlapping areas between the stitched images, to improve the quality of the stitched image, the stitching between the stitched images can be searched for, and the image is utilized. The suture in the image is used for image cutting and color mixing.
因此,先進入尋找縫合線步驟,主要是依據影像中顏色或色彩的差異,亦即前後二影像中重疊區域的資訊豐富度,並利用預設的理想縫合線路徑,比如多個等間隔的垂直線或水平線,藉以尋找影像中的縫合線,保留具有較多影像觀測內容資訊的影像。 Therefore, the first step to find the suture is mainly based on the difference in color or color in the image, that is, the information richness of the overlapping regions in the front and rear images, and using the preset ideal suture path, such as a plurality of equally spaced verticals. A line or horizontal line to find stitches in an image, and to retain images with more information about the content of the image.
接著,在特徵點匹配步驟中,使用光流估測法(Optical Flow Estimation),並搭配特徵點(Feature Point)平均散佈的方式,以進行影像特徵點的匹配及追蹤,藉以獲得至少一特徵點,並在計算單應性轉移矩陣步驟中,利用特徵點以計算單應性轉移矩陣。最後,進入拼接影像步驟,依據單應性轉移矩陣,即時將每個輸入影像,定位於已拼接的影像上,進而完成整個影像拼接。 Then, in the feature point matching step, an optical flow estimation (Optical Flow Estimation) is used, and the feature points are uniformly distributed to perform matching and tracking of the image feature points, thereby obtaining at least one feature point. And in the step of calculating the homography transfer matrix, the feature points are utilized to calculate the homography transfer matrix. Finally, the step of splicing the image is performed, and according to the homography transfer matrix, each input image is instantly positioned on the spliced image, thereby completing the entire image splicing.
由於本發明方法先剔除模糊的影像,可避免影響後續影像處理的精確度,免除不必要的干擾,同時藉篩選出相似影像,以減少影像數目,使得處理速度加快,有效提昇拼接影像的品質並改善整體影像拼接的處理效率。 Since the method of the invention first eliminates the blurred image, the accuracy of the subsequent image processing can be avoided, the unnecessary interference is avoided, and the similar image is filtered to reduce the number of images, so that the processing speed is accelerated, and the quality of the stitched image is effectively improved. Improve the processing efficiency of the overall image stitching.
S10~S70‧‧‧步驟 S10~S70‧‧‧Steps
第一圖顯示依據本發明實施例基於涵蓋視覺內容最大化之即時影像拼接方法的操作流程示意圖。 The first figure shows a schematic diagram of an operational flow based on an instant image stitching method that covers visual content maximization in accordance with an embodiment of the present invention.
以下配合圖示及元件符號對本發明之實施方式做更詳細的說明,俾使熟習該項技藝者在研讀本說明書後能據以實施。 The embodiments of the present invention will be described in more detail below with reference to the drawings and the reference numerals, which can be implemented by those skilled in the art after having studied this specification.
參閱第一圖,依據本發明實施例基於涵蓋視覺內容最大化之即時影像拼接方法的操作流程示意圖。如第一圖所示,本發明基於涵蓋視覺內容最大化之即時影像拼接方法主要是包括依序進行的輸入影像步驟S10、決定模糊影像步驟S20、決定色彩相似性步驟S30、尋找縫合線步驟S40、特徵點匹配步驟S50、計算單應性轉移矩陣步驟S60及拼接影像步驟S70,用以針對一連串連續的輸入影像,進行影像拼接及定位處理,以涵蓋觀測較廣大的場景視覺資訊,進而達到即時且品質較好的拼接結果。 Referring to the first figure, a schematic diagram of an operation flow based on a method for realizing instant image mosaic covering visual content maximization according to an embodiment of the present invention. As shown in the first figure, the present invention is based on an image mosaic method for maximizing visual content, which mainly includes an input image step S10, a fuzzy image step S20, a color similarity step S30, and a suture finding step S40. The feature point matching step S50, the calculation of the homography transfer matrix step S60, and the stitching image step S70 are performed for image stitching and positioning processing for a series of consecutive input images to cover the observation of a relatively large scene visual information, thereby achieving instant And the quality of the splicing results.
首先,本發明即時影像拼接方法的是從步驟S10開始,將輸 入影像輸入至系統中,比如由微處理器、中央處理器、個人電腦、筆記型電腦、平板電腦、手機所實現的系統,而連續影像可由攝影機、數位像機、平板電腦、手機經拍攝而產生,或由記憶體媒介而輸入。 First, the instant image stitching method of the present invention starts from step S10 and will lose The input image is input into the system, such as a system implemented by a microprocessor, a central processing unit, a personal computer, a notebook computer, a tablet computer, a mobile phone, and the continuous image can be photographed by a camera, a digital camera, a tablet computer, a mobile phone. Generated, or entered by a memory medium.
接著,進入決定模糊影像步驟S20,以避免模糊影像影響後續的拼接處理而影像品質,主要是利用輸入影像在不同尺寸下的邊緣量差異,或利用描述輸入影像的區域邊緣量,以決定輸入影像是否為模糊影像。如果輸入影像是模糊影像,則剔除輸入影像,不進行後續步驟,並回到輸入影像步驟S10。如果輸入影像不是模糊影像,則進入決定色彩相似性步驟S30,用以挑選出具有重要且最大量豐富資訊的輸入影像,以進行後續處理,可減少影像數目及運算時間,加快處理速度,達到即時拼接的功效。 Then, the step of determining the blurred image step S20 is performed to prevent the blurred image from affecting the subsequent stitching processing and the image quality is mainly by using the difference of the edge amount of the input image in different sizes, or by using the amount of the edge of the area of the input image to determine the input image. Whether it is a blurred image. If the input image is a blurred image, the input image is rejected, the subsequent steps are not performed, and the input image is returned to step S10. If the input image is not a blurred image, step S30 is determined to select an input image having an important and maximum amount of rich information for subsequent processing, which can reduce the number of images and the operation time, and speed up the processing to achieve an instant. The effect of splicing.
在決定色彩相似性步驟S30中,先將輸入影像由RGB色彩空間轉換至HSV(Hue-Saturation-Value,色相-飽合度-亮度)色彩空間,因而可得到輸入影像的色彩分佈直方圖(Color Histogram),再利用巴氏距離(Bhattacharyya distance)以計算前後二影像之間的色彩相似性,而依據色彩相似性以決定目前的輸入影像相對於前一輸入影像是否為相似影像。如果是相似影像,則刪除目前的輸入影像,並回到輸入影像步驟S10,可減少拼接影像的數目,降低拼接的累積誤差,同時還能減少運算時間,進而加快系統的運算速度,改善整體效率。 In the determining color similarity step S30, the input image is first converted from the RGB color space to the HSV (Hue-Saturation-Value) color space, so that the color distribution histogram of the input image can be obtained (Color Histogram) Then, the Bhattacharyya distance is used to calculate the color similarity between the two images before and after, and the color similarity is used to determine whether the current input image is a similar image with respect to the previous input image. If it is a similar image, deleting the current input image and returning to the input image step S10 can reduce the number of stitched images, reduce the cumulative error of the stitching, and reduce the calculation time, thereby speeding up the operation speed of the system and improving the overall efficiency. .
在此,為去除拼接影像間重疊區域的一致處所導致的混色殘影,以提升拼接影像的品質,可尋找拼接影像間的縫合線,進而利用影像中的縫合線進行影像的切割及混色。 Here, in order to remove the color-mixing residual image caused by the coincidence of the overlapping regions between the stitched images, to improve the quality of the stitched image, the stitching between the stitched images can be searched, and the stitching and color mixing of the image can be performed by using the stitching in the image.
在尋找縫合線步驟S40中,依據影像中的顏色或色彩差異,亦即前後二影像中重疊區域的資訊豐富度,並利用預設的理想縫合線路徑,比如多個等間隔的垂直線及/或水平線,藉以尋找影像中的縫合線,保留具有較多影像觀測內容資訊的影像。 In the step of finding the suture step S40, according to the color or color difference in the image, that is, the information richness of the overlapping regions in the front and rear images, and using the preset ideal suture path, such as a plurality of equally spaced vertical lines and / Or a horizontal line to find the stitches in the image, and to retain the image with more information about the image observation.
接著進入特徵點匹配步驟S50,使用光流估測法(Optical Flow Estimation),並搭配特徵點(Feature Point)平均散佈的方式,以進行影像特徵點的匹配及追蹤,藉以獲得至少一特徵點。然後在計算單應性轉移矩陣步驟S60中,利用所獲得的特徵點,計算單應性轉移矩陣(Homography Matrix)。 最後,執行拼接影像步驟S70,依據單應性轉移矩陣,即時將每個輸入影像定位於已拼接的影像上,進而完成影像拼接,並回到輸入影像步驟S10。 Then, the feature point matching step S50 is entered, and the optical flow estimation (Optical Flow Estimation) is used, and the feature points are uniformly distributed to perform matching and tracking of the image feature points to obtain at least one feature point. Then, in the calculation of the homography transfer matrix step S60, the homography transfer matrix (Homography Matrix) is calculated using the obtained feature points. Finally, the splicing image step S70 is executed, and each input image is instantly positioned on the spliced image according to the homography transfer matrix, thereby completing image splicing and returning to the input image step S10.
本發明的影像拼接方法非常適合應用於手機、相機等具影像功能的相關電子產品。 The image splicing method of the invention is very suitable for use in related electronic products with image functions such as mobile phones and cameras.
綜上所述,本發明的主要特點在於先剔除模糊的影像,可避免影響後續影像處理的精確度,免除不必要的干擾,同時剔除相似影像,以減少影像數目,並挑選出連續擷取影像序列中較為重要且不重複的較少畫面以進行拼接處理,可涵蓋觀測較廣大的場景視覺資訊,使得處理速度加快,降低累積誤差,有效提昇拼接影像的品質並改善整體影像拼接的處理效率。 In summary, the main feature of the present invention is that the blurred image is first removed, which can avoid affecting the accuracy of subsequent image processing, avoid unnecessary interference, and eliminate similar images to reduce the number of images and select continuous captured images. The less important images in the sequence are not spliced for splicing, which can cover the observation of a large amount of scene visual information, which makes the processing speed faster, reduces the accumulated error, effectively improves the quality of the spliced image and improves the processing efficiency of the overall image splicing.
以上所述者僅為用以解釋本發明之較佳實施例,並非企圖據以對本發明做任何形式上之限制,是以,凡有在相同之發明精神下所作有關本發明之任何修飾或變更,皆仍應包括在本發明意圖保護之範疇。 The above is only a preferred embodiment for explaining the present invention, and is not intended to limit the present invention in any way, and any modifications or alterations to the present invention made in the spirit of the same invention. All should still be included in the scope of the intention of the present invention.
S10~S70‧‧‧步驟 S10~S70‧‧‧Steps
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW103118170A TWI526987B (en) | 2014-05-23 | 2014-05-23 | Method for real-time simultaneous image stitching based on visual content maximization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW103118170A TWI526987B (en) | 2014-05-23 | 2014-05-23 | Method for real-time simultaneous image stitching based on visual content maximization |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201545122A TW201545122A (en) | 2015-12-01 |
TWI526987B true TWI526987B (en) | 2016-03-21 |
Family
ID=55407151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW103118170A TWI526987B (en) | 2014-05-23 | 2014-05-23 | Method for real-time simultaneous image stitching based on visual content maximization |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI526987B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111510370B (en) * | 2020-04-09 | 2023-09-05 | 京东方科技集团股份有限公司 | Content processing method and device, computer medium and electronic equipment |
-
2014
- 2014-05-23 TW TW103118170A patent/TWI526987B/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
TW201545122A (en) | 2015-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3457683B1 (en) | Dynamic generation of image of a scene based on removal of undesired object present in the scene | |
US20150154776A1 (en) | Image splicing method and apparatus | |
CN110300264B (en) | Image processing method, image processing device, mobile terminal and storage medium | |
CN109474780B (en) | Method and device for image processing | |
US11538175B2 (en) | Method and apparatus for detecting subject, electronic device, and computer readable storage medium | |
CN109961078B (en) | Image matching and splicing method, device, system and readable medium | |
JP5246078B2 (en) | Object location program and camera | |
US20190385285A1 (en) | Image Processing Method and Device | |
CN110796600B (en) | Image super-resolution reconstruction method, image super-resolution reconstruction device and electronic equipment | |
CN111915483B (en) | Image stitching method, device, computer equipment and storage medium | |
US20150319373A1 (en) | Method and device to compose an image by eliminating one or more moving objects | |
CN104486552A (en) | Method and electronic device for obtaining images | |
JP7223079B2 (en) | IMAGE PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND IMAGING APPARATUS | |
WO2019134505A1 (en) | Method for blurring image, storage medium, and electronic apparatus | |
CN107909569B (en) | Screen-patterned detection method, screen-patterned detection device and electronic equipment | |
CN110796041B (en) | Principal identification method and apparatus, electronic device, and computer-readable storage medium | |
TWI701639B (en) | Method of identifying foreground object in image and electronic device using the same | |
CN108198189B (en) | Picture definition obtaining method and device, storage medium and electronic equipment | |
CN114390201A (en) | Focusing method and device thereof | |
CN110266926B (en) | Image processing method, image processing device, mobile terminal and storage medium | |
TWI526987B (en) | Method for real-time simultaneous image stitching based on visual content maximization | |
CN111201773A (en) | Photographing method and device, mobile terminal and computer readable storage medium | |
CN110177216B (en) | Image processing method, image processing device, mobile terminal and storage medium | |
WO2018119787A1 (en) | Demosaicing method and device | |
CN112598571B (en) | Image scaling method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |