JPH07134769A - Anti-aliasing processing method for image synthesis - Google Patents

Anti-aliasing processing method for image synthesis

Info

Publication number
JPH07134769A
JPH07134769A JP5303479A JP30347993A JPH07134769A JP H07134769 A JPH07134769 A JP H07134769A JP 5303479 A JP5303479 A JP 5303479A JP 30347993 A JP30347993 A JP 30347993A JP H07134769 A JPH07134769 A JP H07134769A
Authority
JP
Japan
Prior art keywords
image
pixel
density value
label
density
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
JP5303479A
Other languages
Japanese (ja)
Inventor
Norio Niitsuma
規夫 新妻
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.)
Fujitsu General Ltd
Original Assignee
Fujitsu General 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 Fujitsu General Ltd filed Critical Fujitsu General Ltd
Priority to JP5303479A priority Critical patent/JPH07134769A/en
Publication of JPH07134769A publication Critical patent/JPH07134769A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the whole extracted image (especially an internal image) from being unclear in an anti-aliasing processing method for quieting the peripheral part of an extracted image. CONSTITUTION:In image synthesis for integrating an extracted image in an area corresponding to a background image, identifying labels Lk ('1' e.g.), Lc ('2' e.g.) are allocated to boundary picture elements and picture elements in the inside extracted image as shown in figures (a), (b), outline image elements are detected by using the boundary image elements of the label Lk, the density value of each outline image element is substituted by the mean value of density values of 8 peripheral image elements, a label Lr ('3' e.g.) are allocated to the substituted picture elements as shown in a figure (c), and then the density value of each boundary image element of the label Lk is substituted by a weighted mean value between the density values of 8 peripheral picture elements and the density value of the picture element itself (e.g. twice the density value of the picture element itself is weighted). An image corresponding to the picture elements of the labels Lr, Lk, Lc is displayed as an anti-aliasing picture.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、景観シミュレーション
やデザインシミュレーション等のイメージシミュレーシ
ョンシステム、電子カタログの展示システム等で用いら
れる画像合成における、アンチエリアシング処理方法に
関するものである。詳しくは、原画像から切り出した抽
出画像を背景画像の対応領域に組み込む画像合成におい
て、抽出画像の周辺部のギザギザを目立たなくするため
のアンチエリアシング(anti−aliasing)
処理に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an anti-aliasing processing method in image synthesis used in image simulation systems such as landscape simulations and design simulations, and electronic catalog exhibition systems. Specifically, in image synthesis in which the extracted image cut out from the original image is incorporated into the corresponding region of the background image, anti-aliasing for making the jagged edges of the extracted image inconspicuous
It is about processing.

【0002】[0002]

【従来の技術】一般に、画像抽出によって原画像(例え
ば自然画像)から切り出した抽出画像を背景画像(原画
像とは別の画像、例えば、人工的な画像)の対応領域に
組み込んだ合成画像においては、抽出画像と背景画像の
境界部分(特に斜線部分や辺縁部分)にギザギザが生じ
(例えば階段状のギザギザが生じ)、ちらつきが目立つ
などのエリアシング(aliasing)と呼ばれる現
象が生じ、見るものに違和感を生じさせるという問題が
ある。
2. Description of the Related Art Generally, in a composite image in which an extracted image cut out from an original image (for example, a natural image) by image extraction is incorporated into a corresponding region of a background image (an image different from the original image, for example, an artificial image). Causes a phenomenon called aliasing, such as jaggedness (e.g., stepped jaggedness) occurs at the boundary between extracted image and background image (particularly, the shaded area and the edge area), and flicker is noticeable. There is a problem that something is wrong.

【0003】このような問題を解決するために、エリア
シング現象を抑制するためのアンチエリアシング処理が
行なわれる。従来のアンチエリアシング処理方法には、
ギザギザのエッジ部分をぼかして目立たなくするため
に、抽出画像に一定のローパスフィルタをかけて(例え
ば対象画素を周囲の画素の平均値で置き換えて)平滑化
(スムージング)し、周辺をぼかすという方法が行なわ
れていた。
In order to solve such a problem, anti-aliasing processing for suppressing the aliasing phenomenon is performed. Conventional anti-aliasing processing methods include
In order to blur the jagged edges to make them inconspicuous, a certain low-pass filter is applied to the extracted image (for example, the target pixel is replaced with the average value of surrounding pixels) to smooth (smooth) and blur the periphery. Was being conducted.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た従来のアンチエリアシング処理方法は、ギザギザ部分
が中間階調の濃度をもつ画素で埋められることになるの
で一定の効果はあるが、フィルタリング処理は画像全体
に及ぶため、周辺以外の部分も平滑化され、抽出画像全
体がピンボケの状態になるのを避けることができないと
いう問題点があった。
However, the above-described conventional anti-aliasing processing method has a certain effect because the jagged portion is filled with pixels having the density of the intermediate gradation, but the filtering processing is not performed. Since it covers the entire image, parts other than the surroundings are also smoothed, and there is a problem that the entire extracted image cannot be out of focus.

【0005】本発明は上述の問題点に鑑みなされたもの
で、抽出画像の周辺部のみをぼかしてギザギザを目立た
なくさせ、しかも抽出画像全体(特に内部の画像)が不
鮮明になるのを防止することのできる、画像合成におけ
るアンチエリアシング処理方法を提供することを目的と
するものである。
The present invention has been made in view of the above-mentioned problems, and only the peripheral portion of the extracted image is blurred so that the jaggedness becomes inconspicuous, and furthermore, the entire extracted image (in particular, the image inside) is prevented from becoming unclear. It is an object of the present invention to provide an anti-aliasing processing method in image synthesis capable of performing the above.

【0006】[0006]

