[go: up one dir, main page]

TWI405148B - Method of realism assessment of an image composite - Google Patents

Method of realism assessment of an image composite Download PDF

Info

Publication number
TWI405148B
TWI405148B TW98142099A TW98142099A TWI405148B TW I405148 B TWI405148 B TW I405148B TW 98142099 A TW98142099 A TW 98142099A TW 98142099 A TW98142099 A TW 98142099A TW I405148 B TWI405148 B TW I405148B
Authority
TW
Taiwan
Prior art keywords
foreground
background
axis
image
color
Prior art date
Application number
TW98142099A
Other languages
Chinese (zh)
Other versions
TW201120815A (en
Inventor
Bing Yi Wong
Homer H Chen
Chia Kai Liang
Tai Hsu Lin
Original Assignee
Univ Nat Taiwan
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 Univ Nat Taiwan filed Critical Univ Nat Taiwan
Priority to TW98142099A priority Critical patent/TWI405148B/en
Publication of TW201120815A publication Critical patent/TW201120815A/en
Application granted granted Critical
Publication of TWI405148B publication Critical patent/TWI405148B/en

Links

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

A method of realism assessment of an image composite is disclosed. The foreground and the background are transformed into a color space, such as YCbCr, followed by projecting the foreground and the background to a subspace represented by the axes representing chromatic information. The image composite is assessed in the projected subspace, according to linearity of color distributions of the foreground/the background, or according to distance between the color distributions of the foreground/the background and a center of the transformed color space.

Description

合成影像之真實感評估方法 Realistic image evaluation method for synthetic images

本發明係有關影像合成(image composition),特別是關於一種合成影像(image composite)之真實感評估(realism assessment)與重新著色(re-coloring)。 The present invention relates to image composition, and more particularly to realism assessment and re-coloring of an image composite.

影像合成屬於一種後攝影(post-photographic)操作,通常藉由剪與貼(cut-and-paste)來執行。然而,所製作的合成影像時常會遭遇到插入(inserted)或貼補(pasted)物件與影像背景之間形成色彩不相容的情形。因此,藉由人眼進行判斷時,會覺得合成影像顯得不夠真實。 Image synthesis is a post-photographic operation that is usually performed by cut-and-paste. However, synthetic images produced often encounter color incompatibility between the inserted or pasted object and the background of the image. Therefore, when judging by the human eye, it is felt that the synthetic image is not real enough.

為了讓插入物件更相容於影像背景,因此有人提出了一些解決此問題的方法。然而,傳統方法通常太過複雜、不夠精確以及需要很多使用者的介入,或是於真實感評估時需要多張輔助影像。鑑於傳統方法無法有效的評估合成影像,因此,亟需提出一種新穎方法,用以經濟地、精確地且/或能自動地執行合成影像的真實感評估。 In order to make the inserted object more compatible with the image background, some methods have been proposed to solve this problem. However, traditional methods are often too complex, inaccurate, and require the intervention of many users, or require multiple auxiliary images for realistic evaluation. Since conventional methods cannot effectively evaluate synthetic images, there is a need to propose a novel method for performing realistic evaluation of synthetic images economically, accurately, and/or automatically.

鑑於上述,本發明實施例的目的之一在於提出一種方法,藉由提供一些客觀度量(metrics)以進行影像真實感的評估。再者,可根據真實感評估結果對合成影像進行重新著色,以改善插入物件與影像背景間的相容性。 In view of the above, one of the objects of embodiments of the present invention is to propose a method for performing an evaluation of image realism by providing some objective metrics. Furthermore, the composite image can be re-colored according to the results of the realism evaluation to improve the compatibility between the inserted object and the image background.

根據本發明實施例之一,首先,將前景與背景轉換至一色彩空間,其中轉換之色彩空間具第一軸,以代表光度訊息,並具第二軸與第三軸,以代表色度訊息。將前景與背景投影至一子空間,其由第二軸與第三軸所表示。根據前景與背景的色彩分佈之線性,以及前景與背景的色彩分佈間的相關性,用以評估位於子空間的合成影像。 According to one of the embodiments of the present invention, first, the foreground and the background are converted into a color space, wherein the converted color space has a first axis to represent the photometric information, and has a second axis and a third axis to represent the chrominance information. . Projecting the foreground and background to a subspace represented by a second axis and a third axis. The composite image located in the subspace is evaluated based on the linearity of the color distribution of the foreground and background, and the correlation between the color distribution of the foreground and the background.

根據本發明另一實施例,將前景與背景轉換至一色彩空間,其中轉換之色彩空間具第一軸,以代表光度訊息,並具第二軸與第三軸,以代表色度訊息。分別量測前景與背景的色彩分佈與轉換色彩空間之中心的距離,以得到灰點。根據前景的量測灰點與背景的量測灰點,用以評估位於轉換子空間之合成影像。 In accordance with another embodiment of the present invention, the foreground and background are converted to a color space, wherein the converted color space has a first axis to represent the luminosity message and has a second axis and a third axis to represent the chrominance information. The distance between the color distribution of the foreground and the background and the center of the converted color space are separately measured to obtain a gray point. The gray point of the gray point and the background is measured according to the foreground to evaluate the composite image located in the conversion subspace.

根據本發明又一實施例,縮減前景與背景,以得到前景與背景之區域色彩分佈。藉由直方圖距離以決定縮減前景與縮減背景之間的色彩相似性。 According to yet another embodiment of the present invention, the foreground and background are reduced to obtain an area color distribution of the foreground and the background. The histogram distance is used to determine the color similarity between the reduced foreground and the reduced background.

11-21B‧‧‧步驟 11-21B‧‧‧Steps

27‧‧‧縮減背景 27‧‧‧Reduced background

28‧‧‧插入物件 28‧‧‧Insert objects

29‧‧‧縮減的前景 29‧‧‧ prospects for reduction

30、40、60‧‧‧前景成分 30, 40, 60 ‧ ‧ foreground components

32、42、62‧‧‧背景成分 32, 42, 62‧‧‧ background components

51-56‧‧‧步驟 51-56‧‧‧Steps

Y‧‧‧亮度 Y‧‧‧ brightness

Cb‧‧‧色度 Cb‧‧‧ Chroma

Cr‧‧‧色度 Cr‧‧‧ Chroma

第一圖之流程圖顯示本發明實施例之合成影像的真實感評估方法。 The flowchart of the first figure shows a method for evaluating the realism of a synthetic image according to an embodiment of the present invention.

第二圖顯示縮減前景與縮減背景。 The second image shows the reduced foreground and reduced background.

第三A圖至第三C圖顯示CbCr子空間的一些前景成分與背景成分。 The third to third C-pictures show some foreground and background components of the CbCr subspace.

第四A圖至第四B圖顯示YCbCr色彩空間的一些前景成分與背景成分。 Figures 4A through 4B show some foreground and background components of the YCbCr color space.

第五圖之流程圖顯示本發明實施例之合成影像的重新著色方法。 The flowchart of the fifth figure shows a re-coloring method of the synthetic image of the embodiment of the present invention.

第六A圖至第六B圖顯示色彩子空間的一些前景成分與背景成分。 Figures 6A through 6B show some foreground and background components of the color subspace.

第一圖之流程圖顯示本發明實施例之合成影像的真實感評估方法。本實施例提出兩種真實感的評估機制:色彩相似性(color similarity)與色傾向一致性(consistence of color tendency)。於評估合成影像時,可選擇其中一或兩種的評定機制(步驟11)。 The flowchart of the first figure shows a method for evaluating the realism of a synthetic image according to an embodiment of the present invention. This embodiment proposes two evaluation mechanisms of realism: color similarity and consistency of color tendency. When evaluating synthetic images, one or two of the evaluation mechanisms can be selected (step 11).

關於色彩相似性,首先,於步驟12中,縮減(shrink)前景(如插入物件)及/或縮減背景,以取得前景與背景的區域色彩分佈。如第二圖所示,縮減背景27係為插入物件28之邊界外側的帶狀區域(band region),而縮減前景29則為插入物件28之邊界內側的帶狀區域。縮減前景與縮減背景的主要原理在於,離插入物件很遠的背景及/或位於前景中央的訊息通常與合成影像的真實感評估並不相關。值得注意的是,縮減背景27的外邊界及/或縮減前景29的內邊界並不需要和插入物件28的邊界具有類似形狀。再者,縮減前景與縮減背景的區域大小可依據特定應用的需求而定。 Regarding color similarity, first, in step 12, the foreground (such as an inserted object) and/or the reduced background are shrunk to obtain the regional color distribution of the foreground and background. As shown in the second figure, the reduced background 27 is a band region outside the boundary of the inserted object 28, and the reduced foreground 29 is a banded region inside the boundary of the inserted object 28. The main principle of reducing the foreground and reducing the background is that the background far from the inserted object and/or the message located in the center of the foreground is usually not related to the realistic evaluation of the synthesized image. It is worth noting that reducing the outer boundary of background 27 and/or reducing the inner boundary of foreground 29 does not require a similar shape to the boundary of insert article 28. Furthermore, the size of the area for reducing the foreground and reducing the background may depend on the needs of the particular application.

接著,於步驟13,獲得縮減背景27與縮減前景29之間的色彩相似性。在本實施例中,合成影像的色彩相似性S係藉由直方圖交集(histogram intersection)[或稱為直方圖距離(histogram distance)]而 得到,色彩相似性S可表示為: Next, at step 13, color similarity between the reduced background 27 and the reduced foreground 29 is obtained. In this embodiment, the color similarity S of the synthesized image is obtained by a histogram intersection [or a histogram distance], and the color similarity S can be expressed as:

其中,hB(.)與hF(.)分別為國際照明組織(International Commission on Illumination,以下簡稱CIE)L*a*b*色彩空間(color space)之縮減背景與縮減前景的三維(3D)直方圖,iL、ia與ib分別代表L、a與b通道之直方圖指標,NL、Na與Nb分別代表L、a與b通道之直方圖的槽(bin)數量,MB與MF分別代表背景與前景的大小(magnitude)。 Among them, h B (.) and h F (.) are respectively the International Commission on Illumination (CIE) L*a*b* color space reduction background and 3D reduction of foreground (3D) ) histogram, i L , i a and i b represent the histogram indices of the L, a and b channels, respectively, and N L , N a and N b represent the number of bins of the histograms of the L, a and b channels, respectively. , M B and M F represent the magnitude of the background and the foreground, respectively.

