200847779 .九、發明說明: .【發明所屬之技術領域】 本發明係有關於一種晝面模式(Picture Mode)決定方法 及系統,且特別有關於一種可以依據影像訊號自動決定晝 面模式之方法及系統。 【先前技術】 ^ 隨著資訊數位化的時代來臨,影像處理裝置,如顯示 #器與投影機的應用也日益廣泛與多樣化。舉例來說,使用 者可以利用電腦系統或影音播放器來播放電影,且透過顯 示器或投影機來將電影進行顯示或投影。類似地,顯示器 或投影機也可以用來進行簡報。 目前來說,顯示器與投影機可以提供多種晝面模式, 如電影模式、遊戲模式、相片模式、視訊模式、與簡報模 式等。每一種晝面模式具有其各自的設定。使用者可以依 據影像的性質來進行選擇。舉例來說,當播放電影時,使 ⑩用者可以將顯示器或投影機晝面模式切換至電影模式。透 過電影模式下的設定,影像释會較為逼真、柔和與舒適。 當進行簡報時,使用者可以將顯示器或投影機晝面模式切 換至簡報模式。透過簡報模式下的設定,影像將會較為清 晰與明亮。 在目前的機制中,使用者必須具備相關知識,且了解 影像性質及其適合晝面模式之間的關係。另外,使用者必 須清楚顯示器舆投影機的操作與設定方式,才可以完成晝 0535-A21907TWF(N2);A06283;YIANHOU 5 200847779 - 面模式的設定。對於一般缺乏相關知識的使用者而言,晝 . 面模式的功能將無法有效發揮。 【發明内容】 有鑑於此,本發明提供晝面模式決定方法及系統。 本發明實施例之晝面模式決定方法。首先,接收複數 影像,並於每一影像中定義複數個特定區域。依據每一影 - 像中相應特定區域中之複數像素的像素值分別計算一取樣 φ值。依據取樣值決定一晝面模式。 本發明實施例之晝面模式決定方法。首先,接收至少 一第一影像與一第二影像。依據第一影像中相應至少一特 定區域中之複數像素的像素值計算一第一取樣值,且依據 第二影像中相應至少一特定區域中之複數像素的像素值計 算一第二取樣值。依據第一取樣值與第二取樣值決定一畫 面模式。 本發明實施例之晝面模式決定系統包括一接收單元 _ 與一處理單元。接收單元接收至少一第一影像與一第二影 像。處理單元依據第一影像中相應至少一特定區域中之複 數像素的像素值計算一第一取樣值,且依據第二影像中相 應至少一特定區域中之複數像素的像素值計算一第二取樣 值。處理單元依據第一取樣值與第二取樣值決定一晝面模 式。 本發明上述方法可以透過程式碼方式收錄於實體媒體 中。當程式碼被機器載入且執行時,機器變成用以實行本 0535-A21907TWF(N2);A06283;YIANHOU 6 200847779 -發明之裝置。 - 為使本發明之上述目的、特徵和優點能更明顯易懂, 下文特舉實施例,並配合所附圖示,詳細說明如下。 【實施方式】 第1圖顯示依據本發明實施例之晝面模式決定系統。 依據本發明實施例之晝面模式決定系統1〇〇適用於一 •影像處理裝置,如顯示器或投影機等。晝面模式決定系統 • 100包括一接收單元110、一處理單元120、與一儲存單元 130。接收單元110由一主機(未顯示),如電腦系統或多媒 體播放器接收影像訊號140。處理單元120可以依據接收 單元110接收之影像決定影像處理裝置之晝面模式。儲存 單元130可以在處理單元130處理影像之前或之後儲存影 像及其相關資訊。值得注意的是,接收的影像將會被輸出 至一顯示單元(未顯示)或一投影單元(未顯示)以進行輸出。 第2圖顯示依據本發明實施例之晝面模式決定方法。 ⑩ 如步驟S210,接收複數個影像,並如步驟S220,計算 每一影像的一取樣值。 在本實施例中,每一影像中定義複數個特定區域,且 每一特定區域分別具有一權重。第3圖顯示影像中特定區 域之例子。如第3圖所示,在影像300中定義5個特定區 域Rl、R2、R3、R4與R5,其分別具有權重0.4、0.15、 0.15、0.15與0.15。值得注意的是,在每一影像中,其特 定區域的位置皆係相同的。此外,相應每一特定區域之權 0535-A2190 丌 WF(M2); A06283; ΥIANHOU 7 200847779 重並不限定於上述例子。 第4圖顯示依據本發明實施例之取樣值計算方法。如 步驟剛,計算影像巾減每—特定 值。值得注意的是,在—⑫實 ^像素千均 像辛平均值是仏“ 特定區域中的 傢畜十叼值疋由母一特定區域中,每一 刭。t中,像素的像素值所得 到其巾像素值可以是由影像頻道,如r、g、與 逗值所組成m施财,像素 二、 像素的像素值,例如^與b的值相加將 其相加後除以3。如步驟侧,將每-特定區域的像素平 均值乘上其相應的權重,並如步驟S43〇,依據每一特定區 域加權後之像素平均值計算相應此影像之取樣值。相同 地’取k值可錢直接將每—特定區域加權後之像素平均 值相加,或是將其相加之後再取其平均值。以第3圖為例, 假設R1的像素平均值為B1,R2的像素平均值為B2,R3 的像素平均值為B3,R4的像素平均值為B4,且R5的像 素平均值為B5,則每一影像可得一取樣值,取樣值為 (Β1*0·4+Β2*〇·ι5+Β3*〇 15+B4*〇15+B5*〇15) 或 Β1*0·4+Β2$0·15+ Β3*〇·ΐ5+ Β4*〇·15+ Β5*0·15)/5。 如步驟S230,利用統計學上之變異性分析理論對於每 一影像之取樣值進行變異性分析,從而得到一變異值。值 得注意的是’在變異性分析中,這些取樣值可以用來計算 其平均值’且依據平均值便可以估算每一取樣值與平均值 的差異。在一些實施例中,變異值包含一標準差,標準差 可由將每個取樣值平方與平均值平方的差相加,取其平均200847779. Nine, invention description: [Technical field of invention] The present invention relates to a method and system for determining a picture mode, and particularly relates to a method for automatically determining a face mode according to an image signal and system. [Prior Art] ^ With the advent of the era of information digitization, the application of image processing devices such as display devices and projectors has become increasingly widespread and diverse. For example, a user can use a computer system or a video player to play a movie and display or project the movie through a display or projector. Similarly, a display or projector can also be used for presentations. Currently, monitors and projectors offer a variety of facets, such as movie mode, game mode, photo mode, video mode, and presentation mode. Each facet mode has its own setting. The user can choose according to the nature of the image. For example, when playing a movie, the user can switch the display or projector face mode to the movie mode. Through the settings in the movie mode, the image interpretation will be more realistic, soft and comfortable. When making a presentation, the user can switch the display or projector face mode to the presentation mode. Through the settings in the presentation mode, the image will be clearer and brighter. In the current mechanism, users must have relevant knowledge and understand the nature of the image and its relationship to the facet model. In addition, the user must be aware of the operation and setting of the projector 舆 0535-A21907TWF (N2); A06283; YIANHOU 5 200847779 - face mode settings. For users who generally lack relevant knowledge, the function of the face mode will not be effective. SUMMARY OF THE INVENTION In view of the above, the present invention provides a method and system for determining a facet mode. The method for determining the face mode of the embodiment of the present invention. First, a plurality of images are received, and a plurality of specific regions are defined in each image. A sample φ value is calculated according to the pixel values of the complex pixels in the corresponding specific region of each image. A facet mode is determined based on the sampled value. The method for determining the face mode of the embodiment of the present invention. First, at least one first image and one second image are received. And calculating a first sample value according to the pixel value of the plurality of pixels in the corresponding at least one specific region in the first image, and calculating a second sample value according to the pixel value of the plurality of pixels in the corresponding at least one specific region in the second image. A picture mode is determined based on the first sample value and the second sample value. The face mode decision system of the embodiment of the present invention includes a receiving unit _ and a processing unit. The receiving unit receives at least one first image and a second image. The processing unit calculates a first sampling value according to the pixel value of the plurality of pixels in the corresponding at least one specific region in the first image, and calculates a second sampling value according to the pixel value of the plurality of pixels in the corresponding at least one specific region in the second image. . The processing unit determines a face mode according to the first sample value and the second sample value. The above method of the present invention can be recorded in physical media through code. When the code is loaded and executed by the machine, the machine becomes the device for implementing the invention 0535-A21907TWF(N2); A06283; YIANHOU 6 200847779. The above described objects, features and advantages of the present invention will become more apparent from the following description. [Embodiment] FIG. 1 shows a facet mode decision system according to an embodiment of the present invention. The face mode determining system 1 according to an embodiment of the present invention is applicable to an image processing device such as a display or a projector. The face mode determining system 100 includes a receiving unit 110, a processing unit 120, and a storage unit 130. The receiving unit 110 receives the image signal 140 by a host (not shown) such as a computer system or a multimedia player. The processing unit 120 can determine the face mode of the image processing device according to the image received by the receiving unit 110. The storage unit 130 can store the image and its related information before or after the processing unit 130 processes the image. It is worth noting that the received image will be output to a display unit (not shown) or a projection unit (not shown) for output. Fig. 2 shows a method of determining a facet mode according to an embodiment of the present invention. 10, in step S210, receiving a plurality of images, and in step S220, calculating a sample value of each image. In this embodiment, a plurality of specific areas are defined in each image, and each specific area has a weight. Figure 3 shows an example of a specific area in an image. As shown in Fig. 3, five specific areas R1, R2, R3, R4 and R5 are defined in the image 300, which have weights of 0.4, 0.15, 0.15, 0.15 and 0.15, respectively. It is worth noting that in each image, the location of a particular area is the same. In addition, the weight of each specific area is 0535-A2190 丌 WF(M2); A06283; ΥIANHOU 7 200847779 The weight is not limited to the above example. Figure 4 shows a method of calculating sample values in accordance with an embodiment of the present invention. As the step is, calculate the image towel minus each specific value. It is worth noting that the average value of the singularity of the singularity in the -12 is 仏 "the tenth value of the livestock in a specific area is obtained from the pixel value of the pixel in a specific area of the mother. The pixel value of the towel can be composed of image channels, such as r, g, and mascub m, the pixel 2, the pixel value of the pixel, for example, the sum of the values of b and b are added and divided by 3. On the step side, the pixel average value of each specific region is multiplied by its corresponding weight, and according to step S43, the sampled value of the corresponding image is calculated according to the weighted pixel average value of each specific region. You can directly add the average of the weighted pixels of each specific region, or add them and then take the average value. Take Figure 3 as an example, assuming that the average value of pixels of R1 is B1, the average of R2 pixels. The value is B2, the average value of the pixel of R3 is B3, the average value of the pixel of R4 is B4, and the average value of the pixel of R5 is B5, then a sample value can be obtained for each image, and the sample value is (Β1*0·4+Β2). *〇·ι5+Β3*〇15+B4*〇15+B5*〇15) or Β1*0·4+Β2$0·15+ Β3*〇·ΐ5+ Β4*〇·15+ 5*0·15)/5. In step S230, the variability analysis is performed on the sampling value of each image by using the statistical variability analysis theory, thereby obtaining a variation value. It is worth noting that in the variability analysis. These sample values can be used to calculate the average value' and the difference between each sample value and the mean value can be estimated from the average value. In some embodiments, the variation value comprises a standard deviation, and the standard deviation can be obtained from each sample value. The sum of the square and the square of the mean is added, and the average is taken.
0535-A21907TWF(N2);A06283;YIANHOU 200847779 再開根號即為標準差。其中0535-A21907TWF(N2);A06283;YIANHOU 200847779 The root number is the standard deviation. among them
$為標準差, ”為樣本數,々為樣本值,i為樣本值之平均數。由於變異 性分析係統計學上之基本知識,在此不再進行贅述。如步 驟S240,判斷變異值是否大於一既定閥值。若變異值大於 既定閥值(步驟S240的是),換言之,連續影像之各特定區 W 域内容快速變化時,如步驟S250,將影像處理裝置之晝面 ,模式設為電影模式。若變異值不大於既定閥值(步驟S240 _的否),換言之,連續影像之各特定區域内容並無快速變化 時,如步驟S260,將影像處理裝置之晝面模式設為簡報模 式。 在一些實施例中,當變異值不大於既定閥值,且在一 既定時間内或一既定數目的影像,如每秒50張或60張影 像訊框之中,連續影像之各特定區域内容並無快速變化 時,將影像處理裝置之晝面模式設為簡報模式。 必須提醒的是,在本實施例中,多個影像係一次接收, 鲁再分別計算相應之取樣值。然而,在一些實施例中,每個 影像在接收之後,便可直接計算其相應之取樣值。另一方 面,影像的數目(取樣值的數目)可以依據不同需求來彈性 決定。 第5圖顯示依據本發明另一實施例之晝面模式決定方 法。 如步驟S510,接收複數個影像,並如步驟S520,計算 每一影像的一取樣值。類似地,計算取樣值的方法可以如 0535-A21907TWF(N2);A06283;YIANHOU 9 200847779 第4圖所述。之後,如步驟S530,判斷取樣值是否大於一 '既定值。必須說明的是,既定值可以是一個内定或是由使 用者自行设定的值。既定值的設定可以相應於像素平均值 與取樣值的計算方式來進行設定。舉例來說,假設影像有 R、G與B等3個顏色頻道,每一影像中具有5個特定區 、域,且假設一特定亮度值為一閥值。在第一種情況中,當 像素平均值等於係由r、G與B的值相加而得到,且取樣 • 值係由每一特定區域加權後之像素平均值相加而得到時, _既定值係設定為特定亮度值的3倍(3個顏色頻道)。在第二 種情況中,當像素平均值等於係由R、G與B的值相加而 得到,且取樣值係由每一特定區域加權後之像素平均值相 加之後再取其平均值而得到時,既定值係設定為3倍之特 定亮度值除以5(5個特定區域)。在第三種情況中,當像素 平均值等於係由R、G與B的值相加後除以3而得到,且 取樣值係由每一特定區域加權後之像素平均值相加之後而 得到時,既定值係設定為此特定亮度值。在第四種情況中, ® 當像素平均值等於係由R、G與B的值相加後除以3而得 到,且取樣值係由每一特定區域加權後之像素平均值相加 之後再取其平均值而得到時,既定值係設定為特定亮度值 除以5。在一些實施例中,既定值亦可設定為上述四種情 況中之值的一特定比率,如百分之八十。值得注意的是, 判斷取樣值是否大於一既定值可以透過判斷相應所有影像 的取樣值是否皆大於既定值、相應所有影像的取樣值是否 符合一特定比率,如大部分比率(90%)皆大於既定值、或是 0535-A21907TWF(N2);A06283;Y!ANHOU 10 200847779 -所有取樣值之平均值是否大於既定值來進行。若取樣值並 •未大於既定值(步驟S530的否),結束流程。若取樣值大於 既定值(步驟S530的是),如步驟S540,將影像處理裝置之 晝面模式設為簡報模式。在此實施例中,由於簡報模式中 的影像普遍都具有高亮度的特性,因此,當取樣值高時, 可以判斷影像為簡報中的内容,因此將晝面模式設為簡報 模式。 # 第6圖為一流程圖係顯示依據本發明再一實施例之晝 •面模式決定方法。 如步驟S610,接收複數個影像,並如步驟S620,計算 每一影像的一取樣值。如步驟S630,利用統計學上之變異 性分析理論對於每一影像之取樣值進行變異性分析,從而 得到一變異值。如步驟S640,判斷變異值是否大於一第一 既定閥值。若變異值大於第一既定閥值(步驟S640的是), 如步驟S650,將影像處理裝置之晝面模式設為電影模式。 若變異值並未大於第一既定閥值(步驟S640的否),如步驟 S660,判斷變異值是否小於一第二既定閥值。若變異值並 未小於第二既定閥值(步驟S660的否),結束流程◦若變異 值小於第二既定閥值(步驟S660的是),如步驟8670,將影 像處理裝置之晝面模式設為簡報模式。注意的是,當第一 既定閥值等於第二既定閥值時,則本實施例與第2圖之實 施例相同。 本發明之方法,或特定型態或其部份,可以以程式碼 的型態包含於實體媒體,如軟碟、光碟片、硬碟、或是任 0535-A21907TWF(N2);A06283;Y1ANHOU 11 200847779 何其他機器可讀取(如電腦可讀取)儲存媒體,其中,當程 式碼被機器,如電腦載入且執行時,此機器變成用以參與 本發明之裝置。本發明之方法與裝置也可以以程式碼型態 透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸 型態進行傳送,其中,當程式碼被機器,如電腦接收、載 入且執行時,此機器變成用以參與本發明之裝置。當在一 般用途處理器實作時,程式碼結合處理器提供一操作類似 於應用特定邏輯電路之獨特裝置。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟悉此項技藝者,在不脫離本發明之精 神和範圍内,當可做些許更動與潤飾,因此本發明之保護 範圍當視後附之申請專利範圍所界定者為準。$ is the standard deviation, ” is the number of samples, 々 is the sample value, and i is the average of the sample values. Since the variability analysis is statistically basic, it will not be repeated here. If step S240, determine whether the variogram is If the variation value is greater than the predetermined threshold value (YES in step S240), in other words, when the content of the W area of each specific area of the continuous image changes rapidly, in step S250, the image processing device is set to the mode, and the mode is set to If the variation value is not greater than the predetermined threshold (No in step S240 _), in other words, if the content of each specific region of the continuous image does not change rapidly, in step S260, the face mode of the image processing device is set to the presentation mode. In some embodiments, when the variation value is not greater than a predetermined threshold, and within a predetermined time or a predetermined number of images, such as 50 images or 60 image frames per second, the specific region content of the continuous image When there is no rapid change, the face mode of the image processing device is set to the briefing mode. It must be reminded that in this embodiment, multiple images are received at one time, and then again The corresponding sample value is calculated. However, in some embodiments, each image can be directly calculated after receiving it. On the other hand, the number of images (the number of samples) can be elasticized according to different needs. The fifth embodiment shows a method for determining a facet mode according to another embodiment of the present invention. In step S510, a plurality of images are received, and a sample value of each image is calculated as in step S520. Similarly, the sample value is calculated. The method can be as described in Fig. 0535-A21907TWF(N2); A06283; YIANHOU 9 200847779 Fig. 4. Thereafter, in step S530, it is determined whether the sampled value is greater than a predetermined value. It must be stated that the predetermined value can be a default or The value set by the user. The setting of the predetermined value can be set according to the calculation method of the pixel average value and the sampling value. For example, suppose the image has three color channels of R, G and B, each image There are 5 specific regions and domains, and a specific brightness value is assumed to be a threshold. In the first case, when the pixel average is equal to the sum of the values of r, G and B, And the sampling value is obtained by adding the pixel averages weighted by each specific region, and the predetermined value is set to 3 times the specific brightness value (3 color channels). In the second case, when The pixel average value is obtained by adding the values of R, G, and B, and the sample value is obtained by adding the average of the pixels weighted by each specific region and then taking the average value thereof, and the predetermined value is set to 3 times the specific brightness value divided by 5 (5 specific areas). In the third case, when the pixel average value is equal to the value of R, G, and B added and divided by 3, and the sampled value is When the pixel averages weighted by each specific region are added, the predetermined value is set to this specific brightness value. In the fourth case, ® is the average value of the pixels equal to the values of R, G, and B. After adding, the result is divided by 3, and the sampled value is obtained by adding the average of the pixels weighted by each specific region and then taking the average value thereof, and the predetermined value is set to a specific luminance value divided by 5. In some embodiments, the predetermined value may also be set to a specific ratio of values in the above four cases, such as eighty percent. It is worth noting that determining whether the sampled value is greater than a predetermined value can determine whether the sampled values of all the corresponding images are greater than a predetermined value, and whether the sampled values of all corresponding images meet a specific ratio, such as most ratios (90%) are greater than The established value is either 0535-A21907TWF(N2); A06283; Y!ANHOU 10 200847779 - Whether the average of all sampled values is greater than the established value. If the sampled value is not greater than the predetermined value (NO in step S530), the flow is ended. If the sampled value is greater than the predetermined value (YES in step S530), in step S540, the face mode of the image processing device is set to the briefing mode. In this embodiment, since the images in the presentation mode generally have high luminance characteristics, when the sampling value is high, it is possible to judge that the image is the content in the presentation, and thus the face mode is set to the briefing mode. #图图图的图图 shows a method for determining a face mode according to still another embodiment of the present invention. In step S610, a plurality of images are received, and in step S620, a sample value of each image is calculated. In step S630, the variability analysis is performed on the sampled value of each image by using the statistical variability analysis theory to obtain a variation value. In step S640, it is determined whether the variation value is greater than a first predetermined threshold. If the variation value is greater than the first predetermined threshold (YES in step S640), in step S650, the face mode of the image processing device is set to the movie mode. If the variation value is not greater than the first predetermined threshold (NO in step S640), in step S660, it is determined whether the variation value is less than a second predetermined threshold. If the variation value is not less than the second predetermined threshold (No in step S660), if the variation value is less than the second predetermined threshold value (YES in step S660), in step 8670, the image processing device is set in the face mode. For the briefing mode. Note that this embodiment is the same as the embodiment of Fig. 2 when the first predetermined threshold is equal to the second predetermined threshold. The method of the present invention, or a specific type or part thereof, may be included in a physical medium such as a floppy disk, a compact disc, a hard disk, or any 0535-A21907TWF (N2); A06283; Y1ANHOU 11 200847779 Other machines are readable (e.g., computer readable) storage media, wherein when the code is loaded and executed by a machine, such as a computer, the machine becomes a device for participating in the present invention. The method and apparatus of the present invention can also be transmitted in a code format through some transmission medium such as a wire or cable, an optical fiber, or any transmission type, wherein the code is received, loaded, and executed by a machine such as a computer. At this time, the machine becomes a device for participating in the present invention. When implemented in a general purpose processor, the code in conjunction with the processor provides a unique means of operating similar to the application specific logic. While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application.
0535-A2]907TWF(N2);A06283;YIANHOU 12 200847779 - 【圖式簡單說明】 - 第1圖顯示依據本發明實施例之晝面模式決定系統。 第2圖為一流程圖係顯示依據本發明實施例之晝面模 式決定方法。 第3圖顯示影像中特定區域之例子。 第4圖為一流程圖係顯示依據本發明實施例之取樣值 計算方法。 Λ 第5圖為一流程圖係顯示依據本發明另一實施例之晝 參面模式決定方法。 第6圖為一流程圖係顯示依據本發明再一實施例之晝 面模式決定方法。 【主要元件符號說明】 100〜晝面模式決定系統; 110〜接收單元; 120〜處理單元; 130〜儲存單元; 140〜影像; S210、S220、…、S260〜步驟;0535-A2] 907TWF(N2); A06283; YIANHOU 12 200847779 - [Simplified Schematic Description] - Fig. 1 shows a facet mode decision system according to an embodiment of the present invention. Fig. 2 is a flow chart showing a method of determining a facet mode according to an embodiment of the present invention. Figure 3 shows an example of a specific area in the image. Fig. 4 is a flow chart showing a method of calculating a sample value according to an embodiment of the present invention. Λ Fig. 5 is a flow chart showing a method of determining a parametric mode according to another embodiment of the present invention. Fig. 6 is a flow chart showing a method of determining a face mode according to still another embodiment of the present invention. [Description of main component symbols] 100~昼面 mode determining system; 110~ receiving unit; 120~ processing unit; 130~ storage unit; 140~image; S210, S220, ..., S260~ steps;
Rl、R2、R3、R4、R5〜特定區域; 300〜影像; S410、S420、S430〜步驟; S510、S520、…、S540〜步驟; S610、S620、…、S670〜步驟。 0535-Α2190 丌 WF(N2);A06283;YIANH〇U 13R1, R2, R3, R4, R5~specific areas; 300~images; S410, S420, S430~ steps; S510, S520, ..., S540~ steps; S610, S620, ..., S670~ steps. 0535-Α2190 丌 WF(N2);A06283;YIANH〇U 13