JPH04189069A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH04189069A
JPH04189069A JP2316098A JP31609890A JPH04189069A JP H04189069 A JPH04189069 A JP H04189069A JP 2316098 A JP2316098 A JP 2316098A JP 31609890 A JP31609890 A JP 31609890A JP H04189069 A JPH04189069 A JP H04189069A
Authority
JP
Japan
Prior art keywords
image
signal
pixel
interest
photographic
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
JP2316098A
Other languages
Japanese (ja)
Inventor
Naoki Morishita
直樹 森下
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2316098A priority Critical patent/JPH04189069A/en
Publication of JPH04189069A publication Critical patent/JPH04189069A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a picture with high picture quality by surely identifying a character picture and a photographic picture and implementing binarizing processing while satisfying simultaneously resolution of the character picture and gradation of the photographic picture. CONSTITUTION:A signal is inputted from line buffers 1a, 1b, 1c to computing elements 3, 6 via extraction means 2, 5. A discrimination means 4 compares a maximum density difference signal 31 with prescribed threshold levels Th1, Th2, discriminates the signal to be a character picture and outputs a level 1 as a discrimination signal 41 when the signal 31 is larger than the threshold level Th1, and discriminates the signal to be a photographic picture and outputs a level 0 when the signal 31 is smaller than the threshold level Th2. On the other hand, a discrimination means 7 compares a maximum density difference signal 61 with a prescribed threshold level Th3, discriminates the signal to be a character picture and outputs a level 1 as a discrimination signal 71 when the signal 31 is larger than the threshold level Th3, and discriminates the signal to be a photographic picture and outputs a level 0 when the signal 31 is smaller than the threshold level Th3. The signals 41, 71 are inputted to a selector 8, from which a threshold level selection signal 81 to select the threshold level used for binarizing processing. The signal 81 is inputted to a selector 12, the selected threshold level 121 is inputted to a comparator circuit 13 and used for binarizing processing of picture information.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、文字画像と写真画像が混在している文書画像
を対象として二値化処理等の画像処理を施す画像処理装
置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to image processing that performs image processing such as binarization processing on a document image in which text images and photographic images are mixed. Regarding equipment.

(従来の技術) 一般に、コード情報だけでなくイメージ情報も扱える画
像処理装置においては、スキャナなどの読取手段で読取
った画像に対し、文字や線図等のコントラストのある画
像は、固定閾値により単純二値化処理を行い、又、写真
などの階調を有する画像は、デイザ法などの疑似階調化
手法によって二値化処理を行っている。しかしながらこ
の二値化処理方法では、読取った画像情報に対して固定
閾値により単純二値化処理を行うと、文字、線画像の領
域は解像性が保存されるため画素劣化は生じないが、写
真画像の領域では階調性が保存されないために画質劣化
は生じた画像となる。
(Prior art) In general, in image processing devices that can handle not only code information but also image information, contrasting images such as characters and line drawings are simply processed using a fixed threshold value compared to images read by a reading means such as a scanner. Binarization processing is performed, and images with gradations such as photographs are subjected to binarization processing using a pseudo gradation method such as a dither method. However, in this binarization processing method, if simple binarization processing is performed on the read image information using a fixed threshold value, the resolution is preserved in the text and line image areas, so pixel deterioration does not occur. In the photographic image area, the gradation is not preserved, resulting in an image with degraded image quality.

また一方、読取った画像を組織的デイザ法などで階調化
処理を行うと、写真゛画像の領域は階調性が保存される
ため画質劣化は生じないが、文字、線画像の領域では解
像性が低下するため画質が劣化したものとなる。
On the other hand, if a scanned image is subjected to gradation processing using systematic dithering, etc., the gradation is preserved in photographic image areas and no image quality deterioration occurs, but text and line image areas are not degraded. The image quality deteriorates because the image quality deteriorates.

すなわち、スキャナ等で読取った画像情報に対して、単
一の二値化処理を施す場合には、特徴の異なる夫々の画
像領域における画質を同時に満足することは不可能では
ない。これは、各種の画像処理においても同様であり、
例えば、二値化画像の拡大・縮小処理においても、画像
の特徴にあった処理を施さないと画質が低下し、又、符
号化処理においても、画像の特徴にあった圧縮方式にて
処理を行ないと効率の悪いデータ圧縮となる。
That is, when performing a single binarization process on image information read by a scanner or the like, it is not impossible to simultaneously satisfy the image quality in each image area having different characteristics. This is the same in various image processing,
For example, when enlarging/reducing a binarized image, the image quality will deteriorate if the processing is not done in accordance with the characteristics of the image, and also in the encoding process, the processing must be done using a compression method that is suited to the characteristics of the image. Failure to do so will result in inefficient data compression.

従って、画像処理を施される画像情報に対しては、画像
の特徴に応じた領域に分離し、各画像領域に適応的な処
理を行うことが必須となっている。
Therefore, it is essential for image information to be subjected to image processing to be separated into regions according to the characteristics of the image and to perform adaptive processing on each image region.