【課題を解決するための手段】本発明は、画像抽出で原
画像から切り出した抽出画像を背景画像の対応領域に組
み込む画像合成において、前記抽出画像のうちの前記背
景画像に接する画素を境界画素とし、前記背景画像のう
ちの前記抽出画像に接する画素を輪郭画素とし、まず前
記輪郭画素の濃度値を周辺画素の濃度値の荷重平均値で
置換し、ついで前記境界画素の濃度値を周辺画素の濃度
値と自身の濃度値との荷重平均値で置換してなることを
特徴とするものである。
According to the present invention, in image synthesis in which an extracted image cut out from an original image by image extraction is incorporated into a corresponding region of a background image, a pixel of the extracted image which is in contact with the background image is a boundary pixel. And a pixel in the background image that is in contact with the extracted image is defined as a contour pixel, and the density value of the contour pixel is first replaced by a weighted average value of the density values of peripheral pixels, and then the density value of the boundary pixel is defined as a peripheral pixel. It is characterized in that it is replaced by the weighted average value of the density value of and the density value of itself.

【0007】[0007]

【作用】抽出画像を背景画像の対応領域に組み込んで画
像を合成する際に、まず輪郭画素の濃度値が隣接する周
辺画素の濃度値の荷重平均値で置換される。ついで境界
画素の濃度値が隣接する周辺画素の濃度値と自身の濃度
値との荷重平均値で置換される。そして、濃度値の置換
された輪郭画素および境界画素に相当する画像と、濃度
値の置換のない(原濃度値のままの)抽出画像とが、ア
ンチエリアシング処理された画像として表示される。こ
のため、抽出画像の周辺部に位置する境界画素と輪郭画
素の濃度値が荷重平均値で置換され、抽出画像の周辺部
のみがアンチエリアシング処理でぼかされる。
When the extracted image is incorporated in the corresponding area of the background image to synthesize the image, the density value of the contour pixel is first replaced by the weighted average value of the density values of the adjacent peripheral pixels. Next, the density value of the boundary pixel is replaced with the weighted average value of the density values of the adjacent peripheral pixels and the density value of itself. Then, the image corresponding to the contour pixel and the boundary pixel with the replaced density value, and the extracted image without replacement of the density value (the original density value remains) are displayed as the anti-aliased image. Therefore, the density values of the boundary pixels and the contour pixels located in the peripheral portion of the extracted image are replaced with the weighted average value, and only the peripheral portion of the extracted image is blurred by the anti-aliasing process.

【0008】[0008]

