JP2898321B2 - Halftone estimation method for dither image - Google Patents
Halftone estimation method for dither imageInfo
- Publication number
- JP2898321B2 JP2898321B2 JP1320808A JP32080889A JP2898321B2 JP 2898321 B2 JP2898321 B2 JP 2898321B2 JP 1320808 A JP1320808 A JP 1320808A JP 32080889 A JP32080889 A JP 32080889A JP 2898321 B2 JP2898321 B2 JP 2898321B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- halftone
- average density
- value
- interest
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
Description
【発明の詳細な説明】 〔目 次〕 概要 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 作用 実施例 発明の効果 〔概 要〕 疑似中間調表示されたディザ画像から元の中間調画像
を推定するようにしたディザ画像の中間調推定方式に関
し、 周辺画素との相関を考慮することによる推定誤差の低
減を目的とし、 ディザマトリクスでディザ処理した原画像について、
このディザマトリクスの大きさに対応した入力画素の画
像データの取り込みを行う画素入力手段と、画素入力手
段で取り込んだ入力画素に含まれる黒画素の数に基づい
て、着目画素の平均濃度を求める平均濃度算出手段と、
ディザマトリクス内の着目画素に対応した閾値と平均濃
度算出手段で求めた平均濃度と着目画素の画素データに
基づいて中間調データの濃度範囲である推定範囲を決定
する推定範囲決定手段と、推定範囲決定手段による推定
範囲内で、着目画素の近傍に位置する複数画素に対応し
た画素データ及びこれらの複数画素に対応したディザマ
トリクス内の閾値に基づいて中間調推定を行う中間調推
定手段を備えるように構成する。Detailed Description of the Invention [Table of Contents] Overview Industrial application field Conventional technology Problems to be solved by the invention Means to solve the problem Action Embodiment Effect of the invention [Overview] Pseudo halftone display Regarding the halftone estimation method of a dither image in which the original halftone image is estimated from the dither image, with the aim of reducing the estimation error by considering the correlation with the surrounding pixels, the original image dithered with the dither matrix ,
A pixel input unit that captures image data of an input pixel corresponding to the size of the dither matrix, and an average that determines an average density of a pixel of interest based on the number of black pixels included in the input pixel captured by the pixel input unit Concentration calculating means;
Estimation range determining means for determining an estimation range which is a density range of halftone data based on a threshold value corresponding to the pixel of interest in the dither matrix, the average density obtained by the average density calculation means and the pixel data of the pixel of interest, The image processing apparatus may further include a halftone estimating unit that performs halftone estimation based on pixel data corresponding to a plurality of pixels located in the vicinity of the pixel of interest and a threshold value in a dither matrix corresponding to the plurality of pixels within the estimation range determined by the determining unit. To be configured.
本発明は、疑似中間調表示されたディザ画像から元の
中間調画像を推定するようにしたディザ画像の中間調推
定方式に関するものである。The present invention relates to a dither image halftone estimating method for estimating an original halftone image from a pseudo halftone-displayed dither image.
現在、ファクシミリ装置やスキャナ等の画像入力出力
機器では、文字や線画だけでなく、ディザ画像等の疑似
中間調画像を対象とする場合が多くなってきている。こ
れらの疑似中間調画像を含めた一般の二値画像から解像
度や階調性等の情報を引き出し、忠実に中間調画像を再
現することにより、従来からの多値画像の画像処理によ
ってディザ画像も容易に扱うことができ、例えば高域強
調やエッジ検出,拡大,縮小等が簡単に実現できるよう
になる。At present, image input / output devices such as facsimile machines and scanners are increasingly targeting not only characters and line drawings but also pseudo halftone images such as dither images. By extracting information such as resolution and gradation from general binary images including these pseudo halftone images and faithfully reproducing halftone images, dither images can also be obtained by conventional multivalued image processing. For example, high-frequency emphasis, edge detection, enlargement, reduction, and the like can be easily realized.
ディザ等の疑似中間調画像を対象とした従来の中間調
推定方法としては、特開昭62−3381号公報「ディザ画像
からグレーレベル画像を再構成する方法」が知られてい
る(の方法)。この方法は、ディザマトリクス内にあ
る黒画素の個数から中間調を推定するものである。As a conventional halftone estimation method for a pseudo halftone image such as dither, Japanese Patent Application Laid-Open No. 62-3381, "Method of Reconstructing Gray Level Image from Dither Image" is known. . This method estimates a halftone from the number of black pixels in a dither matrix.
また、中間調推定方法の他の従来例としては、特開昭
61−288567号「ディザ画像の中間調画像推定方法」,特
開昭61−288568号「2値画像の中間調画像推定方法」が
ある(の方法)。この方法は、複数の走査開口を用意
し、走査開口内のドットパターンとの一致,不一致から
何れかの走査開口を選定し、あるいは走査開口内の画素
の配置に応じて何れかの走査開口を推定し、これら選定
した開口内の黒画素数に応じて中間調を推定する方法で
ある。Another conventional example of the halftone estimation method is disclosed in
No. 61-288567, "Method of estimating halftone image of dither image", and JP-A-61-288568, "Method of estimating halftone image of binary image". According to this method, a plurality of scanning apertures are prepared, and any one of the scanning apertures is selected based on the coincidence or disagreement with the dot pattern in the scanning aperture, or any one of the scanning apertures is selected according to the arrangement of pixels in the scanning aperture. This is a method of estimating and estimating a halftone in accordance with the number of black pixels in the selected opening.
ところで、上述したの方法にあっては、ディザマト
リクス内の複数画素と中間調画像の1画素とが対応して
おり、画像全体が平滑化されるため、中間調画像を得る
場合の推定誤差が大きいという問題点があった。By the way, in the above-described method, a plurality of pixels in the dither matrix correspond to one pixel of the halftone image, and the entire image is smoothed. There was a problem of being large.
また、の方法にあっては、用意されている走査開口
のドットパターンは濃度が均一である画像をディザマト
リクスでディザ処理したものであり、濃度変化があるデ
ィザ画像ではドットパターンが一致する走査開口が小さ
なものになるため推定誤差が大きくなるという問題点が
あった。しかも小さな走査開口になればなるほど周辺画
素との相関がなくなるので得られた中間調推定結果の信
頼性は低下することになる。In the method of (1), the prepared dot pattern of the scanning aperture is obtained by dithering an image having a uniform density using a dither matrix. However, there is a problem that the estimation error becomes large because of the small size. In addition, the smaller the scanning aperture, the less the correlation with the surrounding pixels, so that the reliability of the obtained halftone estimation result decreases.
本発明は、このような点にかんがみて創作されたもの
であり、周辺画素との相関を考慮することにより推定誤
差を小さくするようにしたディザ画像の中間調推定方式
を提供することを目的としている。The present invention has been made in view of such a point, and an object of the present invention is to provide a halftone estimation method of a dither image in which an estimation error is reduced by considering a correlation with peripheral pixels. I have.
第1図は、本発明のディザ画像の中間調推定方式の原
理ブロック図である。FIG. 1 is a principle block diagram of a dither image halftone estimation method according to the present invention.
図において、画素入力手段111は、ディザマトリクス
でディザ処理した原画像について、このディザマトリク
スの大きさに対応した入力画素の画素データの取り込み
を行う。In the figure, a pixel input unit 111 captures pixel data of input pixels corresponding to the size of the dither matrix from an original image dither-processed by the dither matrix.
平均濃度算出手段121は、画素入力手段111で取り込ん
だ入力画素に含まれる黒画素の数に基づいて、着目画素
の平均濃度を求める。The average density calculating unit 121 obtains the average density of the pixel of interest based on the number of black pixels included in the input pixels captured by the pixel input unit 111.
推定範囲決定手段131は、ディザマトリクス内の着目
画素に対応した閾値と平均濃度算出手段121で求めた平
均濃度と着目画素の画素データに基づいて中間調データ
の濃度範囲である推定範囲を決定する。The estimation range determination unit 131 determines an estimation range that is a density range of halftone data based on the threshold value corresponding to the target pixel in the dither matrix, the average density calculated by the average density calculation unit 121, and the pixel data of the target pixel. .
中間調推定手段141は、推定範囲決定手段131による推
定範囲内で、着目画素の近傍に位置する複数画素に対応
した画素データ及びこれらの複数画素に対応したディザ
マトリクス内の閾値に基づいて中間調推定を行う。The halftone estimating means 141 performs the halftone based on the pixel data corresponding to a plurality of pixels located in the vicinity of the pixel of interest and the threshold value in the dither matrix corresponding to the plurality of pixels within the estimation range determined by the estimation range determining means 131. Make an estimate.
従って、全体として、ディザマトリクスの大きさに対
応した画素データに基づいて平均濃度を求めた後に着目
画素の中間調推定範囲を決定し、更に、近傍に位置する
画素の状態に応じて中間調推定を行うように構成されて
いる。Therefore, as a whole, after determining the average density based on the pixel data corresponding to the size of the dither matrix, the halftone estimation range of the pixel of interest is determined, and further, the halftone estimation range is determined according to the state of the pixels located in the vicinity. It is configured to perform.
ディザマトリクスの大きさに対応した入力画素の画素
データを画素入力手段111で取り込んで、これらの入力
画素に含まれる黒画素の数に基づいた着目画素の平均濃
度を平均濃度算出手段121によって求める。ディザ画像
は、ある中間調を有する着目画素をディザマトリクスに
対応した複数画素で表現しているため、ディザ処理され
る前の画像の濃度変化が大きい場合には、着目画素のデ
ィザ処理前の中間調と平均濃度算出手段121で求めた平
均濃度との差、すなわち推定誤差が大きくなる。推定範
囲決定手段131は、着目画素に対応する平均濃度、対応
するディザマトリクス内の閾値、及び着目画素の画素デ
ータに基づいて上述した推定誤差に応じた中間調データ
の濃度範囲である推定範囲を決定する。更に、中間調推
定手段141は、この推定した中間調の範囲内で、着目画
素の近傍に位置する画素の状態(画素データ及び対応す
るディザマトリクス内の閾値の状態)に基づいて着目画
素の中間調推定を行う。The pixel data of the input pixel corresponding to the size of the dither matrix is fetched by the pixel input unit 111, and the average density of the pixel of interest based on the number of black pixels included in these input pixels is obtained by the average density calculation unit 121. Since the dither image expresses the target pixel having a certain halftone by a plurality of pixels corresponding to the dither matrix, if the density change of the image before the dither processing is large, the intermediate pixel of the target pixel before the dither processing is displayed. The difference between the tone and the average density calculated by the average density calculation means 121, that is, the estimation error increases. The estimation range determination unit 131 calculates an average density corresponding to the target pixel, a threshold value in the corresponding dither matrix, and an estimation range that is a density range of the halftone data according to the above-described estimation error based on the pixel data of the target pixel. decide. Further, the halftone estimating means 141 calculates the intermediate value of the pixel of interest based on the state of the pixel located near the pixel of interest (the state of the pixel data and the threshold in the corresponding dither matrix) within the range of the estimated halftone. Key estimation is performed.
本発明にあっては、ディザマトリクスの大きさに対応
した画素データに基づいて平均濃度を求めた後に着目画
素の中間調データの濃度範囲である推定範囲を決定する
ことにより推定誤差を考慮し、更に、近傍に位置する画
素の状態に応じて中間調推定を行うことにより、周辺画
素の相関を考慮している。In the present invention, after determining the average density based on the pixel data corresponding to the size of the dither matrix, considering the estimation error by determining the estimation range that is the density range of the halftone data of the pixel of interest, Further, halftone estimation is performed in accordance with the state of the pixels located in the vicinity, thereby taking into account the correlation between neighboring pixels.
以下、図面に基づいて本発明の実施例について詳細に
説明する。Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
第2図は、本発明のディザ画像の中間調推定方式を適
用した一実施例の構成を示す。また、第3図は実施例に
おける中間調推定処理の動作手順の概要を示す。FIG. 2 shows a configuration of an embodiment to which a dither image halftone estimation method of the present invention is applied. FIG. 3 shows an outline of an operation procedure of the halftone estimation processing in the embodiment.
第2図において、211は画素入力回路を、221は平均濃
度算出回路を、231は中間調推定回路をそれぞれ示して
いる。In FIG. 2, reference numeral 211 denotes a pixel input circuit, 221 denotes an average density calculation circuit, and 231 denotes a halftone estimation circuit.
画素入力回路211は、ファクシミリ装置やスキャナ等
で読み取った組織的ディザの画像の取り込みを行う(第
3図,ステップS1)。例えば、第4図に示す4×4のベ
イヤ型ディザマトリクスによってディザ処理された入力
画像を対象としている。The pixel input circuit 211 captures an image of organized dither read by a facsimile machine, a scanner, or the like (FIG. 3, step S1). For example, an input image subjected to dither processing by a 4 × 4 Bayer dither matrix shown in FIG. 4 is targeted.
画素入力回路211内にあって、311,313,315,317のそれ
ぞれはシフトレジスタを示している。各シフトレジスタ
は、順次入力される各画素の二値データをシフトして,4
ビット(4画素分)のパラレルデータとして出力するも
のである。従って,4つのシフトレジスタ311〜317からは
上述した4×4のディザマトリクスに対応した16画素分
の二値データが出力される。In the pixel input circuit 211, 311, 313, 315, and 317 each represent a shift register. Each shift register shifts the binary data of each pixel sequentially input, and
It is output as parallel data of bits (for four pixels). Accordingly, the four shift registers 311 to 317 output binary data of 16 pixels corresponding to the above-described 4 × 4 dither matrix.
平均濃度算出回路221は、画素入力回路211から出力さ
れる16ビットデータに基づいて、ディザマトリクスに対
応した16画素の平均濃度を算出する(第3図,ステップ
S2)。The average density calculation circuit 221 calculates the average density of 16 pixels corresponding to the dither matrix based on the 16-bit data output from the pixel input circuit 211 (FIG. 3, step
S2).
第5図(a),(b),(c)に、入力画素群(16画
素)とこの入力画素群によって決定される平均濃度算出
画素との関係を示す。同図に示すように、16画素からな
る入力画素群に基づいて1画素の平均濃度を決定する。FIGS. 5A, 5B and 5C show the relationship between the input pixel group (16 pixels) and the average density calculation pixel determined by the input pixel group. As shown in the figure, the average density of one pixel is determined based on an input pixel group consisting of 16 pixels.
実際には、平均濃度算出回路221を平均濃度算出用ROM
223で構成し、画素入力回路211の出力をアドレス入力と
し、ディザマトリクス内の黒画素の個数を一度に求めて
平均濃度とする。Actually, the average density calculation circuit 221 is stored in an average density calculation ROM.
223, the output of the pixel input circuit 211 is used as an address input, and the number of black pixels in the dither matrix is obtained at a time to obtain an average density.
中間調推定回路231は、平均濃度算出回路221で求めた
平均濃度に対して、推定誤差の大小に応じた第一段階の
処理(第3図,ステップS3)、及びその処理結果に基づ
く第二段階の処理(第3図、ステップS4)を行って中間
調推定を行う。The halftone estimation circuit 231 performs a first-stage process (step S3 in FIG. 3) according to the magnitude of the estimation error on the average density obtained by the average density calculation circuit 221 and a second process based on the processing result. The halftone estimation is performed by performing the step processing (FIG. 3, step S4).
以下、第一段階の処理と第二段階の処理とを場合を分
けて説明する。Hereinafter, the first-stage process and the second-stage process will be separately described.
(i)第一段階の処理 第6図に、第一段階の概略を示す。同図において、
「D」は中間調推定回路231で最終的に得たい中間調推
定値を、「平均濃度Dijは平均濃度算出回路221から出力
されるある着目画素の平均濃度を、「閾値Tij」はこの
着目画素に対応したディザマトリクス内の閾値を、「閾
値Tkl」は参照画素に対応したディザマトリクス内の閾
値を、「画素値Bijはこの着目画素に対応した入力画素
データを、「画素値Bkl」は参照画素に対応した入力画
素データをそれぞれ示している。また、「TMAX」はディ
ザマトリクス内の閾値の最大値を、「TMIN」はディザマ
トリクス内の閾値の最小値を示している。(I) First Step Processing FIG. 6 shows an outline of the first step. In the figure,
“D” is a halftone estimated value that is finally obtained by the halftone estimation circuit 231, “average density D ij is an average density of a pixel of interest output from the average density calculation circuit 221, and“ threshold T ij ”is The threshold value in the dither matrix corresponding to the pixel of interest , the “threshold value T kl ” is the threshold value in the dither matrix corresponding to the reference pixel, the “pixel value B ij is the input pixel data corresponding to the pixel of interest, “Value B kl ” indicates input pixel data corresponding to the reference pixel. “T MAX ” indicates the maximum value of the threshold value in the dither matrix, and “T MIN ” indicates the minimum value of the threshold value in the dither matrix.
(i−1)Tij≦Dijの場合 着目画素の閾値Tijが着目画素の平均濃度Dij以下の場
合(第6図(a))は以下のように場合分けを行って、
第二段階で処理を行うための条件の設定を行う。(I-1) Case of T ij ≦ D ij When the threshold value T ij of the target pixel is equal to or lower than the average density D ij of the target pixel (FIG. 6A), the cases are classified as follows.
In the second stage, conditions for performing the processing are set.
着目画素の画素値Bijが“0"のときには、ディザ化を
行う前の元の中間調データは閾値よりも低いレベルにあ
ると予測され、着目画素の中間調推定値Dが閾値Tijよ
り小さい(D<Tij)ものとする。この状態を「条件
1」とする。When the pixel value B ij of the pixel of interest is “0”, the original halftone data before dithering is predicted to be at a level lower than the threshold, and the halftone estimated value D of the pixel of interest is higher than the threshold T ij . It is assumed to be small (D <T ij ). This state is referred to as “condition 1”.
着目画素の画素値Bijが“1"のときには、ディザ化を
行う前の元の中間調データは閾値よりも高いレベルにあ
ると予測され、着目画素の中間調推定値Dが閾値Tij以
上(D≧Tij)であるものとする。この状態を「条件
2」とする。When the pixel value B ij of the target pixel is “1”, the original halftone data before dithering is predicted to be at a level higher than the threshold, and the halftone estimated value D of the target pixel is equal to or larger than the threshold T ij. (D ≧ T ij ). This state is referred to as “condition 2”.
(i−2)Tij>Dijの場合 着目画素の閾値Tijが着目画素の平均濃度Dijより大き
い場合(第6図(b))は以下のように場合分けを行っ
て、第二段階で処理を行うための条件の設定を行う。(I-2) Case of T ij > D ij When the threshold value T ij of the target pixel is larger than the average density D ij of the target pixel (FIG. 6 (b)), the cases are classified as follows, The conditions for performing the processing in stages are set.
着目画素の画素値Bijが“0"のときには、ディザ化を
行う前の元の中間調データは閾値よりも低いレベルにあ
ると予測され、着目画素の中間調推定値Dが閾値Tijよ
り小さい(D<Tij)ものとする。この態を「条件4」
とする。When the pixel value B ij of the pixel of interest is “0”, the original halftone data before dithering is predicted to be at a level lower than the threshold, and the halftone estimated value D of the pixel of interest is higher than the threshold T ij . It is assumed to be small (D <T ij ). This condition is called "condition 4"
And
着目画素の画素値Bijが“1"のときには、ディザ化を
行う前の元の中間調データは閾値よりも高いレベルにあ
ると予測され、着目画素の中間調推定値Dが閾値Tijよ
り小さい(D≧Tij)であるものとする。この態を「条
件3」とする。When the pixel value B ij of the pixel of interest is “1”, the original halftone data before dithering is predicted to be at a level higher than the threshold, and the halftone estimated value D of the pixel of interest is higher than the threshold T ij . It is assumed to be small (D ≧ T ij ). This state is referred to as “condition 3”.
このようにして条件1〜4を決定した後、着目画素を
囲む最近傍の参照画素群(8画素)を対象とした第二段
階の処理を行う。なお、第6図(c)にこの参照画素群
と着目画素との位置関係を画素値Bを例にとって(閾値
Tについても同様とする)示すと共に、同図(a),
(b)にこれらの参照画素群と着目画素との関係を示し
ておいた。After the conditions 1 to 4 are determined in this way, the second stage processing is performed on the nearest reference pixel group (8 pixels) surrounding the target pixel. FIG. 6C shows the positional relationship between the reference pixel group and the pixel of interest, taking the pixel value B as an example (the same applies to the threshold value T).
(B) shows the relationship between the reference pixel group and the pixel of interest.
(ii)第二段階の処理 第7図に、上述した第一段階で決定した各条件の処理
内容を示す。以下条件1〜4のそれぞれについて説明す
る。(Ii) Second Stage Processing FIG. 7 shows the processing contents of each condition determined in the above first stage. Hereinafter, each of the conditions 1 to 4 will be described.
(ii−1)条件1 先ず、条件1(Tij≦DijかつBij=0)の場合の中間
調推定動作を説明する。(Ii-1) Condition 1 First, the halftone estimation operation in the case of Condition 1 (T ij ≦ D ij and B ij = 0) will be described.
最初に、「Tkl<TijかつBkl=1」を満たす参照画素
数をカウントし、その個数をpとする。First, the number of reference pixels satisfying “T kl <T ij and B kl = 1” is counted, and the number is set as p.
次に、「Tkl<TijかつBkl=0」を満たす参照画素数
をカウントし、その個数をqとする。Next, the number of reference pixels satisfying “T kl <T ij and B kl = 0” is counted, and the number is set as q.
上述した個数p及びqの大小関係に基づいて以下に示
す中間調推定結果を得る。The following halftone estimation result is obtained based on the magnitude relationship between the numbers p and q.
p≧qならば、着目画素の中間調が閾値Tijに近いと
判断し、着目画素の閾値Tijを中間調推定値とする。If p ≧ q, it is determined that the halftone of the target pixel is close to the threshold Tij , and the threshold Tij of the target pixel is set as the halftone estimated value.
p>qならば、着目画素の中間調が閾値Tijよりもっ
と小さい値と判断し、上述したに該当する参照画素群
の閾値の最小値または平均値を中間調推定値とする。If p> q, it is determined that the halftone of the target pixel is smaller than the threshold value Tij , and the minimum or average threshold value of the reference pixel group corresponding to the above is set as the halftone estimated value.
(ii−2)条件2 次に、条件2(Tij≦DijかつBij=1)の場合の中間
調推定動作を説明する。(Ii-2) Condition 2 Next, the halftone estimation operation in the case of Condition 2 (T ij ≦ D ij and B ij = 1) will be described.
最初に、「Tij<Tkl≦DijかつBkl=0」を満たす参照
画素数をカウントし、その個数をpとする。First, the number of reference pixels that satisfy “T ij <T kl ≦ Dij and B kl = 0” is counted, and the number is set as p.
次に、「Tij<Tkl≦DijかつBkl=1」又は「Tkl>Dij
かつBij=0」を満たす参照画素数をカウントし、その
個数をqとする。Next, “T ij <T kl ≦ D ij and B kl = 1” or “T kl > D ij
The number of reference pixels satisfying “B ij = 0” is counted, and the number is set as q.
次に、「Tkl>DijかつBkl=1」を満たす参照画素数
をカウントし、その個数をrとする。Next, the number of reference pixels satisfying “T kl > D ij and B kl = 1” is counted, and the number is set as r.
上述した個数p,q,rの大小関係に基づいて以下に示す
中間調推定結果を得る。The following halftone estimation result is obtained based on the magnitude relationship between the numbers p, q, and r.
pの値が最大の場合は、着目画素の中間調が閾値Tij
に近いと判断し、着目画素の閾値Tijを中間調推定値と
する。When the value of p is the maximum, the halftone of the pixel of interest is equal to the threshold T ij
, And the threshold value Tij of the pixel of interest is set as the halftone estimated value.
qの値が最大の場合は、着目画素の中間調が平均濃度
Dijに近いと判断し、平均濃度Dijを中間調推定値とす
る。If the value of q is the maximum, the halftone of the pixel of interest is the average density
It is determined that it is close to D ij , and the average density D ij is used as a halftone estimated value.
rの値が最大の場合は、着目画素の中間調が平均濃度
Dijよりもっと大きい値と判断し、上述したに該当す
る参照画素群の閾値の最小値又は平均値を中間調推定値
とする。When the value of r is the maximum, the halftone of the pixel of interest is the average density
It is determined that the value is larger than D ij, and the minimum value or the average value of the threshold values of the reference pixel group corresponding to the above is set as the halftone estimated value.
(ii−3)条件3 次に、条件3(Tij>DijかつBij=1)の場合の中間
調推定動作を説明する。(Ii-3) Condition 3 Next, the halftone estimation operation in the case of Condition 3 (T ij > D ij and B ij = 1) will be described.
最初に、「Tkl>TijかつBkl=0」を満たす参照画素
数をカウントし、その個数をpとする。First, the number of reference pixels satisfying “T kl > T ij and B kl = 0” is counted, and the number is set as p.
次に、「Tkl>TijかつBkl=1」を満たす参照画素数
をカウントし、その個数をqとする。Next, the number of reference pixels satisfying “T kl > T ij and B kl = 1” is counted, and the number is set as q.
上述した個数p及びqの大小関係に基づいて以下に示
す中間調推定結果を得る。The following halftone estimation result is obtained based on the magnitude relationship between the numbers p and q.
p≧qならば、着目画素の中間調が閾値Tijに近いと
判断し、着目画素の閾値Tijを中間調推定値とする。If p ≧ q, it is determined that the halftone of the target pixel is close to the threshold Tij , and the threshold Tij of the target pixel is set as the halftone estimated value.
p>qならば、着目画素の中間調が閾値Tijよりもっ
と大きい値と判断し、上述したに該当する参照画素群
のは閾値の最大値または平均値とする。If p> q, it is determined that the halftone of the pixel of interest is a value larger than the threshold value Tij , and the reference pixel group corresponding to the above is set to the maximum value or the average value of the threshold values.
(ii−4)条件4 次に、条件4(Tij>DijかつBij=0)の場合の中間
調推定動作を説明する。(Ii-4) Condition 4 Next, the halftone estimation operation in the case of Condition 4 (T ij > D ij and B ij = 0) will be described.
最初に、「Dij≦Tkl<TijかつBkl=1」を満たす参照
画素数をカウントし、その個数をpとする。First, the number of reference pixels satisfying “D ij ≦ T kl <T ij and B kl = 1” is counted, and the number is set as p.
次に、「Dij≦Tkl<TijかつBkl=0」又は「Tkl<Dij
かつBij=1」を満たす参照画素数をカウントし、その
個数をqとする。Next, “D ij ≦ T kl <T ij and B kl = 0” or “T kl <D ij
The number of reference pixels satisfying “B ij = 1” is counted, and the number is set as q.
次に、「Tkl<DijかつBkl=0」を満たす参照画素数
をカウントし、その個数をrとする。Next, the number of reference pixels satisfying “T kl <D ij and B kl = 0” is counted, and the number is set as r.
上述した個数p,q,rの大小関係に基づいて以下に示す
中間調推定結果を得る。The following halftone estimation result is obtained based on the magnitude relationship between the numbers p, q, and r.
pの値が最大の場合は、着目画素の中間調が閾値Tij
に近いと判断し、着目画素の閾値Tijを中間調推定値と
する。When the value of p is the maximum, the halftone of the pixel of interest is equal to the threshold T ij
, And the threshold value Tij of the pixel of interest is set as the halftone estimated value.
qの値が最大の場合は、着目画素の中間調が平均濃度
Dijに近いと判断し、平均濃度Dijを中間調推定値とす
る。If the value of q is the maximum, the halftone of the pixel of interest is the average density
It is determined that it is close to D ij , and the average density D ij is used as a halftone estimated value.
rの値が最大の場合は、着目画素の中間調が平均濃度
Dijよりもっと小さい値と判断し、上述したに該当す
る参照画素群の閾値の最大値又は平均値を中間調推定値
とする。When the value of r is the maximum, the halftone of the pixel of interest is the average density
It is determined that the value is smaller than D ij, and the maximum value or the average value of the threshold values of the reference pixel group corresponding to the above is set as the halftone estimated value.
なお、上述した条件2,4における個数p,q,rが同数の場
合、優先順位を例えばq,p,rとして、平均濃度を優先的
に選択するようにする。When the numbers p, q, and r under the conditions 2 and 4 are the same, the priority order is set to, for example, q, p, and r, and the average density is preferentially selected.
第8図に、上述した中間調推定動作の具体例を示す。
いま、同図(a)に示したディザマトリクスに対応した
入力画素データが、画素入力回路211に入力された場合
の中間調推定を行うものとする。着目画素は閾値6に対
応しており、参照画素群はその周辺の8個の閾値に対応
している。FIG. 8 shows a specific example of the above-described halftone estimation operation.
Now, assume that halftone estimation is performed when input pixel data corresponding to the dither matrix shown in FIG. The pixel of interest corresponds to the threshold value 6, and the reference pixel group corresponds to the eight threshold values around it.
同図(b)は、平均濃度Dij=8であり、画素値Bij=
1である場合を示している。「Tij≦DijかつBij=1」
を満たすので条件2に対応している。更に、条件2にお
いて、p=0,q=4,r=0であるのでpの値が最大であ
り、平均濃度Dij(=8)を中間調推定値とする。FIG. 9B shows that the average density D ij = 8 and the pixel value B ij =
1 is shown. “T ij ≦ D ij and B ij = 1”
Therefore, Condition 2 is satisfied. Further, in condition 2, since p = 0, q = 4, and r = 0, the value of p is the maximum, and the average density D ij (= 8) is used as the halftone estimated value.
また、同図(c)は、平均濃度濃度Dij=5であり、
画素値Bij=1である場合を示している。「Tij>Dijか
つBij=1」を満たすので条件3に対応している。更
に、条件3において、p=1,q=3でありp<qである
ので、条件3のに該当する参照画素の閾値Tklの最大
値16(あるいは平均値でもよい)を中間調推定値とす
る。FIG. 3C shows an average density density D ij = 5,
The case where the pixel value B ij = 1 is shown. Since “T ij > D ij and B ij = 1” is satisfied, the condition 3 is satisfied. Further, since p = 1 and q = 3 and p <q in condition 3, the maximum value 16 (or an average value) of the threshold value T kl of the reference pixel corresponding to the condition 3 is set to the halftone estimated value. And
第9図に、中間調推定回路231の詳細構成を示す。図
において、911は閾値発生回路を、921,923はレジスタ
(R)を、931,933,937は比較器を、935,951はマルチプ
レクサ(MPX)を、941は中間調判断回路をそれぞれ示し
ている。FIG. 9 shows a detailed configuration of the halftone estimation circuit 231. In the figure, reference numeral 911 denotes a threshold value generating circuit, 921 and 923 denote registers (R), 931 and 933 and 937 denote comparators, 935 and 951 denote multiplexers (MPX), and 941 denote halftone judgment circuits.
閾値発生回路911は着目画素及び参照画素の各閾値を
発生するものである。レジスタ921は着目画素の閾値Tij
を保持するためのものであり、レジスタ923は第7図に
示した各条件下での参照画素の閾値Tklの最大値又は最
小値を保持するためのものである。The threshold value generating circuit 911 generates each threshold value of the target pixel and the reference pixel. The register 921 stores the threshold value T ij of the pixel of interest.
The register 923 holds the maximum value or the minimum value of the threshold value Tkl of the reference pixel under each condition shown in FIG.
また、比較器931は着目画素の平均濃度Dijと閾値Tij,
Tklとの比較を行い、比較器933は着目画素の閾値Tijと
参照画素群の閾値Tklとの比較を行う。比較器937は、参
照画素の閾値Tklの最大値あるいは最小値を求めるため
に、レジスタ923の保持内容と順次導入される参照画素
群の閾値Tklとの比較を行う。Further, the comparator 931 calculates the average density D ij of the pixel of interest and the threshold T ij ,
Compares with T kl, comparators 933 performs the comparison with the threshold value T kl reference pixel group with threshold T ij of the pixel of interest. The comparator 937, in order to obtain the maximum value or the minimum value of the threshold T kl reference pixels, it is compared with the threshold T kl reference pixel group sequentially introduced and the contents held in the register 923.
更に、マルチプレクサ935は、画素値Bij及び参照画素
群の画素値Bklから所望の画素値を選択するためのもの
であり、画素値Bij,Bklは画素入力回路211から入力され
る。中間調判断回路941は、第7図の各条件に従い、比
較器931,933,937及びマルチプレクサ935の各出力に基づ
いてマルチプレクサ951に制御信号を出力する。マルチ
プレクサ951は、この制御信号に応じて、平均濃度Dij,
閾値Tij及び閾値Tklの最大値あるいは最小値(最大値あ
るいは最小値の代わりに平均値を用いる場合は平均値)
の中から択一的な選択動作を行って中間調推定値Dとし
て出力する。Further, the multiplexer 935 is for selecting a desired pixel value from the pixel value B ij and the pixel value B kl of the reference pixel group, and the pixel values B ij and B kl are input from the pixel input circuit 211. The halftone judging circuit 941 outputs a control signal to the multiplexer 951 based on the outputs of the comparators 931, 933 and 937 and the multiplexer 935 in accordance with the conditions shown in FIG. The multiplexer 951 responds to the control signal to output the average density D ij ,
Maximum or minimum value of threshold Tij and threshold Tkl (average value when average value is used instead of maximum or minimum value)
, And outputs it as a halftone estimated value D.
閾値発生回路911から着目画素の閾値Tijが出力される
と、比較器931では平均濃度Dijと閾値Tijとの比較を行
う。また、マルチプレクサ935は着目画素の画素値Bijを
選択して出力し、中間調判断回路941は比較器931及びマ
ルチプレクサ935の各出力に基づいて第7図に示したど
の条件に該当するかを判断する第一段階の処理を行う。
なお、着目画素の閾値Tijはレジスタ921に保持しておく
ようにする。When the threshold T ij of the pixel of interest is output from the threshold value generating circuit 911, and compares the average density D ij with the threshold T ij In the comparator 931. The multiplexer 935 selects and outputs the pixel value Bij of the pixel of interest, and the halftone determination circuit 941 determines which condition shown in FIG. 7 is true based on the outputs of the comparator 931 and the multiplexer 935. Perform the first stage processing.
The threshold value Tij of the pixel of interest is stored in the register 921.
また、閾値発生回路911から参照画素の閾値Tklが順次
(1つずつ)出力されると、比較器933ではレジスタ921
に保持された閾値Tijと閾値Tklとの比較を行う。また、
マルチプレクサ935は対応する参照画素の画素値Bklを選
択して出力し、中間調判断回路941は各条件を満たすp,
q,rの数をカウントし、これらの大小関係に基づいて作
成した制御信号をマルチプレクサ951に入力する。When the threshold value T kl of the reference pixel is sequentially output (one by one) from the threshold value generation circuit 911, the comparator 933 outputs the register 921
Is compared with the threshold value T ij held in the step S 1. Also,
The multiplexer 935 selects and outputs the pixel value B kl of the corresponding reference pixel, and the halftone determination circuit 941 outputs p,
The number of q and r is counted, and a control signal created based on the magnitude relation is input to the multiplexer 951.
このように、画素入力回路211で着目画素を含んだデ
ィザマトリクスの大きさに対応した個数の画素データを
取り込んで、平均濃度算出回路221によってこれらの画
素データに基づいて着目画素の平均濃度を求める。そし
て、中間調推定回路231は、この求めた平均濃度とディ
ザマトリクス内の対応する閾値との大小関係及び着目画
素が白画素が黒画素かに基づく第一段階の処理によって
中間調推定値の範囲をある程度限定した後に、第二段階
の処理によって参照画素群の閾値及び画素値に基づいて
最終的な中間調推定値を得る。As described above, the pixel input circuit 211 fetches the pixel data of the number corresponding to the size of the dither matrix including the target pixel, and obtains the average density of the target pixel based on the pixel data by the average density calculation circuit 221. . Then, the halftone estimating circuit 231 performs the first-stage processing based on the magnitude relationship between the obtained average density and the corresponding threshold value in the dither matrix and whether the pixel of interest is a white pixel or a black pixel. Is limited to some extent, a final halftone estimated value is obtained based on the threshold value and the pixel value of the reference pixel group by the second stage processing.
従って、ディザマトリクスの大きさに応じた入力画素
データから求めた平均濃度と、着目画素及び参照画素の
画素データ及び対応する閾値の状態とに基づいて中間調
推定値を得ることにより、周辺画素との相関を考慮した
中間調推定を行うことが可能になり、推定誤差を少なく
することができる。Therefore, by obtaining the halftone estimated value based on the average density obtained from the input pixel data corresponding to the size of the dither matrix, the pixel data of the target pixel and the reference pixel, and the corresponding threshold state, the peripheral pixel , It is possible to perform halftone estimation in consideration of the correlation of
なお、本発明の実施例では、着目画素の近傍の8画素
を参照画素群としたが、この参照画素の範囲については
ディザマトリクスの大きさを考慮して任意に選択するこ
とができる。例えば、8×8のディザマトリクスでディ
ザ処理した画像の中間調推定を行う場合には、更に広範
囲の近傍画素を参照画素としてもよい。In the embodiment of the present invention, eight pixels near the pixel of interest are set as the reference pixel group. However, the range of the reference pixels can be arbitrarily selected in consideration of the size of the dither matrix. For example, when performing halftone estimation of an image dithered with an 8 × 8 dither matrix, neighboring pixels in a wider range may be used as reference pixels.
上述したように、本発明によれば、ディザマトリクス
の大きさに対応した画素データに基づいて平均濃度を求
めた後に着目画素の中間調データの濃度範囲である推定
範囲を決定し、更に、近傍の画素の状態に基づいて中間
調推定を行うことにより、周辺画素との相関を考慮して
推定誤差を少なくすることができる。As described above, according to the present invention, after calculating the average density based on the pixel data corresponding to the size of the dither matrix, the estimation range which is the density range of the halftone data of the pixel of interest is determined, By performing halftone estimation based on the state of the pixel, the estimation error can be reduced in consideration of the correlation with surrounding pixels.
第1図は本発明のディザ画像の中間調推定方式の原理ブ
ロック図、 第2図は本発明のディザ画像の中間調推定方式を適用し
た一実施例の構成図、 第3図は一実施例の動作説明図、 第4図は4×4ベイヤ型ディザマトリクスの説明図、 第5図は入力画像と平均濃度算出画素との対応関係の説
明図、 第6図は一実施例の第一段階の処理の説明図、 第7図は一実施例の第二段階の処理の説明図、 第8図は一実施例の中間調推定動作の具体例の説明図、 第9図は中間調推定回路の詳細構成図である。 図において、 111は画素入力手段、 121は平均濃度算出手段、 131は推定範囲決定手段、 141は中間調推定手段、 211は画素入力回路、 221は平均濃度算出回路、 223は平均濃度算出用ROM、 231は中間調推定回路、 311,313,315,317はシフトレジスタ、 911は閾値発生回路、 921,923はレジスタ、 931、933,937は比較器、 935,951はマルチプレクサ、 941は中間調判断回路である。FIG. 1 is a block diagram showing the principle of the method for estimating the halftone of a dither image according to the present invention. FIG. 2 is a block diagram of an embodiment to which the method for estimating the halftone of a dither image according to the present invention is applied. FIG. 4 is an explanatory view of a 4 × 4 Bayer dither matrix, FIG. 5 is an explanatory view of a correspondence relationship between an input image and an average density calculation pixel, and FIG. 6 is a first stage of one embodiment. FIG. 7 is an explanatory diagram of a second stage process of one embodiment. FIG. 8 is an explanatory diagram of a specific example of a halftone estimating operation of one embodiment. FIG. 9 is a halftone estimating circuit. FIG. In the figure, 111 is a pixel input means, 121 is an average density calculating means, 131 is an estimation range determining means, 141 is a halftone estimating means, 211 is a pixel input circuit, 221 is an average density calculating circuit, and 223 is an average density calculating ROM. 231 is a halftone estimating circuit, 311,313,315,317 are shift registers, 911 is a threshold value generating circuit, 921,923 are registers, 931,933,937 are comparators, 935,951 are multiplexers, and 941 is a halftone determining circuit.
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) H04N 1/40-1/409 H04N 1/46 H04N 1/60
Claims (1)
について、このディザマトリクスの大きさに対応した入
力画素の画素データの取り込みを行う画素入力手段と、 前記画素入力手段で取り込んだ入力画素に含まれる黒画
素の数に基づいて、着目画素の平均濃度を求める平均濃
度算出手段と、 前記ディザマトリクス内の前記着目画素に対応した閾値
と前記平均濃度算出手段で求めた平均濃度と前記着目画
素の画素データに基づいて中間調データの濃度範囲であ
る推定範囲を決定する推定範囲決定手段と、 前記推定範囲決定手段による前記推定範囲内で、前記着
目画素の近傍に位置する複数画素に対応した画素データ
及びこれらの複数画素に対応した前記ディザマトリクス
内の閾値に基づいて中間調推定を行う中間調推定手段
と、 を備えるように構成したことを特徴とするディザ画像の
中間調推定方式。An original image dithered by a dither matrix is included in pixel input means for inputting pixel data of an input pixel corresponding to the size of the dither matrix, and is included in the input pixel input by the pixel input means. Average density calculating means for calculating the average density of the pixel of interest based on the number of black pixels; a threshold value corresponding to the pixel of interest in the dither matrix; the average density determined by the average density calculating means; Estimation range determining means for determining an estimation range that is a density range of halftone data based on data, and pixel data corresponding to a plurality of pixels located near the pixel of interest within the estimation range determined by the estimation range determination means. And halftone estimating means for performing halftone estimation based on threshold values in the dither matrix corresponding to the plurality of pixels. A halftone estimating method for a dither image, characterized in that:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1320808A JP2898321B2 (en) | 1989-12-11 | 1989-12-11 | Halftone estimation method for dither image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1320808A JP2898321B2 (en) | 1989-12-11 | 1989-12-11 | Halftone estimation method for dither image |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH03182169A JPH03182169A (en) | 1991-08-08 |
JP2898321B2 true JP2898321B2 (en) | 1999-05-31 |
Family
ID=18125467
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1320808A Expired - Lifetime JP2898321B2 (en) | 1989-12-11 | 1989-12-11 | Halftone estimation method for dither image |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2898321B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10156510B2 (en) | 2014-08-28 | 2018-12-18 | Sysmex Corporation | Particle imaging apparatus and particle imaging method |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5323247A (en) * | 1990-12-04 | 1994-06-21 | Research Corporation Technologies | Method and apparatus for halftoning and inverse halftoning and the transmission of such images |
US5832185A (en) * | 1993-09-01 | 1998-11-03 | Canon Information System Research Australia Pty Ltd. | Alteration of dither matrix size for full color dithering |
WO1995006911A1 (en) * | 1993-09-01 | 1995-03-09 | Canon Information Systems Research Australia Pty. Ltd. | Method for the creation of dither matrices |
-
1989
- 1989-12-11 JP JP1320808A patent/JP2898321B2/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10156510B2 (en) | 2014-08-28 | 2018-12-18 | Sysmex Corporation | Particle imaging apparatus and particle imaging method |
Also Published As
Publication number | Publication date |
---|---|
JPH03182169A (en) | 1991-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6389163B1 (en) | Method and apparatus for automatic image segmentation using template matching filters | |
JP2871127B2 (en) | Image processing apparatus and method | |
JP3333839B2 (en) | Interpolation line detection method and interpolation line detection device | |
JPH07288689A (en) | Device and method for binarization processing of image signal | |
JPH02165775A (en) | Picture processor | |
JP3749282B2 (en) | Image processing device | |
EP0685959B1 (en) | Image processing apparatus for identifying character, photo and dot images in the image area | |
JP2898321B2 (en) | Halftone estimation method for dither image | |
JP2880541B2 (en) | Halftone estimation method for dither image | |
JPH10257319A (en) | Image processor and image-processing method | |
US20070104349A1 (en) | Tally image generating method and device, tally image generating program, and confidential image decoding method | |
JP2898322B2 (en) | Halftone estimation method for dither image | |
JP2003110852A (en) | Halftone processing method and apparatus | |
JPS63288565A (en) | Image processor | |
JP2874592B2 (en) | Image processing device for distinguishing text / photo / dot area | |
JP2001218046A (en) | Halftone area determination method | |
JPH01276970A (en) | Picture signal processor | |
JP2880540B2 (en) | Halftone estimation method for dither image | |
JP3285349B2 (en) | Dither image enlarger | |
JP2900907B2 (en) | Image processing device | |
JPH11146203A (en) | Image processing apparatus and storage medium storing program related to the apparatus | |
JP2601156B2 (en) | Image processing device | |
JP2000287089A (en) | Image binarization method | |
JPH05284358A (en) | Image processing device | |
JP2836992B2 (en) | Image scaling processor |