JP3453939B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3453939B2
JP3453939B2 JP19780295A JP19780295A JP3453939B2 JP 3453939 B2 JP3453939 B2 JP 3453939B2 JP 19780295 A JP19780295 A JP 19780295A JP 19780295 A JP19780295 A JP 19780295A JP 3453939 B2 JP3453939 B2 JP 3453939B2
Authority
JP
Japan
Prior art keywords
pixel
pixels
isolated
value
classification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP19780295A
Other languages
Japanese (ja)
Other versions
JPH0951438A (en
Inventor
弘 関根
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
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP19780295A priority Critical patent/JP3453939B2/en
Publication of JPH0951438A publication Critical patent/JPH0951438A/en
Application granted granted Critical
Publication of JP3453939B2 publication Critical patent/JP3453939B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、誤差拡散法等に
よる疑似中間調画像領域を判別することができる画像処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus capable of discriminating a pseudo halftone image area by an error diffusion method or the like.

【0002】[0002]

【従来の技術】ファクシミリ装置やプリンタ装置等に入
力される二値画像データとしては、「文字画像」、「デ
ィザ法による中間調画像」、「誤差拡散法による中間調
画像」など、種々の二値化手法に基づくデータがある。
これら属性の異なるデータが同一ページ内に混在する二
値画像の種別を領域毎あるいは画素毎に判別し、判別さ
れた画像の種別に応じて解像度変換の方式や階調数変換
の方式を適応的に切り替える手法が従来より知られてい
る。
2. Description of the Related Art Binary image data input to a facsimile device, a printer device, or the like includes various types of binary image data such as "character image", "halftone image by dither method", and "halftone image by error diffusion method". There is data based on the valuation method.
The type of binary image in which data with different attributes are mixed in the same page is determined for each region or pixel, and the resolution conversion method and the gradation number conversion method are adaptively applied according to the determined image type. The method of switching to is conventionally known.

【0003】例えば、特開平2−9268号において
は、ファクシミリ装置によって受信した二値画像を一定
ブロック単位のパターンの周期性や一定ブロック内の黒
画素数を測定し、隣接するブロック間の黒画素数の差分
等に基づき画素毎に「文字領域」、「ディザ領域」、
「誤差拡散領域」および「未決定領域」の4領域に分類
し、この分類結果に応じて解像度変換のための補間方式
を切り替える手法が提案されている。
For example, in Japanese Unexamined Patent Publication No. 2-9268, the periodicity of a pattern in a fixed block unit and the number of black pixels in a fixed block of a binary image received by a facsimile apparatus are measured, and black pixels between adjacent blocks are measured. “Character area”, “Dither area”,
There has been proposed a method of classifying into four areas of an “error diffusion area” and an “undetermined area”, and switching an interpolation method for resolution conversion according to the classification result.

【0004】また、特開平4−361475号において
は、入力された二値画像を画素の連結性および周期性を
用いて、「文字領域」と「文字以外の領域」とを判別
し、この判別結果に応じて二値画像の多値復元方式を選
択する手法が提案されている。
Further, in Japanese Patent Laid-Open No. 4-361475, an input binary image is discriminated into a "character region" and a "region other than a character" by using the connectivity and periodicity of pixels, and this discrimination is performed. There has been proposed a method of selecting a multi-value restoration method for binary images according to the result.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記公
報に例示される従来の手法において、入力された二値画
像から「ディザ領域」を判別する場合、ディザマトリク
スサイズと同等以上の大きさの2次元パターンマッチン
グを行う必要がある。例えば図3に示すように、主走査
方向に4画素、副走査方向に4画素の17階調の周期を
持つディザ画像であれば、4×4画素の二次元パターン
マッチングが必要になる。図3において右上のブロック
をA、左上のブロックをBとすると、2次元パターンマ
ッチングでは、図4に示すようにブロックAとブロック
Bとを比較し、Cによって模式的に示される比較結果を
得る。この比較結果Cでは、「白」で示した部分がブロ
ックA,B間で一致した画素を示しており、「黒」で示
した部分がブロックA,B間で不一致となった画素を示
している。この場合、15画素が一致していることにな
り、この一致した画素数が予め設定された閾値より大き
い場合に「ディザ領域」と判定される。こうした二次元
パターンマッチングでは、より大きな階調数のディザマ
トリクスを使って二値化した疑似中間調画像を処理する
場合、それに伴ってマッチングのサイズも大きくなって
しまう。例えば、主走査方向に8画素、副走査方向に8
画素の65階調の周期を持つディザ画像であれば、8×
8画素のパターンマッチングが必要になり、主走査方向
に16画素、副走査方向に16画素の257階調の周期
を持つディザ画像であれば、16×16画素のパターン
マッチングが必要になる。このように、従来の二次元パ
ターンマッチングを用いた判別法では、ディザの階調数
の増加に伴って画像処理の規模が増大するため、ソフト
ウェアで処理する場合には処理速度が遅くなり、ハード
ウェアで処理する場合にはハードウェアの回路規模が大
きくなるという問題があった。
However, in the conventional method exemplified in the above publication, when the "dither area" is discriminated from the input binary image, the two-dimensional size equal to or larger than the dither matrix size is used. It is necessary to perform pattern matching. For example, as shown in FIG. 3, in the case of a dither image having a period of 17 gradations of 4 pixels in the main scanning direction and 4 pixels in the sub scanning direction, two-dimensional pattern matching of 4 × 4 pixels is required. In FIG. 3, assuming that the upper right block is A and the upper left block is B, in the two-dimensional pattern matching, the block A and the block B are compared as shown in FIG. 4, and a comparison result schematically shown by C is obtained. . In the comparison result C, the portion indicated by “white” indicates the pixels that match between the blocks A and B, and the portion indicated by “black” indicates the pixels that do not match between the blocks A and B. There is. In this case, 15 pixels match each other, and if the number of matched pixels is larger than a preset threshold value, it is determined to be a “dither area”. In such a two-dimensional pattern matching, when a binarized pseudo halftone image is processed using a dither matrix having a larger number of gradations, the matching size also increases accordingly. For example, 8 pixels in the main scanning direction and 8 pixels in the sub scanning direction.
If the dither image has a cycle of 65 gradations of pixels, 8 ×
Pattern matching of 8 pixels is required, and for a dither image having a cycle of 257 gradations of 16 pixels in the main scanning direction and 16 pixels in the sub scanning direction, pattern matching of 16 × 16 pixels is required. As described above, in the discrimination method using the conventional two-dimensional pattern matching, the scale of image processing increases with an increase in the number of gradations of dither. In the case of processing by hardware, there is a problem that the circuit scale of hardware becomes large.

【0006】また、「誤差拡散領域」を判別する従来の
手法では、一定の領域内の「黒」、「白」の反転回数や
連続性を用いているが、図5に示すように、画像のハイ
ライト部(すなわち、明度の高い部分)においては、
「誤差拡散領域」(同図(a))と「ディザ領域」(同
図(b))の間で「黒」、「白」の反転回数や連続性に
差が無くなってしまうため、両者を確実に区別するに
は、結局、上記の二次元パターンマッチング等を用いた
「ディザ領域」の判別に頼らざるを得なくなる。
Further, in the conventional method for discriminating the "error diffusion area", the number of inversions and continuity of "black" and "white" within a certain area is used. However, as shown in FIG. In the highlight part of (that is, the part with high brightness),
Since there is no difference in the number of inversions and continuity of “black” and “white” between the “error diffusion area” (FIG. (A)) and the “dither area” (FIG. (B)), both In order to make a reliable distinction, it is ultimately necessary to rely on the discrimination of the “dither area” using the above-mentioned two-dimensional pattern matching or the like.

【0007】さらに、ファクシミリ装置においては、送
信側のファクシミリ装置が採用する二値化方式を受信側
のファクシミリ装置で知ることは通常不可能である。し
たがって、受信画像に対して「文字領域」、「ディザ領
域」、「誤差拡散領域」等の領域判別を行い、各々の領
域特性に適した画像処理を行う場合、考えられるすべて
のディザパターンに対応した二次元パターンを用意しマ
ッチングを行う必要がある。しかし、すべてのディザパ
ターンに対応した二次元パターンマッチングを行うこと
は、記憶容量、処理能力等の制約から現実的ではない。
逆に、一定のディザパターンに限定して判別を行った場
合には、正確な判別ができず、性能的な問題が生じてし
まう。
Further, in the facsimile machine, it is usually impossible for the facsimile machine on the reception side to know the binarization method adopted by the facsimile machine on the transmission side. Therefore, if the received image is discriminated such as "character region", "dither region", "error diffusion region", etc., and image processing suitable for each region characteristic is performed, it corresponds to all possible dither patterns. It is necessary to prepare the two-dimensional pattern and perform matching. However, it is not realistic to perform two-dimensional pattern matching corresponding to all dither patterns due to restrictions such as storage capacity and processing capacity.
On the contrary, if the determination is made only for a certain dither pattern, the accurate determination cannot be performed and a performance problem occurs.

【0008】この発明は、このような背景の下になされ
たもので、小さい処理規模で、かつ高精度に、入力二値
画像から誤差拡散法等による周期性のない疑似中間調領
域を判別することができる画像処理装置を提供すること
を目的としている。
The present invention has been made under such a background, and a pseudo halftone region having no periodicity is discriminated from an input binary image with a small processing scale and with high accuracy by an error diffusion method or the like. An object of the present invention is to provide an image processing device capable of performing the above.

【0009】[0009]

【課題を解決するための手段】上述した課題を解決する
ために、請求項1記載の発明は、二値で表される入力画
像から同じ値の画素が隣接しない孤立画素を検出する孤
立画素検出手段と、前記孤立画素検出手段によって検出
された孤立画素の位置から前記入力画像内で周期的な距
離に位置する画素の値と当該孤立画素の値とが一致する
か否かを各々判定する画素値判定手段と、前記画素値判
定手段によって画素の値が一致すると判定された頻度に
基づき、前記孤立画素検出手段の検出結果を補正する補
正手段と、前記孤立画素検出手段によって検出された孤
立画素を含む前記入力画像内の所定領域を設定する領域
設定手段と、前記領域設定手段によって設定された領域
内で、前記孤立画素検出手段によって検出された孤立画
素の数を累計する第1の累計手段と、前記領域設定手段
によって設定された領域内で、前記補正手段によって補
正された後の孤立画素の数を累計する第2の累計手段
と、前記第1および第2の累計手段の累計結果に基づ
き、前記入力画像を構成する画素を分類する分類手段と
を具備することを特徴としている。
In order to solve the above-mentioned problems, the invention according to claim 1 detects an isolated pixel in which pixels of the same value are not adjacent to each other from an input image represented by a binary value. And a pixel for determining whether or not the value of a pixel located at a periodic distance in the input image from the position of the isolated pixel detected by the isolated pixel detection means and the value of the isolated pixel match. A value determining means, a correcting means for correcting the detection result of the isolated pixel detecting means based on the frequency with which the pixel value determining means determines that the pixel values match, and an isolated pixel detected by the isolated pixel detecting means. Area setting means for setting a predetermined area in the input image, and the total number of isolated pixels detected by the isolated pixel detection means in the area set by the area setting means. 1 accumulating means, a second accumulating means for accumulating the number of isolated pixels after being corrected by the correcting means in the area set by the area setting means, and the first and second accumulating means. Classification means for classifying the pixels forming the input image on the basis of the cumulative result of 1.

【0010】また、請求項2記載の発明は、請求項1記
載の発明において、前記分類手段によって同じ分類とさ
れた画素が連続する画素数を認識する連続画素数認識手
段と、前記連続画素数認識手段によって認識された連続
画素数に基づき、隣接する画素列と比較して連続画素数
が小さい画素の分類を該隣接する画素列と同じ分類に変
更する分類修正手段とを具備することを特徴としてい
る。
According to a second aspect of the present invention, in the first aspect of the present invention, the continuous pixel number recognizing means for recognizing the number of consecutive pixels having the same classification by the classification means, and the continuous pixel number. Classification correction means for changing the classification of pixels having a smaller number of continuous pixels than the adjacent pixel row to the same classification as the adjacent pixel row based on the number of continuous pixels recognized by the recognition means. I am trying.

【0011】(作用)請求項1記載の発明によれば、入
力二値画像から孤立画素を検出することによって、文字
領域を除外し、さらに検出した孤立点についてのみ周期
性判定を行うことによりディザ法等による周期性のある
疑似中間調領域を除外し、誤差拡散法等による周期性の
ない疑似中間調領域のみを抽出することができる。これ
により、処理規模の増大を招く二次元パターンマッチン
グ等を行うことなく、高精度に、誤差拡散法等による周
期性のない疑似中間調領域を判別することが可能とな
る。
(Operation) According to the first aspect of the present invention, the isolated pixel is detected from the input binary image to exclude the character region, and the periodicity judgment is performed only on the detected isolated point to dither. It is possible to exclude a pseudo-halftone region having periodicity by the method or the like and extract only a pseudo-halftone region having no periodicity by the error diffusion method or the like. As a result, it is possible to highly accurately determine a pseudo halftone region having no periodicity by the error diffusion method or the like without performing two-dimensional pattern matching or the like that causes an increase in processing scale.

【0012】また、請求項2記載の発明によれば、請求
項1記載の発明による作用に加え、誤検出を解消でき、
より一層判別精度が向上する。
According to the invention described in claim 2, in addition to the effect of the invention described in claim 1, erroneous detection can be eliminated,
The discrimination accuracy is further improved.

【0013】[0013]

【発明の実施の形態】以下、図面を参照して、この発明
の実施形態について説明する。 A:実施形態の構成 図1はこの発明の一実施形態による画像処理装置の構成
を示すブロック図である。この図において、101は孤
立画素検出部であり、外部より入力される二値画像(以
下、入力二値画像という)から孤立画素を検出し、その
検出結果を出力する。ここで、孤立画素とは、その画素
と同じ値となる隣接画素が存在しない画素をいい、値
「0」の画素と上下左右に隣接する画素がすべて値
「1」となる場合と、値「1」の画素と上下左右に隣接
する画素がすべて値「0」となる場合とがある。
DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. A: Configuration of Embodiment FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention. In this figure, reference numeral 101 denotes an isolated pixel detection unit that detects an isolated pixel from a binary image (hereinafter referred to as an input binary image) input from the outside and outputs the detection result. Here, the isolated pixel means a pixel in which no adjacent pixel having the same value as that pixel exists, and a pixel having a value “0” and pixels vertically and horizontally adjacent to each other have a value “1” and a value “ There is a case in which all the pixels adjacent to the pixel “1” in the vertical and horizontal directions become the value “0”.

【0014】102は孤立画素補正部であり、入力二値
画像と孤立画素検出部101の検出結果とを取り込み、
該孤立画素検出部101の検出結果を補正する。すなわ
ち、孤立画素補正部102は、孤立画素検出部101に
よって検出された孤立画素から入力画像内で周期的な距
離に位置する画素の値と当該孤立画素の値とを比較し、
両者が同じ値となる場合にはその孤立画素を孤立画素で
ないものとして孤立画素検出部101の検出結果を修正
する。
Reference numeral 102 denotes an isolated pixel correction unit which takes in the input binary image and the detection result of the isolated pixel detection unit 101,
The detection result of the isolated pixel detection unit 101 is corrected. That is, the isolated pixel correction unit 102 compares the value of a pixel located at a periodic distance in the input image from the isolated pixel detected by the isolated pixel detection unit 101 with the value of the isolated pixel,
When both have the same value, the detection result of the isolated pixel detection unit 101 is corrected assuming that the isolated pixel is not an isolated pixel.

【0015】103,104は、ともに孤立画素累計部
である。孤立画素累計部103は、孤立画素検出部10
1から出力される孤立画素の検出個数をカウントし、所
定の画像領域についての累計結果を出力する。一方、孤
立画素累計部104は、孤立画素補正部102から出力
される補正後の孤立画素の検出個数をカウントし、上記
と同じ画像領域についての累計結果を出力する。
Both 103 and 104 are isolated pixel accumulators. The isolated pixel accumulator 103 includes an isolated pixel detector 10
The detected number of isolated pixels output from 1 is counted, and the cumulative result for a predetermined image area is output. On the other hand, the isolated pixel accumulating unit 104 counts the number of detected isolated pixels after correction output from the isolated pixel correcting unit 102, and outputs the accumulated result for the same image area as described above.

【0016】105は疑似中間調判定部であり、孤立画
素累計部103,104から供給される累計結果に基づ
き、入力二値画像の各画素毎に当該画素が誤差拡散法に
よる疑似中間調画像領域(以下、誤差拡散領域と略す)
に属する画素であるか否かを判定する。
Reference numeral 105 denotes a pseudo-halftone image determination section which, based on the cumulative results supplied from the isolated pixel cumulative sections 103 and 104, determines the pixel for each pixel of the input binary image by the error diffusion method. (Hereafter, abbreviated as error diffusion area)
It is determined whether or not the pixel belongs to.

【0017】106は主走査方向修正部であり、疑似中
間調判定部105によって同じ分類(すなわち、誤差拡
散領域に属するか否かの分類)と判定された画素が主走
査方向に連続する画素数を認識し、連続する画素数が一
定値以下の場合には疑似中間調判定部105の判定結果
を修正する。
Reference numeral 106 denotes a main scanning direction correction unit, which is the number of pixels in which pixels determined by the pseudo-halftone determination unit 105 to be in the same classification (that is, whether they belong to the error diffusion area) are continuous in the main scanning direction. When the number of consecutive pixels is less than a certain value, the determination result of the pseudo halftone determination unit 105 is corrected.

【0018】107は副走査方向修正部であり、疑似中
間調判定部105によって同じ分類と判定された画素が
副走査方向に連続する画素数を認識し、連続する画素数
が一定値以下の場合には上記主走査方向修正部106に
よって修正された後の疑似中間調判定部105の判定結
果をさらに修正する。
Reference numeral 107 denotes a sub-scanning direction correction unit which recognizes the number of consecutive pixels in the sub-scanning direction which are determined by the pseudo-halftone determining unit 105 to be the same classification, and when the number of consecutive pixels is less than a certain value. In addition, the determination result of the pseudo halftone determination unit 105 after being corrected by the main scanning direction correction unit 106 is further corrected.

【0019】B:実施形態の動作 次に、図2を参照し、上記構成からなる画像処理装置の
動作を説明する。なお、図2は、図1に示した各部の処
理内容を模式化して示した図である。
B: Operation of Embodiment Next, the operation of the image processing apparatus having the above configuration will be described with reference to FIG. Note that FIG. 2 is a diagram schematically showing the processing content of each unit shown in FIG.

【0020】図2に示すように、孤立画素検出部101
は、現在処理の対象となっている画素(以下、注目画素
という)が「黒(すなわち「1」)」で、かつ該注目画
素の上下左右にある4画素(すなわち、隣接画素)がす
べて「白(すなわち「0」)」である場合、または、注
目画素が「白」で、かつ該注目画素の隣接画素がすべて
「黒」である場合、当該注目画素が孤立画素であること
を示す値「1」を出力する。一方、孤立画素検出部10
1は、注目画素が上記のいずれにも該当しない場合、当
該注目画素が孤立画素でないことを示す値「0」を出力
する。
As shown in FIG. 2, the isolated pixel detection unit 101
Indicates that the pixel currently being processed (hereinafter referred to as the target pixel) is “black (that is,“ 1 ”)”, and all the four pixels (that is, adjacent pixels) above, below, left and right of the target pixel are “black”. A value indicating that the target pixel is an isolated pixel when it is white (that is, “0”), or when the target pixel is “white” and all the pixels adjacent to the target pixel are “black” Outputs "1". On the other hand, the isolated pixel detection unit 10
When the target pixel does not correspond to any of the above, 1 outputs a value “0” indicating that the target pixel is not an isolated pixel.

【0021】次に、孤立画素補正部102は、孤立画素
検出部101の出力が「1」となる画素、すなわち孤立
画素である注目画素に対し、入力画像内で注目画素から
主走査方向に周期的な距離に位置する画素の値と注目画
素の値が等しいか否かを判定し、値が等しくなった場合
の頻度を計数する。例えば、周期Tを5画素とすると、
孤立画素検出部101で検出された孤立画素の前後5画
素目、10画素目、15画素目の合計6画素のうち、孤
立画素の値と同じ画素値となる画素の個数を計数する。
こうした周期性の判定を4画素、6画素、8画素、12
画素および16画素の5種類の周期Tについて行い、上
記周期の中で最も値が大きくなった計数結果が閾値以上
である場合(例えば、4画素以上一致した場合)、注目
画素が孤立画素であるという判定結果をキャンセルし、
孤立画素検出部101の出力を「1」から「0」に変更
する。
Next, the isolated pixel correction unit 102 makes a cycle in the main scanning direction from the pixel of interest in the input image with respect to the pixel for which the output of the isolated pixel detection unit 101 is "1", that is, the pixel of interest that is an isolated pixel. It is determined whether the value of the pixel located at a specific distance is equal to the value of the pixel of interest, and the frequency when the values are equal is counted. For example, if the period T is 5 pixels,
The number of pixels having the same pixel value as the isolated pixel value out of the total 6 pixels of the fifth pixel, the 10th pixel, and the 15th pixel before and after the isolated pixel detected by the isolated pixel detection unit 101 is counted.
The determination of such periodicity is performed with 4 pixels, 6 pixels, 8 pixels, 12 pixels.
This is performed for five types of periods T of pixels and 16 pixels, and when the count result having the largest value in the period is equal to or greater than the threshold value (for example, when four or more pixels match), the pixel of interest is an isolated pixel. Cancel the judgment result that
The output of the isolated pixel detection unit 101 is changed from "1" to "0".

【0022】そして、孤立画素検出部101の出力は孤
立画素累計部103に供給され、孤立画素補正部102
の出力は孤立画素累計部104に供給される。孤立画素
累計部103,104は、それぞれ注目画素の周囲に設
定した一定領域に含まれる孤立画素数、すなわち値
「1」が供給される回数を計数する。
The output of the isolated pixel detection unit 101 is supplied to the isolated pixel accumulation unit 103, and the isolated pixel correction unit 102 is supplied.
Is supplied to the isolated pixel accumulator 104. The isolated pixel accumulating units 103 and 104 respectively count the number of isolated pixels included in a fixed area set around the pixel of interest, that is, the number of times the value “1” is supplied.

【0023】次に、疑似中間調判定部105は、孤立画
素累計部103,104の出力値に基づき、注目画素が
誤差拡散領域に属する画素であるか否かを判定する。例
えば、孤立画素累計部103の出力値をV1、孤立画素
累計部104の出力値をV2とすると、V1の値が所定
の閾値TH以上の場合、注目画素は「誤差拡散領域であ
る」と判定し、そうでない場合でもV2の値が「1」以
上の場合、注目画素は「誤差拡散領域である」と判定す
る。一方、上記のいずれにも該当しない場合、注目画素
は「誤差拡散領域でない」と判定する。そして、「誤差
拡散領域である」と判定した場合には値「1」を出力
し、そうでない場合には値「0」を出力する。
Next, the pseudo-halftone judging section 105 judges whether or not the pixel of interest belongs to the error diffusion area based on the output values of the isolated pixel accumulating sections 103 and 104. For example, if the output value of the isolated pixel accumulating unit 103 is V1 and the output value of the isolated pixel accumulating unit 104 is V2, and if the value of V1 is equal to or greater than a predetermined threshold value TH, the pixel of interest is determined to be “error diffusion area”. However, even if not, if the value of V2 is “1” or more, the pixel of interest is determined to be “the error diffusion area”. On the other hand, if none of the above applies, the pixel of interest is determined to be “not in the error diffusion area”. Then, if it is determined that the area is the error diffusion area, the value "1" is output, and if not, the value "0" is output.

【0024】次に、主走査方向修正部106は、疑似中
間調判定部105で同じ分類と判定された画素が主走査
方向に連続する画素数を認識し、その連続数が一定値以
下である場合(すなわち、後述するアルゴリズムの条件
を満たす場合)、疑似中間調判定部105の判定結果を
補正する。すなわち、主走査方向に設定した一次元のウ
ィンドウ内において「1」または「0」の連続する画素
数を計数し、例えば「……1111111111100
01111111111……」のように、左側の「1」
の連続数が「11」、中央の「0」の連続数が「3」、
右側の「1」の連続数が「10」となった場合、中央の
「0」の連続画素を左右の画素値に合わせるべく「1」
に置き換える。また、例えば「……000000000
001110000000000……」のように、
「1」と「0」が逆転している場合も同様に、中央の
「1」を「0」に置き換える。
Next, the main scanning direction correction unit 106 recognizes the number of pixels in the main scanning direction in which the pixels determined to be in the same classification by the pseudo-halftone determination unit 105 are continuous, and the continuous number is less than a certain value. In this case (that is, when the condition of the algorithm described later is satisfied), the determination result of the pseudo halftone determination unit 105 is corrected. That is, the number of consecutive pixels of "1" or "0" is counted in the one-dimensional window set in the main scanning direction, and for example, "... 1111111111100"
“1” on the left side, such as “01111111111 ……”
Is "11", the number of consecutive "0" s is "3",
When the number of consecutive "1" s on the right side becomes "10", "1" is set to match the consecutive pixels of "0" in the center with the pixel values on the left and right.
Replace with. In addition, for example, "... 0000000000
001110000000000000 ... ”,
Similarly, when "1" and "0" are reversed, the central "1" is replaced with "0".

【0025】これは、「誤差拡散領域」がその性質上あ
る程度の広がりを持った領域であることから、通常、少
ない連続数の「誤差拡散領域」が点在したり、または
「誤差拡散領域」の中に異種領域が点在することは無い
と考えられる。そこで、上記のような補正を行ってい
る。
This is because the "error diffusion area" is an area having a certain extent of spread due to its nature, and therefore, usually a small number of "error diffusion areas" are scattered or the "error diffusion area". It is considered that different regions are not scattered in the area. Therefore, the above correction is performed.

【0026】また、上記補正の対象となる画素を判定す
る場合、例えば以下のアルゴリズムに従う。すなわち、
ある分類と判定された画素が連続する画素数をRLCと
し、これらの画素の左側にある他の分類と判定された画
素が連続する画素数をRLL、右側にある他の分類と判
定された画素が連続する画素数をRLR、補正の対象と
なる最大画素数をRLmaxとした場合、 RLmax>RLC かつ RLL>RLC かつ RLR
>RLC を満たすことを条件として、上記中央の画素(または連
続画素)を補正する。
Further, when determining the pixel to be corrected, the following algorithm is used, for example. That is,
The number of consecutive pixels determined to be a certain classification is RLC, the number of consecutive pixels to the left of these pixels determined to be another classification is RLL, and the number of pixels to the right is a pixel determined to be another classification When the number of consecutive pixels is RLR and the maximum number of pixels to be corrected is RLmax, RLmax> RLC and RLL> RLC and RLR
The central pixel (or continuous pixel) is corrected on condition that> RLC is satisfied.

【0027】次に、副走査方向修正部107は、副走査
方向に設定した一次元のウィンドウについて、上記主走
査方向修正部106と同様の処理を行う。こうして、疑
似中間調判定部105の判定結果が主走査方向と副走査
方向について補正され、最終的に副走査方向修正部10
7の出力が「1」となる画素が「誤差拡散領域」に属す
る画素と判定される。
Next, the sub-scanning direction correction unit 107 performs the same processing as the main scanning direction correction unit 106 on the one-dimensional window set in the sub-scanning direction. In this way, the determination result of the pseudo halftone determination unit 105 is corrected in the main scanning direction and the sub scanning direction, and finally the sub scanning direction correction unit 10
Pixels for which the output of 7 is “1” are determined to belong to the “error diffusion area”.

【0028】このようにして得られる判定結果に基づ
き、図示しない後段の処理においては、例えば領域の特
性に対応した解像度変換の切り替えや階調変換方式の切
り替えを行うことが可能になる。
Based on the determination result thus obtained, it is possible to perform resolution conversion switching and gradation conversion method switching corresponding to, for example, the characteristics of the region in the subsequent processing (not shown).

【0029】C:変更例 なお、この発明は、既述した実施形態には限定されず、
例えば以下のような変更が可能である。 (1)孤立画素補正部102にて設定される周期Tは、
上記5種類には限定されず、他の周期を採用してもよ
い。要は、入力二値画像に存在すると予想されるすべて
のディザ周期について行うことが望ましい。
C: Modification Note that the present invention is not limited to the above-described embodiment,
For example, the following changes are possible. (1) The period T set by the isolated pixel correction unit 102 is
It is not limited to the above five types, and other cycles may be adopted. In short, it is desirable to do this for every dither period that is expected to be present in the input binary image.

【0030】(2)疑似中間調判定部105にて設定さ
れる閾値THの値は、孤立画素累計部103,104で
設定される注目画素周囲の領域の大きさによって異なる
が、図6に示すように7×7画素の場合には「4」程度
が適当であることが実験により確かめられている。ま
た、疑似中間調判定部105における判定アルゴリズム
は、上記実施形態に限らず、誤差拡散領域を判別するの
に適していれば、その他の判定アルゴリズムを採用して
もよい。
(2) The value of the threshold value TH set by the pseudo-halftone judging section 105 varies depending on the size of the area around the target pixel set by the isolated pixel accumulating sections 103 and 104, but is shown in FIG. As described above, it has been confirmed by experiments that "4" is suitable for 7 × 7 pixels. Further, the determination algorithm in the pseudo halftone determination unit 105 is not limited to the above embodiment, and other determination algorithms may be adopted as long as they are suitable for determining the error diffusion area.

【0031】(3)主走査方向修正部106および副走
査方向修正部107における補正対象画素の判定アルゴ
リズムについても、上記実施形態のものに限らず、その
他のアルゴリズムを採用してよい。
(3) The determination algorithm of the correction target pixel in the main scanning direction correction unit 106 and the sub scanning direction correction unit 107 is not limited to that of the above embodiment, and other algorithms may be adopted.

【0032】(4)また、上記実施形態では、誤差拡散
法による疑似中間調領域を判別する場合について説明し
たが、これに限らず、誤差拡散法と同様、周期性のない
その他の手法による疑似中間調領域をディザ法のような
周期性のある疑似中間調領域から区別して判別する場合
にも適用可能である。
(4) In the above embodiment, the case where the pseudo halftone area is discriminated by the error diffusion method has been described. However, the present invention is not limited to this. It can also be applied to a case where the halftone region is distinguished from the pseudo halftone region having a periodicity as in the dither method.

【0033】[0033]

【発明の効果】以上説明したように、この発明によれ
ば、小さい処理規模で、かつ高精度に、入力二値画像か
ら誤差拡散法等による周期性のない疑似中間調領域を判
別することができる。
As described above, according to the present invention, a pseudo halftone region having no periodicity can be discriminated from an input binary image with a small processing scale and with high accuracy by an error diffusion method or the like. it can.

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

【図1】 この発明の一実施形態による画像処理装置の
構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】 同画像処理装置の動作を説明するための模式
図である。
FIG. 2 is a schematic diagram for explaining the operation of the image processing apparatus.

【図3】 ディザ法による疑似中間調画像の例を示す図
である。
FIG. 3 is a diagram showing an example of a pseudo halftone image by a dither method.

【図4】 二次元パターンマッチングを用いた従来の判
別手法を説明する図である。
FIG. 4 is a diagram illustrating a conventional determination method using two-dimensional pattern matching.

【図5】 画像のハイライト部における「誤差拡散領
域」と「ディザ領域」とを比較した図であり、(a)は
「誤差拡散領域」を、(b)は「ディザ領域」を示して
いる。
5A and 5B are diagrams comparing an "error diffusion area" and a "dither area" in a highlighted portion of an image, where (a) shows the "error diffusion area" and (b) shows the "dither area". There is.

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

101 孤立画素検出部(孤立画素検出手段) 102 孤立画素補正部(画素値判定手段、補正手段) 103 孤立画素累計部(領域設定手段、第1の累計手
段) 104 孤立画素累計部(領域設定手段、第2の累計手
段) 105 疑似中間調判定部(分類手段) 106 主走査方向修正部(連続画素数認識手段、分類
修正手段) 107 副走査方向修正部(連続画素数認識手段、分類
修正手段)
Reference Signs List 101 isolated pixel detection unit (isolated pixel detection unit) 102 isolated pixel correction unit (pixel value determination unit, correction unit) 103 isolated pixel accumulation unit (region setting unit, first accumulation unit) 104 isolated pixel accumulation unit (region setting unit) , Second accumulating unit) 105 pseudo-halftone judging unit (classifying unit) 106 main scanning direction correcting unit (continuous pixel number recognizing unit, class correcting unit) 107 sub-scanning direction correcting unit (continuous pixel number recognizing unit, class correcting unit) )

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 二値で表される入力画像から同じ値の画
素が隣接しない孤立画素を検出する孤立画素検出手段
と、 前記孤立画素検出手段によって検出された孤立画素の位
置から前記入力画像内で周期的な距離に位置する画素の
値と当該孤立画素の値とが一致するか否かを各々判定す
る画素値判定手段と、 前記画素値判定手段によって画素の値が一致すると判定
された頻度に基づき、前記孤立画素検出手段の検出結果
を補正する補正手段と、 前記孤立画素検出手段によって検出された孤立画素を含
む前記入力画像内の所定領域を設定する領域設定手段
と、 前記領域設定手段によって設定された領域内で、前記孤
立画素検出手段によって検出された孤立画素の数を累計
する第1の累計手段と、 前記領域設定手段によって設定された領域内で、前記補
正手段によって補正された後の孤立画素の数を累計する
第2の累計手段と、 前記第1および第2の累計手段の累計結果に基づき、前
記入力画像を構成する画素を分類する分類手段とを具備
することを特徴とする画像処理装置。
1. An isolated pixel detecting means for detecting an isolated pixel in which pixels having the same value are not adjacent to each other from an input image represented by a binary value, and the position of the isolated pixel detected by the isolated pixel detecting means in the input image. And a pixel value determination unit that determines whether or not the value of a pixel located at a periodic distance and the value of the isolated pixel match, and the frequency at which the pixel value determination unit determines that the pixel values match. Correction means for correcting the detection result of the isolated pixel detection means, area setting means for setting a predetermined area in the input image including the isolated pixels detected by the isolated pixel detection means, and area setting means. A first accumulating means for accumulating the number of isolated pixels detected by the isolated pixel detecting means in the area set by Second accumulating means for accumulating the number of isolated pixels after being corrected by the correcting means, and classification means for classifying the pixels forming the input image based on the accumulation results of the first and second accumulating means An image processing apparatus comprising:
【請求項2】 請求項1記載の画像処理装置において、 前記分類手段によって同じ分類とされた画素が連続する
画素数を認識する連続画素数認識手段と、 前記連続画素数認識手段によって認識された連続画素数
に基づき、隣接する画素列と比較して連続画素数が小さ
い画素の分類を該隣接する画素列と同じ分類に変更する
分類修正手段とを具備することを特徴とする画像処理装
置。
2. The image processing apparatus according to claim 1, wherein the continuous pixel number recognition means for recognizing the number of continuous pixels of the pixels classified into the same classification by the classification means, and the continuous pixel number recognition means for recognition. An image processing apparatus comprising: a classification correction unit that changes a classification of pixels having a smaller number of continuous pixels into the same classification as that of the adjacent pixel row based on the number of continuous pixels.
JP19780295A 1995-08-02 1995-08-02 Image processing device Expired - Fee Related JP3453939B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19780295A JP3453939B2 (en) 1995-08-02 1995-08-02 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19780295A JP3453939B2 (en) 1995-08-02 1995-08-02 Image processing device

