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
JPH0520791B2 - - Google Patents
[go: Go Back, main page]

JPH0520791B2 - - Google Patents

Info

Publication number
JPH0520791B2
JPH0520791B2 JP15013786A JP15013786A JPH0520791B2 JP H0520791 B2 JPH0520791 B2 JP H0520791B2 JP 15013786 A JP15013786 A JP 15013786A JP 15013786 A JP15013786 A JP 15013786A JP H0520791 B2 JPH0520791 B2 JP H0520791B2
Authority
JP
Japan
Prior art keywords
address
memory
image
integration
run
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
Application number
JP15013786A
Other languages
Japanese (ja)
Other versions
JPS635486A (en
Inventor
Takaharu Matsumoto
Toshio Adachi
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP15013786A priority Critical patent/JPS635486A/en
Publication of JPS635486A publication Critical patent/JPS635486A/en
Publication of JPH0520791B2 publication Critical patent/JPH0520791B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、TVカメラで撮影した物体等の2値
画像を符号化する画像処理装置に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to an image processing device that encodes a binary image of an object or the like photographed by a TV camera.

[従来の技術] 画像処理装置には、2値画像の中で像を表わす
画素(例えば、1で表わす)をXアドレスとYア
ドレス毎に積算し、画像のX方向とY方向への写
影を求めるものがある。
[Prior Art] An image processing device integrates pixels (represented by 1, for example) representing an image in a binary image for each X address and Y address, and projects the image in the X and Y directions. There is something to be desired.

従来、このような画像処理装置として、例え
ば、2値画像を画素単位で走査し、画素が像を表
わすものであるときは、その画素のアドレスで指
定される積算用メモリの内容を1増加させるよう
にして、積算値を求めるものがあつた。
Conventionally, such an image processing device scans a binary image pixel by pixel, and when a pixel represents an image, the content of the integration memory specified by the address of that pixel is incremented by one. In this way, I found a way to calculate the integrated value.

[発明が解決しようとする問題点] しかし、このような画像処理装置では、2値画
像を画素単位で走査しているため、既に撮像済み
の画像に対してこのような処理を行うためには、
1フレーム分のメモリ容量が必要であり、また1
フレーム分の画像を走査しなければ積算値が求ま
らない。このことから、大容量のメモリを必要と
し、積算値の算出に長時間を要するという問題点
があつた。
[Problems to be Solved by the Invention] However, since such image processing devices scan binary images pixel by pixel, it is difficult to perform such processing on images that have already been captured. ,
The memory capacity for one frame is required, and the memory capacity for one frame is required.
The integrated value cannot be determined unless the images for each frame are scanned. This has led to problems in that a large capacity memory is required and it takes a long time to calculate the integrated value.

本発明はこのような問題点を解決するためにな
されたものであり、既に符号化され、小容量のメ
モリに蓄えられている画像に対して画像の写影を
短時間で求められる画像処理装置を実現すること
を目的とする。
The present invention has been made to solve these problems, and is an image processing device that can quickly calculate the projection of an image that has already been encoded and stored in a small memory. The purpose is to realize the following.

[問題点を解決するための手段] 本発明は、 2値化された画像のX方向とY方向への写影を
求める画像処理装置において、 2値化された画像のうち、像を表わす画像の連
なりの開始点のX,Yアドレスを記憶するXアド
レスメモリ及びYアドレスメモリと、 像を表わす画素の連なりのX方向長さを記憶す
るランレングスメモリと、 前記Xアドレスメモリ、Yアドレスメモリ及び
ランレングスメモリにランコードを読み出すため
のアドレス信号を与えるアドレス発生器と、 像を表わす画素の数の積算値がYアドレスごと
に格納され、前記Yアドレスメモリから読み出さ
れたYアドレスでアクセス位置が指定される第1
の積算用メモリと、 前記Yアドレスメモリから読み出されたYアド
レスで指定される第1の積算用メモリの内容に、
前記ランレングスメモリから読み出されたX方向
長さのデータを加算し、加算結果を第1の積算用
メモリの加算前のデータがあつたアドレスと同一
アドレスに格納する第1の加算器と、 前記アドレス発生器のアドレス信号の発生を制
御するとともに、前記第1の積算用メモリの読み
書きを制御する第1の制御部と、 前記Xアドレスメモリから読み出されたXアド
レスの値がプリセツトされるアツプカウンタと、 前記ランレングスメモリから読み出されたX方
向長さの値がプリセツトされ、カウントが0にな
るとストツプ信号を発生するダウンカウンタと、 像を表わす画素の数の積算値がXアドレスごと
に格納され、前記アツプカウンタのカウントをア
ドレスとしてアクセス位置が指定される第2の積
算用メモリと、 前記第1の制御部からスタートトリガを受ける
と前記アツプカウンタとダウンカウンタにクロツ
クを供給し始めてカウント動作を行わせ、ダウン
カウンタからストツプ信号を受けるとクロツクの
供給を停止するとともに、前記第2の積算用メモ
リの読み書きを制御する第2の制御部と、 前記アツプカウンタのカウントで指定される第
2の積算用メモリの内容に1を加算し、加算結果
を第2の積算用メモリの加算前のデータがあつた
アドレスと同一アドレスに格納する第2の加算器
と、 を具備し、 前記Yアドレスメモリから読み出されたYアド
レスで指定される第1の積算用メモリの内容に、
前記ランレングスメモリから読み出されたX方向
長さのデータを加算することによつて像を表わす
画素の数をYアドレスごとに積算し、画像のX方
向への写影を求め、 前記ダウンカウンタがプリセツトされてからス
トツプ信号を発生する直前までに前記アツプカウ
ンタのカウントで指定される第2の積算用メモリ
の内容に1を加算することによつて、ダウンカウ
ンタのカウント分のデータについてデータの値を
1ずつ増加させ、画像のY方向への写影を求める
ことを特徴とする画像処理装置である。
[Means for Solving the Problems] The present invention provides an image processing device that calculates the projection of a binarized image in the X direction and the Y direction. an X address memory and a Y address memory that store the X and Y addresses of the starting point of a series of pixels; a run length memory that stores the length in the X direction of a series of pixels representing an image; An address generator that provides an address signal for reading a run code to a run length memory, and an integrated value of the number of pixels representing an image are stored for each Y address, and an access position is determined by the Y address read from the Y address memory. is specified in the first
and the contents of the first integration memory specified by the Y address read from the Y address memory,
a first adder that adds the X-direction length data read from the run-length memory and stores the addition result at the same address as the address where the data before addition was in the first integration memory; a first control unit that controls generation of an address signal of the address generator and controls reading and writing of the first integration memory; and a value of the X address read from the X address memory is preset. an up counter, a down counter which is preset with the value of the length in the X direction read from the run length memory and generates a stop signal when the count reaches 0, and a down counter which generates a stop signal when the count reaches 0; a second integration memory whose access position is specified using the count of the up counter as an address; a second control section that performs a counting operation and stops supplying the clock when receiving a stop signal from the down counter, and controls reading and writing of the second integration memory; a second adder that adds 1 to the content of the second integration memory and stores the addition result at the same address as the address where the data before addition was in the second integration memory; The contents of the first integration memory specified by the Y address read from the Y address memory are
The number of pixels representing the image is accumulated for each Y address by adding the data of the length in the X direction read from the run length memory, and the projection of the image in the X direction is obtained; By adding 1 to the contents of the second integration memory specified by the count of the up counter from the time the up counter is preset until just before the stop signal is generated, the data for the count of the down counter is added. This image processing apparatus is characterized in that it increases the value by 1 and calculates the projection of the image in the Y direction.

[実施例〕 以下、図面を用いて本発明を説明する。[Example〕 The present invention will be explained below using the drawings.

本発明にかかる装置を用いて積算値を求めるた
めに、2値画像を、像を表わす画素の連なり(以
下、ランとする)の開始点のX,Yアドレスと、
ランの長さ(以下、ランレングスとする)により
符号化したランコードが用意される。この場合の
ランレングスは水平方向の長さである。このデー
タは、本出願人による特願昭58−193226号(特開
昭60−84073号)出願明細書記載の画像処理装置
によつて生成されるものである。
In order to obtain an integrated value using the apparatus according to the present invention, a binary image is divided into the X and Y addresses of the starting point of a series of pixels representing an image (hereinafter referred to as a run),
A run code encoded according to the length of the run (hereinafter referred to as run length) is prepared. The run length in this case is the length in the horizontal direction. This data is generated by the image processing apparatus described in the specification of Japanese Patent Application No. 193226/1983 (Japanese Patent Application Laid-open No. 84073/1983) filed by the present applicant.

第1図は本発明にかかる画像処理装置の一実施
例の要部構成図であり、画像の水平方向への写影
を求めるものを示している。
FIG. 1 is a block diagram of a main part of an embodiment of an image processing apparatus according to the present invention, and shows an apparatus for obtaining horizontal projection of an image.

第1図で、1はランコードメモリであり、Yア
ドレスメモリ11と、ランレングスメモリ12か
らなる。Yアドレスメモリ11とランレングスメ
モリ12にはランの開始点のYアドレスとランの
長さ(以下、ランレングスとする)がランコード
に数だけ格納されている。
In FIG. 1, 1 is a run code memory, which is composed of a Y address memory 11 and a run length memory 12. The Y address memory 11 and the run length memory 12 store the Y address of the start point of a run and the length of the run (hereinafter referred to as run length) as many times as the run code.

2はアドレス発生器であり、制御部3の制御に
より、ランコードを読み出すためのアドレス信号
を発生し、Yアドレスメモリ11とランレングス
メモリ12に与える。
Reference numeral 2 denotes an address generator which generates an address signal for reading out a run code under the control of the control section 3 and supplies it to the Y address memory 11 and the run length memory 12.

4は積算用メモリであり、像の画素数のYアド
レスごとの積算値が格納され、この積算用メモリ
4は、制御部3からのR/W信号(読み書き制御
信号)によりモードが選択され、Yアドレスメモ
リ11からのアドレス信号によつてアクセス位置
が指定される。
Reference numeral 4 denotes an integration memory in which an integrated value for each Y address of the number of pixels of an image is stored. An access position is designated by an address signal from Y address memory 11.

5は加算器であり、Yアドレスメモリ11から
のアドレス信号で指定される積算用メモリ4の内
容にランレングスメモリ12の内容を加算し、加
算結果を積算用メモリ4の同一アドレスに格納す
る。
An adder 5 adds the contents of the run-length memory 12 to the contents of the accumulation memory 4 specified by the address signal from the Y address memory 11, and stores the addition result at the same address in the accumulation memory 4.

アドレス発生器2、制御部3、積算用メモリ4
及び加算器5で写影積算部を構成する。
Address generator 2, control unit 3, integration memory 4
and adder 5 constitute a projection integration section.

このような画像処理装置の動作について説明す
る。
The operation of such an image processing device will be explained.

アドレス発生器2は、制御部3の制御によりラ
ンコードを読み出すためのアドレスAD1を発生す
る。これによつて、Yアドレスメモリ11とラン
レングスメモリ12からアドレスAD1を指定され
た内容のデータD01とD02とが読み出される。
The address generator 2 generates an address AD 1 for reading the run code under the control of the control unit 3. As a result, the data D 01 and D 02 having the contents specified by the address AD 1 are read from the Y address memory 11 and the run length memory 12.

積算用メモリ4はYアドレスメモリ11からの
データD01によりアドレスが指定される。すなわ
ち、データD01がアドレスAD2になる。このとき、
積算用メモリはR/W信号により読み出しモード
にされ、アドレスAD2で指定される内容のデータ
D03が読み出されて加算器5に入力される。ま
た、データD02も加算器5に入力される。
The address of the integration memory 4 is specified by data D 01 from the Y address memory 11. That is, data D 01 becomes address AD 2 . At this time,
The integration memory is put into read mode by the R/W signal, and the data specified by address AD 2 is read.
D 03 is read out and input to the adder 5. Furthermore, data D 02 is also input to the adder 5 .

加算器5は、データD02とD03を加算する。こ
こで、R/W信号が書き込みモードになることに
より、加算結果DI1はAD2で指定される積算用メ
モリ5のアドレスに書き込まれる。これによつ
て、加算結果は読出し時と同じアドレスに書込ま
れる。
Adder 5 adds data D 02 and D 03 . Here, by setting the R/W signal to the write mode, the addition result D I1 is written to the address of the integration memory 5 designated by AD 2 . As a result, the addition result is written to the same address as at the time of reading.

このようにしてランコードをすべて走査した後
には、積算用メモリ4には第2図に示すように、
画像の水平方向への写影が格納される。積算用メ
モリ4のサイズは少なくとも画面の水平方向の1
列の画素数分だけあればよい。第2図は、説明の
便宜上16×16ビツトのメモリ領域を示している。
After scanning all the run codes in this way, the integration memory 4 has the following information as shown in FIG.
A horizontal projection of the image is stored. The size of the integration memory 4 is at least 1 in the horizontal direction of the screen.
It is sufficient to have as many pixels as the number of pixels in the column. FIG. 2 shows a 16×16 bit memory area for convenience of explanation.

第3図は本発明にかかる画像処理装置の一実施
例の要部構成図であり、画像の垂直方向への写影
を求めるものを示している。
FIG. 3 is a block diagram of a main part of an embodiment of an image processing apparatus according to the present invention, and shows an apparatus for obtaining a vertical projection of an image.

第3図で、6はランコードメモリであり、Xア
ドレスメモリ61と、ランレングスメモリ62か
らなる。Xアドレスメモリ61とランレングスメ
モリ62にはランの開始点のXアドレスとランレ
ングスがランコードの数だけ格納されている。
In FIG. 3, 6 is a run code memory, which consists of an X address memory 61 and a run length memory 62. The X address memory 61 and the run length memory 62 store the X addresses and run lengths of run start points for the number of run codes.

7はアドレス発生器であり、第1図の装置と同
様に制御部8の制御により、ランコードを読み出
すためのアドレス信号を発生し、Xアドレスメモ
リ61とランレングスメモリ62に与える。
Reference numeral 7 denotes an address generator which generates an address signal for reading a run code under the control of the control section 8 similarly to the device shown in FIG.

9は積算用メモリであり、像の画素数のXアド
レスごとの積算値が格納される。この積算用メモ
リ9は、制御部20からのR/W信号(読み書き
制御信号)によりモードが選択され、アツプカウ
ンタ21とアドレス信号によつてアクセス位置が
指定される。
Reference numeral 9 denotes an integration memory in which an integrated value of the number of pixels of an image for each X address is stored. The mode of this integration memory 9 is selected by an R/W signal (read/write control signal) from a control section 20, and the access position is specified by an up counter 21 and an address signal.

10は加算器であり、積算用メモリ9から読み
出された内容に1を加算し、加算結果を積算用メ
モリ9の同一アドレスに格納する。
Reference numeral 10 denotes an adder, which adds 1 to the content read from the integration memory 9 and stores the addition result at the same address in the integration memory 9.

20は制御部であり、制御部8からスタートト
リガを受けると、アツプカウンタ21とダウンカ
ウンタ22にクロツクを供給し始める。また、制
御部20は積算用メモリ9にR/W信号を与えて
読み書きのモードを指定する。
A control section 20 starts supplying clocks to the up counter 21 and down counter 22 upon receiving a start trigger from the control section 8 . Further, the control unit 20 supplies an R/W signal to the integration memory 9 to designate a read/write mode.

アツプカウンタ21はDタイプフリツプフロツ
プで構成されていて、D端子にはXアドレスメモ
リ21の出力、CK端子には制御部20の発生す
るクロツクが与えられ、Q端子からは積算用メモ
リ9のアドレスを指定する信号が発生する。アツ
プカウンタ21にはXアドレスメモリ61の出力
がプリセツトされる。
The up counter 21 is composed of a D type flip-flop, the output of the X address memory 21 is applied to the D terminal, the clock generated by the control unit 20 is applied to the CK terminal, and the integration memory 9 A signal is generated that specifies the address of. The up counter 21 is preset with the output of the X address memory 61.

ダウンカウンタ22はDタイプフリツプフロツ
プで構成されていて、D端子にはランレングスメ
モリ62の出力、CK端子には制御部20の発生
するクロツクが与えられる。ダウンカウンタ22
にはランレングスメモリ62の出力がプリセツト
される。
The down counter 22 is composed of a D type flip-flop, and the output of the run length memory 62 is applied to the D terminal, and the clock generated by the control section 20 is applied to the CK terminal. Down counter 22
The output of the run length memory 62 is preset.

アドレス発生器7、制御部8,20、積算用メ
モリ9、加算器10、アツプカウンタ21及びダ
ウンカウンタ22で写影積算部を構成している。
The address generator 7, control sections 8 and 20, integration memory 9, adder 10, up counter 21, and down counter 22 constitute a projection integration section.

次に、このような画像処理装置の動作について
説明する。
Next, the operation of such an image processing apparatus will be explained.

アドレス発生器7は、第1図の装置と同様に動
作する。AD3はアドレス発生器7が発生するアド
レス信号、D04,D05はアドレス信号AD3で指定さ
れてXアドレスメモリ61とランレングスメモリ
62から読み出されるデータである。
Address generator 7 operates similarly to the device of FIG. AD 3 is an address signal generated by the address generator 7, and D 04 and D 05 are data specified by the address signal AD 3 and read from the X address memory 61 and run length memory 62.

制御部8は、アドレス発生器7にクロツクを出
すのと同期して制御部20にスタートトリガをか
ける。
The control section 8 applies a start trigger to the control section 20 in synchronization with issuing a clock to the address generator 7.

制御部20は、このトリガを受けると、2つの
カウンタ21と22にクロツクを供給し始める。
また、このクロツクに同期してR/W信号により
積算用メモリ9を読み出しモードにする。
When the control section 20 receives this trigger, it starts supplying clocks to the two counters 21 and 22.
Further, in synchronization with this clock, the integration memory 9 is put into read mode by the R/W signal.

ダウンカウンタ22はカウントが0になるとス
トツプ信号を発生し、制御部20はこのストツプ
信号を受けると、クロツクの供給を停止する。
The down counter 22 generates a stop signal when the count reaches 0, and upon receiving this stop signal, the control section 20 stops supplying the clock.

このストツプ信号は制御部8にも与えられてお
り、制御部8はこの信号を受けると、次のクロツ
クをアドレス発生器7に出すとともに制御部20
にスタートトリガをかける。
This stop signal is also given to the control section 8, and when the control section 8 receives this signal, it outputs the next clock to the address generator 7 and also sends the next clock to the control section 20.
Apply a start trigger to.

アツプカウンタ21にはXアドレスメモリ61
の出力D04がプリセツトされる。アツプカウンタ
21は制御部20からのクロツクでカウントアツ
プを始める。アツプカウンタ21の出力は積算用
メモリ9のアドレスを指定する。
The up counter 21 has an X address memory 61.
The output D04 of is preset. The up counter 21 starts counting up with the clock from the control section 20. The output of the up counter 21 specifies the address of the integration memory 9.

ダウンカウンタ22にはランレングスメモリ6
2の出力D05がプリセツトされる。ダウンカウン
タ22は制御部20からのクロツクでダウンカウ
ントを始め、カウントが0になつたときに制御部
20へストツプ信号を出力する。
The down counter 22 has a run length memory 6.
2 output D05 is preset. The down counter 22 starts counting down in response to a clock from the control section 20, and outputs a stop signal to the control section 20 when the count reaches 0.

積算用メモリ9はアツプカウンタ21によりア
ドレスAD4が指定されると、まずR/W信号によ
り内容D06が読み出され、加算器10にその内
容、D06が入力される。
When the address AD 4 is designated by the up counter 21 in the integration memory 9, the content D 06 is first read out by the R/W signal, and the content D 06 is input to the adder 10.

加算器10は、“1”信号により内容D06に1
を加える。加算器10の出力は積算用メモリ9に
入力される。これによつて、加算結果は積算用メ
モリ9の読み出し時と同一のアドレスに書込まれ
る。
The adder 10 adds 1 to the content D 06 by the “1” signal.
Add. The output of the adder 10 is input to the integration memory 9. Thereby, the addition result is written to the same address in the integration memory 9 at the time of reading.

ここで、第2図の画像を例にとつて垂直方向の
写影を求める動作を説明する。
Here, the operation for obtaining a vertical projection will be explained using the image shown in FIG. 2 as an example.

第2図の画像の中で最も上にあるランを処理す
る場合について説明する。
A case will be described in which the uppermost run in the image of FIG. 2 is processed.

このランのランコードは、開始点のX,Yアド
レスが4,2でランレングスが5である。従つ
て、アツプカウンタ21には開始点のXアドレス
4がプリセツトされ、ダウンカウンタ22にはラ
ンレングス5がプリセツトされる。
The run code for this run has a starting point X, Y address of 4,2 and a run length of 5. Therefore, the up counter 21 is preset with the starting point X address 4, and the down counter 22 is preset with the run length 5.

制御部20からクロツクが発生する毎にダウン
カウンタ22はカウント5からダウンカウントし
ていき、カウント0になつてところでストツプ信
号を発生する。ストツプ信号が発生する直前まで
にアツプカウンタ21はカウント4からカウント
8までアツプカウントする。これによつて、積算
用メモリ9のアドレス4からアドレス8までに格
納されているデータについて加算器10によりデ
ータの値が1ずつ増加させられる。
Every time a clock is generated from the control section 20, the down counter 22 counts down from the count 5, and when the count reaches 0, a stop signal is generated. The up counter 21 counts up from count 4 to count 8 immediately before the stop signal is generated. As a result, the adder 10 increases the data value by 1 for the data stored from address 4 to address 8 of the integration memory 9.

すなわち、ランレングスが5の場合は、積算用
メモリ9の内容は5アドレス分のデータについて
データの値が1ずつ増加させられる。
That is, when the run length is 5, the data value of the contents of the integration memory 9 is increased by 1 for 5 addresses of data.

他のランを処理をするときも同様の、ランが存
在するX方向アドレスについて、そのアドレスに
あるデータの値がそれぞれ1ずつ増加させられ
る。
When processing other runs, similarly, the value of data at each address in the X direction where a run exists is incremented by 1.

このようにして、ランコードをすべて走査した
後には、積算用メモリ9には第2図に示すように
画像の垂直方向への写影が格納される。
After all the run codes have been scanned in this manner, the vertical projection of the image is stored in the integration memory 9 as shown in FIG.

なお、画像の水平方向と垂直方向の両方への写
影を求めたい場合は第1図と第3図の装置の両方
を設け、水平方向又は垂直方向の一方への写影を
求めたい場合は第1図又は第3図の装置の一方を
設ける。
If you want to project the image in both the horizontal and vertical directions, install both the devices shown in Figures 1 and 3, and if you want to map the image in either the horizontal or vertical direction, install the devices shown in Figure 1 and 3. One of the devices of FIG. 1 or 3 is provided.

また、画像の水平方向と垂直方向の両方への写
影を求めたい場合に、第1図と第3図の装置の中
で例々えばアドレス発生器等の構成要素を共用す
るようにしてもよい。このようにすると、2方向
への写影を同時に求めることができる。
Furthermore, when it is desired to obtain the projection of an image in both the horizontal and vertical directions, it is also possible to share components such as an address generator between the devices shown in FIGS. 1 and 3. good. In this way, projections in two directions can be obtained simultaneously.

[効果] このような画像処理装置によれば、ランコード
をもとに画像の写影を求めているため、表示画像
も画素単位で走査して写影を求める場合に比べて
高速で結果を求ることができる。特に、一旦撮像
し、メモリにランコードの形で格納した画像デー
タの写影を求める場合に有効である。写影のもと
になるデータはランコードにされたものであるた
め、このデータを格納しておくメモリは小容量の
もので済む。
[Effect] According to such an image processing device, since the projection of the image is obtained based on the run code, the result can be obtained faster than when the display image is also scanned pixel by pixel to obtain the projection. You can ask for it. This is particularly effective when obtaining a copy of image data that has been captured and stored in a memory in the form of a run code. Since the data that is the source of the projection is converted into a run code, the memory that stores this data only needs to have a small capacity.

また、本発明にかかる画像処理装置を用いて、
第4図のようにな不明瞭な線の位置を計測に適用
すると、第5図に示すような結果が得られ積算値
の大きいa1,a2,a3部分が線の位置として検出さ
れる。従つて本発明にかかる画像処理装置はこの
ような場合にも有効である。
Furthermore, using the image processing device according to the present invention,
When the position of an unclear line as shown in Figure 4 is applied to measurement, the result shown in Figure 5 is obtained, and the a 1 , a 2 , and a 3 parts with large integrated values are detected as the line position. Ru. Therefore, the image processing apparatus according to the present invention is effective in such cases as well.

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

第1図は本発明にかかる画像処理装置の一実施
例の要部構成図、第3図は本発明にかかる画像処
理装置の他の実施例の要部構成図、第2図は第1
図及び第3図の装置によつて求められた画像の写
影の一例を示した図、第4図及び第5図は本発明
にかかる画像処理装置の適用例を示した図であ
る。 2,7…アドレス発生器、3,8…第1の制御
部、4…第1の積算用メモリ、5…第1の加算
器、9…第2の積算用メモリ、10…第2の加算
器、11…Yアドレスメモリ、12,62…ラン
レングスメモリ、20…第2の制御部、21…ア
ツプカウンタ、22…ダウンカウンタ、61…X
アドレスメモリ。
FIG. 1 is a block diagram of main parts of an embodiment of an image processing apparatus according to the present invention, FIG. 3 is a block diagram of main parts of another embodiment of an image processing apparatus according to the present invention, and FIG.
FIGS. 4 and 5 are diagrams showing an example of the projection of images obtained by the apparatus shown in FIGS. 2, 7... Address generator, 3, 8... First control unit, 4... First integration memory, 5... First adder, 9... Second integration memory, 10... Second addition 11...Y address memory, 12, 62...Run length memory, 20...Second control unit, 21...Up counter, 22...Down counter, 61...X
Address memory.

Claims (1)

【特許請求の範囲】 1 2値化された画像のX方向とY方向への写影
を求める画像処理装置において、 2値化された画像のうち、像を表わす画像の連
なりの開始点のX,Yアドレスを記憶するXアド
レスメモリ及びYアドレスメモリと、 像を表わす画素の連なりのX方向長さを記憶す
るランレングスメモリと、 前記Xアドレスメモリ、Yアドレスメモリ及び
ランレングスメモリにランコードを読み出すため
のアドレス信号を与えるアドレス発生器と、 像を表わす画素の数の積算値がYアドレスごと
に格納され、前記Yアドレスメモリから読み出さ
れたYアドレスでアクセス位置が指定される第1
の積算用メモリと、 前記Yアドレスメモリから読み出されたYアド
レスで指定される第1の積算用メモリの内容に、
前記ランレングスメモリから読み出されたX方向
長さのデータを加算し、加算結果を第1の積算用
メモリの加算前のデータがあつたアドレスと同一
アドレスに格納する第1の加算器と、 前記アドレス発生器のアドレス信号の発生を制
御するとともに、前記第1の積算用メモリの読み
書きを制御する第1の制御部と、 前記Xアドレスメモリから読み出されたXアド
レスの値がプリセツトされるアツプカウンタと、 前記ランレングスメモリから読み出されたX方
向長さの値がプリセツトされ、カウントが0にな
るとストツプ信号を発生するダウンカウンタと、 像を表わす画素の数の積算値がXアドレスごと
に格納され、前記アツプカウンタのカウントをア
ドレスとしてアクセス位置が指定される第2の積
算用メモリと、 前記第1の制御部からスタートトリガを受ける
と前記アツプカウンタとダウンカウンタにクロツ
クを供給し始めてカウント動作を行わせ、ダウン
カウンタからストツプ信号を受けるとクロツクの
供給を停止するとともに、前記第2の積算用メモ
リの読み書きを制御する第2の制御部と、 前記アツプカウンタのカウントで指定される第
2の積算用メモリの内容に1を加算し、加算結果
を第2の積算用メモリの加算前のデータがあつた
アドレスと同一アドレスに格納する第2の加算器
と、 を具備し、 前記Yアドレスメモリから読み出されたYアド
レスで指定される第1の積算用メモリの内容に、
前記ランレングスメモリから読み出されたX方向
長さのデータを加算することによつて像を表わす
画素の数をYアドレスごとに積算し、画像のX方
向への写影を求め、 前記ダウンカウンタがプリセツトされてからス
トツプ信号を発生する直前までに前記アツプカウ
ンタのカウントで指定される第2の積算用メモリ
の内容に1を加算することによつて、ダウンカウ
ンタのカウント分のデータについてデータの値を
1ずつ増加させ、画像のY方向への写影を求める
ことを特徴とする画像処理装置。
[Scope of Claims] 1. In an image processing device that obtains a projection of a binarized image in the X direction and the Y direction, , Y address, and a run length memory that stores the length in the X direction of a series of pixels representing an image.A run code is stored in the X address memory, Y address memory, and run length memory. an address generator that provides an address signal for reading; and a first address generator in which an integrated value of the number of pixels representing an image is stored for each Y address, and an access position is specified by the Y address read from the Y address memory.
and the contents of the first integration memory specified by the Y address read from the Y address memory,
a first adder that adds the X-direction length data read from the run-length memory and stores the addition result at the same address as the address where the data before addition was in the first integration memory; a first control section that controls generation of an address signal of the address generator and controls reading and writing of the first integration memory; and a value of the X address read from the X address memory is preset. an up counter, a down counter which is preset with the value of the length in the X direction read from the run length memory and generates a stop signal when the count reaches 0, and a down counter which generates a stop signal when the count reaches 0; a second integration memory whose access position is specified using the count of the up counter as an address; a second control unit that performs a counting operation and stops supplying the clock upon receiving a stop signal from the down counter, and controls reading and writing of the second integration memory; a second adder that adds 1 to the content of the second integration memory and stores the addition result in the same address as the address where the data before addition was in the second integration memory; The contents of the first integration memory specified by the Y address read from the Y address memory are
The number of pixels representing the image is accumulated for each Y address by adding the X-direction length data read from the run-length memory, and the projection of the image in the X-direction is obtained; By adding 1 to the contents of the second integration memory specified by the count of the up counter from the time the up counter is preset until just before the stop signal is generated, the data corresponding to the count of the down counter is added. An image processing device characterized by increasing a value by 1 and obtaining a projection of an image in the Y direction.
JP15013786A 1986-06-26 1986-06-26 Picture processor Granted JPS635486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15013786A JPS635486A (en) 1986-06-26 1986-06-26 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15013786A JPS635486A (en) 1986-06-26 1986-06-26 Picture processor

Publications (2)

Publication Number Publication Date
JPS635486A JPS635486A (en) 1988-01-11
JPH0520791B2 true JPH0520791B2 (en) 1993-03-22

Family

ID=15490296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15013786A Granted JPS635486A (en) 1986-06-26 1986-06-26 Picture processor

Country Status (1)

Country Link
JP (1) JPS635486A (en)

Also Published As

Publication number Publication date
JPS635486A (en) 1988-01-11

Similar Documents

Publication Publication Date Title
JP3278881B2 (en) Image signal generator
US20080273098A1 (en) Apparatus and method for recording image data, and apparatus and method for reproducing zoomed images
US5195174A (en) Image data processing apparatus capable of composing one image from a plurality of images
JPS6173484A (en) Video signal processing method and device
JPS58204668A (en) Method for scanning and recording picture
JPH04252562A (en) Picture processing unit
JPH0520791B2 (en)
JP3097138B2 (en) Image display device
US6452630B1 (en) Method for arranging image numbers
JPS6146671A (en) Area designation system
KR0151441B1 (en) Image Magnification Device of Image Processing System
JP3088495B2 (en) Image processing device
JP2960732B2 (en) Image forming device
JP2968819B2 (en) Image processing device
JP2839578B2 (en) Image data input processing device
JPS639274A (en) partial magnification device
JPS5779564A (en) Line-picture information conversion system
JP3414049B2 (en) Image processing device
JPS62144282A (en) Picture processor
JPH05219468A (en) Still picture solid-state storage device
JPS63105572A (en) resolution conversion device
JPH0311145B2 (en)
JP2002055674A (en) Enlarged area display method during enlarged display
JPS607477A (en) Image display
JPH0783452B2 (en) Digital TV video signal special effect device