JPH01231091A - Image editing method - Google Patents
Image editing methodInfo
- Publication number
- JPH01231091A JPH01231091A JP63057797A JP5779788A JPH01231091A JP H01231091 A JPH01231091 A JP H01231091A JP 63057797 A JP63057797 A JP 63057797A JP 5779788 A JP5779788 A JP 5779788A JP H01231091 A JPH01231091 A JP H01231091A
- Authority
- JP
- Japan
- Prior art keywords
- image
- area
- images
- pixel
- outside
- 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
Links
Landscapes
- Processing Or Creating Images (AREA)
- Editing Of Facsimile Originals (AREA)
- Controls And Circuits For Display Device (AREA)
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
技術分野
本発明は、画像編集方法に関し、特にスキャナー人力画
像よりNC加工機用工具軌跡を生成するための画像修正
方法に関する。TECHNICAL FIELD The present invention relates to an image editing method, and more particularly to an image correction method for generating a tool trajectory for an NC processing machine from a human-powered scanner image.
従来技術
一般に、用紙に書き込まれた画像に汚点が付着した場合
、この用紙上の画像をスキャナーで入力して表示画面に
表示すると、画像とともに汚点も表示されてしまう。そ
して、この汚点が画像の範囲内に付着した場合には、分
離することは不可能であった。BACKGROUND ART In general, when an image written on a sheet of paper has a blemish on it, when the image on the sheet is inputted with a scanner and displayed on a display screen, the blemish is also displayed along with the image. If this stain adheres within the range of the image, it is impossible to separate it.
従来の技術においては、独立した汚れ画像を1点指定の
みで消去する方法がある(例えば、特公昭62−468
99号公報に記載された「画像部分消去装置」参照)。In the conventional technology, there is a method of erasing an independent dirty image by specifying only one point (for example, Japanese Patent Publication No. 62-468).
(See "Image Partial Erasing Device" described in Publication No. 99).
しかし、この方法では、画面の他の部分に付着した汚点
のみを消去でき、正規画像部分に付着した汚点は消去で
きないという不都合があった。上記公報に記載された消
去方法は、先ず、ライトペンで汚れ部分の領域内の1点
ずつを当接して、その点の座標を計算し、汚れ部分の輪
郭座標のテーブルを作成する。次に、このテーブルに従
って、塗りつぶし発生器により順次汚れ部分を塗りつぶ
していく。実際の動作としては、汚れ部分や不要な表示
部分を、ライトペンでヒツトするだけで、−挙に消去す
ることができる。However, this method has the disadvantage that only the spots attached to other parts of the screen can be erased, but the spots attached to the normal image parts cannot be erased. In the erasing method described in the above-mentioned publication, first, a light pen is brought into contact with each point in the area of the stained area, the coordinates of the points are calculated, and a table of outline coordinates of the stained area is created. Next, according to this table, a fill generator sequentially fills in the dirty areas. In actual operation, dirt or unnecessary display areas can be erased at once by simply hitting them with a light pen.
ただ、塗りつぶすので、正規画像の上に付着した汚れは
消去できない。However, since it fills in the image, it is not possible to erase dirt that is attached to the original image.
一方、画像の編集方法としては、従来より、2点を指定
することにより四角領域を編集したり、1画素ずつ編集
していく方法が、画像部ニジステム等で利用されている
。このような方法を用いた場合、スキャナーから読み込
んだ図形を編集する際に、例えば、滑らかな曲線や、複
雑な自由形状の図形のg集は、四角領域と画素単位で行
う必要があるため、かなりの時間を費してしまう。On the other hand, conventional image editing methods include editing a rectangular area by specifying two points, and editing each pixel pixel by pixel, which have been used in image editing systems and the like. When using such a method, when editing figures read from a scanner, for example, editing a collection of smooth curves or complex free-form figures must be done in square areas and pixel by pixel. It takes a lot of time.
目 的
本発明の目的は、このような従来の課題を解決し、独立
した汚れ画素は勿論のこと、正規画像に結合した汚れ画
素も消去でき、かつ自由形状の図形でも、短時間に編集
することが可能な画像編集方法を提供することにある。Purpose The purpose of the present invention is to solve such conventional problems, to erase not only independent dirty pixels but also dirty pixels combined with a regular image, and to edit even free-form shapes in a short time. The purpose of the present invention is to provide an image editing method that allows the user to edit images.
構 成
上記目的を達成する。ため、本発明の画像編集方法は、
読み込んだ画像を処理した後、CRTディスプレイに表
示する画像入力システムにおいて、追加と削除の一方、
および範囲内と範囲外の一方を指定することにより、C
RT画面上に自由形状の画像を作画し、作画領域の内側
と外側を判定して所定の識別符号を与えた後、作画した
閉領域を含む四角領域を作成し、該四角領域に対して、
上記指定された追加・削除、範囲内・範囲外の条件に従
って、画素を削除し、かつ塗りつぶし処理を行って、自
由形状の画像を編集することに特徴がある。Structure Achieve the above objectives. Therefore, the image editing method of the present invention is
After processing the loaded image, in the image input system that displays it on the CRT display, addition and deletion,
and by specifying either within the range or outside the range, C
After drawing a free-form image on the RT screen, determining the inside and outside of the drawing area and giving a predetermined identification code, a square area including the drawn closed area is created, and for the square area,
The feature is that a free-form image is edited by deleting pixels and performing filling processing according to the specified addition/deletion, within-range/out-of-range conditions.
以下、本発明の構成を、実施例により詳細に説明する。Hereinafter, the configuration of the present invention will be explained in detail using examples.
第2図は、本発明の一実施例を示す画像編集システムの
ブロック図である。FIG. 2 is a block diagram of an image editing system showing an embodiment of the present invention.
本発明の画像編集システムは、自由形状の画像に対して
内外データの追加・削除等の処理を行うデータ処理部1
3と、このデータ処理部13に必要情報を入力するため
のキーボード11と、データ処理部13に画像を入力す
るためのスキャナー等の画像読取部12と、作画したデ
ータを格納するためのメモリ15と、CRTディスプレ
イ16と、このCRTディスプレイ16の表示制御を行
う表示制御部14とから構成される。The image editing system of the present invention includes a data processing unit 1 that performs processing such as adding and deleting internal and external data to a free-form image.
3, a keyboard 11 for inputting necessary information to the data processing section 13, an image reading section 12 such as a scanner for inputting images to the data processing section 13, and a memory 15 for storing drawn data. , a CRT display 16 , and a display control section 14 that controls the display of the CRT display 16 .
第3図は、対象となる1次元座標を示す図である。FIG. 3 is a diagram showing target one-dimensional coordinates.
先ず、CRTディスプレイ画面上で、作画領域の内外の
処理を行うに際して、2つの画面情報を考える。すなわ
ち、第3図(a)に示すような既存の画像データを持つ
画面情報と、第3図(b)に示すように、その画面情報
を編集するための画面情報である。なお、(a)(b)
の2つの画面情報は同一の座標を持つものとする。第3
図において、1次元の座標位置を示す関数A(k)、B
(w)は、ある画素の座標を示しており、k=wである
。また、CRTディスプレイ16には、両方の画面情報
が同時に表示される。First, when processing the inside and outside of the drawing area on the CRT display screen, consider two pieces of screen information. That is, screen information having existing image data as shown in FIG. 3(a), and screen information for editing the screen information as shown in FIG. 3(b). In addition, (a) (b)
It is assumed that the two pieces of screen information have the same coordinates. Third
In the figure, functions A(k) and B indicating one-dimensional coordinate positions
(w) indicates the coordinates of a certain pixel, and k=w. Further, both screen information are displayed on the CRT display 16 at the same time.
第1図は1本発明の一実施例を示す画(&編集方法の処
理フローチャートである。FIG. 1 is a processing flowchart of an image editing method showing an embodiment of the present invention.
先ず、キーボード11より、追加か、削除か、また作画
閉領域の範囲内処理か、範囲外処理かを、指定入力する
(ステップ1,2)。この指定入力情報は、処理が終了
するまで、フラグにより保存される。次に、編集するた
めの画面情報の全てに濃度情報′0″を与える(ステッ
プ3)。次に、直線、円弧および自由曲線により、自由
形状閉領域を定める。ここで、自由曲線とは、円弧相互
間の結合を円滑にした曲線である。領域を定める場合、
作画すると同時に、その線上に濃度情報′1′を入れて
いき、閉領域を完成させる(ステップ4)。次に、処理
を実行するか、あるいは再度領域を作成し直すかを判断
し、キーボード11から入力する(ステップ5)。処理
を実行しない場合には、作画した線を消し、濃度情報を
0′に戻して再度処理領域を定める(ステップ6)。ま
た、処理を実行する場合には1作画した線上に濃度情報
′1′がある場合には、その作画領域内の濃度情報の全
てに1′を与える(ステップ7)。次に、ステップ1で
指定した条件を判定し、もし追加指定であれば(ステッ
プ8)、範囲内か、あるいは範囲外かを判定しくステッ
プ9)、また削除指定であれば(ステップ8)、範囲内
か、範囲外かを判定する(ステップ10)。範囲内、範
囲外のいずれの場合でも、作画した閉領域の水平方向く
X軸方向)、垂直方向(y軸方向)の最大・最小を求め
、閉領域を含む四角領域を考える(ステップ11)。こ
れは1編集処理時間を短縮するためである。次に、ステ
ップ8゜9.10で判定した各々の条件に従って、処理
を実行する(ステップ12)。そして、ステップ3に戻
り、次の編集画面濃度情報に0′を与える。First, input is made using the keyboard 11 to designate whether to add or delete, and whether to process within or outside the drawing closed area (steps 1 and 2). This specified input information is saved as a flag until the processing is completed. Next, give density information '0'' to all screen information for editing (step 3).Next, define a free-form closed area using straight lines, circular arcs, and free curves.Here, free curves are: It is a curve with smooth connections between arcs.When defining an area,
At the same time as drawing, density information '1' is entered on the line to complete the closed area (step 4). Next, it is determined whether to execute the process or to create the area again, and input it from the keyboard 11 (step 5). If the process is not to be executed, the drawn line is erased, the density information is returned to 0', and the process area is defined again (step 6). Further, when executing the process, if there is density information '1' on one drawn line, 1' is given to all the density information within that drawing area (step 7). Next, the conditions specified in step 1 are judged, and if it is an addition specification (step 8), it is judged whether it is within the range or outside the range (step 9), and if it is a deletion specification (step 8), It is determined whether it is within the range or outside the range (step 10). Regardless of whether it is within the range or outside the range, find the maximum and minimum in the horizontal direction (X-axis direction) and vertical direction (y-axis direction) of the drawn closed area, and consider a rectangular area that includes the closed area (Step 11) . This is to shorten the time required for one editing process. Next, processing is executed according to each of the conditions determined in steps 8, 9 and 10 (step 12). Then, the process returns to step 3, and 0' is given to the next editing screen density information.
次に、作画領域内の濃度情報に1′を与える方法(第1
図のステップ7の処理)について、詳述する。Next, a method of giving 1' to the density information in the drawing area (first
The process of step 7 in the figure will be described in detail.
第4図は、本発明における閉領域の内外部識別と塗りつ
ぶし処理のフローチャートであり、第5図は、第4図の
処理のうち、濃度情報′1′を与える処理の説明図であ
る。FIG. 4 is a flowchart of internal/external identification of a closed area and filling process according to the present invention, and FIG. 5 is an explanatory diagram of the process of providing density information '1' among the processes of FIG. 4.
第5図(a)は、新しく作画したデータと既存のデータ
をCRTディスプレイ画面に表示した図であり、第5図
(b)は、(a)の画面中、新しく作画した閉領域の画
像データを拡大した模型図であり、第5図(c)は画素
の進行方向を示す図であり、第5図(d)は最終処理の
結果を示す図である。Fig. 5(a) is a diagram showing newly drawn data and existing data displayed on a CRT display screen, and Fig. 5(b) shows image data of a newly drawn closed area in the screen of (a). FIG. 5(c) is a diagram showing the direction of movement of pixels, and FIG. 5(d) is a diagram showing the result of final processing.
第4図および第5図において、先ず、新しく作画した閉
領域の濃度情報を持つ画像データに対し、水平方向に走
査して輪郭の開始画素Sを検出する(第5図(b)のS
参照、ステップ40)。この場合。4 and 5, first, image data having density information of a newly drawn closed area is scanned in the horizontal direction to detect the start pixel S of the outline (S in FIG. 5(b)).
See step 40). in this case.
先のステップ4で閉領域の輪郭上の濃度情報′1′が与
えられている(ステップ41)。続いて、閉曲線である
作画曲線の画素列を追跡して、着目画素の次の画素の進
行方向を第5図(c)に示す8方向の番号により、デー
タテーブルにセットする(ステップ42)。第5図(b
)の画像データに対しては、O−0,2,2,2,O,
O,0,2,2゜2.0〜0がセットされる。この時、
追跡した画素には、濃度情報′2′を与える(ステップ
43)。Density information '1' on the outline of the closed region is given in the previous step 4 (step 41). Subsequently, the pixel string of the drawn curve, which is a closed curve, is traced, and the direction of movement of the pixel next to the pixel of interest is set in the data table using the eight direction numbers shown in FIG. 5(c) (step 42). Figure 5 (b
), O-0, 2, 2, 2, O,
O, 0, 2, 2° 2.0~0 is set. At this time,
Density information '2' is given to the tracked pixels (step 43).
セットされたデータより、輪郭形状の鋭角となる頂点画
素や重複する画素を検出しくステップ44)、その画素
に濃度情報′A′を与える(ステップ45)。From the set data, vertex pixels and overlapping pixels that form acute angles of the contour shape are detected (step 44), and density information 'A' is given to the pixels (step 45).
全ての作画閉領域について、上述の処理が行われた後、
再びこの画像データを水平方向に走査し、画素の濃度情
報が2′の交点を求める。交点が偶数の時には、それに
続く画素を領域の外側に、交点が奇数の時には、それに
続く画素を領域の内側に、それぞれ判定しくステップ4
6)、全画素について同じような判定を行い、領域の内
側の画素には濃度情報III を与える(ステップ47
)。例えば、第5図(b)の画像に対しては、最上のラ
インとの交点は1個であるため、領域の内側であり、次
のラインとの交点は2個であるため、それらの交点の間
は内側、それ以外は外側であり、3番目および4番目の
ラインとの交点も2個であるため、それらの間は内側、
最低のラインとの交点は1個であるため、領域の内側で
あると判定する。After the above process is performed for all drawing closed areas,
This image data is scanned in the horizontal direction again, and the intersection point where the density information of the pixel is 2' is determined. If the intersection point is an even number, the pixel following it is placed outside the area, and if the intersection point is an odd number, the pixel following it is placed inside the area.Step 4
6) The same judgment is made for all pixels, and density information III is given to pixels inside the area (step 47).
). For example, for the image in Figure 5(b), there is one point of intersection with the top line, which is inside the area, and there are two points of intersection with the next line, so those intersections The area between them is inside, and the others are outside, and there are also two intersections with the third and fourth lines, so the area between them is inside,
Since there is only one intersection with the lowest line, it is determined that it is inside the area.
次に、濃度情報がfl 、JAI 、tI+の各画素に
、領域を構成する画素として、最終的に1農度情報11
′を与える。これによって、作画した閉領域の内部と外
部が濃度情報′○T、L11 により識別される。以上
の処理が、第1図のステップ7の処理の詳細である。Next, each pixel whose density information is fl, JAI, tI+ is finally assigned one agricultural degree information 11 as a pixel that constitutes an area.
'give. As a result, the inside and outside of the drawn closed area can be identified by the density information '○T, L11. The above process is the details of the process of step 7 in FIG.
次に、追加・削除、範囲内・外の指定に対する四角領域
内の処理(第1図のステップ12の処理)について、詳
述する。Next, the processing within the rectangular area for addition/deletion and specification of inside/outside range (processing in step 12 in FIG. 1) will be described in detail.
第6図は、本発明における四角領域作成の説明図であり
、第7図〜第10図は第6図で作成された四角領域に対
する処理の説明図である。FIG. 6 is an explanatory diagram of creating a rectangular area in the present invention, and FIGS. 7 to 10 are explanatory diagrams of processing for the rectangular area created in FIG. 6.
第6図において、CRT表示画面R上に閉領域Qを作画
した場合、その閉領域を含む四角領域Pを破線で示すよ
うに作成する。この処理が、第1図のステップ11の処
理である。In FIG. 6, when a closed area Q is drawn on the CRT display screen R, a rectangular area P including the closed area is created as shown by a broken line. This process is the process of step 11 in FIG.
次に、追加・削除、範囲内指定・範囲外指定の組み合わ
せによって、4つの場合がある。これらについて、第7
図〜第10図により詳述する。Next, there are four cases depending on the combination of addition/deletion, within-range designation, and out-of-range designation. Regarding these, the seventh
This will be explained in detail with reference to FIGS.
第7図は、追加・範囲内指定の場合の処理の説明図であ
る。FIG. 7 is an explanatory diagram of processing in the case of addition/range specification.
追加・範囲内指定の場合、ステップ11で定めた四角領
域内に対して、次のような判定を行う(第1図のステッ
プ12)。In the case of addition/within-range designation, the following determination is made within the rectangular area defined in step 11 (step 12 in FIG. 1).
(、)作画画像の濃度情報が′1′の部分は、既存画面
情報の同一座標に濃度情報′1′を与える。(,) For a portion of the drawn image where the density information is '1', density information '1' is given to the same coordinates of the existing screen information.
(b)作画画像の濃度情報がI O+の部分で、既存画
面情報の同一座標の濃度情報は変わらない。(b) In the portion where the density information of the drawn image is IO+, the density information of the same coordinates in the existing screen information does not change.
すなわち、第7図の斜線の画像が既存データであり、作
画した追加の閉領域がその右側の白い画像であり、追加
画像を既存画像の範囲内に含めるのであるから、既存の
画像のうち′1′の部分と′0″の部分を変えずに、追
加画像を範囲内に含めると、データ編集後の画面には、
右側のような斜線の併合画像が表示される。In other words, the diagonally shaded image in Figure 7 is the existing data, and the additional closed area drawn is the white image on the right side of it, and since the additional image is included within the range of the existing image, ' If you include additional images within the range without changing the 1' and '0'' parts, the screen after data editing will show:
A merged image with diagonal lines like the one on the right will be displayed.
第8図は、追加・範囲外指定の場合の処理の説明図であ
る。FIG. 8 is an explanatory diagram of processing in the case of addition/outside-range designation.
追加・範囲外指定の場合、次のような判定を行う。In the case of addition/outside-range designation, the following judgment is made.
(a)作画画像の濃度情報がt O+の部分は、既存画
面情報の同一座標に濃度情報′1′を与える。(a) For the portion where the density information of the drawn image is t O+, density information '1' is given to the same coordinates of the existing screen information.
(b)作画画像の濃度情報が′1′の部分で、既存画面
情報の同一座標の濃度情報は変わらない。(b) In the portion where the density information of the drawn image is '1', the density information of the same coordinates in the existing screen information does not change.
(C)四角領域外の部分は、当然、濃度情報′0′であ
るから、既存画面情報の同一座標に濃度情報′1′ を
与える。(C) Since the portion outside the rectangular area naturally has density information '0', density information '1' is given to the same coordinates of the existing screen information.
すなわち、作成画像の範囲外に追加することは、既存の
画像と作成画像の範囲外の部分のみを表示することにな
る。従って、上記(a)の処理により、作成画像情報は
消去され、上記(b)の処理により、作成画像のうち既
存画像と重複する部分のみ残し、上記(c)の処理によ
り、作成画像以外の部分を表示する。これによって、デ
ータ編集後の画面は、第8図の右側の表示となる。That is, adding an image outside the range of the created image results in displaying only the existing image and the part outside the range of the created image. Therefore, by the process (a) above, the created image information is deleted, by the process (b) above, only the parts of the created image that overlap with the existing image are left, and by the process (c) above, the created image information is deleted. Show part. As a result, the screen after data editing becomes the display on the right side of FIG. 8.
第9図は、削除・範囲内指定の場合の処理の説明図であ
る。FIG. 9 is an explanatory diagram of processing in the case of deletion/range specification.
削除・範囲内指定の場合には、次のような判定を行う。In the case of deletion/range specification, the following judgment is made.
(a)作画画像の濃度情報が′1′の部分は、既存画面
情報の同一座標に濃度情報′0′を与える。(a) For a portion of the drawn image where the density information is '1', density information '0' is given to the same coordinates of the existing screen information.
(b)作画画像の濃度情報がt OIの部分で、既存画
面情報の同一座標の濃度情報は変わらない。。(b) In the part where the density information of the drawn image is t OI, the density information of the same coordinates in the existing screen information does not change. .
すなわち、削除・範囲内指定は、作画画像の範囲内のみ
を削除することであるから、上記(a)の処理により、
作画画像の内部を消去し、上記(b)の処理により、作
画画像以外の濃度情報が変更されないようにする。これ
によって、データ編集後の画面は、第9図の右側の表示
となる。In other words, the deletion/range specification means to delete only the area within the drawn image, so by the process (a) above,
The inside of the drawn image is erased, and density information other than the drawn image is prevented from being changed by the process (b) above. As a result, the screen after data editing becomes the display on the right side of FIG. 9.
第10図は、削除・範囲外指定の場合の処理の説明図で
ある。FIG. 10 is an explanatory diagram of processing in the case of deletion/outside-range designation.
削除・範囲外指定の場合には、次のような判定を行う。In the case of deletion/outside-range designation, the following judgment is made.
(a)作画画像の濃度情報が′0′の部分は、既存画面
情報の同一座標に1度情報101 を与える。(a) For a portion of the drawn image where the density information is '0', information 101 is given once to the same coordinates of the existing screen information.
(b)作画画像の濃度情報が′1′の部分で、既存画面
情報の同一座標の濃度情報は変わらない。(b) In the portion where the density information of the drawn image is '1', the density information of the same coordinates in the existing screen information does not change.
(c)四角領域外の部分は、当然、濃度情報′0″であ
るから、既存画面情報の同一座標に濃度情報′0′を与
える。(c) Since the portion outside the rectangular area naturally has density information '0', density information '0' is given to the same coordinates of the existing screen information.
すなわち、削除・範囲外指定は1作画画像の範囲外は全
て削除することであるから、上記(a)の処理により1
作画画像以外の部分を消去し、上記(b)の処理により
、既存画像と作画画像とが重複した部分を残し、上記(
C)の処理により、作画画像以外の部分で、既存画像以
外の部分も消去する。In other words, deletion/outside-range designation means to delete everything outside the range of one drawn image, so by the process (a) above, one
The parts other than the drawn image are erased, and by the processing in (b) above, the parts where the existing image and the drawn image overlap are left, and the above (
Through the process C), portions other than the drawn image and portions other than the existing image are also erased.
これによって、データ編集後の表示は、第10図の右側
の画面となる。As a result, the display after data editing becomes the screen on the right side of FIG. 10.
このように、処理結果のCRT上の画像は、第5図(d
)および第7図〜第10図の右側の図形のように、塗り
つぶし画として表示される。In this way, the image on the CRT resulting from the processing is as shown in Figure 5 (d
) and the figures on the right side of FIGS. 7 to 10 are displayed as filled-in images.
従って、本実施例においては、独立した汚れ画素を消去
することは勿論のこと、正規画像部分に接触した汚れ画
素も消去することができる。また、同じようにして、ど
のような画像でも作画することができ、自由形状データ
のgi集を行うことが可能である。Therefore, in this embodiment, not only independent dirty pixels can be erased, but also dirty pixels that come into contact with a normal image part can be erased. Furthermore, in the same way, any image can be created and a GI collection of free-form data can be performed.
本発明は、特に数値制御装置が加工する画像を、ホスト
制御計算機で作画する場合に、極めて有効である。The present invention is extremely effective, particularly when an image to be processed by a numerical control device is drawn by a host control computer.
効 果
以上説明したように、本発明によれば、スキャナーから
読み込んだ画像を編集する場合に、(イ)ML 雌な画
像でも、その画像に合わせた領域を指定することができ
、(ロ)正規画像部についた汚れを簡単に削除して、編
集することができる。従って、より正確な読み取り画像
情報を次の工程に伝達でき、かつ画像編集処理に費す時
間を大幅に短縮して、作業全体の能率を向上させること
ができる。Effects As explained above, according to the present invention, when editing an image read from a scanner, (a) it is possible to specify an area that matches the image even if it is an ML female image, and (b) You can easily remove dirt on the regular image area and edit it. Therefore, more accurate read image information can be transmitted to the next process, and the time spent on image editing processing can be significantly shortened, thereby improving the efficiency of the entire work.
第1図は本発明の一実施例を示す画像編集方法の処理フ
ローチャート、第2図は本発明の一実施例を示す画像編
集システムのブロック図、第3図は既存データ画面と編
集画面の関係図、第4図は第1図の作画閉領域の内部外
部の識別方法を示す処理フローチャート、第5図は作画
データと既存データの表示画面の図、第6図は第1図に
おける四角領域の作成方法を示す図、第7図、第8図、
第9図および第10図は、それぞれ本発明における各条
件に従った処理の説明図である。
11:キーボード、12:画像読取部、13:データ処
理部、14:表示制御部、15:メモリ、16:CRT
ディスプレイ。
特許出願人 株式会社 リ コ −第 2
図
]7
第 3 図
0既存デ一タ画面情報 0編集画面情報第
生 図
第 5 図
(a)
1″
(c) (d)第
6 図
7g7 図
CRT画面R
第 8 図
CRT画面R
第 9 図
既存データ
CRT画面R
第 10 図
CRT画面RFig. 1 is a processing flowchart of an image editing method showing an embodiment of the present invention, Fig. 2 is a block diagram of an image editing system showing an embodiment of the invention, and Fig. 3 is the relationship between the existing data screen and the editing screen. Figure 4 is a processing flowchart showing a method for identifying the inside and outside of the drawing closed area in Figure 1, Figure 5 is a diagram of the display screen of drawing data and existing data, and Figure 6 is a process flowchart showing a method for identifying the inside and outside of the drawing closed area in Figure 1. Diagrams showing the creation method, Figures 7 and 8,
FIG. 9 and FIG. 10 are explanatory diagrams of processing according to each condition in the present invention, respectively. 11: Keyboard, 12: Image reading section, 13: Data processing section, 14: Display control section, 15: Memory, 16: CRT
display. Patent applicant Ricoh Co., Ltd. - No. 2
Figure] 7 3 Figure 0 Existing data screen information 0 Edit screen information No.
Figure 5 (a) 1″ (c) (d)
6 Figure 7g7 Figure CRT screen R Figure 8 CRT screen R Figure 9 Existing data CRT screen R Figure 10 CRT screen R
Claims (2)
イに表示する画像入力システムにおいて、追加と削除の
一方、および範囲内と範囲外の一方を指定することによ
り、CRT画面上に自由形状の画像を作画し、作画領域
の内側と外側を判定して所定の識別符号を与えた後、作
画した閉領域を含む四角領域を作成し、該四角領域に対
して、上記指定された追加・削除、範囲内・範囲外の条
件に従って、画素を削除し、かつ塗りつぶし処理を行っ
て、自由形状の画像を編集することを特徴とする画像編
集方法。(1) After processing the loaded image, use the image input system to display the image on the CRT display. By specifying either addition or deletion, or within the range or outside the range, a free-form image can be displayed on the CRT screen. After drawing, determining the inside and outside of the drawing area and giving a predetermined identification code, a rectangular area including the drawn closed area is created, and the above specified addition/deletion and range are applied to the rectangular area. An image editing method characterized by editing a free-form image by deleting pixels and performing filling processing according to inside/outside conditions.
れた画像を基に、数値制御装置に供給するNCプログラ
ムを作成するNCデータ作成システムにおいて、作画し
た閉領域を水平方向に走査して輪郭形状の開始画素を検
出し、該閉領域となる作画曲線の画素を追跡し、次画素
の進行方向をテーブルにセットし、セットされたデータ
から輪郭形状の鋭角となる頂点画素または重複画素を検
出し、次に上記作画曲線を水平方向に走査し、画素の輪
郭線との交点を求めて、該交点が偶数番目の時には該閉
領域の外側、奇数番目の時には該閉領域の内側と判定す
ることを特徴とする特許請求の範囲第1項記載の画像編
集方法。(2) In an NC data creation system that edits an image read from a scanner and creates an NC program to be supplied to a numerical control device based on the edited image, the drawn closed area is scanned in the horizontal direction to form an outline. Detects the starting pixel of the curve, traces the pixels of the drawing curve that will become the closed area, sets the advancing direction of the next pixel in the table, and detects the apex pixel or overlapping pixel that becomes an acute angle of the contour shape from the set data. Next, the drawing curve is scanned in the horizontal direction to find the intersection point with the pixel outline, and when the intersection point is an even number, it is determined that it is outside the closed region, and when it is an odd number, it is determined that it is inside the closed region. An image editing method according to claim 1, characterized in that:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63057797A JP2773127B2 (en) | 1988-03-11 | 1988-03-11 | Image editing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63057797A JP2773127B2 (en) | 1988-03-11 | 1988-03-11 | Image editing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01231091A true JPH01231091A (en) | 1989-09-14 |
| JP2773127B2 JP2773127B2 (en) | 1998-07-09 |
Family
ID=13065888
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63057797A Expired - Lifetime JP2773127B2 (en) | 1988-03-11 | 1988-03-11 | Image editing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2773127B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104412187A (en) * | 2012-06-27 | 2015-03-11 | 三菱电机株式会社 | Evaluation method and laser cutting machine |
| JP2015520424A (en) * | 2012-06-27 | 2015-07-16 | 三菱電機株式会社 | How to correct the cutter head path of laser cutting machine |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6324366A (en) * | 1986-07-16 | 1988-02-01 | Fujitsu Ltd | Pattern preparing system |
| JPS6326773A (en) * | 1986-07-19 | 1988-02-04 | Sanyo Electric Co Ltd | Display processing method for graphic information |
| JPS6337477A (en) * | 1986-08-01 | 1988-02-18 | Fujitsu Ltd | Shift and copy processing system for data in optional closed area |
-
1988
- 1988-03-11 JP JP63057797A patent/JP2773127B2/en not_active Expired - Lifetime
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6324366A (en) * | 1986-07-16 | 1988-02-01 | Fujitsu Ltd | Pattern preparing system |
| JPS6326773A (en) * | 1986-07-19 | 1988-02-04 | Sanyo Electric Co Ltd | Display processing method for graphic information |
| JPS6337477A (en) * | 1986-08-01 | 1988-02-18 | Fujitsu Ltd | Shift and copy processing system for data in optional closed area |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104412187A (en) * | 2012-06-27 | 2015-03-11 | 三菱电机株式会社 | Evaluation method and laser cutting machine |
| JP2015520424A (en) * | 2012-06-27 | 2015-07-16 | 三菱電機株式会社 | How to correct the cutter head path of laser cutting machine |
| JP2015522855A (en) * | 2012-06-27 | 2015-08-06 | 三菱電機株式会社 | Evaluation method and laser cutting machine |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2773127B2 (en) | 1998-07-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0640943B1 (en) | Shape modeling apparatus and method | |
| JP3237898B2 (en) | Image figure editing apparatus and processing method of image figure editing apparatus | |
| EP0535894A2 (en) | Apparatus and method for transforming a graphic pattern | |
| JP2652069B2 (en) | Graphic processing system | |
| US6806878B2 (en) | Graphic editing apparatus for adding or deleting curve to/from graphics by interactive processing | |
| JP2906202B2 (en) | Text and figure input method | |
| JPH01231091A (en) | Image editing method | |
| JP2625612B2 (en) | Image processing method and image processing apparatus | |
| JP2617292B2 (en) | Program creation device for numerically controlled machine tools | |
| JP2001092865A (en) | CAD drawing creation method and apparatus, dimension editing method and apparatus, and storage medium | |
| JP2735197B2 (en) | Graphic input device | |
| JP3305395B2 (en) | Figure division device | |
| JP2002056403A (en) | Drawing instruction apparatus, drawing instruction method, and computer-readable storage medium | |
| JPH08202856A (en) | Image processing method | |
| JP3578917B2 (en) | Image processing apparatus, image processing system, image processing method, and computer-readable recording medium | |
| JP2001143095A (en) | Curve input method | |
| JPS62229365A (en) | Document preparing and editing device | |
| JPH08171646A (en) | Graphic creation device | |
| JP3470974B2 (en) | Figure creation method and apparatus | |
| JPH05233879A (en) | Image data isolated pixel processing method | |
| JPH0816809A (en) | Drawing system | |
| JPH07105210A (en) | Erasure range limiting device | |
| JPH08147095A (en) | Target selection apparatus and method | |
| JPS63276662A (en) | Document editing system | |
| JPS61251975A (en) | Shape pickup method |