Publications (2)

Publication Number Publication Date
JPH0951438A JPH0951438A (en) 1997-02-18
JP3453939B2 true JP3453939B2 (en) 2003-10-06

Family

ID=16380598

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19780295A Expired - Fee Related JP3453939B2 (en) 1995-08-02 1995-08-02 Image processing device

Country Status (1)

Country Link
JP (1) JP3453939B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5987221A (en) * 1997-01-24 1999-11-16 Hewlett-Packard Company Encoded orphan pixels for discriminating halftone data from text and line art data
KR100438712B1 (en) * 2002-01-12 2004-07-05 삼성전자주식회사 Binary image generating method using minority pixel location information
JP6079720B2 (en) 2014-08-05 2017-02-15 コニカミノルタ株式会社 Image processing apparatus, image processing method, and program

Also Published As

Publication number Publication date
JPH0951438A (en) 1997-02-18

Similar Documents

Publication Publication Date Title
US5293430A (en) Automatic image segmentation using local area maximum and minimum image signals
US6674899B2 (en) Automatic background detection of scanned documents
US6141460A (en) Method for detecting edges in an image signal
US6178260B1 (en) Image segmentation apparatus and method
US6782129B1 (en) Image segmentation apparatus and method
US6360009B2 (en) Image segmentation apparatus and method
US6389164B2 (en) Image segmentation apparatus and method
US6272240B1 (en) Image segmentation apparatus and method
US6259813B1 (en) Method and apparatus for image processing using a signal of multiple scale values
US6111982A (en) Image processing apparatus and recording medium recording a program for image processing
JPH07193705A (en) Area discriminating circuit for dot picture
JP3453939B2 (en) Image processing device
US6529629B2 (en) Image segmentation apparatus and method
JPH10294862A (en) Image processor
JPH08237475A (en) Image area separation method, image area separator and image processing method and image processing unit
US7965413B2 (en) Method and system for detection of binary halftone frequencies
JP3426747B2 (en) Color halftone area determination device
US7046395B2 (en) Image forming apparatus
JP2874592B2 (en) Image processing device for distinguishing text / photo / dot area
JP4087946B2 (en) Image processing device
JP2574262B2 (en) Number plate automatic recognition device
JP3251119B2 (en) Image processing device
JP3145145B2 (en) Image processing device
JP3260816B2 (en) Image processing device
JP3796424B2 (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080725

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090725

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees