JPH0135543B2 - - Google Patents
Info
- Publication number
- JPH0135543B2 JPH0135543B2 JP19322683A JP19322683A JPH0135543B2 JP H0135543 B2 JPH0135543 B2 JP H0135543B2 JP 19322683 A JP19322683 A JP 19322683A JP 19322683 A JP19322683 A JP 19322683A JP H0135543 B2 JPH0135543 B2 JP H0135543B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- counter
- address counter
- code
- written
- 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
Links
Landscapes
- Image Processing (AREA)
Description
〔発明の属する分野〕
本発明は。2値画像の符号化を行なう画像処理
装置の改良に関するものである。
〔従来技術〕
従来、2値画像の符号化をソフトウエアで行な
う場合には符号化に時間を要するため、リアルタ
イムで行なうことは難しかつた。
〔発明の目的〕
本発明は上記の問題を解決するために行われた
もので、2値画像の符号化をリアルタイムで行な
う画像処理装置の実現を目的としている。
〔発明の概要〕
前記の目的を達成するために、本発明の要旨と
するところは、2値画像信号において走査方向に
隣り合う2画素の信号値の組み合わせが、“01”、
“10”、“11”のときそれぞれ信号値が1となるY
1,Y2,Y3出力を発生するデコーダと、前記
Y1出力により1をプリセツトされ前記Y3出力
によりカウントアツプされるレングスカウンタ
と、前記Y1出力によりカウントアツプされるコ
ードアドレスカウンタと、走査している画素のx
およびy座標を発生するXおよびYアドレスカウ
ンタと、前記コードアドレスカウンタの出力によ
りアドレス指定されて、前記Y1出力により前記
アドレスカウンタの出力を書き込まれ、前記Y2
出力により前記レングスカウンタの出力が書き込
まれるコードメモリとを備えたことを特徴とする
画像処理装置に存する。
〔発明の実施例〕
以下図面を用いて本発明を詳しく説明する。
第1図は本発明の一実施例を示す回路構成図で
ある。1は2値画像信号と画像走査用クロツクと
を入力し走査方向に隣り合う2画素の信号値を内
容とする2ビツトのシフトレジスタ、2はこのシ
フトレジスタ1のQ1およびQ2端子から出力さ
れる2値信号をそれぞれA,B入力端子に入力
し、A,B入力の組合わせが“01”、“10”、“11”
のときそれぞれ信号値が1となるY1,Y2,Y
3出力を発生するデコーダ、3はこのデコーダ2
からのY1出力で1をプリセツトされY3出力で
カウントアツプ(数え上げる)されるレングス
(長さ)カウンタ、4は前記Y1出力によりカウ
ントアツプされるコードアドレスカウンタ、5,
6はそれぞれ走査している画素のxおよびy座標
を発生するXおよびYアドレスカウンタである。
7はコードメモリで、このうち71は前記Y1出
力により前記Yアドレスカウンタ5の内容を書き
込まれるY開始アドレス部、72は同じく前記Y
1出力により前記Xアドレスカウンタ6は内容を
書き込まれるX開始アドレス部、73は前記デコ
ーダ2からのY2出力により前記レングスカウン
タ3の内容が書き込まれるレングス部である。8
は前記Y2出力により前記コードアドレスカウン
タ4の内容をラツチするコードアドレスラツチ、
9は前記コードメモリ7および前記コードアドレ
スラツチ8の内容をプロセサ(図には表示せず)
などへ伝送するデータバスである。
このような構成の画像処理装置の動作について
次に説明する。第2図は上記の画像処理装置にお
いて処理される2値画像の一例を示した説明図で
ある。2値画像の右上には各画素のx座標を、左
横には画素のy座標を示してある。1ライン目
(すなわち第2図でy座標が0)の画素について
の2値画像信号がシフトレジスタ1のD入力に加
えられる場合の動作を第1表に示す。すなわち走
査クロツクに
[Field to which the invention pertains] The present invention. The present invention relates to an improvement of an image processing device that encodes a binary image. [Prior Art] Conventionally, when encoding a binary image using software, encoding takes time, so it has been difficult to encode it in real time. [Object of the Invention] The present invention was made to solve the above-mentioned problems, and its purpose is to realize an image processing device that encodes a binary image in real time. [Summary of the Invention] In order to achieve the above object, the gist of the present invention is that the combination of signal values of two pixels adjacent in the scanning direction in a binary image signal is "01",
Y where the signal value is 1 at “10” and “11” respectively
a decoder that generates 1, Y2, and Y3 outputs, a length counter that is preset to 1 by the Y1 output and counts up by the Y3 output, a code address counter that counts up by the Y1 output, and a pixel being scanned. x of
and an X and Y address counter that generates a y-coordinate, and is addressed by the output of said code address counter, written with the output of said address counter by said Y1 output, and said Y2
and a code memory into which the output of the length counter is written according to the output. [Embodiments of the Invention] The present invention will be described in detail below with reference to the drawings. FIG. 1 is a circuit configuration diagram showing an embodiment of the present invention. 1 is a 2-bit shift register into which a binary image signal and an image scanning clock are input, and whose contents are the signal values of two pixels adjacent in the scanning direction; 2 is output from the Q1 and Q2 terminals of this shift register 1. Input binary signals to the A and B input terminals respectively, and the combination of A and B inputs is "01", "10", "11"
Y1, Y2, Y whose signal value is 1 when
A decoder that generates 3 outputs, 3 is this decoder 2
4 is a length counter that is preset to 1 by the Y1 output and counted up by the Y3 output; 4 is a code address counter that is counted up by the Y1 output; 5;
6 are X and Y address counters that generate the x and y coordinates of the pixel being scanned, respectively.
7 is a code memory, of which 71 is a Y start address section into which the contents of the Y address counter 5 are written by the Y1 output, and 72 is the Y start address section where the contents of the Y address counter 5 are written by the Y1 output.
73 is a length section in which the contents of the length counter 3 are written in response to the Y2 output from the decoder 2. 8
is a code address latch that latches the contents of the code address counter 4 by the Y2 output;
9 stores the contents of the code memory 7 and the code address latch 8 in a processor (not shown in the figure).
It is a data bus that transmits data to other devices. The operation of the image processing apparatus having such a configuration will be described next. FIG. 2 is an explanatory diagram showing an example of a binary image processed by the above image processing apparatus. The x-coordinate of each pixel is shown on the upper right of the binary image, and the y-coordinate of the pixel is shown on the left side. Table 1 shows the operation when the binary image signal for the pixel on the first line (ie, the y coordinate is 0 in FIG. 2) is applied to the D input of the shift register 1. i.e. the scan clock
【表】【table】
【表】
したがつてシフトレジスタ1のQ1,Q2出力に
は、“00”、“00”、“01”、“11”……が表われる。
これらの出力はデコーダ2のA,B入力となり、
対応した出力Y1,Y2,Y3を発生させる。
A,B入力(の組み合わせ)が“00”のときデコ
ーダ2は何も出力を発生しない。物体を“1”、
背景を“0”とするとA,B入力が“01”のとき
は物体の開始点を示すのでY1出力が1となり、
コードアドレスカウンタ4を1つ進め、X,Yア
ドレスカウンタ5,6の内容をコードアドレスカ
ウンタ4の出力によつてアドレス指定してコード
メモリ7のY開始アドレセ部71、X開始アドレ
ス部72にそれぞれ書き込むとともにレングスカ
ウンタ3を1にプリセツトする。A,B入力が
“11”のときは物体の内部であることを示すので、
Y3出力が1となり、レングスカウンタ3の内容
を1つ進める。A,B入力が“10”のときは物体
の終了点を示しているので、Y2出力が1となり
レングスカウンタ3の出力をコードメモリ7にお
けるレングス部73の、コードアドレスカウンタ
4の出力によつて指定されるアドレスに書き込ま
れる。このような処理を繰り返すことにより、2
値画像は“1”の連なり(ラン)の開始アドレス
とその長さにより符号化される。第2図の2値画
像例を処理したときのコードメモリ7の内容を第
2表に示す。1画面の処理が終わるとコ[Table] Therefore, "00", "00", "01", "11", etc. appear in the Q1 and Q2 outputs of the shift register 1.
These outputs become the A and B inputs of decoder 2,
Generate corresponding outputs Y1, Y2, Y3.
When the A and B inputs (combination) are "00", the decoder 2 generates no output. Object as “1”,
If the background is "0", when the A and B inputs are "01", it indicates the starting point of the object, so the Y1 output will be 1,
The code address counter 4 is incremented by one, and the contents of the X and Y address counters 5 and 6 are addressed by the output of the code address counter 4 and stored in the Y start address section 71 and the X start address section 72 of the code memory 7, respectively. At the same time as writing, length counter 3 is preset to 1. When the A and B inputs are "11", it indicates that it is inside the object, so
The Y3 output becomes 1, and the contents of the length counter 3 are incremented by one. When the A and B inputs are "10", it indicates the end point of the object, so the Y2 output becomes 1 and the output of the length counter 3 is determined by the output of the code address counter 4 of the length section 73 in the code memory 7. written to the specified address. By repeating this process, 2
The value image is encoded by the start address of a run of "1"s and its length. Table 2 shows the contents of the code memory 7 when the binary image example shown in FIG. 2 is processed. When processing for one screen is completed,
【表】【table】
Claims (1)
画素の信号値の組み合わせが“01”,“10”,“11”
のときそれぞれに対応する信号値が1となるY
1,Y2,Y3出力を発生するデコーダと、前記
Y1出力により1をプリセツトされ前記Y3出力
によりカウントアツプされるレングスカウンタ
と、前記Y1出力によりカウントアツプされるコ
ードアドレスカウンタと、走査している画素のx
およびy座標を発生するXおよびYアドレスカウ
ンタと、前記コードアドレスカウンタの出力によ
りアドレス指定されて、前記Y1出力により前記
XおよびYアドレスカウンタの出力を書き込ま
れ、前記Y2出力により前記レングスカウンタの
出力が書き込まれるコードメモリとを備えたこと
を特徴とする画像処理装置。1 2 adjacent in the scanning direction in the binary image signal
The combination of pixel signal values is “01”, “10”, “11”
When Y, the corresponding signal value is 1
a decoder that generates 1, Y2, and Y3 outputs, a length counter that is preset to 1 by the Y1 output and counts up by the Y3 output, a code address counter that counts up by the Y1 output, and a pixel being scanned. x of
and an X and Y address counter that generates and y coordinates, addressed by the output of the code address counter, written by the Y1 output to the output of the X and Y address counter, and by the Y2 output to the output of the length counter. An image processing device comprising: a code memory in which is written.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19322683A JPS6084073A (en) | 1983-10-14 | 1983-10-14 | Picture processing unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19322683A JPS6084073A (en) | 1983-10-14 | 1983-10-14 | Picture processing unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6084073A JPS6084073A (en) | 1985-05-13 |
| JPH0135543B2 true JPH0135543B2 (en) | 1989-07-26 |
Family
ID=16304412
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19322683A Granted JPS6084073A (en) | 1983-10-14 | 1983-10-14 | Picture processing unit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6084073A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008198509A (en) * | 2007-02-14 | 2008-08-28 | Toyokuni Electric Cable Co Ltd | Connection tool for low-voltage cable |
-
1983
- 1983-10-14 JP JP19322683A patent/JPS6084073A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6084073A (en) | 1985-05-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5524071A (en) | Image synthesis apparatus with designation of common areas in two images | |
| JPH0134500B2 (en) | ||
| JPH0135543B2 (en) | ||
| JPH088647B2 (en) | Run-length coding method and apparatus | |
| JP2903214B2 (en) | Area designation device | |
| JPS6217766B2 (en) | ||
| JPS60102056A (en) | Picture restoring device | |
| JPH049149B2 (en) | ||
| JPH0311145B2 (en) | ||
| JPS63276555A (en) | Image printer print area circuit | |
| JPS6152474B2 (en) | ||
| GB2149997A (en) | Image processing method and apparatus therefore | |
| JPH01140195A (en) | Graphic image copy control device | |
| JPS6365268B2 (en) | ||
| JPS62160551A (en) | address generator | |
| JPS61117676A (en) | Binary pattern change point detection and retention method and its circuit | |
| JPS6245279A (en) | Encoder circuit | |
| JPS63126048A (en) | Simultaneous writing circuit for plural picture elements | |
| JPS6225787A (en) | Display control circuit | |
| JP2000048188A (en) | Image data converter | |
| JPH0148588B2 (en) | ||
| JPH0520791B2 (en) | ||
| JPS6148716B2 (en) | ||
| JPS5816335A (en) | Coordinate information processing method | |
| JPS63301097A (en) | Method and circuit for generating density histogram |