【実施例】以下、本発明による画像合成におけるアンチ
エリアシング処理方法の一実施例を図1から図6までを
用いて説明する。図2は本発明方法の一実施例を実施す
る装置の構成例で、この図において、10はテレビカメ
ラやイメージスキャナ等を主体としてなる画像入力部
で、この画像入力部10は、原画像(例えば自然画像)
を取り込んで、対応した原画像情報を出力するように構
成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an anti-aliasing processing method in image composition according to the present invention will be described below with reference to FIGS. FIG. 2 shows a configuration example of an apparatus for carrying out an embodiment of the method of the present invention. In this figure, 10 is an image input section mainly composed of a television camera, an image scanner, etc., and the image input section 10 is an original image ( (For example, a natural image)
Is taken in and the corresponding original image information is output.

【0009】12は画像処理部の一例としてのマイクロ
プロセッサ、14はRAM(例えばVRAM)、16は
画像表示部の一例としてのCRTディスプレイ、18は
ポインティングデバイスの一例としてのタブレットを表
し、前記RAM14は、原画像記憶部14a、背景画像
記憶部14b、輪郭線記憶部14cおよび境界線記憶部
14dを具備している。
Reference numeral 12 is a microprocessor as an example of an image processing unit, 14 is a RAM (for example, VRAM), 16 is a CRT display as an example of an image display unit, 18 is a tablet as an example of a pointing device, and the RAM 14 is An original image storage unit 14a, a background image storage unit 14b, a contour line storage unit 14c, and a boundary line storage unit 14d are provided.

【0010】20は前記マイクロプロセッサ12に結合
したROMで、このROM20内には、前記マイクロプ
ロセッサ12によって公知の境界線抽出追跡処理、粗輪
郭線細線化処理、画像抽出処理および画像合成処理を行
なわせるためのプログラムが格納されている。これらの
プログラムによって抽出、合成されたアンチエリアシン
グ処理前の合成画像は、前記CRTディスプレイ16に
よって図3に示すように表示される。この図において、
22は抽出画像、24は背景画像、26は合成画像を表
わす。前記ROM20内には、さらに、前記マイクロプ
ロセッサ12によって本発明方法を実施するのに必要な
プログラムが格納されている。
Reference numeral 20 denotes a ROM coupled to the microprocessor 12, and in the ROM 20, known boundary line extraction / tracking processing, coarse contour thinning processing, image extraction processing and image synthesis processing are performed by the microprocessor 12. Stores the program for making it. The combined image before the anti-aliasing process extracted and combined by these programs is displayed on the CRT display 16 as shown in FIG. In this figure,
22 is an extracted image, 24 is a background image, and 26 is a composite image. The ROM 20 further stores programs necessary for the microprocessor 12 to carry out the method of the present invention.

【0011】つぎに、図2の作用を図1、図3から図5
までを併用して説明する。 (イ)まず、従来例と同様にして、画像入力部10で取
り込んだ原画像情報がRAM14内の原画像記憶部14
aに書き込まれ、マイクロプロセッサ12によるROM
20の画像抽出用および画像合成用プログラムの実行に
よって、原画像から切り出し(抽出し)た抽出画像22
を、背景画像記憶部14bから読み出した背景画像24
の対応領域に組み込んだ合成画像26を形成し、この合
成画像26を、図3に示すように、CRTディスプレイ
16で表示せしめる。
Next, the operation of FIG. 2 will be described with reference to FIGS.
Will be explained together. (A) First, in the same manner as the conventional example, the original image information captured by the image input unit 10 is stored in the original image storage unit 14 in the RAM 14.
ROM written by a microprocessor 12 by a
The extracted image 22 cut out (extracted) from the original image by executing the image extracting and image synthesizing program 20 of FIG.
The background image 24 read from the background image storage unit 14b.
The combined image 26 incorporated in the corresponding area is formed, and the combined image 26 is displayed on the CRT display 16 as shown in FIG.

【0012】(ロ)ついで、タブレット20やキーボー
ド(図示省略)からアンチエリアシング処理のための指
令を出すと、まず、マイクロプロセッサ12は、ROM
20に格納された境界線抽出追跡用プログラムに基づく
処理機能によって、境界画素を抽出し、この境界画素
と、その内側の抽出画像の画素に、図4の(a)、
(b)に示すように、識別用のラベル「1」(Lk=1
の場合)、「2」(Lc=2の場合)を付与する。この
とき、境界画素の濃度値(例えば輝度)は境界線記憶部
14dに記憶される。
(B) Next, when a command for anti-aliasing processing is issued from the tablet 20 or a keyboard (not shown), first, the microprocessor 12 causes the ROM
A boundary pixel is extracted by a processing function based on the boundary line extraction and tracking program stored in 20, and the boundary pixel and the pixel of the extracted image inside the boundary pixel are shown in FIG.
As shown in (b), the identification label “1” (Lk = 1
In the case of) and “2” (in the case of Lc = 2). At this time, the density value (for example, brightness) of the boundary pixel is stored in the boundary storage unit 14d.

【0013】前記ラベル「2」の付与は、背景画像24
を含めた全体の合成画像26の端から走査することによ
って、または、内部領域の1点を指定し、この指定点を
基にした領域塗りつぶし手法によって行なわれる。な
お、図4の(a)、(b)に示すラベル画像において、
背景画像に対応する画素のラベル「0」は、まだラベル
付けされていない状態を表わす。
The label “2” is added to the background image 24.
The scanning is performed by scanning from the end of the entire combined image 26 including, or by designating one point in the internal region and performing a region filling method based on the designated point. In the label images shown in FIGS. 4A and 4B,
The label "0" of the pixel corresponding to the background image represents a state where the pixel is not yet labeled.

【0014】(ハ)ついで、マイクロプロセッサ12
は、ROM20に格納された輪郭画素検出用およびその
濃度値演算置換用プログラムに基づく処理機能によっ
て、輪郭画素を検出し、その濃度値を周辺8画素の濃度
値の平均値で置換し、図4の(c)に示すように、識別
用のラベル「3」(Lr=3の場合)を付与する。この
とき、輪郭画素の濃度値は輪郭線記憶部14cに記憶さ
れる。
(C) Next, the microprocessor 12
4 detects a contour pixel by a processing function based on a contour pixel detection program and its density value calculation / replacement program stored in the ROM 20, and replaces the density value with the average value of the density values of the eight peripheral pixels. As shown in (c) of, the identification label “3” (when Lr = 3) is given. At this time, the density value of the contour pixel is stored in the contour storage unit 14c.

【0015】前記(ハ)の作用をより詳しく説明する
と、輪郭画素の検出は、ラベル「1」で特定された境界
画素に接する画素のうちの、ラベル付けされていない画
素(即ちラベル「0」の背景画像の画素)を検出するこ
とによって行なわれる。また、輪郭画素の濃度値置換の
ための演算は、つぎのようにして行なわれる。すなわ
ち、図5に示すように、濃度値置換を行なう輪郭画素を
X0とし、周辺8画素をX1〜X8とすると、X0の周
辺8画素の平均値のR(赤)、G(緑)、B(青)成分
Rx0、Gx0、Bx0は、つぎの演算式(1)、
(2)、(3)によって求められる。
The operation of (c) will be described in more detail. For the detection of contour pixels, the unlabeled pixels (that is, the label "0") among the pixels in contact with the boundary pixels specified by the label "1" are detected. Of the background image of the pixel). The calculation for replacing the density value of the contour pixel is performed as follows. That is, as shown in FIG. 5, assuming that the contour pixel for which the density value replacement is performed is X0 and the eight peripheral pixels are X1 to X8, R (red), G (green), and B of the average values of the eight peripheral pixels of X0. The (blue) components Rx 0 , Gx 0 , and Bx 0 are expressed by the following arithmetic expression (1),
It is obtained by (2) and (3).

【0016】 Rx0=(Rx1+Rx2+Rx3+…+Rx8)/8…(1) Gx0=(Gx1+Gx2+Gx3+…+Gx8)/8…(2) Bx0=(Bx1+Bx2+Bx3+…+Bx8)/8…(3) そして、対象となる輪郭画素X0の濃度値のR、G、B
成分が、上述の(1)〜(3)で求めた平均値Rx0
Gx0、Bx0によって置換される。なお、上述の(1)
〜(3)において、Rx1〜Rx8、Gx1〜Gx8、Bx
1〜Bx8は、周辺8画素X1〜X8の濃度値のR、G、
B成分を表わす。
Rx 0 = (Rx 1 + Rx 2 + Rx 3 + ... + Rx 8 ) / 8 (1) Gx 0 = (Gx 1 + Gx 2 + Gx 3 + ... + Gx 8 ) / 8 ... (2) Bx 0 = (Bx 1 + Bx 2 + Bx 3 + ... + Bx 8 ) / 8 (3) Then, R, G, and B of the density value of the target contour pixel X0
The component is the average value Rx 0 obtained in the above (1) to (3),
It is replaced by Gx 0 and Bx 0 . In addition, the above (1)
To (3), Rx 1 to Rx 8 , Gx 1 to Gx 8 , Bx
1 to Bx 8 are the density values R, G of the peripheral 8 pixels X1 to X8,
Represents the B component.

