JPH04311278A - One-dimensional picture processor - Google Patents

One-dimensional picture processor

Info

Publication number
JPH04311278A
JPH04311278A JP7770491A JP7770491A JPH04311278A JP H04311278 A JPH04311278 A JP H04311278A JP 7770491 A JP7770491 A JP 7770491A JP 7770491 A JP7770491 A JP 7770491A JP H04311278 A JPH04311278 A JP H04311278A
Authority
JP
Japan
Prior art keywords
data
image processing
visual field
picture
image 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.)
Pending
Application number
JP7770491A
Other languages
Japanese (ja)
Inventor
Noriaki Saito
斎藤 憲敬
Masaki Fuse
正樹 布施
Hidetomo Akaha
秀友 赤羽
Masatoshi Toda
正利 戸田
Shintaro Tashiro
慎太郎 田代
Tokuyuki Ikeda
池田 徳之
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.)
Mitsubishi Rayon Co Ltd
Original Assignee
Mitsubishi Rayon Co Ltd
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 Mitsubishi Rayon Co Ltd filed Critical Mitsubishi Rayon Co Ltd
Priority to JP7770491A priority Critical patent/JPH04311278A/en
Publication of JPH04311278A publication Critical patent/JPH04311278A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a one-dimensional picture processor the picture processing speed of which does not decline even when data exist on the outside of its visual field. CONSTITUTION:This one-dimensional picture processor is provided with a binarizing means 1 which converts analog picture data form a primary image pickup element into binarized picture data based on an adequate threshold, encoding means 2 which encodes the binarized picture data, picture data storage means 3 which temporarily stores the encoded picture data from the means 2, and picture processing means 4 which performs various kinds of picture processing based on the picture data stored in the means 3. A visual field selecting means 10 selects and outputs only the data required for picture processing among the binarized picture data outputted from the binarizing means 1 to the encoding means 2.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、一次元撮像素子からの
アナログ画像データを入力し、各種画像処理を行う一次
元画像処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a one-dimensional image processing apparatus that inputs analog image data from a one-dimensional image sensor and performs various image processing.

【0002】0002

【従来の技術】一次元CCD カメラ等の一次元撮像素
子からのアナログ画像データを入力し、各種画像処理を
行う従来の一次元画像処理装置を図3を用いて説明する
。2 値化回路1 は、一次元CCD カメラ等の一次
元撮像素子 (図示せず) からのアナログ画像データ
を適当なしきい値によって2 値化し、2 値画像デー
タを出力する。符号化回路2 は2 値化回路1 によ
って2 値化された2 値画像データを圧縮するために
符号化し、符号化された画像データを出力する。データ
・バッファ3 は符号化回路2 によって符号化された
画像データを一次元画像素子の一走査分について一時的
に記憶する。プロセッサー、メモリ等から成る画像処理
回路4 は、データ・バッファ3 に記憶された画像デ
ータを基に必要な画像処理を行う。
2. Description of the Related Art A conventional one-dimensional image processing apparatus that inputs analog image data from a one-dimensional imaging device such as a one-dimensional CCD camera and performs various image processing will be described with reference to FIG. The binarization circuit 1 binarizes analog image data from a one-dimensional imaging device (not shown) such as a one-dimensional CCD camera using an appropriate threshold value, and outputs binary image data. The encoding circuit 2 encodes the binary image data binarized by the binary encoding circuit 1 to compress it, and outputs the encoded image data. The data buffer 3 temporarily stores the image data encoded by the encoding circuit 2 for one scan of the one-dimensional image element. An image processing circuit 4 consisting of a processor, memory, etc. performs necessary image processing based on the image data stored in the data buffer 3.

【0003】以上のような手順により従来の一次元画像
処理装置は、一次元撮像素子からのアナログ画像データ
の一走査毎の画像処理を実現することができる。ところ
で、実際の画像処理システムにおいては各走査の全画素
のうちのある特定の視野領域内のデータのみを必要とす
る場合が多い。このことを、図4 を用いて説明する。
[0003] Through the above-described procedure, the conventional one-dimensional image processing apparatus can realize image processing for each scan of analog image data from a one-dimensional image sensor. Incidentally, in an actual image processing system, only data within a certain visual field out of all pixels in each scan is often required. This will be explained using FIG. 4.

【0004】図4(a)に示すような原画像において視
野領域W 内の幅D を計測する場合の処理を考える。 一次元撮像素子が図4(a)の実線で示すラインを走査
すると、2 値化回路1 からの2 値画像データは図
4(b)のようになる。 ここで、図4(b)に示されている小文字アルファベッ
ト(a〜j)は2 値画像データの0−>1および1−
>0の変化点の画素番号である。また、一次元画像素子
の全画素数をN とした。次に、この2 値画像データ
は符号化回路2 によって符号化され (ここでは、2
 値画像処理において一般的に用いられる、2 値画像
データの0−>1および1−>0の変化点画素番号のデ
ータに符号化する方式を仮定した) 、データ・バッフ
ァ3に記憶されるデータは、図4(c)のようになる。 そして、画像処理回路4 ではデータ・バッファ内のデ
ータが視野領域内にあるかどうかを順次判別し (この
例では、A 画素からB 画素の間にあるかどうか判別
する) 、結果として始点f 画素および終点e 画素
を抽出する。最後に、求める幅D は(f−e) で計
算され、画像処理が終了する。
Consider the process of measuring the width D within the visual field W in an original image as shown in FIG. 4(a). When the one-dimensional image sensor scans the solid line in FIG. 4(a), the binary image data from the binarization circuit 1 becomes as shown in FIG. 4(b). Here, the lowercase alphabets (a to j) shown in FIG. 4(b) correspond to 0->1 and 1- of binary image data.
This is the pixel number of the change point >0. Further, the total number of pixels of the one-dimensional image element was set to N. Next, this binary image data is encoded by encoding circuit 2 (here, 2
The data stored in the data buffer 3 is assumed to be a method of encoding binary image data into data with changing point pixel numbers of 0->1 and 1->0, which is commonly used in value image processing. is as shown in FIG. 4(c). Then, the image processing circuit 4 sequentially determines whether the data in the data buffer is within the visual field (in this example, it is determined whether it is between the A pixel and the B pixel), and as a result, the starting point f pixel is determined. and the end point e pixel is extracted. Finally, the desired width D is calculated as (fe), and the image processing ends.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、このよ
うな場合においても従来の一次元画像処理装置では、一
次元撮像素子の全画素つまり全視野の2 値画像データ
を符号化しデータ・バッファに記憶するため、画像処理
回路のソフトウェアでは視野領域内のデータを抽出する
という作業が必要となる。従って、従来の一次元画像処
理によると、視野領域外のデータが多ければ多いほど視
野領域内のデータを抽出するのに時間がかかり、画像処
理全体のスピードが低下するという問題があった。本発
明の目的は、視野領域外にデータが存在しても画像処理
スピードが低下しない一次元画像処理装置を提供するこ
とにある。
[Problem to be Solved by the Invention] However, even in such cases, conventional one-dimensional image processing devices encode binary image data for all pixels of the one-dimensional image sensor, that is, the entire field of view, and store it in a data buffer. Therefore, the software for the image processing circuit needs to extract data within the visual field. Therefore, according to the conventional one-dimensional image processing, there is a problem that the more data there is outside the viewing area, the longer it takes to extract the data inside the viewing area, and the overall speed of image processing decreases. An object of the present invention is to provide a one-dimensional image processing device in which the image processing speed does not decrease even if data exists outside the visual field.

【0006】[0006]

【課題を解決するための手段】上記目的は、一次元撮像
素子からのアナログ画像データを適当なしきい値によっ
て2 値画像データに変換する2 値化手段と、該2 
値画像データを符号化するための符号化手段と、該符号
化手段によって符号化された画像データを一時的に記憶
する画像データ記憶手段と、該画像データ記憶手段に記
憶された画像データを基に各種画像処理を行う画像処理
手段を備えた一次元画像処理装置において、前記2 値
化手段から出力される2 値画像データのうち、画像処
理に必要なデータのみを選択的に前記符号化手段に出力
するための視野選択手段を備えたことを特徴とする一次
元画像処理装置によって達成される。
[Means for Solving the Problems] The above object is to provide a binary image data converting means for converting analog image data from a one-dimensional image sensor into binary image data using an appropriate threshold;
An encoding means for encoding value image data, an image data storage means for temporarily storing the image data encoded by the encoding means, and an image data storage means based on the image data stored in the image data storage means. In the one-dimensional image processing apparatus, the one-dimensional image processing device is equipped with an image processing means for performing various image processing, and the encoding means selectively selects only the data necessary for the image processing from among the binary image data output from the binarization means. This is achieved by a one-dimensional image processing device characterized by comprising a field of view selection means for outputting the image to the image.

【0007】[0007]

【作用】本発明によれば、従来の一次元画像処理装置に
新たに前記視野選択手段を付加することにより視野領域
外の不要なデータは符号化されず、データ・バッファに
記憶されるデータは視野領域内のデータのみとなる。従
って、画像処理回路のソフトウェアにおいて視野領域内
のデータを抽出するという作業が不要になり、画像処理
スピードは高速化され、又視野領域外のデータの有無に
左右されないことになる。また、視野領域の設定及び変
更が、画像処理前の1回の設定または変更ですむので、
非常に容易となる。
[Operation] According to the present invention, by newly adding the visual field selection means to the conventional one-dimensional image processing device, unnecessary data outside the visual field area is not encoded, and the data stored in the data buffer is Only data within the field of view is displayed. Therefore, there is no need for the software of the image processing circuit to extract data within the viewing area, the image processing speed is increased, and it is not affected by the presence or absence of data outside the viewing area. In addition, the viewing area can be set or changed only once before image processing.
It becomes very easy.

【0008】[0008]

【実施例】本発明の一実施例による一次元画像処理装置
を図1 を用いて説明する。図中、図4 に示す従来の
一次元画像処理装置と同一の構成要素には同一の符号を
付して説明を省略または簡略にする。本実施例による一
次原画像処理装置においては、2 値化回路1 と符号
化回路2の間に、AND ゲート11と視野メモリ12
からなる視野選択回路10が加えられている。視野メモ
リ12は、幅1 ビットで深さが一次元撮像素子の画素
数に対応した容量を持ち、画像処理回路4 から予め視
野データを書き込んでおくことができる。そして、画像
処理が開始されると視野メモリ12からは2 値画像デ
ータの画素番号に対応した視野データが出力され、AN
D ゲート11によって視野データが‘1 ’の画素だ
けを選択して符号回路3 に出力する。 これによって、視野領域外のデータが符号化されデータ
・バッファに記憶されるのを防ぐことができる。
[Embodiment] A one-dimensional image processing apparatus according to an embodiment of the present invention will be explained with reference to FIG. In the figure, the same components as those of the conventional one-dimensional image processing apparatus shown in FIG. In the primary original image processing device according to this embodiment, an AND gate 11 and a visual field memory 12 are provided between the binarization circuit 1 and the encoding circuit 2.
A visual field selection circuit 10 consisting of the following is added. The visual field memory 12 has a width of 1 bit and a depth corresponding to the number of pixels of the one-dimensional image sensor, and can have visual field data written therein from the image processing circuit 4 in advance. Then, when image processing is started, visual field data corresponding to the pixel number of the binary image data is output from the visual field memory 12, and AN
The D gate 11 selects only pixels whose visual field data is '1' and outputs them to the encoding circuit 3. This prevents data outside the viewing area from being encoded and stored in the data buffer.

【0009】このことを、図2 を用いて説明する。画
像処理の目的は図4 の場合と同様であり、ここでは要
点だけを説明する。まず最初に、画像処理回路は、視野
メモリに視野データを設定する。ここでは、A 画素か
らB 画素のデータを‘1 ’に、それ以外のデータを
‘0 ’に設定する (図2(c)) 。次に画像処理
を開始し、一次元画像素子が図2(a)の実線で示すラ
インを走査すると、図4 と同様に図2(b)に示す2
値画像データが得られるが、これと同時に、視野メモリ
からは、図2(c)に示す視野データが出力され、AN
D ゲート通過後の2 値画像データは図2(d)に示
すように視野領域内のデータのみになる。従って、符号
化回路によって符号化されデータ・バッファに記憶され
るデータは、図2(e)のようになり、画像処理回路で
は、幅D=(f−e) を直ちに求めることができる。
This will be explained using FIG. 2. The purpose of image processing is the same as in the case of Fig. 4, and only the main points will be explained here. First, the image processing circuit sets visual field data in the visual field memory. Here, the data from the A pixel to the B pixel is set to '1', and the other data is set to '0' (FIG. 2(c)). Next, when image processing is started and the one-dimensional image element scans the line shown by the solid line in FIG. 2(a), the line shown in FIG.
Value image data is obtained, but at the same time, the visual field data shown in FIG. 2(c) is output from the visual field memory, and the AN
The binary image data after passing through the D gate becomes only data within the visual field, as shown in FIG. 2(d). Therefore, the data encoded by the encoding circuit and stored in the data buffer becomes as shown in FIG. 2(e), and the image processing circuit can immediately determine the width D=(fe).

【0010】0010

【発明の効果】以上の通り、本発明による一次元画像処
理装置を用いると、画像処理回路のソフトウェアによる
視野領域内データの抽出作業が不要となり、又視野領域
外のデータの有無に左右されず、そのため画像処理スピ
ードは高速化され、しかも視野領域が容易に設定又は変
更可能な高速で操作性能のよい高性能画像処理システム
を構成することができる。
[Effects of the Invention] As described above, when the one-dimensional image processing device according to the present invention is used, there is no need for the software of the image processing circuit to extract data within the visual field, and it is not affected by the presence or absence of data outside the visual field. Therefore, the image processing speed is increased, and a high-performance image processing system with high operating performance and high operating performance in which the viewing area can be easily set or changed can be constructed.

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

【図1】本発明の一実施例による一次元画像処理装置を
示すブロック図である。
FIG. 1 is a block diagram showing a one-dimensional image processing device according to an embodiment of the present invention.

【図2】図1 の実施例の動作説明図である。FIG. 2 is an explanatory diagram of the operation of the embodiment of FIG. 1;

【図3】図3 は従来の一次元画像処理装置を示すブロ
ック図である。
FIG. 3 is a block diagram showing a conventional one-dimensional image processing device.

【図4】図3 の従来例の動作説明図である。FIG. 4 is an explanatory diagram of the operation of the conventional example shown in FIG. 3;

【符号の説明】[Explanation of symbols]

1 …2 値化回路 2 …符号化回路 3 …データ・バッファ 4 …画像処理回路 10…視野選択回路 11…AND ゲート 12…視野メモリ 1...2 Value conversion circuit 2...Encoding circuit 3...Data buffer 4...Image processing circuit 10...Visual field selection circuit 11...AND gate 12...Visual field memory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  一次元撮像素子からのアナログ画像デ
ータを適当なしきい値によって2 値画像データに変換
する2 値化手段(1) と、該2値画像データを符号
化するための符号化手段(2) と、該符号化手段(2
) によって符号化された画像データを一時的に記憶す
る画像データ記憶手段(3) と、該画像データ記憶手
段(3)に記憶された画像データを基に各種画像処理を
行う画像処理手段(4) を備えた一次元画像処理装置
において、前記2 値化手段(1) から出力される2
 値画像データのうち画像処理に必要なデータのみを選
択的に前記符号化手段(2) に出力するための視野選
択手段(10)を備えたことを特徴とする一次元画像処
理装置。
Claim 1: Binarization means (1) for converting analog image data from a one-dimensional image sensor into binary image data using an appropriate threshold; and encoding means for encoding the binary image data. (2) and the encoding means (2
); and image processing means (4) that performs various image processing based on the image data stored in the image data storage means (3). ) In the one-dimensional image processing device equipped with
A one-dimensional image processing apparatus characterized by comprising a field of view selection means (10) for selectively outputting only data necessary for image processing out of value image data to the encoding means (2).
【請求項2】  前記視野選択手段(10)は視野領域
を特定するための視野メモリ(12)と、該視野メモリ
(12)により前記2 値画像データのうち該特定され
た視野領域内のデータのみを前記符号化手段(2) に
伝えるゲート手段(11)から構成されることを特徴と
する請求項1 記載の一次元画像処理装置。
2. The visual field selection means (10) includes a visual field memory (12) for specifying a visual field area, and a visual field memory (12) that selects data within the specified visual field area from among the binary image data. 2. The one-dimensional image processing apparatus according to claim 1, further comprising a gate means (11) for transmitting only the information to the encoding means (2).
JP7770491A 1991-04-10 1991-04-10 One-dimensional picture processor Pending JPH04311278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7770491A JPH04311278A (en) 1991-04-10 1991-04-10 One-dimensional picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7770491A JPH04311278A (en) 1991-04-10 1991-04-10 One-dimensional picture processor

Publications (1)

Publication Number Publication Date
JPH04311278A true JPH04311278A (en) 1992-11-04

Family

ID=13641290

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7770491A Pending JPH04311278A (en) 1991-04-10 1991-04-10 One-dimensional picture processor

Country Status (1)

Country Link
JP (1) JPH04311278A (en)

Similar Documents

Publication Publication Date Title
EP0376679B1 (en) Image encoding apparatus and image encoding method
US6771273B2 (en) Image display apparatus
JPH04311278A (en) One-dimensional picture processor
JPS6353586B2 (en)
JPH0362177A (en) Picture processor
JP2839578B2 (en) Image data input processing device
KR900008807B1 (en) Picture segment changing circuit
KR900007566B1 (en) Picture data converting device
JPH0233685A (en) Picture signal processor
EP0652670A1 (en) Image encoding apparatus and method
JPH04363962A (en) One-dimensional picture processing unit
JPS5813067B2 (en) Shiyoga Denso Hoshiki
JP3320124B2 (en) Image reading device
JPH05145754A (en) Image processor
JP2006086676A (en) Image processor
JP2002199226A (en) Image data compression device and image data compression method
JPH01126073A (en) Method and device for encoding/decoding of image signal
JPH05120434A (en) Area judging device
JPH02134074A (en) Compression and expansion device for character picture data
JPS6331826B2 (en)
JPH01218166A (en) Optical image reader
JPH01120962A (en) Picture encoder
JP2001016448A (en) Picture processor and picture processing method
JPH06245084A (en) Processor for picture data
JPH04316180A (en) Method for discriminating attribute of document picture