JP2861845B2 - Image scanner with outline function - Google Patents
Image scanner with outline functionInfo
- Publication number
- JP2861845B2 JP2861845B2 JP6336175A JP33617594A JP2861845B2 JP 2861845 B2 JP2861845 B2 JP 2861845B2 JP 6336175 A JP6336175 A JP 6336175A JP 33617594 A JP33617594 A JP 33617594A JP 2861845 B2 JP2861845 B2 JP 2861845B2
- Authority
- JP
- Japan
- Prior art keywords
- row
- shift register
- output
- pixel
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 230000002087 whitening effect Effects 0.000 claims description 26
- 238000000034 method Methods 0.000 claims description 3
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 239000003990 capacitor Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Editing Of Facsimile Originals (AREA)
- Image Analysis (AREA)
Description
【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 whiteout function.
【0002】[0002]
【従来の技術】イメージスキャナは、絵や写真,図形な
どの画像をイメージセンサにより読み取って2値化デー
タに変換して出力する装置であり、元の画像を忠実に読
み取って出力することを基本としている。イメージスキ
ャナは種々の分野に利用されており、特に最近では、パ
ーソナルコンピュータやワードプロセッサへのイメージ
入力用として簡易なイメージスキャナが実用化され、絵
や写真などを簡単にパーソナルコンピュータ等に入力す
ることができるようになっている。2. Description of the Related Art An image scanner is a device for reading an image such as a picture, a photograph or a figure by an image sensor, converting the image into binary data, and outputting the binary data. And Image scanners are used in various fields.In particular, simple image scanners have recently been put into practical use for inputting images into personal computers and word processors, and can easily input pictures and photographs into a personal computer. I can do it.
【0003】[0003]
【発明が解決しようとする課題】ところで、従来のイメ
ージスキャナは、元の画像を忠実に読み取って出力する
基本的な機能しか有しないため、ベタ塗りの図形をイメ
ージスキャナで読み取った場合、元と同じベタ塗りの図
形がパーソナルコンピュータ等に入力される。このた
め、元の図形の輪郭部分だけの図形、即ち白抜きした図
形をイラスト作成する場合、入力された図形をパーソナ
ルコンピュータの図形作成ソフトウェアに図形データと
して入力し、白抜き図形に加工する作業が別途必要にな
る。However, the conventional image scanner has only a basic function of faithfully reading and outputting an original image. The same solid figure is input to a personal computer or the like. For this reason, when an illustration is to be created for a figure having only the outline portion of the original figure, that is, an outlined figure, it is necessary to input the entered figure as figure data into figure creation software of a personal computer and process the figure into a outlined figure. Required separately.
【0004】本発明は、このような白抜き図形に加工す
る作業から利用者を解放し得るようにするために提案さ
れたものであり、その目的は、出力の時点で既に白抜き
加工された画像が得られるようにしたイメージスキャナ
を提供することにある。The present invention has been proposed in order to release the user from the operation of processing such a white figure, and the purpose of the present invention is to make the white figure already processed at the time of output. It is an object of the present invention to provide an image scanner capable of obtaining an image.
【0005】なお、イメージセンサで読み取った画像を
そのまま出力せずに加工して出力する装置として、特開
昭63−224473号公報に見られる装置が知られて
いる。しかし、この装置はディジタル複写装置であり、
然も、ベタ塗りの図形を網かけ模様の図形に変換して出
力するものであって、白抜き図形に加工して出力する本
発明とは基本的に相違する。As an apparatus for processing an image read by an image sensor without outputting the image as it is, an apparatus as disclosed in JP-A-63-224473 is known. However, this device is a digital copier,
Naturally, a solid figure is converted into a shaded figure and output, which is fundamentally different from the present invention in which a white figure is processed and output.
【0006】[0006]
【課題を解決するための手段】本発明の白抜き機能付き
イメージスキャナは、2次元画像の各画素の濃度をイメ
ージセンサで読み取る読み取り装置と、該読み取り装置
で読み取られた各画素の濃度を2値化データに変換して
出力する2値化処理装置とを有するイメージスキャナに
おいて、白抜き機能を有効とするか否かを指示する指示
手段と、前記2値化処理装置から出力された2値化デー
タを入力し、元の2次元画像において周囲が黒画素で囲
まれている画素の2値化データは白画素を示す値に変換
して出力し、それ以外の画素の2値化データはそのまま
出力する白抜き処理装置と、前記指示手段が白抜き機能
を有効と指示する場合は前記白抜き処理装置から出力さ
れた2値化データをイメージセンサ出力として外部に出
力し、有効と指示されない場合は前記2値化処理装置か
ら出力された2値化データをイメージセンサ出力として
外部に出力する出力装置とを備えている。Means for Solving the Problems] white function image scanner of the present invention, a reading device that reads the density of each pixel of the two-dimensional image by the image sensor, the reading device
Converts the density of each pixel read in to binary data
An instruction for instructing whether to enable the whiteout function in an image scanner having a binarization processing device for outputting
Means and binarized data output from the binarization processing device, and the binarized data of a pixel surrounded by black pixels in the original two-dimensional image is converted into a value indicating a white pixel and outputs binarized data and white processing apparatus for outputting it, said indicating means white features other pixels
Is output as an image sensor output to the outside when the instruction is valid, and when the instruction is not valid, the binary data is output from the binarization processing apparatus.
Binarized data output from the camera as an image sensor output
And an output device for outputting to the outside .
【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値化データに変換して出力するか、元の状態
のまま出力するかを決定するパターン判定部とで構成さ
れている。[0007] The whitening processing device includes a shift register for an (i-1) -th row, a shift register for an (i) -th row, which holds a binarized data string of an (i-1) -th row, an i-th row, and an (i + 1) -th row of a two-dimensional image. Register, i + 1 row shift register, i-1 row shift register, i row shift register, i + 1
A three-pixel capacity shift register for the previous row, a shift register for the row of interest, a shift register for the next row, and binary data of a two-dimensional image connected between the serial output terminal and the serial input terminal of the row shift register Each time is input for one row, the input binary data string for one row is stored in the i-1
In the row shift register, the binary data sequence held in the (i-1) th row shift register is stored in the i-th row shift register, and the binary data sequence held in the i-th row shift register is stored in the row shift register. The shift register for the (i-1) -th row, the shift register for the i-th row, and the shift register for the i-th row are shifted into the shift register for the (i + 1) -th row, respectively, and until the next one row of binary data is input. a shift controller for synchronizing the contents of the shift register for the (i + 1) th row through the preceding row shift register, the noted row shift register, and the following row shift register in a synchronized manner; Three 2 shifted into register
The middle binarized data of the binarized data is set as a target pixel, and held in the shift register for the previous row, the shift register for the target row, and the shift register for the rear row.
The logical product of the binarized data of the pixels surrounding the target pixel is obtained, and according to the result, the binarized data of the target pixel is converted to the binary data of the white pixel and output, or And a pattern determination unit that determines whether to output the state as it is.
【0008】[0008]
【0009】[0009]
【作用】本発明の白抜き機能付きイメージスキャナにお
いては、2次元画像の各画素の濃度をイメージセンサで
読み取って2値化データに変換して出力する際、白抜き
処理装置が、前記2値化データを入力し、元の2次元画
像上において周囲が黒画素で囲まれている画素の2値化
データは白画素を示す値に変換して出力し、それ以外の
画素の2値化データはそのまま出力し、出力装置が、白
抜き処理装置から出力された2値化データをイメージス
キャナ出力として外部に出力する。In the image scanner with a whitening function according to the present invention, when the density of each pixel of a two-dimensional image is read by an image sensor and converted into binary data and output, the whitening processing device uses the binary processing device. Binarized data is input, and the binarized data of a pixel surrounded by black pixels on the original two-dimensional image is converted into a value indicating a white pixel and output, and the binarized data of other pixels is output. Is output as it is, and the output device outputs the binary 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値化データに変換して出力するか、元の状態
のまま出力するかを決定する。In the whitening processing apparatus, every time one line of binary data of a two-dimensional image is input, the input binary data sequence of one row is shifted to an i-1 row shift register. The binarized data sequence held in the (i-1) -th row shift register is stored in the i-th row shift register, and the binarized data sequence stored in the i-th row shift register is stored in i +
By shifting into the one-row shift register, binary data strings for a total of three consecutive rows are held. By the time the binary data for the next one row is input, the contents of the shift register for the (i-1) th row, the shift register for the i row, and the shift register for the (i + 1) th row are synchronized, and The data is shifted through the row shift register, the row shift register of interest, and the shift register for the subsequent row until one cycle is completed. During this time, 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 preceding row shift register, the target row shift register, and the rear 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 to the white pixel according to the result. It is determined whether to convert the data into binary data and output the data, or to output the data in its original state.
【0011】更に、指示手段が利用者の操作に応じて白
抜き機能を有効とするか否かを指示しており、出力装置
は、白抜き機能を有効と指示する場合に限り白抜き処理
装置から出力された2値化データをイメージセンサ出力
として外部に出力し、有効と指示されないときは白抜き
処理を施さない2値化データを出力する。Further, the instructing means instructs whether or not to enable the whiteout function in accordance with the operation of the user, and the output device outputs the whiteout processing device only when the whiteout function is instructed to be effective. Is output to the outside as an image sensor output, and when it is not instructed to be valid, binarized data that is not subjected to whitening processing is output.
【0012】[0012]
【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will 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 a main part of an image scanner with a whitening function according to the present invention. In FIG.
The density of each pixel of a two-dimensional image such as a figure or a character drawn above is determined by a light source 4, an optical system 5 such as a mirror or a lens, and a CCD.
The image is read by a reading device 7 including an image sensor 6. This reading is performed by, for example,
This is performed by a raster scan method in which a main scan for scanning a 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 to the binarization processing device 8 as serial data, where it is converted into binary data. In this binarized data, a black pixel is expressed as "1" and a white pixel is expressed 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 binary data of a pixel surrounded by black pixels on the original two-dimensional image into a value indicating a white pixel on the basis of the input binary data. Then, the data is output to the output device 2, and the binarized data of the other pixels is directly output to the output device 2.
【0015】出力装置2には、白抜き機能を有効とする
か否かを指示するマニュアルスイッチ等で構成された指
示手段9が接続されており、出力装置2は、指示手段9
が白抜き機能を有効と指示する場合は白抜き処理装置1
から出力された2値化データをイメージセンサ出力とし
て外部に出力し、有効と指示されない場合は白抜き処理
を施さない2値化データ、即ち2値化処理装置8の出力
をイメージセンサ出力として外部に出力する。The output device 2 is connected with an instruction means 9 comprising a manual switch or the like for instructing whether or not to enable the whitening function.
Indicates that the outline function is valid, the outline processing device 1
Is output to the outside as an image sensor output, and if not valid, binarized data not subjected to whitening processing, that is, the output of the binarization processing device 8 is output as an image sensor output to the outside. Output to
【0016】以下、本発明の最大の特徴である白抜き処
理装置1について詳細に説明する。Hereinafter, the outline processing apparatus 1 which is the most important feature of the present invention will be described in detail.
【0017】白抜き処理装置1は、本実施例において
は、バッファレジスタ11,第1のシフトレジスタ群1
2,第2のシフトレジスタ群13,パターン判定部14
およびシフト制御部15から構成されている。In this embodiment, the whitening processing device 1 includes a buffer register 11 and a first shift register group 1.
2, the second shift register group 13, the pattern determination unit 14
And a 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 binarized data for one row of the dimensional image. The binarized data output from the binarization processing device 8 is temporarily stored in the buffer register 11. Note that the buffer register 11 is reset in an 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 binary data of three consecutive rows of the read two-dimensional image. The first shift register group 12 includes the (i-1) -th row, the i-th row, and i + 1 of the two-dimensional image.
It has a shift register 121 for the (i-1) -th row, a shift register 122 for the i-th row, and a shift register 123 for the (i + 1) -th row that hold the binarized data string of the row. Each of the shift registers 121 to 123 is capable of 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 has a parallel input source i-1 row shift register 121 and a parallel output destination i + 1 row shift register 1
The parallel input source of the shift register 123 for the (i + 1) -th row is the shift register 122 for the i-th row. In addition,
The initial contents of each of the shift registers 121, 122, and 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 includes a rectangle of 3 × 3 in which the size in the row direction and the size in the column direction is set to 3 pixels on the read two-dimensional image. It holds the binarized data of nine pixels, and has a shift register 131 for the previous row, a shift register 132 for the target row, and a shift register 133 for the rear row each having a capacity of three 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. Have been.
Also, 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 target row shift register 132 has been output to the pattern determination unit 14. Note that the initial state of each of the shift registers 131 to 133 is binary data indicating a white pixel.
【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 all the binarized data of the front, rear, left and right pixels of the center pixel of 3 × 3 pixels held in the second shift register group 13 indicate black pixels, the pattern determination unit 14 determines that the center pixel is The binarized data is converted into a value indicating a white pixel and is output. Otherwise, the binarized data of the center pixel is output as it is.
32, two binary data excluding the middle binary data out of the three binary data, and the middle binary value output from the preceding shift register 131 and the following shift register 133. Gate 141 for calculating the logical product of a total of four binarized data with the binarized data, and the middle binarized data output from the target row shift register 132 as the target pixel, and the output of the AND gate 141 is logical. When “1” (when the input binarized data is all black pixels), the binarized data of the target pixel is converted into white pixel binarized data and output to the output device 2, and the AND gate 141 is output. Is a logical "0" (when all the input binary data are not black pixels), the gate group 142 outputs the binary 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 controls the buffer register 11, the first and second shift register groups 12, 13 based on a clock signal and a timing signal supplied from a control circuit (not shown) for controlling the entire image scanner.
This is the part that controls the shift. This shift control unit 15
Represents the binarized data output from the binarization processing device 8 as 1
Each time the buffer register 11 is shifted in over the row, the input binary data string of one row is converted to i-1
The binarized data string held in the (i-1) -th row shift register 121 is stored in the i-th row shift register 122, and the i-th row shift register 1 is stored in the i-th row shift register 122.
Control is performed to shift the binarized data string held in 22 into the (i + 1) th row shift register 123, respectively. Then, at a predetermined speed, i-line data is output until the next one line of binary data is input to the buffer register 11.
One row shift register 121, i row shift register 1
22 and the contents of the i + 1 row shift register 123 are
Synchronously, the previous row shift register 131, the target row shift register 132, and the subsequent row shift register 13
Then, a shift control is performed to make a single round through the line 3. Note that the shift control unit 15 controls the output device 2
It also has a function of outputting a valid period signal indicating a period during which the output of the outline processing device 1 is valid.
【0023】このように構成された白抜き処理装置1は
以下のように動作する。The whitening processing apparatus 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 binarized data sequence of the first row of the two-dimensional image is stored in the buffer register 11, the shift control unit 1
5 transfers it to the i-1 row shift register 121,
When the binarized data sequence of the next second row is accumulated in the buffer register 11, the binarized data sequence of the first row is transferred from the (i-1) th row shift register 121 to the i-th row shift register 122, and Then, the binarized data sequence in the second row is transferred from the buffer register 11 to the (i-1) th row shift register 121. Then, the shift registers 121 to 123, 131
To 133 are serially shifted by two pixels, the valid period signal for the output device 2 is turned on, and the shift registers 121 to 123 and 131 to 133 are further shifted, and the last pixels of the shift registers 121 to 123 are shifted. At the time when the binarized data is shifted into the middle of the shift registers 131 to 133 and processed, the valid period signal to the output device 2 is turned off, and the shift is further continued by two pixels.
The shift registers 121 to 123 and 131 to 133 are returned to the state 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 determining section 14, the AND gate 1
41, the two binarized data excluding the middle binarized data of the three binarized data output from the target row shift register 132 and the previous row shift register 13
1, the logical product of a total of four binary data with the middle binary data output from the shift register 133 for the succeeding row is obtained, and the gate group 142 outputs the output of the AND gate 141 to the logical "1". , The target row shift register 13
2 is converted into white pixel binarized data and output to the output device 2. When the output of the AND gate 141 is logic “0”, the binarized data of the pixel of interest 2 is output.
The quantified data is output to the output device 2 as it is. As a result, in order from the left pixel to the last pixel of the first row of pixel columns, pixels in which all of the front, rear, left, and right pixels are surrounded by black pixels are changed to white pixels. However, in the processing of the first row, all of the zeroth row are processed as white pixels.
【0026】出力装置2は、指示手段9が白抜き機能が
有効であることを指示する場合、シフト制御部15から
の有効期間信号がオンの期間中にパターン判定部14か
ら出力された2値化データを入力して、外部に出力す
る。When the instruction means 9 indicates that the whitening function is valid, the output device 2 outputs the binary value output from the pattern determination section 14 during the period when the valid period signal from the shift control section 15 is ON. Input the converted data and output 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
The binarized data string of the row is shifted from the i-th row shift register 122 to the (i + 1) th row shift register 123, and the binarized data string of the second row is shifted from the (i-1) th row shift register 121 to the i-th row shift register 122. Then, the binarized data string in the third row is transferred from the buffer register 11 to the (i-1) th row shift register 121. Then, shift control is performed on the shift registers 121 to 123 and 131 to 133 as described above. Thereby, the pattern determination unit 1
In 4, the pixels whose front, rear, left and right pixels are all surrounded by black pixels are sequentially changed to white pixels from the left pixel to the last pixel of the second row of pixel columns.
【0028】以上のような動作は、2値化処理装置8か
ら出力される最後の行の2値化データ列が処理されるま
で続けられる。なお、最後の行の2値化データ列をi行
用シフトレジスタ122に移送する段階では、バッファ
レジスタ11の内容は初期状態に戻されるため、i−1
行用シフトレジスタ121には全て白画素の2値化デー
タが格納される。The above operation is continued until the binarized data sequence of the last row output from the binarization processing device 8 is processed. At the stage of transferring the binarized data string of the last row to the i-th row shift register 122, the contents of the buffer register 11 are returned to the initial state, so that i-1
The row shift register 121 stores binary data of all white pixels.
【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 subjecting the two-dimensional image to white-out processing according to the present embodiment. Reference numeral A in the same figure is the original image, and reference numeral B in the same figure.
Is an image represented by the binarized data sequence after the whitening processing. Note that a mesh is drawn to indicate the size of one pixel, but 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, thereby obtaining a white figure.
【0030】以上の実施例では、前後左右の4個の画素
が黒画素である場合に、周囲が黒画素で囲まれているも
のとしたが、前後左右および斜め方向の合計8個の画素
が黒画素である場合に、周囲が黒画素で囲まれているも
のとしても良い。この場合は、パターン判定部14のア
ンドゲート141には、シフトレジスタ132の真ん中
の画素の2値化データを除く、シフトレジスタ131〜
133に格納されている合計8個の2値化データが入力
される。In the above embodiment, when four pixels in front, rear, left and right are black pixels, the periphery is surrounded by black pixels. However, a total of eight pixels in front, rear, left and right and oblique directions are used. In the case of a black pixel, the periphery may be surrounded by a black pixel. In this case, the AND gate 141 of the pattern determination unit 14 includes the shift registers 131 to 131 except for the binarized data of the middle pixel of the shift register 132.
A total of eight pieces of 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 which has been whitened out is automatically output from the image scanner, it is not necessary to rework the white figure. Therefore, illustration creation and the like can be easily performed.
【0033】イメージスキャナで白抜き機能を実現する
他の構成として、2値化データ全てを一旦メモリに格納
し、その後にソフトウェア処理にて白抜き処理を施して
出力する構成も考えられるが、そうすると大規模なハー
ドウェアが必要となり、且つ処理時間も長くかかる。請
求項2記載の白抜き処理装置の構成によれば、少ないハ
ードウェア量で実現でき、然も高速な処理が可能とな
る。As another configuration for realizing the whitening function by the image scanner, a configuration is also conceivable in which all the binarized data is temporarily stored in a memory and then subjected to whitening processing by software processing and output. Large-scale hardware is required, and the processing time is long. According to the configuration of the whitening processing apparatus according to the second aspect, the processing can be realized with a small amount of hardware, and high-speed processing can be realized.
【0034】請求項3記載の構成によれば、白抜き機能
の有効,無効を利用者が自由に選択することができる。According to the configuration of the third aspect, the user can freely select whether the whitening function is valid or invalid.
【図1】本発明の一実施例の要部ブロック図である。FIG. 1 is a main block diagram of an embodiment of the present invention.
【図2】元の画像と白抜き処理後の画像の例を示す図で
ある。FIG. 2 is a diagram showing an example of an original image and an image after whiteout processing.
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 ... First 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 ... Front row shift register 132... Noted row shift register 133... Back row shift register 14... Pattern determining section 141. AND gate 142. Gate group 15. Shift control section 2. Output device 3. Optical system 6 Image sensor 7 Reading device 8 Binarization processing device 9 Instruction means
Claims (2)
ンサで読み取る読み取り装置と、該読み取り装置で読み
取られた各画素の濃度を2値化データに変換して出力す
る2値化処理装置とを有するイメージスキャナにおい
て、白抜き機能を有効とするか否かを指示する指示手段と、 前記2値化処理装置から出力された2値化データを入力
し、元の2次元画像において周囲が黒画素で囲まれてい
る画素の2値化データは白画素を示す値に変換して出力
し、それ以外の画素の2値化データはそのまま出力する
白抜き処理装置と、前記指示手段が白抜き機能を有効と指示する場合は前記
白抜き処理装置から出力された2値化データをイメージ
センサ出力として外部に出力し、有効と指示されない場
合は前記2値化処理装置から出力された2値化データを
イメージセンサ出力として外部に出力する出力装置とを
備えることを特徴とする白抜き機能付きイメージスキャ
ナ。1. A and reader that reads the density of each pixel of the two-dimensional image by the image sensor, read by said reader
The density of each taken pixel is converted into binary data and output.
In an image scanner having a binarization processing device, an instruction means for instructing whether or not a whitening function is to be effective, and binarization data output from the binarization processing device are input, and the original A whitening processing device that converts binarized data of a pixel surrounded by black pixels in a two-dimensional image into a value indicating a white pixel and outputs the converted value, and binarized data of other pixels is output as it is; When the instructing means instructs that the whitening function is valid, the binarized data output from the whitening processing device is imaged.
Output to the outside as a sensor output and if it is not indicated as valid
If the binarized data output from the binarization processing device
An image scanner with a whitening function, comprising: an output device that outputs an image sensor output to the outside .
データ列を保持する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 method according to claim 1, wherein the whitening processing device comprises: a shift register for an (i−1) -th row, a shift register for an (i) -th row that holds a binarized data string of an (i−1) -th row, an i-th row, and an (i + 1) -th row of the two-dimensional image. Register, a shift register for the (i + 1) -th row, a shift register for the (i + 1) -th row, a shift register for the (i-1) -th row, and a three-pixel capacitor connected between the serial output terminal and the serial input terminal of the shift register for the (i + 1) -th row. A shift register for the previous row, a shift register for the row of interest, a shift register for the next row, and each time the binary data of the two-dimensional image is input for one row, the input binary data sequence for one row Is stored in the shift register for the i-1 row, the binary data sequence held in the shift register for the i-1 row is stored in the shift register for the i row, and 2 The valued data sequence is expressed as i + 1 The i-1 row shift register and the i-1 row shift register are shifted into the row shift register, respectively, until the next one row of binary data is input.
A shift control unit for synchronizing the contents of the row shift register and the (i + 1) th row shift register through the previous row shift register, the noted row shift register, and the subsequent row shift register in a synchronized manner; The middle binarized data among the three binarized data shifted into the target row shift register is set as a target pixel, and the preceding row shift register, the target row shift register, and the rear row shift register are used as the target pixel. 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 binary data of the white pixel according to the result. 2. The image scanner with a whitening function according to claim 1, further comprising: a pattern determination unit that determines whether to output the image data in the original state or to output the image data in the original state.
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 JPH08181852A (en) | 1996-07-12 |
| JP2861845B2 true 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) |
Family Cites Families (2)
| 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 apparatus |
-
1994
- 1994-12-22 JP JP6336175A patent/JP2861845B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08181852A (en) | 1996-07-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5034806A (en) | Image processing apparatus and method | |
| JPS61214072A (en) | Image processor | |
| JPH09130558A (en) | Video data transfer system and video data transfer method | |
| JP2861845B2 (en) | Image scanner with outline function | |
| JPH02282868A (en) | Equipment and method for processing plural channel image | |
| JP3858447B2 (en) | Electronic camera device | |
| US5034825A (en) | High quality image scanner | |
| JPH04295980A (en) | Image reader | |
| JP4132264B2 (en) | Image signal processing circuit | |
| JP2001069518A (en) | Imaging device and control method thereof | |
| JP2887840B2 (en) | Image reading device | |
| JPH0896116A (en) | Image signal processing apparatus and method | |
| JP3611384B2 (en) | Image printing device | |
| JPS6346872A (en) | Image processing device | |
| JPS58140881A (en) | Picture processing system | |
| JP2689609B2 (en) | Video camera equipment | |
| JPS619764A (en) | Picture processor | |
| JP2005122257A (en) | Image processing apparatus and electronic apparatus | |
| JP2505170B2 (en) | Image reading device | |
| JPS6367078A (en) | Picture processor | |
| JPH0573668A (en) | Mosaic processor | |
| JPS63158970A (en) | image reading device | |
| JPH07254964A (en) | Drive control circuit for image reader | |
| JPH0385681A (en) | Picture processor | |
| JPS6367079A (en) | Picture processor |