JPH05260327A - Color image processor - Google Patents

Color image processor

Info

Publication number
JPH05260327A
JPH05260327A JP4052577A JP5257792A JPH05260327A JP H05260327 A JPH05260327 A JP H05260327A JP 4052577 A JP4052577 A JP 4052577A JP 5257792 A JP5257792 A JP 5257792A JP H05260327 A JPH05260327 A JP H05260327A
Authority
JP
Japan
Prior art keywords
pixel information
pixel
color
picture element
information
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
JP4052577A
Other languages
Japanese (ja)
Inventor
Masahisa Yano
雅久 矢野
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP4052577A priority Critical patent/JPH05260327A/en
Publication of JPH05260327A publication Critical patent/JPH05260327A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PURPOSE:To solve a problem of a conventional device where the color signal binarized at a boundary is different from the color of an original when the boundaries of different colors exist on the original. CONSTITUTION:A conversion means 20 converts the multilevel data on the three colors obtained with scanning of an original image 10 into the binary data to obtain the picture element information. A storage means 30 stores in sequence the picture element information and also outputs the picture element information on the periphery of a scanning point as the information on the noted picture elements and its peripheral picture elements. A deciding means 40 counts the number of picture elements having the same picture element information and adjacent to each other out of these peripheral picture element of the noted one. Then, the means 40 decides the picture element information having the largest number of elements as the information on the noted picture element among those peripheral picture elements having the same picture element information and adjacent to each other.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、カラー画像処理装置
に係わり、特に色分解された信号の2値化機構に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color image processing apparatus, and more particularly to a binarization mechanism for color-separated signals.

【0002】[0002]

【従来の技術】従来、この種の装置としては文献;特公
平4ー2036に開示されるものがあり、画像を走査し
て1画素単位に入力される3系統の多値の色信号を共通
成分及び非共通成分に分離すると共に、各々の分離信号
に基づいて、入力される3系統の多値の色信号を2値化
するものであった。
2. Description of the Related Art Conventionally, as this type of apparatus, there is one disclosed in the document; Japanese Patent Publication No. 4-2036, which is common to three systems of multi-valued color signals which are input in pixel units by scanning an image. The component and the non-common component are separated, and the input multi-system color signals of three systems are binarized based on the separated signals.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、前記従
来の装置では1画素単位に処理しているため、原稿上に
異なる色の境界が存在する場合、当該境界における2値
化処理された色信号が元の原稿にない色になってしまう
という問題があった。
However, since the above-mentioned conventional apparatus processes in units of one pixel, when there is a boundary of different colors on the original, the binarized color signal at the boundary is detected. There was a problem that the color was not in the original manuscript.

【0004】例えば、実開昭62ー114567に提示
されているような赤、緑、青の色フィルターを持つ光電
変換素子が画素毎に並んでいるフィルター配列型のイメ
ージセンサを用いて原稿を読み取るとき、赤、緑、青の
光電変換素子と原稿上の色境界(白と黒)が図5に示す
位置関係となった場合、画素1、画素3からは原稿の色
と対応した色信号が出力されるが、画素2においては赤
と緑の光電変換素子には原稿上の白の反射光が入力さ
れ、青の光電変換素子には黒の反射光が入力されるため
画素2からは青の色信号が誤って出力される。
For example, a document is read using an image sensor of a filter array type in which photoelectric conversion elements having red, green, and blue color filters are provided for each pixel, as disclosed in Japanese Utility Model Laid-Open No. 62-114567. At this time, when the red, green, and blue photoelectric conversion elements and the color boundaries (white and black) on the document have the positional relationship shown in FIG. 5, the color signals corresponding to the document colors are output from the pixels 1 and 3. In the pixel 2, the red and green photoelectric conversion elements receive white reflected light on the original, and the blue photoelectric conversion element receives black reflected light. The color signal of is output incorrectly.

