JPH07336529A - Shading method for image - Google Patents

Shading method for image

Info

Publication number
JPH07336529A
JPH07336529A JP6145677A JP14567794A JPH07336529A JP H07336529 A JPH07336529 A JP H07336529A JP 6145677 A JP6145677 A JP 6145677A JP 14567794 A JP14567794 A JP 14567794A JP H07336529 A JPH07336529 A JP H07336529A
Authority
JP
Japan
Prior art keywords
gradation
contour line
image
contour
shadow
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.)
Granted
Application number
JP6145677A
Other languages
Japanese (ja)
Other versions
JP3170419B2 (en
Inventor
Shigeaki Shimazu
茂昭 嶋津
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.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP14567794A priority Critical patent/JP3170419B2/en
Publication of JPH07336529A publication Critical patent/JPH07336529A/en
Application granted granted Critical
Publication of JP3170419B2 publication Critical patent/JP3170419B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To obtain a shading method in which a shade having gradation is easily formed. CONSTITUTION:Mask data representing the contour of an image component being an object of shading are subjected to affine transformation to obtain a shadow shape contour line SOL representing the profile of a shadow area. When the user designates two fixed points pf1, pf2 on the shape contour line, plural gradation contours GOL1-3 spread sequentially in the arch almost from the fixed points toward the shadow contour SOL are obtained. Then a designated gradation is multiplied with picture element data as to each of plural closed areas formed by the gradation contours GOL1-3 to generate the shadow in the inside of the shadow contour SOL.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、1ページ画像内に配
置された画像部品に影を付ける方法に関し、特に、階調
を有する影を形成する方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of casting shadows on image parts arranged in a one-page image, and more particularly to a method of forming shades having gradation.

【0002】[0002]

【従来の技術】製版工程の1つとして画像部品の貼り込
み工程がある。貼り込み工程は、複数の画像部品を順次
台紙に貼り込んでいく作業である。この際、貼り込まれ
た画像部品に影を付ける処理が行なわれることがある。
例えばカタログやチラシなどの1ページ画像に商品の写
真を画像部品として貼り込む場合に、単にその画像部品
を貼り込んだだけでは商品が宙に浮いたような不自然な
印象を与える場合がある。このような場合には、その画
像部品に影を付けることによって商品が床に置かれてい
るような安定感を与え、1ページ画像に自然さを与える
ことができる。
2. Description of the Related Art As one of plate making processes, there is a process of attaching image parts. The pasting step is a task of sequentially pasting a plurality of image components onto the mount. At this time, a process of adding a shadow to the pasted image component may be performed.
For example, when a photograph of a product is pasted as an image component on a one-page image of a catalog or a leaflet, simply attaching the image component may give an unnatural impression that the product is floating in the air. In such a case, it is possible to give a sense of stability that the product is placed on the floor by adding a shadow to the image part, and to give the one-page image a naturalness.

【0003】画像部品の影としては、次第に濃度が変化
するようなぼかし(グラデーションともいう)を伴った
影、すなわち階調を有する影が用いられることがある。
近年ではコンピュータシステムを用いて階調を有する影
が形成される場合が多くなっているが、この場合にはい
わゆるブラシと呼ばれる画像処理が利用される。ブラシ
処理は、CRT画面上に画像を表示し、オペレータがマ
ウス等の座標値入力手段を用いて個々の画素の位置を指
定するとともに、画像データの修正量を指定することに
よって画像部品に影が付けられる。
As the shadow of the image part, a shadow accompanied by gradation (also called gradation) in which the density gradually changes, that is, a shadow having a gradation may be used.
In recent years, a shadow having a gradation is often formed using a computer system, but in this case, image processing called a so-called brush is used. In the brushing process, an image is displayed on the CRT screen, and the operator designates the position of each pixel by using coordinate value input means such as a mouse, and also designates the correction amount of the image data so that the image component is shaded. Attached.

【0004】[0004]

【発明が解決しようとする課題】従来は、上述のよう
に、階調を有する影をオペレータが手作業で形成してい
たので、良好な形状と濃度変化とを有する影を形成する
には、かなりの熟練と長時間の作業を要するという問題
があった。また、所望の影が得られない場合には、同様
の作業を再度行なう必要があった。
Conventionally, as described above, since an operator manually forms a shadow having a gradation, in order to form a shadow having a good shape and density change, There was a problem that it required considerable skill and long work. Further, when the desired shadow cannot be obtained, it is necessary to perform the same work again.

【0005】この発明は、従来技術における上述の課題
を解決するためになされたものであり、階調を有する影
を容易に形成することのできる影付け方法を提供するこ
とを目的とする。
The present invention has been made to solve the above-mentioned problems in the prior art, and an object of the present invention is to provide a shadow-casting method capable of easily forming a shadow having gradation.

【0006】[0006]

【課題を解決するための手段および作用】上述の課題を
解決するため、この発明の請求項1に記載された影付け
方法は、1ページ画像内に配置された対象画像部品に影
を付ける方法であって、(A)前記対象画像部品の輪郭
を構成する第1の輪郭線を表わすマスクデータを準備す
る工程と、(B)対話操作による指定に基づいて、前記
第1の輪郭線をアフィン変換するためのアフィン変換係
数を求める工程と、(C)前記第1の輪郭線に対して前
記アフィン変換を実行することによって、影領域の外形
を示す第2の輪郭線を表わす第2輪郭線データを生成す
る工程と、(D)前記第2の輪郭線上において、少なく
とも1つの固定点を指定する工程と、(E)前記固定点
を通り、前記固定点から前記第2の輪郭線に向かって略
アーチ状に順次広がる複数の第3の輪郭線を表わす第3
輪郭線データを生成する工程と、(F)前記第2と第3
の輪郭線によって形成される複数の閉領域のそれぞれに
ついて、指定された階調率と、前記1ページ画像内にお
いて前記複数の閉領域の位置に存在する画像の画素デー
タの値とを乗ずることによって、前記複数の閉領域のそ
れぞれに含まれる修正画素データを生成する工程とを備
える。
In order to solve the above-mentioned problems, the shadowing method described in claim 1 of the present invention is a method for shadowing a target image part arranged in a one-page image. And (A) preparing mask data representing a first contour line forming the contour of the target image part, and (B) affine the first contour line based on designation by an interactive operation. A step of obtaining an affine transformation coefficient for transformation, and (C) a second contour line representing a second contour line showing the outer shape of the shadow region by executing the affine transformation on the first contour line. Generating data, (D) designating at least one fixed point on the second contour line, and (E) passing through the fixed point and proceeding from the fixed point to the second contour line. And gradually expand in an arch shape Third representing a plurality of third contour line that
Generating contour line data, and (F) the second and third
For each of the plurality of closed areas formed by the contour lines of the above, by multiplying the specified gradation rate by the value of the pixel data of the image existing at the position of the plurality of closed areas in the one-page image, And generating modified pixel data included in each of the plurality of closed regions.

【0007】第2の輪郭線は対象画像部品の輪郭を表わ
すマスクデータをアフィン変換することによって容易に
作成できる。第3の輪郭線を略アーチ状に作成し、第2
と第3の輪郭線で構成される複数の閉領域毎に階調率を
指定して、この階調率と画素データとを乗じることによ
って影を表わす修正画素データを求めるので、背景の色
を反映し、かつ階調を有する影を容易に形成することが
できる。
The second contour line can be easily created by affine transforming the mask data representing the contour of the target image part. Create a third contour line in a generally arched shape
The gradation ratio is designated for each of a plurality of closed regions formed by the third contour line, and the corrected pixel data representing the shadow is obtained by multiplying the gradation ratio by the pixel data. It is possible to easily form a shadow that reflects and has a gradation.

【0008】また、請求項2に記載された影付け方法
は、1ページ画像内に配置された対象画像部品に影を付
ける方法であって、(A)前記対象画像部品の輪郭を構
成する第1の輪郭線を表わすマスクデータを準備する工
程と、(B)対話操作による指定に基づいて、前記第1
の輪郭線をアフィン変換するためのアフィン変換係数を
求める工程と、(C)前記第1の輪郭線に対して前記ア
フィン変換を実行することによって第2の輪郭線を表わ
す第2輪郭線データを生成する工程と、(D)前記第2
の輪郭線上において、2つの固定点を指定する工程と、
(E)前記2つの固定点で区分される前記第2の輪郭線
の第1と第2の輪郭線部分をそれぞれ指定された分割率
で指定された分割数に分割することによって、前記第1
と第2の輪郭線部分上に複数の第1の分割点と複数の第
2の分割点とをそれぞれ設定する工程と、(F)互いに
対応する第1と第2の分割点を結ぶ複数の線分を、それ
ぞれ指定された分割率で指定された分割数に分割するこ
とによって、前記複数の線分のそれぞれの上に複数の第
3の分割点を設定する工程と、(G)前記複数の線分上
における前記複数の第3の分割点のうちの互いに対応す
る第3の分割点と、前記2つの固定点とを連結すること
により、複数の第3の輪郭線を表わす第3輪郭線データ
を生成する工程と、(H)前記第2と第3の輪郭線によ
って形成される複数の閉領域のそれぞれについて、指定
された階調率と、前記1ページ画像内において前記複数
の閉領域の位置に存在する画像の画素データの値とを乗
ずることによって、前記複数の閉領域のそれぞれに含ま
れる修正画素データを生成する工程と、を備える。
A shadow casting method according to a second aspect of the present invention is a method of casting a shadow on a target image component arranged in a one-page image, which comprises (A) constructing a contour of the target image component. 1) based on the step of preparing mask data representing the contour line of No. 1 and (B) designation by an interactive operation.
Determining an affine transformation coefficient for affine transforming the contour line of (2), and (C) executing the affine transformation on the first contour line to obtain second contour line data representing the second contour line. A step of generating, and (D) the second
A step of designating two fixed points on the contour line of
(E) dividing the first and second contour line portions of the second contour line, which are divided by the two fixed points, into a designated number of divisions at a designated division ratio.
And a step of setting a plurality of first dividing points and a plurality of second dividing points respectively on the second contour line portion, and (F) a plurality of connecting the first and second dividing points corresponding to each other. Setting a plurality of third division points on each of the plurality of line segments by dividing the line segment into a number of divisions designated by a designated division ratio; and (G) the plurality of division points. A third contour representing a plurality of third contour lines by connecting a corresponding third division point of the plurality of third division points on the line segment Generating line data, and (H) for each of the plurality of closed regions formed by the second and third contour lines, a specified gradation rate and the plurality of closed regions in the one-page image. By multiplying by the value of the pixel data of the image existing at the position of the area And a step of generating a modified pixel data contained in each of the plurality of closed regions.

【0009】工程(E)ないし(G)を実行することに
よって、第2の輪郭線から第3の輪郭線を容易に生成す
ることができる。従って、請求項1に記載された発明と
同様に、背景の色を反映し、かつ階調を有する影を容易
に形成することができる。
By performing steps (E) to (G), it is possible to easily generate the third contour line from the second contour line. Therefore, similarly to the invention described in claim 1, it is possible to easily form a shadow that reflects the background color and has gradation.

【0010】請求項3に記載された発明は、前記修正画
素データの上に前記対象画像部品の画素データを上書き
することによって、前記複数の閉領域の少なくとも一部
の上に前記対象画像部品が配置された1ページ画像を表
わす画像データを生成する工程、を備える。
According to a third aspect of the present invention, by overwriting the pixel data of the target image component on the corrected pixel data, the target image component is provided on at least a part of the plurality of closed regions. Generating image data representing the arranged one-page image.

【0011】複数の閉領域の画像を表わす修正画素デー
タの上に画像部品の画素データを上書きするので、対象
画像部品の下に影が形成された1ページ画像を得ること
ができる。
Since the pixel data of the image component is overwritten on the corrected pixel data representing the images of the plurality of closed regions, it is possible to obtain the one-page image in which the shadow is formed under the target image component.

【0012】請求項4に記載された方法では、さらに、
第3の輪郭線の間隔を調整することによって、影の階調
変化を変更する工程、を備える。
The method according to claim 4 further comprises:
A step of changing the gradation change of the shadow by adjusting the interval between the third contour lines.

【0013】第3の輪郭線は影の内部において階調が変
化する境界線に相当するので、第3の輪郭線の間隔を調
整すれば、影の階調変化を容易に変更することができ
る。
Since the third contour line corresponds to the boundary line where the gradation changes within the shadow, the gradation change of the shadow can be easily changed by adjusting the interval between the third contour lines. .

【0014】請求項5に記載された方法では、さらに、
複数の閉領域に対する階調率を調整することによって、
影の階調変化を変更する工程、を備える。
The method according to claim 5 further comprises:
By adjusting the gradation rate for multiple closed areas,
A step of changing the gradation change of the shadow.

【0015】このように、複数の閉領域に対する階調率
を調整することによっても影の階調変化を容易に変更す
ることができる。
As described above, the gradation change of the shadow can be easily changed also by adjusting the gradation ratios for a plurality of closed regions.

【0016】[0016]

【実施例】【Example】

A.影付け処理の概要:図1は、本発明による影付け処
理の概要を示す説明図である。図1(A)の上部は山の
写真の輪郭を示している。第1のタイプ(以下、「投影
タイプ」と呼ぶ)の影付け処理では、山の輪郭が反転し
た形で山の下方に形成され、その中にグラデーション
(階調)が設定される。この結果、山の麓から離れるに
従って濃度が次第に変化する影が形成される。図1
(B)の例も同様に、ハンドバック等のような四角形の
物体の輪郭が反転した形でその物体の下方に形成され、
その中にグラデーションが設定される。図1(A),
(B)のように投影タイプの影付け処理を行なうことに
よって、物体が紙面の背後から照明されている場合に生
じるような、階調のある影を作成することが可能であ
る。
A. Outline of the shadowing process: FIG. 1 is an explanatory diagram showing an outline of the shadowing process according to the present invention. The upper part of FIG. 1 (A) shows the outline of the photograph of the mountain. In the first type (hereinafter, referred to as “projection type”) of shadowing processing, the contour of the mountain is formed below the mountain in a reversed shape, and gradation (gradation) is set in the shadow. As a result, a shadow is formed whose concentration gradually changes as it moves away from the foot of the mountain. Figure 1
Similarly, in the example of (B), the outline of a rectangular object such as a handbag is formed below the object in an inverted form.
The gradation is set in it. Figure 1 (A),
By performing the projection type shadowing process as in (B), it is possible to create a shade with a gradation that occurs when an object is illuminated from behind the paper surface.

【0017】図1(C)の例では、四角形の物体の輪郭
が斜め上方向に傾斜した形でその物体の上方に形成さ
れ、その中にグラデーションが設定される。そして、影
が作成された後に、画像部品の画像が上書きされる。図
1(C)のように投影タイプの影付け処理を行なうこと
によって、物体が紙面の前方から照明されている場合に
生じるような、階調のある影を作成することができる。
In the example of FIG. 1C, the contour of a quadrangular object is formed above the object in a shape inclined obliquely upward, and gradation is set therein. Then, after the shadow is created, the image of the image component is overwritten. By performing the projection-type shadowing process as shown in FIG. 1C, it is possible to create a shade with a gradation that occurs when an object is illuminated from the front side of the paper surface.

