Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6361710B2 - - Google Patents
[go: Go Back, main page]

JPS6361710B2 - - Google Patents

Info

Publication number
JPS6361710B2
JPS6361710B2 JP56215029A JP21502981A JPS6361710B2 JP S6361710 B2 JPS6361710 B2 JP S6361710B2 JP 56215029 A JP56215029 A JP 56215029A JP 21502981 A JP21502981 A JP 21502981A JP S6361710 B2 JPS6361710 B2 JP S6361710B2
Authority
JP
Japan
Prior art keywords
image data
register
shift
stored
word
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
Application number
JP56215029A
Other languages
Japanese (ja)
Other versions
JPS58114281A (en
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 filed Critical
Priority to JP56215029A priority Critical patent/JPS58114281A/en
Publication of JPS58114281A publication Critical patent/JPS58114281A/en
Publication of JPS6361710B2 publication Critical patent/JPS6361710B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimiles In General (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Character Input (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 本発明は、メモリに記憶されたイメージデータ
を連続したデータとして切り出すためのイメージ
データの任意領域切り出し装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an image data arbitrary area cutting device for cutting out image data stored in a memory as continuous data.

画情報処理装置では、原稿から読み取られたイ
メージデータを原稿の所定の領域に対応した2次
元のデータとして切り出し、これを基にして文字
等の拡大、縮小あるいはノイズ除去等の情報処理
を行うことが多い。例えばイメージデータからノ
イズを除去するために、あるデータ(1ドツト)
の値を決定するとする。この場合、その周囲の8
ドツトを参照するとすれば、3×3ドツトのイメ
ージデータが切り出される。すなわちこの場合に
は、原稿上で1辺が3ドツトの矩形の領域が切り
出されることとなる。
An image information processing device extracts image data read from a document as two-dimensional data corresponding to a predetermined area of the document, and performs information processing such as enlarging or reducing characters or removing noise based on this data. There are many. For example, to remove noise from image data, some data (1 dot)
Suppose we want to determine the value of . In this case, the surrounding 8
If dots are to be referred to, image data of 3×3 dots is cut out. That is, in this case, a rectangular area with three dots on each side is cut out on the original.

ところで画情報処理装置では、原稿の読み取り
を通常ラスタスキヤニング方式で行つている。第
1図はこの読取原理を表わしたもので、原稿1か
らはまず第1のラインl1についての1次元のイメ
ージデータが読み取られる。次に第2のラインl2
についての同じく1次元のイメージデータが読み
取られる。以下同様である。
By the way, in image information processing apparatuses, originals are usually read using a raster scanning method. FIG. 1 shows this reading principle. First, one-dimensional image data for a first line l1 is read from a document 1. Then the second line l 2
Similarly, one-dimensional image data about the image is read. The same applies below.

第2図はこのようにして読み取られたイメージ
データがメモリ内に格納される様子を示したもの
である。イメージデータは、8ビツトあるいは16
ビツトといつたワード単位でメモリ2内に格納さ
れる。各ラインのイメージデータは複数のワード
により構成される。従つて第1のラインl1のイメ
ージデータは、走査方向(矢印方向)に幾段かに
分割された形でメモリ2内に格納される。
FIG. 2 shows how the image data read in this way is stored in the memory. Image data can be 8 bits or 16 bits.
It is stored in the memory 2 in word units such as bits. Image data for each line is composed of a plurality of words. Therefore, the image data of the first line l1 is stored in the memory 2 in a form divided into several stages in the scanning direction (arrow direction).

このようにしてメモリ2内に1ページのイメー
ジデータが格納された段階で、第3図に示す原稿
1の任意の矩形領域3についてイメージデータの
切り出しが行われるとする。この図の場合には、
第NのラインlN(Nは任意の整数)から第N+2
のラインlN+2までのラインの所定の部分について
イメージデータの切り出しが行われる。前記した
ようにメモリ2内のイメージデータは、2次元の
データとして記憶されていない。すなわち矩形領
域3に対応するイメージデータは、第4図に斜線
で示すように分散した形でメモリ2内に格納され
ている。従つてイメージデータの切り出しを行う
場合には、メモリ2内のデータを副走査方向に順
次読み出し、この中から必要なデータを飛び飛び
に認識していかなければならなかつた。
When one page of image data is stored in the memory 2 in this manner, image data is cut out for an arbitrary rectangular area 3 of the document 1 shown in FIG. 3. In this diagram,
From the Nth line l N (N is any integer) to the N+2th line
The image data is cut out for a predetermined portion of the lines up to line l N+2 . As described above, the image data in the memory 2 is not stored as two-dimensional data. That is, the image data corresponding to the rectangular area 3 is stored in the memory 2 in a distributed form as shown by diagonal lines in FIG. Therefore, when cutting out image data, the data in the memory 2 must be sequentially read out in the sub-scanning direction, and necessary data must be recognized one by one.

一方、例えば特開昭53−134331号公報には、図
形前処理装置が記載されている。この図形前処理
装置では、走査手段による走査位置の微小領域の
量子化情報を複数の画素によつて記憶するマトリ
ツクスメツシユを設けている。このマトリツクス
メツシユの出口側にはシフトレジスタの入力端が
接続されており、このシフトレジスタの出力端は
マトリツクスメツシユの入力端に接続されてい
る。そして、原図形を走査して得られた2値化情
報をマトリツクスメツシユの他の入力端に入力す
ることによつて、この2値化情報をマトリツクス
メツシユとシフトレジスタの間で巡回させる。こ
れにより、マトリツクスメツシユ内には所定の条
件の下で前記した微少領域の量子化情報が集中的
に格納されることになる。従つて、このときのマ
トリツクスメツシユの内容は、所定の微少領域を
切り出したものと見てよい。
On the other hand, for example, Japanese Patent Laid-Open No. 134331/1983 describes a graphic preprocessing device. This graphic preprocessing device is provided with a matrix mesh that stores quantized information of a minute area scanned by the scanning means using a plurality of pixels. The input end of a shift register is connected to the output side of this matrix mesh, and the output end of this shift register is connected to the input end of the matrix mesh. Then, by inputting the binary information obtained by scanning the original figure to the other input terminal of the matrix mesh, this binary information is circulated between the matrix mesh and the shift register. let As a result, the quantized information of the minute area mentioned above is stored intensively in the matrix mesh under predetermined conditions. Therefore, the contents of the matrix mesh at this time can be regarded as the cutout of a predetermined minute area.

しかしながら、このマトリツクスメツシユは予
め定められた形状およびサイズのものなので、仮
に切り出す微少領域のサイズや形状を変更する場
合には、そのたびに別のマトリツクスメツシユを
用意しこれを選択しなければならないという問題
があつた。
However, this matrix mesh has a predetermined shape and size, so if you want to change the size or shape of the minute area to be cut out, you will need to prepare and select another matrix mesh each time. There was a problem that I had to do it.

本発明は上記した事情に鑑みてなされたもの
で、メモリに記憶された各種サイズあるいは各種
形状のイメージデータを連続したデータとして切
り出すことのできるイメージデータの任意領域切
り出し装置を提供することを目的とする。
The present invention has been made in view of the above-mentioned circumstances, and an object of the present invention is to provide an arbitrary region cutting device for image data that can cut out image data of various sizes or shapes stored in a memory as continuous data. do.

本発明では、(i)切り出しを行おうとする原稿上
の領域に存在するイメージデータをワード単位で
メモリから読み出す読出手段と、(ii)ワード単位で
イメージデータを格納するシフトレジスタを複数
並列に配置してなるソースレジスタと、(iii)このソ
ースレジスタ内のシフトレジスタをイメージデー
タの切り出しの構造に対応して選定し、この選定
されたシフトレジスタに読出手段によつて読み出
されたイメージデータを1ワードずつ格納する格
納手段と、(iv)ソースレジスタを構成する各シフト
レジスタから出力されるキヤリービツトを1ビツ
トずつパラレルに入力すべく配置され、イメージ
データを格納したそれぞれのシフトレジスタから
出力されるキヤリービツトのうち切り出される領
域に存在するビツトのみを収容するリザルトレジ
スタと、(v)選定された全シフトレジスタの1回の
シフト動作が終了するたびに、このリザルトレジ
スタを1ビツト分所定方向にシフトさせ、まだキ
ヤリービツトの収容されていない位置に次のキヤ
リービツトが収容されるように制御する制御手段
とをイメージデータの任意領域切り出し装置に具
備させる。この装置では、ソースレジスタにセツ
トされたイメージデータのうち必要なデータをリ
ザルトレジスタに供給することによつて、1次元
的(ビツトシリアル)に記憶されているイメージ
データの任意領域を連続ビツトとして切り出すこ
とが可能になる。
In the present invention, (i) a reading unit that reads image data existing in an area on a document to be cut out from memory in word units, and (ii) a plurality of shift registers that store image data in word units are arranged in parallel. and (iii) a shift register in this source register is selected in accordance with the structure of cutting out the image data, and the image data read out by the reading means is transferred to the selected shift register. storage means for storing one word at a time, and (iv) arranged to input in parallel one bit at a time the carry bits output from each shift register constituting the source register, and output from each shift register storing image data. A result register that accommodates only the bits existing in the area to be cut out of the carry bits; and (v) This result register is shifted by one bit in a predetermined direction each time one shift operation of all selected shift registers is completed. The apparatus for cutting out an arbitrary area of image data is provided with a control means for controlling the image data so that the next carry bit is stored in a position where no carry bit has been stored yet. This device cuts out an arbitrary area of image data stored one-dimensionally (bit serially) as continuous bits by supplying necessary data from the image data set in the source register to the result register. becomes possible.

以下実施例につき本発明に説明する。 The present invention will be explained below with reference to Examples.

第5図はイメージデータの任意領域切り出し装
置を示したものである。イメージデータの任意領
域切り出し装置5は、メモリ2から読み出される
イメージデータをワード単位で収容するソースレ
ジスタ51を備えている。ソースレジスタ51の
図で左側には、ソースレジスタ51からのキヤリ
ービツトを格納するキヤリーレジスタ52が配置
されている。ソースレジスタ51が左シフトされ
ると、これを構成するN個のシフトレジスタR1
〜RNの各々から出力されるキヤリービツトがキ
ヤリーレジスタ52に格納されるようになつてい
る。キヤリーレジスタ52から出力されるパラレ
ルなN個のイメージデータ5は、シフトコントロ
ールレジスタ53から出力される指定信号6と、
アンド回路54で論理積がとられるようになつて
いる。アンド回路54から出力される必要なイメ
ージデータ7は、オア回路55を経てシフトコン
トロール回路56に供給され、ここからリザルト
レジスタ57へ供給される。一方、シフトコント
ロールレジスタ53から出力される指定信号6は
インバータ58へも供給される。インバータ58
により論理状態の反転された指定信号8はアンド
回路59に供給され、リザルトレジスタ57から
出力される1つ手前の連続信号9との間で論理積
がとられるようになつている。アンド回路59か
ら出力される出力信号11は前記したオア回路5
5に供給される。
FIG. 5 shows a device for cutting out an arbitrary area of image data. The image data arbitrary area cutting device 5 includes a source register 51 that stores image data read from the memory 2 in units of words. A carry register 52 for storing a carry bit from the source register 51 is arranged on the left side of the source register 51 in the figure. When the source register 51 is shifted to the left, the N shift registers R 1 that make up the source register 51 are shifted to the left.
The carry bits output from each of .about.RN are stored in a carry register 52. N pieces of parallel image data 5 outputted from the carry register 52 are combined with a designation signal 6 outputted from the shift control register 53,
An AND circuit 54 performs logical product. Necessary image data 7 output from the AND circuit 54 is supplied to a shift control circuit 56 via an OR circuit 55, and from there to a result register 57. On the other hand, the designation signal 6 output from the shift control register 53 is also supplied to the inverter 58. Inverter 58
The designation signal 8 whose logic state has been inverted is supplied to an AND circuit 59, where it is ANDed with the previous continuous signal 9 output from the result register 57. The output signal 11 output from the AND circuit 59 is the OR circuit 5 described above.
5.

このイメージデータの任意領域切り出し装置を
用いて、第6図で1点鎖線で囲んだ部分のイメー
ジデータの切り出しを行う場合を次に説明する。
第6図で切り出される領域61は、4×4ドツト
の矩形の領域である。この場合、第5図に示すソ
ースレジスタ51のシフトレジスタは、前記領域
61内に存在する全ビツト数だけ必要とされる。
シフトコントロールレジスタ53およびリザルト
レジスタ57には、これと同じ数の16ビツトを収
容できるレジスタが用いられる。
Next, a case will be described in which the image data arbitrary area cutting device is used to cut out the image data in the area surrounded by the dashed line in FIG. 6.
The area 61 cut out in FIG. 6 is a rectangular area of 4×4 dots. In this case, shift registers of the source register 51 shown in FIG. 5 are required for the total number of bits present in the area 61.
For the shift control register 53 and the result register 57, registers capable of accommodating the same number of 16 bits are used.

さて、切り出し操作が開始されると、領域61
の一部を含んだ4つのワードφW〜3Wが選択さ
れ、バスライン13を転送されてソースレジスタ
51に供給される。ソースレジスタ51では第7
図Aに示すように、第0のワードφWを第3のレ
ジスタR3に、第1のワード1Wを第7のシフトレ
ジスタR7に、第2のワード2Wを第Bのシフトレ
ジスタRBに、さらに第3のワード3Wを第Fのシ
フトレジスタRFにそれぞれ格納する。このとき
リザルトレジスタ57には、先に格納されたイメ
ージデータBφ〜BFがそのまま残つている。また
シフトコントロールレジスタ53は、この段階で
シフトレジスタR1〜RFを指定しない。この状態
でソースレジスタ51はまず1回目のシフト動作
を行う。これにより各イメージデータφφ,1φ,
2φ,3φが他のイメージデータと共にソースレ
ジスタ51からキヤリービツトとして出力され、
キヤリーレジスタ52に格納される。キヤリーレ
ジスタ52はこれを16ビツトのパラレルなイメー
ジデータ5としてアンド回路54に供給する。ア
ンド回路54はシフトコントロールレジスタ53
から出力される指定信号6と各レジスタごとに論
理積をとる。シフトコントロールレジスタ53の
信号内容はこの状態で総てL(ロー)レベルであ
る。従つてアンド回路54から出力されるイメー
ジデータ7は、総てLレベルの信号となる。この
状態でリザルトレジスタ57の内容は総てLレベ
ルにクリアされている。従つて総てLレベルの連
続信号9と、インバータ58から出力される論理
状態を反転した指定信号8とを入力するアンド回
路59の出力信号11も、総てLレベルの信号と
なる。オア回路55はこれらの信号7,11の論
理和をとり、論理和信号14としてLレベルの信
号を出力する。シフトコントロール回路56はこ
の信号状態の下で、リザルトレジスタ57に対し
て総てLレベルの論理状態となつたイメージデー
タを出力する。この結果、リザルトレジスタ57
の内容はこの状態で総てLレベルの信号となる。
Now, when the cutting operation is started, the area 61
Four words φW to 3W containing part of are selected, transferred through the bus line 13, and supplied to the source register 51. In the source register 51, the seventh
As shown in Figure A, the 0th word φW is placed in the third register R3 , the first word 1W is placed in the seventh shift register R7 , and the second word 2W is placed in the Bth shift register RB. , and further store the third word 3W in the F-th shift register R F respectively. At this time, the previously stored image data Bφ to BF remain in the result register 57 as they are. Furthermore, the shift control register 53 does not specify shift registers R 1 to RF at this stage. In this state, the source register 51 first performs the first shift operation. As a result, each image data φφ, 1φ,
2φ and 3φ are output as carry bits from the source register 51 along with other image data,
It is stored in the carry register 52. The carry register 52 supplies this to the AND circuit 54 as 16-bit parallel image data 5. AND circuit 54 is shift control register 53
A logical AND is performed for each register with the designation signal 6 output from the register. All signal contents of the shift control register 53 are at L (low) level in this state. Therefore, all the image data 7 output from the AND circuit 54 become L level signals. In this state, all contents of the result register 57 are cleared to L level. Therefore, the output signal 11 of the AND circuit 59 which receives the continuous signal 9 which is all at the L level and the designation signal 8 whose logic state is inverted from the inverter 58 is also all the signal which is at the L level. The OR circuit 55 takes the logical sum of these signals 7 and 11 and outputs an L level signal as the logical sum signal 14. Under this signal state, the shift control circuit 56 outputs image data whose logic state is all at L level to the result register 57. As a result, the result register 57
In this state, the contents of all become L level signals.

次のシフト動作が行われると、これによりソー
スレジスタ51からイメージデータφ1,11,
21,31がその他のイメージデータと共に出力
される。これらのイメージデータも前記したと同
様にして、リザルトレジスタ57内に総てLレベ
ルの信号として入力される。ソースレジスタ51
が更に次のシフト動作を行つたときも同様であ
る。第7図Bは、この3度目のシフト動作が行わ
れた状態を示したものである。
When the next shift operation is performed, the image data φ1, 11,
21 and 31 are output together with other image data. These image data are all input into the result register 57 as L level signals in the same manner as described above. source register 51
The same holds true when the next shift operation is performed. FIG. 7B shows a state in which this third shift operation has been performed.

さてソースレジスタ51が4度目のシフト動作
を行うと、第4図Cに示すように、必要なイメー
ジデータφ3,13,23,33が他のイメージ
データと共にキヤリーレジスタ52に取り込まれ
る。またこれと同時にシフトコントロールレジス
タ53の信号内容が同図Cに示すように変化す
る。すなわちイメージデータφ3,13,23,
33が出力された位置に相当するシフトコントロ
ールレジスタ53内の信号がH(ハイ)レベル
(図で斜線で示す)に変化する。シフトコントロ
ールレジスタ53内におけるこのような信号変化
は、切り出されるデータの範囲(領域)との関係
で予め設定されている。アンド回路54はイメー
ジデータ5と指定信号6との論理積をとり、この
結果所望のイメージデータφ3,13,23,3
3がイメージデータ7としてオア回路55に供給
される。この状態ではLレベルの信号のみがリザ
ルトレジスタ57に格納されている。従つて出力
信号11は総てLレベルの信号から成る。オア回
路55はこれらの信号7,11の論理和をとり、
論理和信号14としてイメージデータφ3,1
3,23,33の信号内容をそのまま表わした信
号を出力する。シフトコントロール回路56はこ
れらの信号14をリザルトレジスタ57の並列入
力端子に入力すると共に、リザルトレジスタ57
を1ビツトだけ図で上方にシフトさせる(第7図
D)。
Now, when the source register 51 performs the fourth shift operation, the necessary image data φ3, 13, 23, and 33 are taken into the carry register 52 along with other image data, as shown in FIG. 4C. At the same time, the signal contents of the shift control register 53 change as shown in FIG. That is, image data φ3, 13, 23,
The signal in the shift control register 53 corresponding to the position where 33 is output changes to an H (high) level (indicated by diagonal lines in the figure). Such signal changes within the shift control register 53 are set in advance in relation to the range (area) of data to be extracted. The AND circuit 54 performs a logical product of the image data 5 and the designated signal 6, and as a result, the desired image data φ3, 13, 23, 3 are obtained.
3 is supplied to the OR circuit 55 as image data 7. In this state, only the L level signal is stored in the result register 57. Therefore, the output signal 11 consists entirely of L level signals. The OR circuit 55 takes the logical sum of these signals 7 and 11,
Image data φ3,1 as the logical sum signal 14
Outputs signals that directly represent the signal contents of signals 3, 23, and 33. The shift control circuit 56 inputs these signals 14 to the parallel input terminals of the result register 57, and also inputs the signals 14 to the parallel input terminals of the result register 57.
is shifted upward in the diagram by one bit (FIG. 7D).

この状態でソースレジスタ51は5回目のシフ
ト動作を行う。これによりイメージデータφ4,
14,24,34がその他のイメージデータと共
にキヤリーレジスタ52内に格納される。このう
ちイメージデータφ4,14,24,34は、シ
フトコントロールレジスタ53から出力される指
定信号6との間で論理積がとられる結果、イメー
ジデータ7としてオア回路55に供給される。一
方、指定信号6はインバータ58で論理状態が反
転された(第8図A)後、1つ手前の連続信号9
(第8図B)との間で論理積がとられる。このよ
うにして得られた出力信号11(第8図C)は、
イメージデータ7との間で論理和がとられる。論
理和出力信号14(第8図D)は、リザルトレジ
スタ57の並列入力端子に供給される。シフトコ
ントロール回路56はこの後、リザルトレジスタ
57を1ビツトだけ図で上方にシフトさせる(第
7図E)。
In this state, the source register 51 performs the fifth shift operation. As a result, image data φ4,
14, 24, and 34 are stored in the carry register 52 along with other image data. Among these, the image data φ4, 14, 24, and 34 are logically ANDed with the designation signal 6 output from the shift control register 53, and are supplied to the OR circuit 55 as image data 7. On the other hand, after the designated signal 6 has its logic state inverted by the inverter 58 (FIG. 8A), the next consecutive signal 9
(FIG. 8B). The output signal 11 obtained in this way (FIG. 8C) is
A logical OR is performed with image data 7. The OR output signal 14 (FIG. 8D) is supplied to the parallel input terminals of the result register 57. Shift control circuit 56 then shifts result register 57 upward by one bit (FIG. 7E).

この後、ソースレジスタ51は6回目のシフト
動作を行う。これによりイメージデータφ5,1
5,25,35がその他のイメージデータと共に
キヤリーレジスタ52内に格納される。このうち
イメージデータφ5,15,25,35がイメー
ジデータ7としてオア回路55に供給される。一
方、指定信号6はインバータ58で論理状態が反
転され(第9図A)た後、1つ手前の連続信号9
(第9図B)との間で論理積がとられる。このよ
うにして得られた出力信号11(第9図C)は、
イメージデータ7との間で論理和がとられる。論
理和出力信号14(第9図D)は、リザルトレジ
スタ57の並列入力端子に供給される。シフトコ
ントロール回路56はこの後、リザルトレジスタ
57を1ビツトだけ図で上方にシフトさせる(第
7図F)。
After this, the source register 51 performs the sixth shift operation. As a result, image data φ5,1
5, 25, and 35 are stored in the carry register 52 along with other image data. Among these, image data φ5, 15, 25, and 35 are supplied to the OR circuit 55 as image data 7. On the other hand, after the designated signal 6 has its logic state inverted by the inverter 58 (FIG. 9A), the next consecutive signal 9
(FIG. 9B). The output signal 11 obtained in this way (FIG. 9C) is
A logical OR is performed with image data 7. The OR output signal 14 (FIG. 9D) is supplied to the parallel input terminals of the result register 57. The shift control circuit 56 then shifts the result register 57 upward by one bit (FIG. 7F).

ソースレジスタ51が第7回目のシフト動作を
行つた場合も同様である(第7図G)。ただしこ
の場合には、シフトコントロール回路56がリザ
ルトレジスタ57へシフト動作を停止させる信号
を供給するので、最先端のイメージデータφ3が
リザルトレジスタ57から押し出されることはな
い。
The same holds true when the source register 51 performs the seventh shift operation (FIG. 7G). However, in this case, the shift control circuit 56 supplies the result register 57 with a signal to stop the shift operation, so the most recent image data φ3 is not pushed out from the result register 57.

この第7回目のシフト動作が終了すると、リザ
ルトレジスタ57には切り出されたイメージデー
タがシリアルに配列されている。従つてこれをパ
ラレルな16ビツトの切り出し信号16として出力
すれば、第10図に示すような所望のイメージデ
ータが得られる。切り出し信号16は、情報処理
用の図示しない装置へバスライン13を介して転
送されてもよいし、ライン2の所定の領域に格納
されてもよい。
When this seventh shift operation is completed, the cut out image data is serially arranged in the result register 57. Therefore, by outputting this as a parallel 16-bit cutout signal 16, desired image data as shown in FIG. 10 can be obtained. The cutout signal 16 may be transferred to an information processing device (not shown) via the bus line 13, or may be stored in a predetermined area of the line 2.

この実施例におけるイメージデータの任意領域
切り出し装置では、必要なイメージデータがイメ
ージデータ5として出力されているとき、シフト
コントロールレジスタ53の内容を変化させなか
つた。ソースレジスタ51がシフト動作を行うた
びにシフトコントロールレジスタ53の内容を変
化させるようにすれば、例えば第11図に示すよ
うな三角領域17を連続したイメージデータとし
て切り出すことが可能になる。ただし後述するよ
うに、この場合には、イメージデータをセツトす
るソースレジスタ51の選択に注意を要する。
In the image data arbitrary region cutting device of this embodiment, when necessary image data is being output as image data 5, the contents of the shift control register 53 are not changed. If the contents of the shift control register 53 are changed every time the source register 51 performs a shift operation, it becomes possible to cut out a triangular area 17 as shown in FIG. 11 as continuous image data, for example. However, as will be described later, in this case, care must be taken in selecting the source register 51 in which the image data is set.

次にこの実施例のイメージデータの任意領域切
り出し装置では、ソースレジスタ51を何回かシ
フトした後にこの内容をセツトし直しても、リザ
ルトレジスタ57の内容が保持されている。従つ
て第12図に示すように、ソースレジスタ51に
順次メモリからのデータを格納することにより、
2ワード以上に渡るイメージデータについても連
続なイメージデータとして切り出すことが可能で
ある。更に16×16ビツトのイメージデータをソー
スレジスタ51(R0〜R4)に格納し、シフトコ
ントロールレジスタ53から総てHの指定信号6
を出力させ、リザルトレジスタ57にシフト動作
を行わせずにイメージデータを格納させ、これを
ソースレジスタ51のシフト動作が行われるたび
に読み出せば、切り出し信号16として左に90度
回転したイメージデータを得ることができる。
Next, in the image data arbitrary region cutting device of this embodiment, the contents of the result register 57 are retained even if the contents of the source register 51 are reset after being shifted several times. Therefore, as shown in FIG. 12, by sequentially storing data from the memory in the source register 51,
Image data spanning two or more words can also be extracted as continuous image data. Furthermore, 16×16 bit image data is stored in the source register 51 (R 0 to R 4 ), and a designated signal 6 of all H is sent from the shift control register 53.
If you output the image data without performing a shift operation in the result register 57 and read it every time the shift operation of the source register 51 is performed, the image data rotated 90 degrees to the left as the cutout signal 16 will be output. can be obtained.

次にメモリ内で分断されているイメージデータ
を一方向に連続したイメージデータに変換する場
合を説明する。第13図は変換前のデータ構造を
示したものである。イメージデータは4ビツトず
つ一列に並んでいる。この場合にもソースレジス
タ51を構成するシフトレジスタとして、イメー
ジデータを一方向に連続させるだけのビツト数す
なわち16ビツトを収容できるレジスタが用いられ
る。
Next, a case will be described in which image data that is divided in memory is converted into image data that is continuous in one direction. FIG. 13 shows the data structure before conversion. Image data is arranged in a line of 4 bits each. In this case as well, a register capable of accommodating 16 bits is used as the shift register constituting the source register 51.

切り出し操作が開始されると、変換を行うワー
ドφW〜3φが選択され、バスライン13を転送さ
れてソースレジスタ51に供給される。ソースレ
ジスタ51では第14図Aに示すように第0のワ
ードφWを第3のレジスタR3に、第1のワード
1Wを第7のレジスタR7に、第2のワード2Wを
第BのレジスタRBに、さらに第3のワード3Wを
第FのレジスタRFにそれぞれ格納する。このと
きシフトコントロールレジスタ53は、シフトレ
ジスタR3,R7,RB,RFに対応する信号がHレベ
ルとなり、他はLレベルになる。
When the extraction operation is started, the words φW to 3φ to be converted are selected, transferred through the bus line 13, and supplied to the source register 51. In the source register 51, as shown in FIG. 14A, the 0th word φW is transferred to the third register R3 , and the first word
1W is stored in the seventh register R7 , the second word 2W is stored in the B -th register RB, and the third word 3W is stored in the F-th register RF . At this time, in the shift control register 53, the signals corresponding to shift registers R 3 , R 7 , R B , and RF go to H level, and the others go to L level.

この状態でソースレジスタ51がシフト動作を
3回繰り返すと、このたびにリザルトレジスタ5
7内へイメージデータが格納されていく(第14
図B〜D)。このための回路動作は第7図で説明
したものと同一であり、説明を省略する。ソース
レジスタ51が第4回目のシフト動作を行うと、
第14図Eに示すようにリザルトレジスタ57に
1ワード分のイメージデータが連続した形で収容
される。このときシフトコントロール回路56は
リザルトレジスタ57をシフトさせない。リザル
トレジスタ57に1ワード分のイメージデータが
書き込まれた段階でこれを切り出し信号16とし
て読み出せば、第15図に示すように第0ワード
φW′が得られる。これに続いて上記動作を3回繰
り返せば、第15図に示すように第1のワード
1W′から第3のワード3W′までが同様にして得ら
れ、連続したイメージデータへの変換が終了す
る。第5図に示したイメージデータの任意領域切
り出し装置を用いて逆変換も可能であることは特
に説明を要しない。
When the source register 51 repeats the shift operation three times in this state, the result register 5
Image data is stored in 7 (14th
Figures B-D). The circuit operation for this purpose is the same as that explained in FIG. 7, and the explanation will be omitted. When the source register 51 performs the fourth shift operation,
As shown in FIG. 14E, one word of image data is stored in the result register 57 in a continuous form. At this time, the shift control circuit 56 does not shift the result register 57. When one word of image data is written in the result register 57, if it is read out as the cutout signal 16, the 0th word φW' is obtained as shown in FIG. Following this, if the above operation is repeated three times, the first word will be created as shown in Figure 15.
Words 1W' to 3W' are obtained in the same manner, and the conversion to continuous image data is completed. It does not require any particular explanation that inverse transformation is also possible using the image data arbitrary region cutting device shown in FIG.

次にイメージデータの切り出しに際してソース
レジスタ51のどのシフトレジスタにワードを収
容するかについての一般原理を説明する。今、第
16図に示す五角形の領域18を切り出すとす
る。第17図はこれら切り出されるイメージデー
タについて便宜上連続番号を付したものである。
以下これらの番号で説明を行う。領域18内に合
計16ビツトのイメージデータが存在するので、ソ
ースレジスタ51(第5図)のシフトレジスタの
数は16個必要である。
Next, the general principle regarding which shift register of the source register 51 stores a word when cutting out image data will be explained. Suppose now that a pentagonal region 18 shown in FIG. 16 is cut out. In FIG. 17, consecutive numbers are assigned to the image data to be cut out for convenience.
The following will explain using these numbers. Since a total of 16 bits of image data exists within the area 18, the number of shift registers in the source register 51 (FIG. 5) is 16.

さて、切り出し操作が開始されると、領域18
の一部を含んだ4つのワードφW〜4Wが選択さ
れ、ソースレジスタ51内に格納される。このと
き第0のワードφWについては格納すべきシフト
レジスタを次のように決定する。すなわち第0の
イメージデータ“φ”と他のワード1W〜4Wとの
間の最大ビツト長を求める。この場合は2ビツト
となるので、シフトレジスタを2つ飛ばして第2
のシフトレジスタR2に第0のワード0Wを収容す
る(第18図)。
Now, when the cutting operation starts, area 18
Four words φW to 4W containing a portion of are selected and stored in the source register 51. At this time, the shift register to store the 0th word φW is determined as follows. That is, the maximum bit length between the 0th image data "φ" and the other words 1W to 4W is determined. In this case, it is 2 bits, so two shift registers are skipped and the second
The 0th word 0W is stored in the shift register R2 of (FIG. 18).

他のワード1W〜4Wについては第19図を基に
説明する。第19図は各ワードがソースレジスタ
51内に格納されている様子を示したものであ
る。ソースレジスタ51では、第0のイメージデ
ータ“φ”がキヤリービツトとして出力されると
き、第2、6、AおよびDのイメージデータ
“Z”、“6”、“A”および“D”が出力される。
従つて第1のワード1Wは、イメージデータ“1”
をこの段階でリザルトレジスタ57に収容するの
に必要な最小限のシフトレジスタを間に挾んだシ
フトレジスタに収容される。間に挾シフトレジス
タはこの場合1個なので、第4のシフトレジスタ
R4に第1のワード1Wが収容される。次に第2の
ワード2Wについては、第3のイメージデータ
“3”と第4のイメージデータ“4”および“5”
がイメージデータ“2”とイメージデータ“6”
の間に存在することになるので、第8のシフトレ
ジスタR8に第2のワード2Wが収容される。以下
同様にして、第3のワード3Wは第Cのシフトレ
ジスタRCに、また第4のワード4Wは第Fのシフ
トレジスタRFに収容される。
The other words 1W to 4W will be explained based on FIG. 19. FIG. 19 shows how each word is stored in the source register 51. In the source register 51, when the 0th image data "φ" is output as a carrier bit, the 2nd, 6th, A, and D image data "Z", "6", "A", and "D" are output. Ru.
Therefore, the first word 1W is image data “1”
At this stage, the result register 57 is accommodated in shift registers with the minimum number of shift registers interposed therebetween. In this case, there is one shift register in between, so the fourth shift register
The first word 1W is accommodated in R4 . Next, for the second word 2W, the third image data “3” and the fourth image data “4” and “5”
are image data “2” and image data “6”
Therefore, the second word 2W is accommodated in the eighth shift register R8 . Similarly, the third word 3W is stored in the C-th shift register RC , and the fourth word 4W is stored in the F-th shift register RF .

5つのワードφW〜5Wがソースレジスタ51
に収容されると、必要なイメージデータのみをオ
ア回路55に供給するように、キヤリーレジスタ
52を用いてマスク操作が行われる。この場合に
はソースレジスタ51がシフト動作を行うごとに
シフトコントロールレジスタ53の信号内容が異
なることになる。これ以外の回路動作については
すでに詳しく説明しているので、省略する。
Five words φW~5W are source register 51
Once stored in the image data, a mask operation is performed using the carry register 52 so that only the necessary image data is supplied to the OR circuit 55. In this case, the signal contents of the shift control register 53 will differ each time the source register 51 performs a shift operation. Other circuit operations have already been explained in detail, so they will be omitted.

以上説明したように本発明によればメモリに格
納されたイメージデータを連続したイメージデー
タとして出力することができるので、イメージデ
ータの処理回路が簡単となる。また複雑な形状で
イメージデータの切り出しを行うことができるの
で、種々の画像処理に使用することができるとい
う長所がある。
As described above, according to the present invention, the image data stored in the memory can be output as continuous image data, so the image data processing circuit becomes simple. Furthermore, since it is possible to cut out image data with a complex shape, it has the advantage that it can be used for various image processing.

なお実施例では、切り出しを行う領域のワード
をそのままの形でソースレジスタ51に入力させ
たが、必要なイメージデータ列のみをそれらの先
端(図で左端)を一致させて入力させてもよいこ
ととはもちろんである。また実施例ではリザルト
レジスタ57に必要なイメージデータが総て収容
された時点を検知する手法を説明しなかつたが、
例えばリザルトレジスタ57に予めキヤリービツ
トを収容しておき、これが出力された時点で前記
時点を検知するようにする手法が存在する。この
手法によれば、シフトカウンタを用いてソースレ
ジスタ51のシフト回数を管理する必要がない。
In the embodiment, the words of the region to be cut out are inputted as they are into the source register 51, but it is also possible to input only the necessary image data strings with their ends (left end in the figure) aligned. Of course. Furthermore, in the embodiment, a method for detecting the point in time when all the necessary image data has been stored in the result register 57 was not explained;
For example, there is a method of storing a carry bit in advance in the result register 57 and detecting the point in time when the carry bit is output. According to this method, there is no need to manage the number of shifts of the source register 51 using a shift counter.

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

第1図はラスタスキヤニング方式による原稿の
読み取りを説明するための平面図、第2図はラス
タスキヤニング方式で読み取られたイメージデー
タをメモリ内に格納した状態を示す説明図、第3
図は原稿の切り出し部分を示す平面図、第4図は
同一部分をメモリ内で切り出す状態を示す説明
図、第5図〜第19図は本発明の一実施例を説明
するためのもので、このうち第5図はイメージデ
ータの任意領域切り出し装置のブロツク図、第6
図は矩形状に切り出しを行う場合の原稿上の画素
の状態を示す説明図、第7図は第6図に示した切
り出しを行う場合のソースレジスタ等の信号状態
を表わしたもので、同図Aはソースレジスタに所
望のワードを収容した状態を示す説明図、同図B
はソースレジスタが3回シフト動作を行つた後の
状態を示す説明図、同図Cは4回目のシフト動作
を行つた後の状態を示す説明図、同図Dはこの状
態でリザルトレジスタを1回シフトさせた状態を
示す説明図、同図Eは5回目のシフト動作を行つ
た後の状態を示す説明図、同図Fは6回目のシフ
ト動作を行つた後の状態を示す説明図、同図Gは
7回目のシフト動作を行つた後の状態を示す説明
図、第8図A〜Dは5回目のシフト動作における
リザルトレジスタに供給される信号の処理過程を
示した説明図、第9図は6回目のシフト動作にお
けるリザルトレジスタに供給される信号の処理過
程を示した説明図、第10図は第6図に示した矩
形領域のイメージデータを連続したイメージデー
タに変換した状態を示す説明図、第11図は3角
形の形に切り出しを行う場合の原稿上の画素の状
態を示す説明図、第12図は2ワード以上に渡る
イメージデータを切り出す場合の説明図、第13
図はメモリ内で分断されているイメージデータの
状態を示す説明図、第14図は第13図に示した
イメージデータについて連続したイメージデータ
に変換するための手順におけるソースレジスタ等
の信号状態を示したもので、同図Aはソースレジ
スタに所望のワードを収容した状態を示す説明
図、同図Bは1回目のシフト動作を行つた後の状
態を示す説明図、同図Cは2回目のシフト動作を
行つた後の状態を示す説明図、同図Dは3回目の
シフト動作を行つた後の状態を示す説明図、同図
Eは4回目のシフト動作を行つた後の状態を示す
説明図、第15図は連続したイメージデータに変
換された状態を示す説明図、第16図は5角形の
形に切り出しを行う場合の原稿上の画素の状態を
示す説明図、第17図は5角形の領域に存在する
イメージデータを一般化した説明図、第18図は
ソースレジスタに各ワードが収容された状態を示
す説明図、第19図は切り出されるイメージデー
タとこれらのイメージデータを格納するソースレ
ジスタ内のシフトレジスタとの関係を示す説明図
である。 2……メモリ、17……三角領域、18……五
角形の領域、51……ソースレジスタ、53……
シフトコントロールレジスタ、56……シフトコ
ントロール回路、57……リザルトレジスタ、6
1……領域。
FIG. 1 is a plan view for explaining reading of a document using the raster scanning method, FIG. 2 is an explanatory diagram showing the state in which image data read using the raster scanning method is stored in memory, and FIG.
FIG. 4 is an explanatory diagram showing a state in which the same portion is cut out in memory, and FIGS. 5 to 19 are for explaining an embodiment of the present invention. Of these, Fig. 5 is a block diagram of a device for cutting out arbitrary areas of image data, and Fig. 6 is a block diagram of a device for cutting out arbitrary areas of image data.
The figure is an explanatory diagram showing the state of pixels on a document when cutting out into a rectangular shape, and Figure 7 shows the signal state of the source register, etc. when cutting out as shown in Figure 6. A is an explanatory diagram showing a state in which the desired word is stored in the source register, and B is the same diagram.
is an explanatory diagram showing the state after the source register has performed the shift operation three times, C is an explanatory diagram showing the state after the fourth shift operation, and D is an explanatory diagram showing the state after the source register has performed the shift operation for the fourth time. An explanatory diagram showing the state after the fifth shift operation, Figure E is an explanatory diagram showing the state after the fifth shift operation, and Figure F is an explanatory diagram showing the state after the sixth shift operation, 8G is an explanatory diagram showing the state after the seventh shift operation, FIGS. 8A to 8D are explanatory diagrams showing the process of processing signals supplied to the result register in the fifth shift operation, Figure 9 is an explanatory diagram showing the processing process of the signal supplied to the result register in the sixth shift operation, and Figure 10 shows the state in which the rectangular area image data shown in Figure 6 is converted into continuous image data. FIG. 11 is an explanatory diagram showing the state of pixels on a document when cutting out into a triangular shape. FIG. 12 is an explanatory diagram when cutting out image data of two or more words.
The figure is an explanatory diagram showing the state of image data divided in memory, and Fig. 14 shows the signal states of source registers, etc. in the procedure for converting the image data shown in Fig. 13 into continuous image data. Figure A is an explanatory diagram showing the state in which the desired word is stored in the source register, Figure B is an explanatory diagram showing the state after the first shift operation, and Figure C is an explanatory diagram showing the state after the second shift operation. An explanatory diagram showing the state after performing the shift operation. Figure D is an explanatory diagram showing the state after the third shift operation. Figure E shows the state after the fourth shift operation. An explanatory diagram, Fig. 15 is an explanatory diagram showing the state converted into continuous image data, Fig. 16 is an explanatory diagram showing the state of pixels on the document when cutting out into a pentagonal shape, and Fig. 17 is an explanatory diagram showing the state of pixels on the document when cutting out into a pentagonal shape. An explanatory diagram that generalizes the image data existing in a pentagonal area. Figure 18 is an explanatory diagram showing the state in which each word is stored in the source register. Figure 19 is an explanatory diagram showing the image data to be cut out and the storage of these image data. FIG. 2 is an explanatory diagram showing the relationship between a shift register in a source register and a shift register. 2...Memory, 17...Triangular area, 18...Pentagonal area, 51...Source register, 53...
Shift control register, 56...Shift control circuit, 57...Result register, 6
1... area.

Claims (1)

【特許請求の範囲】 1 切り出しを行おうとする原稿上の領域に存在
するイメージデータをワード単位でメモリから読
み出す読出手段と、 ワード単位でイメージデータを格納するシフト
レジスタを複数並列に配置してなるソースレジス
タと、 このソースレジスタ内のシフトレジスタをイメ
ージデータの切り出しの構造に対応して選定し、
この選定されたシフトレジスタに前記読出手段に
よつて読み出されたイメージデータを1ワードず
つ格納する格納手段と、 ソースレジスタを構成する各シフトレジスタか
ら出力されるキヤリービツトを1ビツトずつパラ
レルに入力すべく配置され、イメージデータを格
納したそれぞれのシフトレジスタから出力される
キヤリービツトのうち切り出される領域に存在す
るビツトのみを収容するリザルトレジスタと、 前記選定された全シフトレジスタの1回のシフ
ト動作が終了するたびに、このリザルトレジスタ
を1ビツト分所定方向にシフトさせ、まだキヤリ
ービツトの収容されていない位置に次のキヤリー
ビツトが収容されるように制御する制御手段 とを備え、前記領域内に存在するイメージデータ
のみをリザルトレジスタ内に順次収容し、切り出
したイメージデータのみによる連続的なデータを
作成することを特徴とするイメージデータの任意
領域切り出し装置。
[Scope of Claims] 1. A reading device that reads image data existing in an area on a document to be cut out from a memory in word units, and a plurality of shift registers that store image data in word units, arranged in parallel. Select a source register and a shift register within this source register according to the structure of image data extraction,
Storage means stores the image data read out by the reading means word by word in the selected shift register, and carry bits outputted from each shift register constituting the source register are input in parallel one by one. one shift operation of all the selected shift registers is completed; control means for controlling the result register to be shifted by one bit in a predetermined direction each time the result register is stored so that the next carry bit is stored in a position where no carry bit has been stored, An arbitrary area cutting device for image data, characterized in that only the data is sequentially stored in a result register, and continuous data is created from only the cut out image data.
JP56215029A 1981-12-28 1981-12-28 Sending out device of optional area of image data Granted JPS58114281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56215029A JPS58114281A (en) 1981-12-28 1981-12-28 Sending out device of optional area of image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56215029A JPS58114281A (en) 1981-12-28 1981-12-28 Sending out device of optional area of image data

Publications (2)

Publication Number Publication Date
JPS58114281A JPS58114281A (en) 1983-07-07
JPS6361710B2 true JPS6361710B2 (en) 1988-11-30

Family

ID=16665560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56215029A Granted JPS58114281A (en) 1981-12-28 1981-12-28 Sending out device of optional area of image data

Country Status (1)

Country Link
JP (1) JPS58114281A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62249886A (en) * 1986-04-22 1987-10-30 株式会社日立製作所 passenger conveyor

Also Published As

Publication number Publication date
JPS58114281A (en) 1983-07-07

Similar Documents

Publication Publication Date Title
JP2523222B2 (en) Image reduction / enlargement method and apparatus
US4627020A (en) Method for rotating a binary image
JPH0535435B2 (en)
EP0248235B1 (en) Image processing apparatus having function of enlargement and/or shrinkage of image
EP0143533A2 (en) Image data expanding and/or contracting method and apparatus
US4152697A (en) Parallel run-length decoder
US5649034A (en) Method and device for smoothing an enlarged image
JPS6361710B2 (en)
JP3110041B2 (en) Image information processing device
JPS6353586B2 (en)
JP2638788B2 (en) Image reduction circuit
EP0404397B1 (en) Image processing system
JPH07118002B2 (en) Image processing device
JP2666733B2 (en) High-speed graphic processor
JP2750412B2 (en) Image processing device
JP2753349B2 (en) Arbitrary angle rotation image data input / output method, input / output circuit thereof, and electronic file device using the same
JPS61148487A (en) Expander/reducer
JP2613589B2 (en) Mask processing method
JP2674887B2 (en) Word processor
JPS6230053A (en) Dot-shaped scaling method
JP2772652B2 (en) Image reduction processor
JPH07320044A (en) Method and apparatus for conversion of geometry of image data
JPH0560598B2 (en)
JPH09172540A (en) Image processing device
JPH02227784A (en) Image data store/output system