關於直方圖交集/距離的進一步技術可參考相關文獻,例如,M. J. Swain等人所揭露之“Color indexing”,International Journal of Computer Vision(西元1991年11月),vol.7,no.1,頁11-32。 Further techniques for histogram intersection/distance can be found in related literature, for example, "Color indexing" by MJ Swain et al., International Journal of Computer Vision (November 1991), vol. 7, no. 1, page 11-32.

關於色彩傾向的一致性,於步驟14,將前景與背景轉換至一色彩空間,例如YCbCr色彩空間。於YCbCr色彩空間中,Y軸代表亮度訊息,而Cb軸與Cr軸則代表色度訊息。雖然本實施例以YCbCr色彩空間作為例示,然而也可採用其他適當的色彩空間,例如與YCbCr色彩空間相似之YUV色彩空間或L*a*b*色彩空間。 Regarding the consistency of the color tendency, in step 14, the foreground and background are converted to a color space, such as the YCbCr color space. In the YCbCr color space, the Y axis represents the luminance information, and the Cb axis and the Cr axis represent the chrominance information. Although the present embodiment is exemplified by the YCbCr color space, other suitable color spaces may be employed, such as a YUV color space or an L*a*b* color space similar to the YCbCr color space.

本實施例提供二種色彩傾向度量:線性與灰點(grayness)。於決定色彩傾向的一致性時,可選擇其中一或兩種的色彩傾向度量(步驟15)。 This embodiment provides two color tendency metrics: linear and grayness. When determining the consistency of the color tendency, one or two of the color tendency metrics may be selected (step 15).

關於線性度量,將合成影像的前景與背景投影至YCbCr色彩空間之CbCr子空間(步驟16)。例如,於CbCr子空間中,含較多無色(achromatic)像素之淺灰色(grayish)影像會落在原點周圍。這種影像的CbCr分佈可藉由一條穿過原點的直線來表示。另一方面,例如含較多無色像素與綠色像素之綠色(greenish)影像會落在Cr軸的負數方向側,所以這種影像的CbCr分佈可藉由一條直線近似。於步驟17,根據前景與背景色彩分佈的直線性以及根據前景與背景色彩分佈間的相關性,用以評估合成影像。 Regarding the linear metric, the foreground and background of the composite image are projected to the CbCr subspace of the YCbCr color space (step 16). For example, in a CbCr subspace, a grayish image containing more achromatic pixels would fall around the origin. The CbCr distribution of such an image can be represented by a straight line passing through the origin. On the other hand, for example, a greenish image containing more colorless pixels and green pixels falls on the negative side of the Cr axis, so the CbCr distribution of such an image can be approximated by a straight line. In step 17, the composite image is evaluated based on the linearity of the foreground and background color distributions and the correlation between the foreground and background color distributions.

第三A圖例示CbCr子空間的前景成分30與背景成分32。於本例子中(步驟18A),前景成分30與背景成分32兩者皆具線性且大致上一致(或互相重合),此表示前景成分30與背景成分32的色彩傾向具高度一致性,因此合成影像顯得真實。第三B圖例示另一CbCr子空間的前景成分30與背景成分32。於本例子中(步驟18B),前景成分30與背景成分32皆具線性,但是色彩分佈卻明顯不同或不一致,此表示前景成分30與背景成分32的色彩傾向具低度一致性,因此合成影像顯得不真實。第三C圖例示又一CbCr子空間的前景成分30與背景成分32。於本例子中(步驟18C),前景成分30與背景成分32皆不具有線性的色彩分佈。因此,合成影像可能顯得真實。 The third A diagram illustrates the foreground component 30 and the background component 32 of the CbCr subspace. In this example (step 18A), both the foreground component 30 and the background component 32 are linear and substantially uniform (or coincident with each other), which indicates that the foreground component 30 has a high degree of color consistency with the background component 32, thus synthesizing The image appears to be real. The third B diagram illustrates the foreground component 30 and the background component 32 of another CbCr subspace. In the present example (step 18B), both the foreground component 30 and the background component 32 are linear, but the color distribution is significantly different or inconsistent, which indicates that the foreground component 30 and the background component 32 have a low degree of color consistency, thus synthesizing the image. It seems unreal. The third C diagram illustrates the foreground component 30 and the background component 32 of yet another CbCr subspace. In this example (step 18C), neither foreground component 30 nor background component 32 has a linear color distribution. Therefore, synthetic images may appear to be real.

關於灰點度量,其量測合成影像的色彩分佈與色彩空間(例如三維CbCr色彩空間)中央的遠近(步驟19)。在本實施例中,色彩分佈的灰點定義為自YCbCr空間的中央至合成影像色彩分佈最近點之 距離的負數。在本實施例中,分別量測前景與背景之灰點。如果合成影像的背景與前景對於灰點具有不同色彩傾向,則會在前景與背景之間形成中空區域。於步驟20,根據有無中空區域以評估合成影像。第四A圖例示YCbCr色彩空間的前景成分40與背景成分42。於本例子中(步驟21A),前景成分40與背景成分42相對於色彩空間中央具有明顯不同的色彩分佈,並形成中空區域,此表示前景成分40與背景成分42的色彩傾向具低度一致性,因此合成影像顯得不真實。第四B圖同時顯示YCbCr空間之前景與背景成分。於本例子中(步驟21B),前景成分與背景成分相對於色彩空間中央具有類似的色彩分佈,且未形成中空區域,此表示前景成分40與背景成分42的色彩傾向具高度一致性,因此合成影像顯得真實。 Regarding the gray point metric, it measures the color distribution of the composite image and the distance from the center of the color space (eg, the three-dimensional CbCr color space) (step 19). In this embodiment, the gray point of the color distribution is defined as the closest point from the center of the YCbCr space to the color distribution of the synthesized image. Negative distance. In this embodiment, the gray points of the foreground and the background are respectively measured. If the background and foreground of the synthetic image have a different color orientation for the gray point, a hollow area is formed between the foreground and the background. At step 20, the composite image is evaluated based on the presence or absence of a hollow region. The fourth A diagram illustrates the foreground component 40 and the background component 42 of the YCbCr color space. In the present example (step 21A), the foreground component 40 and the background component 42 have significantly different color distributions relative to the center of the color space and form a hollow region, which indicates that the foreground component 40 and the background component 42 have a low color consistency. Therefore, the synthetic image does not appear to be true. The fourth B picture simultaneously shows the foreground and background components of the YCbCr space. In the present example (step 21B), the foreground component and the background component have a similar color distribution with respect to the center of the color space, and no hollow region is formed, which indicates that the foreground component 40 and the background component 42 have a high color consistency, and thus are synthesized. The image appears to be real.

根據前述合成影像真實感評估的方法,合成影像的真實感可根據色彩相似性且/或色彩傾向(例如線性或灰點)作客觀及精確的評估,特別是僅需藉由單張合成影像的訊息即可進行評估。再者,前述實施例也可用以真實感評估的自動化。 According to the aforementioned method for real-time evaluation of synthetic images, the realism of the synthesized images can be objectively and accurately evaluated according to color similarity and/or color tendency (for example, linear or gray point), in particular, only by synthesizing images by a single image. The message can be evaluated. Furthermore, the foregoing embodiments can also be used for automation of realistic evaluation.

根據前述一或多個量測結果,可視需要對合成影像進行重新著色,以改善其真實感。第五圖之流程圖顯示本發明實施例之合成影像的重新著色方法。本實施例提出二種重新著色的類型:色彩相似性與色彩傾向的一致性(如線性與灰點)。可選擇其中一或二種重新著色方法(步驟51),用以改善合成影像的真實性。 According to the one or more measurement results, the synthetic image can be re-colored as needed to improve its realism. The flowchart of the fifth figure shows a re-coloring method of the synthetic image of the embodiment of the present invention. This embodiment proposes two types of re-coloring: consistency of color similarity and color tendency (such as linearity and gray point). One or two re-coloring methods (step 51) may be selected to improve the authenticity of the synthesized image.