そこで、従来、文字画像の解像性と写真画像の階調性を
同時に満足する方式として、画像平面内の局所領域での
画像の濃度(ここでは読取手段で読み取った画像信号レ
ベルを意味し、以下、この画像信号レベルを画像の濃度
と称す)の最大濃度差(△Dmax)を求め、この最大
濃度差(△Dmax)と判定閾値(Th)とを比較する
ことにより、文字、線画像の領域と写真画像の領域に分
離し、各画像領域の特徴に応じて、二値化処理を切替る
方式が提案されている(例えば、特開昭58−3374
号公報参照)。
Therefore, conventionally, as a method that simultaneously satisfies the resolution of character images and the gradation of photographic images, image density (here, image signal level read by a reading means) in a local area within the image plane, Hereinafter, this image signal level will be referred to as image density.) By calculating the maximum density difference (△Dmax) and comparing this maximum density difference (△Dmax) with the determination threshold (Th), it is possible to A method has been proposed in which the image area is separated into a photographic image area and the binarization process is switched according to the characteristics of each image area (for example, Japanese Patent Laid-Open No. 58-3374
(see publication).

しかしながら、この方式においては、文字画像の細かい
文字の内部などにおいては、所望の解像度を得ることが
できないために濃度の変化が小さくなるたため、写真画
像と誤判定して階調処理を施す場合があり、この場合、
文字画像の解像性が劣化してしまうといった欠点があっ
た。例えば、10.5ボ位の文字の大きさでは、文字の
細部でも濃度差が大きく文字画像と判定されるが、5ポ
位の文字においては、細部は解像性まで正確に読取るこ
とが困難であるため、濃度変化が小さくなり、その結果
、文字画像を写真画像と誤判定して階調処・理を施すた
め、文字画像の劣化が生じるもこのように従来の画像処
理装置においては、文字画像と写真画像が混在する画像
に対して、文字画像に対する解像性及び写真画像に対す
る階調性を同時に満足させなから二値化処理するに際し
、所定範囲の画像の濃度差を用いて、文字画像と写真画
像とを識別する場合に、文字画像の細部において所定範
囲内に濃度変化が小さくなり、この領域が写真画像と誤
判定され、又、写真画像の濃度変化の大きな領域では、
文字画像と誤判定される場合がある。そのため、例えば
文字画像と誤判定された写真画像の場合には、文字画像
に適した二値化処理が施されるため、階調性の低下を招
いて著しい画質劣化が生し、又、写真画像と誤判定され
た文字画像の場合には、デイザ処理が施されるために解
像性の劣化が生じてしまうといった問題があった。
However, with this method, it is not possible to obtain the desired resolution in areas such as the inside of small characters in a character image, and the change in density becomes small, so there are cases where it is mistakenly determined to be a photographic image and gradation processing is applied. Yes, in this case,
There was a drawback that the resolution of character images deteriorated. For example, with a 10.5-point character size, there is a large difference in density even in the details of the character, and it is judged to be a character image, but with a 5-point character, it is difficult to accurately read the details down to the resolution. Therefore, the density change becomes small, and as a result, the character image is incorrectly determined to be a photographic image and gradation processing is performed, resulting in deterioration of the character image.However, in conventional image processing devices, When performing binarization processing on an image in which a text image and a photographic image are mixed so that the resolution for the text image and the gradation for the photographic image are simultaneously satisfied, the image density difference in a predetermined range is used. When distinguishing between a character image and a photographic image, the density change in the details of the character image is small within a predetermined range, and this area is incorrectly determined to be a photographic image, and in the area of the photographic image where the density change is large,
It may be mistakenly determined to be a text image. Therefore, for example, in the case of a photo image that is incorrectly determined to be a text image, binarization processing suitable for text images is applied, resulting in a decrease in gradation and significant image quality deterioration. In the case of a character image that is erroneously determined to be an image, there is a problem in that the resolution deteriorates because dither processing is performed.

そこで本発明は、上記事情に基づいてなされたものであ
り、文字画像と写真画像との識別を確実に行い、文字画
像と写真画像が混在する画像に対して、文字画像に対す
る解像性及び写真画像に対する階調性を同時に満足させ
なから二値化処理を行い、高画質の画像を得ることので
きる画像処理装置を提供することを目的とするものであ
る。
The present invention has been made based on the above circumstances, and it is possible to reliably identify character images and photographic images, and to improve the resolution of character images and photographic images for images in which character images and photographic images are mixed. It is an object of the present invention to provide an image processing device that can obtain a high-quality image by performing binarization processing while simultaneously satisfying the gradation characteristics of the image.

本発明の上記目的を達成するために、第1の発明におい
ては、文字画像及び写真画像を有する画像情報における
注目画素を含む第1の範囲内の画像情報から前記注目画
素の画像としての第1の特徴情報を抽出する第1の抽出
手段と、この第1の抽出手段にて抽出された第1の特徴
情報を第1の閾値を用いて前記注目画素が構成する画1
象の種別を行う第1の判定手段と、前記注目画素を含む
前記第1の範囲とは異なる第2の範囲内の画像情報から
前記注目画素の画像としての第2の特徴情報を抽出する
第2の抽出手段と、この第2の抽出手段にて抽出された
第2の特徴情報に対し第2の閾値を用いて前記第1の判
定手段にて文字画像及び写真画像以外の画像と判定され
たものに対して前記注目画素が構成する画像の種別を判
定する第2の判定手段と具備した画像処理装置を提供す
るものである。
In order to achieve the above object of the present invention, in the first invention, from image information in a first range including the pixel of interest in image information having a character image and a photographic image, a first image of the pixel of interest is extracted. a first extraction means for extracting feature information of the pixel of interest, and a first extraction means for extracting feature information of the pixel of interest;
a first determining means for determining the type of the object; and a first determining means for extracting second characteristic information as an image of the pixel of interest from image information within a second range different from the first range including the pixel of interest. 2, and the second feature information extracted by the second extraction means is determined to be an image other than a character image or a photographic image by the first determination means, using a second threshold value for the second feature information extracted by the second extraction means. The present invention provides an image processing apparatus comprising second determining means for determining the type of image constituted by the pixel of interest.

また第2の発明においては、文字画像と写真画像とか混
在する処理対象画像における注目画素を含む第1の範囲
内の画像情報から前記注目画素の画像としての第1の特
徴情報を抽出する第1の抽出手段と、この第1の抽出手
段にて抽出された第1の特徴情報を第1の閾値を用いて
前記注目画素が構成する画像を文字画像、写真画像又は
中間画像のいずれかに判別して第1の判別信号を出力す
る第]の判定手段と、前記注目画素を含む前記第1の範
囲とは異なる第2の範囲内の画像情報から前記注目画素
の画像としての第2の特徴情報を抽出する第2の抽出手
段と、この第2の抽出手段にて抽出された第2の特徴情
報を第2の閾値を用いて前記注目画素が構成する画像を
文字画像又は写真画像のいずれかに判別して第2の判別
信号を出力する第2の判定手段と、前記第1の判定手段
にて文字画像又は写真画像であると判定されものに対し
ては第1の判別信号を選択し前記第1の判定手段にて中
間画像と判別されたものに対しては前記第2の判定手段
で判定された第2の判別信号を選択する選択手段と、こ
の選択手段にて選択された判別信号に基づいて処理対象
画像に対して文字画像及び写真画像各々に対応した二値
化処理を施す処理手段とを具備した画像処理装置を提供
するものである。
Further, in the second invention, first feature information as an image of the pixel of interest is extracted from image information within a first range including the pixel of interest in an image to be processed in which a character image and a photographic image are mixed. and a first threshold value for the first characteristic information extracted by the first extraction means to determine the image constituted by the pixel of interest as either a character image, a photographic image, or an intermediate image. and a second feature as an image of the pixel of interest based on image information within a second range different from the first range including the pixel of interest. A second extraction means extracts information, and the second feature information extracted by the second extraction means is used to determine whether the image constituted by the pixel of interest is a character image or a photographic image. a second determining means for determining whether the image is a text image or a photographic image and outputting a second determining signal; and selection means for selecting a second discrimination signal determined by the second determination means for the intermediate image determined by the first determination means; The present invention provides an image processing device that includes processing means that performs binarization processing corresponding to each of a character image and a photographic image on an image to be processed based on a discrimination signal.

