JPH05145750A - Picture character separating circuit of color image processor - Google Patents

Picture character separating circuit of color image processor

Info

Publication number
JPH05145750A
JPH05145750A JP3234918A JP23491891A JPH05145750A JP H05145750 A JPH05145750 A JP H05145750A JP 3234918 A JP3234918 A JP 3234918A JP 23491891 A JP23491891 A JP 23491891A JP H05145750 A JPH05145750 A JP H05145750A
Authority
JP
Japan
Prior art keywords
area
color
block
signal
character
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
JP3234918A
Other languages
Japanese (ja)
Inventor
Hiroshi Koizumi
小泉  博
Isayuki Kouno
功幸 河野
Yuzuru Suzuki
譲 鈴木
Yoshiyuki Tanmachi
義幸 反町
Yoshinori Awata
恵徳 粟田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP3234918A priority Critical patent/JPH05145750A/en
Publication of JPH05145750A publication Critical patent/JPH05145750A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide the picture character separating circuit of a color image processor for improving a discrimination performance by a compact blocking means, and also, to facilitate a timing design. CONSTITUTION:The circuit is provided with a data input switching means 2 for executing switching control to a mode for executing an input of data at every line and a mode for executing its input every other line, a blocking means 1 for blocking the data inputted in accordance with the control of the switching means 2, and an area discriminating means 3 for discriminating an area by the blocked data. Also, the block size is set to width power of 2, and the area discriminating means 3 has a timing adjusting means 4 consisting of a line buffer, and controls a readout timing of a line buffer so that a timing for outputting an area discriminating signal is synchronized with a line signal. In such a way, a block whose size is substantially larger than size of the blocking means can be adopted in accordance with necessity, and an averaging processing of block data can be executed by only a bit shift. Also, an internal delay can be adjusted simply.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数画素をブロック化
して文字や中間調の領域識別を行い領域識別信号に応じ
てパラメータを切り替えてカラー画像信号を処理する画
像処理装置の絵文字分離回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pictographic character separation circuit of an image processing apparatus for processing a color image signal by dividing a plurality of pixels into blocks to identify a character or halftone area and switching parameters according to the area identification signal. ..

【0002】[0002]

【従来の技術】カラー複写機等のカラー画像処理装置で
は、Y(イエロー)、M(マゼンタ)、C(シアン)、
K(黒)からなる4色のトナー現像器を使用し、これら
の各画像を重ね合わせてフルカラーの画像を再現してい
る。そのため、各トナーの現像プロセスに合わせて繰り
返し4回のスキャンを行い、その都度、原稿を読み取っ
たフルカラーの画像データを処理している。
2. Description of the Related Art In a color image processing apparatus such as a color copying machine, Y (yellow), M (magenta), C (cyan),
A four-color toner developing device of K (black) is used, and these images are superposed to reproduce a full-color image. Therefore, scanning is repeated four times according to the developing process of each toner, and the full-color image data obtained by reading the original is processed each time.

【0003】図10は従来のカラー画像処理装置の構成
例及び画像領域識別回路の構成例を示す図である。
FIG. 10 is a diagram showing a configuration example of a conventional color image processing device and a configuration example of an image area identification circuit.

【0004】一般にカラー画像処理装置では、ラインセ
ンサーを用いて原稿を光学的に読み取り、B(青)、G
(緑)、R(赤)の色分解信号により画像データを取り
込むと、図10(イ)に示すようにその画像データをE
ND変換31でグレイバランスの調整を行った後、カラ
ーマスキング(カラーコレクション)32で色分解信号
BGRからカラーの色材信号YMCに変換している。そ
して、UCR33で墨版(K)生成、下色除去を行っ
て、色相分離型非線型フィルタ部でモアレや網点の除去
とエッジ強調を行い、TRC(トーン調整)40、SG
(スクリーンジェネレータ)41を通して現像色の多階
調で表現された色材信号Xをオン/オフの2値化データ
にし、この2値化データでレーザ光を制御して帯電した
感光体を露光し各色の画像を形成している。
Generally, in a color image processing apparatus, an original is optically read by using a line sensor, and B (blue) and G are read.
When the image data is taken in by the color separation signals of (green) and R (red), the image data is converted into E as shown in FIG.
After adjusting the gray balance by the ND conversion 31, the color masking (color correction) 32 converts the color separation signal BGR into the color material signal YMC. Then, the UCR 33 performs black plate (K) generation and undercolor removal, and the hue separation type non-linear filter section removes moire and halftone dots and edge enhancement, and TRC (tone adjustment) 40, SG
Through the (screen generator) 41, the color material signal X expressed in multiple gradations of the development color is turned into on / off binary data, and the laser light is controlled by this binary data to expose the charged photoconductor. An image of each color is formed.

【0005】色相分離型非線型フィルタ部では、UCR
33において墨版生成、下色除去処理を行って生成され
たYMCKの信号から現像プロセスにしたがって現像色
の画像データXがセレクトされて入力され2系統に分岐
される。そのうちの一方には平滑化フィルタ34、他方
にはγ変換回路36、エッジ検出フィルタ37、エッジ
強調用LUT35が接続される。そして、前者の系統で
中間調画像に対するモアレや網点除去のための平滑化の
処理が行われ、後者の系統で文字画像に対するエッジ強
調の処理が行われる。加算器39は、これらの出力を合
成するものであり、この合成信号が非線型フィルタ処理
後の信号として出力される。この場合、エッジ処理で
は、色相検出回路35により入力画像の色相を検出し、
そのときの現像色が必要色か否かの判定を行う。ここ
で、もし入力画像が黒領域である場合には、Y、M、C
の有彩色信号のエッジ強調は行わずに、Kのみをエッジ
量に応じて強調するように制御する。
In the color separation type non-linear filter unit, the UCR
In 33, the image data X of the development color is selected and input according to the development process from the YMCK signal generated by performing black plate generation and undercolor removal processing, and branched into two systems. A smoothing filter 34 is connected to one of them, and a γ conversion circuit 36, an edge detection filter 37, and an edge enhancement LUT 35 are connected to the other. The former system performs smoothing processing for removing moire and halftone dots on the halftone image, and the latter system performs edge enhancement processing on the character image. The adder 39 synthesizes these outputs, and the synthesized signal is output as a signal after the nonlinear filter processing. In this case, in the edge processing, the hue of the input image is detected by the hue detection circuit 35,
It is determined whether the development color at that time is a required color. Here, if the input image is a black area, Y, M, C
No edge enhancement of the chromatic color signal is performed, and only K is controlled to be enhanced according to the edge amount.

【0006】上記のように非線形フィルタ処理を導入
し、種類の異なった文字、線画等の2値画像と、写真や
網点印刷物等の原稿に対して、文字、線画等の2値画像
は、エッジを強調して鮮鋭度を高めるようにし、写真や
網点印刷物等の中間調画像は、平滑化してモアレや網点
を除去して画像の滑らかさや粒状性を高めるようにする
ため非線形フィルタ処理を行っている。
By introducing the non-linear filter processing as described above, binary images such as characters and line drawings of different types and binary images such as characters and line drawings for originals such as photographs and halftone dot prints are Non-linear filter processing to enhance the sharpness by emphasizing edges and smoothing halftone images such as photographs and halftone dot prints to remove moire and halftone dots to enhance image smoothness and graininess. It is carried out.

【0007】しかし、文字、線画等の2値画像と、写真
や網点印刷物等の中間調画像において、それぞれの原稿
や領域を予め指定することが容易である場合には、その
原稿毎に或いは領域毎に画像種を指定することによっ
て、それぞれに最適なパラメータを選択することがで
き、再現性を高めることができるが、これらの混在画像
の場合には、2値画像にも中間調画像にもそれなりに再
現できるパラメータが選択されることになる。この場合
には、2値画像に対しても中間調画像に対しても最適な
処理にはならないため、いずれにも満足できる画像を得
ることは難しい。
However, in the case of a binary image such as a character or a line drawing and a halftone image such as a photograph or a halftone dot printed matter, if it is easy to specify each original or area in advance, it is possible to specify each original or area. By specifying the image type for each area, it is possible to select the optimum parameters for each area and improve the reproducibility. However, in the case of these mixed images, it can be used as a binary image or a halftone image. Also, parameters that can be reproduced as such will be selected. In this case, the optimum processing is not performed on the binary image or the halftone image, so that it is difficult to obtain an image that is satisfactory for both.

【0008】例えば2値画像では、エッジ強調が弱くぼ
けて、文字が鮮明でなくなったり、また、黒文字では、
エッジ部や小文字部に濁りが生じてしまうという問題が
ある。他方、中間調画像については、エッジ検出周波数
の近傍が強調されてしまうため、中間調画像の滑らかさ
がなくなり、変なモアレやエッジが強調された荒い画像
になってしまう。そのため、黒文字と色文字と中間調の
3種の画像領域を識別し、フィルタ部のパラメータの切
り換え等を行うことが必要であり、この種の識別処理方
式が幾つか提案されている。
For example, in a binary image, the edge emphasis is weak and blurred, so that the characters are not clear, and in the case of black characters,
There is a problem that turbidity occurs at edges and small letters. On the other hand, with respect to the halftone image, since the vicinity of the edge detection frequency is emphasized, the halftone image loses smoothness and becomes a rough image with strange moire and edges emphasized. Therefore, it is necessary to identify three types of image areas of black characters, color characters, and halftones, and switch the parameters of the filter unit, and several identification processing methods of this type have been proposed.

【0009】例えば図10(ロ)に示す構成(特願平2
ー2940号参照)は、ランレングスによる識別方式を
導入したものである。色相検出部41は、各画素毎に8
色(Y、M、C、K、W、B、G、R)の色相のいずれ
かを検出するものであり、コンパレータ42は、YMC
のうち最大のものが閾値thmax 以上か否かを検出する
ものである。色相検出部41では、低い濃度のノイズ等
も検出するので、この場合には、後述するランレングス
が短くなって、文字領域と誤って認識してしまうという
問題が生じる。そこで、少なくともある程度以上の濃度
を有する画素を文字候補とするために閾値thmax との
比較判定を行い、ノイズを除去するのがコンパレータ4
2である。
For example, the configuration shown in FIG.
No. 2940) introduces a run length identification method. The hue detection unit 41 uses 8 pixels for each pixel.
The comparator 42 detects one of the hues of colors (Y, M, C, K, W, B, G, and R), and the comparator 42 uses YMC.
It is to detect whether or not the largest one is equal to or more than the threshold value th max . Since the hue detecting unit 41 also detects low-density noise and the like, in this case, the run length described later becomes short, and there is a problem in that it is erroneously recognized as a character area. Therefore, in order to make a pixel having a density of at least a certain level or more a character candidate, a comparison determination with a threshold th max is performed and noise is removed.
It is 2.

【0010】ブロック化部43は、数画素例えば4×4
〜8×8に各画素をブロック化するものであり、ブロッ
ク判定部44は、7色判定を行うものである。7色判定
は、Wを除く7色(Y、M、C、K、B、G、R)につ
いてブロック内の最大頻度色を判定し、それをブロック
色とするものである。例えば4×4画素を1ブロックと
してそれぞれの色の頻度をカウントし、K=6,M=
2,R=1,C=1,W=6になったとすると、Wを除
いた色/黒画素で最大である色Kをブロック色として採
用する。
The blocking unit 43 has several pixels, for example, 4 × 4.
Each pixel is divided into blocks of up to 8 × 8, and the block determination unit 44 performs 7-color determination. In the 7-color determination, the maximum frequency color in the block is determined for 7 colors (Y, M, C, K, B, G, R) excluding W, and this is set as the block color. For example, the frequency of each color is counted with 4 × 4 pixels as one block, and K = 6 and M =
If 2, R = 1, C = 1, and W = 6, the color excluding W / the maximum color K among black pixels is adopted as the block color.