關於色彩相似性,於步驟52取得縮減背景與縮減前景,其取得方式類似於第一圖之步驟12。接著,調整縮減前景(如插入物件) 的直方圖,使得縮減前景的分布能與縮減背景的分佈相互匹配(步驟53)。例如,可藉由移位且/或擴展縮減前景的直方圖分佈以進行調整。在另一實施例中,可調整縮減背景的直方圖,或同時調整縮減前景與背景的直方圖。在本實施例中,每個前景像素的色彩於CIE L*a*b*色彩空間中係一個通道一個通道地(channel-by-channel)進行轉換,其可表示如下:c’=(σBF)(c-μF)+μB, Regarding color similarity, a reduced background and a reduced foreground are obtained in step 52 in a manner similar to step 12 of the first figure. Next, the histogram of the reduced foreground (e.g., the inserted object) is adjusted such that the distribution of the reduced foreground matches the reduced background distribution (step 53). For example, the adjustment can be made by shifting and/or expanding the histogram distribution of the reduced foreground. In another embodiment, the histogram of the reduced background may be adjusted, or the histogram of the reduced foreground and background may be adjusted simultaneously. In this embodiment, the color of each foreground pixel is converted in a channel-by-channel in the CIE L*a*b* color space, which can be expressed as follows: c'=(σ BF )(c-μ F )+μ B ,

其中c代表某通道之輸入影像的像素值,c’代表修正的像素值,μ代表平均值,σ代表標準偏差,下標B代表縮減背景,下標F代表縮減前景。 Where c represents the pixel value of the input image of a channel, c' represents the corrected pixel value, μ represents the average value, σ represents the standard deviation, subscript B represents the reduced background, and subscript F represents the reduced foreground.

關於色彩傾向的一致性,於步驟54,將含有插入物件的影像轉換至YCbCr色彩空間。接著,於步驟55,對前景的色彩分佈沿Y軸進行第一次旋轉,使得前景的色彩分佈與背景的色彩分佈於CbCr子空間中能夠對準或平行。此旋轉可移除前景與背景之間色相(hue)的不一致。第六A圖例示CbCr子空間的前景成分60與背景成分62。在本例子中,對前景成分60依順時針方向作旋轉,其旋轉角度為φ。 Regarding the consistency of the color tendency, in step 54, the image containing the inserted object is converted to the YCbCr color space. Next, in step 55, the color distribution of the foreground is first rotated along the Y-axis such that the color distribution of the foreground and the color distribution of the background can be aligned or parallel in the CbCr subspace. This rotation removes the inconsistency of the hue between the foreground and the background. Figure 6A illustrates the foreground component 60 and background component 62 of the CbCr subspace. In the present example, the foreground component 60 is rotated in a clockwise direction, and its rotation angle is φ.

接著,於步驟56,對第一次旋轉後的前景色彩分佈沿Cb或Cr軸進行第二次旋轉,使得前景的色彩分佈與背景的色彩分佈於YCr或/且YCb子空間中能夠對準或平行。此旋轉可處理影像中色彩過於突出(over-colorful)的物件。第六B圖例示YCr子空間的前景成分60與背景成分62。在本例子中,對前景成分60依逆時針方向作旋轉,其旋轉角度為θ。 Next, in step 56, the foreground color distribution after the first rotation is rotated a second time along the Cb or Cr axis, so that the color distribution of the foreground and the color distribution of the background can be aligned in the YCr or/and YCb subspace or parallel. This rotation handles objects that are over-colorful in the image. The sixth B diagram illustrates the foreground component 60 and the background component 62 of the YCr subspace. In the present example, the foreground component 60 is rotated in a counterclockwise direction, and its rotation angle is θ.

以上所述僅為本發明之較佳實施例而已,並非用以限定本發明之申請專利範圍;凡其它未脫離發明所揭示之精神下所完成之等效改變或修飾,均應包含在下述之申請專利範圍內。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; all other equivalent changes or modifications which are not departing from the spirit of the invention should be included in the following Within the scope of the patent application.

11-21B‧‧‧步驟 11-21B‧‧‧Steps

Claims (20)