(作用) 本発明の画像処理装置によって処理される画像情報は、
−射的に、文字画像の領域では、所定範囲内の濃度変化
が大きく、また、写真画像の領域では濃度変化が小さい
という特徴があるが、文字画像の細部における濃度変化
の小さい部分や写真画像における濃度変化の大きい部分
など、文字画像と写真画像とが同じような濃度変化を生
じる部分が存在する場合がある。しかしながら、このよ
うな濃度変化が生じた場合でも、写真画像においては、
濃度変化は連続的になり、文字画像の場合は、局所的な
濃度変化となる・。そこで、本発明においては、文字画
像並びに写真画像がともに存在するような濃度変化か生
じたものに関しては、中間画像であると判定し、この中
間画像に対しては、注目画素の種別を判定する際の所定
範囲を変化させて、再度、画像の種別の判定を行うよう
にしたものである。
(Operation) The image information processed by the image processing device of the present invention is
- Texture image areas are characterized by large density changes within a predetermined range, and photographic image areas have small density changes; There may be a portion where the character image and the photographic image have similar density changes, such as a portion where the density change is large. However, even when such density changes occur, in photographic images,
The density change is continuous, and in the case of character images, it is a local density change. Therefore, in the present invention, an image in which a density change occurs such that both a character image and a photographic image exist is determined to be an intermediate image, and the type of the pixel of interest is determined for this intermediate image. The image type is determined again by changing the predetermined range.

(実施例) 以下、本発明の画像処理装置の一実施例につき図面を参
照しながら説明する。
(Embodiment) An embodiment of the image processing apparatus of the present invention will be described below with reference to the drawings.

第1図は、本発明の画像処理装置の構成を示す概略ブロ
ック図である。この画像処理装置においては、イメージ
スキャナ等の読取装置(図示せす)にて読取った画像情
報を例えば1画素当り8ビツトのディジタル・データと
して入力し、この入力データを二値化処理するものであ
る。この画像処理装置においては、3つのラインバッフ
ァla。
FIG. 1 is a schematic block diagram showing the configuration of an image processing apparatus according to the present invention. In this image processing device, image information read by a reading device (not shown) such as an image scanner is input as digital data of 8 bits per pixel, and this input data is binarized. be. In this image processing device, there are three line buffers la.

lb、lcと、これらラインバッフy 1 a s 1
 b、ICに接続された抽出手段(第1の抽出手段)2
並びに抽出手段(第2の抽出手段)5を有している。ラ
インバッファla、lb、lcは、スキャナ等で読取っ
た画像データを一時的に格納して、抽出手段2.5に対
し、列方向に数画素ずつ並列に入力するものである。
lb, lc and these line buffers y 1 a s 1
b. Extraction means (first extraction means) 2 connected to the IC
It also has an extraction means (second extraction means) 5. The line buffers la, lb, and lc are used to temporarily store image data read by a scanner or the like, and input the data to the extraction means 2.5 in parallel in the column direction, several pixels at a time.

抽出手段2は、ラインバッフylas xb、ICから
所定のクロックに同期して画像データを入力し、その画
像データから注目画素を含む局所領域(mXmマトリッ
クス、例えば4X4マトリツクス)における最大濃度D
 maxiと最小濃度D m1nlの特徴情報を求める
ものである。この抽出手段2には、注目画素を含む局所
領域としての(mXm)画素の領域にて、その画素の特
徴情報を求める場合、3ラインバッファla、lb、I
Cから列方向にm画素分ずつ並列に画像データが入力さ
れる。
The extraction means 2 inputs image data from the line buffer ylas
The characteristic information of maxi and minimum density D m1nl is obtained. This extraction means 2 has three line buffers la, lb, and I when obtaining characteristic information of a pixel in a region of (m×m) pixels as a local region including the pixel of interest.
Image data is inputted in parallel from C to m pixels in the column direction.

