JPH05314273A - Method and device for processing image data - Google Patents
Method and device for processing image dataInfo
- Publication number
- JPH05314273A JPH05314273A JP4143186A JP14318692A JPH05314273A JP H05314273 A JPH05314273 A JP H05314273A JP 4143186 A JP4143186 A JP 4143186A JP 14318692 A JP14318692 A JP 14318692A JP H05314273 A JPH05314273 A JP H05314273A
- Authority
- JP
- Japan
- Prior art keywords
- image
- edge
- fill
- contour
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title abstract description 7
- 238000003672 processing method Methods 0.000 claims description 8
- 230000000694 effects Effects 0.000 abstract description 4
- 238000004519 manufacturing process Methods 0.000 abstract description 4
- 238000012986 modification Methods 0.000 abstract 1
- 230000004048 modification Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 16
- 230000000051 modifying effect Effects 0.000 description 3
- 238000003708 edge detection Methods 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
Landscapes
- Image Generation (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は画像データのエッジに輪
郭データを付加する画像処理方法と画像処理装置に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and an image processing apparatus for adding contour data to edges of image data.
【0002】[0002]
【従来の技術】画像に輪郭を付加することは、画像に装
飾的な効果を与えると共に、背景画像に対して当該画像
をコントラストよく浮き立たせるという効果もある。例
えば、ビデオカメラで撮影した第1の画像に、ライトペ
ンなどの入力装置を使用してタイトルや説明文などの第
2の画像を重畳(スーパーインポーズ)する場合、第2
の画像を第1の画像上でコントラストよく浮き立たせる
ために、第2の画像に輪郭を付することが行われてい
る。この場合の第2の画像は、文字と図形などからなっ
ていることが多く、画像としては比較的複雑な場合があ
り、従来はこのような画像に輪郭を形成するには、微分
回路を備えた輪郭形成装置を使用して、画像の境界位置
を検出してそこに輪郭画像を逐次作成していた。2. Description of the Related Art Adding a contour to an image has a decorative effect on the image and also an effect of emphasizing the image with respect to a background image with good contrast. For example, when a second image such as a title or description is superimposed (superimposed) on the first image captured by the video camera using an input device such as a light pen,
In order to make the image of 3) stand out on the first image with good contrast, the second image is contoured. The second image in this case is often composed of characters and figures and may be relatively complicated as an image. Conventionally, in order to form a contour in such an image, a differentiating circuit is provided. The contour forming device is used to detect the boundary position of the image and successively create the contour image there.
【0003】[0003]
【発明が解決しようとする課題】上述の従来の輪郭画像
の作成は、複雑な装置を使用し処理も煩雑であり、装置
の製造コストの面でも問題があった。また、自由に描か
れる図形などは、ドッド変換しないと輪郭を作成するこ
とができず、例えば文字と図形からなる画像では、これ
らをまとめた状態で輪郭を作成することもできなかっ
た。本発明は上述のこの種の画像に対する輪郭作成の現
状に鑑みてなされたものであり、その目的は画像に対す
る輪郭作成が簡単に行える画像処理方法と画像処理装置
とを提供することにある。The conventional contour image creation described above requires a complicated apparatus and complicated processing, and there is a problem in terms of manufacturing cost of the apparatus. Further, a freely drawn figure or the like cannot be contoured without Dodd conversion, and for example, in an image composed of characters and figures, it is not possible to compose the contour in a state in which these are put together. The present invention has been made in view of the current state of contour creation for an image of this type described above, and an object thereof is to provide an image processing method and an image processing apparatus that can easily create a contour for an image.
【0004】[0004]
【課題を解決するための手段】上記目的は、画像内の指
定点の周囲に連続する画像データのエッジを検出し、こ
のエッジに輪郭データを付加することにより達成され
る。また、上記目的は、第1の画像に第2の画像を重畳
して第3の画像を作成する画像処理方法において、上記
第2の画像のエッジに輪郭データを付加し、この輪郭デ
ータが付加された第2の画像を上記第1の画像に重畳す
ることにより達成される。さらに、上記目的は、本発明
の構成を示す図1のブロック図に示すように、画像作成
手段2が作成した画像内の指定点の周囲に連続する画像
データから、エッジを検出するエッジ検出手段3と、こ
のエッジ検出手段3が検出したエッジに輪郭データを付
加する輪郭データ付加手段5とを設けることにより達成
される。The above object is achieved by detecting an edge of image data that is continuous around a specified point in an image and adding contour data to this edge. Further, the above-mentioned object is to add contour data to an edge of the second image in the image processing method for creating the third image by superimposing the second image on the first image, and the contour data is added. This is achieved by superimposing the generated second image on the first image. Further, the above-mentioned object is, as shown in the block diagram of FIG. 1 showing the configuration of the present invention, an edge detecting means for detecting an edge from image data continuous around a specified point in an image created by the image creating means 2. 3 and contour data adding means 5 for adding contour data to the edge detected by the edge detecting means 3.
【0005】[0005]
【作用】本発明では、画像内に設定した指定点の周囲に
連続する画像データのエッジが検出され、検出されたエ
ッジに輪郭データが付加される。また、本発明では、第
1の画像に第2の画像を重畳して第3の画像を作成する
画像処理方法において、上記第2の画像のエッジに輪郭
データが付加され、この輪郭データが付加された第2の
画像を上記第1の画像が重畳される。本発明の動作を図
2のフローチャートで説明すると、ステップS1で画像
内に指定点が設定され、ステップS2で指定点の周囲に
連続する画像データのエッジが検出され、ステップS3
で検出されたエッジに輪郭データが付加され、ステップ
S4で全ての画像データに輪郭データが付加されたこと
が確認される。According to the present invention, the edge of the image data which is continuous around the specified point set in the image is detected, and the contour data is added to the detected edge. Further, in the present invention, in the image processing method of superimposing the second image on the first image to create the third image, contour data is added to the edge of the second image, and the contour data is added. The first image is superimposed on the generated second image. The operation of the present invention will be described with reference to the flowchart of FIG. 2. In step S1, a designated point is set in the image, in step S2 edges of image data continuous around the designated point are detected, and in step S3.
The contour data is added to the edge detected in step S4, and it is confirmed in step S4 that the contour data is added to all the image data.
【0006】[0006]
【実施例】以下、本発明を画像処理装置の一実施例に基
づいて図面を参照して説明する。図3は実施例の構成を
示すブロック図であり、同図に示すようにCPU11に
バスBを介してビデオRAM(以下VRAMという)1
2、ROM13、RAM15及びライトペンを備えた入
力ディバイス14が接続してあり、VRAM12には表
示装置16が接続してある。ここで、CPU11にはエ
ッジ検出手段、輪郭データ付加手段及びスーパーインポ
ーズ手段が設けてあり、CPU11は、実施例の全体動
作を制御する機能を有し、ROM13には、実施例の動
作プログラムが格納してある。また、入力デバイス14
は、外部からの画像データの入力とライトペンで作像す
る編集画像データの入力の機能を有している。さらに、
RAM15は、画像処理に際して各種のデータを格納す
る機能を有し、VRAM12は、入力ディバイス14か
らの画像データを格納する機能を有し、表示装置は、外
部から入力される第1の画像、第2の画像である編集画
像、この編集画像に輪郭を付加した処理画像及び処理画
像をスーパポーズした第1の画像を表示する機能を有し
ている。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings based on an embodiment of an image processing apparatus. FIG. 3 is a block diagram showing the configuration of the embodiment. As shown in FIG. 3, a CPU 11 is provided with a video RAM (hereinafter referred to as VRAM) 1 via a bus B.
2, an input device 14 including a ROM 13, a RAM 15, and a light pen are connected, and a display device 16 is connected to the VRAM 12. Here, the CPU 11 is provided with edge detecting means, contour data adding means and superimposing means, the CPU 11 has a function of controlling the overall operation of the embodiment, and the ROM 13 stores the operation program of the embodiment. It has been stored. In addition, the input device 14
Has a function of inputting image data from outside and inputting edited image data for forming an image with a light pen. further,
The RAM 15 has a function of storing various data during image processing, the VRAM 12 has a function of storing image data from the input device 14, and the display device has a first image, It has a function of displaying an edited image which is the second image, a processed image obtained by adding a contour to the edited image, and a first image obtained by superposing the processed image.
【0007】次に、このような構成の実施例の画像処理
動作を、入力デイバイス14のライトペンの操作によっ
て描画した編集画像に輪郭を付する処理について説明す
る。先ず、実施例の画像処理の基本動作を図5〜図10
を参照して説明する。ここで、図5〜図8は実施例の画
像処理の基本動作の説明図であり、図9及び図10は実
施例における親の水平ラインから隣接する水平ラインへ
の画像処理の移行の説明図である。実施例では、図5に
示すように、輪郭が付される編集画像のX軸方向で最長
の水平ラインに指定点20が設定され、この指定点20
から左右のX座標方向に当該画像の端部の画像データと
隣接するピクセルでの画像データの有無の変化によっ
て、エッジ21、22が検出され、これらのエッジに挟
まれた画像データ部分に元親のフィルパラメータが作成
される。また、元親のフィルパラメータに対する当該エ
ッジ(Fill)に輪郭データが付加され、この元親の
フィルパラメータを元にして、Y軸方向で隣接する水平
ラインについて、画像データに対するエッジが同様にし
て検出され、当該エッジ間に子のフィルパラメータが順
次作成されて同様に輪郭が付加される。そして、次には
子のフィルパラメータを親のフィルパラメータとして、
当該フィルパラメータにY軸方向で隣接する水平ライン
の画像データに対して、子のフィルパラメータが順次作
成され、このようにして検出される各ラインのエッジに
順次輪郭が付されることにより、画像の全周辺に輪郭が
付される。Next, the image processing operation of the embodiment having such a structure will be described with reference to a process of adding a contour to an edited image drawn by operating the light pen of the input device 14. First, the basic operation of the image processing of the embodiment will be described with reference to FIGS.
Will be described. 5 to 8 are explanatory diagrams of the basic operation of the image processing of the embodiment, and FIGS. 9 and 10 are explanatory diagrams of the shift of the image processing from the parent horizontal line to the adjacent horizontal line in the embodiment. Is. In the embodiment, as shown in FIG. 5, the designated point 20 is set on the longest horizontal line in the X-axis direction of the edited image to which the contour is added.
The edges 21 and 22 are detected by a change in the presence or absence of image data at the pixel adjacent to the image data at the end of the image in the left and right X coordinate directions, and the image data portion sandwiched between these edges is the original parent. Fill parameters are created. Further, contour data is added to the edge (Fill) corresponding to the fill parameter of the original parent, and based on the fill parameter of the original parent, the edge for the image data is similarly detected for the horizontal lines adjacent in the Y-axis direction. The child fill parameters are sequentially created between the edges, and the contour is added in the same manner. And next, the child's fill parameter as the parent's fill parameter,
Image data of a horizontal line adjacent to the fill parameter in the Y-axis direction is sequentially created as child fill parameters, and the edges of the respective lines thus detected are sequentially contoured to obtain an image. A contour is attached to the entire periphery of.
【0008】このような画像処理は、図6〜図8に示す
以下の基本規則に従って行われる。 A.エッジ検出手段が検出したフィルパラメータの両外
側のエッジに、輪郭データ付加手段が輪郭データを付加
する(図6)。 B.同一水平ライン上に存在する共通の親のフィルパラ
メータのX座標領域に存在するフィルパラメータ間に、
輪郭データ付加手段が輪郭データを付加する(図7)。 C.子のフィルパラメータが、親のフィルパラメータよ
りも左側で縮小している場合(C1)、右側で縮小して
いる場合(C2)及びフィルパラメータが存在しない場
合(C3)には、輪郭データ付加手段が、対応する領域
に輪郭データを付加する(図8)。この時、付加される
輪郭データのX座標方向の端部を、最も近い位置にある
親のフィルパラメータの端部の輪郭データに一致させ
る。Such image processing is performed according to the following basic rules shown in FIGS. A. The contour data adding means adds contour data to the outer edges of the fill parameter detected by the edge detecting means (FIG. 6). B. Between the fill parameters existing in the X coordinate area of the common parent fill parameters existing on the same horizontal line,
The contour data adding means adds the contour data (FIG. 7). C. When the child fill parameter is reduced on the left side of the parent fill parameter (C1), on the right side of the parent fill parameter (C2), and when the fill parameter does not exist (C3), contour data adding means Adds contour data to the corresponding area (FIG. 8). At this time, the end of the added contour data in the X coordinate direction is made to coincide with the contour data of the end of the parent fill parameter located at the closest position.
【0009】ここで、実施例における元親のフィルパラ
メータに隣接する水平ラインでの画像処理について説明
すると、図9(a)に示すようにエッジが検出され、エ
ッジに輪郭データが付加されて親のフィルパラメータが
作成されると、当該フィルパラメータにY軸方向で上方
に隣接する水平ラインに画像処理が進む。先ず、親のフ
ィルパラメータの左端のX座標に対応する位置をフィル
ポイントfとして、この場合は左方のX座標には画像デ
ータがないので、ピクセルが編集画像の端部の画像デー
タとの境界点でない場合には、図9(b)に示すよう
に、上記基本規則C1によって端部を最も近い親のフィ
ルパラメータエッジの輪郭データに一致させて輪郭デー
タをX座標右方向に付加して行きながらエッジ位置を検
出する。また、上記フィルポイントfに画像データが存
在する場合には、X座標左方向に存在するフィルパラメ
ータのエッジを先ず検出する。これらの検出動作の何れ
かで、ピクセルが画像データとの境界点となるエッジ位
置を検出し、当該エッジ位置間に子のフィルパラメータ
を検出し、基本規則Aによりエッジに輪郭データを付加
して同図(c)に示すように子のフィルパラメータを形
成する。 次いで、当該水平ラインに対して親のフィル
パラメータの右端のX座標に対応する位置まで、上述の
処理を繰り返し基本規則A、B、Cを適用することによ
り、図10に示すように輪郭データを付加した子のフィ
ルパラメータを、順次作成して行く。そして当該水平ラ
インの処理を済ませると、親のフィルパラメータにY軸
方向に下方で隣接する水平ラインについて同様な処理が
行われる。その後は、子のフィルパラメータを親のフィ
ルパラメータとして、順次Y軸方向に対して輪郭データ
の付加が行われる。Here, the image processing on the horizontal line adjacent to the fill parameter of the original parent in the embodiment will be described. As shown in FIG. 9A, an edge is detected, contour data is added to the edge, and the parent data is added. When the fill parameter is created, image processing proceeds to a horizontal line that is adjacent to the fill parameter in the Y-axis direction. First, the position corresponding to the X coordinate at the left end of the parent fill parameter is set as the fill point f. In this case, since there is no image data at the left X coordinate, the pixel is a boundary with the image data at the end of the edited image. If it is not a point, as shown in FIG. 9B, the end is made to match the contour data of the closest parent fill parameter edge by the above-mentioned basic rule C1 and the contour data is added to the X coordinate right direction. While detecting the edge position. If image data exists at the fill point f, the edge of the fill parameter that exists in the X coordinate left direction is first detected. In any of these detection operations, the edge position where the pixel is a boundary point with the image data is detected, the fill parameter of the child is detected between the edge positions, and the outline data is added to the edge according to the basic rule A. The child fill parameters are formed as shown in FIG. Next, by repeating the above-described processing until the position corresponding to the X coordinate of the right end of the parent fill parameter with respect to the horizontal line and applying the basic rules A, B, and C, the contour data is obtained as shown in FIG. The fill parameters of the added child are sequentially created. When the processing of the horizontal line is completed, the same processing is performed on the horizontal line adjacent to the parent fill parameter in the Y-axis direction downward. After that, contour data is sequentially added in the Y-axis direction using the child fill parameter as the parent fill parameter.
【0010】次に、実施例の画像処理の例を図4及び図
11〜図14を参照して説明する。ここで、図4は実施
例の動作を示すフローチャート、図11〜図14は、実
施例による画像処理の説明図である。図4のステップS
11において、図11に示すように編集画像を構成する
水平ラインの画素列のエッジが検出され、X座標方向に
エッジ間が最長のものが選択され元親のフィルパラメー
タが作成され、当該フィルパラメータに指定点20が設
定され、ステップS12で当該エッジに輪郭データが付
加される。そして、ステップS13において当該フィル
パラメータが元親のフィルパラメータとして、RAM1
5のリングバッファ領域にスタックされる。ステップS
14で当該フィルパラメータがポップアップされ、ステ
ップS15において、当該フィルパラメータに基づいて
子のフィルパラメータの作成及び対応する輪郭描画の処
理が行われる。Next, an example of image processing of the embodiment will be described with reference to FIGS. 4 and 11 to 14. Here, FIG. 4 is a flowchart showing the operation of the embodiment, and FIGS. 11 to 14 are explanatory diagrams of the image processing according to the embodiment. Step S in FIG.
11, the edge of the pixel line of the horizontal line that constitutes the edited image is detected, the one having the longest distance between the edges in the X coordinate direction is selected, the fill parameter of the original parent is created, and the fill parameter is set. The designated point 20 is set to, and contour data is added to the edge in step S12. Then, in step S13, the RAM 1 is set as the fill parameter of the original parent.
5 is stacked in the ring buffer area. Step S
In step S14, the fill parameter is popped up, and in step S15, the child fill parameter is created and the corresponding contour drawing process is performed based on the fill parameter.
【0011】即ち、図12に示すように、元親のフィル
パラメータにY軸上方で隣接する水平ラインについて、
元親のフィルパラメータの左端の画像データのX座標位
置のピクセルをフィルポイントとして、画像処理が進め
られる。この場合は、フィルポイントのX座標左方に
は、画像データが存在しないので、基本規則C1により
端部を元親のフィルパラメータエッジの輪郭データに一
致させて、輪郭データをX座標右方向に付加して行く。
この状態で、ピクセルが画像データとの境界点となるエ
ッジ位置を検出し、当該エッジ位置から子のフィルパラ
メータを検出し、基本規則Aによりエッジに輪郭データ
を付加して第1子のフィルパラメータを作成する。同様
にして、元親のフィルパラメータの左端部のX座標に達
するまで、エッジ位置の検出が行われ、第2子のフィル
パラメータに対応するエッジが検出され、基本規則Aに
より第2子のフィルパラメータのエッジに輪郭データが
付加され、基本規則Bによって第1子のフィルパラメー
タと第2子のフィルパラメータ間に輪郭データが付加さ
れる。同様にして第3子のフィルパラメータに対応する
エッジが検出され、基本規則Aによって第3子のフィル
パラメータのエッジに輪郭データが付加され、基本規則
Bによつて第2子のフィルパラメータと第3子のフィル
パラメータ間に輪郭データが付加される。そして、右側
で縮小している第3子のフィルパラメータに対して、基
本規則C2によつて輪郭データが、X座標右方向に端部
を元親のフィルパラメータエッジの輪郭データに一致さ
せて付加される。That is, as shown in FIG. 12, for the horizontal line adjacent to the original parent fill parameter above the Y axis,
Image processing proceeds with the pixel at the X coordinate position of the image data at the left end of the original parent fill parameter as the fill point. In this case, since there is no image data to the left of the X coordinate of the fill point, the edge is made to match the contour data of the fill parameter edge of the original parent according to the basic rule C1, and the contour data is moved to the X coordinate right direction. Add it.
In this state, the edge position where the pixel is a boundary point with the image data is detected, the fill parameter of the child is detected from the edge position, and the outline data is added to the edge according to the basic rule A to calculate the fill parameter of the first child. To create. Similarly, the edge position is detected until the X coordinate of the left end of the fill parameter of the original parent is reached, the edge corresponding to the fill parameter of the second child is detected, and the basic rule A is used to fill the second child. The contour data is added to the edge of the parameter, and the basic rule B adds the contour data between the fill parameter of the first child and the fill parameter of the second child. Similarly, the edge corresponding to the fill parameter of the third child is detected, the contour data is added to the edge of the fill parameter of the third child by the basic rule A, and the fill parameter of the second child and the fill parameter of the second child are added by the basic rule B. Contour data is added between the three fill parameters. Then, according to the basic rule C2, the contour data is added to the third fill parameter reduced on the right side by matching the end portion in the right direction of the X coordinate with the contour data of the original parent fill parameter edge. To be done.
【0012】次いで、元親のフィルパラメータにY軸下
方向で隣接する水平ラインについて画像処理が行われ、
元親のフィルパラメータの左端の画像データのX座標位
置のピクセルをフィルポイントとして、同様にエッジが
検出され第4子のフィルパラメータが作成され、基本規
則Aによって輪郭データが付加される。続いて当該水平
ラインについて、X座標右方向に第5子のフィルパラメ
ータに対応するエッジが検出され、第5子のフィルパラ
メータが作成され、これらのエッジに基本規則Aによっ
て輪郭データが付加される。そして、第4子のフィルパ
ラメータと第5子のフィルパラメータ間に基本規則Bに
より輪郭データが付加され、右側が縮小した第5子のフ
ィルパラメータに対して、基本規則C2によって輪郭デ
ータが、端部を元親のフィルパラメータエッジの輪郭デ
ータに一致させて付加される。Next, image processing is performed on a horizontal line adjacent to the original parent fill parameter in the Y-axis downward direction,
Using the pixel at the X coordinate position of the image data at the left end of the original parent fill parameter as a fill point, an edge is similarly detected, the fill parameter of the fourth child is created, and the outline data is added according to the basic rule A. Then, with respect to the horizontal line, edges corresponding to the fill parameter of the fifth child are detected in the right direction of the X coordinate, fill parameters of the fifth child are created, and contour data is added to these edges according to the basic rule A. .. Then, outline data is added between the fill parameter of the fourth child and the fill parameter of the fifth child by the basic rule B, and the outline data is added by the basic rule C2 to the end of the fill parameter of the fifth child whose right side is reduced. The part is added to match the contour data of the fill parameter edge of the original parent.
【0013】ここで、第1子のフィルパラメータ、第2
子のフィルパラメータ及び第3子のフィルパラメータ
を、それぞれ第1親のフィルパラメータ、第2親のフィ
ルパラメータ及び第3親のフィルパラメータとして、当
該水平ラインにY軸上方で隣接する水平ラインに対する
画像処理が行われる。先ず、第1親のフィルパラメータ
の左端の画像データのX座標位置のピクセルをフィルポ
イントとして、この場合フィルポイントのX座標左方に
は画像データが存在しないので、基本規則C1によっ
て、端部の輪郭データ位置を第1親のフィルパラメータ
の端部の輪郭データ位置に揃えて輪郭データが付加され
る。そして第1−1子のフィルパラメータに対応するエ
ッジが検出され、第1−1子のフィルパラメータが検出
され、基本規則Aによってこの第1−1子のフィルパラ
メータのエッジに輪郭データが付加される。次いで、第
2親のフィルパラメータの左端の画像データのX座標位
置のピクセルをフィルポイントとして、この場合はフィ
ルポイントと第1−1子のフィルパラメータ間には、画
像データが存在しないので、基本規則C1によってX軸
右方向に輪郭データが付加される。また、この過程で第
2−1子のフィルパラメータに対応するエッジが検出さ
れ、これらのエッジに基本規則Aによって輪郭データが
付加され、基本規則C2によって右方が縮小した第2−
1子のフィルパラメータに、端部位置を最も近い位置に
ある第3親のフィルパラメータの端部の輪郭データ位置
に一致させて輪郭データが付加される。そして、第3親
のフィルパラメータの左端の画像データのX座標位置の
ピクセルをフィルポイントとして画像処理が行われ、こ
の場合はフィルポイントに画像データが存在するので、
X座標左方向にエッジを検出して第2−1子のフィルパ
ラメータと同一のエッジが検出されるが、この場合は重
複検出なので第3−1子のフィルパラメータは作成され
ない。Here, the fill parameter of the first child, the second
An image for a horizontal line adjacent to the horizontal line above the Y axis by using the child fill parameter and the third child fill parameter as the first parent fill parameter, the second parent fill parameter, and the third parent fill parameter, respectively. Processing is performed. First, the pixel at the X coordinate position of the leftmost image data of the fill parameter of the first parent is used as a fill point. In this case, since there is no image data to the left of the X coordinate of the fill point, the basic rule C1 is used to determine the edge portion. The contour data position is aligned with the contour data position at the end of the fill parameter of the first parent, and the contour data is added. Then, the edge corresponding to the fill parameter of the 1-1 th child is detected, the fill parameter of the 1-1 th child is detected, and the basic rule A adds contour data to the edge of the fill parameter of the 1-1 th child. It Next, the pixel at the X coordinate position of the leftmost image data of the fill parameter of the second parent is used as a fill point. In this case, since there is no image data between the fill point and the fill parameter of the 1-1 th child, According to the rule C1, contour data is added in the right direction of the X axis. In this process, edges corresponding to the fill parameter of the 2-1th child are detected, contour data is added to these edges by the basic rule A, and the right side is reduced by the basic rule C2.
The contour data is added to the fill parameter of one child by matching the end position with the contour data position of the end of the fill parameter of the third parent, which is the closest position. Then, the image processing is performed with the pixel at the X coordinate position of the leftmost image data of the fill parameter of the third parent as the fill point. In this case, since the image data exists at the fill point,
The edge is detected in the left direction of the X coordinate to detect the same edge as the fill parameter of the 2-1th child. However, in this case, since the overlap is detected, the fill parameter of the 3-1st child is not created.
【0014】次いで、第4子のフィルパラメータ、第5
子のフィルパラメータを、それぞれ第4親のフィルパラ
メータ、第5親のフィルパラメータとして、これらの親
のフィルパラメータを含む水平ラインに、Y軸下方で隣
接する水平ラインに対する画像処理が行われる。先ず、
第4親のフィルパラメータの左端の画像データのX座標
位置のピクセルをフィルポイントとして、フィルポイン
トのX座標方向には画像データがないので、基本規則C
3により端部位置を第4親のフィルパラメータの端部の
輪郭データ位置に一致させて輪郭データが付加される。
次いで、第5親のフィルパラメータの左端の画像データ
のX座標位置のピクセルをフィルポイントとして、フィ
ルポイントのX座標左方には画像データが存在しないの
で、基本規則C3により端部を第5親のフィルパラメー
タの端部の輪郭データ位置に一致させて輪郭データが付
加される。この過程で第5−1子のフィルパラメータに
対応するエッジが検出され、基本規則Aによってこれら
のエッジに輪郭データが付加される。Next, the fill parameter of the fourth child, the fifth
Image processing is performed on a horizontal line adjacent to the horizontal line including the fill parameters of the parent as the fill parameter of the fourth parent and the fill parameter of the fifth parent, respectively, using the fill parameter of the child as the fill parameter of the fourth parent and the fill parameter of the fifth parent. First,
Since there is no image data in the X coordinate direction of the fill point with the pixel at the X coordinate position of the leftmost image data of the fourth parent fill parameter as the fill point, basic rule C
By 3, the edge position is matched with the edge data position of the edge of the fourth parent fill parameter, and the edge data is added.
Next, the pixel at the X coordinate position of the image data at the left end of the fill parameter of the fifth parent is used as the fill point, and since there is no image data to the left of the X coordinate of the fill point, the end is defined by the basic rule C3 as the fifth parent. The contour data is added in conformity with the contour data position at the end of the fill parameter of. In this process, the edges corresponding to the fill parameter of the 5-1st child are detected, and the outline data is added to these edges according to the basic rule A.
【0015】ここで、第1−1子のフィルパラメータと
第2−1子のフィルパラメーを、それぞれ第1−1親の
フィルパラメータと第2−1親のフィルパラメータとし
て、これらの親のフィルパラメータを含む水平ラインに
Y軸上方で隣接する水平ラインに対する画像処理が行わ
れる。先ず、第1−1親のフィルパラメータの左端の画
像データのX座標位置のピクセルをフィルポイントとし
て、フィルポイントのX座標方向には画像データが存在
しないので、基本規則C3によって端部を第1−1親の
フィルパラメータ端部の輪郭データに一致させて輪郭デ
ータが付加される。同様にして、第2−1親のフィルパ
ラメータの左端の画像データのX座標位置のピクセルを
フィルポイントとして、フィルポイントのX座標方向に
は画像データが存在しないので、基本規則C3によって
端部を第2−1親のフィルパラメータ端部の輪郭データ
に一致させて輪郭データが付加される。Here, the fill parameter of the 1-1 th child and the fill parameter of the 2-1 th child are respectively set as the fill parameter of the 1-1 th parent and the fill parameter of the 2-1 th parent, and the fill parameters of these parents are set. Image processing is performed on a horizontal line adjacent to the horizontal line including the parameter on the Y axis. First, since the pixel at the X coordinate position of the image data at the left end of the 1-1st parent fill parameter is the fill point and there is no image data in the X coordinate direction of the fill point, the end part is defined as the first rule by the basic rule C3. -1 Contour data is added to match the contour data at the end of the parent fill parameter. Similarly, since the pixel at the X coordinate position of the image data at the left end of the 2-1st parent fill parameter is the fill point and there is no image data in the X coordinate direction of the fill point, the edge is defined by the basic rule C3. The contour data is added in conformity with the contour data at the end of the 2-1st parent fill parameter.
【0016】最後に、第5−1子のフィルパラメータを
第5−1親のフィルパラメータとして、この親のフィル
パラメータを含む水平ラインにY軸下方で隣接する水平
ラインに対する画像処理が行われる。第5−1親のフィ
ルパラメータの左端の画像データのX座標位置のピクセ
ルをフィルポイントとして、フィルポイントのX座標方
向には画像データが存在しないので、基本規則C3によ
って端部を第5−1親のフィルパラメータ端部の輪郭デ
ータに一致させて輪郭データが付加される。以上に説明
した各輪郭データの作成は、予め選定した色彩で行うこ
とができる。Finally, with the 5-1st child fill parameter as the 5-1st parent fill parameter, image processing is performed on a horizontal line adjacent to the horizontal line including this parent fill parameter below the Y axis. The pixel at the X coordinate position of the image data at the left end of the 5-1st parent fill parameter is used as the fill point, and there is no image data in the X coordinate direction of the fill point. The contour data is added so as to match the contour data at the end of the parent fill parameter. The outline data described above can be created with a color selected in advance.
【0017】上述した画像処理の過程で、元親のフィル
パラメータから、第1親のフィルパラメータ〜第5親の
フィルパラメータ、第1−1親のフィルパラメータ、第
2−1親のフィルパラメータ及び第5−1親のフィルパ
ラメータは、図4のフローチャートのステップS12に
おいて、逐次RAM15のリングバッファ領域にスタッ
クされ、新しくスタックされる親のフィルパラメータ
が、順次ポップアップされて対応する子のフィルパラメ
ータに対する輪郭データの付加処理が行われ、この処理
が完了すると、リングバッファ領域より消去される。従
って、実施例ではリングバッファにステップS13で最
後に第5−1親のフィルパラメータがスタックされ、図
14に示す輪郭が描画された段階でステップS14の判
定はNOとなり画像処理は完了する。In the above-described image processing, from the fill parameter of the original parent, the fill parameter of the first parent to the fill parameter of the fifth parent, the fill parameter of the 1-1 parent, the fill parameter of the 2-1 parent, and The 5-1st parent fill parameter is sequentially stacked in the ring buffer area of the RAM 15 in step S12 of the flowchart of FIG. 4, and the newly stacked parent fill parameter is sequentially popped up to the corresponding child fill parameter. Contour data addition processing is performed, and when this processing is completed, it is erased from the ring buffer area. Therefore, in the embodiment, in step S13, the fill parameter of the 5-1st parent is finally stacked in the ring buffer, and when the contour shown in FIG. 14 is drawn, the determination in step S14 is NO and the image processing is completed.
【0018】以上の説明では、編集画像の画像データの
エッジを検出して、このエッジに輪郭データを付加する
場合を説明したが、このように輪郭が形成された編集画
像は、図3のCPU11のスーパーインポーズ手段の指
令によって、外部から入力される例えばビデオカメラで
撮影した第1の画像に対して、輪郭が付された第2の画
像としてスーパーインポーズさせることができる。ま
た、実施例では一重の輪郭を付加する場合を説明した
が、同様にして例えば異なる色彩で二重輪郭を付加する
ことも可能である。In the above description, the case where the edge of the image data of the edited image is detected and the contour data is added to this edge has been described. However, the edited image having the contour thus formed is the CPU 11 of FIG. By the command of the superimposing means, the superimposing can be performed as a second image with a contour on the first image that is input from the outside and that is captured by, for example, a video camera. Further, although the case where a single contour is added has been described in the embodiment, it is also possible to add a double contour in different colors in the same manner.
【0019】このようにして、実施例によると、例えば
文字と図形からなり比較的構成の複雑な原画像を、まと
めて一つの画像として取り扱い、簡単な処理で図14に
示すように高精度な輪郭の描画が行われる。実施例では
エッジ検出手段は編集画像の画像データの有無の変化を
検出して、エッジを検出してフィルパラメータを作成す
るが、編集画像データは色コードで第1の画像データと
は簡単に識別可能なので、複雑なエッジ検出回路を設け
る必要はない。そして実施例では、輪郭データ付加手段
が、エッジ検出手段が検出した親のフィルパラメータに
対して、予め定めた基本規則に従って、各水平ラインご
とに輪郭データを付加するので、簡単な回路構成で高精
度の輪郭作成をする装置を低製造コストで提供すること
が可能になる。In this way, according to the embodiment, the original images having a relatively complicated structure, which are composed of characters and figures, for example, are treated as a single image and are processed with high accuracy as shown in FIG. The contour is drawn. In the embodiment, the edge detecting means detects a change in the presence or absence of the image data of the edited image and detects the edge to create the fill parameter. The edited image data is easily identified from the first image data by the color code. Since it is possible, it is not necessary to provide a complicated edge detection circuit. In the embodiment, the contour data adding means adds the contour data for each horizontal line to the parent fill parameter detected by the edge detecting means in accordance with a predetermined basic rule. It is possible to provide a device for contouring with high precision at a low manufacturing cost.
【0020】[0020]
【発明の効果】■ 本発明によると、画像内の指定点の周囲に連続する画像
データのエッジを検出し、このエッジに輪郭データを付
加するので、画像に対して簡単な処理で高精度の輪郭形
成を行って、画像に修飾効果を与えることが可能にな
る。また、本発明によると、第1の画像に第2の画像を
スーパーインポーズして第3の画像を作成する画像処理
方法において、上記第2の画像のエッジに輪郭データを
付加し、この輪郭データが付加された第2の画像を上記
第1の画像にスーパーインポーズするので、背景となる
第1の画像に対して第2の画像をコントラストよく且つ
優れた修飾効果を与えてスーパーインポーズすることが
可能になる。さらに本発明によると、エッジ検出手段
が、画像内の指定点の周囲に連続する画像データのエッ
ジを検出し、輪郭データ付加手段が、このエッジ検出手
段が検出したエッジに輪郭データを付加するので、画像
に対して簡単な処理で高精度の輪郭形成を行って、画像
に修飾効果を与える簡単な構造の画像処理装置を低製造
コストで提供することが可能になる。EFFECTS OF THE INVENTION According to the present invention, an edge of continuous image data around a specified point in an image is detected, and contour data is added to this edge. Contouring can be performed to give a modifying effect to the image. Further, according to the present invention, in an image processing method for superimposing a second image on a first image to create a third image, contour data is added to an edge of the second image, and the contour data is added to the edge. Since the second image to which the data is added is superimposed on the first image, the second image can be superimposed on the first image as a background with a good contrast and an excellent modifying effect. It becomes possible to do. Further, according to the present invention, the edge detecting means detects the edge of the image data continuous around the specified point in the image, and the contour data adding means adds the contour data to the edge detected by the edge detecting means. Therefore, it is possible to provide an image processing apparatus having a simple structure that performs high-precision contour formation on an image with a simple process and gives a modifying effect to the image at a low manufacturing cost.
【図1】本発明の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of the present invention.
【図2】本発明の動作を示すフローチャートである。FIG. 2 is a flowchart showing the operation of the present invention.
【図3】本発明の一実施例の構成を示すブロック図であ
る。FIG. 3 is a block diagram showing a configuration of an exemplary embodiment of the present invention.
【図4】本発明の一実施例の動作を示すフローチャート
である。FIG. 4 is a flowchart showing the operation of one embodiment of the present invention.
【図5】本発明の一実施例の画像処理の元親のフィルパ
ラメータ設定の説明図である。FIG. 5 is an explanatory diagram of fill parameter setting of an original parent of image processing according to an embodiment of the present invention.
【図6】本発明の一実施例の画像処理の基本規則Aの説
明図である。FIG. 6 is an explanatory diagram of a basic rule A of image processing according to an embodiment of the present invention.
【図7】本発明の一実施例の画像処理の基本規則Bの説
明図である。FIG. 7 is an explanatory diagram of a basic rule B of image processing according to an embodiment of the present invention.
【図8】本発明の一実施例の画像処理の基本規則C1、
C2、C3の説明図である。FIG. 8 is a basic rule C1 of image processing according to an embodiment of the present invention,
It is explanatory drawing of C2 and C3.
【図9】本発明の一実施例の画像処理における隣接水平
ラインへの移行とフィルパラメータ作成処理の説明図で
ある。FIG. 9 is an explanatory diagram of a shift to an adjacent horizontal line and fill parameter creation processing in image processing according to an embodiment of the present invention.
【図10】本発明の一実施例の隣接水平ラインで完成し
た画像処理の説明図である。FIG. 10 is an explanatory diagram of image processing completed with adjacent horizontal lines according to an embodiment of the present invention.
【図11】本発明の一実施例の画像処理での元親のフィ
ルパラメータへの輪郭付加の説明図である。FIG. 11 is an explanatory diagram of contour addition to a fill parameter of an original parent in image processing according to an embodiment of the present invention.
【図12】本発明の一実施例の画像処理での元親のフィ
ルパラメータに隣接する水平ラインに対する輪郭付加の
説明図である。FIG. 12 is an explanatory diagram of contour addition to a horizontal line adjacent to a fill parameter of an original parent in image processing according to an embodiment of the present invention.
【図13】図13で輪郭が付加された水平ラインに隣接
する水平ラインに対する輪郭付加の説明図である。13 is an explanatory diagram of contour addition to a horizontal line adjacent to a horizontal line to which a contour is added in FIG.
【図14】本発明の一実施例の画像処理で輪郭が付加さ
れた編集画像の説明図である。FIG. 14 is an explanatory diagram of an edited image to which a contour is added by the image processing according to the embodiment of this invention.
1 画像表示装置 2 画像作成手段 3 エッジ検出手段 5 輪郭データ付加手段 11 CPU 12 ビデオRAM 13 ROM 14 入力ディバイス 15 RAM 16 表示装置 DESCRIPTION OF SYMBOLS 1 Image display device 2 Image creation means 3 Edge detection means 5 Contour data addition means 11 CPU 12 Video RAM 13 ROM 14 Input device 15 RAM 16 Display device
───────────────────────────────────────────────────── フロントページの続き (72)発明者 川西 泉 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Izumi Kawanishi 6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Inside Sony Corporation
Claims (3)
ータのエッジを検出し、このエッジに輪郭データを付加
することを特徴とする画像処理方法。1. An image processing method, characterized in that an edge of continuous image data is detected around a specified point in an image, and contour data is added to this edge.
の画像を作成する画像処理方法において、上記第2の画
像のエッジに輪郭データを付加し、この輪郭データが付
加された第2の画像を上記第1の画像に重畳することを
特徴とする画像処理方法。2. The third image is obtained by superimposing the second image on the first image.
In the image processing method for creating the image, the contour image is added to the edge of the second image, and the second image to which the contour data is added is superimposed on the first image. Processing method.
ータのエッジを検出するエッジ検出手段と、このエッジ
検出手段が検出したエッジに輪郭データを付加する輪郭
データ付加手段とを有することを特徴とする画像処理装
置。3. An edge detecting means for detecting an edge of image data continuous around a specified point in an image, and a contour data adding means for adding contour data to the edge detected by the edge detecting means. Characteristic image processing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4143186A JPH05314273A (en) | 1992-05-08 | 1992-05-08 | Method and device for processing image data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4143186A JPH05314273A (en) | 1992-05-08 | 1992-05-08 | Method and device for processing image data |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05314273A true JPH05314273A (en) | 1993-11-26 |
Family
ID=15332880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4143186A Pending JPH05314273A (en) | 1992-05-08 | 1992-05-08 | Method and device for processing image data |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05314273A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9824429B2 (en) | 2012-09-18 | 2017-11-21 | Sony Corporation | Image processing apparatus and method, and program |
-
1992
- 1992-05-08 JP JP4143186A patent/JPH05314273A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9824429B2 (en) | 2012-09-18 | 2017-11-21 | Sony Corporation | Image processing apparatus and method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0820725B2 (en) | How to create image contour data | |
JPH02162475A (en) | Picture contour correcting method | |
EP0362677B1 (en) | Method of and apparatus for producing cutout mask data | |
JPH05314273A (en) | Method and device for processing image data | |
US5185596A (en) | Electronic image modification | |
JP2000331175A (en) | Method and device for generating border line generating data, recording system, computer readable execution medium stored with data and entertainment system for adding outline to object according to data | |
JPS63106872A (en) | Image processor | |
JP2000255019A (en) | Apparatus for detecting superimposed position and instructional direction | |
JP2713677B2 (en) | Color image color change processing method and color image synthesis processing method | |
JP2646000B2 (en) | Image data processing device | |
JP3052728B2 (en) | Image trimming device | |
JPH07200801A (en) | Deformed image producing device | |
JP3145724B2 (en) | Graphic data converter | |
JPH05242178A (en) | Recognition result display and correction system of automatic drawing input device | |
JP2701056B2 (en) | Secondary representation method for three-dimensional objects | |
JP4004217B2 (en) | Image processing device | |
JPS63103380A (en) | Generating device for three-dimensional character | |
JPH09153070A (en) | Drawing editing device | |
JPS60169895A (en) | Generation of extra character | |
JPH0212309A (en) | Cad/cam device | |
JPH10124542A (en) | Fillet editing method for graphic | |
JP2842364B2 (en) | Color graphic drawing system and drawing method | |
JP2716202B2 (en) | Cutting device | |
JPH07254013A (en) | Three-dimensional image correction method | |
JPH0877228A (en) | Graphic processor |