【0005】この発明は以上述べた問題点を除去するた
め、原稿上の色境界に発生する色の誤りを、周辺の安定
した色のデータに修正する機構を付加することによっ
て、フルカラー信号を色再現性の優れた3色の2値信号
に変換することができるカラー画像処理装置を提供する
ことを目的とする。
In order to eliminate the above-mentioned problems, the present invention adds a mechanism for correcting a color error occurring at a color boundary on an original document to stable color data in the surroundings, thereby obtaining a color signal of a full color. An object of the present invention is to provide a color image processing device capable of converting into a binary signal of three colors having excellent reproducibility.

【0006】[0006]

【課題を解決するための手段】前記課題を解決する為に
本発明のカラー画像処理装置は、画像を走査して得られ
る3色の多値データを3色の2値データに変換し画素情
報とする変換手段と、前記変換手段の出力する画素情報
を逐次記憶し走査点近傍の局所領域の画素情報を着目画
素及び周辺画素の画素情報として出力する記憶手段と、
着目画素に隣接する周辺画素において画素情報が同一で
互いに隣接する画素がある場合、同一画素情報で隣接す
る周辺画素のうち画素数が最大となる画素情報を着目画
素の画素情報と置き換えて出力する決定手段とを備えた
ことを特徴とする。
In order to solve the above-mentioned problems, a color image processing apparatus of the present invention converts multi-valued data of three colors obtained by scanning an image into binary data of three colors and pixel information. And a storage unit that sequentially stores the pixel information output from the conversion unit and outputs the pixel information of the local area near the scanning point as the pixel information of the target pixel and the peripheral pixels,
When there are adjacent pixels that have the same pixel information and are adjacent to each other in the peripheral pixels adjacent to the pixel of interest, the pixel information that maximizes the number of pixels among the adjacent peripheral pixels that have the same pixel information is replaced with the pixel information of the pixel of interest and output. And a determining means.

【0007】[0007]

【作用】上記のように構成したカラー画像処理装置にお
いては、決定手段において、着目画素に隣接する画素の
画素情報を調べ、画素情報が同一で互いに隣接する画素
がある場合、同一画素情報で隣接する画素数が最大の画
素情報を、着目画素の画素情報としているため、原稿上
の色境界で発生する色の誤りが低減され、前記課題が解
決される。
In the color image processing apparatus configured as described above, in the determining means, the pixel information of the pixel adjacent to the target pixel is checked, and when there is a pixel having the same pixel information and adjacent to each other, the pixel information is adjacent with the same pixel information. Since the pixel information with the maximum number of pixels to be used is the pixel information of the pixel of interest, color errors that occur at color boundaries on the document are reduced, and the above problem is solved.

【0008】[0008]