【0011】主走査方向カラーランカウント部46は、
ブロック色判定部44からW(0)か、それ以外の色黒
(1)かを表す1ビットをもらい、主走査方向の色/黒
ブロックのランレングスをカウントするものであり、コ
ンパレータ47は、各ブロックのカウント値(ランレン
グス)が閾値thrun より短いか否かを判定するもので
ある。ここでは、色/黒ブロックのランレングスが閾値
thrun より短いと文字の候補となる。
The main scan direction color run count section 46 is
The block color determination unit 44 receives 1 bit representing W (0) or black (1) other than that, and counts the run length of the color / black block in the main scanning direction. It is determined whether or not the count value (run length) of each block is shorter than the threshold value th run . Here, if the run length of the color / black block is shorter than the threshold value th run , it becomes a character candidate.

【0012】ランレングスで見た場合、画素単位では網
点領域も文字領域と同様にランレングスが短くなり文字
との切り分けが困難であるが、ブロック単位では網点領
域のランレングスが長くなり、文字領域の場合は、文字
と文字との間が網点のピッチより長いためブロックラン
レングスは短くなる。このようにブロックランレングス
でみると文字と網点領域との切り分けが可能になる。
When viewed in terms of run length, the dot length in the pixel unit is short like the character region and it is difficult to separate from the character, but in the block unit the run length of the dot region is long, In the case of a character area, the block run length becomes shorter because the distance between characters is longer than the pitch of halftone dots. In this way, the block run length enables distinction between a character and a halftone dot area.

【0013】副走査方向エッジ検出部45は、副走査方
向の数ブロックの範囲でエッジがあるか否かを検出する
ものであり、エッジがある場合に文字の候補とする。こ
れは、文字領域で用いられる横線も長いランレングスと
なるため、上記の主走査方向のランレングスでは文字の
候補とならないので、このような場合にも文字の候補と
して検出するためのものである。
The sub-scanning direction edge detection unit 45 detects whether or not there is an edge within a range of several blocks in the sub-scanning direction, and if there is an edge, it is a character candidate. This is because the horizontal line used in the character area also has a long run length, and thus the run length in the main scanning direction is not a candidate for a character, and therefore, in such a case as well, it is to be detected as a candidate for a character. ..

【0014】オアゲート48とアンドゲート49は、上
記の検出結果から主走査方向か副走査方向のいずれかで
文字の候補が存在し、且つブロックのmaxフラグが1
であれば、このブロックを文字領域と判定し、ブロック
色判定部44で判定したブロック色信号を出力するもの
である。なお、maxフラグは、コンパレータ42でY
MCのうち最大のものが閾値thmax 以上であると判定
された画素がブロック内に1以上あることを示す信号で
ある。
The OR gate 48 and the AND gate 49 have character candidates in either the main scanning direction or the sub scanning direction based on the above detection results, and the max flag of the block is 1.
If so, this block is determined to be a character area, and the block color signal determined by the block color determination unit 44 is output. The max flag is set to Y in the comparator 42.
This is a signal indicating that the maximum number of MCs is 1 or more in the block, which is determined to be the threshold th max or more.

【0015】上記の例は、この文字部周辺のランレング
スが短いことに着目したものである。すなわち、文字部
は、文字のブロックのかたまりと背景のかたまりで構成
され、地肌背景中にあるため、濃度変化が急峻であるの
に対し、画像部は、画像背景中にあり濃度が緩やかであ
る。そのため、ランレングスを観察すると、文字領域で
はランレングスが短く、中間調領域ではランレングスが
長くなる。しかも、画素単位では網点領域と文字領域と
の識別が困難であったが、網点の場合にはブロック化す
ることによりランレングスが長くなるので、文字領域で
はなく中間調領域で認識することができる。つまり、ブ
ロック化によって高い周波数を有する網点パッチ部もラ
ンレングスが長い色ブロックとして発生しやすくなり、
中間調領域として取り込むことができる。また、主走査
方向カラーランカウント部46とコンパレータ47によ
り文字の候補を検出するだけでは、主走査方向にランレ
ングスの長いライン等を誤認してしまうため、副走査方
向エッジ検出部45によりエッジがある場合も文字の候
補とすることによって認識精度を上げている。
The above example focuses on the short run length around the character portion. That is, the character part is composed of a block of characters and a block of the background, and the density changes sharply because it is in the background of the background, whereas the image part is in the image background and the density is gentle. .. Therefore, when the run length is observed, the run length is short in the character region and the run length is long in the halftone region. Moreover, it was difficult to distinguish between a halftone dot area and a character area on a pixel-by-pixel basis, but in the case of halftone dots, the run length becomes longer by blocking, so it is necessary to recognize in the halftone area instead of the character area. You can In other words, due to the block formation, halftone dot patches having a high frequency also tend to occur as color blocks with long run lengths,
It can be captured as a halftone area. Further, if the main scan direction color run count unit 46 and the comparator 47 only detect character candidates, a line with a long run length in the main scan direction will be mistakenly recognized. In some cases, the recognition accuracy is improved by using the character candidates.

【0016】また、図10(ハ)に示す構成(特願平2
ー136071号参照)は、ブロック単位の複数画素か
ら最大値と最小値とを検出し、それらの差が所定の値よ
り大きいか否かにより文字領域を識別すると共に、さら
に周囲のブロックの領域判定結果から誤り補正を行うも
のであり、領域識別回路は、大きく分けて一次識別と二
次識別からなる。一次識別は、8×8ブロック化回路6
1で8×8画素のブロック化を行って文字領域の識別を
行うものであり、そのために、ブロックの8×8画素か
ら最大値検出回路62、最小値検出回路63によりそれ
ぞれ最大値と最小値を検出し、演算回路64でそれらの
差を求める。そして、コンパレータ65で演算回路64
の出力、すなわち最大値と最小値との差を閾値thと比
較し、該差が閾値thより大きい場合に文字領域の識別
信号、例えば論理「1」を出力する。二次識別は、さら
に3×3のブロックで一次識別によるブロックの識別領
域の誤り補正を行うものである。
In addition, the configuration shown in FIG.
No. 136071), a maximum value and a minimum value are detected from a plurality of pixels in block units, a character area is identified based on whether or not a difference between them is larger than a predetermined value, and area determination of surrounding blocks is further performed. Error correction is performed based on the result, and the area identification circuit is roughly divided into primary identification and secondary identification. The primary identification is the 8 × 8 blocking circuit 6
1 is used to identify a character area by forming a block of 8 × 8 pixels, and therefore, the maximum value detection circuit 62 and the minimum value detection circuit 63 are used to detect the maximum value and the minimum value from the 8 × 8 pixels of the block, respectively. Is detected, and the difference between them is calculated by the arithmetic circuit 64. Then, in the comparator 65, the arithmetic circuit 64
Output, that is, the difference between the maximum value and the minimum value is compared with the threshold value th, and when the difference is larger than the threshold value th, an identification signal of the character area, for example, a logic “1” is output. In the secondary identification, the error of the identification area of the block is further corrected by the primary identification in the 3 × 3 block.

【0017】例えば注目ブロックが一次識別では文字領
域と識別された場合において、周囲ブロックのほとんど
が文字領域でないときは、注目ブロックの識別内容を非
文字領域に補正する。同様に、注目ブロックが一次識別
では非文字領域と識別された場合において、周囲ブロッ
クのほとんどが文字領域であるときは、注目ブロックの
識別内容を文字領域に補正する。
For example, when the target block is identified as a character region by the primary identification, and most of the surrounding blocks are not the character region, the identification content of the target block is corrected to the non-character region. Similarly, when the target block is identified as a non-character region by the primary identification and most of the surrounding blocks are character regions, the identification content of the target block is corrected to the character region.

【0018】図11は色相検出回路の構成例を示す図で
ある。色相検出回路は、(イ)に示すようにY、M、C
の最大値と最小値を求める最大値回路71、最小値回路
72、最大値と最小値との差を求める減算回路73、
Y、M、Cと最小値との差を求める減算回路74〜7
6、及びコンパレータ77〜81を有する。それぞれコ
ンパレータ77は減算回路73の出力(max−mi
n)と閾値th1を、コンパレータ78は最小値の出力
(min)と閾値th2を、コンパレータ79は減算回
路74の出力(Y−min)と閾値th3を、コンパレ
ータ80は減算回路75の出力(M−min)と閾値t
h4を、コンパレータ81は減算回路74の出力(C−
min)と閾値th5を比較するものであり、各値が閾
値th1〜th5より大きい場合にそれぞれ論理「1」
とする信号r、m、c′、m′、y′を出力する。そし
て、この出力から同図(ロ)に示す判定条件により判定
色相を導き、現像色について必要色「1」か不必要色
「0」かを判定する。判定色相としては、通常の文字の
色として用いられる、W(白)、Y、M、C、B、G、
R、Kの8色を対象とし、各コンパレータ77〜81の
出力により同図(ロ)に示すテーブルの色相判定を行う
のが判定ROM82である。
FIG. 11 is a diagram showing a configuration example of the hue detection circuit. The hue detection circuit has Y, M, and C as shown in FIG.
A maximum value circuit 71, a minimum value circuit 72, which obtains the maximum value and the minimum value of, a subtraction circuit 73 which obtains the difference between the maximum value and the minimum value,
Subtraction circuits 74 to 7 for obtaining the difference between Y, M and C and the minimum value
6 and comparators 77 to 81. The comparator 77 outputs the output of the subtraction circuit 73 (max-mi
n) and the threshold value th1, the comparator 78 outputs the minimum value (min) and the threshold value th2, the comparator 79 outputs the subtraction circuit 74 (Y-min) and the threshold value th3, and the comparator 80 outputs the subtraction circuit 75 (M). -Min) and threshold t
h4, the comparator 81 outputs the output (C−
min) and the threshold value th5, and if each value is greater than the threshold values th1 to th5, the logical value "1" is obtained.
The signals r, m, c ', m', and y'are output. Then, from this output, the judgment hue is derived under the judgment condition shown in FIG. 9B, and it is judged whether the development color is the necessary color "1" or the unnecessary color "0". As the judgment hue, W (white), Y, M, C, B, G, which is used as a color of a normal character,
The determination ROM 82 is for performing the hue determination of the table shown in FIG. 9B by using the outputs of the comparators 77 to 81 for the eight colors R and K.