【0018】図1(D)は第2のタイプ(以下、「平行
移動タイプ」と呼ぶ)の影付け処理を示している。図1
(D)では、四角形の物体の輪郭がコピーされて物体の
背後に移動し、その中にグラデーションが設定される。
図1(D)のように平行移動タイプの影付け処理を行な
うことによって、物体が紙面の斜め上方から照明されて
いる場合に生じるような、階調のある影を作成すること
が可能である。
FIG. 1D shows the shadowing process of the second type (hereinafter referred to as "translation type"). Figure 1
In (D), the outline of the quadrangular object is copied and moved to the back of the object, and the gradation is set therein.
By performing the parallel movement type shadowing process as shown in FIG. 1D, it is possible to create a shade having a gradation that occurs when an object is illuminated from obliquely above the paper surface. .

【0019】B.影付け処理 図2および図3は、図1(B)に示す投影タイプの影付
け処理の手順を示す説明図である。図2(A)は、四角
形の物体の輪郭マスクを示している。輪郭マスクは、影
付け対象となる画像領域の輪郭の頂点p1〜p4を直線
で順次接続した閉ループベクトルである。以下では、影
付けの対象となる画像部品の輪郭線を「マスク輪郭線M
OL」と呼ぶ。なお、絵柄の画像部品は、切抜きマスク
によって切り抜かれて1ページ画像に貼り込まれるのが
普通である。従って、絵柄の画像部品については、切抜
きマスクを影付けの輪郭マスクとして使用することがで
きる。
B. Shadowing Process FIGS. 2 and 3 are explanatory diagrams showing the procedure of the projection type shadowing process shown in FIG. FIG. 2A shows a contour mask of a rectangular object. The contour mask is a closed loop vector in which the vertices p1 to p4 of the contour of the image area to be shaded are sequentially connected by straight lines. In the following, the contour line of the image component to be shaded is referred to as "mask contour line M".
"OL". In addition, the image part of the design is usually cut out by the cutout mask and attached to the one-page image. Therefore, for the image part of the picture, the cutout mask can be used as a contour mask for shadowing.

【0020】図2(B)〜(D)の手順では、輪郭マス
ク(マスク輪郭線MOL)に基づいて影の外形を示す輪
郭線が作成される。以下では、影の外形を示す輪郭線
を、単に「影形状輪郭線SOL」と呼ぶ。図2(B)で
は、対話処理によって、影付け対象となる画像部品のマ
スク輪郭線MOL上に2つの固定点pf1,pf2と1
つの移動点pmとを指定する。また、図2(C)では移
動点pmの移動後の点pm’を指定する。固定点pf
1,pf2は、後述する手順において、影形状輪郭線S
OLの内部領域に階調輪郭線を生成する場合に使用され
る。移動点pm,pm’は、マスク輪郭線MOLをアフ
ィン変換によって影形状輪郭線SOLに変形する場合の
変形量を示している。固定点pf1,pf2と、移動点
pm,pm’とが指定されると、アフィン変換の係数a
〜f(図2(C)参照)が算出される。これらのアフィ
ン変換係数a〜fは、固定点pf1,pf2と第1の移
動点pmで形成される第1の三角形から、固定点pf
1,pf2と第2の移動点pm’で形成される第2の三
角形への変換を表わしている。
In the procedure of FIGS. 2B to 2D, a contour line showing the outline of the shadow is created based on the contour mask (mask contour line MOL). Hereinafter, the contour line showing the outline of the shadow is simply referred to as “shadow shape contour line SOL”. In FIG. 2B, two fixed points pf1, pf2 and 1 are provided on the mask contour line MOL of the image component to be shadowed by the interactive processing.
Two moving points pm are designated. Further, in FIG. 2C, the point pm ′ after the movement of the movement point pm is designated. Fixed point pf
1 and pf2 are shadow-shaped contour lines S in the procedure described later.
It is used when generating a gradation contour line in the internal area of the OL. The moving points pm and pm ′ indicate the deformation amounts when the mask contour line MOL is transformed into the shadow shape contour line SOL by the affine transformation. When the fixed points pf1 and pf2 and the moving points pm and pm 'are specified, the coefficient a of the affine transformation a
To f (see FIG. 2C) are calculated. These affine transformation coefficients a to f are calculated from the first triangle formed by the fixed points pf1 and pf2 and the first moving point pm to the fixed point pf.
1, pf2 and the second moving point pm ′ represent the conversion into the second triangle.

【0021】次に、図2(C)において決定されたアフ
ィン変換係数a〜fに従って、マスク輪郭線MOLの固
定点pf1,pf2以外の輪郭点p2,p3の座標をア
フィン変換する。図2(D)は、変換後の輪郭点pc
2,pc3をそれぞれ示している。影形状輪郭線SOL
は、第2の固定点pf2と、変換後の輪郭点pc2,p
c3と、第1の固定点pf1とを順次接続した閉ループ
ベクトルで表わされる輪郭線である。
Next, the coordinates of the contour points p2 and p3 other than the fixed points pf1 and pf2 of the mask contour line MOL are affine transformed according to the affine transformation coefficients a to f determined in FIG. 2C. FIG. 2D shows the contour point pc after conversion.
2 and pc3 are shown respectively. Shadow shape contour line SOL
Is the second fixed point pf2 and the converted contour points pc2, p
It is a contour line represented by a closed loop vector in which c3 and the first fixed point pf1 are sequentially connected.

【0022】次に、図2(E)に示すように、マスク輪
郭線MOL上の固定点pf2,pf1の間の輪郭部分
が、所定の分割率で所定数に分割される。図2(E)の
例では、固定点pf1,pf2の間の線分[pf1,p
f2]が均等に4分割されており、これによって3つの
分割点df1,df2,df3が得られている。ここ
で、線分[pf1,pf2]とは、2つの点pf1,p
f2を結ぶ線分を意味する。固定点pf1、pf2の間
の輪郭部分を「固定ラインFL」と呼ぶ。また、分割点
df1〜df3を、以下「固定ライン分割点」と呼ぶ。
なお、分割率としては、等分以外の種々の特性を指定す
ることができるが、その詳細については後述する。
Next, as shown in FIG. 2E, the contour portion between the fixed points pf2 and pf1 on the mask contour line MOL is divided into a predetermined number at a predetermined division ratio. In the example of FIG. 2E, a line segment [pf1, p between the fixed points pf1 and pf2 is provided.
f2] is equally divided into four, and three division points df1, df2, and df3 are obtained. Here, the line segment [pf1, pf2] means two points pf1, p
It means a line segment connecting f2. The contour portion between the fixed points pf1 and pf2 is called a "fixed line FL". Further, the division points df1 to df3 are hereinafter referred to as “fixed line division points”.
It should be noted that various characteristics other than equal division can be designated as the division ratio, and details thereof will be described later.

【0023】ところで、影形状輪郭線SOLは、固定点
pf1,pf2によって固定ラインFLと移動ラインに
分割される。移動ラインは、影形状輪郭線SOLの輪郭
線ベクトルの方向(輪郭点pc1,pc2,pc3,p
c4の順に進む方向)に沿って、第2の固定点pf2か
ら第1の固定点pf1までに至る輪郭部分である。図2
(E)の例では影形状輪郭線ベクトルの方向は時計廻り
なので、移動ラインは、輪郭[pf2,pc1,pc
2,pc3,pc4,pf1]となる。ここで、輪郭
[pf2,pc1,pc2,pc3,pc4,pf1]
とは、6つの点pf2,pc1,pc2,pc3,pc
4,pf1をこの順序で線分で結ぶことによって構成さ
れる輪郭部分を意味する。固定ラインFLは、影形状輪
郭線SOLのうちの移動ライン以外の部分である。な
お、固定点pf1,pf2として同一の点を指定した場
合には、影形状輪郭線SOLの全体が移動ラインとな
り、固定ラインは長さが0の線分となる。
By the way, the shadow contour line SOL is divided into a fixed line FL and a moving line by the fixed points pf1 and pf2. The movement line is the direction of the outline vector of the shadow outline SOL (outline points pc1, pc2, pc3, p
A contour portion extending from the second fixed point pf2 to the first fixed point pf1 along the direction c4). Figure 2
In the example of (E), since the direction of the shadow-shaped contour line vector is clockwise, the movement lines are contours [pf2, pc1, pc
2, pc3, pc4, pf1]. Here, the contour [pf2, pc1, pc2, pc3, pc4, pf1]
Are the six points pf2, pc1, pc2, pc3, pc
4, pf1 means a contour portion formed by connecting line segments in this order. The fixed line FL is a part of the shadow-shaped contour line SOL other than the moving line. When the same points are designated as the fixed points pf1 and pf2, the entire shadow-shaped contour line SOL becomes a moving line, and the fixed line becomes a line segment having a length of zero.

【0024】図3(A)では、移動ラインが所定の分割
率で所定数に分割される。図3(A)の例ではこの移動
ラインが均等に4分割されて、3つの分割点dm1,d
m2,dm3が設定されている。等分割されているの
で、線分[pf1,dm1]の間の長さと、輪郭[dm
1,pc3,dm2]の長さと、輪郭[dm2,pc
2,dm3]の長さと、線分[dm3,pf2]の長さ
とは互いに等しい。移動ラインが4つ以上に分割される
場合も同様である。なお、移動ライン上の分割点dm1
〜dm3を、以下「移動ライン分割点」と呼ぶ。また、
固定ラインの分割と同様に、移動ラインの分割率も、等
分以外の種々の特性を指定することができる。
In FIG. 3A, the moving line is divided into a predetermined number at a predetermined division ratio. In the example of FIG. 3A, this moving line is equally divided into four, and three division points dm1, d
m2 and dm3 are set. Since it is equally divided, the length between the line segments [pf1, dm1] and the contour [dm
1, pc3, dm2] and the contour [dm2, pc
2, dm3] and the length of the line segment [dm3, pf2] are equal to each other. The same applies when the moving line is divided into four or more. The division point dm1 on the moving line
Hereinafter, ˜dm3 is referred to as “moving line division point”. Also,
Similar to the division of the fixed line, the division ratio of the moving line can also specify various characteristics other than equal division.

【0025】図3(B)では、図2(E)で求めた固定
ライン分割点df1,df2,df3と図3(A)で求
めた移動ライン分割点dm1,dm2,dm3との間を
それぞれ直線で仮想的に結び、各直線を所定の分割率で
所定数に分割する。この仮想的な直線を、以下「階調ラ
イン」と呼ぶ。図3(B)の例では各階調ラインが均等
に4分割されている。この結果、線分[df1,dm
1]上の分割点pd11,pd12,pd13と、線分
[df2,dm2]上の分割点pd21,pd22,p
d23と、線分[df3,dm3]上の分割点pd3
1,pd32,pd33とが設定される。これらの分割
点pd11〜pd13,pd21〜pd23,pd31
〜pd33を、以下「階調ライン分割点」と呼ぶ。
In FIG. 3B, the fixed line division points df1, df2 and df3 obtained in FIG. 2E and the moving line division points dm1, dm2 and dm3 obtained in FIG. The lines are virtually connected and each line is divided into a predetermined number at a predetermined division ratio. This virtual straight line is hereinafter referred to as a "gradation line". In the example of FIG. 3B, each gradation line is equally divided into four. As a result, the line segment [df1, dm
1] division points pd11, pd12, pd13 on the line segment and division points pd21, pd22, p on the line segment [df2, dm2].
d23 and the division point pd3 on the line segment [df3, dm3]
1, pd32, pd33 are set. These division points pd11 to pd13, pd21 to pd23, pd31
Hereinafter, pd33 will be referred to as “gradation line division points”.

【0026】図3(C)では、点pf1,pd11,p
d21,pd31,pf2を互いに接続することによっ
て輪郭GOL1[pf1,pd11,pd21,pd3
1,pf2]が形成される。同様に、輪郭GOL2[p
f1,pd12,pd22,pd32,pf2]と輪郭
GOL3[pf1,pd13,pd23,pd33,p
f2]も形成される。これらの3つの輪郭線GOL1,
GOL2,GOL3(図3(D)参照)を、以下「階調
輪郭線」と呼ぶ。なお、広義の階調輪郭線は影形状輪郭
線SOLを含んでいる。これらの階調輪郭線GOL1〜
GOL3は、固定点pf1,pf2から影形状輪郭線S
OLに向かって略アーチ状に順次広がっていることが解
る。
In FIG. 3C, points pf1, pd11, p
By connecting d21, pd31, pf2 to each other, the contour GOL1 [pf1, pd11, pd21, pd3
1, pf2] is formed. Similarly, the contour GOL2 [p
f1, pd12, pd22, pd32, pf2] and contour GOL3 [pf1, pd13, pd23, pd33, p
f2] is also formed. These three contour lines GOL1,
The GOL2 and GOL3 (see FIG. 3D) are hereinafter referred to as “gradation contour lines”. It should be noted that the gradation contour line in a broad sense includes the shadow shape contour line SOL. These gradation contour lines GOL1 to GOL1
GOL3 is a shadow-shaped contour line S from the fixed points pf1 and pf2.
It can be seen that the arc gradually expands toward the office.

【0027】図3(D)では、各階調輪郭線の内部に形
成される閉領域に相当する1ページ画像の画素データが
所定の階調率に応じて変換され、これによって影が付け
られる。なお、図3(D)では影形状輪郭線SOLと第
1の階調輪郭線GOL1で囲まれた閉領域内に他の画像
部品が存在しないが、実際には影形状輪郭線SOLの位
置に他の画像部品や背景が存在する場合が多い。この場
合には、他の画像部品や背景の画素データが図3(D)
の処理によって変換される。
In FIG. 3D, the pixel data of the one-page image corresponding to the closed area formed inside each gradation contour line is converted in accordance with a predetermined gradation ratio, and a shadow is added. In FIG. 3D, there is no other image component in the closed area surrounded by the shadow-shaped contour line SOL and the first gradation contour line GOL1, but in reality it is located at the position of the shadow-shaped contour line SOL. There are often other image parts and backgrounds. In this case, the other image parts and the pixel data of the background are shown in FIG.
Is converted by the process.

【0028】図2(E)および図3(A),(B)にお
ける分割率と分割数を変更することによって、各分割点
df1〜3,dm1〜3,pd11〜pd13,pd2
1〜pd23,pd31〜pd33の数や位置を変更す
ることができるので、図3(D)における影の形状を変
更することが可能である。また、図3(D)において各
閉領域に対する階調率を変更すれば、同じ階調輪郭線を
用いた場合にも異なる視覚的効果を有する影を付けるこ
とができる。
By changing the division ratio and the number of divisions in FIGS. 2E, 3A and 3B, the division points df1-3, dm1-3, pd11-pd13 and pd2 are changed.
Since the numbers and positions of 1 to pd23 and pd31 to pd33 can be changed, the shape of the shadow in FIG. 3D can be changed. Further, by changing the gradation rate for each closed region in FIG. 3D, it is possible to add a shadow having a different visual effect even when the same gradation contour line is used.