【実施例】図1はこの発明の実施例を示す装置の概略構
成図である。原稿画像10を走査して得られる3原色の
多値データ(Rt,Gt,Bt)が、変換手段20に入力
され、変換手段20は図3に示す手順で3原色の多値デ
ータ(Rt,Gt,Bt)を3原色の2値データ(Rn,G
n,Bn)に変換し、記憶手段30に出力する。以後、
「3原色の多値データ」、「3原色の2値データ」を単
に、「多値データ」、「2値データ」と称する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a schematic block diagram of an apparatus showing an embodiment of the present invention. Multi-valued data (Rt, Gt, Bt) of the three primary colors obtained by scanning the original image 10 is input to the conversion means 20, and the conversion means 20 performs the multi-valued data (Rt, Rt, of the three primary colors by the procedure shown in FIG. Gt, Bt) are binary data of three primary colors (Rn, G
(n, Bn) and output to the storage means 30. After that,
"Multi-valued data of three primary colors" and "binary data of three primary colors" are simply referred to as "multi-valued data" and "binary data".

【0009】記憶手段30は入力した2値データを走査
位置に対応した記憶位置に記憶する。記憶手段30は、
走査位置近傍の局所領域の2値データを出力するための
走査窓を有しており、決定手段40の必要とする局所領
域の2値データ(Ri,Gi,Bi)を出力する。
The storage means 30 stores the input binary data in a storage position corresponding to the scanning position. The storage means 30 is
It has a scanning window for outputting the binary data of the local area near the scanning position, and outputs the binary data (Ri, Gi, Bi) of the local area required by the determining means 40.

【0010】決定手段40は前記局所領域の2値データ
(Ri,Gi,Bi)を入力して、周辺画素における同一
色の画素数を計数し、当該画素数が最大となる画素の2
値データを出力する。
The deciding means 40 inputs the binary data (Ri, Gi, Bi) of the local area, counts the number of pixels of the same color in the peripheral pixels, and determines the number of pixels having the maximum number of 2 pixels.
Output value data.

【0011】図2はこの発明の実施例のデータと走査窓
の説明図である。図2(a)において、10R,10
G,10Bは各々3原色に分解して得られた原稿画像
(赤)、(緑)、(青)、を示しており、当該原稿画像
を図の右方向に主走査、下方向に副走査することによ
り、現走査点の多値データ(Rt,Gt,Bt)が出力さ
れる。当該多値データは図1の変換手段20を経て、2
値データ(Rn,Gn,Bn)に変換され記憶手段30
(図2(a)の斜線で示す記憶位置)に記憶される。3
0R,30G,30Bは各々2値データの記憶画像
(赤)、(緑)、(青)を示している。
FIG. 2 is an explanatory diagram of data and scanning windows according to the embodiment of the present invention. In FIG. 2A, 10R, 10
Reference characters G and 10B denote original images (red), (green), and (blue) obtained by separating each into three primary colors. The original image is subjected to main scanning in the right direction and sub scanning in the downward direction in the drawing. By doing so, multi-valued data (Rt, Gt, Bt) at the current scanning point is output. The multi-valued data passes through the conversion means 20 of FIG.
Storage means 30 converted into value data (Rn, Gn, Bn)
It is stored in (a storage position indicated by hatching in FIG. 2A). Three
Reference characters 0R, 30G, and 30B indicate stored images (red), (green), and (blue) of binary data, respectively.

【0012】図2(a)31は走査窓であって、記憶手
段30上を走査点の移動と共に移動する。また、図2
(b)、(c)、(d)は各々記憶画像(赤)、
(緑)、(青)を走査する走査窓(赤)、(緑)、
(青)を示し、枠内の文字の添字0は着目画素、添字1
〜8は周辺画素を示している。
FIG. 2A shows a scanning window 31 which moves on the storage means 30 as the scanning point moves. Also, FIG.
(B), (c) and (d) are stored images (red),
Scan window (red), (green), which scans (green) and (blue)
(Blue), the subscript 0 of the characters in the frame is the pixel of interest, subscript 1
8 indicates peripheral pixels.

【0013】図3は変換手段20の処理の流れを示す流
れ図である。先ず、多値データ(Rt,Gt,Bt)を入
力し(ステップST1)、Rt,Gt,Btのうち最小レ
ベルのものを判定し、共通成分xとする(ステップST
2)。 次に、Rt,Gt,Btから共通成分を減算し、
非共通成分Rd,Gd,Bdを算出する(ステップST
3)。Rd,Gd,Bdが所定のしきい値aより大きけれ
ば有彩色と判定され、逆にしき値aより小さければ白ま
たは黒と判定される(ステップST4)。
FIG. 3 is a flow chart showing the processing flow of the conversion means 20. First, multi-valued data (Rt, Gt, Bt) is input (step ST1), the minimum level of Rt, Gt, Bt is determined, and the common component x is set (step ST).
2). Next, subtract the common component from Rt, Gt, Bt,
The non-common components Rd, Gd, Bd are calculated (step ST
3). If Rd, Gd, and Bd are larger than a predetermined threshold value a, it is judged to be chromatic color, and conversely, if they are smaller than the threshold value a, it is judged to be white or black (step ST4).

【0014】白または黒と判定されるとステップST7
において、前記共通成分xとしきい値bを比較し、x>
bの場合は多値データ(Rt,Gt,Bt)に対応する2
値データ(Rn,Gn,Bn)が”1”即ち”白”として
出力され(ステップST8)、また、ステップST7に
おいてx≦bの場合には2値データ(Rn,Gn,Bn)
が”0”即ち”黒”として出力される(ステップST
9)。
If it is determined to be white or black, step ST7
, The common component x is compared with the threshold value b, and x>
In the case of b, 2 corresponding to multivalued data (Rt, Gt, Bt)
Value data (Rn, Gn, Bn) is output as "1", that is, "white" (step ST8), and if x≤b in step ST7, binary data (Rn, Gn, Bn).
Is output as "0", that is, "black" (step ST
9).