一種合成影像之真實感評估方法,包含:提供具一前景與一背景之該合成影像;將該前景與該背景轉換至一色彩空間,其中該轉換之色彩空間具一第一軸,以代表光度訊息,並具一第二軸與一第三軸,以代表色度訊息;將該前景與該背景投影至一子空間,其由該第二軸與該第三軸所表示;及根據該前景與該背景的色彩分佈之線性,以及該前景與該背景的色彩分佈間的相關性,用以評估位於子空間的該合成影像。 A method for evaluating a realistic image of a synthetic image, comprising: providing a composite image having a foreground and a background; converting the foreground and the background to a color space, wherein the converted color space has a first axis to represent luminosity a message having a second axis and a third axis to represent a chrominance message; projecting the foreground and the background to a subspace represented by the second axis and the third axis; and according to the foreground The linearity of the color distribution with the background, and the correlation between the foreground and the color distribution of the background, is used to evaluate the composite image located in the subspace. 如申請專利範圍第1項所述合成影像之真實感評估方法,其中上述之前景為該合成影像的一插入物件。 The method for evaluating a realistic image of a synthetic image according to claim 1, wherein the foreground is an insert of the synthetic image. 如申請專利範圍第1項所述合成影像之真實感評估方法,其中上述轉換之色彩空間為YCbCr色彩空間,該第一軸為Y軸、該第二軸為Cb軸,且該第三軸為Cr軸。 The method for evaluating a realistic image of a synthetic image according to claim 1, wherein the converted color space is a YCbCr color space, the first axis is a Y axis, the second axis is a Cb axis, and the third axis is Cr axis. 如申請專利範圍第1項所述合成影像之真實感評估方法,其中上述轉換之色彩空間為YUV色彩空間或L*a*b*色彩空間。 The method for evaluating a realistic image of the synthetic image according to claim 1, wherein the color space of the conversion is a YUV color space or an L*a*b* color space. 如申請專利範圍第1項所述合成影像之真實感評估方法,當該前景與該背景具有一致之線性色彩分佈時或當該前景與該背景不具線性色彩分佈時,則該合成影像被評估為真實;當該前景與該背景具有不一致之線性色彩分佈時,則該合成影像被評估為不真實。 The method for evaluating the quality of a synthetic image as described in claim 1 is characterized in that when the foreground has a linear color distribution consistent with the background or when the foreground and the background have no linear color distribution, the composite image is evaluated as True; when the foreground has a linear color distribution that is inconsistent with the background, then the composite image is evaluated as unreal. 如申請專利範圍第1項所述合成影像之真實感評估方法,更包含: 沿該第一軸對該前景或/且該背景之色彩分佈進行第一次旋轉,使得該前景的色彩分佈與該背景的色彩分佈得以於該投影子空間中互相對準或平行。 For example, the method for evaluating the realism of the synthetic image described in the first application of the patent scope includes: A first rotation of the foreground or/and the color distribution of the background along the first axis is such that the color distribution of the foreground and the color distribution of the background are aligned or parallel to each other in the projection subspace. 如申請專利範圍第6項所述合成影像之真實感評估方法,更包含:沿該第二軸或該第三軸對該前景或/且該背景之色彩分佈進行第二次旋轉,使得該前景的色彩分佈與該背景的色彩分佈於該第一軸、第三軸所表示之子空間或該第一軸、第二軸所表示之子空間中,得以互相對準或平行。 The method for evaluating a realistic image of the synthetic image according to claim 6 further includes: performing a second rotation of the foreground or/and the color distribution of the background along the second axis or the third axis, so that the foreground The color distribution and the color distribution of the background are distributed in the subspace represented by the first axis, the third axis, or the subspace represented by the first axis and the second axis, and are aligned or parallel to each other. 一種合成影像之真實感評估方法,包含:提供具一前景與一背景之該合成影像;將該前景與該背景轉換至一色彩空間,其中該轉換之色彩空間具一第一軸,以代表光度訊息,並具一第二軸與一第三軸,以代表色度訊息;分別量測該前景與該背景的色彩分佈與該轉換之色彩空間之中心的距離,以得到灰點;及根據該前景的量測灰點與該背景的量測灰點,用以評估位於該轉換子空間之該合成影像。 A method for evaluating a realistic image of a synthetic image, comprising: providing a composite image having a foreground and a background; converting the foreground and the background to a color space, wherein the converted color space has a first axis to represent luminosity a message having a second axis and a third axis to represent a chrominance message; respectively measuring a distance between the foreground and the color distribution of the background and a center of the converted color space to obtain a gray point; The measurement gray point of the foreground and the measurement gray point of the background are used to evaluate the composite image located in the conversion subspace. 如申請專利範圍第8項所述合成影像之真實感評估方法,其中上述之前景為該合成影像的一插入物件。 The method for evaluating a realistic image of a synthetic image according to claim 8, wherein the front view is an insert of the synthetic image. 申請專利範圍第8項所述合成影像之真實感評估方法,其中上述轉換之色彩空間為YCbCr色彩空間,該第一軸為Y軸、該第二軸為Cb軸,且該第三軸為Cr軸。 The method for evaluating a realistic image of the synthetic image according to claim 8 , wherein the converted color space is a YCbCr color space, the first axis is a Y axis, the second axis is a Cb axis, and the third axis is Cr axis. 申請專利範圍第8項所述合成影像之真實感評估方法,其 中上述轉換之色彩空間為YUV色彩空間或L*a*b*色彩空間。 A method for evaluating the realism of a synthetic image described in claim 8 of the patent application, The color space of the above conversion is a YUV color space or an L*a*b* color space. 如申請專利範圍第8項所述合成影像之真實感評估方法,其中上述之灰點為自該轉換色彩空間的中央至該前景或背景色彩分佈最近點之距離的負數。 The method for evaluating a realistic image of a synthetic image according to claim 8 wherein the gray point is a negative number from a distance from a center of the converted color space to a closest point of the foreground or background color distribution. 如申請專利範圍第8項所述合成影像之真實感評估方法,當一中空區域存在於該前景與該背景之色彩分佈之間,則該合成影像被評估為不真實;反之,該合成影像被評估為真實。 The method for evaluating the quality of a synthetic image according to claim 8 is that when a hollow region exists between the foreground and the color distribution of the background, the synthesized image is evaluated as being unreal; otherwise, the composite image is The assessment is true. 如申請專利範圍第8項所述合成影像之真實感評估方法,更包含:沿該第一軸對該前景或/且該背景之色彩分佈進行第一次旋轉,使得該前景的色彩分佈與該背景的色彩分佈得以於該投影子空間中互相對準或平行。 The method for evaluating a realistic image of the synthetic image according to claim 8 further includes: performing a first rotation of the foreground or/and the color distribution of the background along the first axis, such that the color distribution of the foreground is The color distribution of the background is aligned or parallel to each other in the projection subspace. 如申請專利範圍第14項所述合成影像之真實感評估方法,更包含:沿該第二軸或該第三軸對該前景或/且該背景之色彩分佈進行第二次旋轉,使得該前景的色彩分佈與該背景的色彩分佈於該第一軸、第三軸所表示之子空間或該第一軸、第二軸所表示之子空間中,得以互相對準或平行。 The method for evaluating a realistic image of the synthetic image according to claim 14 further includes: performing a second rotation of the foreground or/and the color distribution of the background along the second axis or the third axis, so that the foreground The color distribution and the color distribution of the background are distributed in the subspace represented by the first axis, the third axis, or the subspace represented by the first axis and the second axis, and are aligned or parallel to each other. 一種合成影像之真實感評估方法,包含:提供具一前景與一背景之該合成影像;縮減該前景與該背景,以得到該前景與該背景之區域色彩分佈;及藉由直方圖距離以決定該縮減前景與該縮減背景之間的色彩相似 性S;其中上述所決定之色彩相似度S係表示為: 其中,hB(.)與hF(.)分別為國際照明組織(CIE)L*a*b*色彩空間之該縮減背景與該縮減前景的三維(3D)直方圖,iL、ia與ib分別代表L、a與b通道之直方圖指標,NL、Na與Nb分別代表L、a與b通道之直方圖的槽(bin)數量,MB與MF分別代表該背景與該前景的大小(magnitude)。 A method for evaluating a realistic image of a synthetic image, comprising: providing a composite image having a foreground and a background; reducing the foreground and the background to obtain a color distribution of the foreground and the background; and determining by a histogram distance a color similarity S between the reduced foreground and the reduced background; wherein the color similarity S determined above is expressed as: Where h B (.) and h F (.) are respectively the reduced background of the International Lighting Organization (CIE) L*a*b* color space and the three-dimensional (3D) histogram of the reduced foreground, i L , i a And i b represent the histogram indicators of the L, a, and b channels, respectively, and NL, Na, and Nb represent the number of bins of the histograms of the L, a, and b channels, respectively, and M B and M F represent the background and the The size of the foreground. 如申請專利範圍第16項所述合成影像之真實感評估方法,其中上述之前景為該合成影像的一插入物件。 The method for evaluating a realistic image of a synthetic image according to claim 16, wherein the front view is an insert of the synthetic image. 如申請專利範圍第17項所述合成影像之真實感評估方法,其中上述縮減背景係為該插入物件之邊界外側的帶狀區域,而該縮減前景為該插入物件之邊界內側的帶狀區域。 The method for evaluating a realistic image of a synthetic image according to claim 17, wherein the reduced background is a strip-shaped region outside the boundary of the inserted object, and the reduced foreground is a strip-shaped region inside the boundary of the inserted object. 如申請專利範圍第16項所述合成影像之真實感評估方法,更包含:調整該縮減背景與該縮減前景之直方圖,使得該縮減背景的分佈與該縮減前景的分佈相互匹配。 The method for evaluating the realistic image of the synthetic image according to claim 16 further includes: adjusting the reduced background and the histogram of the reduced foreground such that the distribution of the reduced background matches the distribution of the reduced foreground. 如申請專利範圍第19項所述合成影像之真實感評估方法,其中上述直方圖之調整包含:於CIE L*a*b*色彩空間中,根據下式一個通道一個通道地(channel-by-channel)轉換每個前景像素的色彩: c’=(σBF)(c-μF)+μB,其中,c代表通道之輸入影像的像素值,c’代表修正的像素值,μ代表平均值,σ代表標準偏差,下標B代表該縮減背景,下標F代表該縮減前景。 The method for evaluating the realism of the synthesized image according to claim 19, wherein the adjustment of the histogram comprises: in the CIE L*a*b* color space, one channel and one channel according to the following formula (channel-by- Channel) converts the color of each foreground pixel: c'=(σ BF )(c-μ F )+μ B , where c represents the pixel value of the input image of the channel, and c′ represents the corrected pixel value. μ represents the average value, σ represents the standard deviation, subscript B represents the reduced background, and subscript F represents the reduced foreground.
TW98142099A 2009-12-09 2009-12-09 Method of realism assessment of an image composite TWI405148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98142099A TWI405148B (en) 2009-12-09 2009-12-09 Method of realism assessment of an image composite

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98142099A TWI405148B (en) 2009-12-09 2009-12-09 Method of realism assessment of an image composite