【0017】上述の(1)の演算は、より具体的にはつ
ぎのようになる。すなわち、説明の便宜上、抽出画像の
濃度値がゼロでなく、背景画像の濃度値がゼロであると
すると、図6の(a)に示すように、対象となる輪郭画
素X0の周辺8画素X1〜X8のうち、背景画像側の画
素X2〜X6の濃度値がゼロとなるので、 Rx0=(Rx1+Rx7+Rx8)/8 となる。上述の(2)、(3)の演算についても同様で
ある。
More specifically, the calculation of the above (1) is as follows. That is, for convenience of explanation, assuming that the density value of the extracted image is not zero and the density value of the background image is zero, as shown in (a) of FIG. 6, eight pixels X1 around the target contour pixel X0. of ~X8, since the density value of the background image of the pixel X2~X6 is zero, the Rx 0 = (Rx 1 + Rx 7 + Rx 8) / 8. The same applies to the operations (2) and (3) described above.

【0018】(ニ)ついで、マイクロプロセッサ12
は、ROM20に格納された境界画素の濃度値演算置換
用プログラムに基づく機能によって、境界画素の濃度値
を周辺8画素の濃度値と自身の濃度値との荷重平均値で
置換する。この濃度値置換のための荷重平均演算は、つ
ぎのようにして行なわれる。すなわち、前記(ハ)の場
合と同様にして図5に示すように、濃度値置換を行なう
境界画素をX0とし、周辺8画素をX1〜X8とする
と、X0自身とその周辺8画素の荷重平均値のR、G、
B成分Rx0、Gx0、Bx0は、つぎの演算式(4)、
(5)、(6)によって求められる。
(D) Next, the microprocessor 12
Replaces the density value of the boundary pixel with the weighted average value of the density values of the surrounding eight pixels and the density value of itself by the function based on the program for replacing the density value of the boundary pixel stored in the ROM 20. The weighted average calculation for this density value replacement is performed as follows. That is, as in the case of (c), as shown in FIG. 5, when the boundary pixel for which the density value replacement is performed is X0 and the eight peripheral pixels are X1 to X8, the weighted average of X0 itself and its eight peripheral pixels is set. Values R, G,
The B components Rx 0 , Gx 0 , and Bx 0 are expressed by the following arithmetic expression (4),
It is obtained by (5) and (6).

【0019】 Rx0=(2Rx01+Rx1+Rx2+…+Rx8)/10…(4) Gx0=(2Gx01+Gx1+Gx2+…+Gx8)/10…(5) Bx0=(2Bx01+Bx1+Bx2+…+Bx8)/10…(6) そして、対象となる境界画素X0の濃度値のR、G、B
成分が、上述の(4)〜(6)で求めた平均値Rx0
Gx0、Bx0によって置換される。なお、上述の(4)
〜(6)において、Rx0、Gx0、Bx0は、対象とな
る境界画素X0の濃度値のR、G、B成分を表わす。
Rx 0 = (2Rx 01 + Rx 1 + Rx 2 + ... + Rx 8 ) / 10 (4) Gx 0 = (2Gx 01 + Gx 1 + Gx 2 + ... + Gx 8 ) / 10 ... (5) Bx 0 = (2Bx 01 + Bx 1 + Bx 2 + ... + Bx 8 ) / 10 (6) Then, R, G, and B of the density value of the target boundary pixel X0
The component is the average value Rx 0 obtained in the above (4) to (6),
It is replaced by Gx 0 and Bx 0 . In addition, the above (4)
In (6), Rx 0 , Gx 0 , and Bx 0 represent the R, G, and B components of the density value of the target boundary pixel X0.

【0020】上述の(4)の演算は、より具体的にはつ
ぎのようになる。すなわち、説明の便宜上、抽出画像の
濃度値がゼロでなく、背景画像の濃度値がゼロであると
すると、図6の(b)に示すように、対象となる輪郭画
素X0および、その周辺8画素X1〜X8のうち、背景
画像側の画素X3〜X5の濃度値がゼロとなるので、 Rx0=(2Rx01+Rx1+Rx2+Rx6+Rx7+R
8)/10 となる。上述の(5)、(6)の演算についても同様で
ある。
More specifically, the operation (4) described above is as follows. That is, for convenience of explanation, if the density value of the extracted image is not zero and the density value of the background image is zero, as shown in FIG. 6B, the target contour pixel X0 and its periphery 8 Since the density value of the pixels X3 to X5 on the background image side among the pixels X1 to X8 is zero, Rx 0 = (2Rx 01 + Rx 1 + Rx 2 + Rx 6 + Rx 7 + R
x 8 ) / 10. The same applies to the operations (5) and (6) described above.

【0021】(ホ)ついで、マイクロプロセッサ12
は、ROM20に格納された画像合成用プログラムに基
づく画像合成機能によって、図4の(c)に示すよう
に、ラベル「1」、「2」および「3」にラベル付けし
た境界画素、その内側の抽出画素および輪郭画素の画素
領域を、アンチエリアシング処理された抽出画像とし
て、背景画像の対応領域に組み込んだ合成画像を、CR
Tディスプレイ16で表示せしめる。
(E) Next, the microprocessor 12
Is a boundary pixel labeled with labels “1”, “2” and “3”, as shown in (c) of FIG. 4, by the image synthesizing function based on the image synthesizing program stored in the ROM 20. The combined image in which the pixel areas of the extracted pixels and contour pixels of the
Display it on the T display 16.

【0022】前記実施例では、まず境界画素を求め、こ
の境界画素と、その内側の抽出画像の画素にラベルLk
(=1)とLc(=2)を付与し、このラベルLkの画
素を用いて輪郭画素を検出し、その濃度値を平均値で置
換してラベルLr(=3)を付与し、ついでラベルLk
(=1)の画素の濃度値を荷重平均値で置換するように
したが、本発明はこれに限るものでない。
In the above embodiment, the boundary pixel is first obtained, and the boundary pixel and the pixel of the extracted image inside thereof are labeled Lk.
(= 1) and Lc (= 2) are given, the contour pixel is detected using the pixel of this label Lk, the density value is replaced with the average value and the label Lr (= 3) is given, and then the label Lk
Although the density value of the pixel of (= 1) is replaced by the weighted average value, the present invention is not limited to this.