この抽出手段2で求められた最大濃度D■axlの特徴
情報21と最少濃度D m1niの特徴情報22とは、
減算器3に入力され、この減算器3によって最大濃度差
が求められる。
The characteristic information 21 of the maximum density Dxaxl and the characteristic information 22 of the minimum density Dm1ni obtained by this extraction means 2 are as follows.
The signal is input to a subtracter 3, and the maximum density difference is determined by the subtracter 3.

次に、減算器3から出力される最大濃度差信号31は、
判定手段(第1の判定手段)4に入力される。この判定
手段4は、抽出手段2にて抽出された注目画素を含む局
所領域の画像の種類(文字画像、写真画像等)を判定す
るもので、最大濃度差信号31を所定の閾値Thl、閾
値Th2と比較し、この比較結果に応じて、画像の種類
を判定した画像判定信号41を2bitで出力するもの
である。例えば、この判定手段4は、入力された最大濃
度差信号31が、閾値Thlより大きければ注目画素は
文字画像であると判定し、画像判定信号41として、文
字画像であることを示す“11”を出力する。また、最
大濃度差信号31が閾値Th2より小さい場合には、注
目画素は写真画像であると判定し、画像判定信号41と
して、写真画像であることを示す“00゛を出力する。
Next, the maximum concentration difference signal 31 output from the subtracter 3 is
It is input to the determining means (first determining means) 4. This determining means 4 determines the type of image (text image, photographic image, etc.) of the local area including the pixel of interest extracted by the extracting means 2, and sets the maximum density difference signal 31 to a predetermined threshold value Thl, a threshold value It compares it with Th2 and outputs a 2-bit image determination signal 41 that determines the type of image according to the comparison result. For example, the determining means 4 determines that the pixel of interest is a character image if the input maximum density difference signal 31 is greater than the threshold Thl, and outputs "11" as the image determination signal 41 indicating that the pixel is a character image. Output. Further, when the maximum density difference signal 31 is smaller than the threshold Th2, it is determined that the pixel of interest is a photographic image, and "00" indicating that it is a photographic image is output as the image determination signal 41.

さらに、最大濃度差信号31が、閾値Thlより小さく
かつ閾値Th2より大きい場合には、注目画素は中間画
像であると判定し、画像判定信号41として“01°を
出力するものである。
Furthermore, if the maximum density difference signal 31 is smaller than the threshold Thl and larger than the threshold Th2, it is determined that the pixel of interest is an intermediate image, and "01°" is output as the image determination signal 41.

一方、抽出手段5においては、抽出手段2とは異なるマ
トリックスサイズ(nxn (n<m)、例えば3X3
マトリツクス)にて、注目画素を含む領域の最大濃度D
■ax2と最小濃度D m1n2を算出し、最大濃度D
 tsax2の特徴情報51と最小濃度D■in2の特
徴情報52を出力するものである。この特徴情報51と
特徴情報52とは、減算器6に入力され、この減算器6
によって最大濃度差信号61が求められる。
On the other hand, the extraction means 5 has a matrix size different from that of the extraction means 2 (nxn (n<m), for example, 3x3
matrix), the maximum density D of the area containing the pixel of interest
■Calculate ax2 and minimum density D m1n2, and calculate maximum density D
The feature information 51 of tsax2 and the feature information 52 of minimum density Din2 are output. This feature information 51 and feature information 52 are input to a subtracter 6, and this subtracter 6
The maximum concentration difference signal 61 is determined by the following.

次に、この減算器6から出力される最大濃度差信号61
は、判定手段(第2の判定手段)7に入力される。この
判定手段7は、抽出手段5にて抽出された注目画素を含
む局所領域の画像の種類(文字画像、写真画像)を判定
するもので、最大濃度差信号61を所定の閾値Th3と
比較し、この比較結果に応じて、画像の種類を判定した
画像判定信号71を1bitで出力するものである。
Next, the maximum concentration difference signal 61 output from this subtracter 6
is input to the determination means (second determination means) 7. This determining means 7 determines the type of image (text image, photographic image) of the local area including the pixel of interest extracted by the extracting means 5, and compares the maximum density difference signal 61 with a predetermined threshold Th3. , and outputs a 1-bit image determination signal 71 in which the type of image is determined according to the comparison result.

例えば、この判定手段7は、入力された最大濃度差信号
61が、閾値Th3より大きければ注目画素は文字画像
であると判定し、画像判定信号71として“1゛を出力
する。また、最大濃度差信号61が閾値Th3より小さ
い場合には、注目画素は写真画像であると判定し、画像
判定信号71として“0”を出力する。
For example, if the input maximum density difference signal 61 is larger than the threshold Th3, the determining means 7 determines that the pixel of interest is a character image, and outputs "1" as the image determination signal 71. If the difference signal 61 is smaller than the threshold Th3, it is determined that the pixel of interest is a photographic image, and “0” is output as the image determination signal 71.

