[go: up one dir, main page]

CN107978009A - Image lamination processing method and system - Google Patents

Image lamination processing method and system Download PDF

Info

Publication number
CN107978009A
CN107978009A CN201610925596.5A CN201610925596A CN107978009A CN 107978009 A CN107978009 A CN 107978009A CN 201610925596 A CN201610925596 A CN 201610925596A CN 107978009 A CN107978009 A CN 107978009A
Authority
CN
China
Prior art keywords
image
processing method
shielding
prospect
touch screen
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201610925596.5A
Other languages
Chinese (zh)
Inventor
李雨暹
林文祥
林震洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanfan Technology Co ltd
Original Assignee
Fanfan Technology Co ltd
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 Fanfan Technology Co ltd filed Critical Fanfan Technology Co ltd
Priority to CN201610925596.5A priority Critical patent/CN107978009A/en
Publication of CN107978009A publication Critical patent/CN107978009A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种影像叠层处理方法与系统,方法运作在一计算机装置上,以软件手段提供用户接口,让用户在触控屏幕上操作产生叠层影像。方法开始时,根据使用者的操作,先自一数据库中取得至少两张影像,并设定有背景影像与前景影像,让用户以一手势于触控屏幕显示的背景影像上产生涵盖一区域的触控信号,形成一屏蔽影像,当前景影像套用此屏蔽影像,背景影像上设为屏蔽部分的影像将遮蔽前景影像,可形成一新的前景影像,经叠合新的前景影像与背景影像后,形成一叠层影像。

An image overlay processing method and system, the method operates on a computer device, provides a user interface by means of software, and allows users to operate on a touch screen to generate an overlay image. At the beginning of the method, according to the user's operation, at least two images are obtained from a database, and a background image and a foreground image are set, so that the user can use a gesture to generate an image covering an area on the background image displayed on the touch screen. Touch the signal to form a shielded image. When the foreground image is applied to this shielded image, the image set as the masked part on the background image will cover the foreground image, and a new foreground image can be formed. After superimposing the new foreground image and background image , forming a layered image.

Description

影像叠层处理方法与系统Image stacking processing method and system

技术领域technical field

本发明有关一种图像处理方法与相关系统,特别涉及一种通过用户接口处理相互迭层动态影像的方法,以及执行此方法的系统。The present invention relates to an image processing method and a related system, in particular to a method for processing mutually stacked dynamic images through a user interface, and a system for executing the method.

背景技术Background technique

当用户操作计算机装置操作贴图(sticker)时,一般来说先选定一背景影像,接着选定一个要贴在背景影像上的图案,再选择贴图的位置后,可以将图案覆盖所选定位置,结合背景影像后形成一个新的具有贴图的影像。When a user operates a computer device to operate a sticker, generally speaking, a background image is first selected, and then a pattern to be pasted on the background image is selected, and after the position of the sticker is selected, the pattern can cover the selected position , combined with the background image to form a new image with textures.

在此操作环境下,当用户希望让前景图案的部分隐藏在背景影像的某的区域或对象之后,可以使用相关软件中的裁切工具将前景图案根据隐藏位置的样式进行`裁切,使得经裁切的前景图案与背景影像结合时,产生前景图案的部分隐藏在背景影像的视觉效果。In this operating environment, when the user wants to hide the foreground pattern behind a certain area or object in the background image, he can use the cutting tool in the relevant software to cut the foreground pattern according to the style of the hidden position, so that the When the cropped foreground pattern is combined with the background image, it produces the visual effect that part of the foreground pattern is hidden in the background image.

示意图如图9A至图9C所示的现有技术贴图的方法例图。Schematic Figures 9A to 9C show an example of the method of mapping in the prior art.

在图9A中,显示有一如背景影像的第二图案902,另有作为前景贴图的第一图案901,当用户欲将第一图案901的某部分隐藏在第二图案902某个区域之后,而不是直接贴在第二图案902上,就可如图9B所示,根据隐藏位置的样式,利用软件方法裁切第一图案901,形成切割的第一图案901’。图9C形成两个图案结合后的影像。In FIG. 9A, there is a second pattern 902 as a background image, and a first pattern 901 as a foreground map. When the user wants to hide a part of the first pattern 901 behind a certain area of the second pattern 902, and Instead of sticking directly on the second pattern 902, as shown in FIG. 9B, the first pattern 901 can be cut out by using a software method according to the pattern of the hidden position to form a cut first pattern 901'. Figure 9C forms an image of the combination of the two patterns.

发明内容Contents of the invention

当现有技术提供贴图的处理方法是先裁切作为贴图的前景影像,而使得前景影像不会保留原本的样貌,并且因此产生新的切割后的前景影像也容易应用在别的影像应用上,有鉴于此,本发明公开书提出一新的影像叠层处理方法,以及执行此方法的系统,此影像叠层处理方法不同于现有贴图的处理方式,并能保留前景图案原本的样貌,可以产生新的不同应用。When the existing technology provides a texture processing method, the foreground image used as a texture is cut first, so that the foreground image will not retain its original appearance, and the new cut foreground image is also easy to apply to other image applications. , In view of this, the disclosure of the present invention proposes a new method of image overlay processing and a system for implementing this method. This image overlay processing method is different from the existing texture processing method, and can retain the original appearance of the foreground pattern , can generate new and different applications.

具体地,在一实施例中,影像叠层处理方法主要步骤包括先自一数据库中取得至少两张影像,并在这些影像中设定第一影像与第二影像,之后通过一用户接口,于第一影像上设定涵盖一区域的屏蔽,形成第三影像,经叠合第一、第二与第三影像,可以形成一叠层影像。Specifically, in one embodiment, the main steps of the image overlay processing method include first obtaining at least two images from a database, and setting the first image and the second image in these images, and then through a user interface, in A mask covering an area is set on the first image to form a third image, and a laminated image can be formed by superimposing the first, second and third images.

进一步地,在另一实施例描述中,影像叠层处理方法可先自计算机系统的一内存中取得至少两张影像,用户可以选择其中影像为一背景影像与一前景影像,影像在处理中皆可暂存于计算机系统的内存中,计算机系统为具备一触控屏幕的计算机装置,触控屏幕显示背景影像,让用户以一手势于触控屏幕上产生涵盖一区域的触控信号,触控信号经处理后形成一屏蔽影像,同样也暂存在内存中,此屏蔽影像取自背影影像,于前景影像套用此屏蔽影像后,使得背景影像中设为屏蔽的区域影像遮蔽了前景影像的部分,形成一新的前景影像,新的前景影像将暂存在内存中,之后可叠合新的前景影像与背景影像,形成一叠层影像。Further, in the description of another embodiment, the image layering processing method can first obtain at least two images from a memory of the computer system, and the user can select one of the images as a background image and a foreground image, and both images are processed during processing. It can be temporarily stored in the memory of the computer system. The computer system is a computer device with a touch screen. The touch screen displays a background image, allowing the user to generate a touch signal covering an area on the touch screen with a gesture. The signal is processed to form a masked image, which is also temporarily stored in the memory. This masked image is taken from the background image. After applying the masked image to the foreground image, the masked area in the background image covers the foreground image. A new foreground image is formed, and the new foreground image will be temporarily stored in memory, and then the new foreground image and background image can be superimposed to form a layered image.

具体地,背景影像可为具有至少一个对象的静态或动态影像,而前景影像则可为一动态影像,也就是经以上步骤处理而结合背景影像时,仍可保持其动态的样态。Specifically, the background image can be a static or dynamic image with at least one object, and the foreground image can be a dynamic image, that is, when combined with the background image through the above steps, it can still maintain its dynamic state.

进一步地,在另一实施方式中,使用前述屏蔽的机制,可让前景影像为位置、大小,与/或角度可随意调整的静态或动态影像。Furthermore, in another embodiment, using the aforementioned masking mechanism, the foreground image can be a static or dynamic image whose position, size, and/or angle can be adjusted freely.

附图说明Description of drawings

图1显示为执行本发明影像叠层处理方法的操作画面实施例示意图;FIG. 1 shows a schematic diagram of an embodiment of an operation screen for performing the image overlay processing method of the present invention;

图2A至图2C显示以一触控屏幕实现本发明影像叠层处理方法产生叠层影像的实施例示意图;2A to FIG. 2C show a schematic diagram of an embodiment of a touch screen to implement the image layering processing method of the present invention to generate a layered image;

图3A至图3D示意显示执行本发明影像叠层处理方法的步骤例图之一;3A to 3D schematically show one of the step illustrations for implementing the image overlay processing method of the present invention;

图4A至图4D示意显示执行本发明影像叠层处理方法的步骤例图之二;4A to 4D schematically show the second example of the steps of the method for image overlay processing of the present invention;

图5A至图5D示意显示在本发明影像叠层处理方法下多屏蔽设定与影像动态变化的例图;5A to 5D schematically show examples of multi-mask settings and image dynamic changes under the image stacking processing method of the present invention;

图6显示的流程描述本发明影像叠层处理方法的实施例之一;The flowchart shown in FIG. 6 describes one embodiment of the image overlay processing method of the present invention;

图7显示的流程描述本发明影像叠层处理方法的实施例之二;The flow shown in FIG. 7 describes the second embodiment of the image overlay processing method of the present invention;

图8显示的流程描述本发明影像叠层处理方法的实施例之三;The flowchart shown in FIG. 8 describes the third embodiment of the image overlay processing method of the present invention;

图9A至图9C显示现有技术贴图的方法例图。9A to 9C show an example diagram of the method of mapping in the prior art.

具体实施方式Detailed ways

本发明公开书公开一种图像处理方法与相关系统,可提供用户通过用户接口处理相互叠层动态影像,特别是可以保留原本贴图影像原貌,而以屏蔽的方式产生贴图的部分隐藏在某些对象之后的视觉效果。值得一提的是,在本发明公开的图像处理方法下,前景贴案可以为动态影像,在连续图像处理的机制下,还可以让使用者随意改变前景的大小、转向等形式,随时呈现贴图的部分隐藏在某些背景对象之后的视觉效果。The disclosure of the present invention discloses an image processing method and a related system, which can provide users with a user interface to process overlapping dynamic images, in particular, the original appearance of the original texture image can be preserved, and the part of the texture generated by masking is hidden in some objects Visual effects afterwards. It is worth mentioning that under the image processing method disclosed in the present invention, the foreground poster can be a dynamic image. Under the mechanism of continuous image processing, the user can also change the size and direction of the foreground at will, and present the sticker at any time. A visual effect that partially hides behind certain background objects.

应用本发明影像叠层处理方法以及执行此方法的系统中,系统可应用在一计算机装置上,其中的操作画面实施例示意图可参考图1,而此图例仅示意表示操作画面,而非用以显示实际实现的样态。In the application of the image overlay processing method of the present invention and the system for executing the method, the system can be applied to a computer device, and the schematic diagram of an embodiment of the operation screen can be referred to FIG. Shows what it looks like in practice.

图中显示有一计算机系统1,除了一般计算机装置搭配鼠标、键盘等输入设备的样态外,还可以为具备有触控屏幕10的计算机装置。触控屏幕10即为提供用户操作影像叠层处理方法的用户接口,用户接口或可指以软件手段在此触控屏幕启始的一个图形用户接口(GUI)。The figure shows a computer system 1 , which can be a computer device equipped with a touch screen 10 in addition to a general computer device equipped with input devices such as a mouse and a keyboard. The touch screen 10 is a user interface for the user to operate the image overlay processing method, and the user interface may refer to a graphical user interface (GUI) initiated on the touch screen by means of software.

图例显示影像叠层处理上显示有一背景影像101,如一个颜色、花纹组合的影像,或是一个风景影像或是特定图案,并不限于何种影像,可以为静态或持续变动的动态影像。背景影像101上可以包括有特定图形的背景对象102,如一个风景对象、人物、建筑物,或仅是一个图案而已,也不限于特定形式的图案。The legend shows that a background image 101 is displayed on the image stacking process, such as an image of a combination of colors and patterns, or a landscape image or a specific pattern, which is not limited to any kind of image, and can be a static or continuously changing dynamic image. The background image 101 may include a background object 102 with a specific figure, such as a landscape object, a person, a building, or just a pattern, and is not limited to a pattern of a specific form.

再有一前景物件103,此可为一个让用户随意改变位置、大小与/或角度可随意调整的影像,可为动态或静态影像。前景物件103在此实施例中如一欲贴附在背景影像101上的贴图,但是却可在本发明影像叠层处理方法中产生隐藏于背景影像101中特定背景对象102之后的图案,特别是其位置、大小与角度都可随意调整,而不用因为改变了型态(位置、大小、角度)而需要重新裁切。There is also a foreground object 103, which can be an image that allows the user to freely change its position, size and/or angle, and can be a dynamic or static image. In this embodiment, the foreground object 103 is like a texture to be pasted on the background image 101, but it can produce a pattern hidden behind the specific background object 102 in the background image 101 in the image layering processing method of the present invention, especially its The position, size and angle can be adjusted at will, and there is no need to re-cut because of changing the shape (position, size, angle).

图例显示这是一个运作于触控屏幕10上的图形用户接口,其中可包括让用户操作产生叠层影像的操作界面区12,其中具备有各种图形处理的工具,可通过触控屏幕10上的一选择工具设定背景影像与前景影像,并于背景影像上设定屏蔽范围。如此图例显示的影像设定工具105,可以让用户选择指定背景影像(如101与102)、前景影像(如103);设有屏蔽设定工具107,提供使用者增减图中屏蔽的位置与数量;设有放大编辑工具108,方便用户在细微处操作图形工具的软件工具;另有指触设定工具109,提供使用者以手势在触控屏幕10操作时能控制指触大小,例如当使用者以手指头在某个位置绘图或是设定屏蔽时,可以控制指触面积。The legend shows that this is a graphical user interface operating on the touch screen 10, which may include an operation interface area 12 for the user to operate to generate a laminated image, which is equipped with various graphics processing tools, which can be used on the touch screen 10. A selection tool for setting the background image and the foreground image, and setting the masking range on the background image. The image setting tool 105 shown in this illustration allows the user to select and specify the background image (such as 101 and 102) and the foreground image (such as 103); a mask setting tool 107 is provided to provide the user with the position and location of the mask in the increase or decrease figure. Quantity; be provided with magnification editing tool 108, the software tool that is convenient for the user to operate graphic tool in subtle place; Another finger touch setting tool 109, provide user can control finger touch size when operating on touch screen 10 with gesture, for example when When the user uses the finger to draw on a certain position or set a mask, the user can control the area touched by the finger.

此图例显示执行本发明影像叠层处理方法之后,可以产生前景物件103躲藏于背景对象102之后的视觉效果。然而,却不同于现有技术以裁切前景物件(贴图)的方式,本发明是于背景对象102上设定屏蔽,当结合前景物件103时,让此屏蔽遮蔽前景物件103对应的位置,产生此图例的效果。更者,由于前景物件103在本发明的机制下并未改变原图案影像,让用户可以随意改变摆设前景物件103的位置,甚至是重设大小与角度,使得当前景物件103与背景影像101(包括背景对象102)结合,仍可隐藏在屏蔽之后。This illustration shows that after the image overlay processing method of the present invention is executed, the visual effect that the foreground object 103 hides behind the background object 102 can be generated. However, it is different from the method of cropping the foreground object (texture) in the prior art. The present invention sets a mask on the background object 102. When combined with the foreground object 103, the mask covers the corresponding position of the foreground object 103, resulting in The effect of this legend. Moreover, since the foreground object 103 does not change the original pattern image under the mechanism of the present invention, the user can freely change the position of the foreground object 103, or even reset the size and angle, so that the current foreground object 103 and the background image 101 ( Including the background object 102) combined, can still be hidden behind the mask.

图2A至图2C接着以图例显示以一触控屏幕实现本发明影像叠层处理方法产生叠层影像的实施例示意图。FIG. 2A to FIG. 2C are schematic diagrams illustrating an embodiment of implementing the image stacking processing method of the present invention to generate a stacked image by using a touch screen.

在图2A中,显示有如前述的计算机系统1,其中可以具备触控屏幕10,另有软件实现的操作界面区12,触控屏幕10上显示有背景影像201,另设有前景物件202。此时,图例示意表示使用者可以手20在背景影像201的某处位置上执行滑动的手势,让运作于计算机系统1中执行此影像叠层处理方法的软件程序可以接收到一连续触控信号,这些触控信号将对应到一个影像区域,这个区域将形成作为屏蔽(mask)的屏蔽影像。实施例并不排除其他形成屏蔽影像的方式,比如以触控笔涂抹、画框选取等的方式决定屏蔽位置。In FIG. 2A , the aforementioned computer system 1 is shown, which may include a touch screen 10 and an operation interface area 12 realized by software. The touch screen 10 displays a background image 201 and a foreground object 202 . At this time, the illustration schematically shows that the user can perform a gesture of sliding on a certain position of the background image 201 with the hand 20, so that the software program running in the computer system 1 that executes the image overlay processing method can receive a continuous touch signal , these touch signals will correspond to an image area, and this area will form a shield image as a mask. The embodiment does not exclude other ways of forming the shielding image, such as determining the shielding position by smearing with a stylus, selecting a picture frame, and the like.

举例来说,提供用户接口让用户在显示背景影像的触控屏幕10上,以触碰手势为沿着背景影像201上一特定对象的轮廓边缘执行的一抹除动作,由触控屏幕10产生对应此抹除动作的触控信号,触控信号涵盖一个区域。For example, a user interface is provided to allow the user to perform a touch gesture on the touch screen 10 displaying the background image as an erasing action along the contour edge of a specific object on the background image 201, and the touch screen 10 generates a corresponding The touch signal of the erasing action covers an area.

接着如图2B所示,在计算机系统1的触控屏幕10上形成对应前述触控信号对应的区域的屏蔽影像203,以斜纹图案表示。Next, as shown in FIG. 2B , a mask image 203 corresponding to the area corresponding to the aforementioned touch signal is formed on the touch screen 10 of the computer system 1 , represented by a diagonal pattern.

图2C则继续表示,当使用者移动前述的前景物件202到要摆的位置上,如所处位置涵盖屏蔽影像203,该处将被隐藏而显示出背景影像的部分,最后如图显示形成为屏蔽后前景物件202’。值得一提的是,在图形处理的技术中,使用者可以操作前景物件202的位置、大小与角度,调整的过程将持续产生与屏蔽影像203组合产生的暂存图形,让用户在选择置放前景物件202时,可以随意调整前景物件202的位置、大小、角度,最后决定时即产生得到包括此例的背景影像201与屏蔽后前景物件202’的叠层影像。Figure 2C continues to show that when the user moves the aforementioned foreground object 202 to the position to be placed, if the position covers the shielding image 203, the position will be hidden and the part of the background image will be displayed, and finally it will be formed as shown in the figure The masked foreground object 202'. It is worth mentioning that in the graphics processing technology, the user can manipulate the position, size and angle of the foreground object 202, and the adjustment process will continuously generate temporary graphics combined with the mask image 203, allowing the user to select and place For the foreground object 202, the position, size, and angle of the foreground object 202 can be adjusted arbitrarily, and a laminated image including the background image 201 and the masked foreground object 202' of this example will be generated when the final decision is made.

形成叠层影像的过程可以参考图3A至图3D示意显示的例图。For the process of forming a laminated image, reference may be made to the schematic diagrams shown in FIGS. 3A to 3D .

图3A示意表示有一第一影像301,此可如前述实施例的背景影像或背景对象。图3B显示为作为前景物件(或贴图)的第二影像302。图3C显示在第一影像301设有一作为屏蔽的第三影像303,可如前述的屏蔽影像。FIG. 3A schematically shows a first image 301, which can be like the background image or background object in the foregoing embodiments. FIG. 3B shows a second image 302 as a foreground object (or texture). FIG. 3C shows that a third image 303 serving as a mask is set on the first image 301 , which can be the same as the aforementioned mask image.

接着在图3D形成最终叠层影像304,也就是将第二影像302移进作为屏蔽的第三影像303时,重叠的影像会被遮蔽,而显示出第二影像302被第一影像301的特定区域所遮蔽,最后形成未被遮蔽的部分,如图示的屏蔽后第二影像302’。最后即形成第一影像301与屏蔽后第二影像302’叠合形成的叠层影像304。Then, when the final laminated image 304 is formed in FIG. 3D, that is, when the second image 302 is moved into the third image 303 as a mask, the overlapped image will be shielded, and the second image 302 is displayed by the specific image of the first image 301. The masked area finally forms an unmasked part, as shown in the second image 302' after masking. Finally, the laminated image 304 formed by superimposing the first image 301 and the masked second image 302' is formed.

图4A至图4D则是示意显示影像叠层处理方法可以提供使用者设定多个屏蔽的步骤流程。FIGS. 4A to 4D are schematic diagrams showing the steps in which the image overlay processing method can provide users with setting multiple masks.

此例在图4A显示有具有三个背景对象的背景影像,包括有背景对象一401、背景对象二402与背景对象三403。而图4B显示有一可让用户操作移动位置、大小或角度的前景物件404。In this example, FIG. 4A shows a background image with three background objects, including a background object one 401 , a background object two 402 and a background object three 403 . However, FIG. 4B shows a foreground object 404 that allows the user to operate and move the position, size or angle.

此实施例提供用户可以根据预定的图形设定多个屏蔽,也就是用户可以随意在背景影像上设定多处可遮蔽第二影像302的屏蔽影像,让如前述屏蔽后第二影像302’具有多处被遮蔽的区域。如图4C显示,在背景对象一401上形成有屏蔽影像一405,例如用户可以使用软件工具以手势或其他选择某图形区块的方式决定此屏蔽区域;另在背景对象三403上形成另一屏蔽,利用类似方式产生屏蔽影像二406。This embodiment provides that the user can set multiple shields according to a predetermined graphic, that is, the user can set multiple shielding images on the background image that can cover the second image 302 at will, so that the second image 302' has a Multiple shaded areas. As shown in Figure 4C, a masking image 1 405 is formed on the background object 1 401. For example, the user can use software tools to determine the masking area by gestures or other methods of selecting a certain graphic block; another image is formed on the background object 3 403. Masking, using a similar method to generate masking image 2 406 .

需一提的是,形成的屏蔽影像(405、406)在系统运作时将于此阶段暂存于内存中,并能有某种图案形式在显示屏幕上呈现给使用者查看与确认。It should be mentioned that the formed shielding images (405, 406) will be temporarily stored in the memory at this stage during system operation, and can be presented in a certain pattern form on the display screen for users to check and confirm.

之后如图4D所示,让使用者移动前景物件404进入背景对象一401、背景对象二402与背景对象三403当中,在此阶段相关软件程序将随时结合屏蔽影像(405、406)与前景物件404,形成暂存于内存中的新的影像,当用户移动后确认前景物件404位置,即与背景影像叠合形成屏蔽后前景物件404’,其显示重叠到屏蔽位置的部分被隐藏在后的视觉效果。Afterwards, as shown in FIG. 4D , let the user move the foreground object 404 into the background object 1 401 , background object 2 402 and background object 3 403 . At this stage, the relevant software programs will combine the masked images ( 405 , 406 ) with the foreground object at any time. 404, forming a new image temporarily stored in the memory, and confirming the position of the foreground object 404 after the user moves, that is, overlapping with the background image to form a masked foreground object 404', which shows that the part overlapped to the masked position is hidden behind Visual effects.

在本发明影像叠层处理方法提供的机制下,可以让前景影像或对象为一动画(animation),而仍有视觉上隐藏在特定背景对象后的效果,实施例可参阅图5A至图5D。Under the mechanism provided by the image overlay processing method of the present invention, it is possible to make the foreground image or object an animation, while still visually hiding the effect behind a specific background object. For example, refer to FIG. 5A to FIG. 5D .

图5A显示背景影像有至少两个背景对象,包括背景对象一501(显示如一大楼)与背景对象二502(显示如一远山)。图5B显示有一前景影像503(显示如一月亮),特别以一箭头表示此前景影像503为一动态影像,例如是一个循环变化的动画。FIG. 5A shows that the background image has at least two background objects, including background object one 501 (shown as a building) and background object two 502 (shown as a distant mountain). FIG. 5B shows a foreground image 503 (shown as a moon), especially an arrow indicates that the foreground image 503 is a dynamic image, such as a cyclically changing animation.

图5C显示用户可以在背景对象一501上的某处设定一个屏蔽影像一504,也就是在预定让前景影像503隐藏在背景对象一501后的位置形成屏蔽影像一504,经套用在前景影像503时,形成屏蔽后前景影像503’,也就产生视觉上月亮(前景影像503)被大楼(背景对象一501)遮蔽的效果。此时,背景对象二502尚未设定屏蔽。Figure 5C shows that the user can set a masking image 1 504 somewhere on the background object 1 501, that is, a masking image 504 is formed at a position where the foreground image 503 is predetermined to be hidden behind the background object 1 501, and is applied to the foreground image At 503 , a shielded foreground image 503 ′ is formed, which visually produces the effect that the moon (foreground image 503 ) is blocked by the building (background object one 501 ). At this point, background object two 502 has not been masked.

图5D接着显示在背景对象二502上形成屏蔽影像二505,也就是让前景影像503不仅被背景对象一501遮蔽,也被背景对象二502所遮蔽,因为屏蔽影像一504与屏蔽影像二505与前景影像503结合时会实时形成暂存于系统内存的影像,经确认位置后,形成屏蔽后前景影像503”。整体形成一个前景为动画的叠层影像。Fig. 5D then shows that a masking image 2 505 is formed on the background object 2 502, that is, the foreground image 503 is not only covered by the background object 1 501, but also is covered by the background object 2 502, because the masking image 1 504 and the masking image 2 505 are in the same When the foreground image 503 is combined, an image temporarily stored in the system memory will be formed in real time. After the location is confirmed, the masked foreground image 503" will be formed. A laminated image with an animated foreground is formed as a whole.

相关影像叠层处理方法实施例可参考图6所示的流程。在此实施例中,影像叠层处理方法应用于一计算机系统中,计算机系统可以为一般计算机装置、移动装置等,以一软件程序提供一个操作环境让用户操作选择影像与设定屏蔽。For an embodiment of the related image overlay processing method, please refer to the flowchart shown in FIG. 6 . In this embodiment, the image overlay processing method is applied to a computer system. The computer system can be a general computer device, a mobile device, etc., and a software program provides an operating environment for the user to select images and set masks.

方法开始如步骤S601,自一个数据库,或是实时拍摄影像而选定多张影像,实时拍摄影像也可暂存至一计算机系统的内存中,实施例也不排除以其他形式存储的记忆媒体。再由这些影像中设定一背景影像(步骤S603)与至少一前景影像(步骤S605),接着提供用户通过一用户接口在背景影像上设定一屏蔽范围(步骤S607),屏蔽的设定可参考图8显示的流程,但不排除其他选取特定影像区域的方式,而屏蔽数量也不限定于特定数量,使得所述前景影像上可具有配合背景影像的多处被遮蔽的区域。The method starts as in step S601, selecting multiple images from a database or real-time shooting images. The real-time shooting images can also be temporarily stored in a computer system memory, and the embodiment does not exclude memory media stored in other forms. Then set a background image (step S603) and at least one foreground image (step S605) from these images, and then provide the user with a user interface to set a shielding range on the background image (step S607), the setting of shielding can be Referring to the process shown in FIG. 8 , other methods of selecting a specific image area are not excluded, and the number of masks is not limited to a specific number, so that the foreground image can have multiple masked areas matching the background image.

之后如步骤S609,以软件方法套用屏蔽范围于前景影像,使得背景影像上设为屏蔽区域的影像遮蔽前景影像上与屏蔽影像的叠合区域,重绘画面时可形成新的前景影像,如步骤S611。其中,因为软件方法允许前景影像与屏蔽范围实时结合,在未决定被遮蔽的前景影像位置时,重绘而实时产生新的前景影像,这个前景影像也实时暂存在内存中。最后,如步骤S613,经确认前景影像位置、大小、角度等样式后,形成一叠层影像。此方法还允许背景影像或其中背景对象可为静态或动态影像,而前景影像可为一动画,且让用户调整前景影像时,可以随意调整其位置、大小、角度。Afterwards, as in step S609, the masking range is applied to the foreground image by software, so that the image set as the masking area on the background image covers the superimposed area on the foreground image and the masking image, and a new foreground image can be formed when the screen is redrawn, as in the steps S611. Among them, because the software method allows the foreground image to be combined with the masked range in real time, when the position of the masked foreground image is not determined, a new foreground image is redrawn in real time, and this foreground image is also temporarily stored in the memory in real time. Finally, in step S613 , after confirming the position, size, angle, etc. of the foreground image, a laminated image is formed. This method also allows the background image or the background object therein to be a static or dynamic image, while the foreground image can be an animation, and allows the user to freely adjust its position, size, and angle when adjusting the foreground image.

图7显示为本发明影像叠层处理方法的另一实施例流程。此流程表示所述的各种影像并无需分别为前景或背景,而方法可适用于具有各种影像对象的画面中。FIG. 7 shows the process flow of another embodiment of the image overlay processing method of the present invention. This flow shows that the various images mentioned above do not need to be foreground or background respectively, and the method can be applied to frames with various image objects.

先自数据库71取得至少两张影像(步骤S701),这些影像可以随用户喜好设定至少有第一影像与第二影像(步骤S703),选定后,将先暂存于系统的内存72中,并提供用户接口让用户在所选定的影像上设定屏蔽,此例比如在第一影像上形成屏蔽,此屏蔽涵盖范围形成第三影像(步骤S705),第三影像将暂存至内存72。在一实施例中,此时,计算机系统可直接自内存72取得所述的第一影像、第二影像与第三影像,直接叠合这些影像后形成一叠层影像。First obtain at least two images from the database 71 (step S701), these images can be set at least the first image and the second image according to the user's preference (step S703), after selection, they will be temporarily stored in the system memory 72 , and provide a user interface to allow the user to set a mask on the selected image, for example, a mask is formed on the first image, and the coverage of the mask forms a third image (step S705), and the third image will be temporarily stored in the memory 72. In an embodiment, at this time, the computer system may directly obtain the first image, the second image and the third image from the memory 72, and directly superimpose these images to form a laminated image.

但仍如本图标的流程实施例,方法接着自内存72取得第二与第三影像,结合后(步骤S707),可使得第一影像中设为屏蔽区域的影像遮蔽原第二影像,使得重叠部分可产生以第三影像遮蔽第二影像的效果。However, still as in the flowchart embodiment of this icon, the method then obtains the second and third images from the memory 72, and after combining them (step S707), the image set as the masked area in the first image can be made to cover the original second image, so that the overlapping Partially produces the effect that the second image is covered by the third image.

方法提供在于第二影像上套用第三影像的步骤在重绘(redraw)时实时处理,也就是系统让用户可以随时改变第二影像的样貌,包括位置、大小与角度,系统则能随时取得叠合第一、第二与第三影像的画面,当用户确认第二影像位置后,程序将终止,形成叠层影像(步骤S709),将此最后影像存储到数据库71。The method provides that the step of applying the third image on the second image is processed in real time during redraw, that is, the system allows the user to change the appearance of the second image at any time, including the position, size and angle, and the system can obtain it at any time After the user confirms the position of the second image, the procedure will be terminated to form a laminated image (step S709 ), and the final image will be stored in the database 71 .

根据实施例的一个,上述第一影像虽不限,但可为背景影像;第二影像可设为前景影像,第三影像即为设定背景影像中某区域为屏蔽的屏蔽影像,使得第一影像遮盖前景影像上与屏蔽影像的叠合区域。According to one embodiment, the above-mentioned first image is not limited, but it can be a background image; the second image can be set as a foreground image, and the third image is a mask image that sets a certain area in the background image as a mask, so that the first The image covers the overlapping area of the mask image on the foreground image.

图8接着描述影像叠层处理方法中形成屏蔽影像的实施例流程。FIG. 8 then describes the flow of an embodiment of forming a mask image in the image lamination processing method.

上述用户接口可为计算机系统或特定终端装置上的触控屏幕,可如步骤S801所示,先以触控屏幕显示背景影像,让用户以手势触碰背景影像上某区域,如步骤S803,连续产生在此区域上的触控信号,经信号处理后,判断出一个屏蔽范围,如步骤S805,并于确认后形成一屏蔽影像,如步骤S807。The above-mentioned user interface can be a touch screen on a computer system or a specific terminal device. As shown in step S801, the background image is first displayed on the touch screen, and the user is allowed to touch a certain area on the background image with gestures, as shown in step S803. The touch signal generated on this area is processed to determine a masking range, as in step S805, and a masking image is formed after confirmation, as in step S807.

在形成屏蔽影像的步骤中,可依据背景影像中的至少一个对象的轮廓所形成,用以套用前述如前景影像的第二影像而形成新的前景影像,使得叠合新的前景影像与背景影像时,形成视觉上以至少一个对象遮蔽前景影像的叠层影像。方法也让用户设定多个不同位置的屏蔽影像,让叠层影像显出多层次的视觉效果。In the step of forming a mask image, it can be formed according to the outline of at least one object in the background image, and used to apply the aforementioned second image such as the foreground image to form a new foreground image, so that the new foreground image and the background image are superimposed When , a laminated image in which the foreground image is visually covered by at least one object is formed. The method also allows the user to set a plurality of masking images at different positions, so that the laminated images can show multi-layered visual effects.

是以,根据公开书所载实施例,本发明实施例所公开的影像叠层处理方法是以在背景影像上设定屏蔽的机制产生可以遮蔽前景影像的视觉效果,不同于现有技术是以事先裁切影像的方式。本发明还提出一种执行前述方法的影像叠层处理系统,运行如一计算机系统,具有一处理器与一内存,以处理器执行内存中存储的一程序集,以执行如图6至图9所述影像叠层处理方法的实施例流程。Therefore, according to the embodiment contained in the publication, the image overlay processing method disclosed in the embodiment of the present invention uses a mechanism of setting a mask on the background image to produce a visual effect that can cover the foreground image, which is different from the prior art that uses How to pre-crop the image. The present invention also proposes an image overlay processing system for executing the above-mentioned method, which operates as a computer system, has a processor and a memory, and uses the processor to execute a program set stored in the memory, so as to execute as shown in Figures 6 to 9 The embodiment flow of the image stacking processing method is described.

而以上所述仅为本发明的较佳可行实施例,非因此即局限本发明的专利范围,故举凡运用本发明说明书及图示内容所为的等效结构变化,均同理包含于本发明的范围内,合予陈明。The above description is only a preferred feasible embodiment of the present invention, and does not limit the patent scope of the present invention. Therefore, all equivalent structural changes made by using the description and illustrations of the present invention are equally included in the present invention. Within the scope of cooperation with Chen Ming.

Claims (15)

1. a kind of image lamination processing method, it is characterised in that the method includes:
At least two images are obtained from a computer system;
In this at least two images, one first image and one second image are set;
By a user interface, cover at least one shielding in a region in setting on first image, form one the 3rd image;With And
First image, second image and the 3rd image are overlapped, forms a lamination image.
2. image lamination processing method as claimed in claim 1, it is characterised in that first image is quiet with second image State or dynamic image.
3. image lamination processing method as claimed in claim 2, it is characterised in that the 3rd image causes first image The image in the region covers the congruent region with the 3rd image on second image.
4. image lamination processing method as claimed in claim 3, it is characterised in that second image for position, size and/or The either statically or dynamically image of adjustable angle.
5. image lamination processing method as claimed in claim 1, it is characterised in that in set on first image this at least One shielding includes one or more place's shielding images, so that second image has the shielded region in one or more places.
6. the image lamination processing method as described in any claim in claim 1 to 5, it is characterised in that the user connects Mouth is a Touch Screen, and setting the mode of the shielding includes:
First image is shown with the Touch Screen;And
The touching signals that the Touch Screen produces the corresponding region with a gesture are received, form the shielding for covering the region.
7. a kind of image lamination processing method, applied in a computer system, it is characterised in that the method includes:
At least two images are obtained from a memory of the computer system;
In this at least two images, a background video and a prospect image are set;
The background video is shown with a Touch Screen, the touch-control in an at least region is covered in generation on the Touch Screen with a gesture Signal, forms at least one shielding image;And
The background video, the shielding image and the prospect image are overlapped, forms a lamination image.
8. image lamination processing method as claimed in claim 7, it is characterised in that the background video has at least one for one The either statically or dynamically image of object;The prospect image is an either statically or dynamically image.
9. image lamination processing method as claimed in claim 8, it is characterised in that in overlap the background video, this at least one Shielding image is formed before the lamination image with the prospect image, is applied mechanically at least one shielding image prior to the prospect image, is made The image for obtaining the region on the background video covers congruent region on the prospect image with the shielding image, redraws that to form one temporary The new prospect image being stored in the memory of the computer system, forms the lamination image after confirmation.
10. image lamination processing method as claimed in claim 9, it is characterised in that the shielding image is according to the background shadow The profile of at least one object as in is formed, and is applied mechanically the prospect image and formed the new prospect image so that overlapping When the new prospect image is with the background video, the lamination that the prospect image is visually covered with least one object is formed Image.
11. image lamination processing method as claimed in claim 10, it is characterised in that the prospect image for position, size with/ Or the either statically or dynamically image of adjustable angle.
12. image lamination processing method as claimed in claim 11, wherein at least screen set on the background video Image is covered, so that the prospect image has the shielded region in one or more places.
13. the image lamination processing method as described in any claim in claim 7 to 12, it is characterised in that by this A select tools on Touch Screen set the background video and the prospect image, and in setting the shielding on the background video Scope, wherein forming the method for the shielding image includes:
The background video is shown with the Touch Screen;
The touching signals that the Touch Screen produces the corresponding region with the gesture are received, which forms the shielding image;With And
Keep in the shielding image.
14. image lamination processing method as claimed in claim 13, it is characterised in that show being somebody's turn to do for the background video in providing On Touch Screen, which is that one performed along the contour edge of a special object on the background video erases action, by this Touch Screen produces the touching signals of the corresponding action of erasing, which covers the region.
15. a kind of image lamination processing system, it is characterised in that there is a processor and a memory, being performed with the processor should The procedure set stored in memory, to perform the image lamination processing method as described in claim 1 or 7.
CN201610925596.5A 2016-10-24 2016-10-24 Image lamination processing method and system Pending CN107978009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610925596.5A CN107978009A (en) 2016-10-24 2016-10-24 Image lamination processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610925596.5A CN107978009A (en) 2016-10-24 2016-10-24 Image lamination processing method and system

Publications (1)

Publication Number Publication Date
CN107978009A true CN107978009A (en) 2018-05-01

Family

ID=62004779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610925596.5A Pending CN107978009A (en) 2016-10-24 2016-10-24 Image lamination processing method and system

Country Status (1)

Country Link
CN (1) CN107978009A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109364487A (en) * 2018-10-10 2019-02-22 苏州好玩友网络科技有限公司 A kind of methods of exhibiting and system of customized object and scene based on the trip of mobile terminal hand
CN114187391A (en) * 2021-12-17 2022-03-15 上海米哈游海渊城科技有限公司 Image processing method, system and equipment based on offline data and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004234549A (en) * 2003-01-31 2004-08-19 Canon Inc Real object model creation method
US20080036789A1 (en) * 2006-08-09 2008-02-14 Sony Ericsson Mobile Communications Ab Custom image frames
CN201178467Y (en) * 2007-12-27 2009-01-07 黄振强 Interactive floor/wall system
US20120092357A1 (en) * 2010-10-14 2012-04-19 Microsoft Corporation Region-Based Image Manipulation
US8406566B1 (en) * 2010-05-27 2013-03-26 Adobe Systems Incorporated Methods and apparatus for soft edge masking
CN103429422A (en) * 2011-01-12 2013-12-04 小利兰斯坦福大学理事会 Composite laminate structure and methods of making and using same
TWI546772B (en) * 2015-11-18 2016-08-21 粉迷科技股份有限公司 Method and system for processing laminated images

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004234549A (en) * 2003-01-31 2004-08-19 Canon Inc Real object model creation method
US20080036789A1 (en) * 2006-08-09 2008-02-14 Sony Ericsson Mobile Communications Ab Custom image frames
CN201178467Y (en) * 2007-12-27 2009-01-07 黄振强 Interactive floor/wall system
US8406566B1 (en) * 2010-05-27 2013-03-26 Adobe Systems Incorporated Methods and apparatus for soft edge masking
US20120092357A1 (en) * 2010-10-14 2012-04-19 Microsoft Corporation Region-Based Image Manipulation
CN103429422A (en) * 2011-01-12 2013-12-04 小利兰斯坦福大学理事会 Composite laminate structure and methods of making and using same
TWI546772B (en) * 2015-11-18 2016-08-21 粉迷科技股份有限公司 Method and system for processing laminated images

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109364487A (en) * 2018-10-10 2019-02-22 苏州好玩友网络科技有限公司 A kind of methods of exhibiting and system of customized object and scene based on the trip of mobile terminal hand
CN114187391A (en) * 2021-12-17 2022-03-15 上海米哈游海渊城科技有限公司 Image processing method, system and equipment based on offline data and computer readable storage medium

Similar Documents

Publication Publication Date Title
TWI546772B (en) Method and system for processing laminated images
US12307580B2 (en) Methods for manipulating objects in an environment
Reipschläger et al. Designar: Immersive 3d-modeling combining augmented reality with interactive displays
US8007110B2 (en) Projector system employing depth perception to detect speaker position and gestures
US7663620B2 (en) Accessing 2D graphic content using axonometric layer views
US9582142B2 (en) System and method for collaborative computing
TW201510877A (en) System and method to reduce display lag using image overlay, and accelerator for providing feedback in response to path drawn on display device
JP3705826B2 (en) Virtual three-dimensional window display control method
US20140129992A1 (en) Preview cursor for image editing
CN104123031B (en) Pattern interchange method and related multi-point touch device
Ha et al. ARtalet: tangible user interface based immersive augmented reality authoring tool for Digilog book
US9035953B1 (en) Systems and methods for computer-assisted drawings
EP2544082A1 (en) Image display system, information processing apparatus, display apparatus, and image display method
CN107978009A (en) Image lamination processing method and system
US8938131B1 (en) Apparatus and method for registration of flat panel display device and imaging sensor, and electronic device having flat panel display device and imaging sensor which are registered using the method
CN105912101A (en) Projection control method and electronic equipment
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
US20070146392A1 (en) System and method for magnifying and editing objects
JP5767371B1 (en) Game program for controlling display of objects placed on a virtual space plane
CN104898937A (en) Window display method and device
JP2013080466A (en) Method and device for processing document image
JP6352766B2 (en) Information processing apparatus, information processing program, and information processing method
US9959637B2 (en) Method and apparatus for processing border of computer figure to be merged into background image
US20230127260A1 (en) Image processing method using transparent flat plate, and apparatus for performing same
CN107895388B (en) Method and device for filling colors of graph, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180501