【0029】なお、上述の影付け処理は、マスク輪郭線
MOL(図2(A))に基づいて、種々の影付けパラメ
ータを使用することによって自動的に実行することがで
きる。影付けパラメータは、例えば、影形状輪郭線SO
Lと、図2(E),図3(A),(B)における線分の
分割率と分割数(これらの詳細ついては後述する)と、
を含むデータセットである。このような影付けパラメー
タを他の画像部品に適用すれば、他の画像部品に対して
同様な影を付けることが可能である。なお、影付けパラ
メータを利用した影のコピーについてはさらに後述す
る。
The above-mentioned shadowing process can be automatically executed by using various shadowing parameters based on the mask contour line MOL (FIG. 2A). The shadowing parameter is, for example, a shadow shape outline SO
L, the division ratio and the number of divisions of the line segments in FIGS. 2E, 3A, and 3B (the details of which will be described later),
It is a data set including. By applying such a shadowing parameter to another image component, it is possible to apply a similar shadow to another image component. It should be noted that the copy of the shadow using the shadowing parameter will be described later.

【0030】図4および図5は、図1(D)に示す平行
移動タイプの影付け処理の手順を示す説明図である。図
4(A)〜(E)は図2(A)〜(E)に対応してお
り、図5(A)〜(D)は図3(A)〜(D)に対応し
ている。以下では、図2および図3における手順との主
要な差異について説明する。
4 and 5 are explanatory views showing the procedure of the parallel movement type shadowing process shown in FIG. 1 (D). FIGS. 4A to 4E correspond to FIGS. 2A to 2E, and FIGS. 5A to 5D correspond to FIGS. 3A to 3D. The main differences from the procedure in FIGS. 2 and 3 will be described below.

【0031】図4(B),(C)においては、固定点p
f1,pf2は指定されずに移動点pm,pm’のみが
指定され、この結果、マスク輪郭線MOLの各輪郭点p
1〜p4がアフィン変換されて、影形状輪郭線SOLが
形成される。この場合のアフィン変換は平行移動であ
る。図4(D)では、影形状輪郭線SOLの上に2つの
固定点pf1,pf2が指定される。このように、平行
移動タイプの影付け処理では、影形状輪郭線SOL上に
固定点pf1,pf2が指定される。なお、図4
(D),(E)および図5(A)〜(D)では、図示の
便宜上、マスク輪郭線MOLを破線で示している。
In FIGS. 4B and 4C, the fixed point p
f1 and pf2 are not specified, and only the moving points pm and pm 'are specified. As a result, each contour point p of the mask contour line MOL is specified.
1 to p4 are affine-transformed to form a shadow-shaped contour line SOL. The affine transformation in this case is translation. In FIG. 4D, two fixed points pf1 and pf2 are designated on the shadow-shaped contour line SOL. As described above, in the parallel movement type shadowing process, the fixed points pf1 and pf2 are designated on the shadow shape outline SOL. Note that FIG.
In (D), (E) and FIGS. 5A to 5D, the mask contour MOL is shown by a broken line for convenience of illustration.

【0032】図4(E)および図5(A)〜(D)の処
理は、前述した図2(E)および図3(A)〜(D)の
処理と同じであり、この結果、階調輪郭線GOL1〜G
OL3が形成される。これらの階調輪郭線GOL1〜G
OL3も、固定点pf1,pf2から影形状輪郭線SO
Lに向かって略アーチ状に順次広がっていることが解
る。図5(D)では、各階調輪郭線内部の閉領域及び影
形状輪郭線SOL内部の閉領域に相当する1ページ画像
の画素データが変換される。平行移動タイプの影付け処
理では、影形状輪郭線SOLで囲まれた影領域の画素デ
ータが生成された後に、影付けの対象となった画像部品
の画素データが上書きされる。従って、影領域は、図5
(E)に示すように対象画像部品の下に隠れた状態とな
る。なお、生成された影を他の画像部品にコピーできる
ことは、投影タイプの影と同様である。
The processing of FIGS. 4 (E) and 5 (A) to (D) is the same as the processing of FIGS. 2 (E) and 3 (A) to (D) described above. Tonal contour lines GOL1 to G
OL3 is formed. These gradation contour lines GOL1 to G
OL3 is also a shadow-shaped contour line SO from the fixed points pf1 and pf2.
It can be seen that the arc gradually expands toward L. In FIG. 5D, the pixel data of the one-page image corresponding to the closed area inside each gradation outline and the closed area inside the shadow outline SOL is converted. In the parallel movement type shadowing process, after the pixel data of the shadow area surrounded by the shadow shape outline SOL is generated, the pixel data of the image component to be shadowed is overwritten. Therefore, the shadow area is shown in FIG.
As shown in (E), it is hidden under the target image component. It should be noted that the generated shadow can be copied to another image component, as in the case of the projection type shadow.

【0033】C.装置の構成:図6は、この発明の一実
施例を適用して画像の影付け処理を行なう製版処理シス
テムの構成を示すブロック図である。この製版処理シス
テムは、画像入力装置100と、画像処理装置200
と、画像出力装置300とで構成されている。画像入力
装置100は、カラー画像の画像データを読取るドラム
型スキャナの入力部や、画像データを記憶する磁気ディ
スク、あるいは他の装置との通信回線等によって実現さ
れる。また、画像処理装置200は、ワークステーショ
ンまたはパーソナルコンピュータによって実現される。
画像出力装置300は、カラーCRTや、ドラム型カラ
ースキャナの出力部、磁気ディスク、通信回線等によっ
て実現される。
C. Device Configuration: FIG. 6 is a block diagram showing the configuration of a plate-making processing system that applies an image shadowing process by applying an embodiment of the present invention. This plate making processing system includes an image input device 100 and an image processing device 200.
And an image output device 300. The image input device 100 is realized by an input unit of a drum type scanner that reads image data of a color image, a magnetic disk that stores image data, a communication line with another device, or the like. Further, the image processing device 200 is realized by a workstation or a personal computer.
The image output device 300 is realized by a color CRT, an output unit of a drum type color scanner, a magnetic disk, a communication line, or the like.

【0034】画像処理装置200のCPU202には、
バス203を介して画像メモリ204と、輪郭線メモリ
206と、メインメモリ208とが接続されている。ま
た、入出力インタフェイス210を介して、キーボード
212と、ポインティングデバイスとしてのマウス21
4およびデジタイザ216と、画像表示手段としてのカ
ラーCRT218とが接続されている。キーボード21
2とマウス214とデジタイザ216は、固定点や移動
点の座標を指定する座標点入力手段として使用され、ま
た、分割点数の指定やルックアップテーブルの内容変更
の指定を行なうためのパラメータ入力手段(指定手段)
としても使用される。画像入力装置100と画像出力装
置300は、画像入出力インタフェイス220に接続さ
れている。
The CPU 202 of the image processing apparatus 200 has
The image memory 204, the contour line memory 206, and the main memory 208 are connected via the bus 203. Also, a keyboard 212 and a mouse 21 as a pointing device are connected via the input / output interface 210.
4 and the digitizer 216, and a color CRT 218 as an image display means are connected. Keyboard 21
2, the mouse 214, and the digitizer 216 are used as coordinate point inputting means for designating the coordinates of a fixed point or a moving point, and the parameter inputting means (designating the number of division points or changing the contents of the lookup table). (Specifying means)
Also used as. The image input device 100 and the image output device 300 are connected to the image input / output interface 220.

【0035】メインメモリ208は、画素変換部222
と、影形状輪郭線作成部224と、階調輪郭線作成部2
26と、図形演算部228とを含んでいる。これらの各
部222,224,226,228は、ソフトウェアプ
ログラムとしてメインメモリ208に記憶されており、
CPU202に実行されるされることによってそれぞれ
の機能が実現される。なお本実施例においては、画像デ
ータもしくは画素データは、加法混色の3原色RGBに
ついての画像の反射率または透過率を特定の階調数、例
えば256階調数で表したものであり、以下、画像デー
タもしくは画素データが表している値を階調値という。
The main memory 208 has a pixel conversion section 222.
And a shadow shape contour line creation unit 224 and a gradation contour line creation unit 2
26 and a figure calculation unit 228. Each of these units 222, 224, 226, 228 is stored in the main memory 208 as a software program,
The respective functions are realized by being executed by the CPU 202. In the present embodiment, the image data or the pixel data is the reflectance or transmittance of the image with respect to the three primary colors RGB of additive color mixture, which is represented by a specific number of gradations, for example, 256 gradations. A value represented by image data or pixel data is called a gradation value.

【0036】図7は、画像メモリ204(図6)の内部
構成を示すブロック図である。図7(A)に示す画像メ
モリ204は、セレクタ230と、実画像メモリ232
と、粗画像メモリ234とを備えている。粗画像メモリ
234は、カラーCRT218に表示するために間引き
された画像データを記憶する。なお、図7(B)に示す
画像メモリ204では、粗画像メモリ234の代わりに
粗画像変換ユニット236を備えており、実画像メモリ
232に記憶されている画像データを間引きすることに
よって粗画像データを生成する。図7(B)に示す画像
メモリ204は、少ないメモリで図7(A)に示す画像
メモリと同一の機能を実現することができる。
FIG. 7 is a block diagram showing the internal structure of the image memory 204 (FIG. 6). The image memory 204 shown in FIG. 7A includes a selector 230 and an actual image memory 232.
And a rough image memory 234. The coarse image memory 234 stores the image data thinned out for display on the color CRT 218. Note that the image memory 204 shown in FIG. 7B includes a rough image conversion unit 236 instead of the rough image memory 234, and thins the image data stored in the actual image memory 232 to reduce the rough image data. To generate. The image memory 204 shown in FIG. 7B can realize the same function as the image memory shown in FIG. 7A with a small memory.

【0037】図8は、輪郭線メモリ206(図6)の内
部構成を示すブロックである。輪郭線メモリ206は、
コントロールメモリ240と、階調輪郭線データメモリ
242と、マスクメモリ244とを含んでいる。コント
ロールメモリ240は、固定点pf1,pf2の座標
と、移動点pm,pm’(図2(C))の座標と、アフ
ィン変換係数a〜fを記憶する。階調輪郭線データメモ
リ242は、広義の階調輪郭線(すなわち影形状輪郭線
SOLと階調輪郭線GOL1〜GOL3)の輪郭点の座
標と各階調輪郭線の階調率を記憶する。なお、階調率に
ついては後述する。マスクメモリ244は、影付け対象
の画像部品のマスク輪郭線MOLを表わすマスクデータ
を記憶する。
FIG. 8 is a block diagram showing the internal structure of the contour line memory 206 (FIG. 6). The contour line memory 206 is
It includes a control memory 240, a gradation contour line data memory 242, and a mask memory 244. The control memory 240 stores the coordinates of the fixed points pf1 and pf2, the coordinates of the moving points pm and pm '(FIG. 2C), and the affine transformation coefficients a to f. The gradation contour line data memory 242 stores the coordinates of the contour points of the gradation contour line in a broad sense (that is, the shadow shape contour line SOL and the gradation contour lines GOL1 to GOL3) and the gradation rate of each gradation contour line. The gradation rate will be described later. The mask memory 244 stores mask data representing the mask contour line MOL of the image component to be cast.

【0038】図9は、影形状輪郭線作成部224(図
6)の機能を示すブロック図である。影形状輪郭線作成
部224は、2つのセレクタ250,252と、影形状
輪郭線バッファSOL_buf とを備えている。影形状輪郭線
SOL(図2(D))を生成する方法としては、図2お
よび図4に示したように、マスク輪郭線MOLをアフィ
ン変換する方法と、ユーザが対話操作によって指定する
方法とがある。マスク輪郭線MOLをアフィン変換する
方法では、マスクメモリ244から転送されたマスクデ
ータが影形状輪郭線バッファSOL_buf に記憶され、図形
演算部228がこのマスクデータにアフィン変換を施す
ことによって影形状輪郭線SOLが作成される。一方、
ユーザが対話操作によって指定する方法では、座標点入
力手段(212,214または216)によって指定さ
れた影形状輪郭線SOLを表わすデータが影形状輪郭線
バッファSOL_buf に記憶される。影形状輪郭線SOLの
輪郭線データは、セレクタ252を介して輪郭線メモリ
206に転送される。
FIG. 9 is a block diagram showing the function of the shadow shape contour line creating section 224 (FIG. 6). The shadow shape contour line creation unit 224 includes two selectors 250 and 252 and a shadow shape contour line buffer SOL_buf. As a method of generating the shadow-shaped contour line SOL (FIG. 2D), as shown in FIGS. 2 and 4, a method of affine transforming the mask contour line MOL and a method specified by a user through an interactive operation are available. There is. In the method of affine transforming the mask contour line MOL, the mask data transferred from the mask memory 244 is stored in the shadow shape contour line buffer SOL_buf, and the figure calculation unit 228 performs affine transformation on the mask data to make the shadow shape contour line. The SOL is created. on the other hand,
In the method in which the user designates it by an interactive operation, data representing the shadow contour line SOL designated by the coordinate point input means (212, 214 or 216) is stored in the shadow contour buffer SOL_buf. The contour line data of the shadow-shaped contour line SOL is transferred to the contour line memory 206 via the selector 252.

【0039】図10は、階調輪郭線作成部226の機能
を示すブロック図である。階調輪郭線作成部226は、
演算処理部260と、バッファ262と、ルックアップ
テーブル264とを備えている。バッファ262は、固
定ライン分割点バッファdf_bufと、移動ライン分割点バ
ッファdm_bufと、階調ライン分割点バッファpd_bufとを
含んでいる。固定ライン分割点バッファdf_bufは、固定
点pf1,pf2[pf1,pf2]を分割する固定ラ
イン分割点(図2(E)の点df1〜df3)の座標を
記憶する。移動ライン分割点バッファdm_bufは、移動ラ
インを分割する移動ライン分割点(図3(A)の点dm
1〜dm3)の座標を記憶する。階調ライン分割点バッ
ファpd_bufは、仮想的な階調ラインを分割する階調ライ
ン分割点(図3(B)の点pd11〜pd13,pd2
1〜pd23,pd31〜pd33)の座標を記憶す
る。
FIG. 10 is a block diagram showing the function of the gradation contour line creating unit 226. The gradation contour line creation unit 226
An arithmetic processing unit 260, a buffer 262, and a lookup table 264 are provided. The buffer 262 includes a fixed line division point buffer df_buf, a moving line division point buffer dm_buf, and a gradation line division point buffer pd_buf. The fixed line division point buffer df_buf stores the coordinates of fixed line division points (points df1 to df3 in FIG. 2E) that divide the fixed points pf1 and pf2 [pf1, pf2]. The moving line dividing point buffer dm_buf divides the moving line into moving line dividing points (point dm in FIG. 3A).
The coordinates of 1 to dm3) are stored. The gradation line division point buffer pd_buf is a gradation line division point (points pd11 to pd13, pd2 in FIG. 3B) that divides a virtual gradation line.
1 to pd23, pd31 to pd33) are stored.

【0040】ルックアップテーブル264は、固定ライ
ン分割率テーブルdf_LUTと、移動ライン分割率テーブル
dm_LUTと、階調ライン分割率テーブルpd_LUTと、階調率
テーブルN_LUT とを含んでいる。図11は、これらのル
ックアップテーブルの初期設定値を示すグラフである。
The lookup table 264 is a fixed line division ratio table df_LUT and a moving line division ratio table.
dm_LUT, gradation line division ratio table pd_LUT, and gradation ratio table N_LUT are included. FIG. 11 is a graph showing the initial setting values of these lookup tables.