次に、判定手段4.7から出力された同一の注目画素の
画像判定信号41.71は、選択器(選択手段)8に入
力される。この選択器8においては、入力される画像判
定信号41又は画像判定信号71に対応して、二値化処
理する際に使用される閾値を選択するための閾値選択信
号81を出力するものである。例えば、判定手段4から
入力された画像判定信号41が“11° (文字画像)
の場合には、閾値選択信号81として、文字画像である
ことを示す“1“を出力し、画像判定信号41が“00
″ (写真画像)であるならば閾値選択信号81として
、写真画像であることを示す“0゛を出力する。また、
画像判定信号41が“01゛(中間画像)である場合に
は、判定手段7から入力された画像判定信号71をその
まま閾値選択信号81として出力するものである。
Next, the image determination signal 41.71 of the same pixel of interest output from the determination means 4.7 is input to the selector (selection means) 8. This selector 8 outputs a threshold selection signal 81 for selecting a threshold to be used in binarization processing, corresponding to the input image judgment signal 41 or image judgment signal 71. . For example, if the image determination signal 41 input from the determination means 4 is "11° (character image)"
In this case, “1” is output as the threshold selection signal 81 indicating that it is a character image, and the image determination signal 41 is “00”.
'' (photographic image), outputs "0" as the threshold selection signal 81, which indicates that it is a photographic image. Also,
When the image determination signal 41 is "01" (intermediate image), the image determination signal 71 inputted from the determination means 7 is output as is as the threshold selection signal 81.

そして、この選択器8から出力された閾値選択信号81
は、選択器12に入力される。この選択器12には、固
定閾値等の第1の閾値を記憶した第1の閾値発生手段(
メモリ)10とデイザ・マトリックス等の第2の閾値が
記憶された第2の閾値発生手段(メモリ)11とが接続
されており、閾値選択信号81が“1′つまり文字画像
である場合には、第1の閾値発生手段10に記憶されて
いる第1の閾値101を出力し、又、閾値選択信号8〕
が0“つまり写真画像である場合には、第2の閾値発生
手段]1に記憶されている第2の閾値111が二値化処
理するための閾値として選択的に出力するものである。
Then, a threshold selection signal 81 outputted from this selector 8
is input to the selector 12. This selector 12 includes a first threshold generating means (
(memory) 10 is connected to a second threshold generation means (memory) 11 in which a second threshold such as a dither matrix is stored, and when the threshold selection signal 81 is "1", that is, a character image, , outputs the first threshold value 101 stored in the first threshold value generation means 10, and also outputs the threshold value selection signal 8]
is 0", that is, when the image is a photographic image, the second threshold value 111 stored in the second threshold value generating means 1 is selectively outputted as a threshold value for binarization processing.

そして、この選択器12によって選択された閾値121
は、比較回路(二値化処理手段)に入力され、スキャナ
等て読取られた画像情報の二値化処理に利用される。
Then, the threshold value 121 selected by this selector 12
is input to a comparison circuit (binarization processing means) and used for the binarization processing of image information read by a scanner or the like.

このような構成を有することにより、ラインバッファ1
a〜ICから読出され、遅延手段9を介して所定のタイ
ミング分遅延して比較回路13に導かれる画像情報91
か、この比較回路13にて、選択器12によって選択さ
れた閾値121にて二値化処理が実行されるものである
By having such a configuration, the line buffer 1
Image information 91 read from a to IC, delayed by a predetermined timing via delay means 9, and guided to comparison circuit 13
Alternatively, the comparator circuit 13 executes the binarization process using the threshold value 121 selected by the selector 12.

次に、第1図に示した画像処理装置の一部の構成につい
てその概略を説明する。
Next, a partial configuration of the image processing apparatus shown in FIG. 1 will be briefly explained.

まず第1に、抽出手段2の概略構成について第2図を参
照しながら説明を行う。
First of all, the schematic structure of the extracting means 2 will be explained with reference to FIG. 2.

抽出手段2は上述した通り、ラインバッファ18〜IC
から読出される画像情報の処理対象画像中の注目画素に
対して、第3図に示すように、その注目画素(斜線で示
す画素)を含む(4X4)画素の領域内における最大濃
度値と最小濃度値とをそれぞれ求めるものであり、セレ
クタ5 ]、 a 。
As described above, the extraction means 2 includes the line buffer 18 to the IC
As shown in FIG. 3, for a pixel of interest in an image to be processed of the image information read out from The selectors 5 ], a selectors 5 and 5 are used to obtain density values, respectively.

6つの比較器51b〜51g並びにカウンタ51hとか
ら構成されているものである。
It is composed of six comparators 51b to 51g and a counter 51h.

しかしてこの抽出手段2においては、例えば第4図に示
す動作タイミングにて、ラインバッファ1a〜1cから
クロックCLKに同期して列方向に4画素単位で順次入
力される(8bit/画素)画像情報をセレクタ51a
を介して比較器51. b、51 c、51d、51.
eに順次分配するものである。尚、この列単位に入力さ
れる画像情報のセレクタ51Hによる比較器5 l b
、 51 c、 51 d、51eへの分配は、クロッ
クCLKを受けて動作する2bitカウンタ51hから
の選択信号5EO5SE】により動作制御して行なわれ
る。これらの比較器51b、51c、51d、51eは
、画像情報を4画素単位でそれぞれ列方向に比較し、そ
の列における最大濃度と最小濃度とをそれぞれ求めるも
のである。さらに、比較器51f、51gは、比較器5
1b、51c、51d、51eからの信号をEDG 1
のタイミングで入力し、列方向にそれぞれ求めた最大濃
度値と最小濃度値とを行方向に比較し、その中での最大
濃度値と最小濃度値をそれぞれ求めるものである。
However, in this extracting means 2, image information (8 bits/pixel) is sequentially input in units of 4 pixels in the column direction from the line buffers 1a to 1c in synchronization with the clock CLK at the operation timing shown in FIG. 4, for example. Selector 51a
via comparator 51. b, 51 c, 51d, 51.
It is to be distributed sequentially to e. Note that the comparator 5lb is operated by the selector 51H of the image information input in this column unit.
, 51c, 51d, and 51e is controlled by a selection signal 5EO5SE from a 2-bit counter 51h that operates in response to a clock CLK. These comparators 51b, 51c, 51d, and 51e compare image information in units of four pixels in the column direction, and determine the maximum density and minimum density in each column. Further, the comparators 51f and 51g are the comparators 5
1b, 51c, 51d, 51e to EDG 1
The maximum density value and the minimum density value are inputted at the timing of , and the maximum density value and minimum density value respectively determined in the column direction are compared in the row direction, and the maximum density value and minimum density value among them are respectively determined.