【0023】例えば、図7に示すように、まず輪郭画素
を求め、この輪郭画素と、その内側の抽出画像の画素に
ラベルLr(=1)とLc(=2)を付与し、このラベ
ルLrの画素の濃度値を平均値で置換し、ついでラベル
Lcの画素のうちのラベルLrの画素に接する画素の濃
度値を荷重平均値で置換し、ラベルLk(=3)を付与
するようにしてもよい。
For example, as shown in FIG. 7, a contour pixel is first obtained, and labels Lr (= 1) and Lc (= 2) are given to this contour pixel and the pixel of the extracted image inside thereof, and this label Lr is given. The density value of the pixel of is replaced with the average value, and then the density value of the pixel of the pixel of the label Lc which is in contact with the pixel of the label Lr is replaced with the weighted average value to give the label Lk (= 3). Good.

【0024】具体的には、図8および図9のようにな
る。すなわち、図8はアンチエリアシング処理前の合成
画像26aを示すもので、合成画像26aは、図3の場
合と同様にして、抽出画像22aを背景画像24aの所
定領域に組み込んで合成されている。そして、アンチエ
リアシング処理指令によって、マイクロプロセッサ12
は、ROM20に格納された粗輪郭線細線化処理用プロ
グラムに基づく処理機能によって、輪郭画素を抽出し、
この輪郭画素と、その内側の抽出画像の画素に、図9の
(a)、(b)に示すように、識別用のラベル「1」
(Lr=1の場合)、「2」(Lc=2の場合)を付与
する。
Specifically, it is as shown in FIGS. 8 and 9. That is, FIG. 8 shows a composite image 26a before the anti-aliasing process. The composite image 26a is composed by incorporating the extracted image 22a into a predetermined area of the background image 24a in the same manner as in the case of FIG. . Then, according to the anti-aliasing processing command, the microprocessor 12
Extracts a contour pixel by a processing function based on a program for coarse contour thinning processing stored in the ROM 20,
As shown in (a) and (b) of FIG. 9, the identification label “1” is added to the contour pixel and the pixel of the extracted image inside the contour pixel.
(When Lr = 1), “2” (when Lc = 2) is given.

【0025】ついで、ラベル「1」の抽出画素の濃度値
を平均値で置換する。この置換のための演算は、前記実
施例の場合と同様に、前記(1)〜(3)式によって行
なわれる。ついで、ラベル「2」の抽出画素のうち、ラ
ベル「1」の画素に接する画素の濃度値を荷重平均値で
置換し、図9の(c)に示すように、境界画素識別用の
ラベル「3」(Lk=3)を付与する。この置換のため
の演算は、前記実施例の場合と同様に、前記(4)〜
(6)式によって行なわれる。
Then, the density value of the extracted pixel of label "1" is replaced with the average value. The calculation for this replacement is performed by the equations (1) to (3) as in the case of the above embodiment. Then, among the extracted pixels of the label "2", the density value of the pixel in contact with the pixel of the label "1" is replaced with the weighted average value, and as shown in (c) of FIG. 3 ”(Lk = 3). The calculation for this replacement is the same as in the case of the above-mentioned embodiment.
This is performed by the equation (6).

【0026】前記実施例(図1に対応)では、輪郭画
素、境界画素、抽出画素の識別用のラベルLr、Lk、
Lcは、第1実施例(図1、3に対応)では「3」、
「1」、「2」とし、第2実施例(図7、9に対応)で
は「1」、「3」、「2」としたが、本発明はこれに限
るものでなく、相互に識別可能なラベルであればよい。
In the above-described embodiment (corresponding to FIG. 1), the labels Lr, Lk, for identifying the contour pixel, the boundary pixel, and the extracted pixel,
Lc is “3” in the first embodiment (corresponding to FIGS. 1 and 3),
Although "1" and "2" are used and "1", "3" and "2" are used in the second embodiment (corresponding to FIGS. 7 and 9), the present invention is not limited to this, and they are mutually distinguishable. Any label is possible.

【0027】前記実施例では、輪郭画素と境界画素に識
別用のラベルLr(例えば3)とLk(例えば1)を付
与し、濃度置換する画素を特定することによって、アン
チエリアシング処理する画素の判別を容易にして確実な
処理を行なうことができるようにしたが、本発明はこれ
に限るものでなく、ラベル付け以外の方法で濃度置換す
る画素を特定するようにしてもよい。
In the above embodiment, the label Lr (for example, 3) and Lk (for example, 1) for identification are given to the contour pixel and the boundary pixel, and the pixel to be subjected to the density replacement is specified, whereby the pixel to be antialiased is selected. Although the determination is facilitated and the reliable processing can be performed, the present invention is not limited to this, and the pixel to be density-replaced may be specified by a method other than labeling.

【0028】前記実施例では、輪郭画素の濃度値を周辺
画素の濃度値に同一の重み付けをした平均値で置換し、
境界画素の濃度値を周辺画素の濃度値よりも自身の濃度
値の重み付けを大きく(例えば2倍に)した荷重平均値
で置換することによって、抽出画像の周辺部のぼかしを
より自然に近づけるようにしたが、本発明はこれに限る
ものでない。例えば、輪郭画素の濃度値を周辺画素の濃
度値に異なる重み付けをした荷重平均値で置換し、境界
画素の濃度値と周辺画素の濃度値のそれぞれに所定の重
み付けをした荷重平均値で置換するようにしてもよい。
In the above-mentioned embodiment, the density value of the contour pixel is replaced with the average value of the density values of the peripheral pixels, and
By replacing the density value of the boundary pixel with the weighted average value in which the weighting of the density value of the boundary pixel is made larger (for example, doubled) than the density value of the peripheral pixel, the blurring of the peripheral part of the extracted image can be made closer to natural. However, the present invention is not limited to this. For example, the density value of the contour pixel is replaced with a weighted average value that is differently weighted from the density values of the peripheral pixels, and the density value of the boundary pixel and the density values of the peripheral pixels are replaced with weighted average values that are respectively given predetermined weights. You may do it.

【0029】前記実施例では、ROMに画像抽出用、所
定の演算式の演算用、画素合成用、画素濃度置換用など
のプログラムを格納し、これらのプログラムを実行する
ことによって対応した機能を達成させるようにしたが、
本発明はこれに限るものでなく、ROM以外の記憶媒体
(例えばハードディスク、フロッピーディスクなど)に
前記プログラムを格納し、これらのプログラムの実行で
対応した機能を達成させるようにしてもよいし、または
専用のプロセッサを用いて高速処理するようにしてもよ
い。。
In the above embodiment, the ROM stores programs for image extraction, calculation of predetermined arithmetic expressions, pixel combination, pixel density replacement, etc., and the corresponding functions are achieved by executing these programs. I tried to make it
The present invention is not limited to this, and the program may be stored in a storage medium other than the ROM (for example, a hard disk, a floppy disk, etc.) and the corresponding function may be achieved by executing the program, or High-speed processing may be performed using a dedicated processor. .

【0030】[0030]

【発明の効果】請求項1の発明方法は、上記のように、
まず輪郭画素の濃度値を周辺画素の濃度値の荷重平均値
で置換し、ついで境界画素の濃度値を周辺画素の濃度値
と自身の濃度値との荷重平均値で置換し、この濃度置換
した輪郭画素および境界画素による画像と濃度置換しな
い原濃度値のままの大部分の抽出画像とを、アンチエリ
アシング処理した画像として表示せしめるようにしたの
で、抽出画像の周辺部のみをアンチエリアシング処理で
ぼかし、抽出画像の大部分の領域の画像(特に内部の画
像)の鮮明度を保つことができる。したがって、抽出画
像の周辺部のみをぼかしてギザギザを目立たなくさせ、
しかも抽出画像全体(特に内部の画像)が不鮮明になる
のを防止することができる。
As described above, the method of the present invention according to claim 1 is as follows.
First, the density value of the contour pixel is replaced by the weighted average value of the density values of the peripheral pixels, and then the density value of the boundary pixel is replaced by the weighted average value of the density values of the peripheral pixels and its own density value, and this density replacement is performed. The image with contour pixels and boundary pixels and most of the extracted image with the original density value without density replacement are displayed as an anti-aliased image, so only the peripheral part of the extracted image is anti-aliased. It is possible to maintain the sharpness of the image (particularly the internal image) in the most area of the extracted image by blurring. Therefore, only the peripheral part of the extracted image is blurred to make the jagged inconspicuous,
Moreover, it is possible to prevent the entire extracted image (in particular, the image inside) from being blurred.

【0031】請求項2、3の発明方法は、前記請求項1
の発明による効果のほかに、つぎのような付加的効果を
有する。すなわち、アンチエリアシング処理する輪郭画
素と境界画素とに識別用のラベルLrとLkを付与し
て、濃度置換する画素を特定するようにしたので、アン
チエリアシング処理する画素の判別が容易になり、確実
な処理を行なうことができる。
The invention methods of claims 2 and 3 are the same as those of claim 1.
In addition to the effect of the invention of the above, the following additional effects are provided. That is, since the identification labels Lr and Lk are given to the contour pixels and the boundary pixels to be antialiased to identify the pixels to be subjected to the density replacement, the pixels to be antialiased can be easily identified. Therefore, reliable processing can be performed.

【0032】請求項4の発明方法は、前記請求項2、3
の発明による効果のほかに、つぎのような付加的効果を
有する。すなわち、輪郭画素の濃度値を周辺画素の濃度
値に同一の重み付けをした荷重平均値で置換し、境界画
素の濃度値を周辺画素の濃度値よりも自身の濃度値の重
み付けを大きくした荷重平均値で置換するようにしたの
で、抽出画像の周辺部のぼかしを、より自然に近くする
ことができる。
The method of the present invention according to claim 4 is the method according to any one of claims 2 and 3.
In addition to the effect of the invention of the above, the following additional effects are provided. That is, the density value of the contour pixel is replaced with the weighted average value of the density values of the surrounding pixels, and the density value of the boundary pixel is weighted more than the density value of the surrounding pixels. Since the value is replaced, the blurring of the peripheral portion of the extracted image can be made more natural.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明による画像合成におけるアンチエリアシ
ング処理方法の一実施例を示すフローチャートである。
FIG. 1 is a flowchart showing an embodiment of an anti-aliasing processing method in image synthesis according to the present invention.

【図2】図1の方法を実施する装置の概略構成図であ
る。
FIG. 2 is a schematic configuration diagram of an apparatus for performing the method of FIG.

【図3】図1のアンチエリアシング処理を行なう前の表
示画像の説明図である。
FIG. 3 is an explanatory diagram of a display image before the anti-aliasing process of FIG. 1 is performed.

【図4】図1の方法をラベル画像を用いて具体的に説明
する説明図で、(a)は境界画素に識別用のラベル
「1」(Lk=1の場合)を付与した状態を示す説明
図、(b)は境界画素の内側の抽出画像の画素に識別用
のラベル「2」(Lc=2の場合)を付与した状態を示
す説明図、(c)は輪郭画素に識別用のラベル「3」
(Lr=3の場合)を付与した状態を示す説明図であ
る。
4A and 4B are explanatory views for specifically explaining the method of FIG. 1 using a label image, and FIG. 4A shows a state in which an identification label “1” (in the case of Lk = 1) is attached to a boundary pixel. Explanatory drawing, (b) is an explanatory view showing a state in which an identification label “2” (when Lc = 2) is attached to the pixels of the extracted image inside the boundary pixels, and (c) is an outline pixel for identification Label "3"
It is explanatory drawing which shows the state to which (when Lr = 3) was provided.

【図5】輪郭画素と境界画素の濃度値置換用の演算を説
明する説明図で、X0は対象画素を表わし、X1〜X8
は周辺画素を表わす説明図である。
FIG. 5 is an explanatory diagram illustrating an operation for replacing density values of contour pixels and boundary pixels, where X0 represents a target pixel, and X1 to X8.
FIG. 4 is an explanatory diagram showing peripheral pixels.

【図6】図5のより詳しい説明図で、(a)は輪郭画素
の濃度値を周辺画素(8画素)の濃度平均値で置換する
ための演算時の対象画素X0と周辺画素X1〜X8を説
明する説明図、(b)は境界画素の濃度値を周辺画素
(8画素)の濃度値と自身の濃度値の荷重平均値で置換
するための演算時の対象画素X0と周辺画素X1〜X8
を説明する説明図である。
6 is a more detailed explanatory diagram of FIG. 5, in which (a) is a target pixel X0 and peripheral pixels X1 to X8 at the time of calculation for replacing the density value of a contour pixel with the density average value of peripheral pixels (8 pixels). (B) is a target pixel X0 and peripheral pixels X1 to X1 at the time of calculation for replacing the density value of the boundary pixel with the density value of the peripheral pixel (8 pixels) and the weighted average value of its own density value. X8
It is an explanatory view explaining.

【図7】本発明による画像合成におけるアンチエリアシ
ング処理方法の他の実施例を示すフローチャートであ
る。
FIG. 7 is a flowchart showing another embodiment of the anti-aliasing processing method in image synthesis according to the present invention.

【図8】図7のアンチエリアシング処理を行なう前の表
示画像の説明図である。
8 is an explanatory diagram of a display image before the anti-aliasing process of FIG. 7 is performed.

【図9】図7の方法をラベル画像を用いて具体的に説明
する説明図で、(a)は輪郭画素に識別用のラベル
「1」(Lr=1の場合)を付与した状態を示す説明
図、(b)は輪郭画素の内側の抽出画像の画素に識別用
のラベル「2」(Lc=2の場合)を付与した状態を示
す説明図、(c)は境界画素に識別用のラベル「3」
(Lk=3の場合)を付与した状態を示す説明図であ
る。
9 is an explanatory diagram for specifically explaining the method of FIG. 7 using a label image, and FIG. 9A shows a state in which an identification label “1” (in the case of Lr = 1) is given to the contour pixel. Explanatory drawing, (b) is an explanatory view showing a state in which an identification label "2" (in the case of Lc = 2) is added to the pixels of the extracted image inside the contour pixels, and (c) shows the boundary pixels for identification. Label "3"
It is explanatory drawing which shows the state to which (when Lk = 3) was provided.

【符号の説明】[Explanation of symbols]

10…画像入力部、 12…マイクロプロセッサ、14
…RAM、 14a…原画像記憶部、14b…背景画像
記憶部、 14c…輪郭線記憶部、14d…境界線記憶
部、 16…CRTディスプレイ、18…タブレット、
20…ROM、22、22a…抽出画像、 24、2
4a…背景画像、26、26a…合成画像、 Lk、L
r、Lc…識別用のラベル、X0…対象画素、 X1〜
X8…周辺画素。
10 ... Image input unit, 12 ... Microprocessor, 14
... RAM, 14a ... Original image storage section, 14b ... Background image storage section, 14c ... Contour line storage section, 14d ... Boundary line storage section, 16 ... CRT display, 18 ... Tablet,
20 ... ROM, 22, 22a ... Extracted image, 24, 2
4a ... Background image, 26, 26a ... Composite image, Lk, L
r, Lc ... Label for identification, X0 ... Target pixel, X1
X8 ... peripheral pixels.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/36 520 L 9471−5G C 9471−5G H04N 9/75 7459−5L G06F 15/70 335 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G09G 5/36 520 L 9471-5G C 9471-5G H04N 9/75 7459-5L G06F 15/70 335 Z

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】画像抽出で原画像から切り出した抽出画像
を背景画像の対応領域に組み込む画像合成において、前
記抽出画像のうちの前記背景画像に接する画素を境界画
素とし、前記背景画像のうちの前記抽出画像に接する画
素を輪郭画素とし、まず前記輪郭画素の濃度値を周辺画
素の濃度値の荷重平均値で置換し、ついで前記境界画素
の濃度値を周辺画素の濃度値と自身の濃度値との荷重平
均値で置換してなることを特徴とする画像合成における
アンチエリアシング処理方法。
1. In image combination in which an extracted image cut out from an original image by image extraction is incorporated into a corresponding region of a background image, a pixel of the extracted image which is in contact with the background image is defined as a boundary pixel, and a pixel of the background image is extracted. A pixel in contact with the extracted image is defined as a contour pixel, and the density value of the contour pixel is first replaced by the weighted average value of the density values of the peripheral pixels, and then the density value of the boundary pixel and the density value of the peripheral pixel and its own density value. An anti-aliasing processing method in image synthesis, characterized in that the weighted average value of and is replaced.
【請求項2】境界画素とその内側の抽出画像の画素に識
別用のラベルLkとLcを付与し、前記ラベルLkで特
定した境界画素を用いて輪郭画素を検出し、この輪郭画
素について、その濃度値を周辺画素の濃度値の荷重平均
値で置換するとともに識別用のラベルLrを付与し、つ
いで前記ラベルLkを用いて特定した境界画素の濃度値
を周辺画素の濃度値と自身の濃度値との荷重平均値で置
換してなる請求項1記載の画像合成におけるアンチエリ
アシング処理方法。
2. Labels Lk and Lc for identification are given to a boundary pixel and pixels of an extracted image inside the boundary pixel, and a contour pixel is detected by using the boundary pixel specified by the label Lk. The density value is replaced with the weighted average value of the density values of the peripheral pixels, a label Lr for identification is given, and then the density value of the boundary pixel specified using the label Lk is used as the density value of the peripheral pixels and its own density value. 2. The anti-aliasing processing method in image synthesis according to claim 1, wherein the weighted average value of
【請求項3】輪郭画素とその内側の抽出画像の画素に識
別用のラベルLrとLcを付与し、前記ラベルLrで特
定した輪郭画素の濃度値を周辺画素の濃度値の荷重平均
値で置換し、ついで前記ラベルLcの画素のうちの前記
ラベルLrの輪郭画素に接する境界画素について、その
濃度値を周辺画素の濃度値と自身の濃度値との荷重平均
値で置換するとともに、識別用のラベルLkを付与して
なる請求項1記載の画像合成におけるアンチエリアシン
グ処理方法。
3. Labels Lr and Lc for identification are given to the contour pixel and the pixel of the extracted image inside thereof, and the density value of the contour pixel specified by the label Lr is replaced with the weighted average value of the density values of the peripheral pixels. Then, of the pixels of the label Lc, the density value of the boundary pixel which is in contact with the contour pixel of the label Lr is replaced with the weighted average value of the density values of the surrounding pixels and the density value of itself, and the The anti-aliasing processing method in image synthesis according to claim 1, wherein a label Lk is added.
【請求項4】ラベルLrで特定した輪郭画素の濃度値
は、隣接する周辺画素の濃度値に同一の重み付けをした
平均値で置換してなり、ラベルLcで特定した境界画素
の濃度値は、隣接する周辺画素の濃度値よりも自身の濃
度値の重み付けを大きくした荷重平均値で置換してなる
請求項2または3記載の画像合成におけるアンチエリア
シング処理方法。
4. The density value of the contour pixel specified by the label Lr is replaced by an average value obtained by equally weighting the density values of adjacent peripheral pixels, and the density value of the boundary pixel specified by the label Lc is 4. The anti-aliasing processing method in image composition according to claim 2, wherein the weighting of the density value of its own is larger than the density value of the adjacent peripheral pixel.
JP5303479A 1993-11-09 1993-11-09 Anti-aliasing processing method for image synthesis Pending JPH07134769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5303479A JPH07134769A (en) 1993-11-09 1993-11-09 Anti-aliasing processing method for image synthesis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5303479A JPH07134769A (en) 1993-11-09 1993-11-09 Anti-aliasing processing method for image synthesis