【0041】固定ライン分割率テーブルdf_LUTは、固定
ライン分割点(図2(E)の点df1〜df3)を求め
る際の分割率を与えるルックアップテーブルである。図
1(A)の横軸は分割点位置、縦軸は各分割点の分割率
を示している。横軸の分割点位置は規格化された分割点
位置であり、固定ラインFLの始点pf1を0番目とし
て、各分割点df1〜df3の番号(順序数)nを分割
数Ndfで除した値である。縦軸の分割率は規格化され
た累積分割率であり、固定ラインFLの始点pf1から
各分割点df1〜df3までの累積長さを、固定ライン
FLの合計長さで除した値である。
The fixed line division ratio table df_LUT is a look-up table that gives a division ratio when obtaining fixed line division points (points df1 to df3 in FIG. 2E). The horizontal axis of FIG. 1A indicates the division point position, and the vertical axis indicates the division rate of each division point. The division point position on the horizontal axis is a normalized division point position, and is a value obtained by dividing the number (sequence number) n of each division point df1 to df3 by the division number Ndf, with the start point pf1 of the fixed line FL as the 0th position. is there. The division ratio on the vertical axis is a standardized cumulative division ratio, which is a value obtained by dividing the cumulative length from the start point pf1 of the fixed line FL to each of the division points df1 to df3 by the total length of the fixed line FL.

【0042】移動ライン分割率テーブルdm_LUTは、移動
ライン分割点(図3(A)の点dm1〜dm3)を求め
る際の分割率を表わすルックアップテーブルである。移
動ラインの分割数Ndmは固定ラインの分割数Ndfと
等しい。
The moving line division ratio table dm_LUT is a look-up table showing the dividing ratio when obtaining the moving line division points (points dm1 to dm3 in FIG. 3A). The division number Ndm of the moving line is equal to the division number Ndf of the fixed line.

【0043】階調ライン分割率テーブルpd_LUTは、階調
ライン分割点(図3(B)の点pd11〜pd13,p
d21〜pd23,pd31〜pd33)を求める際の
分割率を表わすルックアップテーブルである。階調ライ
ンの分割数Npdは固定ラインの分割数Ndfとは独立
に設定可能である。
The gradation line division ratio table pd_LUT stores gradation line division points (points pd11 to pd13, p in FIG. 3B).
It is a look-up table showing the division ratio when obtaining d21 to pd23, pd31 to pd33). The gradation line division number Npd can be set independently of the fixed line division number Ndf.

【0044】図11(A)〜(C)の3つの分割率テー
ブルdf_LUT,dm_LUT,pd_LUTの初期設定値は、等分割で
あることを示している。図2および図3の例では、固定
ライン分割数Ndfと移動ライン分割数Ndmは4であ
り、階調ライン分割数Npdも4である。
The initial setting values of the three division ratio tables df_LUT, dm_LUT, and pd_LUT shown in FIGS. 11A to 11C indicate that they are equally divided. In the example of FIGS. 2 and 3, the fixed line division number Ndf and the moving line division number Ndm are 4, and the gradation line division number Npd is also 4.

【0045】階調率テーブルG_LUT は、広義の階調輪郭
線SOL,GOL1〜GOL3の内部領域の階調値を変
換する場合の階調率(変化率)を表わすルックアップテ
ーブルである。
The gradation rate table G_LUT is a look-up table representing the gradation rate (rate of change) when converting the gradation values of the internal regions of the gradation contour lines SOL and GOL1 to GOL3 in a broad sense.

【0046】上記の4つのルックアップテーブルのうち
で、階調ライン分割率テーブルpd_LUTと階調率テーブル
G_LUT は、影領域(影形状輪郭線の内部領域)内の階調
の変化を調整する機能を有している。階調ライン分割率
テーブルpd_LUTは、影領域内の階調輪郭線の間隔を決定
するので、各階調輪郭線の階調率が同じであっても、階
調ライン分割率テーブルpd_LUTによって階調輪郭線同士
の間隔を調整すれば、影領域内の階調の変化を調整する
ことができる。また、階調率テーブルG_LUT は各階調輪
郭線の内部領域の階調率を与えるので、各階調輪郭線の
間隔が固定されていても、階調率テーブルG_LUT によっ
て各階調輪郭線に関する階調を調整すれば、影領域内の
階調の変化を調整することができる。
Of the above four look-up tables, the gradation line division ratio table pd_LUT and the gradation ratio table
The G_LUT has a function of adjusting the change in gradation within the shadow area (the area inside the shadow contour). Since the gradation line division ratio table pd_LUT determines the intervals between the gradation contour lines in the shadow area, even if the gradation ratios of the respective gradation contour lines are the same, the gradation line division ratio table pd_LUT can be used to calculate the gradation contour lines. By adjusting the interval between the lines, it is possible to adjust the gradation change in the shadow area. Further, since the gradation ratio table G_LUT gives the gradation ratio of the internal area of each gradation contour line, even if the interval of each gradation contour line is fixed, the gradation ratio table G_LUT shows the gradation concerning each gradation contour line. If adjusted, it is possible to adjust the change in gradation in the shadow area.

【0047】なお、図11に示す4つのルックアップテ
ーブルの内容を変更することによって、種々の視覚的効
果を有する影を生成することができる。但し、自然な影
を生成するためには、各ルックテーブルの内容を示すグ
ラフ(図11)は、単調増加関数であることが望まし
い。ルックアップテーブルを用いた影の修正については
さらに後述する。
By changing the contents of the four lookup tables shown in FIG. 11, it is possible to generate shadows having various visual effects. However, in order to generate a natural shadow, the graph (FIG. 11) showing the contents of each look table is preferably a monotonically increasing function. The shadow correction using the lookup table will be described later.

【0048】図12は、図形演算部228の機能を示す
ブロック図である。図形演算部228は、コントロール
バッファCtr_buf と、輪郭線バッファGV_bufと、座標変
換部270と、セレクタ272とを備えている。コント
ロールバッファCtr_buf は、座標点入力手段から入力さ
れた固定点pf1,pf2の座標と、移動点pm,p
m’の座標とを記憶する。輪郭線バッファGV_bufは、輪
郭線メモリ206に記憶された各種の輪郭線を表わすデ
ータを記憶する。座標変換部270は、輪郭線バッファ
GV_bufに記憶された輪郭線にアフィン変換を行なうこと
によって、輪郭線の変形や移動を行なう。
FIG. 12 is a block diagram showing the function of the graphic operation unit 228. The figure calculation unit 228 includes a control buffer Ctr_buf, a contour line buffer GV_buf, a coordinate conversion unit 270, and a selector 272. The control buffer Ctr_buf has the coordinates of the fixed points pf1 and pf2 input from the coordinate point input means and the moving points pm and p.
The coordinates of m ′ are stored. The contour line buffer GV_buf stores data representing various contour lines stored in the contour line memory 206. The coordinate conversion unit 270 is a contour line buffer.
The contour line is transformed or moved by performing affine transformation on the contour line stored in GV_buf.

【0049】図13は、画素変換部222の機能を示す
ブロック図である。画素変換部222は、画像メモリ2
04から転送された画像データを記憶する画像バッファ
280と、輪郭線メモリ206から転送された輪郭線デ
ータを記憶する輪郭線バッファ282と、ベクタ・ラス
タ変換部286と、処理バッファ284と、セレクタ2
88とを備えている。画素変換部222は、広義の階調
輪郭線SOL,GOL1〜GOL3をベクタ・ラスタ変
換して、各階調輪郭線の内部領域の階調値を階調率に従
って変更する処理を行なう。画素変換部222の処理内
容については後述する。
FIG. 13 is a block diagram showing the function of the pixel conversion section 222. The pixel conversion unit 222 uses the image memory 2
04, an image buffer 280 for storing the image data transferred from 04, a contour buffer 282 for storing the contour data transferred from the contour memory 206, a vector / raster conversion unit 286, a processing buffer 284, and a selector 2
And 88. The pixel conversion unit 222 performs vector-raster conversion of the broadly defined gradation contour lines SOL, GOL1 to GOL3, and changes the gradation value of the internal area of each gradation contour line according to the gradation ratio. The processing content of the pixel conversion unit 222 will be described later.

【0050】C.影付け処理の詳細:図14〜図20
は、影付け処理の手順を示すフローチャートである。ま
た、図21〜図44は、影付け処理の各工程の処理内容
を示す説明図である。以下ではこれらのフローチャート
と説明図に従って影付け処理の詳細を説明する。
C. Details of the shadowing process: FIGS.
3 is a flowchart showing the procedure of a shadowing process. 21 to 44 are explanatory diagrams showing the processing contents of the respective steps of the shadowing processing. The details of the shadowing process will be described below with reference to these flowcharts and explanatory diagrams.

【0051】図14は、影付け処理の全体手順を示すフ
ローチャートである。ステップS1では、影付けの対象
となる1ページ分の画像(以下、「1ページ画像」と呼
ぶ)の画像データが画像入力装置100から画像処理装
置200に入力され、画像メモリ204(図6)に記憶
される。図21(A)は、入力された1ページ画像の一
例を示す概念図である。この1ページ画像は、背景画像
PC0と3つの画像部品PC1,PC2,PC3を含ん
でいる。これらの画像部品PC1〜PC3は線画または
絵柄である。また、第3の画像部品PC3の上に第2の
画像部品PC2が貼り込まれており、第2の画像部品P
C2の上に第1の画像部品PC1が貼り込まれている。
FIG. 14 is a flowchart showing the overall procedure of the shadowing process. In step S1, image data of an image for one page (hereinafter, referred to as “one-page image”) that is a shadowing target is input from the image input apparatus 100 to the image processing apparatus 200, and the image memory 204 (FIG. 6). Memorized in. FIG. 21A is a conceptual diagram showing an example of the input one-page image. This one-page image includes a background image PC0 and three image components PC1, PC2, PC3. These image parts PC1 to PC3 are line drawings or patterns. In addition, the second image component PC2 is pasted on the third image component PC3, and the second image component P2
The first image component PC1 is stuck on C2.

【0052】図21(B)は、影付け処理後の1ページ
画像を示している。画像部品PC1の影領域SHにおい
ては、画像部品PC2,PC3と背景画像PC0とに対
して、各階調輪郭線に応じた階調が付されている。この
結果、画像部品PC2,PC3と背景画像PC0の上
に、画像部品PC1の影が投影されている画像が生成さ
れている。
FIG. 21B shows a one-page image after the shadowing process. In the shadow area SH of the image component PC1, the image components PC2 and PC3 and the background image PC0 are provided with gradations corresponding to the respective gradation contour lines. As a result, an image in which the shadow of the image component PC1 is projected is generated on the image components PC2 and PC3 and the background image PC0.

【0053】なお、以下に説明する影付け処理は、絵柄
の画像部品に対しても線画の画像部品に対しても実行す
ることができる。この実施例においては、線画と絵柄と
を併せて「画像」と呼び、1ページ画像に貼り込まれる
個々の線画や絵柄を「画像部品」と呼ぶ。また、画像を
表わすデータを「画像データ」と呼ぶが、各画素の画像
データは「画素データ」と呼ぶことがある。
The shadowing process described below can be executed on both the image parts of the picture and the image parts of the line drawing. In this embodiment, the line drawing and the design are collectively referred to as "image", and the individual line drawing and the design attached to the one-page image are referred to as "image parts". Further, the data representing an image is called "image data", but the image data of each pixel may be called "pixel data".

【0054】ステップS2では、ユーザがマウス214
を用いて影付け対象とする画像部品を指定する。この実
施例では、図21(A)の第1の画像部品PC1が影付
け対象として指定される。
In step S2, the user operates the mouse 214
Use to specify the image part to be shadowed. In this embodiment, the first image component PC1 of FIG. 21 (A) is designated as the shadowing target.

【0055】ステップS3では、影付け対象の画像部品
PC1のマスクデータが準備されているか否かが調べら
れる。絵柄の画像部品は、切抜きマスクによって切り抜
かれて1ページ画像に貼り込まれるのが普通なので、そ
の切抜きマスクを影付けの輪郭マスクとして使用する。
この場合には、ステップS4において画像入力装置10
0からマスクデータが画像処理装置200に入力され、
輪郭線メモリ206内のマスクメモリ244(図8)に
記憶される。一方、画像部品に対するマスクデータが存
在しない場合には、ステップS5において、ユーザがポ
インティングデバイスを使用した対話処理によってマス
ク輪郭線MOL(図2(A)参照)を描画することによ
ってマスクデータを入力する。図22に示すように、入
力されたマスクデータは、輪郭線メモリ206内のマス
クメモリ244に記憶され、さらに、マスクメモリ24
4から影形状輪郭線バッファSOL_buf に転送されて記憶
される。なお、図22以降の図において、点を示す記号
(例えばp1,p2等)が記載されているブロックは、
そのメモリ位置にその点の座標値が記憶されていること
を示している。
In step S3, it is checked whether or not the mask data of the image component PC1 to be cast is prepared. Since the image part of the picture is usually cut out by a cutout mask and attached to a one-page image, the cutout mask is used as a contour mask for shadowing.
In this case, in step S4, the image input device 10
Mask data is input to the image processing apparatus 200 from 0,
It is stored in the mask memory 244 (FIG. 8) in the contour line memory 206. On the other hand, if there is no mask data for the image part, in step S5, the user inputs the mask data by drawing a mask contour line MOL (see FIG. 2A) through an interactive process using a pointing device. . As shown in FIG. 22, the input mask data is stored in the mask memory 244 in the contour line memory 206.
4 is transferred to the shadow shape contour line buffer SOL_buf and stored. In addition, in the drawings after FIG. 22, a block in which a symbol indicating a point (for example, p1, p2, etc.) is described,
It indicates that the coordinate value of the point is stored in the memory location.

【0056】ステップS6では、影付け処理を投影モー
ド(図2、図3に示す投影タイプ)で行なうか、平行移
動モード(図4、図5に示す平行移動タイプ)で行なう
かをユーザが指定する。ステップS7,S8では、この
モード指定に応じて影形状輪郭線SOLが作成される。
In step S6, the user specifies whether the shadowing process is performed in the projection mode (projection type shown in FIGS. 2 and 3) or in the parallel movement mode (parallel movement type shown in FIGS. 4 and 5). To do. In steps S7 and S8, the shadow contour line SOL is created according to the mode designation.