以上の処理により、第3図に示す(4X4)画素の領域
内における最大濃度値DIIlaxと最小濃度値D w
inがそれぞれ求められ、EDG2のタイミングで出力
されるものである。
Through the above processing, the maximum density value DIIlax and the minimum density value Dw in the (4×4) pixel area shown in FIG.
in is calculated respectively and output at the timing of EDG2.

このようにして抽出手段2にて抽出された最大濃度値D
IIlaxと最少濃度値D winは、減算器3に入力
されて、この減算器3によって、注目画素の第1の特徴
情報である最大濃度差 △Dmax  −Dmax  −Dminか求められる
ものである。
The maximum concentration value D extracted by the extraction means 2 in this way
IIlax and the minimum density value Dwin are input to the subtracter 3, and the subtracter 3 calculates the maximum density difference ΔDmax - Dmax - Dmin, which is the first characteristic information of the pixel of interest.

また抽出手段5に関しては、」二連した通り、注目画素
を含む局所領域として(3X3)画素の領域について、
その画素の特徴情報を求めること以外は、抽出手段2と
全く同じ作用を行うものであり、ラインバッファ1a〜
ICから入力される列方向の画素数が異なるだけで、基
本的には同じ構成を有している。そこで、(3X3)画
素の領域に関しても、上述したのと同様の処理が実行さ
れることにより、抽出手段5によって特徴量情報である
最大濃度差△D waxが算出される。
Regarding the extraction means 5, as mentioned above, for a (3×3) pixel region as a local region including the pixel of interest,
Except for obtaining the characteristic information of the pixel, it performs exactly the same operation as the extraction means 2, and the line buffers 1a to 1a.
They basically have the same configuration, except for the number of pixels input from the IC in the column direction. Therefore, the same processing as described above is executed for the (3×3) pixel area as well, so that the maximum density difference ΔD wax, which is the feature amount information, is calculated by the extracting means 5.

次に、第1及び第2の閾値メモリ10.11に記憶され
ている閾値について説明する。
Next, the thresholds stored in the first and second threshold memories 10.11 will be explained.

第1の閾値メモリ10に記憶されている文字画像の二値
化処理に用いられる第一の閾値は、固定閾値である定数
Cである。これに対し、写真画像を二値化処理するため
に用いられる第2の閾値は、例えば第5図に示すような
デイザパターン情報(デイザマトリックス)として与え
られているものである。このような閾値C(第1の閾値
)またはデイザパターンにより示される閾値(第2の閾
値)が、判定手段4.7並びに選択器8を介して判定さ
れた識別判定結果に基づいて、選択器12を介して選択
的に抽出され、文字画像又は写真画像に対応した二値化
処理が行なわれる。
The first threshold value used in the binarization process of the character image stored in the first threshold value memory 10 is a constant C that is a fixed threshold value. On the other hand, the second threshold used for binarizing a photographic image is given as dither pattern information (dither matrix) as shown in FIG. 5, for example. The threshold value C (first threshold value) or the threshold value (second threshold value) indicated by the dither pattern is selected based on the discrimination determination result determined via the determination means 4.7 and the selector 8. The images are selectively extracted via the device 12, and binarization processing corresponding to character images or photographic images is performed.

以上説明した通り、本発明の画像処理装置においては、
注目画素を含む第1の範囲内の画像情報から、抽出手段
2”にて(m X m)マトリックスでの最大濃度Di
axl、最少濃度D m1n2を算出する。
As explained above, in the image processing device of the present invention,
From the image information in the first range including the pixel of interest, the extraction means 2'' extracts the maximum density Di in the (m x m) matrix.
axl and the minimum concentration D m1n2 are calculated.

さらに、これらの濃度値から最大濃度差△Dmaxlを
算出し、判定手段4によって、この濃度差△DIIla
xlをある閾値Thl、Th2 (Thl>Th2)と
、下記に示すような比較を行う。
Furthermore, the maximum density difference ΔDmaxl is calculated from these density values, and the determination means 4 determines this density difference ΔDIIla.
xl is compared with certain threshold values Thl, Th2 (Thl>Th2) as shown below.

△Dmaxl> T h 1 ・・−−(1)Thl≧
△DrAaxl>Th 2・−−−−−(2)△D I
Iaxi≦T h 2−・−(3)すなわち、式(1)
で示すように、閾値Thlより最大濃度差△D aax
Lが大きいときは文字画像、又、式(3)で示すように
閾値Th2より最大濃度差が△DIIlaxが小さい場
合は写真画像とする。
△Dmaxl> T h 1 ・・− (1) Thl≧
△DrAaxl>Th 2・----(2) △D I
Iaxi≦T h 2−・−(3), that is, formula (1)
As shown, the maximum concentration difference △D aax is greater than the threshold Thl.
When L is large, the image is a text image, and when the maximum density difference ΔDIIlax is smaller than the threshold Th2, as shown in equation (3), the image is a photographic image.