Publications (1)

Publication Number Publication Date
JPH07134769A true JPH07134769A (en) 1995-05-23

Family

ID=17921454

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5303479A Pending JPH07134769A (en) 1993-11-09 1993-11-09 Anti-aliasing processing method for image synthesis

Country Status (1)

Country Link
JP (1) JPH07134769A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002163671A (en) * 2000-11-27 2002-06-07 Namco Ltd Game system, program and information storage medium
WO2006129902A1 (en) * 2005-06-03 2006-12-07 Polidigm Co., Ltd. Fast anti-aliasing method
JP2018163285A (en) * 2017-03-27 2018-10-18 セイコーエプソン株式会社 Display device and method for controlling display device
CN117474924A (en) * 2023-12-28 2024-01-30 山东鲁抗医药集团赛特有限责任公司 Label defect detection method based on machine vision

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002163671A (en) * 2000-11-27 2002-06-07 Namco Ltd Game system, program and information storage medium
WO2006129902A1 (en) * 2005-06-03 2006-12-07 Polidigm Co., Ltd. Fast anti-aliasing method
JP2018163285A (en) * 2017-03-27 2018-10-18 セイコーエプソン株式会社 Display device and method for controlling display device
CN117474924A (en) * 2023-12-28 2024-01-30 山东鲁抗医药集团赛特有限责任公司 Label defect detection method based on machine vision
CN117474924B (en) * 2023-12-28 2024-03-15 山东鲁抗医药集团赛特有限责任公司 Label defect detection method based on machine vision

Similar Documents

Publication Publication Date Title
CN110650368B (en) Video processing method and device and electronic equipment
US7340097B2 (en) Image processing apparatus, image processing method, and recording medium
US5715331A (en) System for generation of a composite raster-vector image
US7456904B2 (en) Method and apparatus for superimposing characters on video
JP2003271125A (en) Device, method and program for image display
US5515109A (en) Backing color and luminance nonuniformity compensation
JPH10187966A (en) Method and device for filtering image
US7280117B2 (en) Graphical user interface for a keyer
JP3328741B2 (en) Display device for anti-aliased images
EP0780003B1 (en) Method and apparatus for determining the location of a reflective object within a video field
KR20080011050A (en) Viedo window detector
JPH07134769A (en) Anti-aliasing processing method for image synthesis
US7387386B2 (en) Ophthalmologic image processing apparatus
JP2000089747A (en) Method and device for displaying image
CN110225177B (en) Interface adjusting method, computer storage medium and terminal equipment
JP2713677B2 (en) Color image color change processing method and color image synthesis processing method
JPH06348838A (en) Picture synthesizing method
JPH03259297A (en) Fringed character generating device
JPH05249951A (en) Image information presenting device
JP2005274887A (en) Image display system, image display program and image display method
US20060055707A1 (en) Graphical user interface for a keyer
JPH0462108B2 (en)
JPH03139064A (en) Image synthesizer
JP2638134B2 (en) Image recording apparatus, image output apparatus, image type identification apparatus, image recording apparatus recording method, image output apparatus output method, and image type identification method
JP3504281B2 (en) Time series image information processing method and apparatus