【0057】図15は、ステップS7およびステップS
8における影形状輪郭線の作成手順を示すフローチャー
トである。図23〜図26は、ステップS7a〜S7b
の処理内容を示している。図23に示すように、ステッ
プS7aにおいて固定点pf1,pf2を指定すると、
固定点pf1,pf2の座標値がコントロールバッファ
Ctr_buf に記憶される。次に、図24に示すように、ス
テップS7bにおいて移動前後の移動点pm,pm’が
指定されると、これらの移動点pm,pm’の座標がコ
ントロールバッファCtr_buf に記憶される。ステップS
7cでは、固定点pf1,pf2と移動点pm(x,
y),pm’(x’,y’)とに基づいて、図形演算部
228(図12)が以下の式に示すアフィン変換の変換
係数a〜fを算出する。
FIG. 15 shows steps S7 and S.
9 is a flowchart showing a procedure for creating a shadow shape contour line in FIG. 23 to 26 show steps S7a to S7b.
The processing content of is shown. As shown in FIG. 23, when the fixed points pf1 and pf2 are designated in step S7a,
The coordinate values of the fixed points pf1 and pf2 are the control buffer
It is stored in Ctr_buf. Next, as shown in FIG. 24, when the moving points pm and pm 'before and after the moving are designated in step S7b, the coordinates of these moving points pm and pm' are stored in the control buffer Ctr_buf. Step S
7c, the fixed points pf1 and pf2 and the moving point pm (x,
Based on y) and pm ′ (x ′, y ′), the graphic calculation unit 228 (FIG. 12) calculates the conversion coefficients a to f of the affine transformation represented by the following equation.

【0058】x’=a・x+b・y+e y’=c・x+d・y+fX '= a * x + b * y + e y' = c * x + d * y + f

【0059】投影モードにおいて求められるアフィン変
換係数は、図25に示す第1の三角形(pf1,pf
2,pm)から第2の三角形(pf1,pf2,p
m’)への変換を表わしている。ここで、三角形(pf
1,pf2,pm)とは、3つの点pf1,pf2,p
mで構成される三角形を意味する。こうして算出された
アフィン変換係数a〜fは、コントロールバッファCtr_
buf に記憶される。アフィン変換係数a〜fは、マスク
輪郭線MOLから影形状輪郭線SOLへの変形を示す変
形パラメータとして利用される。
The affine transformation coefficient calculated in the projection mode is the first triangle (pf1, pf) shown in FIG.
2, pm) to the second triangle (pf1, pf2, p
m '). Where triangle (pf
1, pf2, pm) means three points pf1, pf2, p
Means a triangle composed of m. The affine transformation coefficients a to f calculated in this way are controlled by the control buffer Ctr_.
Stored in buf. The affine transformation coefficients a to f are used as deformation parameters indicating the deformation from the mask contour line MOL to the shadow shape contour line SOL.

【0060】ステップS7dでは、図形演算部228が
マスク輪郭線MOLにアフィン変換を施すことによって
影形状輪郭線SOLを作成する。具体的に言えば、マス
ク輪郭線MOLの各輪郭点p1〜p4の座標を上記の式
のアフィン変換に従って変換することにより、図26に
示す影形状輪郭線SOLの各輪郭点pc1〜pc4の座
標を算出する。各輪郭点pc1〜pc4の座標は、影形
状輪郭線バッファSOL_buf 内に記憶されていたマスク輪
郭線MOLの輪郭点p1〜p4の座標に上書きされる。
In step S7d, the figure calculation unit 228 performs affine transformation on the mask contour line MOL to create a shadow shape contour line SOL. Specifically, by converting the coordinates of the contour points p1 to p4 of the mask contour line MOL according to the affine transformation of the above equation, the coordinates of the contour points pc1 to pc4 of the shadow shape contour line SOL shown in FIG. To calculate. The coordinates of the contour points pc1 to pc4 are overwritten on the coordinates of the contour points p1 to p4 of the mask contour line MOL stored in the shadow shape contour line buffer SOL_buf.

【0061】水平移動モードでは、ステップS8a〜S
8cにおいてマスク輪郭線MOLを平行移動して影形状
輪郭線SOLを作成した後に、ステップS8dにおいて
固定点を指定する。ステップS8aにおいては、図27
に示すように、マスク輪郭線MOL上の任意の点を第1
の移動点pmとして指定し、また、移動後の第2の移動
点pm’を指定する。図形演算部228は、平行移動を
示すアフィン変換係数a〜fを算出する。平行移動の場
合には、a=d=1,b=c=0であり、係数eはx方
向の移動量(x’−x)、係数fはy方向の移動量
(y’−y)である。ステップS8dでは、影形状輪郭
線SOL上に固定点pf1,pf2が指定される。
In the horizontal movement mode, steps S8a to S8
After the mask contour MOL is translated in 8c to create the shadow-shaped contour SOL, a fixed point is designated in step S8d. In step S8a, FIG.
As shown in, the first point is an arbitrary point on the mask contour MOL.
Of the second moving point pm '. The figure calculation unit 228 calculates affine transformation coefficients a to f indicating parallel movement. In the case of parallel movement, a = d = 1 and b = c = 0, the coefficient e is the movement amount in the x direction (x′−x), and the coefficient f is the movement amount in the y direction (y′−y). Is. In step S8d, the fixed points pf1 and pf2 are designated on the shadow contour line SOL.

【0062】こうして、ステップS7またはステップS
8で影形状輪郭線SOLが作成されると、ステップS9
(図14)において階調輪郭線作成部226(図10)
が影形状輪郭線SOLの内部に階調輪郭線を作成する。
図16は、階調輪郭線の作成手順を示すフローチャート
である。
Thus, step S7 or step S
When the shadow-shaped contour line SOL is created in step 8, step S9
In FIG. 14, the gradation contour line creation unit 226 (FIG. 10).
Creates a gradation contour line inside the shadow contour line SOL.
FIG. 16 is a flowchart showing a procedure for creating a gradation contour line.

【0063】図16のステップS21では、影形状輪郭
線SOL上の固定ラインFLを分割して固定ライン分割
点df1〜df3を設定する(図28)。前述したよう
に、影形状輪郭線SOLは、固定点pf1,pf2によ
って固定ラインFLと移動ラインに分割される。図28
の例では、固定ラインFLは線分[pf1,pf2]で
あり、移動ラインは輪郭[pf2,pc1,pc2,p
c3,pc4,pf1]である。なお、固定点pf1,
pf2として同一の点を指定した場合には、影形状輪郭
線SOLの全体が移動ラインとなり、固定ラインは長さ
が0の線分となる。
In step S21 of FIG. 16, the fixed line FL on the shadow contour line SOL is divided and fixed line division points df1 to df3 are set (FIG. 28). As described above, the shadow contour line SOL is divided into the fixed line FL and the moving line by the fixed points pf1 and pf2. FIG. 28
, The fixed line FL is a line segment [pf1, pf2], and the moving line is a contour [pf2, pc1, pc2, p].
c3, pc4, pf1]. Note that the fixed points pf1,
When the same point is designated as pf2, the entire shadow-shaped contour line SOL becomes a moving line, and the fixed line becomes a line segment having a length of 0.

【0064】固定ラインFLの分割は、ユーザが指定し
た分割数Ndfと、固定ライン分割率テーブルdf_LUT
(図11(A))で示される分割率とに応じて実行され
る。図11(A)の例では、分割数Ndfと分割率の関
係が原点を通る直線で表わされているので、固定ライン
FLは等分割される。なお、図28の例ではNdf=4
であり、固定ラインFLを4つに等分割する3つの分割
点df1〜df3が設定されている。なお、固定ライン
分割点df1〜df3の座標は、固定ライン分割点バッ
ファdf_bufに記憶される。
The fixed line FL is divided into the number of divisions Ndf designated by the user and the fixed line division ratio table df_LUT.
It is executed according to the division ratio shown in (FIG. 11A). In the example of FIG. 11A, since the relationship between the division number Ndf and the division ratio is represented by a straight line passing through the origin, the fixed line FL is equally divided. In the example of FIG. 28, Ndf = 4
Therefore, three division points df1 to df3 that divide the fixed line FL into four equal parts are set. The coordinates of the fixed line division points df1 to df3 are stored in the fixed line division point buffer df_buf.

【0065】ステップS22では、移動ライン上に移動
ライン分割点dm1〜dm3が設定される(図29参
照)。移動ラインの分割数Ndmは、固定ラインの分割
数Ndfと等しい。なお、移動ラインの分割は、この分
割数Ndmと、移動ライン分割率テーブルdm_LUT(図1
1(B))で示される分割率とに応じて実行される。移
動ライン分割点dm1〜dm3の座標は、移動ライン分
割点バッファdm_bufに記憶される。
In step S22, movement line division points dm1 to dm3 are set on the movement line (see FIG. 29). The division number Ndm of the moving line is equal to the division number Ndf of the fixed line. It should be noted that the division of the moving line is performed by the division number Ndm and the moving line division ratio table dm_LUT (see FIG.
1 (B)) and the division ratio. The coordinates of the moving line dividing points dm1 to dm3 are stored in the moving line dividing point buffer dm_buf.

【0066】ステップS23では、移動ライン分割点d
m1〜dm3と固定ライン分割点df1〜df3との対
応する分割点同士を結ぶ各階調ライン[dm1,df
1],[dm2,df2],[dm3,df3]の上
に、階調ライン分割点pd11〜pd13,pd21〜
pd23,pd31〜pd33が設定される(図30参
照)。各階調ラインの分割は、ユーザによって指定され
た分割数Npdと、階調ライン分割率テーブルpd_LUT
(図11(C))とに応じて実行される。階調ラインの
分割数Npdは影領域内の階調数に相当する。階調ライ
ン分割点の座標は、2次元配列の階調ライン分割点バッ
ファpd_bufに記憶される。
In step S23, the moving line division point d
m1 to dm3 and fixed line division points df1 to df3, the respective gradation lines connecting the corresponding division points [dm1, df
1], [dm2, df2], [dm3, df3] on the gradation line division points pd11-pd13, pd21-.
pd23 and pd31 to pd33 are set (see FIG. 30). The division of each gradation line is performed by dividing the number of divisions Npd specified by the user and the gradation line division ratio table pd_LUT.
(FIG. 11 (C)). The gradation line division number Npd corresponds to the gradation number in the shadow area. The coordinates of the gradation line division points are stored in the gradation line division point buffer pd_buf in a two-dimensional array.

【0067】図31は、3本の階調ライン[dm1,d
f1],[dm2,df2],[dm3,df3]の上
に階調ライン分割点がそれぞれ設定された状態を示して
いる。この例では、各階調ライン上の分割点の組(例え
ば点pd11〜pd13)が階調ライン分割点バッファ
pd_bufの同一の行上(すなわち、同一の行アドレスでア
ドレス指定されるメモリ領域)に記憶されている。ま
た、対応する各階調ライン分割点の組(例えば{pd1
1,pd21,pd31})は同一の列上(すなわち同
一の列アドレスでアドレス指定されるメモリ領域)に記
憶されている。
FIG. 31 shows three gradation lines [dm1, d
It shows a state in which the gradation line division points are set on f1], [dm2, df2], and [dm3, df3], respectively. In this example, the set of dividing points on each gradation line (for example, points pd11 to pd13) is the gradation line dividing point buffer.
It is stored on the same row of pd_buf (ie, the memory area addressed by the same row address). Also, a set of corresponding gradation line division points (for example, {pd1
1, pd21, pd31}) are stored on the same column (that is, a memory area addressed by the same column address).

【0068】ステップS24では、コントロールバッフ
ァCtr_buf の内容がコントロールメモリ240に転送さ
れて記憶される(図32)。ステップS25では、影形
状輪郭線バッファSOL_buf の内容(すなわち点pc1〜
pc4の座標)が階調輪郭線データメモリ242に転送
されて記憶される(図33)。これは、影形状輪郭線S
OLが、最外周の階調輪郭線として使用されるからであ
る。後述する画素変換処理において、各階調輪郭線の内
部の画像の階調値が階調率に応じて変更されるので、階
調輪郭線データメモリ242には各階調輪郭線に対する
階調率も記憶される。影形状輪郭線SOLに対しては、
階調率Nd0が階調率テーブルG_LUT (図11(D)参
照)から読出されて記憶される。影形状輪郭線SOLに
対する階調率Nd0は、階調率テーブルG_LUT の縦軸の
切片の値であり、図11(D)の場合にはNd0=1.
0である。
In step S24, the contents of the control buffer Ctr_buf are transferred to the control memory 240 and stored (FIG. 32). In step S25, the contents of the shadow shape contour line buffer SOL_buf (that is, points pc1 to pc1)
The coordinates (pc4) are transferred to and stored in the gradation contour line data memory 242 (FIG. 33). This is the shadow contour line S
This is because the OL is used as the outermost gradation contour line. In the pixel conversion process described later, since the gradation value of the image inside each gradation contour line is changed according to the gradation ratio, the gradation contour data memory 242 also stores the gradation ratio for each gradation contour line. To be done. For the shadow contour line SOL,
The gradation rate Nd0 is read from the gradation rate table G_LUT (see FIG. 11D) and stored. The gradation rate Nd0 for the shadow-shaped contour line SOL is the value of the intercept on the vertical axis of the gradation rate table G_LUT, and in the case of FIG. 11D, Nd0 = 1.
It is 0.

【0069】ステップS26では、狭義の階調輪郭線が
作成される(図34)。第1の階調輪郭線GOL1は、
階調ライン分割点バッファpd_bufの最初の列アドレスに
記憶されている分割点の組{pd11,pd21,pd
31}が読出され、固定点pf1,pf2および固定ラ
イン分割点df1〜df3とともに階調輪郭線データメ
モリ242に記憶されることによって作成される。これ
らの点が階調輪郭線データメモリ242内に記憶される
順序は、第1の固定点pf1を開始点として、階調輪郭
線GOL1を反時計廻りに進む方向である。なお、ステ
ップS25ではさらに、階調輪郭線GOL1に対する階
調率Nd1が階調率テーブルG_LUT から読出されて階調
輪郭線データメモリ242に書き込まれる。図35は、
3本の階調輪郭線GOL1〜GOL3が作成された状態
を示している。
In step S26, a narrowly defined gradation contour line is created (FIG. 34). The first gradation contour line GOL1 is
A set of division points {pd11, pd21, pd stored in the first column address of the gradation line division point buffer pd_buf
31} is read out and stored in the gradation contour line data memory 242 together with the fixed points pf1 and pf2 and the fixed line division points df1 to df3. The order in which these points are stored in the gradation contour line data memory 242 is from the first fixed point pf1 as a start point to the counterclockwise direction of the gradation contour line GOL1. In step S25, the gradation rate Nd1 for the gradation contour line GOL1 is further read from the gradation rate table G_LUT and written in the gradation contour line data memory 242. FIG. 35 shows
It shows a state in which three gradation contour lines GOL1 to GOL3 have been created.

【0070】こうして階調輪郭線の作成が終了すると、
図14のステップS10において影が付された1ページ
画像がカラーCRT218に表示される。図17は、画
像表示の手順を示すフローチャートである。ステップS
10aでは、表示用の粗画像データが画像メモリ204
から画素変換部222内の画像バッファ280(図1
3)に入力される。ステップS10bでは、画素変換部
222が画素変換処理を実行し、影領域SH(影形状輪
郭線SOL内部の領域)内の画像階調値を変更する。図
18は、画素変換処理の手順を示すフローチャートであ
る。また、図36〜図38は、画素変換処理の内容を示
す説明図である。
When the creation of the gradation contour line is completed in this way,
The one-page image with the shadow added in step S10 of FIG. 14 is displayed on the color CRT 218. FIG. 17 is a flowchart showing the procedure of image display. Step S
In 10a, the rough image data for display is displayed in the image memory 204.
Image buffer 280 in the pixel conversion unit 222 (see FIG.
Input to 3). In step S10b, the pixel conversion unit 222 executes pixel conversion processing to change the image gradation value in the shadow area SH (area inside the shadow contour line SOL). FIG. 18 is a flowchart showing the procedure of pixel conversion processing. 36 to 38 are explanatory diagrams showing the content of the pixel conversion process.