さらに、式(2)で示すように最大濃度差△D11ax
1が閾値Thlより小さくて、閾値Th2より大きいと
きは中間画像と判定する。
Furthermore, as shown in equation (2), the maximum density difference ΔD11ax
When 1 is smaller than the threshold Thl and larger than the threshold Th2, it is determined that the image is an intermediate image.

そして、上記比較の結果、文字画像と判定された場合に
は、文字画像の解像性を保持するような二値化処理であ
る固定閾値Cで二値化を行う。又、上記比較の結果、写
真画像であると判定された場合には、写真画像としての
階調性を保持するようなデイザ処理を施すものである。
As a result of the above comparison, if it is determined that the image is a character image, binarization is performed using a fixed threshold C, which is a binarization process that maintains the resolution of the character image. Further, if it is determined that the image is a photographic image as a result of the above comparison, dither processing is performed to maintain the gradation as a photographic image.

そして、上記比較の結果、中間画像であると判定された
場合には、マトリックスサイズをnXn(m > n 
)に変更して、抽出手段5並びに減算器6によって算出
した濃度差D max2に対して、判定手段7にて閾値
Th3と比較して、文字画像又は写真画像であると判定
した判定結果によって処理される。すなわち、この判定
手段7では、下記(4)、(5)式に示す通り、濃度差
D tbax2が閾値Th3より大きければ文字画像と
判定し、閾値Th3より小さければ写真画像と判定する
As a result of the above comparison, if it is determined that the image is an intermediate image, the matrix size is set to nXn (m > n
), the density difference D max2 calculated by the extraction means 5 and the subtractor 6 is compared with the threshold Th3 by the determination means 7, and the processing is performed based on the determination result that it is determined to be a character image or a photographic image. be done. That is, as shown in equations (4) and (5) below, this determining means 7 determines that the image is a character image if the density difference D tbax2 is larger than the threshold Th3, and determines that it is a photographic image if it is smaller than the threshold Th3.

△DIIax2  >  Th’1−−(4)△D +
tax2  ≦ T h 3−・・−・(5)この比較
においては、写真画像の場合には、濃度変化が連続的に
変化しているため、所定範囲を小さくすると濃度差もそ
れに応じて小さくなるが、文字画像の場合には、濃度変
化が小さくても局所的なものであるため、所定範囲を変
更しても濃度差の相違は小さい。そのため、従来、文字
画像と写真画像の分離が困難だった領域においても、文
字画像と写真画像の分離が容品に行うことができ、文字
画像と写真画像の誤判定を減少させ、文字/写真混在原
稿の画質を向上させるものである。
△DIIax2 >Th'1--(4)△D +
tax2 ≦ T h 3-... (5) In this comparison, in the case of photographic images, the density changes continuously, so if the predetermined range is made smaller, the density difference will also become smaller accordingly. However, in the case of a character image, even if the change in density is small, it is local, so even if the predetermined range is changed, the difference in density is small. Therefore, even in areas where it has been difficult to separate text and photo images, text and photo images can be easily separated, reducing misjudgments between text and photo images, and This improves the image quality of mixed originals.

この結果、本発明の画像処理装置においては、文字画像
と写真画像とを正確に判定することができ、複数種類の
情報が存在する文書画像においても、文字画像について
は解像性を良く保ったままで二値化処理することができ
、また写真画像については階調性を保存して二値化する
ことができる。
As a result, the image processing device of the present invention can accurately determine text images and photographic images, and even in document images containing multiple types of information, the resolution of text images is maintained well. Furthermore, photographic images can be binarized while preserving their gradation.

尚、本発明の画像処理装置においては、上記実施例に限
定されるものではなく、例えば、判定手段にて判定され
る局所領域は、(4X4)並びに(3X 3)のマトリ
ックスサイズに限定されるものではなく、処理対象画像
に応じて可変設定するように装置を構成することができ
る。また、閾値に関しても、特に限定されるものではな
く、写真画像の二値化処理に用いられるデイザパターン
並びにデイザマトリックスの大きさも同様である。
Note that the image processing device of the present invention is not limited to the above embodiments, and for example, the local area determined by the determination means is limited to matrix sizes of (4×4) and (3×3). The device can be configured so that the settings can be made variably depending on the image to be processed. Furthermore, the threshold value is not particularly limited, and the same applies to the size of the dither pattern and dither matrix used in the binarization process of photographic images.

[発明の効果] 以上説明したように本発明の画像処理装置においては、
文字画像と写真画像とが混在するような領域に関して、
文字画像と写真画像との識別を確実に行い、文字画像に
対する解像性及び写真画像に対する階調性を同時に満足
させなから二値化処理を行い、高画質の画像を得ること
ができるものである。
[Effects of the Invention] As explained above, in the image processing device of the present invention,
Regarding areas where text images and photo images are mixed,
It is possible to obtain high-quality images by reliably distinguishing between text images and photographic images, and performing binarization processing while simultaneously satisfying resolution for text images and gradation for photographic images. be.

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

第1図は本発明の一実施例に係わる画像処理装置を示す
概念構成ブロック図、第2図は第1図に示した画像処理
装置の抽出手段の構成例を示す図、第3図は画像処理に
おける画像領域の概念を示す図、第4図は第1図に示す
画像処理装置の処理動作のタイミングを示す図、第5図
は写真画像を二値化処理するためのデイザ・パターンの
例を示す図である。
FIG. 1 is a conceptual configuration block diagram showing an image processing device according to an embodiment of the present invention, FIG. 2 is a diagram showing an example of the configuration of an extraction means of the image processing device shown in FIG. 1, and FIG. A diagram showing the concept of image areas in processing, FIG. 4 is a diagram showing the timing of processing operations of the image processing device shown in FIG. 1, and FIG. 5 is an example of a dither pattern for binarizing a photographic image. FIG.