Publications (2)

Publication Number Publication Date
TW201120815A TW201120815A (en) 2011-06-16
TWI405148B true TWI405148B (en) 2013-08-11

Family

ID=45045319

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98142099A TWI405148B (en) 2009-12-09 2009-12-09 Method of realism assessment of an image composite

Country Status (1)

Country Link
TW (1) TWI405148B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI742733B (en) * 2020-06-19 2021-10-11 倍利科技股份有限公司 Image conversion method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200830217A (en) * 2007-01-08 2008-07-16 Corel Tw Corp Image processing device and method by using differences of different scaled images as layered images
TW200838283A (en) * 2007-03-14 2008-09-16 Feiloli Electronic Co Ltd Beautification function of photo-sticker machine
EP1550083B1 (en) * 2002-10-07 2009-01-14 Mitsubishi Denki Kabushiki Kaisha Method for blending plurality of input images into output image
US20090060331A1 (en) * 2007-08-31 2009-03-05 Che-Bin Liu Image Background Suppression

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1550083B1 (en) * 2002-10-07 2009-01-14 Mitsubishi Denki Kabushiki Kaisha Method for blending plurality of input images into output image
TW200830217A (en) * 2007-01-08 2008-07-16 Corel Tw Corp Image processing device and method by using differences of different scaled images as layered images
TW200838283A (en) * 2007-03-14 2008-09-16 Feiloli Electronic Co Ltd Beautification function of photo-sticker machine
US20090060331A1 (en) * 2007-08-31 2009-03-05 Che-Bin Liu Image Background Suppression

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI742733B (en) * 2020-06-19 2021-10-11 倍利科技股份有限公司 Image conversion method