【0015】ステップST4でRd,Gd,Bdが全て所
定のしきい値aより大きく有彩色と判定された場合には
Rd,Gd,Bdの最大値から決るしきい値cと前記しき
い値aとRd,Gd,Bdとを比較し、Rd,Gd,Bdのう
ちしきい値a及びcより大のものは”1”小のものは”
0”として2値データ(Rn,Gn,Bn)を出力する
(ステップST5,ST6)。なお、上述の変換手段の
処理手順は特公平4ー2036と同一の手順で2値デー
タに変換するものとしたが、この手順に限定されるもの
ではない。
When it is determined in step ST4 that Rd, Gd, and Bd are all greater than the predetermined threshold value a and are chromatic, the threshold value c determined from the maximum value of Rd, Gd, and Bd and the threshold value a. And Rd, Gd, Bd are compared. Among Rd, Gd, Bd, those larger than the threshold values a and c are "1" and those smaller than them.
The binary data (Rn, Gn, Bn) is output as 0 "(steps ST5 and ST6). Incidentally, the processing procedure of the above-mentioned converting means is to convert into binary data in the same procedure as in Japanese Patent Publication No. 4-2036. However, the procedure is not limited to this.

【0016】図4は記憶手段30と決定手段40の処理
例を示す流れ図である。先ず、変換手段20から入力し
た2値データを走査位置に対応した記憶位置(R4,G
4,B4)(図2(b)、(c)、(d)参照)に記憶す
る(ステップST10)。次に、添字i,j(i,j=
1、2、・・・、8)を順次変更しながら(例えば,i
=1,j=2,8とした後、i=2、j=1、3等と順
次更新する)、次式が成立するか否かによって、同一色
で隣接する周辺画素があるか否かを判定すると共に、同
一色で隣接する画素数を計数する(ステップST1
1)。 (Ri,Gi,Bi)=(Rj,Gj,Bj) 同一色で隣接する周辺画素がある場合、着目画素は色境
界または同一色領域内にあるものとして、同一色で隣接
する周辺画素数が最大となる2値データを出力する(ス
テップST12)。同一色で隣接する周辺画素が無い場
合は着目画素の2値データを出力する(ステップST1
3)。
FIG. 4 is a flow chart showing a processing example of the storage means 30 and the determination means 40. First, the binary data input from the conversion means 20 is stored in the storage position (R4, G) corresponding to the scanning position.
4, B4) (see FIGS. 2B, 2C, and 2D) (step ST10). Next, the subscripts i, j (i, j =
1, 2, ..., 8) while sequentially changing (for example, i
= 1, j = 2, 8 and then sequentially updated as i = 2, j = 1, 3, etc.) and whether or not there is a neighboring pixel of the same color depending on whether or not the following formula is satisfied. And the number of adjacent pixels of the same color is counted (step ST1
1). (Ri, Gi, Bi) = (Rj, Gj, Bj) If there are neighboring pixels of the same color, it is assumed that the pixel of interest is on the color boundary or in the same color area, and the number of neighboring pixels of the same color is The maximum binary data is output (step ST12). If there is no neighboring pixel of the same color, the binary data of the pixel of interest is output (step ST1).
3).

【0017】[0017]

【発明の効果】以上、詳細に説明したように、この発明
によれば局所領域の3色の2値データを観測して安定し
た色成分を出力するようにしたので、簡単な構成で原稿
上の色境界で発生する誤りを防止できる。従って、本発
明は文字・画像が混在する原稿を読み取る画像入力装置
等に広く用いることが出来る。
As described above in detail, according to the present invention, the binary data of the three colors in the local area is observed and the stable color components are output, so that the original can be printed with a simple structure. It is possible to prevent errors that occur at the color boundary of. Therefore, the present invention can be widely used for an image input device or the like for reading a document in which characters and images are mixed.

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