Claims (2)

【特許請求の範囲】[Claims] (1)文字画像及び写真画像を有する画像情報における
注目画素を含む第1の範囲内の画像情報から前記注目画
素の画像としての第1の特徴情報を抽出する第1の抽出
手段と、 この第1の抽出手段にて抽出された第1の特徴情報に対
し第1の閾値を用いて、前記注目画素が構成する画像の
種別を行う第1の判定手段と、前記注目画素を含む前記
第1の範囲とは異なる第2の範囲内の画像情報から前記
注目画素の画像としての第2の特徴情報を抽出する第2
の抽出手段と、 この第2の抽出手段にて抽出された第2の特徴情報に対
し第2の閾値を用いて、前記第1の判定手段にて文字画
像及び写真画像以外の画像と判定されたものに対して、
前記注目画素が構成する画像の種別を判定する第2の判
定手段と、 を具備したことを特徴とする画像処理装置。
(1) A first extraction means for extracting first feature information as an image of the pixel of interest from image information in a first range including the pixel of interest in image information having a character image and a photographic image; a first determining means for determining the type of image constituted by the pixel of interest using a first threshold value for the first feature information extracted by the first extracting means; A second step of extracting second characteristic information as an image of the pixel of interest from image information within a second range different from the range of
and a second threshold value for the second characteristic information extracted by the second extraction means, which is determined by the first determination means to be an image other than a character image or a photographic image. For those who
An image processing device comprising: second determining means for determining the type of image constituted by the pixel of interest.
(2)文字画像と写真画像とが混在する処理対象画像に
おける注目画素を含む第1の範囲内の画像情報から前記
注目画素の画像としての第1の特徴情報を抽出する第1
の抽出手段と、 この第1の抽出手段にて抽出された第1の特徴情報を第
1の閾値を用いて、前記注目画素が構成する画像を文字
画像、写真画像又は中間画像のいずれかに判別して第1
の判別信号を出力する第1の判定手段と、 前記注目画素を含む前記第1の範囲とは異なる第2の範
囲内の画像情報から前記注目画素の画像としての第2の
特徴情報を抽出する第2の抽出手段と、 この第2の抽出手段にて抽出された第2の特徴情報を第
2の閾値を用いて、前記注目画素が構成する画像を文字
画像又は写真画像のいずれかに判別して第2の判別信号
を出力する第2の判定手段と、 前記第1の判定手段にて文字画像又は写真画像であると
判定されものに対しては第1の判別信号を選択し、前記
第1の判定手段にて中間画像と判別されたものに対して
は前記第2の判定手段で判定された第2の判別信号を選
択する選択手段と、この選択手段にて選択された判別信
号に基づいて、処理対象画像に対して文字画像及び写真
画像各々に対応した二値化処理を施す処理手段と、を具
備したことを特徴とする画像処理装置。
(2) A first step for extracting first feature information as an image of the pixel of interest from image information within a first range including the pixel of interest in an image to be processed in which a character image and a photographic image are mixed.
extracting means, and converting the image constituted by the pixel of interest into a character image, a photographic image, or an intermediate image by using the first feature information extracted by the first extracting means and a first threshold value. Distinguish first
a first determination unit that outputs a discrimination signal; and extracting second feature information as an image of the pixel of interest from image information within a second range that is different from the first range that includes the pixel of interest. and a second extraction means, which uses the second feature information extracted by the second extraction means and a second threshold value to determine whether the image constituted by the pixel of interest is either a character image or a photographic image. a second determining means for outputting a second determining signal; and a second determining means for selecting a first determining signal for an image determined by the first determining means to be a character image or a photographic image; a selection means for selecting a second discrimination signal determined by the second determination means for an intermediate image determined by the first determination means; and a determination signal selected by the selection means. 1. An image processing apparatus comprising: processing means for performing binarization processing corresponding to each of a character image and a photographic image on an image to be processed based on the above.
JP2316098A 1990-11-22 1990-11-22 Picture processor Pending JPH04189069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2316098A JPH04189069A (en) 1990-11-22 1990-11-22 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2316098A JPH04189069A (en) 1990-11-22 1990-11-22 Picture processor

Publications (1)

Publication Number Publication Date
JPH04189069A true JPH04189069A (en) 1992-07-07

Family

ID=18073219

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2316098A Pending JPH04189069A (en) 1990-11-22 1990-11-22 Picture processor

Country Status (1)

Country Link
JP (1) JPH04189069A (en)

Similar Documents

Publication Publication Date Title
US4893188A (en) Document image entry system
JPH02100575A (en) Picture processor
JPH02253765A (en) Picture processor
EP0685959B1 (en) Image processing apparatus for identifying character, photo and dot images in the image area
US5701364A (en) Image processing apparatus
JPH0725064A (en) Picture forming equipment of electrophotographic printer
US4996602A (en) Image-processing apparatus
JPH1070654A (en) Image processor
JPH0122665B2 (en)
JPS61225974A (en) Picture processing system
JP2874592B2 (en) Image processing device for distinguishing text / photo / dot area
JPH0818785A (en) Image output device
EP0385421A2 (en) Image processing apparatus
JPH04189069A (en) Picture processor
JPS6359272A (en) Picture processor
JPH05292312A (en) Dot area separator
JPH05284358A (en) Picture processing unit
JPH0326065A (en) Picture processing unit
JPH01243668A (en) Picture processing device
JPH0554190A (en) Picture processor
JPH0795400A (en) Picture processing unit
JPS63182972A (en) Binarization processor
JPH01292477A (en) Image processor
JPH1166297A (en) Image processor and its method
JPH01276971A (en) Picture processor