Also Published As

Publication number Publication date
TW201120815A (en) 2011-06-16

Similar Documents

Publication Publication Date Title
CN100551081C (en) A kind of method and device of realizing white balance correction
CN102761766B (en) Color Feature Extraction Method
CN104599636B (en) LED display bright chroma bearing calibration and bright chroma correction coefficient generating means
JP5179829B2 (en) Gray data correction apparatus and method
US6594384B1 (en) Apparatus and method for estimating and converting illuminant chromaticity using perceived illumination and highlight
US8373721B2 (en) Method of realism assessment of an image composite
CN104581105B (en) Based on the auto white balance method of colour temperature range conversion weight map and the correction of block reliability
TW201325260A (en) Image processing device, image processing method, and program
CN103854261B (en) The bearing calibration of colour cast image
CN103402117A (en) Method for detecting color cast of video image based on Lab chrominance space
JP5847341B2 (en) Image processing apparatus, image processing method, program, and recording medium
CN104954772B (en) An Image Near Gray Pixel Selection Algorithm Applied to Automatic White Balance Algorithm
TWI293742B (en)
US9794450B2 (en) Image processor, image display device, and image processing method for correcting input image
TWI405148B (en) Method of realism assessment of an image composite
CN109102473B (en) Method for improving color digital image quality
Hellwig et al. 75‐1: Student Paper: Brightness and Vividness of High Dynamic Range Displayed Imagery
JP4156949B2 (en) Efficient storage of color band and color signal processing apparatus and method using the same
CN101222572B (en) White balance processing equipment
Hu et al. No reference quality assessment for Thangka color image based on superpixel
CN113670443B (en) Color difference measurement method, system and smart terminal based on device-independent color space
CN109978834A (en) A kind of screen picture quality evaluating method based on color and textural characteristics
CN108022241A (en) A kind of coherence enhancing quality evaluating method towards underwater picture collection
CN103136722A (en) Color gamut analysis based image partition method and system
KR101893793B1 (en) Methdo and apparatus for photorealistic enhancing of computer graphic image

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees