1225368 五、發明說明(1) 【發明之技術領域】 本發明係為一種圖像處理方法,特別是一種圖像過場 動畫特效的生成及播放方法。 【先前技術】 仏田7 W I因人電腦和各種掌上型電子設備中,用戶越 來越關注電子產品的生動性和易用性,以及各種資訊的表 ,統的以單一文字為主的模式已經逐漸被圖文甚至 音並茂表現方式所取代。夂播咨 者、 現=’,1寻既的以單一文字為主的模式已經逐漸被圖文甚 亚戊表現方式所取代。各種資訊以文字、圖像動畫、 耳曰相〜a的方式生動的表現在使用者面前,極大的增強 I ί t產品對貧訊的表現力,提高了人性化程度和產品的 加具有競ΪΓ寻擁有這些特性的數位產品較以往的產品更 在目前使用的圖像動晝中,妳 ;兩:貞圖像加入某種特殊過渡特:: 克、矩形漸入漸出等,浐揭Τ ^ 拉幕效果、馬賽 小動畫的大小。&樣不但增添觀賞效果,同時也二 貫現的 中,這些過渡特效都是通過特跌 在手效對應一種演算法)。由c算法來 產生方法面臨著傷以^ ’傳統的備 色圖像資“果的問;特: ,”·丨里兮丄υ〇χ 〇 η 現在使用較多的4Κ色解;Κ :機if ::原先解析度為1 〇〇:Πΐί大了十幾 ,而:上:::?量為1ο〇χ…8!=的黑i Οχ ? 0 〇byte: 2 0點陸 1225368 五、發明說明(2) 的彩色手機螢幕整 2 8 8 0 Obytes < 他處理’這些使得 大了數十倍,雖然 增加的運算量相比 有選擇較強的處理 同時,特效的 式設計人員根據美 程式的編寫工作量 大,而且通過程式 前的設計創意往往 要進行進一步的修 的時間和人力條件 動畫。 〇x 1.5= 相關的一此其 量也就比以前 所增加,但和 處理速度,只 體的成本。 製作過程是程 但是此類特效 雜而變得龐 特效與美工之 異,可能還需 碼量,在有限 畐的特效過場 屏資料量為1 6 〇 X 1 2 ,並且有時還要進行與?色 進行特效所需的總體運算 數位设備的處理能力也有 仍有很大差距。為了提高 器,然而這樣就增加了硬 設計是由美工完成的,而 工的設計蝙寫特效程式, 通,會因為特效的種類複 人員設=的裎式所實現的 會存在著這樣或那樣的差 改,更加增加了程式的代 的限制下,無法製作出豐 高效生成及播放圖像過渡 此時,就需要一種能簡單 特效方法來解決上述問題。 【發明内容】 有ΐ於此’本發明為解決上述問題而提ώ 了一種圖德 過場動旦特效的生成及播放方法,其目的在於提供一種, 夠簡单’南效的生成和播放特效過場動晝的方法。-本發明提出了一種圖傍# 4 u 法,包括如下步驟:首Γΐ:;動“晝ffr成及播放方 作特效杈板組圖,然後根據該 模板組圖成特效描述表,設定過場動畫的特效標識,: 取過場動晝圖4,並根據該標識讀取對應的特效描述表'、1225368 V. Description of the Invention (1) [Technical Field of the Invention] The present invention is an image processing method, particularly a method for generating and playing an image cut-scene animation effect. [Previous technology] Putian 7 WI Because of personal computers and various handheld electronic devices, users are increasingly concerned about the vividness and ease of use of electronic products, as well as various information tables. The unified single text-based model has been Gradually replaced by graphic and even musical expression. As a broadcast consultant, the current single-character model has gradually been replaced by the graphic and textual representation. All kinds of information are vividly presented in front of the user in the form of text, image animation, and earphones, a, which greatly enhances the expression of the product to poor news, improves the degree of humanization and the competition of the product. Find digital products with these characteristics more than previous products in the current image dynamics, you; two: Zhen image added a special transition features: grams, rectangular fade-in and fade-out, etc. ^ ^ Curtain effect, the size of Marseille small animation. & samples not only increase the ornamental effect, but also consistently, these transition effects are special algorithms corresponding to hand effects). The method generated by the c algorithm faces the problem of the traditional color-prepared image resources. "The question of fruit; special :," · 里 里 丄 〇υ〇χ 〇η now uses more 4K color solutions; Κ: machine if :: The original resolution is 1 〇〇: Πΐί is more than a dozen, and: 上 :::? The amount of black is 1ο〇χ… 8! = Black i Οχ? 0 〇byte: 2 0 points Lu 1225368 Fifth, the color mobile phone screen of the invention description (2) whole 2 8 0 0 Obytes < He dealt with 'these make the number too large Ten times, although the increase in the amount of calculation is stronger than the selective processing. At the same time, the special-effects designer has a lot of work to write according to the US program, and the design creativity before the program often requires further repair time and manpower conditions. Animation. 〇x 1.5 = The amount of this is increased compared to the previous one, but it is related to the processing speed and the cost alone. The production process is a process. However, such special effects are mixed and become different. Special effects may be different from the artist. The code size may be required. In a limited number of special effects, the screen data volume is 16 0 X 1 2 and sometimes it is necessary to perform AND? There is still a large gap in the processing power of digital devices for the overall operations required to perform special effects. In order to improve the device, however, this adds the hard design is completed by the artist, and the designer's design writes special effects programs. Generally, there will be one or the other due to the type of special effects. Due to the limitation of program changes, the generation of programs cannot be produced efficiently. At this time, a simple special effects method is needed to solve the above problems. [Summary of the Invention] In order to solve the above-mentioned problem, the present invention provides a method for generating and playing a special effect of cut-and-scene motion. The purpose is to provide a method that is simple enough to generate and play special effects. Method of moving day. -The present invention proposes a picture method # 4 u method, including the following steps: first ΐ ΐ :; move "day ffr" and the player to make a special effect branch board group picture, and then according to the template group picture to create a special effect description table, set cut scene animation The special effect mark: Take the motion picture 4 and read the corresponding special effect description table according to the mark.
1225368 五、發明說明(3) ====圖片生成當前過場圖特效圖片,最後 成及播^方法相比,本發明提供的圖像過渡特效的生 效資料的特外Ϊ,通過制定特效模板,以及儲存了各種特 蚩,而雄二又,使用統一的播放函數來播放特效過場動 “ΐΪί 習知技術中複雜的特效編程,不但更加有 播放的效率工::::想、,更提高了特效過場動畫生成和 為了可能。 有V條件下製作和播放特效過程動晝成 下。有關本發明之詳細内容及方法,兹就配合圖示說明如 【實施方式】 ==、結,,圖對本發明進行詳細說明: 動畫該圖係為本發明所提之圖像過場 首先穿方法之總體流程圖,說明如ητ : 板組圖ί: ; ;;組圖(步驟;然後根據該模 讀取對應的:二V買取過場動晝圖片’並根據該標識 過場’是在動晝圖像中那些需要使用 圖片的數量m!所設置的標記,其數量與過場特致 里相同。其中包含了特效描述表類型的訊息。1225368 V. Description of the invention (3) ==== Pictures generate current cutscenes special effect pictures. Compared with the final method and broadcast method, the special effects of the image transition special effect validation data provided by the present invention, through the development of special effect templates, As well as storing various special effects, Yuji also uses a unified playback function to play special effects transitions. “Ϊ́Ϊί The complex special effect programming in the conventional technology is not only more efficient in playing, but also more effective. Cutscenes are generated and made possible. The process of making and playing special effects under V conditions changes day by day. For details and methods of the present invention, we will cooperate with the illustrations such as [Embodiment] ==, knot, and the figure shows the present invention. Detailed description: Animation This picture is the overall flowchart of the first cut-through method of the image cut-off mentioned in the present invention, such as ητ: plate group diagram ί:; ;; group diagram (steps; then read the corresponding : Two V bought the cut scene moving pictures 'and cut scenes according to the logo' are those in the moving day images that need to use the number of pictures m! Set the mark, the number of which is similar to the cut scene. Which contains a description of the effects of the type of the message table.
第7頁 1225368 五、發明說明(4) 及畫圖片分別為過場動晝發生前的一幀圖片,以 ^ m η ^ ^ ^曼 幀囷片,過場動晝的特效將在這兩 頓圖片的播放過場中播放。 放時播:ί场特效圖片後’當還有其他過場動晝需要播 返回f買取過場動畫圖片,並根據該標識讀取對 應的特效描述表之步驟,繼續料 ^ /诹▲只對尚未播放的過場特效圖片 =仃處理及播放,直到所有的過場特效圖片全部播放完 畢0 =1 $牲第2圖』’s亥圖係為本發明所提之根據該模 板組圖生成特效描述表之流程圖,說明如下: 首先根據該模板組圖内圖片的數量確定特效的總幢數 (步驟2::;然後讀取該模板組圖中前後兩巾貞模板圖片 (步驟220 ),比較兩幀該模板圖片中的差里(步驟 230);將該總巾貞數及差異作為特效訊息儲存到特效描述 表中(步驟240),最後進入步驟13〇。 因為每一鴨特效都對應著一幅特效模板組圖内的圖 片,所以該杈板組圖内圖片的數量與特效的總幀數是相同 的。 特效的播放過程中,备一 ^ Ir^ ^ ^ u 母幀都疋根據不同的模板圖片 生成的,板3片之間存在這一些差異,通過統計這些差 異訊息就能'邊的瞭解它們之間的异同,肖差異訊息記錄 了過場動晝特效生成過程中每一幀需要改變的資料的位 置。 、 特效表中記錄了該特效的總巾貞數,差異訊息,所對應Page 7 1225368 V. Description of the invention (4) and the picture is a frame picture before the cinematic scene, with ^ m η ^ ^ ^ Man frame sepia, the special effects of the cinematic scene will be in the two pictures. Play cutscenes. Play on time: after the special effect picture, when there are other cut scenes, you need to broadcast back to f to buy cut scene animation pictures, and read the corresponding special effect description table according to the logo. Continue the material ^ / 诹 ▲ Only for those that have not yet been played Transition effect picture = 图片 process and play until all transition effect pictures have been played back 0 = 1 $ sat 2nd picture 's Hai diagram is the process of generating a special effect description table based on the template set picture mentioned in the present invention The diagram is explained as follows: First, the total number of special effects is determined according to the number of pictures in the template group picture (step 2 ::; then read the template pictures in the template group picture before and after the two towels (step 220), and compare the two frames. The difference in the template picture (step 230); the total number of frames and the difference are stored as special effect information in the special effect description table (step 240), and finally enter step 13. Because each duck special effect corresponds to a special effect The pictures in the template group picture, so the number of pictures in the branch board group picture is the same as the total number of frames of the special effect. During the special effect playback, prepare one ^ Ir ^ ^ ^ u The mother frame is based on different template pictures Generated, There are some differences between the three films. You can understand the similarities and differences between them by counting the difference information. The Xiao difference message records the position of the data that needs to be changed in each frame during the generation of the cinematic special effects. The table records the total number of frames of the special effect, the difference information, and the corresponding
第8頁 1225368 五、發明說明(5) 的特效標識等。 將該總幀數及差異作為特效訊息儲存到特效表中後, 當還有需要進行特效處理的下一幀圖片時,返回讀取該模 板組圖中如後兩巾貞权板圖片之步驟’繼績對下^ 一中貞圖片進 行處理,直到所以的特效圖片都處理完畢。 請參見『第3圖』,該圖係為本發明所提之讀取過場 動晝圖片及對應的特效描述表之流程圖,說明如下: 言先讀取需要進行特效處理的過場動晝中前後兩巾貞圖 片(步驟3 1 0 );然後根據該標識讀取特效表中儲存的對 應特效訊息(步驟3 1 0 ),最後進入步驟1 5 0。 請參見『第4圖』,該圖係為本發明所提之根據該特 效描述表及圖片生成當前過場圖特效圖片之流程圖,說明 如下: 首先讀取對應的特效描述表中過程動晝當前幀的差異 信息(步驟4 1 0 );然後根據該特效訊息,將過場動畫的 圖片合成為當前過場圖特效圖片(步驟420 ),最後進入 步驟1 6 0。 下面用一個具體的實例對本發明的流程進行說明。 過場動晝特效的製作過程步驟如下: 首先,美工根據需求,對特效的效果進行創意。請參 見『第5圖』,該圖係為本發明所提之特效使用效果圖之 示意圖,該圖中5_卜5_4四幅圖是創意的一種實例。 然後’根據上述特效使用效果圖制定出相應的特效核 板組,請參見『第6圖』,該圖係為本發明所提之特效模Page 8 1225368 V. Special Effect Marking of Invention Description (5). After storing the total number of frames and the difference as the special effect information in the special effect table, when there is still the next frame picture that needs special effect processing, return to the step of reading the template group picture such as the next two pictures of chastity board. Following the performance, the next ^ Zhongzhen pictures are processed until all the special effect pictures are processed. Please refer to "Figure 3", which is a flow chart for reading the pictures and corresponding special effect description table of the cinematic motions mentioned in the present invention, which are explained as follows: Two towel pictures (step 3 1 0); then read the corresponding special effect information stored in the special effect table according to the identification (step 3 1 0), and finally enter step 1 50. Please refer to "Figure 4", which is a flow chart for generating a current transition picture special effect picture based on the special effect description table and picture according to the present invention, which is explained as follows: First, read the corresponding process description in the special effect description table. Frame difference information (step 4 1 0); and then, according to the special effect information, synthesize the picture of the cutscene into the current picture effect (step 420), and finally go to step 160. The following describes the process of the present invention with a specific example. The steps in the production of cinematic special effects are as follows: First, the artist creates creative effects according to his needs. Please refer to "Figure 5", which is a schematic diagram of the special effect use effect picture mentioned in the present invention. The four pictures 5_b 5_4 in the figure are examples of creativity. Then ’according to the above-mentioned special effect use effect chart to develop the corresponding special effect core board group, please refer to" Figure 6 ", which is the special effect model mentioned in the present invention
五、發明說明(6) 板組圖之示意圖,該圖令 一 的一種實例。 〜6 —4四幅圖是特效模板組圖 接下來,就需要根撼 描述表:根據特效圖片的數^^效,板組内的圖另生成特效 產生前後的兩幀特效模拓,確疋特效總幀數,讀取特效 來,與特效總幀數一起作:’亚將其之間的差異統計出 中。 〜寺效訊息儲存到特效描述表之 然後在動晝圖像令,兩 置特效標•,根•該標;:J : ~動晝特效的地方設 具體類型。 瞭解所對應的特效描述表的 至此’過場動晝特、 用該特效時,步驟哦如^ :、衣過程就完成了。當需要使 首先,將讀取過場動查 生前的一傾圖片及發生後^ 一巾貞圖每動晝圖片就是特效發 在這兩幀圖片的播放過程中使用 ,過場動晝特效就是 將根據該標識讀取對應的特效描了不同的特效,所 然後二根據該特效描述表及圖=一 圖片。當丽過場圖特效圖生成s W過場圖特效 函數來進行的。該函數根據前一牛=通過一個統一的播放 對應的特效描述表内的特嗖訊φ (•勺中將根據該標識讀取 板圖片之間的差異等訊息二;要:括特效的總幀數,模 成為當前過場特效圖片。 進行特效處理的圖片合 取後’播放該當前過場特效圖片。V. Description of the invention (6) Schematic diagram of the board group diagram, which is an example of the first. ~ 6—4 The four pictures are the template set of special effects. Next, you need to shake the description table: according to the number of special effects pictures ^^, the pictures in the board group generate another two frames of special effects before and after the special effects are generated to confirm the special effects. The total number of frames, read the special effects, and make the total number of frames with the special effects: 'Ya will calculate the difference between them. ~ Temple effect information is stored in the special effect description table, and then in the moving day image order, two special effect marks •, root • the target;: J: ~ set the specific type of moving day special effect. Understand the corresponding special effect description table. At this point, “Crossfield moving day special”, when using this special effect, the steps such as ^ :, clothing process is complete. When you need to make the first, read the tilted picture before the scene check and after the occurrence ^ a towel picture every day of the picture is a special effect to use during the playback of these two frames of picture, the cut field of the day is based on the The logo reads the corresponding special effect to describe different special effects, so according to the special effect description table and picture = a picture. When the cutscene special effect map is generated, the cutscene special effect function is performed. This function is based on the previous one = playing a special message in the special effect description table through a unified play φ (• The spoon will read the difference between the board pictures and other information according to the logo; two: To include the total frame of the special effect The modulo becomes the current cutscene effect picture. After the effects are processed, the current cutscene picture is played.
第10頁 1225368 五、發明說明(7) 至此’播放的過程完畢。 另外,播放圖片有兩種方式,假定需要播放的特 將揭露書中的圖片從原始圖片漸變成空白圖片。需要= 2效處理的原始圖片為A,空白圖片為B,根據特效的效; 執制定出的特效模板圖片為M1、M2、M3、M4 圖中6 —卜6 一 4四幅圖),最後生成的特效圖片為pi P3、P4 (也就是第5圖中四幅圖)。 方法一: 首先讀入需要進行特效處理的圖片A及6,然 對應的Μ⑽之間的差異訊息,對圖“ $ j理,就可以得到過場圖片ρι ;然後根據特效表 ^ 的M2及M3之間的差異訊息,對圖片^及6進行合 、厂 :可?寻到過場圖片P2 ;以此類推,得到p 放Α,Π,?2旧心,6就能產生所需要的特效。員序插 方法二: 首先讀入需要進行特效處理 效表中對應的Μ1及M2之間的差里1 I ,以後根據特 ^ ^ρ; 的ΜΙ及M3之間的差異訊息,^據特效表中對應 可以得到過場圖片P2 ;以此類二仃合成處理’就 A,PI,P2,P3,P4,B就能產=到P3及P4 ’順序播放 方法-及二的差別就與::=特效。 幀的差異信息對當前得到的過^ > ^效表中前後兩 過場動畫,而第二種依據特 =仃处理生成下一幀 政表中W後兩幀的差異信息對 五、發明說明(8) 原始圖片進行處理生Page 10 1225368 V. Description of the invention (7) So far, the process of playing has been completed. In addition, there are two ways to play pictures. It is assumed that the picture in the special disclosure book that needs to be played fades from the original picture to a blank picture. The original picture that needs = 2 effect processing is A, and the blank picture is B, according to the special effect effect; the special effect template pictures that were developed are M1, M2, M3, and M4 (6—Bu6-4) in the picture), and finally generated The special effect pictures are pi P3, P4 (that is, the four pictures in Figure 5). Method 1: First read in the pictures A and 6 which need special effects processing, and then the difference information between the corresponding M⑽. For the picture “$ j, you can get the cut scene picture ρ; then according to the M2 and M3 of the special effect table ^ The difference information between the two, and the picture ^ and 6 are combined, factory: can find the cut-scene picture P2; and so on, get p put A, Π,? 2 old heart, 6 can produce the required special effects. Order Interpolation method two: First read in the difference between the corresponding M1 and M2 in the effect table that needs to be processed, 1 I, and then according to the difference information between M1 and M3 in the special effect table, ^ According to the corresponding effect table You can get the cut-scene picture P2; in this kind of two-synthesis processing, 'Only A, PI, P2, P3, P4, and B can be produced = to P3 and P4'. The sequential playback method-and the difference between the two and :: = special effects. The difference information of the frame is based on the current two-scenes animation in the effect table, and the second method is based on the special = 仃 processing to generate the difference information of the next two frames in the next frame. 8) The original picture is processed
是選用當前得到的過場動全場動晝。第-種方法是總 生成,P2與B生成,=成下—幀過場動畫(Pl與B :圖“行處理生成下1過都 ,文’提供較快放方法能產成豐富的特 獨立的過程,每種特效 ^的^寺效的生成是與播放 板圖片之間的差異生η::?的特效模 在特效描述表中保在τ牲Λ/、之一對應的特效描述表, 圖像等訊息。播放時,使n=數,及每—梢要改變的 同的特效選用不同^射、特效播放函數,根據不 成過場,。二圖像資料進行處理,從而生 而提高了顯示速仃度的運具基本上相當於位元組的拷貝,從 成,2完全#實1見^美==^ a ’法特效由美工的特效組圖生 而且炫麗的特效;、又…,而且可以產生許多複雜 ^ 杜1上特效的實現演算法非常簡單,實頊了 4士 非用來~ i ΐ,僅為本發明其中的較佳實施例而已,Tf 依本創作申請u 一 11多飾,白為本創作專利範圍所涵芸。 第12頁 1225368 圖式簡單說明 一- 第1圖係為本發明之圖像過場動畫特效的生 方法之主流程圖; 第2圖係為本發明所提之根據該模板組圖 述表之流程圖; 王成特效描 第3圖係為本發明所提之讀取過場動畫圖片及 特效描述表之流程圖; 及對應的 弟4圖係為本發明所提之根據該描 成當,圖特效圖片之流程圖; i及圖片生 第5圖係為本發明所提之特效使用效果圖之— 久 口 <不意圖; 【圖d系為本發明所提之特效模板組圖之亍- l 口式付唬說明】 < 不思圖。 步驟1 2 0 步驟1 3 0 步驟1 4 0 步驟1 5 0 步驟1 6 0 步驟21 0 步驟220 步驟230 ν驟110製作特效模板組圖 根,該模板組圖生成特效 設疋過場動晝的特效標識表 讀取過場動晝圖片, 的特效描述表 、该樑識讀取對應 根據該特效描述表及圖片生 效圖片 成§前過場圖特 播放該過場特效圖片 根據5亥模;4曰同^__ 供奴組圖内圖片旦 幀數 數里確定特效的總 項取該模板組圖中It is to use the currently obtained cut scene to move the whole scene. The first method is total generation, P2 and B generation, = into the next-frame cutscenes (Pl and B: Figure "Line processing to generate the next transition, the text" provides a faster way to produce rich and independent In the process, the generation of ^ temple effects of each special effect ^ is different from the picture of the play board. The special effect mode of η ::? Is maintained in the special effect description table corresponding to one of the special effect description tables. Information such as video. When playing, make n = number and the same special effect to be changed every time, choose different ^ shooting, special effect playback function, according to the non-scene, two image data is processed, which increases the display speed The degree of the vehicle is basically equivalent to a copy of the bytes. From the result, 2 completely # 实 1 见 ^ 美 == ^ a 'The method special effects are created by the special effects group of the artist and are dazzling special effects; and ... Can produce many complex ^ The implementation algorithm of the special effect on Du 1 is very simple. It has been used for 4 Shifei ~ i ΐ, which is only the preferred embodiment of the present invention. Tf is based on the application of this application. , Bai is covered by the scope of the patent for creation. Page 121225368 Schematic illustration 1-Figure 1 This is the main flow chart of the method of generating the cinematic animation special effects of the present invention; FIG. 2 is the flow chart of the description table according to the template set according to the present invention; The flow chart for reading the cut-scene animation picture and the special effect description table is provided; and the corresponding figure 4 is the flow chart of the special effect picture according to the description in the present invention; i and the picture 5 This is the effect drawing of the special effects mentioned in the present invention-Jiukou < not intended; [Figure d is the description of the special effect template set of the present invention-l mouth-type bluff description] < not thinking about the steps. 1 2 0 Step 1 3 0 Step 1 4 0 Step 1 5 0 Step 1 6 0 Step 21 0 Step 220 Step 230 The table reads the cut-off moving picture, the special effect description table, and the beam identification corresponding to the effective picture according to the special effect description table and the picture into a § before the cut-off picture to play the cut-off special effect picture according to the 5th model; Determine the total number of special effects in the number of pictures in the slave group Photos in the template
比較兩幀該模板圖片;:巾】:板圖片 1225368 圖式簡單說明 步驟2 4 0 將該總幀數及 描述表中 步驟3 1 0 讀取需要進行 幀圖片 步驟3 2 0 根據該標識言買 息 步驟41 0 讀取對應的特 差異信息 步驟420 根據該特效訊 當前過場圖特 差異作為特效訊息儲存到特效 特效處理的過場動畫中&後兩 取特效表中儲存的對應特效訊 效描述表中過場動晝當前幢的 息,將過場動畫的圖片合成為 效圖片Compare two frames of this template picture ;: towel]: board picture 1225368 The diagram briefly explains step 2 4 0 The total number of frames and the description in step 3 1 0 Read the frame picture required Step 3 2 0 Buy according to the logo Step 41 0 Read the corresponding special difference information. Step 420 According to the effect of the current cut scene, the special cut difference is stored as special effect information in the cutscenes of the special effect processing & the corresponding special effect description table stored in the last two effects tables. The mid-scene moves the current building's interest, and synthesizes the cut-scene animation into an effect picture.
I 第14頁I Page 14