【0071】ステップS31では、階調輪郭線を表わす
輪郭線データが輪郭線メモリ206から画素変換部22
2内の輪郭線バッファ282に入力される。この実施例
の場合には、0番目の階調輪郭線としての影形状輪郭線
SOLの輪郭線データ(図36に示すNd0,pc1〜
pc4)が輪郭線バッファ282に転送される。
In step S31, the contour line data representing the gradation contour line is transferred from the contour line memory 206 to the pixel conversion unit 22.
2 into the contour buffer 282. In the case of this embodiment, the outline data of the shadow shape outline SOL as the 0th gradation outline (Nd0, pc1 to pc1 shown in FIG. 36).
pc4) is transferred to the contour line buffer 282.

【0072】図36は、0番目の階調輪郭線(すなわち
影形状輪郭線SOL)に関するステップS32,S33
の処理内容を示す説明図である。ステップS32では、
ベクタ・ラスタ変換部286が、階調輪郭線を表わす閉
ループベクトルデータを、階調輪郭線の内部領域である
マスク領域を示すラスタデータに変換する。このラスタ
データは、画素毎にマスク領域内か否かを示す1ビット
/画素のデータである。
FIG. 36 shows steps S32 and S33 relating to the 0th gradation contour line (that is, the shadow shape contour line SOL).
It is explanatory drawing which shows the processing content of. In step S32,
The vector / raster conversion unit 286 converts the closed loop vector data representing the gradation contour line into raster data indicating the mask area which is the internal area of the gradation contour line. This raster data is 1-bit / pixel data indicating whether or not each pixel is within the mask area.

【0073】ステップS33の画素値変更処理では、画
像バッファ280内の画素データが画素毎に読出され、
その画素がマスク領域内にあればその画素データ(RG
B各色の色データ)に階調輪郭線SOLの階調率Nd0
が乗算される。この実施例では階調率Nd0が1.0な
ので階調値は変換されず、階調輪郭線SOLの内部領域
の画像はそのままに保たれる。変換後の画素データは、
画像バッファ280に上書きされる。
In the pixel value changing process of step S33, the pixel data in the image buffer 280 is read out for each pixel,
If the pixel is within the mask area, the pixel data (RG
(B data of each color), the gradation ratio Nd0 of the gradation contour line SOL
Is multiplied. In this embodiment, since the gradation rate Nd0 is 1.0, the gradation value is not converted, and the image in the internal area of the gradation contour line SOL is kept as it is. The pixel data after conversion is
The image buffer 280 is overwritten.

【0074】図37は、1番目の階調輪郭線GOL1に
関するステップS32,S33の処理内容を示す説明図
である。ステップS32においてベクタ・ラスタ変換に
よって1番目の階調輪郭線GOL1の内部領域であるマ
スク領域を表わすラスタデータが作成される。ステップ
S33においては、画像バッファ280内の画素データ
が読出されて、その画素がマスク領域内にあればその画
素データ(RGB各色の色データ)に階調輪郭線GOL
1の階調率Nd1が乗算される。例えば、階調率Nd1
が0.8であれば、画素データRGBの値(階調値)が
それぞれ0.8倍される。変換後の画素データは、画像
バッファ280に上書きされる。なお、影形状輪郭線S
OLと第1の階調輪郭線GOL1との間の領域の画素デ
ータは、影形状輪郭線SOLに対する画素変換処理の結
果に保たれる。
FIG. 37 is an explanatory diagram showing the processing contents of steps S32 and S33 regarding the first gradation contour line GOL1. In step S32, raster data representing a mask area which is an internal area of the first gradation contour line GOL1 is created by vector / raster conversion. In step S33, the pixel data in the image buffer 280 is read out, and if the pixel is within the mask area, the gradation contour line GOL is added to the pixel data (color data of each RGB color).
The gradation rate Nd1 of 1 is multiplied. For example, the gradation rate Nd1
Is 0.8, the pixel data RGB values (gradation values) are each multiplied by 0.8. The converted pixel data is overwritten in the image buffer 280. The shadow shape contour line S
The pixel data of the area between the OL and the first gradation contour line GOL1 is kept as the result of the pixel conversion processing for the shadow shape contour line SOL.

【0075】図38は、2番目の階調輪郭線GOL2に
関するステップS32,S33の処理内容を示す説明図
である。画像バッファ280内の画素データが読出さ
れ、その画素が階調輪郭線GOL2の内部領域にあれ
ば、その画素データに階調輪郭線GOL2の階調率Nd
2が乗算される。例えば、階調率Nd2が0.6であれ
ば、画素データRGBの値がそれぞれ0.6倍される。
変換後の画素データは、画像バッファ280に上書きさ
れる。この結果、画像バッファ280内において、2番
目の階調輪郭線GOL2内の画素データが書き換えられ
る。3番目の階調輪郭線GOL3についても、同様にし
て画素変換処理が実行される。
FIG. 38 is an explanatory diagram showing the processing contents of steps S32 and S33 regarding the second gradation contour line GOL2. If the pixel data in the image buffer 280 is read and the pixel is in the internal area of the gradation contour line GOL2, the gradation rate Nd of the gradation contour line GOL2 is added to the pixel data.
It is multiplied by 2. For example, if the gradation rate Nd2 is 0.6, the pixel data RGB values are each multiplied by 0.6.
The converted pixel data is overwritten in the image buffer 280. As a result, the pixel data in the second gradation contour line GOL2 is rewritten in the image buffer 280. The pixel conversion processing is similarly performed on the third gradation contour line GOL3.

【0076】上述のように、画素変換処理で変換された
画素データは画像バッファ280に順次上書きされてい
くので、影領域SH内において階調が順次単調に変化す
る影が生成される。図21(B)は、こうして画素変換
処理が終了した時点の1ページ画像を示している。影領
域SH内の他の画像部品PC2,PC3が存在する部分
では、その画像部品PC2,PC3の画素データRGB
に階調率が乗じられて階調値が変更されている。
As described above, since the pixel data converted by the pixel conversion process is sequentially overwritten in the image buffer 280, a shadow whose gradation gradually changes in a monotone is generated in the shadow area SH. FIG. 21B shows the one-page image at the time when the pixel conversion process is completed in this way. In a portion where other image components PC2 and PC3 exist in the shadow area SH, pixel data RGB of the image components PC2 and PC3 are included.
Is multiplied by the gradation rate to change the gradation value.

【0077】なお、図1(C)に示す投影タイプの影
や、図1(D)に示す平行移動タイプの影を作成する場
合には、画素変換処理の後に、影付けの対象となった画
像部品の画素データが画像バッファ280に上書きされ
る。この結果、対象画像部品の下に影が生成された状態
を表わす画像データを得ることができる。
When the shadow of the projection type shown in FIG. 1C or the shadow of the parallel movement type shown in FIG. 1D is created, it is the target of the shadow casting after the pixel conversion processing. The pixel data of the image part is overwritten in the image buffer 280. As a result, it is possible to obtain image data representing a state in which a shadow is generated under the target image component.

【0078】図17のステップS10cでは、画像バッ
ファ280内に記憶された1ページ画像がカラーCRT
218に表示される。こうしてカラーCRT218に1
ページ画像が表示されると、ユーザが観察して修正が必
要であるか否かを判断する(図14のステップS1
1)。修正が必要な場合には、ステップS12において
影の修正処理が実行される。
In step S10c of FIG. 17, the one-page image stored in the image buffer 280 is the color CRT.
218 is displayed. In this way, color CRT 218 1
When the page image is displayed, the user observes and determines whether or not the correction is necessary (step S1 in FIG. 14).
1). If correction is necessary, shadow correction processing is executed in step S12.

【0079】図19は、影の修正処理の手順を示すフロ
ーチャートである。ステップS41では、ユーザによっ
て修正モードが指定される。修正モードには、グラデー
ション変更モードと影領域変形モードとがある。影領域
変形モードは、影領域の外形(すなわち影形状輪郭線S
OL)を変更するモードである。一方、グラデーション
変更モードは、影領域の外形は変更せずに、影領域内の
階調の変化を変更するモードである。グラデーション変
更モードには、さらに、階調率変更モードと階調輪郭線
変更モードとがある。階調率変更モードは、階調輪郭線
の形状は変更せずに階調輪郭線の階調率を変更するモー
ドである。階調輪郭線変更モードは、影形状輪郭線SO
L以外の階調輪郭線の形状を変更するモードである。
FIG. 19 is a flow chart showing the procedure of shadow correction processing. In step S41, the correction mode is designated by the user. The modification mode includes a gradation modification mode and a shadow area modification mode. The shadow area deformation mode is the outline of the shadow area (that is, the shadow shape outline S
This is a mode for changing OL). On the other hand, the gradation change mode is a mode in which the gradation of the shadow area is changed without changing the outline of the shadow area. The gradation change mode further includes a gradation rate change mode and a gradation contour line change mode. The gradation rate changing mode is a mode in which the gradation rate of the gradation contour line is changed without changing the shape of the gradation contour line. The gradation contour change mode is the shadow contour SO
In this mode, the shape of the gradation contour line other than L is changed.

【0080】図39は、ステップS43,S44による
階調率の変更モードの処理内容を示す説明図である。ス
テップS41,S42において階調率変更モードが指定
されると、ステップS43において階調率テーブルG_LU
T (図39中段)が対話処理によって修正され、ステッ
プS44では修正された階調率テーブルG_LUT に応じて
階調輪郭線データメモリ242内の各階調輪郭線の階調
率Nd0,Nd1…が新たな階調率Nd0’,Nd1’
…に書き換えられる。そして図14のステップS10に
戻り、1ページ画像がカラーCRT218に再度表示さ
れる。
FIG. 39 is an explanatory diagram showing the processing contents of the gradation rate changing mode in steps S43 and S44. When the gradation rate change mode is designated in steps S41 and S42, the gradation rate table G_LU is calculated in step S43.
T (the middle part of FIG. 39) is corrected by the interactive processing, and in step S44, the gradation rates Nd0, Nd1 ... Of the gradation contour lines in the gradation contour line data memory 242 are newly updated according to the corrected gradation rate table G_LUT. Gradation rates Nd0 ', Nd1'
Can be rewritten as ... Then, returning to step S10 in FIG. 14, the one-page image is displayed again on the color CRT 218.

【0081】図39の中段に示すように、階調率テーブ
ルG_LUT を右下がりの直線から上に凸の単調減少曲線に
修正すると、図39の上段に示すように、各階調輪郭線
の内部領域の階調値が、変更後の階調率Nd0’,Nd
1’…に応じて変更される。図39の変更後の階調率テ
ーブルでは、影形状輪郭線SOLに近い側で階調率の変
化率が小さくなり、固定ライン[pc1,pc4]に近
い側では階調率の変化率が大きくなっている。これによ
って変更後の画像では、影形状輪郭線SOLに近い側で
階調の変化が緩やかとなり、固定ラインに近い[pc
1,pc4]に近い側では階調の変化が急になってい
る。以上のように、階調率変更モードでは、階調率テー
ブルG_LUT を変更することによって、影領域内の階調変
化を変更することが可能である。
As shown in the middle part of FIG. 39, when the gradation ratio table G_LUT is corrected to a monotonically decreasing curve which is convex upward from a straight line descending to the right, as shown in the upper part of FIG. Of the gradation values Nd0 'and Nd after the change
1 '... is changed. In the changed gradation rate table of FIG. 39, the rate of change of the gradation rate becomes smaller on the side closer to the shadow contour line SOL, and the rate of change of the gradation rate becomes larger on the side closer to the fixed line [pc1, pc4]. Has become. As a result, in the changed image, the gradation changes gradually on the side closer to the shadow-shaped contour line SOL and is closer to the fixed line [pc].
1, pc4], the change in gradation is steep on the side closer to [4]. As described above, in the gradation rate changing mode, it is possible to change the gradation change in the shadow area by changing the gradation rate table G_LUT.

【0082】図40は、階調輪郭線の変更モードの処理
内容を示す説明図である。ステップS41,S42にお
いて階調輪郭線変更モードが指定されると、ステップS
45において階調ライン分割率テーブルpd_LUTと、固定
ライン分割率テーブルdf_LUTと、移動ライン分割率テー
ブルdm_LUT(図11)の少なくとも1つが対話処理によ
って修正される。ステップS46では、修正後の3つの
ルックアップテーブルpd_LUT,df_LUT,dm_LUTに応じて
階調輪郭線データメモリ242内の各階調輪郭線GOL
1〜GOL3の輪郭点の座標が書き換えられる。すなわ
ち、前述した図16のステップS23(図30,31)
の処理とステップS26(図34,35)の処理が実行
される。この後、図14のステップS10に戻り、1ペ
ージ画像がカラーCRT218に再度表示される。
FIG. 40 is an explanatory diagram showing the processing contents of the gradation contour changing mode. When the gradation contour change mode is designated in steps S41 and S42, step S
At 45, at least one of the gradation line division ratio table pd_LUT, the fixed line division ratio table df_LUT, and the moving line division ratio table dm_LUT (FIG. 11) is modified by interactive processing. In step S46, each gradation contour line GOL in the gradation contour line data memory 242 is determined according to the three corrected lookup tables pd_LUT, df_LUT, and dm_LUT.
The coordinates of the contour points 1 to GOL3 are rewritten. That is, step S23 of FIG. 16 (FIGS. 30, 31) described above.
And the process of step S26 (FIGS. 34 and 35) are executed. After that, the process returns to step S10 in FIG. 14, and the one-page image is displayed again on the color CRT 218.

【0083】図40の中段に示すように階調ライン分割
率テーブルpd_LUTを右上がりの直線から下に凸の単調増
加曲線に修正した後に1ページ画像を表示させると、図
40の上段に示すように、各階調輪郭線GOL1〜GO
L3が影形状輪郭線SOLに近づくので、影領域内の階
調変化が修正される。以上のように、階調輪郭線変更モ
ードでは、図11に示す階調ライン分割率テーブルpd_L
UTと、固定ライン分割率テーブルdf_LUTと、移動ライン
分割率テーブルdm_LUTの少なくとも1つを変更すること
によって、影領域内の階調変化を変更することが可能で
ある。
As shown in the middle part of FIG. 40, when the gradation line division ratio table pd_LUT is corrected to a monotonically increasing curve that is convex downward from a straight line rising to the right and a one-page image is displayed, as shown in the upper part of FIG. To each gradation contour line GOL1 to GO
Since L3 approaches the shadow shape outline SOL, the gradation change in the shadow area is corrected. As described above, in the gradation contour line changing mode, the gradation line division ratio table pd_L shown in FIG.
By changing at least one of UT, fixed line division ratio table df_LUT, and moving line division ratio table dm_LUT, it is possible to change the gradation change in the shadow area.