【図1】カラー画像処理装置の実施例の概略構成図であ
る。
FIG. 1 is a schematic configuration diagram of an embodiment of a color image processing apparatus.

【図2】データの流れと走査窓の説明図である。FIG. 2 is an explanatory diagram of a data flow and a scanning window.

【図3】変換手段の処理例を示す流れ図である。FIG. 3 is a flowchart showing a processing example of a conversion unit.

【図4】記憶手段と決定手段の処理例を示す流れ図であ
る。
FIG. 4 is a flowchart showing a processing example of a storage unit and a determination unit.

【図5】イメージセンサと原稿の色境界との位置関係の
説明図である。
FIG. 5 is an explanatory diagram of a positional relationship between an image sensor and a color boundary of a document.

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

10 原稿画像 20 変換手段 30 記憶手段 40 決定手段 10 original image 20 conversion means 30 storage means 40 determination means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 画像を走査して得られる3色の多値デー
タを3色の2値データに変換し画素情報とする変換手段
と、 前記変換手段の出力する画素情報を逐次記憶し走査点近
傍の局所領域の画素情報を着目画素及び周辺画素の画素
情報として出力する記憶手段と、 着目画素に隣接する周辺画素において画素情報が同一で
互いに隣接する画素がある場合、同一画素情報で隣接す
る周辺画素のうち画素数が最大となる画素情報を着目画
素の画素情報と置き換えて出力する決定手段とを備えた
ことを特徴とするカラー画像処理装置。
1. A conversion unit that converts multi-valued data of three colors obtained by scanning an image into binary data of three colors to obtain pixel information, and pixel information output from the conversion unit is sequentially stored to scan points. A storage unit that outputs the pixel information of a local region in the vicinity as pixel information of a target pixel and peripheral pixels, and if the peripheral pixels adjacent to the target pixel have the same pixel information and are adjacent to each other, they are adjacent to each other with the same pixel information. A color image processing device, comprising: a determining unit that replaces pixel information having a maximum number of pixels among peripheral pixels with pixel information of a pixel of interest and outputs the pixel information.
JP4052577A 1992-03-11 1992-03-11 Color image processor Pending JPH05260327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4052577A JPH05260327A (en) 1992-03-11 1992-03-11 Color image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4052577A JPH05260327A (en) 1992-03-11 1992-03-11 Color image processor

Publications (1)

Publication Number Publication Date
JPH05260327A true JPH05260327A (en) 1993-10-08

Family

ID=12918660

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4052577A Pending JPH05260327A (en) 1992-03-11 1992-03-11 Color image processor

Country Status (1)

Country Link
JP (1) JPH05260327A (en)

Similar Documents

Publication Publication Date Title
JP4054184B2 (en) Defective pixel correction device
US6456325B1 (en) Image signal processing device for minimizing false signals at color boundaries
US5721628A (en) Color image processing apparatus
US8253828B2 (en) Image capture device including edge direction determination unit, and image processing method for the same
JP4668185B2 (en) Image processing method
US8248664B2 (en) Image processing apparatus and method for achromatizing pixel based on edge region of color signal
JP3771054B2 (en) Image processing apparatus and image processing method
US20090245683A1 (en) Defective pixel correction device
JPH05137000A (en) Picture reader
US20050220350A1 (en) Image processing apparatus, image processing method, image processing program, and recording medium storing image processing program
JPH05316377A (en) Picture processing unit
JPH05260327A (en) Color image processor
JPH09298665A (en) Image processor
JP2002290677A (en) Image scanner
JP3406674B2 (en) Two-chip imaging device
JP2941852B2 (en) Image processing method
JPH05292333A (en) Color picture processing unit
JP3515585B2 (en) Two-chip imaging device
JP2002125121A (en) Image processing method and image processing unit, and image forming device provided with them
JPH0369230B2 (en)
JPS6384373A (en) Image correcting device
JPH01302964A (en) Color picture reading device
JPH0810901B2 (en) Color identification device
JPH0449773A (en) Color reading device
JP2001054126A (en) Image signal processing unit, image signal processing method, learning system, learning method and recording medium