JPH08181852A - Image scanner with void function - Google Patents

Image scanner with void function

Info

Publication number
JPH08181852A
JPH08181852A JP6336175A JP33617594A JPH08181852A JP H08181852 A JPH08181852 A JP H08181852A JP 6336175 A JP6336175 A JP 6336175A JP 33617594 A JP33617594 A JP 33617594A JP H08181852 A JPH08181852 A JP H08181852A
Authority
JP
Japan
Prior art keywords
row
shift register
output
binarized data
binary 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.)
Granted
Application number
JP6336175A
Other languages
Japanese (ja)
Other versions
JP2861845B2 (en
Inventor
Morihiko Yanagisawa
守彦 柳澤
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP6336175A priority Critical patent/JP2861845B2/en
Publication of JPH08181852A publication Critical patent/JPH08181852A/en
Application granted granted Critical
Publication of JP2861845B2 publication Critical patent/JP2861845B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE: To provide an image scanner which automatically converts a full painted graphic into a void graphic so as to output it. CONSTITUTION: The density of the respective picture elements of a two-dimensional picture in an original 3 is read by an image sensor 6 and it is converted into binary data to output it. At that time, a void processor 1 inputs binary data, converts binary data of the picture element whose periphery is surrounded by a black picture element into a value showing a white picture element so as to output it and outputs binary data of the picture elements except for the binary data as they are. An output device 2 outputs binary data outputted from the void processor 1 to an external part as image scanner output.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はイメージスキャナに関
し、特に白抜き機能を内蔵したイメージスキャナに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image scanner, and more particularly to an image scanner having a whitening function.

【0002】[0002]

【従来の技術】イメージスキャナは、絵や写真,図形な
どの画像をイメージセンサにより読み取って2値化デー
タに変換して出力する装置であり、元の画像を忠実に読
み取って出力することを基本としている。イメージスキ
ャナは種々の分野に利用されており、特に最近では、パ
ーソナルコンピュータやワードプロセッサへのイメージ
入力用として簡易なイメージスキャナが実用化され、絵
や写真などを簡単にパーソナルコンピュータ等に入力す
ることができるようになっている。
2. Description of the Related Art An image scanner is a device that reads an image such as a picture, a photograph, or a figure by an image sensor, converts it into binary data, and outputs it, and basically reads and outputs the original image faithfully. I am trying. Image scanners are used in various fields. In particular, recently, a simple image scanner has been put into practical use for inputting an image into a personal computer or a word processor, and it is possible to easily input a picture or a photograph into the personal computer or the like. You can do it.

【0003】[0003]

【発明が解決しようとする課題】ところで、従来のイメ
ージスキャナは、元の画像を忠実に読み取って出力する
基本的な機能しか有しないため、ベタ塗りの図形をイメ
ージスキャナで読み取った場合、元と同じベタ塗りの図
形がパーソナルコンピュータ等に入力される。このた
め、元の図形の輪郭部分だけの図形、即ち白抜きした図
形をイラスト作成する場合、入力された図形をパーソナ
ルコンピュータの図形作成ソフトウェアに図形データと
して入力し、白抜き図形に加工する作業が別途必要にな
る。
By the way, since the conventional image scanner has only the basic function of faithfully reading and outputting the original image, when the solid image is read by the image scanner, The same solid figure is input to a personal computer or the like. Therefore, when creating an illustration of only the outline of the original figure, that is, an outline figure, it is necessary to input the entered figure as figure data into the figure creation software of the personal computer and process it into an outline figure. It will be required separately.

【0004】本発明は、このような白抜き図形に加工す
る作業から利用者を解放し得るようにするために提案さ
れたものであり、その目的は、出力の時点で既に白抜き
加工された画像が得られるようにしたイメージスキャナ
を提供することにある。
The present invention has been proposed in order to free the user from the work of processing such a white figure, and the purpose thereof is to perform the white processing already at the time of output. An object is to provide an image scanner capable of obtaining an image.

【0005】なお、イメージセンサで読み取った画像を
そのまま出力せずに加工して出力する装置として、特開
昭63−224473号公報に見られる装置が知られて
いる。しかし、この装置はディジタル複写装置であり、
然も、ベタ塗りの図形を網かけ模様の図形に変換して出
力するものであって、白抜き図形に加工して出力する本
発明とは基本的に相違する。
As a device for processing and outputting an image read by an image sensor as it is, a device disclosed in Japanese Patent Laid-Open No. 224473/1988 is known. However, this device is a digital copying device,
However, the solid-filled graphic is converted into a shaded graphic for output, which is basically different from the present invention in which the graphic is processed and output.

【0006】[0006]

【課題を解決するための手段】本発明の白抜き機能付き
イメージスキャナは、2次元画像の各画素の濃度をイメ
ージセンサで読み取って2値化データに変換して出力す
るイメージスキャナにおいて、前記2値化データを入力
し、元の2次元画像上において周囲が黒画素で囲まれて
いる画素の2値化データは白画素を示す値に変換して出
力し、それ以外の画素の2値化データはそのまま出力す
る白抜き処理装置と、該白抜き処理装置から出力された
2値化データをイメージスキャナ出力として外部に出力
する出力装置とを備えている。
The image scanner with a whitening function of the present invention is an image scanner which reads the density of each pixel of a two-dimensional image by an image sensor, converts it into binary data and outputs it. Input the binarized data, convert the binarized data of the pixels surrounded by black pixels on the original two-dimensional image to a value indicating a white pixel, and output it, and binarize the other pixels It is provided with a whitening processing device that outputs the data as it is, and an output device that outputs the binarized data output from the whitening processing device to the outside as an image scanner output.

【0007】また、前記白抜き処理装置は、2次元画像
のi−1行目,i行目,i+1行目の2値化データ列を
保持するi−1行用シフトレジスタ,i行用シフトレジ
スタ,i+1行用シフトレジスタと、前記i−1行用シ
フトレジスタ,前記i行用シフトレジスタ,前記i+1
行用シフトレジスタのシリアル出力端子とシリアル入力
端子との間に接続された3画素容量の前行用シフトレジ
スタ,注目行用シフトレジスタ,後行用シフトレジスタ
と、2次元画像の2値化データが1行分入力される毎
に、該入力された1行分の2値化データ列を前記i−1
行用シフトレジスタに、該i−1行用シフトレジスタに
保持されていた2値化データ列を前記i行用シフトレジ
スタに、該i行用シフトレジスタに保持されていた2値
化データ列を前記i+1行用シフトレジスタにそれぞれ
シフトインし、且つ、次の1行分の2値化データが入力
されるまでの間に、前記i−1行用シフトレジスタ,前
記i行用シフトレジスタおよび前記i+1行用シフトレ
ジスタの内容を、同期をとって、前記前行用シフトレジ
スタ,前記注目行用シフトレジスタおよび前記後行用シ
フトレジスタを経由して一巡させるシフト制御部と、前
記注目行用シフトレジスタにシフトインされた3つの2
値化データのうちの真ん中の2値化データを注目画素と
し、前記前行用シフトレジスタ,前記注目行用シフトレ
ジスタおよび前記後行用シフトレジスタに保持された、
前記注目画素の周囲の画素の2値化データの論理積を求
め、その結果に応じて、前記注目画素の2値化データを
白画素の2値化データに変換して出力するか、元の状態
のまま出力するかを決定するパターン判定部とで構成さ
れている。
Further, the whitening processing device has a shift register for i-1 row and a shift register for i row which holds the binarized data columns of the i-1th row, the ith row and the i + 1th row of the two-dimensional image. Register, i + 1 row shift register, i-1 row shift register, i row shift register, i + 1
Binary data of a two-dimensional image, including a shift register for the preceding row, a shift register for the target row, a shift register for the following row, which has a capacity of 3 pixels and is connected between the serial output terminal and the serial input terminal of the row shift register. Every time one row is input, the input binary data string for one row is added to the i-1
The binarized data string held in the i-1th row shift register is stored in the row shift register, and the binarized data string held in the i row shift register is stored in the i-th row shift register. The shift register for the i-1th row, the shift register for the i-th row, and the shift register for the i-th row are shifted in each of the shift registers for the i + 1th row and until the next one row of binarized data is input. a shift control unit for synchronizing the contents of the shift register for i + 1 rows through the shift register for the preceding row, the shift register for the noticed row and the shift register for the succeeding row, and the shift for the noticed row Three 2's shifted into the register
Binary data in the middle of the binarized data is set as a pixel of interest and held in the preceding row shift register, the row of interest shift register, and the following row shift register,
The logical product of the binarized data of the pixels around the target pixel is obtained, and the binarized data of the target pixel is converted into the binarized data of the white pixel and output according to the result. And a pattern determination unit that determines whether to output in the state.

【0008】更に、白抜き機能を有効とするか否かを指
示する指示手段を備え、前記出力装置は、前記指示手段
が白抜き機能を有効と指示する場合は前記白抜き処理装
置から出力された2値化データをイメージセンサ出力と
して外部に出力し、有効と指示されない場合は白抜き処
理を施さない2値化データを出力するように構成されて
いる。
The output device further includes an instruction means for instructing whether or not the whitening function is valid, and the output device outputs the whitening processing device when the whitening function is instructed by the instructing means. The binarized data is output to the outside as an image sensor output, and the binarized data that is not subjected to the whitening process is output when it is not instructed to be valid.

【0009】[0009]

【作用】本発明の白抜き機能付きイメージスキャナにお
いては、2次元画像の各画素の濃度をイメージセンサで
読み取って2値化データに変換して出力する際、白抜き
処理装置が、前記2値化データを入力し、元の2次元画
像上において周囲が黒画素で囲まれている画素の2値化
データは白画素を示す値に変換して出力し、それ以外の
画素の2値化データはそのまま出力し、出力装置が、白
抜き処理装置から出力された2値化データをイメージス
キャナ出力として外部に出力する。
In the image scanner with the whitening function of the present invention, when the density of each pixel of the two-dimensional image is read by the image sensor and converted into binarized data for output, the whitening processing device uses the binary value. Input binarized data, and the binarized data of pixels surrounded by black pixels on the original two-dimensional image is converted to a value indicating a white pixel and output, and binarized data of other pixels Is output as it is, and the output device outputs the binarized data output from the whitening processing device to the outside as an image scanner output.

【0010】また白抜き処理装置においては、2次元画
像の2値化データが1行分入力される毎に、その入力さ
れた1行分の2値化データ列がi−1行用シフトレジス
タに、このi−1行用シフトレジスタに保持されていた
2値化データ列がi行用シフトレジスタに、このi行用
シフトレジスタに保持されていた2値化データ列がi+
1行用シフトレジスタにそれぞれシフトインされること
により、連続する合計3行分の2値化データ列が保持さ
れる。そして、次の1行分の2値化データが入力される
までの間に、i−1行用シフトレジスタ,i行用シフト
レジスタおよびi+1行用シフトレジスタの内容が、同
期をとって、前行用シフトレジスタ,注目行用シフトレ
ジスタおよび後行用シフトレジスタを経由して一巡する
までシフトされる。この間、パターン判定部が、注目行
用シフトレジスタにシフトインされた3つの2値化デー
タのうちの真ん中の2値化データを注目画素とし、前行
用シフトレジスタ,注目行用シフトレジスタおよび後行
用シフトレジスタに保持された、前記注目画素の周囲
(例えば前後左右)の画素の2値化データの論理積を求
め、その結果に応じて、前記注目画素の2値化データを
白画素の2値化データに変換して出力するか、元の状態
のまま出力するかを決定する。
Further, in the whitening processing device, every time one row of binarized data of a two-dimensional image is inputted, the inputted one row of binarized data string is shifted register for i-1 row. The binarized data string held in the i-1 row shift register is stored in the i row shift register, and the binarized data string held in the i row shift register is i +.
By shifting in the shift register for one row, the binarized data string for a total of three consecutive rows is held. The contents of the i-1 row shift register, the i row shift register, and the i + 1 row shift register are synchronized with each other until the next one row of binarized data is input. Through the row shift register, the target row shift register, and the subsequent row shift register, the shift is performed until one cycle. During this period, the pattern determination unit sets the middle binarized data of the three binarized data shifted into the target row shift register as the target pixel, and sets the front row shift register, the target row shift register, and the rear row shift register. The logical product of the binarized data of the pixels around the target pixel (for example, front, rear, left, and right) held in the row shift register is obtained, and the binarized data of the target pixel is converted into the white pixel according to the result. It is determined whether the data is converted into binary data and output, or the original state is output.

【0011】更に、指示手段が利用者の操作に応じて白
抜き機能を有効とするか否かを指示しており、出力装置
は、白抜き機能を有効と指示する場合に限り白抜き処理
装置から出力された2値化データをイメージセンサ出力
として外部に出力し、有効と指示されないときは白抜き
処理を施さない2値化データを出力する。
Further, the instructing means gives an instruction as to whether or not the whitening function is valid according to the operation of the user, and the output device is the whitening processing device only when the whitening function is valid. The binarized data output from is output to the outside as an image sensor output, and when it is not instructed to be valid, the binarized data that is not subjected to whitening processing is output.

【0012】[0012]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0013】図1は本発明の白抜き機能付きイメージス
キャナの要部ブロック図である。同図において、原稿3
上に描かれた図形や文字等の2次元画像の各画素の濃度
は、光源4,ミラーやレンズ等の光学系5およびCCD
等のイメージセンサ6から構成される読み取り装置7で
読み取られる。この読み取りは、例えば、原稿3上の2
次元画像を左から右に走査する主走査と上から下に走査
する副走査とを交互に繰り返すラスタスキャン方式で行
われる。読み取り装置7で読み取られた各画素の濃度は
シリアルデータとして2値化処理装置8に入力され、こ
こで2値化データに変換される。この2値化データでは
黒画素が例えば“1”,白画素が例えば“0”として表
現される。2値化処理装置8から出力された2値化デー
タは、白抜き処理装置1および出力装置2に入力され
る。
FIG. 1 is a block diagram of the essential parts of an image scanner with a whitening function according to the present invention. In the figure, original 3
The density of each pixel of a two-dimensional image such as a figure or a character drawn above is determined by the light source 4, the optical system 5 such as a mirror and a lens, and the CCD.
The image is read by the reading device 7 including the image sensor 6 and the like. This reading is, for example, 2
This is performed by a raster scan method in which a main scan for scanning a three-dimensional image from left to right and a sub-scan for scanning from top to bottom are alternately repeated. The density of each pixel read by the reading device 7 is input as serial data to the binarization processing device 8 where it is converted into binarized data. In this binarized data, black pixels are represented as "1" and white pixels are represented as "0", for example. The binarized data output from the binarization processing device 8 is input to the whiteout processing device 1 and the output device 2.

【0014】白抜き処理装置1は、入力された2値化デ
ータに基づき、元の2次元画像上において周囲が黒画素
で囲まれている画素の2値化データは白画素を示す値に
変換して出力装置2に出力し、それ以外の画素の2値化
データはそのまま出力装置2に出力する。
The whitening processing device 1 converts the binarized data of pixels surrounded by black pixels in the original two-dimensional image into a value indicating a white pixel based on the inputted binarized data. Then, the binary data of the other pixels are output to the output device 2 as they are.

【0015】出力装置2には、白抜き機能を有効とする
か否かを指示するマニュアルスイッチ等で構成された指
示手段9が接続されており、出力装置2は、指示手段9
が白抜き機能を有効と指示する場合は白抜き処理装置1
から出力された2値化データをイメージセンサ出力とし
て外部に出力し、有効と指示されない場合は白抜き処理
を施さない2値化データ、即ち2値化処理装置8の出力
をイメージセンサ出力として外部に出力する。
The output device 2 is connected to an instruction means 9 composed of a manual switch or the like for instructing whether or not the blanking function is valid. The output device 2 is connected to the instruction means 9.
If the whitening function is effective, the whitening processing device 1
The binarized data output from the image sensor is output to the outside as an image sensor output, and if it is not instructed to be valid, the binarized data that is not subjected to whitening processing, that is, the output of the binarization processing device 8 is output to the image sensor output. Output to.

【0016】以下、本発明の最大の特徴である白抜き処
理装置1について詳細に説明する。
Hereinafter, the whitening processing apparatus 1 which is the greatest feature of the present invention will be described in detail.

【0017】白抜き処理装置1は、本実施例において
は、バッファレジスタ11,第1のシフトレジスタ群1
2,第2のシフトレジスタ群13,パターン判定部14
およびシフト制御部15から構成されている。
In the present embodiment, the whitening processing device 1 includes a buffer register 11 and a first shift register group 1.
2, second shift register group 13, pattern determination unit 14
And the shift control unit 15.

【0018】バッファレジスタ11は、読み取られた2
次元画像の1行分の2値化データを格納する容量を有す
るシフトレジスタであり、2値化処理装置8から出力さ
れた2値化データは一旦このバッファレジスタ11に格
納される。なお、このバッファレジスタ11は初期状態
においてリセットされており、その内容は全て白画素を
示す2値化データとなっている。
The buffer register 11 stores the read 2
The shift register has a capacity to store the binary data of one row of the dimensional image, and the binary data output from the binarization processing device 8 is temporarily stored in the buffer register 11. The buffer register 11 is reset in the initial state, and its contents are all binary data indicating white pixels.

【0019】第1のシフトレジスタ群12は、読み取ら
れた2次元画像の連続する3行分の2値化データを保持
するもので、2次元画像のi−1行目,i行目,i+1
行目の2値化データ列を保持するi−1行用シフトレジ
スタ121,i行用シフトレジスタ122,i+1行用
シフトレジスタ123を有している。各シフトレジスタ
121〜123はパラレル入出力およびシリアル入出力
可能であり、i−1行用シフトレジスタ121のパラレ
ル入力元はバッファレジスタ11、パラレル出力先はi
行用シフトレジスタ122であり、i行用シフトレジス
タ122のパラレル入力元はi−1行用シフトレジスタ
121、パラレル出力先はi+1行用シフトレジスタ1
23であり、i+1行用シフトレジスタ123のパラレ
ル入力元はi行用シフトレジスタ122である。なお、
各シフトレジスタ121,122,123の初期内容は
全て白画素を示す2値化データである。
The first shift register group 12 holds the binarized data for three consecutive rows of the read two-dimensional image, and is the i-1th row, i-th row, i + 1 of the two-dimensional image.
It has an i-1 row shift register 121, an i row shift register 122, and an i + 1 row shift register 123 that hold the binary data string of the row. Each of the shift registers 121 to 123 can perform parallel input / output and serial input / output. The parallel input source of the i-1 row shift register 121 is the buffer register 11 and the parallel output destination is i.
The row shift register 122, the parallel input source of the i row shift register 122 is the i−1 row shift register 121, and the parallel output destination is the i + 1 row shift register 1.
23, and the parallel input source of the shift register 123 for the i + 1th row is the shift register 122 for the ith row. In addition,
The initial contents of each shift register 121, 122, 123 are all binary data indicating white pixels.

【0020】第2のシフトレジスタ群13は、読み取ら
れた2次元画像上に、行方向サイズ,列方向サイズ共に
3画素とした3×3のサイズの矩形を設定した際の、そ
の矩形に含まれる9個の画素の2値化データを保持する
もので、それぞれ3画素分の容量を持つ前行用シフトレ
ジスタ131,注目行用シフトレジスタ132,後行用
シフトレジスタ133を有している。各シフトレジスタ
131〜133はシリアル入出力可能であり、それぞれ
i−1行用シフトレジスタ121,i行用シフトレジス
タ122,i+1行用シフトレジスタ123のシリアル
出力端子とシリアル入力端子との間に接続されている。
また、前行用シフトレジスタ131および後行用シフト
レジスタ133に保持された真ん中の2値化データと、
注目行用シフトレジスタ132に保持された全ての2値
化データはパターン判定部14に出力されている。な
お、各シフトレジスタ131〜133の初期状態は全て
白画素を示す2値化データになっている。
The second shift register group 13 is included in a rectangle of a size of 3 × 3 in which the size in the row direction and the size in the column direction are 3 pixels on the read two-dimensional image. It holds the binarized data of 9 pixels, and has a shift register 131 for the preceding row, a shift register 132 for the target row, and a shift register 133 for the subsequent row, each of which has a capacity of 3 pixels. Each of the shift registers 131 to 133 is capable of serial input / output, and is connected between the serial output terminal and the serial input terminal of the i-1 row shift register 121, the i row shift register 122, and the i + 1 row shift register 123, respectively. Has been done.
In addition, the middle binarized data held in the preceding row shift register 131 and the following row shift register 133,
All the binarized data held in the row shift register 132 of interest is output to the pattern determination unit 14. The initial states of the shift registers 131 to 133 are all binary data indicating white pixels.

【0021】パターン判定部14は、第2のシフトレジ
スタ群13において保持された3×3画素の中心画素の
前後左右の画素の2値化データが全て黒画素を示すとき
は、中心画素の2値化データを、白画素を示す値に変換
して出力し、それ以外の場合は中心画素の2値化データ
をそのまま出力するもので、注目行用シフトレジスタ1
32から出力された3つの2値化データのうちの真ん中
の2値化データを除く2つの2値化データと前行用シフ
トレジスタ131,後行用シフトレジスタ133から出
力された真ん中の2値化データとの合計4個の2値化デ
ータの論理積を求めるアンドゲート141と、注目行用
シフトレジスタ132から出力された真ん中の2値化デ
ータを注目画素とし、アンドゲート141の出力が論理
“1”(入力の2値化データが全て黒画素の場合)のと
きは、注目画素の2値化データを白画素の2値化データ
に変換して出力装置2に出力し、アンドゲート141の
出力が論理“0”(入力の2値化データが全て黒画素で
ない場合)のときは、注目画素の2値化データをそのま
ま出力装置2に出力するゲート群142とから構成され
ている。
When the binarized data of the pixels before and after the center pixel of 3 × 3 pixels held in the second shift register group 13 indicate all black pixels, the pattern determination unit 14 outputs 2 of the center pixels. The value-converted data is converted into a value indicating a white pixel and output, and in other cases, the binarized data of the central pixel is output as it is.
Of the three binarized data output from 32, the two binarized data excluding the middle binarized data and the middle binary output from the preceding row shift register 131 and the succeeding row shift register 133. AND gate 141 for obtaining a logical product of a total of four binarized data with the binarized data, and the middle binarized data output from the shift register 132 for the row of interest as the pixel of interest, and the output of AND gate 141 is logical When it is “1” (when the input binarized data are all black pixels), the binarized data of the target pixel is converted into the binarized data of the white pixel and output to the output device 2, and the AND gate 141 Is logical "0" (when all input binarized data are not black pixels), it is composed of a gate group 142 that outputs the binarized data of the target pixel to the output device 2 as it is.

【0022】シフト制御部15は、イメージスキャナ全
体を制御する図示しないコントロール回路から供給され
るクロック,タイミング信号に基づき、バッファレジス
タ11,第1および第2のシフトレジスタ群12,13
のシフトを制御する部分である。このシフト制御部15
は、2値化処理装置8から出力される2値化データを1
行分にわたってバッファレジスタ11にシフトインする
毎に、この入力された1行分の2値化データ列をi−1
行用シフトレジスタ121に、このi−1行用シフトレ
ジスタ121に保持されていた2値化データ列をi行用
シフトレジスタ122に、このi行用シフトレジスタ1
22に保持されていた2値化データ列をi+1行用シフ
トレジスタ123にそれぞれシフトインする制御を行
う。そして、次の1行分の2値化データがバッファレジ
スタ11に入力されるまでの間に、所定の速度で、i−
1行用シフトレジスタ121,i行用シフトレジスタ1
22およびi+1行用シフトレジスタ123の内容を、
同期をとって、前行用シフトレジスタ131,注目行用
シフトレジスタ132および後行用シフトレジスタ13
3を経由してシリアルに一巡させるシフト制御を実施す
る。なお、シフト制御部15は、出力装置2に対して、
白抜き処理装置1の出力が有効である期間を示す有効期
間信号も出力する機能を有している。
The shift control section 15 is based on a clock signal and a timing signal supplied from a control circuit (not shown) for controlling the entire image scanner, and the buffer register 11 and the first and second shift register groups 12 and 13.
Is the part that controls the shift of. This shift control unit 15
Is the binarized data output from the binarization processing device 1
Every time the buffer register 11 is shifted in over the rows, the input binary data string for one row is i−1.
In the row shift register 121, the binarized data string held in the i-1 row shift register 121 is stored in the i row shift register 122, and the i row shift register 1
Control is performed to shift in the binarized data string held in 22 into the shift register 123 for the i + 1th row. Then, until the next one row of binarized data is input to the buffer register 11, the i-
1-row shift register 121, i-row shift register 1
22 and the contents of the shift register 123 for the i + 1 row,
In synchronization with each other, the preceding row shift register 131, the target row shift register 132, and the succeeding row shift register 13
Shift control is performed to serially make one cycle via 3. In addition, the shift control unit 15 controls the output device 2 with respect to the output device 2.
It also has a function of outputting an effective period signal indicating a period during which the output of the whitening processing device 1 is effective.

【0023】このように構成された白抜き処理装置1は
以下のように動作する。
The whitening processing device 1 configured as described above operates as follows.

【0024】2次元画像の第1行目の2値化データ列が
バッファレジスタ11に蓄積されると、シフト制御部1
5はそれをi−1行用シフトレジスタ121に移送し、
次の2行目の2値化データ列がバッファレジスタ11に
蓄積されると、1行目の2値化データ列をi−1行用シ
フトレジスタ121からi行用シフトレジスタ122に
移送すると共に、2行目の2値化データ列をバッファレ
ジスタ11からi−1行用シフトレジスタ121に移送
する。そして、シフトレジスタ121〜123,131
〜133をシリアルに2画素分シフトした時点で、出力
装置2に対する有効期間信号をオンにして、更にシフト
レジスタ121〜123,131〜133のシフトを続
け、シフトレジスタ121〜123の最後の画素の2値
化データがシフトレジスタ131〜133の真ん中にシ
フトインされて処理された時点で、出力装置2に対する
有効期間信号をオフにし、更に2画素分シフトを続け、
シフトレジスタ121〜123,131〜133をシフ
ト開始直前の状態に戻す。
When the binary data string of the first row of the two-dimensional image is accumulated in the buffer register 11, the shift control unit 1
5 transfers it to the shift register 121 for i-1 rows,
When the next binary data string of the second row is accumulated in the buffer register 11, the binary data string of the first row is transferred from the i-1 row shift register 121 to the i row shift register 122 and The binary data string in the second row is transferred from the buffer register 11 to the shift register 121 for the i−1th row. Then, the shift registers 121 to 123, 131
.. 133 are serially shifted by 2 pixels, the effective period signal for the output device 2 is turned on, the shift registers 121 to 123 and 131 to 133 are further shifted, and the last pixel of the shift registers 121 to 123 is changed. At the time when the binarized data is shifted into the middle of the shift registers 131 to 133 and processed, the effective period signal for the output device 2 is turned off, and the shift is continued by two pixels.
The shift registers 121 to 123 and 131 to 133 are returned to the states immediately before the start of the shift.

【0025】パターン判定部14では、アンドゲート1
41により、注目行用シフトレジスタ132から出力さ
れた3つの2値化データのうちの真ん中の2値化データ
を除く2つの2値化データと前行用シフトレジスタ13
1,後行用シフトレジスタ133から出力された真ん中
の2値化データとの合計4個の2値化データの論理積が
求められ、ゲート群142は、アンドゲート141の出
力が論理“1”のときは、注目行用シフトレジスタ13
2から出力されている真ん中の2値化データを白画素の
2値化データに変換して出力装置2に出力し、アンドゲ
ート141の出力が論理“0”のときは、注目画素の2
値化データをそのまま出力装置2に出力する。これによ
って、1行目の画素列の左の画素から最後の画素まで順
に、前後左右の画素が全て黒画素に囲まれている画素に
ついては白画素に変更される。但し、1行目の処理に際
しては0行目は全て白画素として処理される。
In the pattern judging section 14, the AND gate 1
By 41, the two binarized data excluding the middle binarized data among the three binarized data output from the target row shift register 132 and the preceding row shift register 13
1, a logical product of a total of four binarized data with the middle binarized data output from the subsequent shift register 133 is obtained, and the gate group 142 outputs the AND gate 141 outputs the logic “1”. When, the shift register 13 for the row of interest is
The binary data in the middle output from 2 is converted into the binary data of the white pixel and output to the output device 2. When the output of the AND gate 141 is logical "0", the 2
The digitized data is output to the output device 2 as it is. As a result, in the order from the left pixel to the last pixel of the pixel row of the first row, the pixels whose front, rear, left, and right are all surrounded by black pixels are changed to white pixels. However, in the processing of the first row, all of the 0th row are processed as white pixels.

【0026】出力装置2は、指示手段9が白抜き機能が
有効であることを指示する場合、シフト制御部15から
の有効期間信号がオンの期間中にパターン判定部14か
ら出力された2値化データを入力して、外部に出力す
る。
When the instructing means 9 indicates that the blanking function is effective, the output device 2 outputs the binary value output from the pattern determining section 14 while the effective period signal from the shift control section 15 is on. Input the converted data and output it to the outside.

【0027】次に、3行目の2値化データ列がバッファ
レジスタ11に蓄積されると、シフト制御部15は、1
行目の2値化データ列をi行用シフトレジスタ122か
らi+1行用シフトレジスタ123に、2行目の2値化
データ列をi−1行用シフトレジスタ121からi行用
シフトレジスタ122にそれぞれ移送し、3行目の2値
化データ列をバッファレジスタ11からi−1行用シフ
トレジスタ121に移送する。そして、前述と同様なシ
フトレジスタ121〜123,131〜133に対する
シフト制御を実施する。これにより、パターン判定部1
4において、2行目の画素列の左の画素から最後の画素
まで順に、前後左右の画素が全て黒画素に囲まれている
画素については白画素に変更される。
Next, when the binarized data string of the third row is accumulated in the buffer register 11, the shift control unit 15 sets 1
The binary data string of the row is transferred from the i-th row shift register 122 to the i + 1 row shift register 123, and the second binary data string is transferred from the i-1 row shift register 121 to the i-row shift register 122. Each of them is transferred, and the binary data string of the third row is transferred from the buffer register 11 to the shift register 121 for i-1 row. Then, the shift control for the shift registers 121 to 123 and 131 to 133 similar to that described above is performed. Thereby, the pattern determination unit 1
In 4, the pixels in which the front, rear, left, and right pixels are all surrounded by black pixels in order from the left pixel to the last pixel of the second row of pixel columns are changed to white pixels.

【0028】以上のような動作は、2値化処理装置8か
ら出力される最後の行の2値化データ列が処理されるま
で続けられる。なお、最後の行の2値化データ列をi行
用シフトレジスタ122に移送する段階では、バッファ
レジスタ11の内容は初期状態に戻されるため、i−1
行用シフトレジスタ121には全て白画素の2値化デー
タが格納される。
The above operation is continued until the binary data string of the last row output from the binary processing device 8 is processed. At the stage of transferring the binary data string of the last row to the i-row shift register 122, the contents of the buffer register 11 are returned to the initial state, so i-1
Binary data of all white pixels is stored in the row shift register 121.

【0029】図2は読み取り対象となった2次元画像の
例とこれを本実施例によって白抜き処理した画像の例と
を示す。同図の符号Aが元の画像であり、同図の符号B
が白抜き処理後の2値化データ列で表現される画像であ
る。なお、1画素のサイズを示すために枡目を描いてい
るが、これは元の画像には含まれない。同図に示すよう
に、元の画像の各画素のうち、前後左右が黒画素である
画素は、全て白画素に変換されることにより、白抜きの
図形が得られている。
FIG. 2 shows an example of a two-dimensional image to be read and an example of an image obtained by whitening the two-dimensional image according to the present embodiment. Reference numeral A in the figure is the original image, and reference numeral B in the figure is
Is an image represented by a binarized data string after whitening processing. It should be noted that although a grid is drawn to show the size of one pixel, this is not included in the original image. As shown in the figure, among the pixels of the original image, all the pixels whose front, rear, left, and right are black pixels are converted into white pixels, so that an outline figure is obtained.

【0030】以上の実施例では、前後左右の4個の画素
が黒画素である場合に、周囲が黒画素で囲まれているも
のとしたが、前後左右および斜め方向の合計8個の画素
が黒画素である場合に、周囲が黒画素で囲まれているも
のとしても良い。この場合は、パターン判定部14のア
ンドゲート141には、シフトレジスタ132の真ん中
の画素の2値化データを除く、シフトレジスタ131〜
133に格納されている合計8個の2値化データが入力
される。
In the above embodiment, when four pixels in the front, rear, left and right are black pixels, it is assumed that the surroundings are surrounded by black pixels. When the pixel is a black pixel, it may be surrounded by black pixels. In this case, the AND gate 141 of the pattern determination unit 14 includes the shift registers 131 to 141 excluding the binary data of the middle pixel of the shift register 132.
A total of eight binarized data stored in 133 are input.

【0031】[0031]

【発明の効果】以上説明した本発明の白抜き機能付きイ
メージスキャナによれば、以下のような効果を得ること
ができる。
According to the image scanner with a whitening function of the present invention described above, the following effects can be obtained.

【0032】イメージスキャナから白抜き加工された画
像が自動的に出力されるので、あらためて白抜き図形に
加工する作業が不要となる。このため、イラスト作成等
が簡単に行える。
Since the image processed by the image scanner is automatically output from the image scanner, there is no need for the work of processing the figure again. Therefore, illustrations can be easily created.

【0033】イメージスキャナで白抜き機能を実現する
他の構成として、2値化データ全てを一旦メモリに格納
し、その後にソフトウェア処理にて白抜き処理を施して
出力する構成も考えられるが、そうすると大規模なハー
ドウェアが必要となり、且つ処理時間も長くかかる。請
求項2記載の白抜き処理装置の構成によれば、少ないハ
ードウェア量で実現でき、然も高速な処理が可能とな
る。
As another configuration for realizing the whitening function in the image scanner, a configuration may be considered in which all the binarized data are temporarily stored in the memory, and then whitening processing is performed by software processing and output. Large-scale hardware is required and the processing time is long. According to the configuration of the whitening processing device according to the second aspect, it can be realized with a small amount of hardware, and high-speed processing is possible.

【0034】請求項3記載の構成によれば、白抜き機能
の有効,無効を利用者が自由に選択することができる。
According to the third aspect of the present invention, the user can freely select whether the whiteout function is valid or invalid.

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

【図1】本発明の一実施例の要部ブロック図である。FIG. 1 is a block diagram of an essential part of an embodiment of the present invention.

【図2】元の画像と白抜き処理後の画像の例を示す図で
ある。
FIG. 2 is a diagram showing an example of an original image and an image after whitening processing.

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

1…白抜き処理装置 11…バッファレジスタ 12…第1のシフトレジスタ群 121…i−1行用シフトレジスタ 122…i行用シフトレジスタ 123…i+1行用シフトレジスタ 13…第2のシフトレジスタ群 131…前行用シフトレジスタ 132…注目行用シフトレジスタ 133…後行用シフトレジスタ 14…パターン判定部 141…アンドゲート 142…ゲート群 15…シフト制御部 2…出力装置 3…原稿 4…光源 5…光学系 6…イメージセンサ 7…読み取り装置 8…2値化処理装置 9…指示手段 DESCRIPTION OF SYMBOLS 1 ... White processing apparatus 11 ... Buffer register 12 ... 1st shift register group 121 ... i-1 row shift register 122 ... i row shift register 123 ... i + 1 row shift register 13 ... 2nd shift register group 131 ... shift register for front row 132 ... shift register for target row 133 ... shift register for rear row 14 ... pattern determination unit 141 ... AND gate 142 ... gate group 15 ... shift control unit 2 ... output device 3 ... manuscript 4 ... light source 5 ... Optical system 6 ... Image sensor 7 ... Reading device 8 ... Binarization processing device 9 ... Instructing means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 2次元画像の各画素の濃度をイメージセ
ンサで読み取って2値化データに変換して出力するイメ
ージスキャナにおいて、 前記2値化データを入力し、元の2次元画像において周
囲が黒画素で囲まれている画素の2値化データは白画素
を示す値に変換して出力し、それ以外の画素の2値化デ
ータはそのまま出力する白抜き処理装置と、 該白抜き処理装置から出力された2値化データをイメー
ジスキャナ出力として外部に出力する出力装置とを備え
ることを特徴とする白抜き機能付きイメージスキャナ。
1. An image scanner which reads the density of each pixel of a two-dimensional image with an image sensor, converts the density into binary data, and outputs the binary data. A whitening processing device for converting binary data of pixels surrounded by black pixels into a value indicating a white pixel and outputting the converted value, and outputting the binary data of other pixels as they are, and the whitening processing device. An image scanner with a whitening function, comprising: an output device that outputs the binarized data output from the device as an image scanner output to the outside.
【請求項2】 前記白抜き処理装置は、 2次元画像のi−1行目,i行目,i+1行目の2値化
データ列を保持するi−1行用シフトレジスタ,i行用
シフトレジスタ,i+1行用シフトレジスタと、 前記i−1行用シフトレジスタ,前記i行用シフトレジ
スタ,前記i+1行用シフトレジスタのシリアル出力端
子とシリアル入力端子との間に接続された3画素容量の
前行用シフトレジスタ,注目行用シフトレジスタ,後行
用シフトレジスタと、 2次元画像の2値化データが1行分入力される毎に、該
入力された1行分の2値化データ列を前記i−1行用シ
フトレジスタに、該i−1行用シフトレジスタに保持さ
れていた2値化データ列を前記i行用シフトレジスタ
に、該i行用シフトレジスタに保持されていた2値化デ
ータ列を前記i+1行用シフトレジスタにそれぞれシフ
トインし、且つ、次の1行分の2値化データが入力され
るまでの間に、前記i−1行用シフトレジスタ,前記i
行用シフトレジスタおよび前記i+1行用シフトレジス
タの内容を、同期をとって、前記前行用シフトレジス
タ,前記注目行用シフトレジスタおよび前記後行用シフ
トレジスタを経由して一巡させるシフト制御部と、 前記注目行用シフトレジスタにシフトインされた3つの
2値化データのうちの真ん中の2値化データを注目画素
とし、前記前行用シフトレジスタ,前記注目行用シフト
レジスタおよび前記後行用シフトレジスタに保持され
た、前記注目画素の周囲の画素の2値化データの論理積
を求め、その結果に応じて、前記注目画素の2値化デー
タを白画素の2値化データに変換して出力するか、元の
状態のまま出力するかを決定するパターン判定部とを含
むことを特徴とする請求項1記載の白抜き機能付きイメ
ージスキャナ。
2. The whiteout processing device is a shift register for i-1 row and a shift for i row which holds a binarized data column of the i-1th row, the ith row, and the i + 1th row of a two-dimensional image. A register, a shift register for i + 1 row, a shift register for i−1 row, a shift register for i row, and a shift register for i + 1 row, which has a capacity of 3 pixels connected between serial output terminals and serial input terminals. Every time one row of binary data of a two-dimensional image is input, the shift register for the preceding row, the shift register for the target row, the shift register for the subsequent row, and the input binary data string for the one row In the shift register for the i-1 row, the binarized data string held in the shift register for the i-1 row in the shift register for the i row, and the binary data string held in the shift register for the i row The digitized data string is i + 1 The shift register for row i-1, the shift register for row i, and the row i before the binarized data for one row are input to the row shift registers, respectively.
And a shift control unit for circulating the contents of the row shift register and the i + 1 row shift register through the shift register for the preceding row, the shift register for the target row, and the shift register for the subsequent row in synchronization with each other. , The middle binarized data of the three binarized data shifted into the target row shift register is set as the target pixel, and the preceding row shift register, the target row shift register, and the subsequent row are used. The logical product of the binarized data of the pixels around the pixel of interest held in the shift register is obtained, and the binarized data of the pixel of interest is converted into the binarized data of the white pixel according to the result. 2. The image scanner with a blanking function according to claim 1, further comprising: a pattern determination unit that determines whether the image is to be output in the original state or to be output in the original state.
【請求項3】 白抜き機能を有効とするか否かを指示す
る指示手段を備え、 前記出力装置は、前記指示手段が白抜き機能を有効と指
示する場合は前記白抜き処理装置から出力された2値化
データをイメージセンサ出力として外部に出力し、有効
と指示されない場合は白抜き処理を施さない2値化デー
タを出力することを特徴とする請求項2記載の白抜き機
能付きイメージスキャナ。
3. An output device is provided with an instruction means for instructing whether or not to enable the whitening function, and the output device outputs from the whitening processing device when the instruction means instructs to enable the whitening function. 3. The image scanner with a whitening function according to claim 2, wherein the binarized data is output to the outside as an image sensor output, and the binarized data not subjected to the whitening processing is output when it is not instructed to be valid. .
JP6336175A 1994-12-22 1994-12-22 Image scanner with outline function Expired - Lifetime JP2861845B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6336175A JP2861845B2 (en) 1994-12-22 1994-12-22 Image scanner with outline function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6336175A JP2861845B2 (en) 1994-12-22 1994-12-22 Image scanner with outline function

Publications (2)

Publication Number Publication Date
JPH08181852A true JPH08181852A (en) 1996-07-12
JP2861845B2 JP2861845B2 (en) 1999-02-24

Family

ID=18296445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6336175A Expired - Lifetime JP2861845B2 (en) 1994-12-22 1994-12-22 Image scanner with outline function

Country Status (1)

Country Link
JP (1) JP2861845B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0379159A (en) * 1989-08-23 1991-04-04 Ricoh Co Ltd Image processor
JPH07203183A (en) * 1993-12-28 1995-08-04 Toshiba Corp Image processing method and image forming device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0379159A (en) * 1989-08-23 1991-04-04 Ricoh Co Ltd Image processor
JPH07203183A (en) * 1993-12-28 1995-08-04 Toshiba Corp Image processing method and image forming device

Also Published As

Publication number Publication date
JP2861845B2 (en) 1999-02-24

Similar Documents

Publication Publication Date Title
US5034806A (en) Image processing apparatus and method
US5136665A (en) Two-sided original reading apparatus
EP0195372B1 (en) Method and apparatus for forming 3x3 pixel arrays and for performing programmable pattern contingent modifications of those arrays
JPH0622197A (en) Picture processing unit
JPH09130558A (en) Video data transfer system and video data transfer method
JPH08181852A (en) Image scanner with void function
CN113612948A (en) Readout circuit and image sensor
JPH04295980A (en) Image reader
JP2887840B2 (en) Image reading device
JP2689609B2 (en) Video camera equipment
JPS63313967A (en) Dot density converter
JPS60171862A (en) Picture reader
JPS6346872A (en) Image processing device
JPH0896116A (en) Processor and method for image signal processing
JPS619764A (en) Picture processor
JPH0211948B2 (en)
JPH10191176A (en) Operation control method for two-dimension image pickup element, image processing method and image pickup device using the method and image processing unit using the image pickup device
JPH10187864A (en) Optical information reader and image sensor
JPS58169681A (en) Picture processing circuit
JP3212664B2 (en) Image processing device
JPH0573668A (en) Mosaic processor
JPH09130592A (en) Picture processor
JPH0546807A (en) Processing system for parallel picture signal
JPS6346871A (en) Image processing device
JPH07254964A (en) Drive control circuit for image reader