【0019】その他にも、所定の画素ブロック内の平均
値と標準偏差等を使うもの(例えば特開昭63ー205
783号公報)や位相の異なる複数のディザ変換で変換
した2値出力を使うもの(例えば特開昭63ー1937
70号公報)、R、G、Bの色分解信号のそれぞれに対
してブロック内の最大値と最小値を求め、少なくとも1
つの色成分において、その差が予め定められた値以上の
とき文字領域と判定するもの(例えば特公昭63ー51
631号公報参照)等、種々の方式がこれまでに提案さ
れている。
In addition to the above, the average value and the standard deviation in a predetermined pixel block are used (for example, JP-A-63-205).
No. 783) or a method using binary output converted by a plurality of dither conversions having different phases (for example, Japanese Patent Laid-Open No. 63-1937).
No. 70), the maximum value and the minimum value in the block are obtained for each of the R, G, and B color separation signals, and at least 1
When the difference between two color components is a predetermined value or more, it is determined as a character area (for example, Japanese Patent Publication No. 63-51
Various systems have been proposed so far.

【0020】[0020]

【発明が解決しようとする課題】しかしながら、上記従
来の各種領域識別方式でも、確かにブロック判定を行う
ことによって識別性能を向上させるようにはなっている
が、現実には、装置の高速化を図りかつ高画質のカラー
コピーを得ようとすると、原稿読取を高速で動作させる
ようにし、読み取った画像データも高速で処理しなけれ
ばならないため、例えば画像処理装置の機構的な動作に
伴う振動やノイズにより現像プロセスで領域認識にバラ
ツキが生じ、黒文字の途切れ等のディフェクトが現れる
という問題が生じる。
However, even in the above-mentioned conventional various area identification methods, the identification performance is improved by surely performing the block determination, but in reality, the speedup of the apparatus is achieved. In order to obtain a color copy with high quality and high image quality, it is necessary to operate the document reading at a high speed and process the read image data at a high speed. There is a problem in that the noise causes variations in area recognition in the development process, and defects such as interruptions of black characters appear.

【0021】すなわち、カラーコピーでは、先に述べた
ように4回のスキャンでY、M、C、Kのトナー画像を
重ねることによってフルカラー画像を再現しているた
め、最大最小値の差、ランレングス、平均値、標準偏差
等のそれぞれの特徴量を用い、ブロック単位で領域の判
定を行うようにしても、Y、M、C、Kの4回の現像プ
ロセスを通して全てが同じ領域判定の結果が得られない
と、かえって画質の劣化が著しくなる。
That is, in color copying, since a full-color image is reproduced by superposing toner images of Y, M, C, and K by four scans as described above, the difference between the maximum and minimum values and the run Even if area determination is performed in block units using each feature amount such as length, average value, standard deviation, etc., the same area determination result is obtained through four development processes of Y, M, C, and K. If it is not obtained, the image quality is rather deteriorated.

【0022】例えばMとCの現像プロセスでは黒文字領
域の判定であるにもかかわらず、YとKの現像プロセス
では黒文字領域の判定でなかった場合には、そのブロッ
クで黒文字が途切れてYで出力されることになる。すな
わち、M、Cは、黒文字領域の判定であるため、また、
Kも黒文字領域以外の判定であるためそれぞれ出力が抑
えられ、Yのみが出力される。特に、黒文字の識別領域
ではKのみで再現してYMCをリセットし、色文字の識
別領域ではK信号をリセットするような処理を行うと、
領域識別が誤った場合には、色文字が黒文字に変わった
り、色抜けによる色変わりが発生したりする場合があ
る。
For example, if the black character area is determined in the M and C developing processes, but the black character area is not determined in the Y and K developing processes, the black character is interrupted in the block and output as Y. Will be done. That is, since M and C are the determination of the black character area,
Since K is also a determination other than the black character area, the output is suppressed, and only Y is output. In particular, if processing is performed such that the YMC is reproduced by reproducing only K in the black character identification area and the K signal is reset in the color character identification area,
If the area identification is wrong, the color characters may change to black characters, or color change due to color loss may occur.

【0023】しかも、領域識別を行って黒文字の場合に
YMCをリセットすると、背景色の部分が白抜けになる
が、色文字の場合にKをリセットすると、青の場合、通
常はMCだけでなくYKものるために青の再現性が極端
に低下する。さらに、ブロックで判定し出力されるた
め、画素単位の出力に比べて黒文字のところどころが色
文字になってしまう様子がより目立ち、ブロックが見え
てしまう。このようなディフェクトは色文字や中間調の
領域においても同様に現れることになるので、著しい画
質の劣化を招くという問題がある。
Moreover, if YMC is reset in the case of a black character by performing area identification, the background color portion becomes blank, but if K is reset in the case of a color character, in the case of blue, not only MC but usually Due to YK, blue reproducibility is extremely reduced. Further, since the determination is made in blocks and the output is performed, the situation in which black characters are changed to colored characters becomes more conspicuous and the blocks are visible, as compared with the output in pixel units. Since such a defect also appears in the area of color characters and halftones, there is a problem that the image quality is significantly deteriorated.

【0024】また、従来方式では、ハードウエア構成が
複雑であったり、逆に簡単であれば識別性能が悪かった
りして満足されるものがなかった。特に、カラー画像に
対応するための黒文字/色文字識別のハードウエア整合
がとりにくく、領域識別と別系統での構成とならざるを
得なかった。
Further, in the conventional method, the hardware configuration is complicated, and conversely, if it is simple, the identification performance is poor, and there is nothing to be satisfied. In particular, it is difficult to match the hardware for black character / color character identification to correspond to a color image, and it is unavoidable that the system is separated from the area identification.

【0025】本発明の目的は、コンパクトなブロック化
手段により識別性能の向上を図ったカラー画像処理装置
の絵文字分離回路を提供することである。本発明の他の
目的は、タイミング設計を容易にすることである。
It is an object of the present invention to provide a pictographic character separation circuit for a color image processing apparatus, which has a compact blocking means and whose discrimination performance is improved. Another object of the present invention is to facilitate timing design.

【0026】[0026]

【課題を解決するための手段】そのために本発明は、複
数画素をブロック化して文字や中間調の領域識別を行い
領域識別信号に応じてパラメータを切り替えてカラー画
像信号を処理する画像処理装置において、データの取り
込みを毎ライン行うモードと1ラインおきに行うモード
に切り替え制御するデータ取り込み切り替え手段、該切
り替え手段の制御にしたがって取り込んだデータをブロ
ック化するブロック化手段、及びブロック化したデータ
により領域識別を行う領域識別手段を備えたことを特徴
とする。また、ブロックサイズは2の巾乗とし、領域識
別手段は、ラインバッファからなるタイミング調整手段
を有し、領域識別信号を出力するタイミングがライン信
号と同期するようにラインバッファの読み出しタイミン
グを制御することを特徴とする。
To this end, the present invention is directed to an image processing apparatus for processing a color image signal by dividing a plurality of pixels into blocks to identify regions of characters and halftones and switching parameters according to the region identification signal. A data fetching switching means for controlling switching between a mode for fetching data every line and a mode for fetching every other line, a blocking means for blocking the fetched data under the control of the switching means, and a region by the blocked data It is characterized in that it is provided with an area identifying means for performing identification. Further, the block size is a power of 2, and the area identifying means has a timing adjusting means composed of a line buffer, and controls the read timing of the line buffer so that the timing of outputting the area identifying signal is synchronized with the line signal. It is characterized by

【0027】[0027]

【作用】本発明のカラー画像処理装置の絵文字分離回路
では、データ取り込み切り替え手段によりデータの取り
込みを1ラインおきに行うモードに切り替えることがで
きるので、必要に応じてブロック化手段のサイズより実
質的に大きなサイズのブロックを採用することができ
る。また、ブロックサイズは2の巾乗とするので、ブロ
ックデータの平均化処理をビットシフトのみで行うこと
ができる。さらに、領域識別信号を出力するタイミング
がライン信号と同期するようにラインバッファの読み出
しタイミングを制御するので、内部遅延の調整を簡単に
行うことができる。
In the pictographic character separation circuit of the color image processing apparatus of the present invention, the mode for taking in the data every other line can be switched by the data taking-in switching means, so that it is substantially larger than the size of the blocking means if necessary. Larger size blocks can be adopted. Further, since the block size is a power of 2, the block data averaging process can be performed only by bit shifting. Further, since the read timing of the line buffer is controlled so that the timing of outputting the area identification signal is synchronized with the line signal, the internal delay can be easily adjusted.

【0028】[0028]

【実施例】以下、本発明の実施例を図面を参照しつつ説
明する。図1は本発明の画像処理装置の画像領域識別回
路の1実施例を示す図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing an embodiment of an image area identification circuit of an image processing apparatus of the present invention.

【0029】図1において、入力信号L* 、a* 、b*
は、システムバリューで表現された8ビットの信号であ
り、L* 軸で明度を表し、これと直交するa* 軸とb*
軸の2次元平面で彩度と色相を表すものである。データ
取り込み切り換え手段2は、入力信号L* 、a* 、b*
から得られる領域識別用のデータを毎ライン取り込むモ
ードと1ラインおきに取り込むモードに切り換え制御す
る手段であり、ブロック化手段1は、切り替え手段2の
切り替え制御にしたがって取り込んだデータを例えば4
(ライン)×8(画素)、4×16のように2の巾乗の
サイズでブロック化するものである。領域識別手段3
は、ブロック内のデータから識別情報を抽出、演算処理
し、絵文字/背景/文字、黒文字/色文字/中間調等の
領域識別を行うものであり、タイミング調整手段4は、
FIFOを用いその読み出しタイミングを制御すること
によって最終的に出力する領域識別信号のタイミングを
ライン信号と同期させるのに利用するラインバッファで
ある。
In FIG. 1, input signals L * , a * , b *.
Is an 8-bit signal expressed as a system value, in which the L * axis represents lightness, and the a * axis and b * orthogonal to the lightness .
The two-dimensional plane of the axis represents saturation and hue. The data acquisition switching means 2 receives the input signals L * , a * , b *.
The block forming means 1 is a means for controlling the switching between the mode for fetching the data for area identification obtained from each line and the mode for fetching the data every other line.
(Line) × 8 (pixels), 4 × 16, etc., and is divided into blocks with a power of 2. Area identification means 3
Is to identify information from the data in the block and perform arithmetic processing to identify areas such as pictograms / background / characters, black characters / colored characters / halftones, etc.
The line buffer is used to synchronize the timing of the finally output area identification signal with the line signal by controlling the read timing using the FIFO.

【0030】上記のようにデータの取り込み、ブロック
サイズを制御し、出力タイミングを制御することによっ
て、識別性能を落とすことなくブロック手段の構成をコ
ンパクトにし、領域識別手段でのデータの平均化処理を
簡便に行えるようにすると共に、領域識別信号の送出タ
イミングの調整を容易にしている。図1(ロ)は上記の
構成をさらに詳細に示したものであり、以下に説明す
る。
By controlling the data acquisition, block size, and output timing as described above, the structure of the block means can be made compact without deteriorating the identification performance, and the data averaging processing in the area identification means can be performed. This simplifies the operation and facilitates the adjustment of the transmission timing of the area identification signal. FIG. 1B shows the above configuration in more detail, which will be described below.

【0031】図1(ロ)において、非線形量子化器11
は、各画素の8ビットの信号L* を4ビットに圧縮する
ものであり、量子化器12は、各画素の8ビットの信号
* を閾値th1、th2で高レベル/中間レベル/低
レベルにレベル分けした2ビットの信号を出力するもの
であり、色相識別器13は、各画素の8ビットの信号L
* 、a* 、b* から色か黒か白かを識別した2ビットの
色相信号を出力するものである。
In FIG. 1B, the nonlinear quantizer 11
Is for compressing the 8-bit signal L * of each pixel into 4 bits, and the quantizer 12 sets the 8-bit signal L * of each pixel to high level / intermediate level / low level at thresholds th1 and th2. And outputs the 2-bit signal divided into levels, and the hue discriminator 13 outputs the 8-bit signal L of each pixel.
It outputs a 2-bit hue signal that identifies color, black or white from * , a * , and b * .

【0032】ブロック化FIFO14は、副走査方向に
4ライン、主走査方向に8画素のデータを保持して4×
8のブロック化を行い、また、8ラインの入力ラインか
ら1ラインずつ間引きして4ラインを保持することによ
って8×8のサイズに相当するブロック化を行うもので
ある。ブロック化FIFO14に保持する1画素のデー
タは、圧縮した4ビットの信号L* と2ビットのレベル
分け信号と2ビットの色相信号からなる8ビットであ
り、それぞれ4ビットの信号L* は平均値算出回路16
と比較器15に、2ビットのレベル分け信号はカウンタ
17と18に、2ビットの色相信号はブロック色相識別
器19に分配される。
The block FIFO 14 holds data of 4 lines in the sub-scanning direction and 8 pixels in the main scanning direction and stores 4 ×.
8 blocks are formed, and one line is thinned from each of the 8 input lines to hold 4 lines, thereby forming a block corresponding to a size of 8 × 8. The data of one pixel held in the block FIFO 14 is 8 bits consisting of a compressed 4-bit signal L * , a 2-bit level division signal and a 2-bit hue signal, and each 4-bit signal L * is an average value. Calculation circuit 16
The 2-bit level division signal is distributed to the counters 17 and 18, and the 2-bit hue signal is distributed to the block hue discriminator 19.

【0033】平均値算出回路16は、ブロック内画素の
信号L* を加算してブロック内平均値Paを算出するも
のである。カウンタ17はレベル分け信号から高レベル
画素数Phをカウントするものであり、カウンタ18は
中間レベル画素数Pmをカウントするものである。量子
化器12において、低レベルの閾値をth1、高レベル
の閾値をth2とし、信号L* が閾値th1とth2と
の間にある場合に2ビットのうちの下位ビットのみを
「1」に、閾値th2を越える場合には上位ビットのみ
を「1」にすると、カウンタ17は上位ビットをカウン
トし、カウンタ18は下位ビットをカウントすることに
なる。
The average value calculating circuit 16 adds the signals L * of the pixels in the block to calculate the average value Pa in the block. The counter 17 counts the high level pixel number Ph from the level division signal, and the counter 18 counts the intermediate level pixel number Pm. In the quantizer 12, the low level threshold is th1, the high level threshold is th2, and when the signal L * is between the thresholds th1 and th2, only the lower bit of the two bits is set to “1”, When exceeding the threshold th2, if only the upper bits are set to "1", the counter 17 counts the upper bits and the counter 18 counts the lower bits.

【0034】非線型量子化器20〜22は、それぞれ平
均値算出回路16、カウンタ17、18のデータを圧縮
するものであり、圧縮した後のデータからLUT23、
比較器24により文字/中間調の判定信号を生成する。
LUT23は、後述する図7に示す3次元空間のPa─
Ph平面(図示左側平面)で文字領域とされるブロック
におけるPmの閾値を読み出すものであり、比較器24
でこの閾値の方が大きい場合には、図7に示す3次元空
間において実線のブロック内に入り、文字領域の判定信
号が出力される。LUT23と比較器24との間に挿入
接続された加算器は、バイアスTHbiasによりLUT2
3から読み出された閾値のバイアスを調整するものであ
り、文字の領域を調整するものである。
The non-linear quantizers 20 to 22 are for compressing the data of the average value calculating circuit 16 and the counters 17 and 18, respectively.
The comparator 24 generates a character / halftone determination signal.
The LUT 23 is a Pa-in the three-dimensional space shown in FIG.
The threshold value of Pm in a block which is a character area on the Ph plane (left side plane in the drawing) is read out, and the comparator 24
If this threshold value is larger, the solid line block is entered in the three-dimensional space shown in FIG. 7, and the character region determination signal is output. The adder inserted between the LUT 23 and the comparator 24 is connected to the LUT2 by the bias TH bias.
3 is to adjust the bias of the threshold value read out from No. 3, and to adjust the character area.

【0035】比較器15とフラグ検出器25は、背景ブ
ロックか否かを検出するものであって、比較器15で圧
縮した4ビットの信号L* を閾値THavと比較し、フラ
グ検出器25で閾値THavを越える画素がブロック内に
あったか否かを検出するものである。したがってここで
は、ブロック内の全ての画素が閾値THavより小さい場
合には、背景であると判定する。つまり、閾値THav
越えるものが最低1画素以上ないと文字/中間調のいず
れでもなく背景とするものである。誤り補正回路26
は、文字/中間調の判定信号と背景検出信号を入力して
例えば周囲のブロックの判定信号と比較してさらに大き
なブロック単位での補正を行うものであり、文字/中間
調の判定信号を出力する。
The comparator 15 and the flag detector 25 detect whether or not the block is a background block. The 4-bit signal L * compressed by the comparator 15 is compared with the threshold value TH av to detect the flag detector 25. It is for detecting whether or not there is a pixel exceeding the threshold value TH av in the block. Therefore, here, when all the pixels in the block are smaller than the threshold value TH av , it is determined to be the background. In other words, if there is at least one pixel that exceeds the threshold TH av , it is not a character / halftone but a background. Error correction circuit 26
Is for inputting a character / halftone determination signal and a background detection signal and performing correction in larger blocks by comparing with the determination signals of surrounding blocks, for example, and outputting a character / halftone determination signal. To do.

【0036】ブロック色相識別器19は、ブロック化F
IFO14でブロック化された各画素の色相信号から例
えば多数決判定によりブロック単位でカラーか白黒かの
色相を識別するものであり、ディレイ回路28は、カラ
ー/白黒のブロック色相信号をディレイさせて誤り補正
回路26の文字/中間調の判定信号との同期をとるもの
である。そして、最終判定回路27は、文字/中間調の
判定信号とカラー/白黒のブロック色相信号から最終的
に色文字/黒文字/中間調のT/I(テキストイメー
ジ)領域判定信号を出力するものである。
The block hue discriminator 19 is a block F
The hue signal of each pixel that has been blocked by the IFO 14 is used to discriminate a hue of color or black and white on a block basis, for example, by a majority decision, and the delay circuit 28 delays the color / black and white block hue signal to correct an error. This is to be synchronized with the character / halftone determination signal of the circuit 26. The final judgment circuit 27 finally outputs a color character / black character / halftone T / I (text image) area judgment signal from the character / halftone judgment signal and the color / monochrome block hue signal. is there.

【0037】上記のようなブロック単位での領域識別に
おいて、ブロックサイズを4×4にした場合にはライン
数が4となるためコストは安くすることができるが識別
性能が悪くなる。この識別性能を上げるにはある程度の
大きさのブロックサイズが必要であり、例えば8×8の
ブロックサイズにすると識別性能はかなり向上する。し
かし、副走査方向のライン数が多くなるため、ラインバ
ッファの数が多くなりハードウエアコストが高くなる。
そこで、本発明では、基本的に上記のように4×8のブ
ロックサイズを採用すると共に、1ラインおきに間引い
てブロック化することによって擬似的に8×8のブロッ
クサイズを採用できるようにし、コストの安いブロック
サイズで一応の満足できる識別性能を得るようにしてい
る。
In the area identification in the block unit as described above, when the block size is 4 × 4, the number of lines becomes 4, so that the cost can be reduced but the identification performance is deteriorated. A block size of a certain size is required to improve the identification performance, and for example, if the block size is 8 × 8, the identification performance is considerably improved. However, since the number of lines in the sub-scanning direction increases, the number of line buffers increases and the hardware cost increases.
Therefore, in the present invention, the block size of 4 × 8 is basically adopted as described above, and the block size of 8 × 8 is artificially adopted by thinning out every other line to form a block, The block size is low in cost so that a satisfactory identification performance can be obtained.

【0038】また、ブロックサイズNを2N となるよう
に選ぶと、ブロック内平均値をブロック内総和のNビッ
トシフトのみによって求めることができる。したがっ
て、4×8のブロックサイズにすると、4×8=32は
5 になるので、5ビット右にシフトするだけで、ブロ
ック総和Tから平均値a=T/32を求めることがで
き、簡単なハードウエア構成だけでブロック内平均化処
理を行うことができる。
If the block size N is selected to be 2 N , the average value within the block can be obtained only by N-bit shift of the total sum within the block. Therefore, if the block size is 4 × 8, 4 × 8 = 32 becomes 2 5 , so the average value a = T / 32 can be calculated from the block sum T by simply shifting to the right by 5 bits. Intra-block averaging can be performed with only a simple hardware configuration.

【0039】図2は本発明で適用されるブロック化回路
の1実施例及び波形を示す図であり、31〜33は1ラ
イン分のFIFO、34はフリップフロップ、35はイ
ンバータ回路、36、37はアンド回路である。
FIG. 2 is a diagram showing an embodiment and waveforms of a blocking circuit applied in the present invention. 31 to 33 are FIFOs for one line, 34 is a flip-flop, 35 is an inverter circuit, 36 and 37. Is an AND circuit.

【0040】フリップフロップ34は、負側出力の反転
信号を入力端子に返しライン同期信号LSをクロックと
して入力することにより、ライン同期信号LSの分周回
路として動作するように構成したものである。この回路
では、選択信号SELによりライン同期信号LSを分周
するかそのまま出力するかを制御し、ページ同期信号P
Sと選択信号SELが共にハイレベルでアンド回路36
のアンド条件が満足しているときに分周回路が動作する
ようになっている。つまり、選択信号SELが図1の間
引き信号であり、ローレベルにすると4×8のブロック
サイズが選択され、ハイレベルにすると8×8のブロッ
クサイズが選択される。
The flip-flop 34 is configured to operate as a frequency dividing circuit for the line synchronization signal LS by returning the inverted signal of the negative output to the input terminal and inputting the line synchronization signal LS as a clock. In this circuit, the page synchronizing signal P is controlled by the selection signal SEL, which controls whether the line synchronizing signal LS is divided or output as it is.
When both S and the selection signal SEL are high level, the AND circuit 36
When the AND condition of is satisfied, the frequency dividing circuit operates. That is, the selection signal SEL is the thinning signal of FIG. 1, and when it is set to the low level, the block size of 4 × 8 is selected, and when it is set to the high level, the block size of 8 × 8 is selected.

【0041】選択信号SELをハイレベルにしたときの
出力波形を示したのが図2(ロ)であり、ローレベルの
ままにした場合の出力波形を示したのが図2(ハ)であ
る。図2(ロ)から明らかなように選択信号SELをハ
イレベルにした場合には、ページ同期信号PSがハイレ
ベルになると、ライン同期信号LSの立ち下がりのタイ
ミングで出力信号が反転し分周され、アンド回路37を
通して1ラインおきにFIFO31〜33に対する書き
込み制御信号RSTWが与えられる。したがって、FI
FO31〜33から1ラインおきの4ラインにより、擬
似的に8×8ブロックサイズのデータが取り出される。
しかし、選択信号SELがローレベルのままの場合に
は、図2(ハ)に示すようにページ同期信号PSがハイ
レベルになっても、フリップフロップ34は動作しない
ので、アンド回路37からライン同期信号LSがそのま
ま出力され、FIFO31〜33から連続する4ライン
により、4×8ブロックサイズのデータが取り出され
る。
FIG. 2B shows the output waveform when the selection signal SEL is set to the high level, and FIG. 2C shows the output waveform when the selection signal SEL is kept at the low level. .. As apparent from FIG. 2B, when the selection signal SEL is set to the high level and the page synchronization signal PS becomes the high level, the output signal is inverted and divided at the falling timing of the line synchronization signal LS. The write control signal RSTW for the FIFOs 31 to 33 is provided every other line through the AND circuit 37. Therefore, FI
Pseudo 8 × 8 block size data is extracted from the FOs 31 to 33 by every other four lines.
However, when the selection signal SEL remains low level, the flip-flop 34 does not operate even if the page synchronization signal PS becomes high level as shown in FIG. The signal LS is output as it is, and data of 4 × 8 block size is taken out from the continuous lines of the FIFOs 31 to 33.

【0042】上記のように領域識別のため、4(ライ
ン)×8(画素)のブロック化を行う際に、データの取
り込みを毎ラインから2ラインに1度にすることにより
擬似的に8×8のブロックサイズのデータを取り込むこ
とができるので、このブロック化を原稿や画像処理の内
容によって切り替え、より詳細な領域識別分離を行うこ
とができる。また、FIFOの前に加算器を設け、前の
ラインのデータを加算して2ラインに1度のデータの取
り込みを2ライン分のデータにより行うようにしてもよ
い。
As described above, in order to identify a region, when 4 (lines) × 8 (pixels) are divided into blocks, data is taken in once from every line to every 2 lines so that 8 × is simulated. Since data of 8 block sizes can be fetched, this block formation can be switched according to the contents of the original or image processing, and more detailed area identification separation can be performed. Further, an adder may be provided before the FIFO, and the data of the previous line may be added so that the data is fetched once for every two lines by the data for two lines.

【0043】ところで、画像処理のためにLSIの内部
遅延が多いと、タイミングの検討が複雑になる。そこ
で、図3に(イ)に示すように画像処理用LSIにおい
て、データを一旦FIFOに格納するようなLSIは、
最終的に出力されるデータが外部の主走査同期信号に同
期がとれるようなタイミングで読み出せれば、見掛け上
主走査方向の内部遅延はなくなり、基板設計時の主走査
方向における複雑なタイミング設計がなくなる。
If the internal delay of the LSI is large due to the image processing, the timing study becomes complicated. Therefore, as shown in FIG. 3A, in the image processing LSI, an LSI in which data is temporarily stored in the FIFO is
If the final output data can be read at a timing that can be synchronized with the external main scanning sync signal, apparently there will be no internal delay in the main scanning direction, and complicated timing design in the main scanning direction at the time of board design Disappear.

【0044】図3はLSIの内部遅延とその補正処理を
説明するための図である。いま、図3(ロ)に示すよう
に画像処理遅延分がTd であるとすると、データを一旦
FIFOに格納したデータの読み出しを画像データに同
期したライン信号より画像処理遅延分Td だけ早めに行
うようにすればよい。すなわち、図3(ロ)に示すよう
に最終的に出力されるデータがライン信号の立ち下がり
から次のライン信号の立ち上がりと同期がとれるタイミ
ングで読み出される遅延量Tdcを予めレジスタに設定
し、読み出しタイミングを制御する。
FIG. 3 is a diagram for explaining the internal delay of the LSI and its correction processing. Assuming that the image processing delay is T d as shown in FIG. 3B, the data once stored in the FIFO is read earlier than the line signal synchronized with the image data by the image processing delay T d. You can do this. That is, as shown in FIG. 3B, the delay amount T dc at which the finally output data is read from the falling edge of the line signal and the rising edge of the next line signal is set in the register in advance, Control the read timing.

【0045】図4はブロック色判定&合成回路の構成例
を示す図である。図4において、カウンタ41、42と
ブロック色判定回路43は、図1のブロック色相識別器
19を構成するものであり、ブロック化FIFO14で
ブロック化された各画素のうち色画素をカウントするの
がカウンタ41、黒画素をカウントするのがカウンタ4
2である。
FIG. 4 is a diagram showing an example of the configuration of the block color judgment & synthesis circuit. 4, the counters 41 and 42 and the block color determination circuit 43 configure the block hue discriminator 19 of FIG. 1, and count the color pixels among the pixels blocked by the blocking FIFO 14. Counter 41, Counter 4 counts black pixels
It is 2.

【0046】図1に示す色相識別器13で1ビット目を
黒画素の画素色判定信号、2ビット目を色画素の画素色
判定信号として2ビットの識別信号を生成することによ
り、カウンタ41、42ではそれぞれのビットがカウン
トされる。ブロック色判定回路43は、ブロックでのカ
ウンタ41と42の値を比較するコンパレータからな
り、色画素が多ければ色ブロック“H”、黒画素が多け
れば“L”のブロック色判定信号を生成する。これに対
して、カウンタ44は、1頁中の色ブロックをカウント
し、原稿判定回路45は、カウンタ44の値とレジスタ
に保持された閾値との比較により頁単位でカラー原稿か
白黒原稿かを判定するものである。
The hue discriminator 13 shown in FIG. 1 generates a 2-bit discrimination signal by using the first bit as the pixel color discrimination signal of the black pixel and the second bit as the pixel color discrimination signal of the color pixel. At 42, each bit is counted. The block color determination circuit 43 is composed of a comparator that compares the values of the counters 41 and 42 in the block, and generates a block color determination signal of “H” if there are many color pixels and “L” if there are many black pixels. .. On the other hand, the counter 44 counts the color blocks in one page, and the document determination circuit 45 compares the value of the counter 44 with the threshold value held in the register to determine whether the page is a color document or a monochrome document. It is a judgment.

【0047】最終的な領域識別信号の出力タイミングを
ライン同期信号に同期がとれるようにタイミング調整す
るのがFIFO46、ディレイ回路47、FIFO48
であり、3値BPMマクロ補正回路49は、絵柄/背景
/文字の判定信号についてさらに所定サイズにより絵柄
ブロック、文字ブロックの存在パターンを照合し、ブロ
ックパターンマッチング方式によりマクロ補正を行うも
のである。
The FIFO 46, the delay circuit 47, and the FIFO 48 adjust the output timing of the final area identification signal so as to be synchronized with the line synchronization signal.
The ternary BPM macro correction circuit 49 further compares the pattern / background / character determination signal with a predetermined size for the existence patterns of the pattern block and the character block, and performs macro correction by the block pattern matching method.

【0048】合成回路50は、マクロ補正された絵柄/
背景/文字の判定信号とカラー/白黒のブロック色判定
信号を合成するものであり、絵柄/背景の場合には、ブ
ロック色判定信号に関係なく絵柄とし、文字の場合に
は、ブロック色がカラーであれば色文字、ブロック色が
白黒であれば黒文字の信号を生成する。また、領域識別
を行って絵柄/黒文字/色文字に分離した場合、4色フ
ルカラー時はそのまま使用できるが、3色フルカラー時
は黒文字の場合も色文字と同様にYMCで再現されるた
め、黒文字/色文字の区別が不要になる。したがって、
4色フルカラー以外では文字と判定されたブロックを色
文字として処理してもよい。
The synthesizing circuit 50 is provided with a macro-corrected pattern /
The background / character determination signal is combined with the color / monochrome block color determination signal. In the case of a picture / background, the pattern is used regardless of the block color determination signal, and in the case of a character, the block color is colored. If it is, a color character signal is generated, and if the block color is black and white, a black character signal is generated. In addition, when the area is identified and the pattern / black character / colored character is separated, it can be used as it is in the case of four-color full color, but in the case of three-color full-color, the black character is reproduced in YMC as well as the color character. / Distinguishing colored letters is not required. Therefore,
A block determined to be a character other than the four-color full color may be processed as a color character.

【0049】図5は画像領域識別回路の変形例を示す
図、図6はカラー文字/中間調画像の分布を説明するた
めの図、図7は文字領域の分布状態の例を説明するため
の図、図8はパラメータ最適化条件を説明するための図
である。
FIG. 5 is a diagram showing a modification of the image area identification circuit, FIG. 6 is a diagram for explaining the distribution of color characters / halftone images, and FIG. 7 is a diagram for explaining an example of the distribution state of character areas. FIG. 8 is a diagram for explaining parameter optimization conditions.

【0050】線画や文字等の2値画像と写真や網点の中
間調画像が混在する原稿において、ブロック化した領域
で文字と中間調の領域の特徴量を採取するため、従来も
種々の方法が採用されているが、それらは、ランレング
スや最大値と最小値との差のようにある1つに限定した
特徴量を採用している。これに対して本発明は、所定の
画素数のブロック化を行ってブロック内平均値Paとブ
ロック内高レベル画素数Phとブロック内中間レベル画
素数Pmを採取し、その3次元的な分布状態から領域を
判定するものであり、その基本構成例を示したのが図5
である。
In a document in which a binary image such as a line drawing or a character and a halftone image such as a photograph or a halftone dot are mixed, the characteristic amounts of the character and the halftone area are sampled in a blocked area. However, they adopt a feature quantity limited to one such as a run length or a difference between the maximum value and the minimum value. On the other hand, according to the present invention, a predetermined number of pixels are divided into blocks, the average value Pa in the block, the number of high level pixels in the block Ph, and the number of intermediate level pixels in the block Pm are sampled, and their three-dimensional distribution state FIG. 5 shows an example of the basic configuration for determining the area from
Is.

【0051】図5(イ)に示す例は、まず、8ビットの
ブロック内平均値Paと6ビットのブロック内高レベル
画素数Phと6ビットのブロック内中間レベル画素数P
mを量子化器1〜3でそれぞれ3ビット、4ビット、4
ビットに量子化した後、ブロック内平均値Paとブロッ
ク内高レベル画素数Phから7ビットのLUT4で閾値
THを読み出し、その閾値を比較器5でブロック内中間
レベル画素数Pmと比較して文字/中間調の領域判定信
号を得るものである。
In the example shown in FIG. 5A, first, the 8-bit average value Pa in the block, the 6-bit in-block high-level pixel number Ph, and the 6-bit in-block intermediate-level pixel number P.
m is 3 bits, 4 bits, and 4 in quantizers 1 to 3, respectively.
After quantizing into bits, the threshold value TH is read from the average value Pa in the block and the number of high level pixels in the block Ph by the 7-bit LUT 4, and the threshold value is compared by the comparator 5 with the number of intermediate level pixels in the block Pm. / To obtain a halftone area determination signal.

【0052】これに対し、同(ロ)に示す実施例は、量
子化したブロック内平均値Paとブロック内高レベル画
素数Phとブロック内中間レベル画素数Pmを使って1
1ビットのLUT6で文字/中間調の領域判定信号を得
るものであり、また、同(ハ)に示す実施例は、量子化
することなくそのままのブロック内平均値Paとブロッ
ク内高レベル画素数Phとブロック内中間レベル画素数
Pmを使って20ビットのLUT7で文字/中間調の領
域判定信号を得るものである。
On the other hand, in the embodiment shown in (b), 1 is obtained by using the quantized intra-block average value Pa, intra-block high level pixel number Ph, and intra-block intermediate level pixel number Pm.
A 1-bit LUT 6 is used to obtain a character / halftone area determination signal. Further, in the embodiment shown in (c), the average value Pa within a block and the number of high-level pixels within a block remain as they are without quantization. By using Ph and the number Pm of intermediate level pixels in the block, a 20-bit LUT 7 is used to obtain a character / halftone area determination signal.

【0053】文字/中間調の混在する原稿について考察
すると、図6(イ)に示すように高レベルの閾値th1
と低レベルの閾値th2を設けた場合、文字は、例えば
Aのように低レベルの背景から急峻に立ち上がるため、
閾値th1を越える高レベルの画素と閾値th2に達し
ない低レベルの画素が多く、閾値th1と閾値th2の
間の中間レベルの画素は少ない。つまり、相対的には文
字部の高レベルより背景の低レベルの方が多い。これに
対して中間調は、例えばBのように各レベルに万遍なく
分布するが、領域でみると低レベルと中間レベルに分布
する場合、中間レベルに分布する場合、中間レベルと高
レベルに分布する場合、高レベルに分布する場合にな
る。したがって、平均値(ブロック内平均値Pa)と頻
度で見た場合には、(ロ)に示すように文字は平均値が
低い方に分布し、中間調は、平均値が高い方に分布す
る。したがって、それぞれの特徴量をみると、以下のよ
うになる。
Considering a document in which characters and halftones are mixed, as shown in FIG. 6A, a high-level threshold th1 is set.
And a low level threshold th2 are set, the character sharply rises from a low level background such as A,
There are many high-level pixels that exceed the threshold th1 and low-level pixels that do not reach the threshold th2, and few intermediate-level pixels between the thresholds th1 and th2. That is, there are relatively more low-level backgrounds than high-level character parts. On the other hand, halftones are evenly distributed in each level as in B, but when viewed in a region, they are distributed in low level and intermediate level, in intermediate level, and in intermediate level and high level. If it is distributed, it will be distributed at a high level. Therefore, when viewed in terms of the average value (in-block average value Pa) and frequency, the characters are distributed to the lower average value and the halftone is distributed to the higher average value as shown in (b). .. Therefore, the respective feature quantities are as follows.

【0054】文字領域の場合、文字部の高レベルより背
景が多く存在するため、ブロック内平均値Paは低いと
ころにあり、高レベル画素が最低1画素以上存在し、な
おかつ低レベル画素も最低1画素以上存在する。この条
件を満たさなければ、例えばブロック内全てが高レベル
画素の場合は、中間調領域となる。したがって、上記の
3つの特徴量を3次元的にみると、文字領域の分布状態
は図7に示すようになる。すなわち、3種の特性値の合
成により文字である範囲がかなり限定できることがわか
る。
In the case of the character area, since there are more backgrounds than the high level of the character portion, the average value Pa in the block is low, there are at least one high level pixel, and at least one low level pixel. There are more than pixels. If this condition is not satisfied, for example, if all of the blocks are high-level pixels, the halftone area will be obtained. Therefore, when the above-mentioned three feature quantities are viewed three-dimensionally, the distribution state of the character area is as shown in FIG. That is, it can be seen that the range of characters can be considerably limited by combining the three types of characteristic values.

【0055】今、ブロック内全画素総数をPtとする
と、文字領域は、少なくとも以下の条件を満たしていな
ければならない。
Now, assuming that the total number of all pixels in the block is Pt, the character area must satisfy at least the following conditions.

【0056】 Ph+Pm≦Pt−1 1≦Ph≦Pt−1 つまり、PhとPmからなる平面でみると、文字領域は
図8に示す黒地の領域に分布し、中間調領域は白地の領
域に分布する。したがって、でかつを満足している
ときに初めて文字領域となる。
Ph + Pm ≦ Pt−1 1 ≦ Ph ≦ Pt−1 That is, when viewed from the plane consisting of Ph and Pm, the character area is distributed in the black background area and the halftone area is distributed in the white background area. To do. Therefore, the character area becomes the first area when and is satisfied.

【0057】さらに、実際の識別パラメータは、各画像
データを統計的に解析し、上記の条件も加味して決定す
る。これを実現するための構成を示したのが先に説明し
た図5であり、(ハ)が3次元LUTに予め識別結果を
格納しておき、Pa、Ph、Pmの各8、6、6ビット
の結果を合成した20ビットをLUTのアドレスとして
入力するように構成したものである。これに対して
(ロ)はLUTの容量を削減するため、Pa、Ph、P
mに量子化器を挿入し、それぞれのデータ語長を圧縮し
てLUTの容量を減らしたものである。つまり、LSI
化するためには、内部でなるべくメモリを小さくするこ
とが必要であり、この場合、3、4、4の11ビットま
での削減を実現している。勿論、この量子化は単純に適
用できないが、Pa、Ph、Pmの分布状態と量子化を
非線形にすることによって、この程度の圧縮をしても識
別性能に支障を来さないことが確認できた。そして、
(イ)はPmの特性に着目して(ロ)のハードウエア規
模をさらに縮小したものであり、2次元のLUTと1つ
の比較器を用いた構成となっている。これは、図7、図
8を見たときに、文字領域のPmの分布状態が必ずPm
=0を最小値とし、Pm≦Pt−Ph−1を最大値とす
る範囲に入ることに着目している。これによりPmの値
がPa、Phによって予め決定されたPmの最大値の閾
値と比較して、小さければ文字領域、大きければ中間調
領域という判定方式が実現できることが分かる。これに
より、識別性能を落とさず、ハードウエア実現性を向上
できる。
Further, the actual identification parameter is determined by statistically analyzing each image data and taking the above conditions into consideration. The configuration for realizing this is shown in FIG. 5 described above. (C) stores the identification result in the three-dimensional LUT in advance, and Pa, Ph, and Pm are 8, 6, and 6 respectively. The configuration is such that 20 bits obtained by combining the bit results are input as the address of the LUT. On the other hand, in (b), since the capacity of the LUT is reduced, Pa, Ph, P
A quantizer is inserted in m and each data word length is compressed to reduce the capacity of the LUT. That is, LSI
In order to realize this, it is necessary to make the memory as small as possible internally, and in this case, reduction of up to 11 bits of 3, 4, 4 is realized. Of course, this quantization cannot be simply applied, but by making the distribution state of Pa, Ph, and Pm and the quantization non-linear, it can be confirmed that even this level of compression does not hinder the discrimination performance. It was And
In (a), the hardware scale in (b) is further reduced by paying attention to the characteristics of Pm, and the configuration uses a two-dimensional LUT and one comparator. This means that the distribution state of Pm in the character area is always Pm when looking at FIG. 7 and FIG.
It is noted that = 0 is set as the minimum value and Pm ≦ Pt−Ph−1 is set as the maximum value. From this, it can be seen that the determination method of the character area when the value of Pm is smaller than the threshold value of the maximum value of Pm which is predetermined by Pa and Ph and the halftone area when the value of Pm is large can be realized. As a result, the hardware feasibility can be improved without deteriorating the identification performance.

【0058】次に、上記本発明が適用される画像処理装
置の構成例を示す。図9は画像処理装置の信号処理系の
構成例を示す図である。
Next, a configuration example of the image processing apparatus to which the present invention is applied will be shown. FIG. 9 is a diagram showing a configuration example of a signal processing system of the image processing apparatus.

【0059】図9において、画像入力部100は、例え
ば副走査方向に直角に配置されたB、G、R3本のCC
Dラインセンサからなる縮小型センサを有し、副走査方
向に縮拡倍率に応じた速度で移動しながらタイミング生
成回路12からのタイミング信号に同期して主走査方向
に走査して画像読み取りを行うIITであり、アナログ
の画像データから階調表現された例えば8ビットのデジ
タルの画像データに変換される。この画像データに対
し、シェーディング補正回路11では、種々の要因によ
る各画素間のバラツキに対してシェーディング補正さ
れ、ギャップ補正回路13では、各ラインセンサ間のギ
ャップ補正が行われる。ギャップ補正は、FIFO14
でCCDラインセンサのギャップに相当する分だけ読み
取った画像データを遅延させ、同一位置のB、G、R画
像データが同一時刻に得られるようにするためのもので
ある。ENL(Equivalent Neutral Lightness;等
価中性明度)変換回路15は、原稿タイプに応じたパラ
メータを使って画像データのグレイバランス処理を行う
ものであり、また、後述する編集処理部400からのネ
ガポジ反転信号により、画素毎にグレイのとり方を逆に
してネガポジ反転し、例えば、或る指定領域のみネガポ
ジを反転できるようになっている。
In FIG. 9, the image input unit 100 includes, for example, three CCs B, G and R arranged at right angles to the sub-scanning direction.
A reduction type sensor including a D line sensor is provided, and an image is read by scanning in the main scanning direction in synchronization with a timing signal from the timing generation circuit 12 while moving in the sub-scanning direction at a speed according to the expansion / contraction ratio. IIT, which is analog image data and is converted into gradation-represented 8-bit digital image data, for example. The shading correction circuit 11 performs shading correction on the image data for variations between pixels due to various factors, and the gap correction circuit 13 performs gap correction between the line sensors. The gap correction is FIFO14
Is to delay the image data read by the amount corresponding to the gap of the CCD line sensor so that the B, G, and R image data at the same position can be obtained at the same time. An ENL (Equivalent Neutral Lightness) conversion circuit 15 performs gray balance processing of image data using a parameter according to a document type, and a negative / positive inversion signal from an editing processing unit 400 described later. This makes it possible to invert the way gray is taken for each pixel and invert the negative / positive, for example, to invert the negative / positive only in a certain designated area.

【0060】ENL変換回路15で処理されたB、G、
R画像データは、マトリッスク回路16aで例えば均等
色空間の信号L* 、a* 、b* に変換される。均等色空
間の信号L* 、a* 、b* は、それぞれが直交する座標
軸でL* が明度を表し、a* 、b* が色度平面(色相、
彩度)を表す。このような均等色空間の信号L*
* 、b* に変換することにより、メモリシステム20
0を介して計算機等外部とのインターフェースを取り易
くすると共に、色変換や編集処理、画像情報を検知を容
易にしている。セレクタ17は、マトリクス変換回路1
6aの出力、または外部とのインターフェースであるメ
モリシステム200からの画像データを選択的に取り出
し、或いは双方の画像データを同時に取り込んでテクス
チャ合成や透かし合成の処理を行うものである。そのた
め、セレクタ17には、合成画像について合成比率の設
定、演算処理、合成処理を行う機能を有している。
B, G, processed by the ENL conversion circuit 15
The R image data is converted into signals L * , a * , b * in the uniform color space, for example, by the matrix circuit 16a. In the uniform color space signals L * , a * , and b * , L * represents lightness on the coordinate axes orthogonal to each other, and a * and b * are chromaticity planes (hue,
Represents the saturation). Such a uniform color space signal L * ,
The memory system 20 is converted into a * and b *.
It is possible to easily interface with the outside such as a computer through 0, and to facilitate color conversion, edit processing, and detection of image information. The selector 17 is the matrix conversion circuit 1
The output of 6a or the image data from the memory system 200 which is an interface with the outside is selectively taken out, or both image data are taken in at the same time to perform the texture synthesizing process and the watermark synthesizing process. Therefore, the selector 17 has a function of performing the setting of the combining ratio, the calculation process, and the combining process for the combined image.

【0061】下地除去回路18は、例えばプリスキャン
で原稿濃度のヒストグラムを作成して下地濃度を検出
し、下地濃度以下の画素については飛ばして新聞等のよ
うなかぶった原稿に対するコピー品質を良くするための
ものである。原稿検知回路19は、黒いプラテンの裏面
と原稿との境界を検出して外接矩形を求めることによっ
て原稿サイズを検出し記憶しておくものである。これら
下地除去回路18及び原稿検知回路19では、均等色空
間の信号L* 、a* 、b* のうち、明度情報を信号L*
が用いられる。
The background removal circuit 18 creates a histogram of the document density by, for example, pre-scanning to detect the background density, and skips pixels below the background density to improve the copy quality for a fogged document such as a newspaper. It is for. The document detection circuit 19 detects and stores the document size by detecting the boundary between the back surface of the black platen and the document and determining the circumscribed rectangle. In the background removal circuit 18 and the original detection circuit 19, the lightness information of the signals L * , a * , and b * in the uniform color space is signal L *.
Is used.

【0062】編集処理部400では、領域毎に編集処理
やパラメータ等の切り換えを行うためのエリアコマンド
の設定及びエリアコマンドに基づく領域制御信号の生成
が行われ、画像データに対して色編集や色変換、マーカ
ー色検出その他の処理が行われる。そして、その処理が
行われた画像データがマトリクス変換回路16a及び絵
文字分離回路(TIS回路)20に入力される。
The edit processing section 400 sets an area command for performing edit processing and switching of parameters etc. for each area, and generates an area control signal based on the area command to perform color editing and color editing on the image data. Conversion, marker color detection, and other processing are performed. Then, the processed image data is input to the matrix conversion circuit 16a and the pictographic character separation circuit (TIS circuit) 20.

【0063】編集処理後の画像データに対して、マトリ
クス変換回路16aでは、L* 、a* 、b* からY、
M、Cのトナー色に変換され、絵文字分離回路20で
は、複数の画素をブロック化して色文字/黒文字/絵柄
(文字/中間調)の領域識別がなされる。下色除去回路
21では、マトリクス変換回路16bで変換されたY、
M、Cの画像データからモノカラー/フルカラーの信号
に応じて墨版(K)の生成、及びY、M、Cの等量除去
を行って、プロセスカラーの画像データを出力し、さら
に、色相判定を行って色相信号(Hue) を生成する。な
お、絵文字分離回路20で識別処理する際には、ブロッ
ク化するため領域識別の信号に例えば12ラインの遅れ
が生じるので、この遅れに対して色相信号及び画像デー
タを同期させるためにタイミングをとるのがFIFO2
2aと22bである。
In the matrix conversion circuit 16a, L * , a * , b * to Y, and
After being converted into M and C toner colors, the picture character separation circuit 20 divides a plurality of pixels into blocks to identify areas of color character / black character / picture (character / halftone). In the under color removal circuit 21, Y converted by the matrix conversion circuit 16b,
The black (K) generation is performed from the M and C image data according to the mono-color / full-color signal, and the equal amounts of Y, M, and C are removed, and the process color image data is output. A judgment is made to generate a hue signal (Hue). When the pictogram separation circuit 20 performs the identification processing, the area identification signal is delayed by, for example, 12 lines due to the block formation. Therefore, a timing is taken to synchronize the hue signal and the image data with the delay. FIFO2
2a and 22b.

【0064】縮拡回路23bは、画像データを指定され
た縮拡率にしたがって縮拡処理するものであり、副走査
方向については画像入力部100で縮拡率にしたがって
走査速度を変えることによって縮拡処理されるので、こ
こでは主走査方向について画像データの間引き、又は補
間を行っている。縮拡回路23aは、画像データに対す
る縮拡処理に対応して領域制御情報の実行領域がずれな
いようにエリアコマンドを縮拡処理するためのものであ
る。縮拡処理された領域制御情報がエリアデコーダ24
でデコードされて各処理ブロックの処理に供される。エ
リアデコーダ24は、エリアコマンドや領域識別信号、
色相信号からフィルタのパラメータ25や乗算器26の
係数、TRC回路27のパラメータの切り換え信号を生
成し、分配するものである。
The reduction / expansion circuit 23b performs the reduction / enlargement processing on the image data in accordance with the designated reduction / enlargement ratio. In the sub-scanning direction, the image input unit 100 changes the scanning speed in accordance with the reduction / enlargement ratio to reduce the size. Since the image data is expanded, the image data is thinned out or interpolated in the main scanning direction. The expansion / contraction circuit 23a is for expanding / contracting the area command so that the execution area of the area control information does not shift in correspondence with the expansion / contraction processing on the image data. The area control information subjected to the reduction / expansion processing is the area decoder 24.
Are decoded by and processed by each processing block. The area decoder 24 uses an area command, an area identification signal,
The switching signal of the parameter 25 of the filter, the coefficient of the multiplier 26, and the parameter of the TRC circuit 27 is generated from the hue signal and distributed.

【0065】フィルタ25は、縮拡回路23bで縮小ま
たは拡大された画像データに対して空間周波数に応じて
中間調のモアレ除去、文字のエッジ強調を行うものであ
る。TRC回路27は、変換テーブルを用いIOTの特
性に合わせて濃度調整をするためのものであり、PAL
29は、現像プロセスや領域識別の信号によってTRC
回路27の変換テーブルのパラメータを切り換えるデコ
ーダである。乗算器26は、係数aとbを用いて画像デ
ータxに対しax+bの演算を行うものであり、中間調
の場合にはスルー、文字の場合にはハイγのように係数
が切り換えられる。そして、TRC回路27と併せて用
い各色成分に対する係数と変換テーブルを適宜選択する
ことにより、色文字、黒文字、絵柄に対してのデータリ
セット、色調整、濃度調整が行われる。また、フィルタ
25のパラメータを標準化し、係数aとbで文字のエッ
ジ強調を調整することができる。これらによって調整さ
れた画像データはメモリシステムに記憶されるか、RO
S300のスクリーン生成部28でドット展開され網点
画像にして出力される。
The filter 25 removes the halftone moiré and emphasizes the edges of the characters in the image data reduced or enlarged by the reduction circuit 23b according to the spatial frequency. The TRC circuit 27 is for adjusting the density according to the characteristics of the IOT using the conversion table,
29 is TRC by the signal of the development process and area identification
It is a decoder that switches the parameters of the conversion table of the circuit 27. The multiplier 26 performs ax + b calculation on the image data x using the coefficients a and b, and the coefficient is switched between through in the case of halftone and high γ in the case of character. By appropriately selecting the coefficient and conversion table for each color component used in combination with the TRC circuit 27, data reset, color adjustment, and density adjustment for color characters, black characters, and patterns are performed. Further, the parameters of the filter 25 can be standardized, and the edge emphasis of the character can be adjusted by the coefficients a and b. The image data adjusted by these is stored in a memory system or RO
In the screen generation unit 28 of S300, dots are expanded and output as a halftone dot image.

【0066】編集処理部400は、色変換や色編集、領
域制御信号の生成等を行うものであり、セレクタ17か
らの画像データL* 、a* 、b* が入力される。そし
て、LUT415aでマーカー色その他の色検出や色編
集、色変換等がし易いように色度の情報が直交座標系の
a、bから極座標系のC、Hに変換される。色変換&パ
レット413は、例えば色変換や色編集で使用する色を
32種類のパレットに持っており、ディレイ回路411
aを通して入力されるエリアコマンドにしたがって画像
データL、C、Hに対しマーカーの色検出や色編集、色
変換等の処理を行うものである。そして、色変換等の処
理を行う領域の画像データのみが色変換&パレット41
3で処理されLUT415bでC、Hからa、bに逆変
換された後、それ以外の領域の画像データは直接セレク
タ416から出力され、前述のマトリクス変換回路16
bへ送られる。
The editing processing section 400 performs color conversion, color editing, generation of a region control signal, etc., and receives image data L * , a * , b * from the selector 17. Then, the LUT 415a converts the chromaticity information from a and b in the orthogonal coordinate system into C and H in the polar coordinate system so that the marker color and other colors can be easily detected, color edited, and converted. The color conversion & palette 413 has, for example, 32 kinds of colors used in color conversion and color editing, and the delay circuit 411.
The image data L, C, and H are subjected to marker color detection, color editing, color conversion, and other processing in accordance with area commands input through a. Then, only the image data of the area where the color conversion or the like is performed is performed by the color conversion & palette 41
After being processed by the LUT 415b and converted back from C, H to a, b, the image data of the other areas is directly output from the selector 416, and the matrix conversion circuit 16 described above is used.
sent to b.

【0067】色変換&パレット413で画像データから
検出されたマーカ色(3色)と閉領域の4ビット信号は
密度変換・領域生成回路405へ送られる。密度変換・
領域生成回路405では、FIFO410a、410
b、410cを用いて4×4のウインドウで、16画素
の中で黒画素が所定数以上であれば「1」とする2値化
処理を行って400spiから100spiへの密度変
換が行われる。このようにして生成されたマーカ信号
(閉ループやマーカ・ドット)は密度変換・領域生成回
路405よりDRAMコントローラ402を通してプレ
ーンメモリ403に書き込まれる。
The marker color (3 colors) detected from the image data by the color conversion & palette 413 and the 4-bit signal of the closed area are sent to the density conversion / area generation circuit 405. Density conversion
In the area generation circuit 405, the FIFOs 410a, 410
In the 4 × 4 window using b and 410c, the density conversion from 400 spi to 100 spi is performed by performing the binarization process of setting “1” when the number of black pixels is equal to or larger than the predetermined number in 16 pixels. The marker signal (closed loop or marker dot) generated in this way is written in the plane memory 403 from the density conversion / region generation circuit 405 through the DRAM controller 402.

【0068】また、マーカ・ドット信号については、小
さなゴミなどをマーカとして誤検知しないようにFIF
O408により3ライン分遅延させて3×3のウインド
ウにして座標値生成回路407でマーカ・ドットの検
出、座標値の生成を行ってRAM406に記憶する。な
お、このマーカ・ドットについてはプレーンメモリ40
3にも記憶されるが、誤検知を防止するためにこの処理
を行っている。
As for the marker / dot signal, the FIF is set so that small dust or the like is not erroneously detected as a marker.
The coordinate value generation circuit 407 detects the marker dot and generates the coordinate value and stores it in the RAM 406 by delaying by 3 lines by O408 to form a 3 × 3 window. For the marker dot, the plain memory 40
3 is stored, but this process is performed to prevent erroneous detection.

【0069】プレーンメモリ403は、色変換や色編
集、その他の領域編集を行うためのエリアコマンドを格
納するためのメモリであり、例えばエディットパッドか
らも領域を指定し、その領域にエリアコマンドを書き込
むことができる。すなわち、エディットパッドで指定し
た領域のエリアコマンドは、CPUバスを通してグラフ
ィックコントローラ401に転送され、グラフィックコ
ントローラ401からDRAMコントローラ402を通
してプレーンメモリ403に書き込まれる。プレーンメ
モリ403は4面からなっており、0〜15までの16
種類のエリアコマンドが設定できる。
The plane memory 403 is a memory for storing area commands for performing color conversion, color editing, and other area editing. For example, the area is designated from the edit pad and the area command is written in the area. be able to. That is, the area command of the area designated by the edit pad is transferred to the graphic controller 401 through the CPU bus and written from the graphic controller 401 to the plane memory 403 through the DRAM controller 402. The plane memory 403 is composed of four sides and has 16 numbers from 0 to 15.
Area commands of various types can be set.

【0070】プレーンメモリ403に格納した4ビット
のエリアコマンドは、画像データの出力に同期して読み
出され色変換&パレットにおける編集処理や、図(イ)
に示す画像データ処理系、ENL変換回路15やマトリ
クス変換回路16、セレクタ17、下色除去回路21、
さらにはエリアデコーダ24を介してフィルタ25、乗
算器26、TRC回路27、スクリーン生成部28等の
パラメータ等の切り換えに使用される。このエリアコマ
ンドをプレーンメモリ403から読み出し、色変換&パ
レット413での編集処理、画像データ処理系でのパラ
メータの切り換え等に使用する際には、100spiか
ら400spiへの密度変換が必要であり、その処理を
密度変換領域生成回路405で行っている。密度変換領
域生成回路405では、FIFO409a、409bを
使って3×3のブロック化を行い、そのパターンからデ
ータ補間を行うことによって、閉ループ曲線や編集領域
等の境界がギザギザにならないように100spiから
400spiへの密度変換を行っている。ディレイ回路
411a、411b、1MFIFO412等は、エリア
コマンドと画像データとのタイミング調整を行うための
ものである。
The 4-bit area command stored in the plane memory 403 is read in synchronism with the output of the image data, and is subjected to the color conversion & palette editing process, or the process shown in FIG.
Image data processing system, ENL conversion circuit 15, matrix conversion circuit 16, selector 17, undercolor removal circuit 21,
Further, it is used for switching parameters such as the filter 25, the multiplier 26, the TRC circuit 27, and the screen generation unit 28 via the area decoder 24. When this area command is read out from the plane memory 403 and used for color conversion & palette 413 editing processing, parameter switching in the image data processing system, etc., density conversion from 100 spi to 400 spi is necessary. The processing is performed by the density conversion area generation circuit 405. In the density conversion area generation circuit 405, 3 × 3 blocks are formed by using the FIFOs 409a and 409b, and data interpolation is performed from the pattern so that a boundary of a closed loop curve or an editing area does not become jagged, and 100 spi to 400 spi The density conversion to The delay circuits 411a, 411b, 1MFIFO 412 and the like are for adjusting the timing between the area command and the image data.

【0071】[0071]

【発明の効果】以上説明したように、本発明によれば、
データ取り込み切り替え手段によりデータの取り込みを
1ラインおきに行うモードに切り替えることができるの
で、必要に応じてブロック化手段のサイズより実質的に
大きなサイズのブロックを採用することができ、識別性
能を高めることができる。また、ブロックサイズは2の
巾乗とするので、ブロックデータの平均化処理をビット
シフトのみで行うことができ、演算処理のためのハード
ウエア、ソフトウエアの構成を簡潔にすることができ
る。さらに、領域識別信号を出力するタイミングがライ
ン信号と同期するようにラインバッファの読み出しタイ
ミングを制御するので、内部遅延の調整を簡単に行うこ
とができ、難しい回路のタイミング設計が不要になる。
As described above, according to the present invention,
Since it is possible to switch to a mode in which data is captured every other line by the data capture switching unit, it is possible to employ a block having a size substantially larger than the size of the blocking unit, and improve the identification performance. be able to. Further, since the block size is a power of 2, the block data averaging process can be performed only by bit shifting, and the hardware and software configurations for the arithmetic process can be simplified. Further, since the read timing of the line buffer is controlled so that the timing of outputting the area identification signal is synchronized with the line signal, the internal delay can be easily adjusted and the difficult timing design of the circuit becomes unnecessary.

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

【図1】 本発明の画像処理装置の画像領域識別回路の
1実施例を示す図である。
FIG. 1 is a diagram showing an embodiment of an image area identification circuit of an image processing apparatus of the present invention.

【図2】 本発明で適用されるブロック化回路の1実施
例及び波形を示す図である。
FIG. 2 is a diagram showing an example and waveforms of a blocking circuit applied in the present invention.

【図3】 LSIの内部遅延とその補正処理を説明する
ための図である。
FIG. 3 is a diagram for explaining an internal delay of an LSI and its correction processing.

【図4】 ブロック色判定&合成回路の構成例を示す図
である。
FIG. 4 is a diagram showing a configuration example of a block color determination & synthesis circuit.

【図5】 画像領域識別回路の変形例を示す図である。FIG. 5 is a diagram showing a modified example of the image area identification circuit.

【図6】 カラー文字/中間調画像の分布を説明するた
めの図である。
FIG. 6 is a diagram for explaining the distribution of color characters / halftone images.

【図7】 文字領域の分布状態の例を説明するための図
である。
FIG. 7 is a diagram for explaining an example of a distribution state of character areas.

【図8】 パラメータ最適化条件を説明するための図で
ある。
FIG. 8 is a diagram for explaining parameter optimization conditions.

【図9】 画像処理装置の信号処理系の構成例を示す図
である。
FIG. 9 is a diagram illustrating a configuration example of a signal processing system of the image processing apparatus.

【図10】 従来のカラー画像処理装置の構成例及び画
像領域識別回路の構成例を示す図である。
FIG. 10 is a diagram illustrating a configuration example of a conventional color image processing device and a configuration example of an image area identification circuit.

【図11】 色相検出回路の構成例を示す図である。FIG. 11 is a diagram illustrating a configuration example of a hue detection circuit.

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

1…ブロック化手段、2…データ取り込み切り替え手
段、3…領域識別手段、4…タイミング調整手段
DESCRIPTION OF SYMBOLS 1 ... Blocking means, 2 ... Data acquisition switching means, 3 ... Area identification means, 4 ... Timing adjusting means

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年11月11日[Submission date] November 11, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】図面の簡単な説明[Name of item to be corrected] Brief description of the drawing

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

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

【図1イ】 本発明の画像処理装置の画像領域識別回路
の1実施例を示す図である。
FIG. 1A is a diagram showing an embodiment of an image area identification circuit of an image processing apparatus of the present invention.

【図1ロ】 本発明の画像処理装置の画像領域識別回路
の1実施例を示す図である。
FIG. 1B is a diagram showing an embodiment of an image area identification circuit of the image processing apparatus of the present invention.

【図2】 本発明で適用されるブロック化回路の1実施
例及び波形を示す図である。
FIG. 2 is a diagram showing an example and waveforms of a blocking circuit applied in the present invention.

【図3】 LSIの内部遅延とその補正処理を説明する
ための図である。
FIG. 3 is a diagram for explaining an internal delay of an LSI and its correction processing.

【図4】 ブロック色判定&合成回路の構成例を示す図
である。
FIG. 4 is a diagram showing a configuration example of a block color determination & synthesis circuit.

【図5】 画像領域識別回路の変形例を示す図である。FIG. 5 is a diagram showing a modified example of the image area identification circuit.

【図6】 カラー文字/中間調画像の分布を説明するた
めの図である。
FIG. 6 is a diagram for explaining the distribution of color characters / halftone images.

【図7】 文字領域の分布状態の例を説明するための図
である。
FIG. 7 is a diagram for explaining an example of a distribution state of character areas.

【図8】 パラメータ最適化条件を説明するための図で
ある。
FIG. 8 is a diagram for explaining parameter optimization conditions.

【図9イ】 画像処理装置の信号処理系の構成例を示す
図である。
FIG. 9A is a diagram showing a configuration example of a signal processing system of the image processing apparatus.

【図9ロ】 画像処理装置の信号処理系の構成例を示す
図である。
FIG. 9B is a diagram showing a configuration example of a signal processing system of the image processing apparatus.

【図10】 従来のカラー画像処理装置の構成例及び画
像領域識別回路の構成例を示す図である。
FIG. 10 is a diagram showing a configuration example of a conventional color image processing device and a configuration example of an image area identification circuit.

【図11】 色相検出回路の構成例を示す図である。FIG. 11 is a diagram illustrating a configuration example of a hue detection circuit.

【符号の説明】 1…ブロック化手段、2…データ取り込み切り替え手
段、3…領域識別手段、4…タイミング調整手段
[Explanation of Codes] 1 ... Blocking Means, 2 ... Data Acquisition Switching Means, 3 ... Area Identifying Means, 4 ... Timing Adjusting Means

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】全図[Correction target item name] All drawings

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図1イ】 [Figure 1]

【図7】 [Figure 7]

【図8】 [Figure 8]

【図1ロ】 [Fig. 1B]

【図2】 [Fig. 2]

【図3】 [Figure 3]

【図6】 [Figure 6]

【図4】 [Figure 4]

【図5】 [Figure 5]

【図9イ】 [Figure 9a]

【図9ロ】 [Fig. 9B]

【図10】 [Figure 10]

【図11】 FIG. 11

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/46 9068−5C (72)発明者 反町 義幸 神奈川県海老名市本郷2274番地 富士ゼロ ツクス株式会社海老名事業所内 (72)発明者 粟田 恵徳 埼玉県岩槻市大字岩槻1275番地 富士ゼロ ツクス株式会社岩槻事業所内─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 5 Identification number Internal reference number FI Technical indication location H04N 1/46 9068-5C (72) Inventor Yoshiyuki Sorimachi 2274 Hongo, Ebina-shi, Kanagawa Fujizero Tsukusu stock Company Ebina Office (72) Inventor Keitoku Awata 1275 Iwatsuki, Iwatsuki City, Saitama Prefecture Fuji Zero Tux Co., Ltd. Iwatsuki Office

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数画素をブロック化して文字や中間調
の領域識別を行い領域識別信号に応じてパラメータを切
り替えてカラー画像信号を処理する画像処理装置におい
て、データの取り込みを毎ライン行うモードと1ライン
おきに行うモードに切り替え制御するデータ取り込み切
り替え手段、該切り替え手段の制御にしたがって取り込
んだデータをブロック化するブロック化手段、及びブロ
ック化したデータにより領域識別を行う領域識別手段を
備えたことを特徴とするカラー画像処理装置の絵文字分
離回路。
1. An image processing apparatus for processing a color image signal by switching a parameter according to an area identification signal by identifying an area of a character or a halftone by dividing a plurality of pixels into blocks, and a mode in which data is taken in every line. Data acquisition switching means for controlling switching to a mode performed every other line, blocking means for blocking the data taken in under the control of the switching means, and area identification means for performing area identification by the blocked data are provided. A pictographic character separation circuit for a color image processing device.
【請求項2】 ブロックサイズは2の巾乗としたことを
特徴とする請求項1記載のカラー画像処理装置の絵文字
分離回路。
2. The pictographic character separation circuit of the color image processing apparatus according to claim 1, wherein the block size is a power of 2.
【請求項3】 領域識別手段は、ラインバッファからな
るタイミング調整手段を有し、領域識別信号を出力する
タイミングがライン信号と同期するようにラインバッフ
ァの読み出しタイミングを制御することを特徴とする請
求項1記載のカラー画像処理装置の絵文字分離回路。
3. The area identifying means has a timing adjusting means composed of a line buffer, and controls the read timing of the line buffer so that the timing of outputting the area identifying signal is synchronized with the line signal. 2. A pictographic character separation circuit of the color image processing device according to item 1.
JP3234918A 1991-09-13 1991-09-13 Picture character separating circuit of color image processor Pending JPH05145750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3234918A JPH05145750A (en) 1991-09-13 1991-09-13 Picture character separating circuit of color image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3234918A JPH05145750A (en) 1991-09-13 1991-09-13 Picture character separating circuit of color image processor

Publications (1)

Publication Number Publication Date
JPH05145750A true JPH05145750A (en) 1993-06-11

Family

ID=16978328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3234918A Pending JPH05145750A (en) 1991-09-13 1991-09-13 Picture character separating circuit of color image processor

Country Status (1)

Country Link
JP (1) JPH05145750A (en)

Similar Documents

Publication Publication Date Title
US5768403A (en) Image-area identifying system for a color image processing apparatus
US5331442A (en) Identification of graphic and character areas in color image processor
JP3399486B2 (en) Color image processing apparatus and method
US5134667A (en) Area discriminating system for an image processing system
JP3003261B2 (en) Color image recognition device
US8477324B2 (en) Image processor and image processing method that uses s-shaped gamma curve
US5166810A (en) Image quality control system for an image processing system
US5886797A (en) Method and apparatus for controlling a spatial filtering process based on characteristics of image data
US5296939A (en) Image area discriminating system for an image processing apparatus
JP2600515B2 (en) Image processing method
JPH07101916B2 (en) Color image editing device
JPH0686045A (en) Texture picture processing system for picture processor
JP2002232708A (en) Image processing device, image forming device using the same, and image processing method
US6178010B1 (en) Image processing device
JPH10283470A (en) Image processor, image processing method and recording medium
JP3070174B2 (en) Image forming device
JP2972172B2 (en) Halftone area detection method
JP3495743B2 (en) Image processing apparatus and image processing method
JPH05145750A (en) Picture character separating circuit of color image processor
JP4047356B2 (en) Image processing device
JP3316077B2 (en) Background density level detector
JP3079630B2 (en) Image processing device
JP3064896B2 (en) Image processing device
JP3587740B2 (en) Image processing device
JPH0575851A (en) Image area separation system of color picture processor