JPH0817439B2 - Area designation method - Google Patents

Area designation method

Info

Publication number
JPH0817439B2
JPH0817439B2 JP62047953A JP4795387A JPH0817439B2 JP H0817439 B2 JPH0817439 B2 JP H0817439B2 JP 62047953 A JP62047953 A JP 62047953A JP 4795387 A JP4795387 A JP 4795387A JP H0817439 B2 JPH0817439 B2 JP H0817439B2
Authority
JP
Japan
Prior art keywords
input
coordinate
point
area
coordinates
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.)
Expired - Fee Related
Application number
JP62047953A
Other languages
Japanese (ja)
Other versions
JPS63214069A (en
Inventor
昌敬 山田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP62047953A priority Critical patent/JPH0817439B2/en
Priority to US07/162,943 priority patent/US4965678A/en
Publication of JPS63214069A publication Critical patent/JPS63214069A/en
Publication of JPH0817439B2 publication Critical patent/JPH0817439B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は領域指定の為の2次元座標入力装置を有する
画像処理装置の領域指定方法に関するものである。
The present invention relates to an area specifying method for an image processing apparatus having a two-dimensional coordinate input device for specifying an area.

〔従来の技術〕[Conventional technology]

従来、複写機等の画像処理装置において原稿上の任意
の領域のみを抜きとるトリミング機能や、消去するマス
キング機能等の実現の為に原稿上の領域指定手段として
デイジタイザーを用いて、第2−1図に示すように矩形
領域の対角2点(P1,P2)を指示する方式がある(以下
この入力方式を対角方式と呼ぶ)。
Conventionally, in an image processing apparatus such as a copying machine, a digitizer is used as an area designating means on an original to realize a trimming function for extracting only an arbitrary area on the original and a masking function for erasing. As shown in FIG. 1 , there is a method of instructing two diagonal points (P 1 , P 2 ) of a rectangular area (hereinafter, this input method is called a diagonal method).

〔発明が解決しようとしている問題点〕[Problems that the invention is trying to solve]

しかしながらこの対角方式では矩形の組み合わさった
領域を指定する時、例えば第2−2図に示すように領域
を矩形に分けて2組の対角2点(P3,P4)及び(P5,P6
によって指定しなくてはならない。このような場合、ま
ず複雑な形状の領域をオペレーターが頭の中で分割する
作業が困難であること、さらに分割した各領域を理想的
にすき間なく入力することが困難であることから大変操
作性が悪い。このような欠点を除去する為に、例えば第
2−3図のように領域を囲むように(P7,P8,P9,P10,
P11,P12,P7)の順に入力する方式が考えられる。この方
式によればさらに複雑な形状の領域の指定も簡単である
(以下この方式をコーナー方式と呼ぶ)。しかしながら
このコーナー方式では逆に、例えば第2−4図のような
単純な矩形領域の指定時にも(P13,P14,P15,P16,P13
と5点を入力する必要が生じ、やはり操作性が良くな
い。
However, in this diagonal method, when designating an area in which rectangles are combined, for example, as shown in FIG. 2-2, the area is divided into rectangles and two pairs of diagonal two points (P 3 , P 4 ) and (P 3 5 , P 6 )
Must be specified by. In such a case, it is difficult for the operator to divide a complicatedly shaped area in his head first, and it is also difficult to ideally enter each divided area without any gaps, so operability is very high. Is bad. In order to eliminate such a defect, for example, as shown in FIG. 2-3, surrounding the area (P 7 , P 8 , P 9 , P 10 ,
A method of inputting in the order of P 11 , P 12 , P 7 ) is possible. According to this method, it is easy to specify a region having a more complicated shape (hereinafter, this method is called a corner method). However, in the corner method, conversely, when a simple rectangular area as shown in FIG. 2-4 is designated (P 13 , P 14 , P 15 , P 16 , P 13 )
It becomes necessary to input 5 points and the operability is not good.

〔目 的〕〔Purpose〕

本発明は上記の点に鑑みなされたもので、座標入力の
為の2つの入力モードのどちらを使用するかを予め設定
することなく、オペレータによる座標の入力状況から自
動的に入力モードを判定し、操作性を向上させた領域指
定方法を提供することを目的とするものである。
The present invention has been made in view of the above point, and automatically determines the input mode from the coordinate input state by the operator without setting in advance which of the two input modes for coordinate input is used. It is an object of the present invention to provide an area designation method with improved operability.

即ち、本発明は、領域指定の為の2次元座標入力装置
を有する画像処理装置の領域指定方法において、所望の
矩形領域の対角2点の座標を入力する第1の入力モード
と、矩形領域の組み合わせからなる所望の領域の各コー
ナーの点の座標を入力する第2の入力モードとの何れか
一方で所望領域を指定可能であり、座標入力の完了を表
わす指示の入力があると、その時点までの座標入力点数
が2点であれば上記第1の入力モードに基づいて座標が
入力されたと判定して、入力された座標に基づいて領域
を決定し、座標入力点数が3点以上であれば上記第2の
入力モードに基づいて座標が入力されたと判定して、入
力された座標に基づいて領域を決定する領域指定方法の
提供にある。
That is, according to the present invention, in a region specifying method of an image processing apparatus having a two-dimensional coordinate input device for specifying a region, a first input mode for inputting coordinates of two diagonal points of a desired rectangular region and a rectangular region. The desired area can be designated in any one of the second input modes for inputting the coordinates of the points at the corners of the desired area consisting of a combination of, and when an instruction indicating completion of coordinate input is input, If the number of coordinate input points up to the time point is two, it is determined that the coordinate is input based on the first input mode, the area is determined based on the input coordinate, and the number of coordinate input points is three or more. If there is, it is to provide an area designating method for determining that the coordinates are input based on the second input mode and determining the area based on the input coordinates.

また、本発明は、領域指定の為の2次元座標入力装置
を有する画像処理装置の領域指定方法において、所望の
矩形領域の対角2点の座標を入力する第1の入力モード
と、矩形領域の組み合わせからなる所望の領域の各コー
ナーの点の座標を入力する第2の入力モードとの何れか
一方で所望領域を指定可能であり、2番目の入力点のX
座標値と最初の入力点のX座標の差と上記2番目の入力
点のY座標値と最初の入力点のY座標の差が何れも所定
値以上であれば、上記2番目の入力点の座標が上記第1
の入力モードに基づいて入力されたと判定して、入力さ
れた座標に基づいて領域を決定し、上記2番目の入力点
のX座標値と最初の入力点のX座標の差と上記2番目の
入力点のY座標値と最初の入力点のX座標の差の何れか
一方のみが所定値以上であれば、上記2番目の入力点の
座標が上記第2の入力モードに基づいて入力されたと判
定して新たな点の座標の入力を待機し、新たな点の座標
が入力されると、その最新の入力点のX座標値とその1
つ前の入力点のX座標の差と上記最新の入力点のY座標
値とその1つ前の入力点のY座標の差の何れか一方のみ
が上記所定値以上であれば、上記最新の入力点の座標が
上記第2の入力モードに基づく有効な入力であると判定
する領域指定方法の提供にある。
According to the present invention, in a region specifying method of an image processing apparatus having a two-dimensional coordinate input device for specifying a region, a first input mode for inputting coordinates of two diagonal points of a desired rectangular region and a rectangular region. The desired area can be designated in any one of the second input mode in which the coordinates of the points at the corners of the desired area consisting of the combination of
If the difference between the coordinate value and the X coordinate of the first input point and the difference between the Y coordinate value of the second input point and the Y coordinate of the first input point are both above a predetermined value, then the second input point The coordinates are the above first
The input mode is determined based on the input mode, the area is determined based on the input coordinates, and the difference between the X coordinate value of the second input point and the X coordinate of the first input point and the second If only one of the difference between the Y coordinate value of the input point and the X coordinate of the first input point is greater than or equal to a predetermined value, it is determined that the coordinate of the second input point is input based on the second input mode. When the determination is made, the input of the coordinates of the new point is waited, and when the coordinates of the new point are input, the X coordinate value of the latest input point and its 1
If only one of the difference between the X coordinate of the previous input point, the Y coordinate value of the latest input point and the Y coordinate of the previous input point is greater than or equal to the predetermined value, the latest It is to provide an area designating method for determining that the coordinates of an input point are valid inputs based on the second input mode.

〔実施例〕〔Example〕

以下、図面を参照して本発明の一実施例を詳細に説明
する。
An embodiment of the present invention will be described in detail below with reference to the drawings.

第1−2図は本発明を適用した複写装置の外観を示す
図である。原稿読取部101は、不図示の原稿台ガラス,
照明ランプとミラーにより構成される2:1光学系,レン
ズ,CCD等を有し、前記光学系が副走査しながら原稿像を
光電変換し電気信号として出力する。プリント部102は
いわゆるレーザープリンターであり、原稿読取部101か
らの電気信号を受け変調されたレーザビームにより感光
体上を走査して周知の電子写真方式にてプリントする。
読取部101は操作部103,原稿押えを兼ねた座標入力装置1
04及び座標入力ペン105を有する。第1−1図に座標入
力装置104を上側から見た図を示す。106は有効座標入力
面、107は原稿114を入力面に載置する為の突き当て基準
点、108は領域指定を行う旨を入力する領域指定キー、1
09は一連の入力座標をキヤンセルするクリアキー、110
は領域指定の入力を終了するOKキー、111は指定領域の
みを出力するトリミングモード選択キー、112は指定領
域のみを消去するマスキングモード選択キー、113は指
定領域内部をその外部と異なる処理で出力する画像分離
モード選択キーである。これらの操作法の例を説明す
る。オペレータは図示の如く、原稿114を基準点107に突
き当て、上向きに載置し、キー108を押して領域指定動
作に入ることを宣言した後、入力ペン105によって、例
えば点線で囲まれる領域の黒丸で示した各コーナーの座
標を右回り、もしくは左回りで順次入力後OKキー110を
押して、入力の完了を通知した後、指定領域に対して施
すべき処理内容を111,112,113の各キーにより指示す
る。
1-2 is a diagram showing the external appearance of a copying apparatus to which the present invention is applied. The document reading unit 101 includes a document table glass (not shown),
It has a 2: 1 optical system composed of an illumination lamp and a mirror, a lens, a CCD, and the like, and the optical system photoelectrically converts the original image while sub-scanning and outputs it as an electric signal. The printing unit 102 is a so-called laser printer, which scans the photosensitive member with a modulated laser beam that receives an electric signal from the document reading unit 101 and prints by a known electrophotographic method.
The reading unit 101 is an operation unit 103, and a coordinate input device 1 that also functions as a document holder.
04 and coordinate input pen 105. FIG. 1-1 shows a view of the coordinate input device 104 as viewed from above. 106 is an effective coordinate input surface, 107 is an abutting reference point for placing a document 114 on the input surface, 108 is an area designation key for inputting that area designation is to be performed, 1
09 is a clear key to cancel a series of input coordinates, 110
Is an OK key that finishes inputting the specified area, 111 is a trimming mode selection key that outputs only the specified area, 112 is a masking mode selection key that erases only the specified area, and 113 is the output inside the specified area that is different from the outside Image separation mode selection key. Examples of these operating methods will be described. As shown in the figure, the operator abuts the original 114 on the reference point 107, places it upward, and presses the key 108 to declare that the area specifying operation is to be performed, and then the input pen 105 is used to, for example, a black circle in an area surrounded by a dotted line. After sequentially inputting the coordinates of each corner in the clockwise or counterclockwise direction and pressing the OK key 110 to notify the completion of the input, the contents of processing to be performed on the designated area are instructed by the keys 111, 112, 113.

第3図に本実施例の複写装置の概略ブロツク図を示
す。302は画像読取部である。画像読取部302はCCD,信号
増幅回路,A/D変換回路,シエーテイング補正回路を有し
補正後の信号が画像処理部303に入力される。画像処理
部303ではシフトメモリに画信号を一旦蓄積後,変倍,
移動,トリミング/マスキング濃度変換等の画像処理を
施し、その結果がVIDEO信号として外部ユニツト312へ出
力される。外部ユニツト312は本実施例ではいわゆるレ
ーザープリンタを想定しているが、電子フアイルやフア
クシミリ等のコントローラ及びメモリ装置でも良い。外
部ユニツトとはケーブル313を介して画信号VIDEO以外
に、例えば複数の信号線から成るシリアル信号線SRALに
よりシリアル通信を行い、システム主体を制御する。外
部ユニツト312がレーザープリンタの時はプリンタから
水平周期信号BDを受け、クロツクジエネレータ304によ
り内部動作の為のクロツクを生成し、前述の読取部302
や処理部303に与える。
FIG. 3 shows a schematic block diagram of the copying machine of this embodiment. 302 is an image reading unit. The image reading unit 302 has a CCD, a signal amplification circuit, an A / D conversion circuit, and a shiting correction circuit, and the corrected signal is input to the image processing unit 303. The image processing unit 303 temporarily stores the image signal in the shift memory, then changes the magnification,
Image processing such as movement and trimming / masking density conversion is performed, and the result is output to the external unit 312 as a VIDEO signal. Although the external unit 312 is assumed to be a so-called laser printer in this embodiment, it may be a controller such as an electronic file or facsimile and a memory device. In addition to the image signal VIDEO via the cable 313, serial communication is performed with the external unit via the serial signal line SRAL including a plurality of signal lines to control the system main body. When the external unit 312 is a laser printer, it receives a horizontal cycle signal BD from the printer, and a clock generator 304 generates a clock for internal operation.
Or to the processing unit 303.

CPU301は制御プログラムや制御データを格納したROM3
05,処理データ等を記憶するためのRAM306,タイマー回路
307を有し、前述の読取部302,処理部303,外部ユニツト3
12との通信を制御する他に原稿照明の為の蛍光灯ドライ
バ回路309や光学系駆動の為のモータードライバ回路30
8、及び操作部311や座標入力装置310を制御する。
CPU301 is a ROM3 that stores control programs and control data
05, RAM306 for storing processing data, timer circuit
It has a reading unit 302, a processing unit 303, and an external unit 3 as described above.
In addition to controlling communication with 12, the fluorescent lamp driver circuit 309 for illuminating the original and the motor driver circuit 30 for driving the optical system
8, and controls the operation unit 311 and the coordinate input device 310.

第4図に座標入力装置310のブロツク図を示す。 FIG. 4 shows a block diagram of the coordinate input device 310.

タイミング回路402は内蔵された発振器によりクロツ
クを発生させ、アドレスカウンタ403に与える。アドレ
スカウンタ403はペン412に内蔵されたスイツチが押下さ
れている間カウント動作する。カウント動作中、まずX
デコーダ409が動作し、パルス電圧を順次入力面411のX
方向電極に2巡ダイナミツクスキヤンし、その後Yデコ
ーダ410が動作し同じくパルス電圧を順次入力面411のY
方向電極に2巡ダイナミツクスキヤンする。入力面411
上でペンのスイツチがONされると、X方向,Y方向のスキ
ヤンがペン位置へ達した時に静電容量結合により、ペン
内に電圧が誘起されペン入力信号が得られアンプ404に
より増幅される。X方向スキヤンの1巡目のペン入力信
号によりカウント値がXレジスタ406にセツトされ、2
巡目スキヤン時のペン入力信号によりXレジスタ406の
内容とカウント値を比較器405により比較して、一致す
れば一致信号がCPU401に出力される。同様にY方向につ
いても1巡目スキヤン時Yレジスタ408がセツトされ、
2巡目スキヤン時比較器407で比較して一致していれば
一致信号がCPU401に出力されて、CPU4012つの一致信号
が得られた時X,Y各レジスタから座標値を取り込み、メ
インCPU301に対して、例えばシリアル通信により通知で
きる。尚、Xレジスタ406とカウント値とが一致しない
ときには入力無効と判断される。Y方向も同様である。
The timing circuit 402 generates a clock with an internal oscillator and gives it to the address counter 403. The address counter 403 counts while the switch built in the pen 412 is pressed. During the counting operation, first X
The decoder 409 operates to sequentially apply the pulse voltage to the X of the input surface 411.
The direction electrode is subjected to two rounds of dynamic scanning, and then the Y decoder 410 operates to sequentially apply the pulse voltage to the Y of the input surface 411 in sequence.
Two rounds of dynamic scanning are applied to the direction electrode. Input surface 411
When the switch of the pen is turned on, when the scanning in the X and Y directions reaches the pen position, a voltage is induced in the pen due to capacitive coupling, and a pen input signal is obtained and amplified by the amplifier 404. . The count value is set in the X register 406 by the pen input signal of the first round of X-direction scanning, and 2
The comparator 405 compares the contents of the X register 406 with the count value according to the pen input signal at the time of round scan, and if they match, a match signal is output to the CPU 401. Similarly, in the Y direction, the Y register 408 is set during the first scan,
When the second round scan time comparator 407 compares them and if they match, a match signal is output to the CPU 401, and when two match signals of the CPU 4012 are obtained, coordinate values are fetched from the X and Y registers, and the main CPU 301 is read. For example, it can be notified by serial communication. When the X register 406 and the count value do not match, it is determined that the input is invalid. The same applies to the Y direction.

本実施例においては前述のキー111,112,113で指定さ
れる領域に対する処理の実施手段については特に触れな
い。
In the present embodiment, the means for performing the processing on the area designated by the keys 111, 112, 113 will not be particularly mentioned.

また、本実施例においては座標入力装置によりコーナ
ー方式に従って入力する場合、オペレータは矩形の組み
合わせから成る領域の各コーナーを極力、水平もしくは
垂直に結ぶべく入力するものと仮定する。またコーナー
方式に従って入力する場合、終点は始点の近傍に指示す
るものと仮定する。
Further, in the present embodiment, when inputting according to the corner method by the coordinate input device, it is assumed that the operator inputs the respective corners of the area formed by the combination of rectangles so as to connect them horizontally or vertically as much as possible. Also, when inputting according to the corner method, it is assumed that the end point points near the start point.

第5図に本実施例による領域指定方式の制御フローを
示す。まず、カウンタiを0にプリセツトし、ペン入力
があれば入力座標のX成分,Y成分を順次RAM306上のエリ
ア(PX0,PY0),(PX1,PY1),……,(PXi,PYi)にセ
ツトしてゆく(501〜504)。OKキー入力があれば(50
5)、その時点の入力点数をカウンタiによりチエツク
し(506)、0点もしくは1点ならば領域が確定しない
ので、指定がなかったものとして終了する。入力点数が
2点ならば対角方式と判定して処理し(508)、3点以
上ならばコーナー方式と判定して処理する(507)。こ
のようにOKキー入力時点での入力点数により区別するこ
とで、オペレータがあらかじめ入力方式を選択すること
なく、必要と思われる座標点数からオペレータの意図す
る方式を自動的に判定するので操作性が向上する。
FIG. 5 shows a control flow of the area designation method according to this embodiment. First, the counter i is preset to 0, and if there is a pen input, the X and Y components of the input coordinates are sequentially stored in the area (PX 0 , PY 0 ), (PX 1 , PY 1 ), ..., (PX i , PY i ) (501-504). If there is an OK key input (50
5) Then, the number of input points at that time is checked by the counter i (506), and if it is 0 point or 1 point, the area is not determined, so that it is assumed that there is no designation and the process ends. If the number of input points is 2, it is determined to be the diagonal method (508), and if it is 3 or more, it is determined to be the corner method (507). In this way, by distinguishing by the number of input points at the time of entering the OK key, the operator does not have to select the input method in advance, but the method intended by the operator is automatically determined from the number of coordinate points considered necessary, so operability is improved. improves.

オペレータは矩形の場合は第2−1図のように、そし
て複数の矩形の組み合わせの場合は第2−3図のように
2種類の方式を矛盾なく使用できる。
The operator can use the two types of schemes consistently as shown in FIG. 2-1 in the case of a rectangle and as shown in FIG. 2-3 in the case of a combination of a plurality of rectangles.

第6図に他の実施例による制御フローを示す。 FIG. 6 shows a control flow according to another embodiment.

まず入力座標点数を示すRAM上のカウンタiを0クリ
アし(601)、座標入力を待つ(602)。座標入力があれ
ばそのX成分をRAM上のフラグPXiにY成分をPYiにセツ
トする(603)。そして次の入力の為にカウンタiをイ
ンクリメントしておく(604)。その後最新の入力点と
その直前の入力点とのX,Y各成分毎の差分の絶対値αX,
αY及び最新の入力点と始点とのX,Y各成分毎の差分の
絶対値βX,βYを算出する(605,606)。入力点数が1
の時は2点目を入力を待つ(607,602)。入力点数が2
の時は(607)、αX=βX,αY=βYであり、このβ
X,βYが共にある基準値Kよりも大きい時(608)には
第1点及び第2点が対角方式に従って入力されたものと
判定し、第2−1図のように矩形領域を決定すべく処理
する(609)。βX,βYが共にKより小さい時は(61
0)、2点目を無効入力として再入力を待つべくカウン
タiをデクリメントする(611)。βX,βYの一方がK
より小さく、他方がKより大きい時には入力点がコーナ
ー方式に従って入力されたものと判定して第3点入力を
待つ(610,602)。
First, the counter i on the RAM indicating the number of input coordinate points is cleared to 0 (601) and the coordinate input is awaited (602). If there is a coordinate input, the X component is set to the flag PX i on the RAM and the Y component is set to PY i (603). Then, the counter i is incremented for the next input (604). After that, the absolute value of the difference between each of the X and Y components between the latest input point and the input point immediately before it, αX,
The absolute values βX and βY of αY and the difference between each of the X and Y components between the latest input point and the starting point are calculated (605, 606). The number of input points is 1
In case of, wait for input of the second point (607,602). The number of input points is 2
(607), αX = βX, αY = βY.
When both X and βY are larger than a certain reference value K (608), it is determined that the first point and the second point are input according to the diagonal method, and the rectangular area is determined as shown in FIG. 2-1. Process as appropriate (609). When βX and βY are both smaller than K (61
0) The counter i is decremented in order to wait for re-input with the second point being invalid input (611). One of βX and βY is K
When it is smaller and the other is larger than K, it is determined that the input point is input according to the corner method, and the input of the third point is waited (610, 602).

3点目以降の入力時は(607)、まず直前の入力点と
の関係をチエツクする。αX,αYの両方がKより大きい
かもしくは両方がKより小さい時(612,613)は最新の
入力を無効とし再入力を待つべくカウンタiをデクリメ
ントする(616,602)。αX,αYの一方がKより大き
く、他方がKより小さい時はコーナー入力方式に従って
有効入力と判定し、次に最新入力点と始点の位置関係を
チエツクする。βX,βYが共にKより小さい時はコーナ
ー方式に従う領域限定の最終点と判定し(614)、領域
を決定する処理を行い(615)、その後新たな領域指定
を待つべくカウンタiを0クリアする(601)。βX,β
Yの少なくとも一方がKより大きい時は最終点と認めず
次のコーナー入力方式に従う座標入力を待つ。
When inputting after the third point (607), first check the relationship with the previous input point. When both αX and αY are larger than K or both are smaller than K (612,613), the latest input is invalidated and the counter i is decremented to wait for re-input (616,602). When one of αX and αY is larger than K and the other is smaller than K, it is determined that the input is valid according to the corner input method, and then the positional relationship between the latest input point and the start point is checked. When both βX and βY are smaller than K, it is determined that the final point is the area limited according to the corner method (614), the area is determined (615), and then the counter i is cleared to 0 to wait for a new area designation. (601). βX, β
When at least one of Y is larger than K, it is not recognized as the final point and the coordinate input according to the next corner input method is waited for.

以上の方式の概念を第7図を用いて説明する。まずあ
る入力点Piに対し、X,Y各方向についてPiを中心とする
巾2Kの帯を想定しその帯により座標入力装置の有効入力
面を9つに分割する。
The concept of the above method will be described with reference to FIG. First, with respect to a certain input point P i , a band having a width of 2K centering on P i in each of the X and Y directions is assumed, and the band is used to divide the effective input surface of the coordinate input device into nine.

さて、点Piが始点の時、第2点がゾーンZPP,ZPM,ZMP,
ZMMのいずれかに属している時は対角方式に従う座標入
力と判定する。
Now, when the point P i is the starting point, the second point is the zone Z PP , Z PM , Z MP ,
If it belongs to any one of Z MM , it is judged as the coordinate input according to the diagonal method.

第2点がゾーンZOP,ZPO,ZOM,ZMOのいずれかに属する
時はコーナー方式に従う座標入力と判定し、3点目以降
も点Piと点Pi+1の関係は、点Pi+1が点Piのこの4つのゾ
ーンのいずれかに属さなくてはならない。
When the second point belongs to any one of the zones Z OP , Z PO , Z OM , and Z MO , it is determined that the coordinate input is in accordance with the corner method, and even after the third point, the relationship between the points P i and P i + 1 is Point P i + 1 must belong to one of these four zones of point P i .

コーナー方式に従う座標入力を終了する為には第7図
において点Piを始点P0と考えた場合最終入力点は点P0
対するゾーンZOOになくてはならない。また点Piに対し
て次の点Pi+1が点PiのゾーンZOOにある時はPi+1を無効
入力とする。
In order to finish the coordinate input according to the corner method, when the point P i is considered as the starting point P 0 in FIG. 7, the final input point must be in the zone Z OO for the point P 0 . Further, when the next point P i + 1 with respect to the point Pi is in the zone Z OO of the point P i , P i + 1 is invalidated.

以上の説明で用いた基準範囲Kは前述したように2点
を極力水平又は垂直に入力する時に、あるいは終点を始
点の近傍に入力する時に見込まれる人間の手操作による
バラツキを示す係数で、統計的に或いは経験的に決定で
きる。
The reference range K used in the above description is a coefficient indicating variation due to human manual operation expected when inputting two points as horizontally or vertically as possible as described above, or when inputting the end point in the vicinity of the start point. Or empirically.

また、前述の実施例はデジタル式複写機に対して応用
した例であるが、当然の如くアナログ式複写機,フアク
シミリ装置,電子フアイル装置等の画像入力装置等にも
応用できる。
Further, although the above-described embodiment is an example applied to a digital copying machine, it can be naturally applied to an image input device such as an analog copying machine, a facsimile machine, an electronic file device, or the like.

さらに座標入力装置として静電容量結合方式によるデ
ジタイザーを挙げたが、電磁誘導方式、超音波利用光学
的手法,抵抗による電流分割等を利用したデジタイザー
さらに光学式,磁気式,メカ式等のポインテイングデバ
イスによっても実現可能である。
As the coordinate input device, the digitizer using the capacitance coupling method was mentioned, but the digitizer using the electromagnetic induction method, the optical method using ultrasonic waves, the current division by resistance, and the optical, magnetic, mechanical, etc. pointing It can also be realized by a device.

〔発明の効果〕〔The invention's effect〕

以上説明した様に本発明によれば、座標入力の完了を
表わす指示の入力があると、その時点までの座標入力点
数が2点であれば第1の入力モードに基づいて座標が入
力されたと判定して、入力された座標に基づいて領域を
決定し、座標入力点数が3点以上であれば第2の入力モ
ードに基づいて座標が入力されたと判定して、入力され
た座標に基づいて領域を決定することにより、或は、2
番目の入力点のX座標値と最初の入力点のX座標の差と
上記2番目の入力点のY座標値と最初の入力点のY座標
の差が何れも所定値以上であれば、上記2番目の入力点
の座標が上記第1の入力モードに基づいて入力されたと
判定して、入力された座標に基づいて領域を決定し、上
記2番目の入力点のX座標値と最初の入力点のX座標の
差と上記2番目の入力点のY座標値と最初の入力点のY
座標の差の何れか一方のみが所定値以上であれば、上記
2番目の入力点の座標が上記第2の入力モードに基づい
て入力されたと判定して新たな点の座標の入力を待機
し、新たな点の座標が入力されると、その最新の入力点
のX座標値とその1つ前の入力点のX座標の差と上記最
新の入力点のY座標値とその1つ前の入力点のY座標の
差の何れか一方のみが上記所定値以上であれば、上記最
新の入力点の座標が上記第2の入力モードに基づく有効
な入力であると判定することにより、予め、入力モード
を設定しなくても、オペレータの入力意図を汲んだ操作
性の良い領域指定方法を提供できる。
As described above, according to the present invention, when an instruction indicating completion of coordinate input is input, if the number of coordinate input points up to that point is two, the coordinate is input based on the first input mode. It is determined that a region is determined based on the input coordinates, and if the number of coordinate input points is 3 or more, it is determined that the coordinates have been input based on the second input mode, and based on the input coordinates. By determining the area, or 2
If the difference between the X coordinate value of the second input point and the X coordinate of the first input point and the difference between the Y coordinate value of the second input point and the Y coordinate of the first input point are all above a predetermined value, then It is determined that the coordinates of the second input point are input based on the first input mode, the area is determined based on the input coordinates, and the X coordinate value of the second input point and the first input are determined. The difference between the X coordinates of the points, the Y coordinate value of the second input point, and the Y of the first input point
If only one of the coordinate differences is greater than or equal to the predetermined value, it is determined that the coordinate of the second input point has been input based on the second input mode, and the input of the coordinate of the new point is awaited. , When the coordinates of a new point are input, the difference between the X coordinate value of the latest input point and the X coordinate of the previous input point, the Y coordinate value of the latest input point, and the previous one. If only one of the differences between the Y coordinates of the input points is greater than or equal to the predetermined value, it is determined in advance that the coordinates of the latest input point are valid inputs based on the second input mode. Even if the input mode is not set, it is possible to provide a region specifying method with good operability in consideration of the operator's input intention.

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

第1−1図は座標入力装置の外観図、 第1−2図は本発明を適用できる複写装置の外観図、 第2−1図〜第2−4図は領域指定方法を説明するため
の図、 第3図は複写装置の構成を示すブロツク図、 第4図は座標入力装置の構成を示すブロツク図、 第5図,第6図は領域指定の制御フローチヤート、 第7図は座標の位置関係を説明するための図である。 104は座標入力装置、105は座標入力ペン、106は有効座
標入力面である。
FIG. 1-1 is an external view of a coordinate input device, FIG. 1-2 is an external view of a copying device to which the present invention can be applied, and FIGS. 2-1 to 2-4 are for explaining a region specifying method. Fig. 3, Fig. 3 is a block diagram showing the constitution of the copying machine, Fig. 4 is a block diagram showing the constitution of the coordinate input device, Figs. 5 and 6 are control flow charts for specifying the area, and Fig. 7 is a coordinate flow chart. It is a figure for demonstrating a positional relationship. 104 is a coordinate input device, 105 is a coordinate input pen, and 106 is an effective coordinate input surface.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】領域指定の為の2次元座標入力装置を有す
る画像処理装置の領域指定方法において、 所望の矩形領域の対角2点の座標を入力する第1の入力
モードと、矩形領域の組み合わせからなる所望の領域の
各コーナーの点の座標を入力する第2の入力モードとの
何れか一方で所望領域を指定可能であり、 座標入力の完了を表わす指示の入力があると、その時点
までの座標入力点数が2点であれば上記第1の入力モー
ドに基づいて座標が入力されたと判定して、入力された
座標に基づいて領域を決定し、座標入力点数が3点以上
であれば上記第2の入力モードに基づいて座標が入力さ
れたと判定して、入力された座標に基づいて領域を決定
することを特徴とする領域指定方法。
1. A method for specifying an area of an image processing apparatus having a two-dimensional coordinate input device for specifying an area, comprising: a first input mode for inputting coordinates of two diagonal points of a desired rectangular area; The desired area can be specified in either of the second input mode in which the coordinates of the points at the corners of the desired area composed of the combination are input, and when an instruction indicating completion of the coordinate input is input, If the number of coordinate input points up to is 2 points, it is determined that the coordinate is input based on the first input mode, the area is determined based on the input coordinate, and the number of coordinate input points is 3 or more. For example, the area designating method is characterized in that it is determined that the coordinates are input based on the second input mode, and the area is determined based on the input coordinates.
【請求項2】領域指定の為の2次元座標入力装置を有す
る画像処理装置の領域指定方法において、 所望の矩形領域の対角2点の座標を入力する第1の入力
モードと、矩形領域の組み合わせからなる所望の領域の
各コーナーの点の座標を入力する第2の入力モードとの
何れか一方で所望領域を指定可能であり、 2番目の入力点のX座標値と最初の入力点のX座標の差
と上記2番目の入力点のY座標値と最初の入力点のY座
標の差が何れも所定値以上であれば、上記2番目の入力
点の座標が上記第1の入力モードに基づいて入力された
と判定して、入力された座標に基づいて領域を決定し、
上記2番目の入力点のX座標値と最初の入力点のX座標
の差と上記2番目の入力点のY座標値と最初の入力点の
X座標の差の何れか一方のみが所定値以上であれば、上
記2番目の入力点の座標が上記第2の入力モードに基づ
いて入力されたと判定して新たな点の座標の入力を待機
し、新たな点の座標が入力されると、その最新の入力点
のX座標値とその1つ前の入力点のX座標の差と上記最
新の入力点のY座標値とその1つ前の入力点のY座標の
差の何れか一方のみが上記所定値以上であれば、上記最
新の入力点の座標が上記第2の入力モードに基づく有効
な入力であると判定することを特徴とする領域指定方
法。
2. An area specifying method for an image processing apparatus having a two-dimensional coordinate inputting device for specifying an area, comprising: a first input mode for inputting coordinates of two diagonal points of a desired rectangular area; The desired area can be specified in either of the second input mode in which the coordinates of the points at each corner of the desired area composed of combinations are input, and the X coordinate value of the second input point and the first input point can be specified. If the difference between the X-coordinates and the difference between the Y-coordinate value of the second input point and the Y-coordinate value of the first input point are both equal to or greater than a predetermined value, the coordinate of the second input point is the first input mode. It is determined that the input is made based on, and the area is determined based on the input coordinates,
Only one of the difference between the X coordinate value of the second input point and the X coordinate of the first input point and the difference between the Y coordinate value of the second input point and the X coordinate of the first input point is equal to or greater than a predetermined value. If so, it is determined that the coordinates of the second input point are input based on the second input mode, the input of the coordinates of the new point is awaited, and the coordinates of the new point is input, Only one of the difference between the X coordinate value of the latest input point and the X coordinate of the previous input point and the difference between the Y coordinate value of the latest input point and the Y coordinate of the previous input point Is greater than or equal to the predetermined value, it is determined that the coordinates of the latest input point are valid inputs based on the second input mode.
JP62047953A 1987-03-03 1987-03-03 Area designation method Expired - Fee Related JPH0817439B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62047953A JPH0817439B2 (en) 1987-03-03 1987-03-03 Area designation method
US07/162,943 US4965678A (en) 1987-03-03 1988-03-01 Area designation apparatus in image processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62047953A JPH0817439B2 (en) 1987-03-03 1987-03-03 Area designation method

Publications (2)

Publication Number Publication Date
JPS63214069A JPS63214069A (en) 1988-09-06
JPH0817439B2 true JPH0817439B2 (en) 1996-02-21

Family

ID=12789717

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62047953A Expired - Fee Related JPH0817439B2 (en) 1987-03-03 1987-03-03 Area designation method

Country Status (1)

Country Link
JP (1) JPH0817439B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0462712B1 (en) * 1990-05-31 1998-03-04 Mitsubishi Denki Kabushiki Kaisha Signal processor for video printer
CN107850675B (en) * 2015-05-19 2021-08-31 普罗通弗达有限公司 Proton imaging system for optimizing proton therapy

Also Published As

Publication number Publication date
JPS63214069A (en) 1988-09-06

Similar Documents

Publication Publication Date Title
US4965678A (en) Area designation apparatus in image processing system
JPH11103380A (en) Image reader
JPH0817439B2 (en) Area designation method
US4847662A (en) Image forming apparatus
KR0152350B1 (en) Image compiling device and method of digital copier
JPH084293B2 (en) Image processing device
JP2005086385A (en) Image forming apparatus
JP2912371B2 (en) Image processing device
JPH0773332B2 (en) Area designation method
JPH0810898B2 (en) Image processing device
JPS6213161A (en) Picture processing device
JP2020198529A (en) Information processing apparatus and image forming apparatus
JP2662387B2 (en) Image processing device
JP3105730B2 (en) Method for determining image processing parameters in image input device
JPH0380666A (en) Picture reader
JP2791017B2 (en) Area processing method
JPH03190372A (en) Picture processor
JP3733194B2 (en) Image information terminal
JPS62196974A (en) Digitizer
JP2003037735A (en) Image processing unit, image processing method, program and recording medium
JPH0332158A (en) Picture processing unit capable of editing
JPH05284284A (en) Original reader
JPH1079855A (en) Image processor
JPS63261372A (en) Image forming device
JPS62172864A (en) Picture reader

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees