JPH0244183B2 - - Google Patents
Info
- Publication number
- JPH0244183B2 JPH0244183B2 JP56097153A JP9715381A JPH0244183B2 JP H0244183 B2 JPH0244183 B2 JP H0244183B2 JP 56097153 A JP56097153 A JP 56097153A JP 9715381 A JP9715381 A JP 9715381A JP H0244183 B2 JPH0244183 B2 JP H0244183B2
- Authority
- JP
- Japan
- Prior art keywords
- row
- circuit
- column
- prediction
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/40—Picture signal circuits
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Description
【発明の詳細な説明】
本発明は画像データ処理装置に関し、特に原画
像パターンから、そのサイズを縮小あるいは拡大
した複数のドツト・サイズの画像パターンを得る
ことができる画像データ処理装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an image data processing apparatus, and more particularly to an image data processing apparatus that can obtain image patterns of a plurality of dot sizes by reducing or enlarging the size of an original image pattern.
文字パターンのような画像パターンを縮小する
場合、画像パターンを例えば3×3のブロツク
に区分けし、そのブロツクのパターンが第1図イ
のようなときにはこれをロのような2×2のパタ
ーンに縮小し、同イ′のようなときにはこれを
ロ′のようなパターンに縮小するというような方
式、第2図イに示すように画像パターンA,
B,C,D……がありこれを3×3に縮小変換す
るとき、例えばa=A,b=B・C,c=D……
というようなロジツクにより縮小パターンを求め
る方式、第3図に示す如く、画像パターンを水
平、垂直にスキヤンして、その画像パターンの特
徴的なところ以外のところの画像パターンをライ
ン単位で間引き削除するという方式等がある。 When reducing an image pattern such as a character pattern, the image pattern is divided into, for example, 3 x 3 blocks, and if the pattern of the blocks is as shown in Figure 1 A, it is converted into a 2 x 2 pattern as shown in B. In this method, the image pattern A, as shown in Fig. 2 A, is reduced to a pattern like A'.
When there are B, C, D... and you want to reduce them to 3x3, for example, a=A, b=B・C, c=D...
As shown in Figure 3, this method uses logic to obtain a reduced pattern.The image pattern is scanned horizontally and vertically, and the image pattern in areas other than the characteristic areas of the image pattern is thinned out line by line. There is a method called.
しかしながら上記は比較対象すべきパターン
が非常に多くなり処理時間が長く、上記は縮小
処理を行うための専用の演算回路を用いて縮小処
理を行うため回路点数が増加し、これまた処理に
長時間かかるのみならず複雑なハードが必要とな
る。そして上記は文字パターンのデザイン時
に、予めその特徴的なところ以外の部分に削除
行、列を決めてこれを縮小情報として付加してお
き、この縮小情報に基づいて縮小処理を行うので
その特徴的なところ以外の部分を検出するために
これまたハードが複雑になるのみならず、縮小処
理時の自由度がきかないという問題がある。 However, in the above method, there are a large number of patterns to be compared and the processing time is long.In the above method, the reduction processing is performed using a dedicated arithmetic circuit for performing the reduction processing, so the number of circuits increases, and the processing time also takes a long time. Not only this, but also complicated hardware is required. In the above case, when designing a character pattern, the lines and columns to be deleted are determined in advance in areas other than the characteristic parts, and this is added as reduction information.The reduction process is performed based on this reduction information, so the characteristic Not only does the hardware become complicated to detect parts other than the specified areas, but there is also the problem that the degree of freedom during reduction processing is limited.
したがつて本発明は、上記問題点を改善して、
簡単なハードで短かい処理時間で画像パターンを
縮小あるいは拡大したドツトパターンに変えるこ
とができるようにした画像データ処理装置を提供
することを目的とする。そしてこのために本発明
の画像データ処理装置では、画像を読取ることに
より得られた画像データの一部を行または列単位
で削除あるいは挿入することにより画像サイズを
変更するようにした画像データ処理装置におい
て、画像データを読取りその予測データを得る予
測回路と、該予測回路から得られた予測データが
前記画像データと一致するか否かを示す予測誤差
データを作成する予測誤差データ作成手段と、前
記予測誤差データを行または列単位で計数し、一
定単位数の行あるいは列毎にその大小を比較する
予測誤差計数比較手段と、該予測誤差計数比較手
段の出力にもとづき一定単位数毎に予測誤差デー
タのもつとも少ない行または列を選出し、もつと
も少ない行または列が複数存在するときは予め定
められた優先順位によりそのうちの1つを選出し
て、縮小または拡大処理すべき行あるいは列を選
定する優先指定手段を設け、この優先指定手段の
出力にもとづき前記画像データを縮小または拡大
制御するようにしたことを特徴とする。 Therefore, the present invention improves the above problems, and
To provide an image data processing device capable of converting an image pattern into a reduced or enlarged dot pattern with simple hardware and short processing time. For this purpose, the image data processing device of the present invention changes the image size by deleting or inserting part of the image data obtained by reading the image in units of rows or columns. a prediction circuit that reads image data and obtains its prediction data; a prediction error data creation means that creates prediction error data indicating whether or not the prediction data obtained from the prediction circuit matches the image data; A prediction error count comparison means that counts prediction error data in units of rows or columns and compares the magnitude for each row or column of a fixed number of units, and a prediction error count for every fixed number of units based on the output of the prediction error count comparison means. Select the row or column with the least amount of data, and if there are multiple rows or columns with the least amount of data, select one of them according to a predetermined priority order to select the row or column to be reduced or enlarged. The present invention is characterized in that a priority designation means is provided, and the image data is controlled to be reduced or enlarged based on the output of the priority designation means.
ところで、本願を含み通常、イメージデータを
他の装置に送信するために行われる圧縮処理を行
う際、イメージデータの周辺画素から予測値を算
出し、その算出した予測値と実際のイメージデー
タとを比較し誤差を検出することが行われてい
る。これは圧縮データのレングス間の区切りをつ
けるためのものであり、例えば連続する白から黒
に変化した位置までを1つの圧縮データとして送
信し、または黒から白に変化した位置までを1つ
の圧縮データとして送信するために用いられるも
のである。 By the way, when performing compression processing, including the present application, which is usually performed to transmit image data to another device, a predicted value is calculated from peripheral pixels of the image data, and the calculated predicted value is compared with the actual image data. Comparisons are made to detect errors. This is to set a break between the lengths of compressed data. For example, the continuous position from white to black can be sent as one compressed data, or the position from black to white can be transmitted as one compressed data. It is used for sending data.
本願の発明のポイントは、この通常圧縮処理を
行われる上で用いる、予測値に伴うイメージデー
タの誤差を示す情報を以下に説明の如く、縮小処
理に利用するものである。 The key point of the invention of the present application is that information indicating errors in image data associated with predicted values, which is used when performing this normal compression processing, is used for reduction processing as described below.
本発明を一実施例にもとづき詳述するに先立
ち、本発明の概略を第4図ないし第6図、第8
図、第9図、第10図等にもとづき説明する。 Before describing the present invention in detail based on one embodiment, the outline of the present invention will be explained in FIGS. 4 to 6 and 8.
The explanation will be given based on FIG. 9, FIG. 10, etc.
まず、第5図イに示す如く、参照画素a,b,
cの状態に応じて予測対象画素xの状態を予測す
る。この予測対象画素xの予測値は、第5図ロ
に示す如く、前記a,b,cの状態により定めら
れる。 First, as shown in FIG. 5A, reference pixels a, b,
The state of the prediction target pixel x is predicted according to the state of c. The predicted value of the prediction target pixel x is determined by the states of a, b, and c, as shown in FIG. 5(b).
そして、例えば第4図に示す如く、30×30の文
字パターンに対し、前記第5図に示すように予測
値を求め、この予測値と実際の前記文字パターン
との一致を求め、一致したものを「0」、不一致
のものを「1」として第6図に示す予測誤差を求
める。なお第4図において上部より水平方向に走
査して予測値を求める場合には、その第1列目、
第1行目は文字枠外の白画素「0」を参照画素と
して用いる。このようにして予測誤差を求め、水
平、垂直方向にそれぞれ5行あるいは5列単位毎
に誤り数「1」の和を求める。そしてこれらの各
単位毎にもつとも誤り数「1」の和の少ない行ま
たは列を縮小する場合の削除候補とする。もしも
候補が複数ある場合には、第8図ハに示す順位の
数字にしたがつて削除するものを決定する。この
誤り数「1」の少ないということは、パターンの
変化の少ない部分を示しているので、このように
予測誤差の誤り数をもとにして削除するものを決
定することができる。かくして第6図の枠外に示
す×印の行または列を削除対象として決定するこ
とができる。そしてこの×印の行または列の文字
パターンを削除した結果、第9図に示す如く、24
×24ビツトの縮小した文字パターンを得ることが
できる。 For example, as shown in FIG. 4, for a 30×30 character pattern, a predicted value is determined as shown in FIG. 5, and a match between this predicted value and the actual character pattern is determined. The prediction error shown in FIG. 6 is obtained by setting "0" for "0" and "1" for mismatch. In addition, when calculating the predicted value by scanning horizontally from the top in FIG. 4, the first column,
In the first line, a white pixel "0" outside the character frame is used as a reference pixel. In this way, the prediction error is determined, and the sum of the number of errors "1" is determined for every 5 rows or 5 columns in the horizontal and vertical directions. Then, for each of these units, rows or columns that have a smaller sum of error numbers "1" are selected as deletion candidates when reducing the size. If there are multiple candidates, the one to be deleted is determined according to the ranking numbers shown in FIG. 8C. A small number of errors "1" indicates a portion where the pattern changes little, so it is possible to determine what to delete based on the number of prediction errors. In this way, the rows or columns marked with an x mark outside the frame of FIG. 6 can be determined to be deleted. As a result of deleting the character pattern in the row or column marked with this X, the result is 24 characters as shown in Figure 9.
A reduced character pattern of ×24 bits can be obtained.
また、第10図Aに示す如きパターンを4/5に
縮小する場合、その予測誤差および誤り数、削除
行は第10図Bに示す如きものとなり、×印の行
が削除されるものとなる。 Furthermore, when reducing the pattern shown in Figure 10A to 4/5, the prediction error, number of errors, and deleted lines will be as shown in Figure 10B, and the lines marked with an x will be deleted. .
次に本発明の一実施例を第4図ないし第9図に
もとづき説明する。 Next, one embodiment of the present invention will be described based on FIGS. 4 to 9.
第4図は、文字を例えば光学的装置で読取り、
これを2値化したことにより得られる文字パター
ンである。 FIG. 4 shows that characters are read by an optical device, for example,
This is a character pattern obtained by binarizing this.
第5図は予測値の作成説明図であり、同イは予
測参照画素配列および予測対象画素を示し、同ロ
は予測対象画素の予測値を決定する説明図であ
る。 FIG. 5 is an explanatory diagram for creating a predicted value, in which A shows a prediction reference pixel array and a pixel to be predicted, and B is an explanatory diagram for determining a predicted value of a pixel to be predicted.
第6図は予測誤差および誤り数、削除対象図で
ある。 FIG. 6 shows the prediction error, the number of errors, and a diagram to be deleted.
第7図は、本発明において使用する予測誤差作
成回路図および予測誤差伝送復元図であり、これ
らは既知のもので文字パターンの縮小に必要なも
のであり、本発明の前処理的なものとして利用す
るものである。 FIG. 7 is a prediction error generation circuit diagram and a prediction error transmission restoration diagram used in the present invention. These are known and necessary for character pattern reduction, and are used as preprocessing of the present invention. It is something to be used.
第8図イは本発明の一実施例構成図、同ロはそ
の比較回路の詳細図、同ハは削除優先順位説明
図、同ニは優先指定回路動作説明図である。 FIG. 8A is a block diagram of an embodiment of the present invention, FIG. 8B is a detailed diagram of the comparison circuit, FIG.
第9図は、第4図に示す文字パターンを本発明
により縮小して得た文字パターンである。 FIG. 9 shows a character pattern obtained by reducing the character pattern shown in FIG. 4 according to the present invention.
図中、1は文字パターンデータ・バツフアメモ
リ(以下PDBという)、2はシフトレジスタ、3
は予測回路、4はEOR回路、5はランレングス
符号化回路、6は文字パターン圧縮データ・バツ
フア、7はランレングス復号化回路、8は復元回
路、9は復元文字パターン・バツフア(以下
RPDBという)、10はバツフアメモリ、11は
メモリ読出制御部、12はエラーカウンタ、13
は行誤り数レジスタ、14は列誤り数レジスタ、
15は第1スイツチング回路、16は比較回路、
17は優先指定回路、18は第2スイツチング回
路、19は削除行レジスタ、20は削除列レジス
タ、21は一致回路、22はカウンタ、23はレ
ジスタである。 In the figure, 1 is character pattern data buffer memory (hereinafter referred to as PDB), 2 is a shift register, and 3
4 is a prediction circuit, 4 is an EOR circuit, 5 is a run-length encoding circuit, 6 is a character pattern compressed data buffer, 7 is a run-length decoding circuit, 8 is a restoration circuit, 9 is a restored character pattern buffer (hereinafter referred to as
RPDB), 10 is a buffer memory, 11 is a memory read control unit, 12 is an error counter, 13
is the row error number register, 14 is the column error number register,
15 is a first switching circuit, 16 is a comparison circuit,
17 is a priority designation circuit, 18 is a second switching circuit, 19 is a deleted row register, 20 is a deleted column register, 21 is a match circuit, 22 is a counter, and 23 is a register.
PDB1は、文字あるいは画像を例えば光学装
置で走査して読取り2値化された、第4図に示す
如きオリジナル・パターンがセツトされるバツフ
アである。 The PDB 1 is a buffer in which an original pattern as shown in FIG. 4, which is obtained by scanning characters or images with an optical device and converting them into binary data, is set.
シフトレジスタ2は、第5図イ,ロに示す如
く、参照画素a,b,cから予測対象画素xの予
測値を求めるために、参照画素a,b,cを同
時に出力するためのものである。ここでシフトレ
ジスタ2の第1構成部2−0は予測対象画素xに
対して1行+1ビツトだけシフトしたものを出力
し、第2構成部2−1は1行だけシフトしたもの
を出力し、第3構成部2−2は1ビツトだけシフ
トしたものを出力する。 The shift register 2 is for simultaneously outputting reference pixels a, b, and c in order to obtain the predicted value of the prediction target pixel x from the reference pixels a, b, and c, as shown in FIG. 5 A and B. be. Here, the first component 2-0 of the shift register 2 outputs the prediction target pixel x shifted by 1 row + 1 bit, and the second component 2-1 outputs the result shifted by 1 row. , the third component 2-2 outputs a signal shifted by one bit.
予測回路3は、第5図イ,ロに示す如く、参照
画素a,b,cから予測対象画素xの予測値を
求める予測値作成回路であり、第5図ロに示す如
き論理にしたがつた予測値を出力するように構
成されている。この場合、参照画素a,b,cの
値はシフトレジスタ2より伝達され、例えば前記
a,b,cが〔1,1,1〕のときはは「1」
を出力し、また〔1,1,0〕のときは「0」を
出力するものであつて、ROMで構成することも
できる。 The prediction circuit 3 is a predicted value generation circuit that calculates the predicted value of the prediction target pixel x from the reference pixels a, b, and c, as shown in FIG. It is configured to output a predicted value. In this case, the values of reference pixels a, b, and c are transmitted from the shift register 2, and for example, when a, b, and c are [1, 1, 1], the values of reference pixels a, b, and c are "1".
It also outputs "0" when it is [1, 1, 0], and can also be configured with a ROM.
EOR回路4は、前記予測回路3から作成され
た予測値の値が実際のオリジナル・パターンの
xと一致するかどうかを検出するものであつて、
一致すれば「0」を出力し一致しなければ誤りと
しての「1」を出力する。それ故、予測回路3に
おいて第4図の文字パターンを処理する場合に、
EOR回路4からは第6図に示す「1」、「0」が
出力される。 The EOR circuit 4 detects whether the predicted value created by the prediction circuit 3 matches the actual original pattern x, and
If they match, "0" is output; if they do not match, "1" is output as an error. Therefore, when processing the character pattern shown in FIG. 4 in the prediction circuit 3,
The EOR circuit 4 outputs "1" and "0" shown in FIG.
ランレングス符号化回路5は「1」または
「0」の値が連続するビツト数を示すランレング
ス符号を発生するものであつて、データ伝送量を
圧縮するためのものである。前記EOR回路4か
ら出力された、第6図に示す「1」、「0」の予測
誤差データを、「0」が何ビツト連続しているデ
ータ、「1」が何ビツト連続しているデータとい
うことを示すランレングス符号の圧縮データで伝
送する。 The run-length encoding circuit 5 generates a run-length code indicating the number of consecutive bits of "1" or "0", and is used to compress the amount of data transmitted. The prediction error data of "1" and "0" shown in FIG. 6 outputted from the EOR circuit 4 is divided into data with how many consecutive "0" bits and data with how many consecutive "1" bits. It is transmitted as compressed data with a run-length code indicating that.
文字パターン圧縮データ・バツフア6は、前記
ランレングス符号化回路5から出力されたランレ
ングス符号である圧縮データが保持されるバツフ
アである。 The character pattern compressed data buffer 6 is a buffer in which compressed data, which is a run-length code outputted from the run-length encoding circuit 5, is held.
ランレングス復号化回路7は、前記文字パター
ン圧縮データ・バツフア6から伝達されたランレ
ングス符号を解読して、第6図に示す如き「1」、
「0」の予測誤差データに復号するものである。 The run-length decoding circuit 7 decodes the run-length code transmitted from the character pattern compressed data buffer 6 and outputs "1" as shown in FIG.
This is to decode into prediction error data of "0".
復元回路8は前記ランレングス復号化回路7か
ら伝達された予測誤差データにもとづき第4図に
示す文字パターンを復元するものである。そして
この結果復元された文字パターンが、RPDB9に
保持されるものである。 The restoration circuit 8 restores the character pattern shown in FIG. 4 based on the prediction error data transmitted from the run-length decoding circuit 7. The character pattern restored as a result is held in the RPDB9.
バツフアメモリ10は、前記ランレングス復号
化回路7から出力された、第6図に示す如き
「1」、「0」の予測誤差データが保持されるバツ
フアである。 The buffer memory 10 is a buffer in which prediction error data of "1" and "0" outputted from the run-length decoding circuit 7 and shown in FIG. 6 is held.
メモリ読出制御部11はバツフアメモリ10に
保持されている予測誤差データを行毎にあるいは
列毎に読出すための制御を行なうものであり、行
毎に読出した場合にはこれをスイツチS1の固定接
点S1-1に出力し、列毎に読出した場合にはこれを
固定接点S1-2に出力する。 The memory read control unit 11 performs control to read out the prediction error data held in the buffer memory 10 row by row or column by column, and when it is read out row by row, it is fixed by switch S1 . It is output to the contact S 1-1 , and when it is read out column by column, it is output to the fixed contact S 1-2 .
エラーカウンタ12は、前記の如くバツフアメ
モリ10から読出された予測誤差データに誤り
「1」が含まれている数を計数するカウンタであ
る。 The error counter 12 is a counter that counts the number of errors "1" included in the prediction error data read from the buffer memory 10 as described above.
行誤り数レジスタ13はエラーカウンタ12か
ら出力された誤り「1」の各行毎の計数値を例え
ば5行分だけ各行毎に保持するレジスタである。 The row error number register 13 is a register that holds the count value of error "1" output from the error counter 12 for each row, for example, for each row for five rows.
列誤り数レジスタ14はエラーカウンタ12か
ら出力された誤り「1」の各列毎の計数値を例え
ば5列分だけ各列毎に保持するレジスタである。 The column error number register 14 is a register that holds the count value of error "1" outputted from the error counter 12 for each column for each column, for example, for five columns.
第1スイツチング回路15は行誤り数レジスタ
13あるいは列誤り数レジスタ14から伝達され
たデータを選択的に出力するものである。 The first switching circuit 15 selectively outputs the data transmitted from the row error number register 13 or the column error number register 14.
比較回路16は、第1スイツチング回路15か
ら同時出力された誤り数のうち、もつとも小さい
値のものを検出するものであつて、その具体的構
成が第8図ロに示される。すなわち、一致回路2
1とカウンタ22を内蔵しており、一致回路21
は一致検出部21−0ないし21−4により構成
されている。そしてカウンタ22は0,1,2…
…30を順次出力するものである。一致検出部21
−0ないし21−4のうち1つでもカウンタ22
からの出力数値と一致した場合には、一致を検出
した一致検出部は「1」を出力し、他は「0」を
出力するとともにカウンタ22をリセツトするよ
うに構成されている。そして一致検出部21−0
ないし21−4の出力はレジスタ23に伝達さ
れ、一時的に保持される。例えば第6図右側の最
初の上部5行に示す如く、誤り数が〔0,4,
8,4,0〕の場合には、一致検出部21−0に
初めの「0」が伝達され、一致検出部21−1に
は初めの「4」が伝達される。そして以下この誤
り数の順で一致検出部21−2ないし21−4に
印加される。このときカウンタ22は最初に数値
「0」が出力されているので、誤り数「0」が伝
達される一致検出部21−0および一致検出部2
1−4が一致出力「1」を出力し、他の一致検出
部21−1ないし21−3は「0」を出力する。
また、第6図下方に示すように、最後の5列の誤
り数〔1,6,3,6,2〕が各一致検出部21
−0ないし21−4に伝達されたときは、カウン
タ22が「1」を出力したとき一致検出部21−
0が一致出力「1」を出力し、他は「0」を出力
する。そしてカウンタ22はリセツトされ「「0」
を出力する。 The comparator circuit 16 detects the smallest value among the number of errors simultaneously output from the first switching circuit 15, and its specific configuration is shown in FIG. 8B. That is, matching circuit 2
1 and a counter 22, and a matching circuit 21
is composed of match detection units 21-0 to 21-4. And the counter 22 is 0, 1, 2...
...30 are output sequentially. Match detection unit 21
Counter 22 with any one of -0 to 21-4
If the matching detection section matches the output numerical value from , the matching detection section that detects the matching outputs "1", and the others output "0" and reset the counter 22. And the match detection unit 21-0
The outputs of the registers 21-4 are transmitted to the register 23 and temporarily held there. For example, as shown in the first five lines on the right side of Figure 6, the number of errors is [0, 4,
8, 4, 0], the first "0" is transmitted to the match detection section 21-0, and the first "4" is transmitted to the match detection section 21-1. Then, the signals are applied to the coincidence detecting sections 21-2 to 21-4 in the order of the number of errors. At this time, since the counter 22 initially outputs the numerical value "0", the coincidence detecting section 21-0 and the coincidence detecting section 2 to which the error number "0" is transmitted.
1-4 outputs a coincidence output "1", and the other coincidence detection sections 21-1 to 21-3 output "0".
Also, as shown in the lower part of FIG. 6, the number of errors [1, 6, 3, 6, 2] in the last five columns is
-0 to 21-4, when the counter 22 outputs "1", the match detection unit 21-
0 outputs a matching output "1", and the others output "0". The counter 22 is then reset to ``0''.
Output.
優先指定回路17は削除すべき行または列を指
定するものであつて、図示の例では5行(あるい
は5列)のうちより1つ削除すべきものを指定す
る。この削除対象を決定する論理は、その5行
(あるいは5列)のうち誤り数のもつとも少ない
行(あるいは列)を削除すべきものとする。しか
し誤り数のもつとも少ないものが複数存在する場
合には、削除順位は第8図ハに示す順位にもとづ
き特定の1つを定めるものである。この優先指定
回路17は、第8図ニに示す論理を有するROM
で構成できる。 The priority designation circuit 17 designates a row or column to be deleted, and in the illustrated example, one out of five rows (or five columns) is designated to be deleted. The logic for determining the deletion target is that out of the five rows (or five columns), the row (or column) with the smallest number of errors should be deleted. However, if there are multiple errors with the smallest number of errors, the deletion order is determined based on the order shown in FIG. 8C. This priority designation circuit 17 is a ROM having the logic shown in FIG.
It can be composed of
第2スイツチング回路18は、優先指定回路1
7から出力された削除すべき行を削除行レジスタ
19に順次伝達し、また削除すべき列を削除列レ
ジスタ20に順次伝達するものである。 The second switching circuit 18 is a priority designation circuit 1
7 to be deleted are sequentially transmitted to the deleted row register 19, and columns to be deleted are sequentially transmitted to the deleted column register 20.
削除行レジスタ19は第2スイツチング回路1
8から伝達された削除すべき行が例えば一画像分
セツトされるレジスタであつて、第6図に示す予
測誤差データの場合には、前記論理にもとづき選
定された削除行(第6図右側の×印を付与された
行)が順次記入されるものである。 The deleted row register 19 is connected to the second switching circuit 1.
For example, if the line to be deleted transmitted from 8 is a register set for one image and the prediction error data shown in FIG. The rows marked with an x mark) are filled in sequentially.
削除列レジスタ20は、第2スイツチング回路
18から伝達された削除すべき行が、例えば一画
像分セツトされるレジスタであつて、第6図に示
す予測誤差データの場合には、前記論理にもとづ
き選定された削除列(第6図下側の×印を付与さ
れた列)が順次記入されるものである。 The deletion column register 20 is a register in which the row to be deleted transmitted from the second switching circuit 18 is set for one image, for example, and in the case of prediction error data shown in FIG. The selected deletion columns (the columns marked with an x in the lower part of FIG. 6) are filled in in sequence.
次に第7図および第8図の動作について、他図
を参照しつつ説明する。 Next, the operations shown in FIGS. 7 and 8 will be explained with reference to other figures.
(1) 第7図において、PDB1に第4図に示すオ
リジナル・パターンがセツトされたとき、シフ
トレジスタ2および予測回路3により、PDB
1のパターンに対し前記の如き予測値が出力
され、この予測値がPDB1にセツトされた
データとEOR回路4で比較される。そしてそ
の一致・不一致にもとづきEOR回路4から第
6図に示す如き予測誤差データが出力される。
この予測誤差データはランレングス符号化回路
5によりランレングス符号に圧縮されて送出さ
れ文字パターン圧縮データ・バツフア6に保持
される。このようにして保持されたランレング
ス符号はランレングス復号化回路7に伝達さ
れ、これにより第6図に示す予測誤差データに
復元される。そしてこの復元された予測誤差デ
ータが復元回路8に伝達され、これにより、第
4図に示すオリジナル・パターンが再生され
る。このようにして既知の圧縮、復元工程によ
り得られたオリジナル・パターンがRPDB9に
保持される。(1) In FIG. 7, when the original pattern shown in FIG. 4 is set in PDB 1, shift register 2 and prediction circuit 3
A predicted value as described above is output for the pattern 1, and this predicted value is compared with the data set in PDB1 in the EOR circuit 4. Based on the match/mismatch, the EOR circuit 4 outputs prediction error data as shown in FIG.
This prediction error data is compressed into a run-length code by a run-length encoding circuit 5, sent out, and held in a character pattern compressed data buffer 6. The run-length code held in this manner is transmitted to the run-length decoding circuit 7, where it is restored to the prediction error data shown in FIG. The restored prediction error data is then transmitted to the restoration circuit 8, whereby the original pattern shown in FIG. 4 is reproduced. In this way, the original pattern obtained by the known compression and decompression process is held in the RPDB9.
(2) 一方、前記ランレングス復号化回路7により
復元された予測誤差データは、第8図イに示す
如く、バツフアメモリ10に保持される。そし
てメモリ読出制御部11はこのバツフアメモリ
10に保持された予測誤差データを、先ず第6
図の左上部より水平方向に1行ずつ読出す。こ
のときスイツチS1,S2の可動接点S1-0および
S2-0はそれぞれ固定接点S1-1,S2-1と接続して
いる。したがつて最初の1行目の予測誤差デー
タがメモリ読出制御部11により読出される
と、エラーカウンタ12はその予測誤差データ
のうちに存在する「1」をカウントするが、第
1行には「1」は0のため、エラーカウンタ1
2は「0」を出力し、これが行誤り数レジスタ
13にセツトされる。このようにしてメモリ読
出制御部11は以下順次に第2行、第3行……
と各行の予測誤差データを出力する。そしてこ
れに応じてエラーカウンタ12は各行の「1」
の数を順次計数し、これを行誤り数レジスタ1
3にセツトする。(2) On the other hand, the prediction error data restored by the run-length decoding circuit 7 is held in the buffer memory 10, as shown in FIG. 8A. Then, the memory read control unit 11 first reads the prediction error data held in the buffer memory 10 into the sixth buffer memory 10.
Read out one line at a time in the horizontal direction starting from the upper left of the figure. At this time, the movable contacts S 1-0 of switches S 1 and S 2 and
S 2-0 is connected to fixed contacts S 1-1 and S 2-1 , respectively. Therefore, when the first row of prediction error data is read by the memory read control unit 11, the error counter 12 counts "1" that exists in the prediction error data, but "1" is 0, so error counter 1
2 outputs "0", which is set in the row error number register 13. In this way, the memory read control unit 11 sequentially reads the second row, the third row, and so on.
and outputs the prediction error data for each row. In response to this, the error counter 12 is set to "1" for each line.
The number of row errors is counted sequentially, and this is stored in the row error number register 1.
Set to 3.
(3) そして第1行ないし第5行までの各行毎の計
数値〔0,4,8,4,0〕が行誤り数レジス
タ13にセツトされたとき、第1スイツチング
回路15はこれらの各数値を比較回路16に伝
達する。比較回路16はこれらの数値のうち、
もつとも値の小さい「0」を示す、第1行と第
5行のところに「1」を、他の行は「0」を出
力するので、この場合は「10001」を出力する。
そしてこれが優先指定回路17に伝達され、優
先指定回路17からは、第8図ハに示す順位に
もとづき、第5行に「1」を示す出力(5番目
の出力ラインに「1」が生じ、第2スイツチン
グ回路18に伝達される。かくして第2スイツ
チング回路18はこの第5行を示す信号を削除
行レジスタ19にセツトする。このようにし
て、削除行レジスタ19には、第1行〜第5行
の単位グループのうちから第5行を削除すべき
ことがセツトされる。(3) When the count values [0, 4, 8, 4, 0] for each row from the 1st row to the 5th row are set in the row error number register 13, the first switching circuit 15 The numerical value is transmitted to the comparison circuit 16. The comparator circuit 16 selects among these numerical values,
Since "1" is output in the first and fifth rows, which naturally indicate the smaller value "0", and "0" is output in the other rows, "10001" is output in this case.
This is then transmitted to the priority designation circuit 17, and the priority designation circuit 17 outputs "1" on the fifth line based on the order shown in FIG. The signal is transmitted to the second switching circuit 18.The second switching circuit 18 sets the signal indicating this fifth row in the deleted row register 19.In this way, the deleted row register 19 contains the signals indicating the fifth row. It is set that the fifth row should be deleted from the unit group of five rows.
(4) このようにして第1行〜第5行について削除
行が決定されるのに続き、行誤り数レジスタ1
3には第6行〜第10行における「1」の数
〔4,3,5,3,0〕がセツトされる。そし
てこれが同様にして比較回路16に伝達され、
そのもつとも小さな値「0」の第10行が「1」、
他の行が「0」となつて優先指定回路17に出
力される。かくして優先指定回路17はこの
「1」の第10行を示す信号(5番目の出力ライ
ンに「1」)を出力し、これが第2スイツチン
グ回路18を経由して削除行レジスタ19に伝
達される。かくして削除行レジスタ19には、
第6行〜第10行の単位グループのうちから第10
行を削除すべきことがセツトされる。このよう
なことが第11行〜第15行、第16行〜第20行……
と5行単位に行なわれ、その結果、削除行レジ
スタ19には、削除すべき行として更らに第12
行、第17行、第23行および第29行がセツトされ
ることになる。(4) After the lines to be deleted are determined for the 1st to 5th lines in this way, the line error number register 1
3 is set to the number of "1"s [4, 3, 5, 3, 0] in the 6th to 10th lines. This is then similarly transmitted to the comparator circuit 16,
The 10th row with the smallest value “0” is “1”,
The other rows become "0" and are output to the priority designation circuit 17. Thus, the priority designation circuit 17 outputs a signal indicating the 10th row of this "1"("1" to the fifth output line), and this is transmitted to the deletion row register 19 via the second switching circuit 18. . Thus, the deleted line register 19 contains
10th unit group from rows 6 to 10
It is set that the row should be deleted. This is what happens in lines 11 to 15, lines 16 to 20...
As a result, the deletion row register 19 contains the 12th row as the row to be deleted.
Rows 17, 23, and 29 will be set.
(5) かくして第6図の水平方向の各行に関して削
除行が選択されたあとで、メモリ読出制御部1
1は、バツフアメモリ10から予測誤差データ
を、第6図の左上部より垂直方向に1行ずつ読
出す。このときスイツチS1,S2の可動接点S1-0
およびS2-0は、今度は固定接点S1-2およびS2-2
と接続する。そして前記と同様に、第1列〜第
5列、第6列〜第10列毎にそれぞれ削除列を選
択し、これを列誤り数レジスタ14にセツトす
る。その結果、列誤り数レジスタ14には第1
列、第8列、第13列、第17列、第23列および第
26列が削除すべき列としてセツトされる。(5) After the lines to be deleted are selected for each horizontal line in FIG.
1 reads out prediction error data from the buffer memory 10 one by one in the vertical direction from the upper left of FIG. At this time, the movable contacts S 1-0 of switches S 1 and S 2
and S 2-0 are now fixed contacts S 1-2 and S 2-2
Connect with. Then, in the same manner as described above, columns to be deleted are selected for each of the first to fifth columns and the sixth to tenth columns, and set in the column error number register 14. As a result, the column error number register 14 contains the first
row, row 8, row 13, row 17, row 23 and row
26 columns are set as columns to be deleted.
(6) このようにして削除行レジスタ19および削
除列レジスタ20にそれぞれセツトされた行お
よび列にもとづき、第7図のRPDB9にセツト
された行および列のオリジナル・パターンを削
除することにより、30×30ビツトのオリジナ
ル・パターンを第9図に示す如き、24×24ビツ
トのパターンに縮小することができる。(6) Based on the rows and columns set in the deletion row register 19 and deletion column register 20 in this way, by deleting the original pattern of rows and columns set in the RPDB 9 of FIG. The original pattern of x30 bits can be reduced to a pattern of 24 x 24 bits as shown in FIG.
なお上記の説明ではパターンを30×30から24×
24に縮小した例について説明したが、勿論削除す
べき単位を5から4,3あるいは6……と変更す
ることにより適宜のサイズに縮小することができ
る。 In addition, in the above explanation, the pattern is 30×30 to 24×
Although an example in which the size is reduced to 24 has been described, it is possible to reduce the size to an appropriate size by changing the unit to be deleted from 5 to 4, 3, 6, etc.
それから、前記の如くして求めたもつとも誤り
数の少ない行あるいは列をそのまま次の行あるい
は列に追加挿入することによりパターンのサイズ
を拡大することができる。もつとも誤り数の少な
い行あるいは列が複数存在する場合には、前記と
同様の優先順位により挿入すべき行、列を選択で
きる。 Then, the size of the pattern can be expanded by inserting the row or column with the smallest number of errors found as described above into the next row or column. If there are multiple rows or columns with a small number of errors, the rows or columns to be inserted can be selected using the same priority order as described above.
なお前記実施例では文字パターンについて説明
したが、本発明は勿論これのみに限定されるもの
ではない。 Although character patterns have been described in the above embodiments, the present invention is of course not limited to this.
以上説明の如く、本発明によれば非常に簡単な
構成で、しかも文字パターンを1回の走査により
予測誤差を得ることができ、この予測誤差を行、
列方向にカウントすることによりきわめて簡単に
削除、挿入すべき行、列を検出することができる
ので画像の縮小または拡大処理をきわめて高速に
し、しかも経済的に行なうことができるととも
に、また一定単位数の行あるいは列毎に縮小また
は拡大処理する行または列を選出するのできわめ
て自然な形でその変形を行うことができる。 As explained above, according to the present invention, a prediction error can be obtained by scanning a character pattern once with a very simple configuration, and this prediction error can be calculated by
By counting in the column direction, it is possible to detect rows and columns to be deleted or inserted very easily, making it possible to reduce or enlarge the image very quickly and economically, and also to perform a fixed number of units. Since the row or column to be reduced or enlarged is selected for each row or column, the transformation can be performed in a very natural manner.
第1図ないし第3図は従来の画像パターン縮小
方式の説明図、第4図は文字パターンの1例、第
5図は予測値の作成説明図、第6図は予測誤差お
よび誤り数、削除対象図、第7図は予測誤差作成
回路および予測誤差伝送復元図、第8図イは本発
明の一実施例構成図、第8図ロは比較回路の詳細
図、第8図ハは削除優先順位説明図、第8図ニは
優先指定回路動作説明図、第9図は本発明により
得られた文字パターン、第10図は本発明の他の
動作説明図である。
図中、1は文字パターンデータ・バツフアメモ
リ、2はシフトレジスタ、3は予測回路、4は
EOR回路、5はランレングス符号化回路、6は
文字パターン圧縮データ・バツフア、7はランレ
ングス復号化回路、8は復元回路、9は復元文字
パターン・バツフア、10はバツフアメモリ、1
1はメモリ読出制御部、12はエラーカウンタ、
13は行誤り数レジスタ、14は列誤り数レジス
タ、15は第1スイツチング回路、16は比較回
路、17は優先指定回路、18は第2スイツチン
グ回路、19は削除行レジスタ、20は削除列レ
ジスタ、21は一致回路、22はカウンタ、23
はレジスタをそれぞれ示す。
Figures 1 to 3 are illustrations of conventional image pattern reduction methods, Figure 4 is an example of a character pattern, Figure 5 is an illustration of creation of predicted values, and Figure 6 is prediction error, number of errors, and deletion. Target diagram, Figure 7 is a prediction error generation circuit and prediction error transmission restoration diagram, Figure 8A is a configuration diagram of an embodiment of the present invention, Figure 8B is a detailed diagram of a comparison circuit, Figure 8C is a deletion priority FIG. 8D is an explanatory diagram of the priority designation circuit operation, FIG. 9 is a character pattern obtained by the present invention, and FIG. 10 is an explanatory diagram of another operation of the present invention. In the figure, 1 is a character pattern data buffer memory, 2 is a shift register, 3 is a prediction circuit, and 4 is a
EOR circuit, 5 is a run-length encoding circuit, 6 is a character pattern compressed data buffer, 7 is a run-length decoding circuit, 8 is a restoration circuit, 9 is a restored character pattern buffer, 10 is a buffer memory, 1
1 is a memory read control unit, 12 is an error counter,
13 is a row error number register, 14 is a column error number register, 15 is a first switching circuit, 16 is a comparison circuit, 17 is a priority designation circuit, 18 is a second switching circuit, 19 is a deletion row register, and 20 is a deletion column register. , 21 is a matching circuit, 22 is a counter, 23
indicate registers, respectively.
Claims (1)
の一部を行または列単位で削除あるいは挿入する
ことにより画像サイズを変更するようにした画像
データ処理装置において、 画像データを読取りその予測データを得る予測
回路と、 該予測回路から得られた予測データが前記画像
データと一致するか否かを示す予測誤差データを
作成する予測誤差データ作成手段と、 前記予測誤差データを行または列単位で計数
し、一定単位数の行あるいは列毎にその大小を比
較する予測誤差計数比較手段と、 該予測誤差計数比較手段の出力にもとづき一定
単位数毎に予測誤差データのもつとも少ない行ま
たは例を選出し、もつとも少ない行または列が複
数存在するときは予め定められた優先順位により
そのうちの1つを選出して、縮小または拡大処理
すべき行あるいは列を選定する優先指定手段を設
け、 この優先指定手段の出力にもとづき前記画像デ
ータを縮小または拡大制御するようにしたことを
特徴とする画像データ処理装置。 2 前記優先指定手段により選定された行または
列の次の行または列に該選定された行または列と
同一のデータを挿入することにより画像データの
拡大を行い画像サイズを大きくしたことを特徴と
する特許請求の範囲第1項記載の画像データ処理
装置。[Scope of Claims] 1. An image data processing device that changes the image size by deleting or inserting part of the image data obtained by reading the image in units of rows or columns, comprising: reading the image data; a prediction circuit that obtains the prediction data; a prediction error data creation unit that creates prediction error data indicating whether or not the prediction data obtained from the prediction circuit matches the image data; a prediction error count comparison means that counts in units of columns and compares the magnitude for each row or column of a fixed number of units; A priority designation means is provided for selecting a row or column to be reduced or enlarged by selecting an example, and selecting one of them according to a predetermined priority when there are a plurality of rows or columns that are at least small; An image data processing apparatus characterized in that the image data is controlled to be reduced or enlarged based on the output of the priority designation means. 2. Image size is increased by enlarging the image data by inserting the same data as the selected row or column into the row or column next to the row or column selected by the priority designation means. An image data processing apparatus according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56097153A JPS57211874A (en) | 1981-06-23 | 1981-06-23 | Picture data processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56097153A JPS57211874A (en) | 1981-06-23 | 1981-06-23 | Picture data processing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57211874A JPS57211874A (en) | 1982-12-25 |
| JPH0244183B2 true JPH0244183B2 (en) | 1990-10-03 |
Family
ID=14184618
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56097153A Granted JPS57211874A (en) | 1981-06-23 | 1981-06-23 | Picture data processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57211874A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5194728A (en) * | 1975-02-18 | 1976-08-19 |
-
1981
- 1981-06-23 JP JP56097153A patent/JPS57211874A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57211874A (en) | 1982-12-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5177622A (en) | Method and apparatus for detecting run length of two successive pixels and subjecting run length to universal coding | |
| JPS5816667B2 (en) | Interline encoding method for facsimile signals | |
| US4215374A (en) | Encoding device comprising predictors for thinned and unthinned patterns | |
| JPH04270568A (en) | Data compression system in picture processing unit | |
| CA1306296C (en) | Image processing apparatus | |
| US5345316A (en) | Image data encoding/decoding apparatus for concurrent processing of multiple image data streams | |
| US7085415B2 (en) | Image display apparatus | |
| JP3866568B2 (en) | Image compression method | |
| JPH06326876A (en) | Image information processing method of predictive coding method | |
| JPH1013842A (en) | Markov model image coder | |
| JP2809161B2 (en) | Predictive coding device | |
| JPH04270569A (en) | Data compression system for picture processor | |
| JPS6329472B2 (en) | ||
| JP3288594B2 (en) | Image coding device | |
| JPH037316B2 (en) | ||
| JP3263218B2 (en) | Image information data compression and playback device | |
| JPS5915553B2 (en) | Predictive coding device | |
| JP2595900B2 (en) | Change point coordinate detection device for binary image data | |
| JP2615215B2 (en) | Image data compression method | |
| EP0302432A2 (en) | Document decompressing system | |
| JPS63132573A (en) | Halftone image coding circuit | |
| JPS6364949B2 (en) | ||
| JPH0351354B2 (en) | ||
| JPH05252404A (en) | Picture information processor | |
| JPS63132572A (en) | Halftone image encoding circuit |