TWI658429B - Image combination method and image combination system - Google Patents
Image combination method and image combination system Download PDFInfo
- Publication number
- TWI658429B TWI658429B TW106130558A TW106130558A TWI658429B TW I658429 B TWI658429 B TW I658429B TW 106130558 A TW106130558 A TW 106130558A TW 106130558 A TW106130558 A TW 106130558A TW I658429 B TWI658429 B TW I658429B
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- electronic device
- resolution
- ratio
- vertical
- Prior art date
Links
Landscapes
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Controls And Circuits For Display Device (AREA)
- Studio Devices (AREA)
Abstract
本發明提出一種影像結合方法與影像結合系統,影像結合方法包括:藉由第一電子裝置拍攝第一影像,並從第二電子裝置接收物體影像,其中第一電子裝置具有第一橫向解析度及第一縱向解析度且第二電子裝置具有第二橫向解析度及第二縱向解析度;若第二縱向解析度與第一縱向解析度的第一縱向比值小於第二橫向解析度與第一橫向解析度的第一橫向比值,則第一電子裝置根據第一縱向比值縮放物體影像並將縮放後的物體影像結合第一影像顯示在第一電子裝置。The invention provides an image combining method and an image combining system. The image combining method includes: shooting a first image by a first electronic device, and receiving an image of an object from a second electronic device, wherein the first electronic device has a first lateral resolution and The first vertical resolution and the second electronic device have a second horizontal resolution and a second vertical resolution; if the first vertical ratio of the second vertical resolution to the first vertical resolution is smaller than the second horizontal resolution and the first horizontal resolution The first horizontal ratio of resolution, the first electronic device scales the object image according to the first vertical ratio and displays the scaled object image in combination with the first image on the first electronic device.
Description
本發明是有關於一種影像結合方法與影像結合系統,且特別是有關於一種能利用兩個電子裝置在不同地點即時結合各自拍攝的影像的影像結合方法與影像結合系統。 The invention relates to an image combining method and an image combining system, and in particular to an image combining method and an image combining system capable of using two electronic devices to instantly combine respective captured images at different locations.
在虛擬實境(Virtual Reality,VR)及擴增實境(Augmented Reality,AR)都已經有不少應用的現在,人們可以享受到各種身歷其境的體驗,但主要的應用仍然都環繞在單一的個人上。當人們出遊看到美麗景色但朋友卻不在身邊時,只能透過影像後製的方式修改照片使得自己與朋友都能呈現在美麗景色中,這造成使用者在拍照功能上的受限。 There are already many applications in Virtual Reality (VR) and Augmented Reality (AR). Now people can enjoy various immersive experiences, but the main applications are still around a single Personally. When people travel to see the beautiful scenery but their friends are not around, they can only modify the photos through the post-production method of the picture so that they and their friends can be presented in the beautiful scenery, which limits the user's ability to take pictures.
有鑑於此,本發明提供一種影像結合方法與影像結合系統,讓兩個位於不同地點的電子裝置能將兩邊的影像即時結合並作出虛擬互動,以立即拍攝出使用者想要的照片。 In view of this, the present invention provides an image combining method and an image combining system, so that two electronic devices located at different locations can combine the images on both sides in real time and make a virtual interaction, so as to immediately take a picture desired by the user.
本發明的提出一種影像結合方法,包括:藉由第一電子裝置拍攝第一影像,並從第二電子裝置接收物體影像,其中第一電子裝置具有第一橫向解析度及第一縱向解析度且第二電子裝置具有第二橫向解析度及第二縱向解析度;若第二縱向解析度與第一縱向解析度的第一縱向比值小於第二橫向解析度與第一橫向解析度的第一橫向比值,則第一電子裝置根據第一縱向比值縮放物體影像並將縮放後的物體影像結合第一影像顯示在第一電子裝置;以及若第二縱向解析度與第一縱向解析度的第一縱向比值大於第二橫向解析度與第一橫向解析度的第一橫向比值,則第一電子裝置根據第一橫向比值縮放物體影像並將縮放後的物體影像結合第一影像顯示在第一電子裝置。 The invention provides an image combining method, which comprises: shooting a first image by a first electronic device, and receiving an image of an object from a second electronic device, wherein the first electronic device has a first horizontal resolution and a first vertical resolution, and The second electronic device has a second horizontal resolution and a second vertical resolution; if the first longitudinal ratio of the second vertical resolution to the first vertical resolution is smaller than the first horizontal resolution of the second horizontal resolution and the first horizontal resolution Ratio, the first electronic device scales the object image according to the first vertical ratio and displays the scaled object image in combination with the first image on the first electronic device; and if the second vertical resolution and the first vertical resolution of the first vertical resolution If the ratio is greater than the first horizontal ratio of the second horizontal resolution to the first horizontal resolution, the first electronic device scales the object image according to the first horizontal ratio and displays the scaled object image in combination with the first image on the first electronic device.
在本發明的一實施例中,上述影像結合方法更包括:藉由第一電子裝置將縮放後的物體影像的第二中心點定位於第一影像的第一中心點上;藉由第一電子裝置接收拖曳操作來拖曳物體影像以產生物體位移量;以及藉由第一電子裝置根據第一中心點與物體位移量將縮放後的物體影像顯示在第一電子裝置。 In an embodiment of the present invention, the image combining method further includes: positioning the second center point of the zoomed object image on the first center point of the first image by the first electronic device; The device receives a drag operation to drag the object image to generate an object displacement amount; and the first electronic device displays the scaled object image on the first electronic device according to the first center point and the object displacement amount.
在本發明的一實施例中,上述第一中心點為第一影像的橫軸及縱軸的中心點,且第二中心點為縮放後的物體影像的橫軸及縱軸的中心點。 In an embodiment of the present invention, the first center point is a center point of the horizontal axis and the vertical axis of the first image, and the second center point is a center point of the horizontal axis and the vertical axis of the zoomed object image.
本發明的提出一種影像結合方法,包括:藉由第二電子裝置拍攝第二影像並從第二影像中擷取物體影像,並從第一電子裝置接收第一影像,其中第二電子裝置具有第二橫向解析度及第 二縱向解析度且第一電子裝置具有第一橫向解析度及第一縱向解析度;若第一縱向解析度與第二縱向解析度的第二縱向比值大於第一橫向解析度與第二橫向解析度的第二橫向比值,則第二電子裝置根據第二縱向比值縮放第一影像並將縮放後的第一影像結合物體影像顯示在第二電子裝置;以及若第一縱向解析度與第二縱向解析度的第二縱向比值小於第一橫向解析度與第二橫向解析度的第二橫向比值,則第二電子裝置根據第二橫向比值縮放第一影像並將縮放後的第一影像結合物體影像顯示在第二電子裝置。 The invention provides an image combining method, which comprises: shooting a second image by a second electronic device and capturing an image of an object from the second image, and receiving the first image from the first electronic device, wherein the second electronic device has a first Second horizontal resolution and the first Two vertical resolutions and the first electronic device has a first horizontal resolution and a first vertical resolution; if the second vertical ratio of the first vertical resolution to the second vertical resolution is greater than the first horizontal resolution and the second horizontal resolution A second horizontal ratio of degrees, the second electronic device scales the first image according to the second vertical ratio and displays the scaled first image in combination with the object image on the second electronic device; and if the first vertical resolution and the second vertical ratio The second vertical ratio of the resolution is smaller than the second horizontal ratio of the first horizontal resolution and the second horizontal resolution, the second electronic device scales the first image according to the second horizontal ratio and combines the scaled first image with the image of the object Displayed on the second electronic device.
在本發明的一實施例中,上述影像結合方法更包括:藉由第二電子裝置將縮放後的第一影像的第一中心點定位於物體影像的第二中心點上;藉由第二電子裝置接收拖曳操作來拖曳第一影像以產生背景位移量;以及藉由第二電子裝置根據第二中心點與背景位移量將第一影像顯示在第二電子裝置。 In an embodiment of the present invention, the image combining method further includes: positioning a first center point of the scaled first image on a second center point of the object image by a second electronic device; The device receives a drag operation to drag the first image to generate a background displacement amount; and the second electronic device displays the first image on the second electronic device according to the second center point and the background displacement amount.
本發明的提出一種影像結合系統,包括第一電子裝置及第二電子裝置,第二電子裝置耦接到第一電子裝置。第一電子裝置拍攝第一影像,並從第二電子裝置接收物體影像,其中第一電子裝置具有第一橫向解析度及第一縱向解析度且第二電子裝置具有第二橫向解析度及第二縱向解析度。若第二縱向解析度與第一縱向解析度的第一縱向比值小於第二橫向解析度與第一橫向解析度的第一橫向比值,則第一電子裝置根據第一縱向比值縮放物體影像並將縮放後的物體影像結合第一影像顯示在第一電子裝置。若第二縱向解析度與第一縱向解析度的第一縱向比值大於第二橫 向解析度與第一橫向解析度的第一橫向比值,則第一電子裝置根據第一橫向比值縮放物體影像並將縮放後的物體影像結合第一影像顯示在第一電子裝置。 The present invention provides an image combining system including a first electronic device and a second electronic device. The second electronic device is coupled to the first electronic device. The first electronic device captures a first image and receives an object image from a second electronic device, wherein the first electronic device has a first lateral resolution and a first vertical resolution and the second electronic device has a second lateral resolution and a second Vertical resolution. If the first vertical ratio between the second vertical resolution and the first vertical resolution is smaller than the first horizontal ratio between the second horizontal resolution and the first horizontal resolution, the first electronic device scales the image of the object according to the first vertical ratio and The scaled object image is displayed on the first electronic device in combination with the first image. If the first vertical ratio of the second vertical resolution to the first vertical resolution is greater than the second horizontal resolution A first lateral ratio between the first horizontal resolution and the first horizontal resolution, the first electronic device scales the object image according to the first horizontal ratio and displays the scaled object image in combination with the first image on the first electronic device.
在本發明的一實施例中,上述第一電子裝置將縮放後的物體影像的第二中心點定位於第一影像的第一中心點上。第一電子裝置接收拖曳操作來拖曳物體影像以產生物體位移量。第一電子裝置根據第一中心點與物體位移量將縮放後的物體影像顯示在第一電子裝置。 In an embodiment of the present invention, the first electronic device locates the second center point of the zoomed object image on the first center point of the first image. The first electronic device receives a drag operation to drag an object image to generate an object displacement amount. The first electronic device displays the scaled object image on the first electronic device according to the first center point and the amount of object displacement.
在本發明的一實施例中,上述第一中心點為第一影像的橫軸及縱軸的中心點,且第二中心點為縮放後的物體影像的橫軸及縱軸的中心點。 In an embodiment of the present invention, the first center point is a center point of the horizontal axis and the vertical axis of the first image, and the second center point is a center point of the horizontal axis and the vertical axis of the zoomed object image.
在本發明的一實施例中,。第二電子裝置拍攝第二影像並從第二影像中擷取物體影像,並從第一電子裝置接收第一影像。若第一縱向解析度與第二縱向解析度的第二縱向比值大於第一橫向解析度與第二橫向解析度的第二橫向比值,則第二電子裝置根據第二縱向比值縮放第一影像並將縮放後的第一影像結合物體影像顯示在第二電子裝置。若第一縱向解析度與第二縱向解析度的第二縱向比值小於第一橫向解析度與第二橫向解析度的第二橫向比值,則第二電子裝置根據第二橫向比值縮放第一影像並將縮放後的第一影像結合物體影像顯示在第二電子裝置。 In an embodiment of the invention,. The second electronic device captures the second image and captures an image of the object from the second image, and receives the first image from the first electronic device. If the second vertical ratio between the first vertical resolution and the second vertical resolution is greater than the second horizontal ratio between the first horizontal resolution and the second horizontal resolution, the second electronic device scales the first image according to the second vertical ratio and The scaled first image is displayed on the second electronic device in combination with the image of the object. If the second vertical ratio between the first vertical resolution and the second vertical resolution is smaller than the second horizontal ratio between the first horizontal resolution and the second horizontal resolution, the second electronic device scales the first image according to the second horizontal ratio and The scaled first image is displayed on the second electronic device in combination with the image of the object.
在本發明的一實施例中,上述第二電子裝置將縮放後的第一影像的第一中心點定位於物體影像的第二中心點上。第二電 子裝置接收拖曳操作來拖曳第一影像以產生背景位移量。第二電子裝置根據第二中心點與背景位移量將第一影像顯示在第二電子裝置。 In an embodiment of the present invention, the second electronic device positions the first center point of the scaled first image on the second center point of the object image. Second electricity The sub-device receives a drag operation to drag the first image to generate a background displacement amount. The second electronic device displays the first image on the second electronic device according to the second center point and the background displacement amount.
基於上述,本發明的影像結合方法與影像結合系統會在第一電子裝置拍攝第一影像(例如,主場景)並在第二電子裝置拍攝第二影像並從第二影像中擷取出物體影像(例如,人物影像)。當第一電子裝置從第二電子裝置接收物體影像時,會根據上述兩個電子裝置解析度的橫向比值及縱向比值較小者來縮放物體影像,並將縮放後的物體影像結合第一影像顯示在第一電子裝置。當第二電子裝置從第一電子裝置接收第一影像時,會根據上述兩個電子裝置解析度的橫向比值及縱向比值較大者來縮放第一影像,並將縮放後的第一影像結合物體影像顯示在第二電子裝置。如此一來,不同解析度的影像就能以適當的比例彼此結合。此外,使用者還可利用第一電子裝置來拖曳接收到的物體影像,或是利用第二電子裝置來拖曳接收到的第一影像,以達到更佳的影像結合效果。 Based on the above, the image combining method and the image combining system of the present invention capture a first image (for example, a main scene) in a first electronic device and capture a second image in a second electronic device and extract an object image from the second image ( (For example, people). When the first electronic device receives an object image from the second electronic device, the object image is scaled according to the smaller horizontal and vertical ratios of the resolutions of the two electronic devices, and the scaled object image is displayed in combination with the first image. On the first electronic device. When the second electronic device receives the first image from the first electronic device, the first electronic image is scaled according to the larger horizontal ratio and vertical ratio of the resolution of the two electronic devices, and the scaled first image is combined with the object The image is displayed on the second electronic device. In this way, images of different resolutions can be combined with each other at an appropriate ratio. In addition, the user can also use the first electronic device to drag the received image of the object, or use the second electronic device to drag the received first image to achieve a better image combining effect.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 In order to make the above features and advantages of the present invention more comprehensible, embodiments are hereinafter described in detail with reference to the accompanying drawings.
100‧‧‧影像結合系統 100‧‧‧Image combination system
110‧‧‧第一電子裝置 110‧‧‧The first electronic device
120‧‧‧第二電子裝置 120‧‧‧Second electronic device
S201、S203、S205、S207、S209、S211‧‧‧影像結合方法的步驟 S201, S203, S205, S207, S209, S211‧‧‧ Steps of image combination method
300‧‧‧第一影像 300‧‧‧ first image
400‧‧‧第二影像 400‧‧‧Second image
Xa‧‧‧第一橫向解析度 Xa‧‧‧first horizontal resolution
Ya‧‧‧第一縱向解析度 Ya‧‧‧first vertical resolution
Xb‧‧‧第二橫向解析度 Xb‧‧‧second horizontal resolution
Yb‧‧‧第二縱向解析度 Yb‧‧‧second vertical resolution
500‧‧‧物體影像 500‧‧‧ object image
600‧‧‧縮放後的物體影像 600‧‧‧ zoomed object image
S901、S903、S905、S907、S909、S911‧‧‧影像結合方法的步驟 S901, S903, S905, S907, S909, S911‧‧‧ Steps of image combination method
1000‧‧‧縮放後的第一影像 1000‧‧‧ first image after zooming
1200‧‧‧完整影像 1200‧‧‧ full image
圖1為根據本發明一實施例的影像結合系統的方塊圖。 FIG. 1 is a block diagram of an image combining system according to an embodiment of the present invention.
圖2為根據本發明一實施例的影像結合方法的流程圖。 FIG. 2 is a flowchart of an image combining method according to an embodiment of the present invention.
圖3到圖8為根據本發明一實施例的影像結合方法的範例。 3 to 8 are examples of an image combining method according to an embodiment of the present invention.
圖9為根據本發明另一實施例的影像結合方法的流程圖。 FIG. 9 is a flowchart of an image combining method according to another embodiment of the present invention.
圖10到圖12為根據本發明另一實施例的影像結合方法的範例。 10 to 12 are examples of an image combining method according to another embodiment of the present invention.
圖1為根據本發明一實施例的影像結合系統的方塊圖。 FIG. 1 is a block diagram of an image combining system according to an embodiment of the present invention.
請參照圖1,本發明的影像結合系統100包括第一電子裝置110及第二電子裝置120,第二電子裝置120可透過有線或無線的方式耦接到第一電子裝置110。第一電子裝置110及第二電子裝置120都可包括通訊晶片(未繪示於圖中)、儲存裝置(未繪示於圖中)及處理器(未繪示於圖中),其中儲存裝置可儲存拍照應用程式,其可提供第一電子裝置110及第二電子裝置120將彼此拍攝的照片或影片即時傳送給對方。 Referring to FIG. 1, the image combining system 100 of the present invention includes a first electronic device 110 and a second electronic device 120. The second electronic device 120 may be coupled to the first electronic device 110 by a wired or wireless manner. Both the first electronic device 110 and the second electronic device 120 may include a communication chip (not shown in the figure), a storage device (not shown in the figure), and a processor (not shown in the figure), where the storage device A photographing application program can be stored, which can provide the first electronic device 110 and the second electronic device 120 to instantly transfer photos or videos taken by each other to each other.
通訊晶片可為支援全球行動通信(Global System for Mobile communication,GSM)、個人手持式電話系統(Personal Handy-phone System,PHS)、碼多重擷取(Code Division Multiple Access,CDMA)系統、寬頻碼分多址(Wideband Code Division Multiple Access,WCDMA)系統、長期演進(Long Term Evolution,LTE)系統、全球互通微波存取(Worldwide interoperability for Microwave Access,WiMAX)系統、無線保真(Wireless Fidelity, Wi-Fi)系統或藍牙的信號傳輸的元件。 The communication chip can support Global System for Mobile communication (GSM), Personal Handy-phone System (PHS), Code Division Multiple Access (CDMA) system, wideband code division Multiple Access (Wideband Code Division Multiple Access (WCDMA) system, Long Term Evolution (LTE) system, Worldwide Interoperability for Microwave Access (WiMAX) system, Wireless Fidelity, Wi-Fi) system or Bluetooth signal transmission components.
儲存裝置可以是任何型態的固定或可移動隨機存取記憶體(Random Access Memory,RAM)、唯讀記憶體(Read-Only Memory,ROM)、快閃記憶體(flash memory)、硬碟(Hard Disk Drive,HDD)、固態硬碟(Solid State Drive,SSD)或類似元件或上述元件的組合。 The storage device can be any type of fixed or removable Random Access Memory (RAM), Read-Only Memory (ROM), flash memory, hard disk ( Hard Disk Drive (HDD), Solid State Drive (SSD) or similar components or a combination of the above components.
處理器可以是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位信號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuit,ASIC)或其他類似元件或上述元件的組合。 The processor may be a central processing unit (CPU), or other programmable general purpose or special purpose microprocessor (Microprocessor), digital signal processor (DSP), programmable Controller, Application Specific Integrated Circuit (ASIC) or other similar components or a combination of the above components.
圖2為根據本發明一實施例的影像結合方法的流程圖。 FIG. 2 is a flowchart of an image combining method according to an embodiment of the present invention.
請參照圖2,在步驟S201中,藉由第一電子裝置110拍攝第一影像,並從第二電子裝置120接收物體影像,其中第一電子裝置110具有第一橫向解析度及第一縱向解析度且第二電子裝置120具有第二橫向解析度及第二縱向解析度。舉例來說,圖3的第一影像300可由第一電子裝置110拍攝,第一影像300具有第一電子裝置110的第一橫向解析度Xa及第一縱向解析度Ya。圖4的第二影像400可由第二電子裝置120拍攝,第二影像400具有第二電子裝置120的第二橫向解析度Xb及第二縱向解析度Yb。在第二電子裝置120拍攝第二影像400之後,第二電子裝置120可利用任何去除背景的演算法將第二影像400的背景去除,以 產生一個物體影像500,如圖5所示,在此物體影像500的解析度與第二影像400相同。因此,第一電子裝置110就可從第二電子裝置120接收物體影像500。 Please refer to FIG. 2. In step S201, a first electronic device 110 captures a first image and receives an object image from a second electronic device 120. The first electronic device 110 has a first horizontal resolution and a first vertical resolution. The second electronic device 120 has a second horizontal resolution and a second vertical resolution. For example, the first image 300 of FIG. 3 can be captured by the first electronic device 110. The first image 300 has a first horizontal resolution Xa and a first vertical resolution Ya of the first electronic device 110. The second image 400 of FIG. 4 can be captured by the second electronic device 120. The second image 400 has a second horizontal resolution Xb and a second vertical resolution Yb of the second electronic device 120. After the second electronic device 120 captures the second image 400, the second electronic device 120 may remove the background of the second image 400 by using any background removal algorithm, so as to An object image 500 is generated. As shown in FIG. 5, the resolution of the object image 500 is the same as that of the second image 400. Therefore, the first electronic device 110 can receive the object image 500 from the second electronic device 120.
在步驟S203中,判斷第二縱向解析度與第一縱向解析度的第一縱向比值是否小於第二橫向解析度與第一橫向解析度的第一橫向比值。舉例來說,第一電子裝置110可判斷第一縱向比值Yb/Ya是否小於第一橫向比值Xb/Xa。 In step S203, it is determined whether a first longitudinal ratio of the second longitudinal resolution and the first longitudinal resolution is smaller than a first lateral ratio of the second lateral resolution and the first lateral resolution. For example, the first electronic device 110 may determine whether the first vertical ratio Yb / Ya is smaller than the first horizontal ratio Xb / Xa.
若第一縱向比值小於第一橫向比值,在步驟S205中,第一電子裝置110根據第一縱向比值縮放物體影像。 If the first vertical ratio is smaller than the first horizontal ratio, in step S205, the first electronic device 110 scales the image of the object according to the first vertical ratio.
若第一縱向比值大於第一橫向比值,在步驟S207中,第一電子裝置110根據第一橫向比值縮放物體影像。舉例來說,由於在本範例中,Yb大致等於Ya但Xb明顯小於Xa,因此第一電子裝置110會判斷Yb/Ya大於Xb/Xa,並根據Xb/Xa來縮放物體影像500。在本範例中,第一電子裝置110會將物體影像500的第二橫向解析度Xb及第二縱向解析度Yb分別除以Xb/Xa以獲得縮放後的物體影像600,如圖6所示。因此縮放後的物體影像600的橫向解析度為Xa,且縱向解析度為Yb*Xa/Xb。 If the first vertical ratio is greater than the first horizontal ratio, in step S207, the first electronic device 110 scales the image of the object according to the first horizontal ratio. For example, in this example, Yb is approximately equal to Ya but Xb is significantly smaller than Xa. Therefore, the first electronic device 110 determines that Yb / Ya is greater than Xb / Xa, and scales the object image 500 according to Xb / Xa. In this example, the first electronic device 110 divides the second horizontal resolution Xb and the second vertical resolution Yb of the object image 500 by Xb / Xa to obtain a scaled object image 600, as shown in FIG. 6. Therefore, the horizontal resolution of the scaled object image 600 is Xa, and the vertical resolution is Yb * Xa / Xb.
值得注意的是,當第一縱向比值等於第一橫向比值時,第一電子裝置110可不進行縮放物體影像的操作。 It is worth noting that when the first vertical ratio is equal to the first horizontal ratio, the first electronic device 110 may not perform the operation of zooming the image of the object.
在步驟S209中,藉由第一電子裝置110將縮放後的物體影像的第二中心點定位於第一影像的第一中心點上。舉例來說,在圖7中,第一電子裝置110會將縮放後的物體影像600的中心 點定位於第一影像300的中心點上以結合縮放後的物體影像600及第一影像300。 In step S209, the second electronic point of the scaled object image is positioned on the first electronic point of the first image by the first electronic device 110. For example, in FIG. 7, the first electronic device 110 will center the center of the zoomed object image 600. The point is positioned on the center point of the first image 300 to combine the scaled object image 600 and the first image 300.
在步驟S211中,藉由第一電子裝置110接收拖曳操作來拖曳物體影像以產生物體位移量,並藉由第一電子裝置根據第一中心點與物體位移量將縮放後的物體影像結合第一影像顯示在第一電子裝置110。舉例來說,當使用者將縮放後的物體影像600從圖7的位置經過(Mxb,Myb)的位移量而位移到圖8的位置時,使用者滿意此結合結果,就可控制第一電子裝置110儲存此影像結合結果。上述範例是以縮放後的物體影像600的左上角的位移量作為說明,應理解的是,縮放後的物體影像600的左上角的位移量相當於其中心點的位移量。 In step S211, the first electronic device 110 receives a drag operation to drag the object image to generate an object displacement amount, and the first electronic device combines the scaled object image with the first according to the first center point and the object displacement amount. The image is displayed on the first electronic device 110. For example, when the user moves the zoomed object image 600 from the position in FIG. 7 to the position in FIG. 8 through the (Mxb, Myb) displacement amount, the user is satisfied with the combined result and can control the first electron The device 110 stores the image combining result. The above example uses the displacement of the upper left corner of the scaled object image 600 as an illustration. It should be understood that the displacement of the upper left corner of the scaled object image 600 is equivalent to the displacement of its center point.
值得注意的是,當使用者完成縮放後的物體影像600的位移之後,除了可以儲存此影像作為照片,還可以對此影像進行錄影操作。 It is worth noting that after the user completes the displacement of the zoomed object image 600, in addition to storing the image as a photo, the image can also be recorded.
圖9為根據本發明另一實施例的影像結合方法的流程圖。 FIG. 9 is a flowchart of an image combining method according to another embodiment of the present invention.
請參照圖9,在步驟S901中,藉由第二電子裝置120拍攝第二影像並從第二影像中擷取物體影像,並從第一電子裝置110接收第一影像,其中第二電子裝置120具有第二橫向解析度及第二縱向解析度且第一電子裝置110具有第一橫向解析度及第一縱向解析度。舉例來說,圖4的第二影像400可由第二電子裝置120拍攝,第二影像400具有第二電子裝置120的第二橫向解析度Xb及第二縱向解析度Yb。在第二電子裝置120拍攝第二影像400之 後,第二電子裝置120可利用任何去除背景的演算法將第二影像400的背景去除,以產生一個物體影像500,如圖5所示,在此物體影像500的解析度與第二影像400相同。圖3的第一影像300可由第一電子裝置110拍攝,第一影像300具有第一電子裝置110的第一橫向解析度Xa及第一縱向解析度Ya。第二電子裝置120可從第一電子裝置110接收第一影像300。 Referring to FIG. 9, in step S901, a second electronic device 120 captures a second image and captures an object image from the second image, and receives a first image from the first electronic device 110. The second electronic device 120 The first electronic device 110 has a second horizontal resolution and a second vertical resolution. For example, the second image 400 of FIG. 4 can be captured by the second electronic device 120. The second image 400 has a second horizontal resolution Xb and a second vertical resolution Yb of the second electronic device 120. Photographing the second image 400 on the second electronic device 120 After that, the second electronic device 120 may remove the background of the second image 400 using any background removal algorithm to generate an object image 500. As shown in FIG. 5, the resolution of the object image 500 and the second image 400 are as follows. the same. The first image 300 of FIG. 3 can be captured by the first electronic device 110. The first image 300 has a first horizontal resolution Xa and a first vertical resolution Ya of the first electronic device 110. The second electronic device 120 may receive the first image 300 from the first electronic device 110.
在步驟S903中,判斷第一縱向解析度與第二縱向解析度的第二縱向比值是否大於第一橫向解析度與第二橫向解析度的第二橫向比值。舉例來說,第二電子裝置120可判斷第二縱向比值Xa/Xb是否大於第二橫向比值Ya/Yb。 In step S903, it is determined whether a second longitudinal ratio of the first longitudinal resolution and the second longitudinal resolution is greater than a second lateral ratio of the first lateral resolution and the second lateral resolution. For example, the second electronic device 120 may determine whether the second vertical ratio Xa / Xb is greater than the second horizontal ratio Ya / Yb.
若第一縱向解析度與第二縱向解析度的第二縱向比值大於第一橫向解析度與第二橫向解析度的第二橫向比值,在步驟S905中,第二電子裝置120根據第二縱向比值縮放第一影像並將縮放後的第一影像結合物體影像顯示在第二電子裝置120。 If the second vertical ratio of the first vertical resolution and the second vertical resolution is greater than the second horizontal ratio of the first horizontal resolution and the second horizontal resolution, in step S905, the second electronic device 120 according to the second vertical ratio The first electronic image is scaled and displayed in combination with the object image on the second electronic device 120.
若第一縱向解析度與第二縱向解析度的第二縱向比值小於第一橫向解析度與第二橫向解析度的第二橫向比值,在步驟S907中,第二電子裝置120根據第二橫向比值縮放第一影像並將縮放後的第一影像結合物體影像顯示在第二電子裝置120。舉例來說,由於在本範例中,Xa明顯大於Xb,但Ya約等於Yb,因此第二電子裝置120會判斷Xa/Xb大於Ya/Yb,並根據Xa/Xb來縮放第一影像300。在本範例中,第二電子裝置120會將第一影像300的第一橫向解析度Xa及第二縱向解析度Ya分別除以Xa/Xb以獲 得縮放後的第一影像1000,如圖10所示。因此縮放後的第一影像1000的橫向解析度為Xb,且縱向解析度為Ya*Xb/Xa。 If the second vertical ratio of the first vertical resolution and the second vertical resolution is smaller than the second horizontal ratio of the first horizontal resolution and the second horizontal resolution, in step S907, the second electronic device 120 according to the second horizontal ratio The first electronic image is scaled and displayed in combination with the object image on the second electronic device 120. For example, in this example, Xa is significantly larger than Xb, but Ya is approximately equal to Yb. Therefore, the second electronic device 120 determines that Xa / Xb is larger than Ya / Yb, and scales the first image 300 according to Xa / Xb. In this example, the second electronic device 120 divides the first horizontal resolution Xa and the second vertical resolution Ya of the first image 300 by Xa / Xb to obtain A zoomed first image 1000 is obtained, as shown in FIG. 10. Therefore, the horizontal resolution of the scaled first image 1000 is Xb, and the vertical resolution is Ya * Xb / Xa.
在步驟S909中,藉由第二電子裝置120將縮放後的第一影像的第一中心點定位於物體影像的第二中心點上。舉例來說,第二電子裝置120會將縮放後的第一影像1000與物體影像500以各自的中心點結合並顯示於第二電子裝置120上,如圖11所示。 In step S909, the second electronic device 120 is used to locate the first center point of the scaled first image on the second center point of the object image. For example, the second electronic device 120 combines and displays the scaled first image 1000 and the object image 500 at their respective center points and displays them on the second electronic device 120, as shown in FIG. 11.
在步驟S911中,藉由第二電子裝置120接收拖曳操作來拖曳第一影像以產生背景位移量,並藉由第二電子裝置根據第二中心點與背景位移量將第一影像顯示在第二電子裝置120。舉例來說,第二電子裝置120還可提供使用者對縮放後的第一影像1000進行拖曳操作,以獲得使用者想要的結合影像,如圖12所示。 In step S911, the second electronic device 120 receives the drag operation to drag the first image to generate a background displacement amount, and the second electronic device displays the first image on the second according to the second center point and the background displacement amount. Electronic device 120. For example, the second electronic device 120 may further provide a user to perform a drag operation on the zoomed first image 1000 to obtain a combined image desired by the user, as shown in FIG. 12.
值得注意的是,在第二電子裝置120的顯示範圍中,也就是物體影像500對應的區域中,縮放後的第一影像1000以外的區域可留黑處理,而當使用者儲存影像時,第二電子裝置120可僅儲存縮放後的第一影像1000顯示於第二電子裝置120的部分以及物體影像500中的物體與縮放後的第一影像1000重疊的部分,以獲得一個完整影像1200。 It is worth noting that in the display range of the second electronic device 120, that is, the area corresponding to the object image 500, the area other than the scaled first image 1000 can be left black. When the user saves the image, the first The two electronic devices 120 may store only the portion of the scaled first image 1000 displayed on the second electronic device 120 and the portion of the object image 500 where the object overlaps with the scaled first image 1000 to obtain a complete image 1200.
綜上所述,本發明的影像結合方法與影像結合系統會在第一電子裝置拍攝第一影像(例如,主場景)並在第二電子裝置拍攝第二影像並從第二影像中擷取出物體影像(例如,人物影像)。當第一電子裝置從第二電子裝置接收物體影像時,會根據上述兩個電子裝置解析度的橫向比值及縱向比值較小者來縮放物體影像,並 將縮放後的物體影像結合第一影像顯示在第一電子裝置。當第二電子裝置從第一電子裝置接收第一影像時,會根據上述兩個電子裝置解析度的橫向比值及縱向比值較大者來縮放第一影像,並將縮放後的第一影像結合物體影像顯示在第二電子裝置。如此一來,不同解析度的影像就能以適當的比例彼此結合。此外,使用者還可利用第一電子裝置來拖曳接收到的物體影像,或是利用第二電子裝置來拖曳接收到的第一影像,以達到更佳的影像結合效果。 In summary, the image combining method and image combining system of the present invention will capture a first image (eg, a main scene) on a first electronic device, and capture a second image on a second electronic device and extract an object from the second image. Images (for example, people). When the first electronic device receives the object image from the second electronic device, the object image is scaled according to the smaller horizontal ratio and vertical ratio of the resolution of the two electronic devices, and The scaled object image is displayed on the first electronic device in combination with the first image. When the second electronic device receives the first image from the first electronic device, the first electronic image is scaled according to the larger horizontal ratio and vertical ratio of the resolution of the two electronic devices, and the scaled first image is combined with the object The image is displayed on the second electronic device. In this way, images of different resolutions can be combined with each other at an appropriate ratio. In addition, the user can also use the first electronic device to drag the received image of the object, or use the second electronic device to drag the received first image to achieve a better image combining effect.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed as above with the examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some modifications and retouching without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be determined by the scope of the attached patent application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106130558A TWI658429B (en) | 2017-09-07 | 2017-09-07 | Image combination method and image combination system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106130558A TWI658429B (en) | 2017-09-07 | 2017-09-07 | Image combination method and image combination system |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201913556A TW201913556A (en) | 2019-04-01 |
TWI658429B true TWI658429B (en) | 2019-05-01 |
Family
ID=66991652
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW106130558A TWI658429B (en) | 2017-09-07 | 2017-09-07 | Image combination method and image combination system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI658429B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6166744A (en) * | 1997-11-26 | 2000-12-26 | Pathfinder Systems, Inc. | System for combining virtual images with real-world scenes |
US20020059648A1 (en) * | 2000-05-22 | 2002-05-16 | Akio Ohba | Information processing apparatus, graphic processing unit, graphic processing method, storage medium, and computer program |
US20090147004A1 (en) * | 2007-12-06 | 2009-06-11 | Barco Nv | Method And System For Combining Images Generated By Separate Sources |
TW201223248A (en) * | 2010-07-28 | 2012-06-01 | Sisvel Technology Srl | Method for combining images relating to a three-dimensional content |
US20170206401A1 (en) * | 2016-01-19 | 2017-07-20 | Magic Leap, Inc. | Eye image combination |
-
2017
- 2017-09-07 TW TW106130558A patent/TWI658429B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6166744A (en) * | 1997-11-26 | 2000-12-26 | Pathfinder Systems, Inc. | System for combining virtual images with real-world scenes |
US20020059648A1 (en) * | 2000-05-22 | 2002-05-16 | Akio Ohba | Information processing apparatus, graphic processing unit, graphic processing method, storage medium, and computer program |
US20090147004A1 (en) * | 2007-12-06 | 2009-06-11 | Barco Nv | Method And System For Combining Images Generated By Separate Sources |
TW201223248A (en) * | 2010-07-28 | 2012-06-01 | Sisvel Technology Srl | Method for combining images relating to a three-dimensional content |
US20170206401A1 (en) * | 2016-01-19 | 2017-07-20 | Magic Leap, Inc. | Eye image combination |
Also Published As
Publication number | Publication date |
---|---|
TW201913556A (en) | 2019-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI619088B (en) | Image data processing system and associated methods for processing panorama images and image blending using the same | |
CN107750451B (en) | Method and electronic device for stabilizing video | |
US9973677B2 (en) | Refocusable images | |
KR102045957B1 (en) | Method and apparatus for photographing of a portable terminal | |
CN106803884B (en) | Image processing apparatus | |
US10437545B2 (en) | Apparatus, system, and method for controlling display, and recording medium | |
JP6534655B2 (en) | Method and apparatus for displaying preview image | |
KR20130112574A (en) | Apparatus and method for improving quality of enlarged image | |
JP2016096487A (en) | Imaging system | |
CN113875220B (en) | Shooting anti-shake method, shooting anti-shake device, terminal and storage medium | |
JP2018530173A (en) | Distortion correction method and terminal | |
JP2018037859A (en) | Image processing system and control method | |
US20190266802A1 (en) | Display of Visual Data with a Virtual Reality Headset | |
CN110874809A (en) | Image processing method and device, electronic equipment and storage medium | |
WO2015143857A1 (en) | Photograph synthesis method and terminal | |
JP2024099555A (en) | Device and method for image display | |
WO2012150378A1 (en) | Methods and apparatuses for capturing an image | |
JP6290038B2 (en) | Electronic device, method and program | |
TWI658429B (en) | Image combination method and image combination system | |
CN107392850B (en) | Image processing method and system | |
JP2020092315A (en) | Display control device, imaging apparatus, display device control method, program, and storage medium | |
JP2007281843A (en) | Imaging apparatus and image processing method | |
JP2018125658A5 (en) | ||
WO2017219442A1 (en) | Image preview method and apparatus | |
JPWO2013150775A1 (en) | Image generation apparatus, camera apparatus, image display apparatus, and image generation method |