【0084】図41ないし図44は、影領域変形モード
の処理内容を示す説明図である。図19のステップS4
1において影領域変形モードが指定されると、図41に
示すように、コントロールメモリ240の内容がコント
ロールバッファCtr_buf に転送されるとともに、影形状
輪郭線SOLの輪郭点pc1〜pc4の座標が階調輪郭
線データメモリ242から影形状輪郭線バッファSOL_bu
fに転送される。ステップS47では影形状輪郭線SO
Lの変形が対話処理によって指定される。例えば、図4
2に示すように、影形状輪郭線SOL上の移動ライン
(固定ラインFL「pf1,pf2]以外の部分)上に
第1の移動点pmを指定するとともに、移動後の第2の
移動点pm’を指定する。なお、ステップS47は、図
15のステップS7b(図24)と同じ処理である。
41 to 44 are explanatory views showing the processing contents of the shadow area transformation mode. Step S4 of FIG.
41, the contents of the control memory 240 are transferred to the control buffer Ctr_buf, and the coordinates of the contour points pc1 to pc4 of the shadow shape contour line SOL are gradation levels, as shown in FIG. Shadow shape contour line buffer SOL_bu from the contour line data memory 242
forwarded to f. In step S47, the shadow shape contour line SO
The transformation of L is specified by the interactive process. For example, in FIG.
As shown in 2, the first moving point pm is specified on the moving line (the portion other than the fixed line FL “pf1, pf2]) on the shadow contour line SOL, and the second moving point pm after the movement is specified. 'Is specified, and step S47 is the same process as step S7b (FIG. 24) in FIG.

【0085】ステップS48では、移動点pm,pm’
によって指示された変形を示す変形パラメータ(アフィ
ン変換係数)が算出される。これは、図15のステップ
S7c(図25)と同じ処理である。ステップS49で
は、この変形パラメータに応じて影形状輪郭線SOLが
変形される。この結果、図43に示すように、影形状輪
郭線バッファSOL_buf内の輪郭点pc1〜pc4が書き
換えられる。なお、ステップS49は、図15のステッ
プS7d(図26)と同じ処理である。こうして新たな
影形状輪郭線SOL’が得られると、ステップS50に
おいて階調輪郭線GOL1’〜GOL3’が作成される
(図44)。ステップS50は、図16のステップS2
1〜S26(図28〜図35)と同じ処理である。な
お、ステップS51において影形状輪郭線SOL’から
階調輪郭線GOL1’〜GOL3’を作成する代わり
に、ステップS51を実行してもよい。ステップS51
では、修正前の階調輪郭線GOL1〜GOL3の輪郭点
pd11〜pd31,pd12〜pd32,pd13〜
pd33をアフィン変換することによって、修正後の階
調輪郭線GOL1’〜GOL3’の輪郭点pd11’〜
pd31’,pd12’〜pd32’,pd13’〜p
d33’が求められる。
In step S48, the moving points pm and pm '
A deformation parameter (affine transformation coefficient) indicating the deformation instructed by is calculated. This is the same process as step S7c (FIG. 25) of FIG. In step S49, the shadow-shaped contour line SOL is deformed according to this deformation parameter. As a result, as shown in FIG. 43, the contour points pc1 to pc4 in the shadow shape contour line buffer SOL_buf are rewritten. Note that step S49 is the same process as step S7d (FIG. 26) in FIG. When a new shadow-shaped contour line SOL 'is obtained in this way, gradation contour lines GOL1' to GOL3 'are created in step S50 (FIG. 44). Step S50 is step S2 in FIG.
1 to S26 (FIGS. 28 to 35). Note that step S51 may be executed instead of creating the gradation contour lines GOL1 'to GOL3' from the shadow shape contour line SOL 'in step S51. Step S51
Then, the contour points pd11 to pd31, pd12 to pd32, pd13 to the grayscale contour lines GOL1 to GOL3 before correction.
By affine-transforming pd33, the contour points pd11 'to GL11' to GOL3 'of the corrected gradation contour lines are corrected.
pd31 ', pd12' to pd32 ', pd13' to p
d33 'is required.

【0086】以上のように、影領域変更モードでは、影
形状輪郭線SOLを変形することによって、影領域の形
状全体を変更することができる。
As described above, in the shadow area changing mode, the entire shape of the shadow area can be changed by deforming the shadow shape outline SOL.

【0087】こうして所望の影が得られると、図14の
ステップS11において出力モードが選択され、ステッ
プS13において1ページ画像の出力処理が実行され
る。図20は、1ページ画像の出力処理の手順を示すフ
ローチャートである。ステップS12aでは、1ページ
画像の実画像データが画像メモリ204から画素変換部
222の画像バッファ280(図13)に転送される。
ステップS12bでは、図17のステップS10b(図
36〜図38)と同じ画素変換処理が実行される。この
結果、画像バッファ280に影付きの1ページ画像の画
像データが生成される。そして、ステップS12cで
は、画像バッファ280内の画像データが画像出力装置
300(図1)に転送されて、1ページ画像が記録され
る。
When the desired shadow is obtained in this way, the output mode is selected in step S11 of FIG. 14, and the one-page image output process is executed in step S13. FIG. 20 is a flowchart showing the procedure of the one-page image output processing. In step S12a, the actual image data of the one-page image is transferred from the image memory 204 to the image buffer 280 (FIG. 13) of the pixel conversion unit 222.
In step S12b, the same pixel conversion process as in step S10b (FIGS. 36 to 38) of FIG. 17 is executed. As a result, the image data of the shaded one-page image is generated in the image buffer 280. Then, in step S12c, the image data in the image buffer 280 is transferred to the image output device 300 (FIG. 1), and a one-page image is recorded.

【0088】図14に示す影付け処理手順によれば、対
話処理によって一度影付け処理を行なった後にも、影の
階調や形状を対話処理によって容易に変更することがで
きる。
According to the shadowing processing procedure shown in FIG. 14, even after the shadowing processing is once performed by the interactive processing, the tone and shape of the shadow can be easily changed by the interactive processing.

【0089】D.影のコピー方法:上述のようにして作
成した影を示す影付けパラメータをコピーすることによ
って、他の画像部品の影を作成することが可能である。
影付けパラメータは、例えば、影領域の最外周の輪郭線
を表わすベクトルデータ(図44に示す影形状輪郭線S
OL’の輪郭点pc1’〜pc4’の座標)と、図11
に示す4つのルックアップテーブルと、固定ラインの分
割数Ndf(=Ndm)と、階調ラインの分割数Npd
とを含むデータセットである。このような影付けパラメ
ータを他の画像部品に適用すれば、他の画像部品に対し
て同様な影を付けることが可能である。
D. Shadow Copying Method: By copying the shadowing parameter indicating the shadow created as described above, it is possible to create the shadow of another image component.
The shadowing parameter is, for example, vector data representing the outermost outline of the shadow area (shadow shape outline S shown in FIG. 44).
The coordinates of the contour points pc1 'to pc4' of OL ') and FIG.
4 lookup tables, fixed line division number Ndf (= Ndm), and gradation line division number Npd
It is a data set including and. By applying such a shadowing parameter to another image component, it is possible to apply a similar shadow to another image component.

【0090】図45は、影のコピーの一例を示す説明図
である。この例では、建物の画像部品OB1に対して生
成された影を、他の画像部品OB2にそのままコピーす
ることによって、同じ影を付けることができる。なお、
第2の画像部品OB2に第1の画像部品OB1の影をコ
ピーする場合にも、第2の画像部品OB2の影領域の背
景の階調値が変換される。第3の画像部品OB3のよう
に、コピー先の対象の画像部品のサイズが元の画像部品
OB1と異なっている場合には、縮小や拡大などの変倍
を階調輪郭線に施すことによって影をコピーすることが
可能である。
FIG. 45 is an explanatory diagram showing an example of copying a shadow. In this example, the same shadow can be added by copying the shadow generated for the image component OB1 of the building as it is to another image component OB2. In addition,
Even when the shadow of the first image component OB1 is copied to the second image component OB2, the gradation value of the background of the shadow area of the second image component OB2 is converted. When the size of the target image component of the copy destination is different from that of the original image component OB1 like the third image component OB3, the gradation outline is shaded by performing scaling such as reduction or enlargement. Can be copied.

【0091】なお、影付けパラメータとしては、影形状
輪郭線のベクトルデータ代わりに、マスク輪郭線MOL
とアフィン変換係数とを含むことも可能である。マスク
輪郭線の形状が大幅に異なる他の画像部品に対しては、
影付けパラメータに含まれるマスク輪郭線のベクトルデ
ータを当該他の画像部品のマスク輪郭線のベクトルデー
タに置き換え、そのベクトルデータをアフィン変換する
ことによって影形状輪郭線を作成することができる。こ
の結果、元の画像部品と同様な影を他の画像部品に付け
ることができる。
As the shadowing parameter, the mask contour MOL is used instead of the vector data of the shadow shape contour.
And affine transformation coefficients can be included. For other image parts where the shape of the mask outline is significantly different,
The shadow-shaped contour line can be created by replacing the vector data of the mask contour line included in the shadow-casting parameter with the vector data of the mask contour line of the other image component and affine-transforming the vector data. As a result, a shadow similar to the original image component can be added to another image component.

【0092】なお、この発明は上記実施例に限られるも
のではなく、その要旨を逸脱しない範囲において種々の
態様において実施することが可能であり、例えば次のよ
うな変形も可能である。
The present invention is not limited to the above-described embodiments, but can be carried out in various modes without departing from the scope of the invention, and the following modifications can be made.

【0093】(1)上記実施例では、画素データが加法
混色の3原色RGBの階調値で表わされるものとした
が、画素データが減法混色の3原色YMCの階調値、ま
たはYMCK(Kはブラック)の4色の階調値で表わさ
れる場合には、YMCまたはYMCKの画素データをR
GBの画素データに変換した後、上記実施例に適用すれ
ばよい。
(1) In the above embodiment, the pixel data is represented by the gradation values of the three additive primary colors RGB, but the pixel data is expressed by the gradation values of the three subtractive primary colors YMC, or YMCK (K Is represented by four gradation values of black), the pixel data of YMC or YMCK is converted to R.
After converting to GB pixel data, it may be applied to the above embodiment.

【0094】(2)影付けパラメータのいくつかのもの
は固定値としてもよい。図11に示す4つのルックアッ
プテーブルがすべて初期設定値のままである場合には、
影付けパラメータがこれらのルックアップテーブルを含
まないと考えることもできる。ただし、上記実施例のよ
うに、画像部品に応じてルックアップテーブルの設定値
を任意に調整できるようにすれば、視覚的効果が異なる
影を容易に形成することができるという利点がある。
(2) Some of the shadowing parameters may be fixed values. If all four lookup tables shown in FIG. 11 are left at their default values,
It can be considered that the shadowing parameters do not include these look-up tables. However, if the setting values of the look-up table can be arbitrarily adjusted according to the image parts as in the above-described embodiment, there is an advantage that shadows having different visual effects can be easily formed.

【0095】[0095]

【発明の効果】以上説明したように、請求項1に記載さ
れた発明によれば、第2と第3の輪郭線を対象画像部品
の輪郭に基づいて形成し、また、複数の閉領域について
設定された階調率と画素データとを乗ずることによって
影となる画像を表わす修正画素データを生成するので、
階調を有する影を容易に形成することができる。
As described above, according to the invention described in claim 1, the second and third contour lines are formed on the basis of the contour of the target image component, and a plurality of closed regions are formed. Since the corrected pixel data representing the image to be shaded is generated by multiplying the set gradation rate and the pixel data,
It is possible to easily form a shade having a gradation.

【0096】また、請求項2に記載された発明によれ
ば、第2の輪郭線から第3の輪郭線を容易に生成するこ
とができるので、請求項1に記載された発明と同様に、
階調を有する影を容易に形成することができる。
According to the invention described in claim 2, since the third contour line can be easily generated from the second contour line, like the invention described in claim 1,
It is possible to easily form a shade having a gradation.

【0097】請求項3に記載された発明によれば、複数
の閉領域の画像を表わす修正画素データの上に画像部品
の画素データを上書きするので、対象画像部品の下に影
が形成された1ページ画像を得ることができる。
According to the third aspect of the present invention, since the pixel data of the image component is overwritten on the corrected pixel data representing the images of the plurality of closed regions, a shadow is formed below the target image component. A one-page image can be obtained.

【0098】また、請求項4または5に記載された発明
によれば、影の階調変化を容易に変更することができ
る。
According to the invention described in claim 4 or 5, it is possible to easily change the gradation change of the shadow.

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

【図1】図1は、本発明による影付け処理の概要を示す
説明図である。
FIG. 1 is an explanatory diagram showing an outline of a shadowing process according to the present invention.

【図2】投影タイプの影付け処理の手順を示す説明図。FIG. 2 is an explanatory diagram showing a procedure of projection type shadowing processing.

【図3】投影タイプの影付け処理の手順を示す説明図。FIG. 3 is an explanatory diagram showing a procedure of projection type shadowing processing.

【図4】平行移動タイプの影付け処理の手順を示す説明
図。
FIG. 4 is an explanatory diagram showing a procedure of parallel movement type shadowing processing.

【図5】平行移動タイプの影付け処理の手順を示す説明
図。
FIG. 5 is an explanatory view showing a procedure of parallel movement type shadowing processing.

【図6】この発明の一実施例を適用して画像の影付け処
理を行なう製版処理システムの構成を示すブロック図。
FIG. 6 is a block diagram showing the configuration of a plate-making processing system that performs image shadowing processing by applying an embodiment of the present invention.

【図7】画像メモリ204の内部構成を示すブロック
図。
7 is a block diagram showing an internal configuration of an image memory 204. FIG.

【図8】輪郭線メモリ206の内部構成を示すブロッ
ク。
FIG. 8 is a block diagram showing an internal configuration of a contour line memory 206.

【図9】影形状輪郭線作成部224の機能を示すブロッ
ク図。
FIG. 9 is a block diagram showing the function of a shadow shape contour line creation unit 224.

【図10】階調輪郭線作成部226の機能を示すブロッ
ク図。
FIG. 10 is a block diagram showing the function of a gradation contour line creation unit 226.

【図11】ルックアップテーブルの初期設定値を示すグ
ラフ。
FIG. 11 is a graph showing initial values of a lookup table.

【図12】図形演算部228の機能を示すブロック図。FIG. 12 is a block diagram showing the function of a graphic calculation unit 228.

【図13】画素変換部222の機能を示すブロック図。FIG. 13 is a block diagram showing the function of a pixel conversion unit 222.

【図14】影付け処理の全体手順を示すフローチャー
ト。
FIG. 14 is a flowchart showing the overall procedure of a shadowing process.

【図15】影形状輪郭線の作成手順を示すフローチャー
ト。
FIG. 15 is a flowchart showing a procedure for creating a shadow shape contour line.

【図16】階調輪郭線の作成手順を示すフローチャー
ト。
FIG. 16 is a flowchart showing a procedure for creating a gradation contour line.

【図17】画像表示の手順を示すフローチャート。FIG. 17 is a flowchart showing a procedure of image display.

【図18】画素変換処理の手順を示すフローチャート。FIG. 18 is a flowchart showing a procedure of pixel conversion processing.

【図19】影の修正処理の手順を示すフローチャート。FIG. 19 is a flowchart showing the procedure of shadow correction processing.

【図20】画像の出力処理の手順を示すフローチャー
ト。
FIG. 20 is a flowchart showing a procedure of image output processing.

【図21】影付け処理前後の1ページ画像の例を示す概
念図。
FIG. 21 is a conceptual diagram showing an example of a one-page image before and after the shadowing process.

【図22】階調輪郭線の作成処理の内容を示す説明図。FIG. 22 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図23】階調輪郭線の作成処理の内容を示す説明図。FIG. 23 is an explanatory diagram showing the contents of gradation contour line creation processing.

【図24】階調輪郭線の作成処理の内容を示す説明図。FIG. 24 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図25】階調輪郭線の作成処理の内容を示す説明図。FIG. 25 is an explanatory diagram showing the details of processing for creating a gradation contour line.

【図26】階調輪郭線の作成処理の内容を示す説明図。FIG. 26 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図27】階調輪郭線の作成処理の内容を示す説明図。FIG. 27 is an explanatory diagram showing the contents of gradation contour line creation processing.

【図28】階調輪郭線の作成処理の内容を示す説明図。FIG. 28 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図29】階調輪郭線の作成処理の内容を示す説明図。FIG. 29 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図30】階調輪郭線の作成処理の内容を示す説明図。FIG. 30 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図31】階調輪郭線の作成処理の内容を示す説明図。FIG. 31 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図32】階調輪郭線の作成処理の内容を示す説明図。FIG. 32 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図33】階調輪郭線の作成処理の内容を示す説明図。FIG. 33 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図34】階調輪郭線の作成処理の内容を示す説明図。FIG. 34 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図35】階調輪郭線の作成処理の内容を示す説明図。FIG. 35 is an explanatory diagram showing the content of processing for creating a gradation contour line.

【図36】画素変換処理の内容を示す説明図。FIG. 36 is an explanatory diagram showing the contents of pixel conversion processing.

【図37】画素変換処理の内容を示す説明図。FIG. 37 is an explanatory diagram showing the contents of pixel conversion processing.

【図38】画素変換処理の内容を示す説明図。FIG. 38 is an explanatory diagram showing the contents of pixel conversion processing.

【図39】階調率の変更モードの処理内容を示す説明
図。
FIG. 39 is an explanatory diagram showing the processing contents of a gradation rate changing mode.

【図40】階調輪郭線の変更モードの処理内容を示す説
明図。
FIG. 40 is an explanatory diagram showing the processing contents of a gradation contour change mode.

【図41】影領域変形モードの処理内容を示す説明図。FIG. 41 is an explanatory diagram showing the processing contents of a shadow area transformation mode.

【図42】影領域変形モードの処理内容を示す説明図。FIG. 42 is an explanatory diagram showing the processing contents of a shadow area transformation mode.

【図43】影領域変形モードの処理内容を示す説明図。FIG. 43 is an explanatory diagram showing the processing contents of a shadow area transformation mode.

【図44】影領域変形モードの処理内容を示す説明図。FIG. 44 is an explanatory diagram showing the processing contents of a shadow area transformation mode.

【図45】影のコピーを示す説明図。FIG. 45 is an explanatory diagram showing copying of a shadow.

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

100…画像入力装置 200…画像処理装置 202…CPU 203…バス 204…画像メモリ 206…輪郭線メモリ 208…メインメモリ 210…入出力インタフェイス 212…キーボード 214…マウス 216…デジタイザ 218…カラーCRT 220…画像入出力インタフェイス 222…画素変換部 224…影形状輪郭線作成部 226…階調輪郭線作成部 228…図形演算部 230…セレクタ 232…実画像メモリ 234…粗画像メモリ 236…粗画像変換ユニット 240…コントロールメモリ 242…階調輪郭線データメモリ 244…マスクメモリ 250…セレクタ 252…セレクタ 260…演算処理部 262…バッファ 264…ルックアップテーブル 270…座標変換部 272…セレクタ 280…画像バッファ 282…輪郭線バッファ 284…処理バッファ 286…ラスタ変換部 288…セレクタ 300…画像出力装置 Ndf…固定ラインの分割数 Ndm…移動ラインの分割数 Npd…階調ラインの分割数 SH…影領域 SOL…影形状輪郭線 a〜f…アフィン変換係数 df1〜df3…固定ライン分割点 dm1〜dm3…移動ライン分割点 p1〜p4…マスク輪郭点 pc1〜pc4…影形状輪郭線SOLの輪郭点 pd11〜pd13…階調ライン分割点 pf1,pf2…固定点 pm,pm’…移動点 100 ... Image input device 200 ... Image processing device 202 ... CPU 203 ... Bus 204 ... Image memory 206 ... Contour line memory 208 ... Main memory 210 ... Input / output interface 212 ... Keyboard 214 ... Mouse 216 ... Digitizer 218 ... Color CRT 220 ... Image input / output interface 222 ... Pixel conversion unit 224 ... Shadow shape contour line creation unit 226 ... Gradation contour line creation unit 228 ... Graphic calculation unit 230 ... Selector 232 ... Actual image memory 234 ... Coarse image memory 236 ... Coarse image conversion unit 240 ... Control memory 242 ... Gradation outline data memory 244 ... Mask memory 250 ... Selector 252 ... Selector 260 ... Arithmetic processing unit 262 ... Buffer 264 ... Lookup table 270 ... Coordinate conversion unit 272 ... Selector 280 ... Image buffer 282 ... Contour line buffer 284 ... Processing buffer 286 ... Raster conversion unit 288 ... Selector 300 ... Image output device Ndf ... Fixed line division number Ndm ... Moving line division number Npd ... Gradation line division number SH ... Shadow area SOL ... Shadow shape contour lines a to f ... Affine transformation coefficients df1 to df3 ... Fixed line division points dm1 to dm3 ... Moving line division points p1 to p4 ... Mask contour points pc1 to pc4 ... Contour points pd11 to pd13 of the shadow shape contour line SOL. Gradation line division point pf1, pf2 ... Fixed point pm, pm '... Moving point

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 1ページ画像内に配置された対象画像部
品に影を付ける方法であって、(A)前記対象画像部品
の輪郭を構成する第1の輪郭線を表わすマスクデータを
準備する工程と、(B)対話操作による指定に基づい
て、前記第1の輪郭線をアフィン変換するためのアフィ
ン変換係数を求める工程と、(C)前記第1の輪郭線に
対して前記アフィン変換を実行することによって、影領
域の外形を示す第2の輪郭線を表わす第2輪郭線データ
を生成する工程と、(D)前記第2の輪郭線上におい
て、少なくとも1つの固定点を指定する工程と、(E)
前記固定点を通り、前記固定点から前記第2の輪郭線に
向かって略アーチ状に順次広がる複数の第3の輪郭線を
表わす第3輪郭線データを生成する工程と、(F)前記
第2と第3の輪郭線によって形成される複数の閉領域の
それぞれについて、指定された階調率と、前記1ページ
画像内において前記複数の閉領域の位置に存在する画像
の画素データの値とを乗ずることによって、前記複数の
閉領域のそれぞれに含まれる修正画素データを生成する
工程と、を備える画像の影付け方法。
1. A method of casting a shadow on a target image component arranged in a one-page image, the method comprising: (A) preparing mask data representing a first contour line forming a contour of the target image component. And (B) obtaining an affine transformation coefficient for affine transforming the first contour line based on designation by an interactive operation, and (C) executing the affine transformation on the first contour line. By doing so, a step of generating second contour line data representing a second contour line showing the outer shape of the shadow area, and (D) designating at least one fixed point on the second contour line, (E)
Generating third contour line data representing a plurality of third contour lines that sequentially pass through the fixed point and substantially arcuate from the fixed point toward the second contour line; and (F) the third contour line data. For each of the plurality of closed areas formed by the second and third contours, the specified gradation rate and the value of the pixel data of the image existing at the positions of the plurality of closed areas in the one-page image. To generate modified pixel data included in each of the plurality of closed regions by multiplying by.
【請求項2】 1ページ画像内に配置された対象画像部
品に影を付ける方法であって、(A)前記対象画像部品
の輪郭を構成する第1の輪郭線を表わすマスクデータを
準備する工程と、(B)対話操作による指定に基づい
て、前記第1の輪郭線をアフィン変換するためのアフィ
ン変換係数を求める工程と、(C)前記第1の輪郭線に
対して前記アフィン変換を実行することによって第2の
輪郭線を表わす第2輪郭線データを生成する工程と、
(D)前記第2の輪郭線上において、2つの固定点を指
定する工程と、(E)前記2つの固定点で区分される前
記第2の輪郭線の第1と第2の輪郭線部分をそれぞれ指
定された分割率で指定された分割数に分割することによ
って、前記第1と第2の輪郭線部分上に複数の第1の分
割点と複数の第2の分割点とをそれぞれ設定する工程
と、(F)互いに対応する第1と第2の分割点を結ぶ複
数の線分を、それぞれ指定された分割率で指定された分
割数に分割することによって、前記複数の線分のそれぞ
れの上に複数の第3の分割点を設定する工程と、(G)
前記複数の線分上における前記複数の第3の分割点のう
ちの互いに対応する第3の分割点と、前記2つの固定点
とを連結することにより、複数の第3の輪郭線を表わす
第3輪郭線データを生成する工程と、(H)前記第2と
第3の輪郭線によって形成される複数の閉領域のそれぞ
れについて、指定された階調率と、前記1ページ画像内
において前記複数の閉領域の位置に存在する画像の画素
データの値とを乗ずることによって、前記複数の閉領域
のそれぞれに含まれる修正画素データを生成する工程
と、を備える画像の影付け方法。
2. A method for casting a shadow on a target image component arranged in a one-page image, the method comprising: (A) preparing mask data representing a first contour line forming a contour of the target image component. And (B) obtaining an affine transformation coefficient for affine transforming the first contour line based on designation by an interactive operation, and (C) executing the affine transformation on the first contour line. Generating second contour line data representing the second contour line by
(D) a step of designating two fixed points on the second contour line; and (E) a first and second contour line portion of the second contour line sectioned by the two fixed points. A plurality of first dividing points and a plurality of second dividing points are respectively set on the first and second contour line portions by dividing into a designated number of divisions at a designated dividing ratio. And (F) dividing a plurality of line segments connecting the first and second dividing points corresponding to each other into a designated number of divisions at a designated division ratio, thereby dividing each of the plurality of line segments. Setting a plurality of third division points on top of (G)
A plurality of third contour points are expressed by connecting a third division point corresponding to each other among the plurality of third division points on the plurality of line segments and the two fixed points. And (H) for each of the plurality of closed regions formed by the second and third contour lines, the designated gradation rate and the plurality of the contours in the one-page image. And multiplying the pixel data values of the image existing at the position of the closed area with the value of the pixel data of the image to generate modified pixel data included in each of the plurality of closed areas.
【請求項3】 請求項1または2記載の画像の影付け方
法であって、さらに、 前記修正画素データの上に前記対象画像部品の画素デー
タを上書きすることによって、前記複数の閉領域の少な
くとも一部の上に前記対象画像部品が配置された1ペー
ジ画像を表わす画像データを生成する工程、を備える画
像の影付け方法。
3. The image shadowing method according to claim 1, further comprising: overwriting the pixel data of the target image component on the corrected pixel data so that at least one of the plurality of closed regions is formed. And a step of generating image data representing a one-page image in which the target image component is arranged on a part thereof.
【請求項4】 請求項1ないし3のいずれかに記載の画
像の影付け方法であって、さらに、 第3の輪郭線の間隔を調整することによって、影の階調
変化を変更する工程、を備える画像の影付け方法。
4. The image shadowing method according to any one of claims 1 to 3, further comprising a step of changing a gradation change of the shadow by adjusting an interval between the third contour lines, An image shadowing method comprising:
【請求項5】 請求項1ないし4のいずれかに記載の画
像の影付け方法であって、さらに、 複数の閉領域に対する階調率を調整することによって、
影の階調変化を変更する工程、を備える画像の影付け方
法。
5. The image shadowing method according to claim 1, further comprising adjusting a gradation ratio for a plurality of closed regions,
An image shadowing method comprising a step of changing a gradation change of a shadow.
JP14567794A 1994-06-02 1994-06-02 Image shadowing method Expired - Fee Related JP3170419B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14567794A JP3170419B2 (en) 1994-06-02 1994-06-02 Image shadowing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14567794A JP3170419B2 (en) 1994-06-02 1994-06-02 Image shadowing method

Publications (2)

Publication Number Publication Date
JPH07336529A true JPH07336529A (en) 1995-12-22
JP3170419B2 JP3170419B2 (en) 2001-05-28

Family

ID=15390541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14567794A Expired - Fee Related JP3170419B2 (en) 1994-06-02 1994-06-02 Image shadowing method

Country Status (1)

Country Link
JP (1) JP3170419B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717969A (en) * 2018-07-13 2020-01-21 阿里巴巴集团控股有限公司 Shadow generation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717969A (en) * 2018-07-13 2020-01-21 阿里巴巴集团控股有限公司 Shadow generation method and device

Also Published As

Publication number Publication date
JP3170419B2 (en) 2001-05-28

Similar Documents

Publication Publication Date Title
EP1064619B1 (en) Stochastic level of detail in computer animation
US5739819A (en) Method and apparatus for generating an artificial shadow in a two dimensional color image
US7728848B2 (en) Tools for 3D mesh and texture manipulation
JP7235875B2 (en) Point cloud colorization system with real-time 3D visualization
US6573889B1 (en) Analytic warping
KR100349483B1 (en) Image processing in which polygon is divided
WO1994022101B1 (en) Method and system for image processing
JPH06348864A (en) Image display apparatus, computer graphic system and image display method
US20030107572A1 (en) Method and apparatus for reducing the polygon count of a textured, three dimensional model of an object
JP2003256865A (en) Method and program for generating two-dimensional image with cartoon-like expression from stereoscopic object data
US7133052B1 (en) Morph map based simulated real-time rendering
TW472214B (en) Image processing apparatus, recording medium, and program
JP3170419B2 (en) Image shadowing method
US7734118B2 (en) Automatic image feature embedding
JPH0955881A (en) Picture shading method
JP4009289B2 (en) Method for determining a weighting factor for color-calculating a texel color value associated with a footprint
JP3701627B2 (en) Drawing processing program, recording medium storing drawing processing program, drawing processing apparatus and method
JPH08287225A (en) Image simulation device
KR100512567B1 (en) Displaced Subdivision Mesh restoration method for face animation
JPS60221875A (en) Processor of half tone picture
JPH09265548A (en) Method and device for generating pattern simulatively representing wrinkle, and printed matter having the same pattern
JP2007183832A (en) Display control system, display control method, and program
JP3453410B2 (en) Image processing apparatus and method
JPH0793585A (en) Image shadowing method
JP3984704B2 (en) Image processing apparatus and method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080316

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090316

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090316

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100316

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100316

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100316

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110316

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110316

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120316

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120316

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees