JPH08107499A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH08107499A
JPH08107499A JP6240379A JP24037994A JPH08107499A JP H08107499 A JPH08107499 A JP H08107499A JP 6240379 A JP6240379 A JP 6240379A JP 24037994 A JP24037994 A JP 24037994A JP H08107499 A JPH08107499 A JP H08107499A
Authority
JP
Japan
Prior art keywords
density
pixel
binarization
image
image processing
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
JP6240379A
Other languages
Japanese (ja)
Inventor
Mayumi Nomura
まゆみ 野村
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP6240379A priority Critical patent/JPH08107499A/en
Publication of JPH08107499A publication Critical patent/JPH08107499A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color, Gradation (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE: To obtain an image processing unit in which an intermediate tone image is binarized with the error spread method after edge emphasis processing and image data of pseudo intermediate tone hose threshold level used for binarization depends on the density of each picture element are generated. CONSTITUTION: An image processing circuit 1 is made up of an original image storage device 3 storing part of intermediate tone original image information, a RAM 5 storing each calculation result, a ROM 7 storing a weight coefficient matrix, an edge emphasis coefficient and a reference threshold level or the like, a CPU 9 applying various image processing to an image, and an output image storage device 11 storing data after error spread processing. Intermediate tone image data are stored in the original image storage device 3 via a bus 13 and the CPU 9 uses a program and data in the ROM 7 to conduct edge emphasis processing. Then a correction input density and a threshold level are calculated in the error spread processing and binarization processing is conducted.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関し、更
に詳細には、中間調画像を2値化して疑似中間調の画像
データを作成する機能を備えた、たとえば、ディジタル
式の電子写真複写機や、熱転写式あるいはインクジェッ
ト式のプリンタ等における画像処理装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly, to a digital electrophotographic copying machine having a function of binarizing a halftone image to generate pseudo halftone image data. The present invention relates to an image processing apparatus in a machine, a thermal transfer type or an inkjet type printer, or the like.

【0002】[0002]

【従来の技術】従来、中間調画像を2値化して疑似中間
調の画像を作成する場合の手段としては、閾値のマトリ
クス(ディザマトリクス)テーブルに従って画像を2値
化していく組織的ディザ法等の各種ディザ法が広く用い
られている。しかしながら、これら従来の方式は、階調
再現性を良くするためにはマトリクステーブルを大きく
する必要があり、高解像度を得るためにはマトリクステ
ーブルを小さくしなければならないという矛盾があるた
め、階調再現性と高解像度との両立が困難であった。
2. Description of the Related Art Conventionally, as a means for binarizing a halftone image to create a pseudo halftone image, a systematic dither method for binarizing the image according to a threshold matrix (dither matrix) table, etc. The various dither methods are widely used. However, these conventional methods have a contradiction that the matrix table needs to be large in order to improve the gradation reproducibility, and the matrix table needs to be small in order to obtain high resolution. It was difficult to achieve both reproducibility and high resolution.

【0003】また、これとは別に階調再現性と高解像度
とが両立する方法として、誤差拡散法があり、各種従来
法の中では、比較的良い評価が与えられている。誤差拡
散法とは、中間調の画素を2値化する際に生じる、実際
の濃度と2値化した値との誤差を周辺の画素に分配して
その濃度を補正し、その補正後の濃度を所定閾値にて判
定して、2値の値のいずれかに決定する処理である。
In addition to the above, there is an error diffusion method as a method for achieving both gradation reproducibility and high resolution, which is given a relatively good evaluation among various conventional methods. The error diffusion method is a method of distributing an error between an actual density and a binarized value, which occurs when binarizing a halftone pixel, to peripheral pixels, correcting the density, and then correcting the density. Is determined by a predetermined threshold value and is determined as one of binary values.

【0004】しかし、このような誤差拡散法は、濃度が
急激に変化するエッジ部においては、分配される誤差が
一定値に達するまで補正が反映されず、高濃度から低濃
度に変化するエッジ部においては、低濃度領域での記録
画素が誤差の拡散される方向に偏り、低濃度から高濃度
に変化するエッジ部においては、高濃度領域での非記録
画素が誤差の拡散方向に偏るという問題があった。
However, in such an error diffusion method, in the edge portion where the density changes abruptly, the correction is not reflected until the distributed error reaches a constant value, and the edge portion where the density changes from high density to low density. In the above, the problem is that the recorded pixels in the low density area are biased in the direction in which the error is diffused, and the non-recorded pixels in the high density area are biased in the error diffusion direction at the edge portion where the density changes from low density to high density was there.

【0005】この問題を解決するために、出願人は既に
特願平6−175311号にて、従来は上記所定閾値が
固定化されている点に着目して、各画素の入力濃度に基
づいて閾値を決定するという方式を提案している。この
方式によれば、エッジ部において画素が誤差の拡散され
る方向に偏っているという問題が解決される。
In order to solve this problem, the applicant has already proposed in Japanese Patent Application No. 6-175311 that the above-mentioned predetermined threshold value is fixed, and based on the input density of each pixel. We propose a method to determine the threshold. According to this method, the problem that the pixels are biased in the direction in which the error is diffused at the edge portion is solved.

【0006】[0006]

【発明が解決しようとする課題】しかし、この方式は画
像の鮮鋭度が低下する傾向にあり、主観評価の低下を招
くことが判った。本発明は、各画素の入力濃度に基づい
て閾値を決定するという方式の改良に関するものであ
り、濃度が急激に変化するエッジ部においても画素が誤
差の分配方向に偏ることが無く、かつ、鮮鋭度の低下を
抑えた、より好ましい疑似中間調画像を作成できる画像
処理装置を提供することを目的とする。
However, it has been found that this method tends to reduce the sharpness of the image, which leads to a reduction in subjective evaluation. The present invention relates to an improvement in a method of determining a threshold value based on the input density of each pixel, and even in an edge portion where the density changes abruptly, the pixels are not biased in the error distribution direction, and the sharpness is sharp. It is an object of the present invention to provide an image processing apparatus capable of creating a more preferable pseudo halftone image in which the deterioration of the degree is suppressed.

【0007】[0007]

【課題を解決するための手段】請求項1記載の発明は、
中間調画像を2値化して疑似中間調の画像データを作成
する画像処理装置において、上記中間調画像のエッジ強
調処理を行うことにより各画素の濃度を補正するエッジ
強調手段と、上記エッジ強調手段により補正された各画
素の濃度を誤差拡散法により2値化するとともに、上記
2値化に用いられる閾値が各画素の濃度に応じて決定さ
れる2値化処理手段と、を備えたことを特徴とする画像
処理装置である。
According to the first aspect of the present invention,
In an image processing device for binarizing a halftone image to create pseudo halftone image data, an edge enhancing means for correcting the density of each pixel by performing an edge enhancing process on the halftone image, and the edge enhancing means. The binarization processing means for binarizing the density of each pixel corrected by the error diffusion method by an error diffusion method and determining the threshold value used for the binarization according to the density of each pixel is provided. This is a characteristic image processing apparatus.

【0008】請求項2記載の発明は、上記エッジ強調手
段は、各画素の濃度Iと各画素の左右の画素の濃度I
L,IRとに基づいて補正後の濃度I′を次式
According to a second aspect of the present invention, the edge emphasizing means has a density I of each pixel and a density I of pixels on the left and right of each pixel.
Based on L and IR, the corrected concentration I ′ is calculated by the following equation.

【0009】[0009]

【数3】 (Equation 3)

【0010】によって決定することを特徴とする請求項
1記載の画像処理装置。請求項3記載の発明は、上記2
値化処理手段は、各画素の濃度の2値化に用いられる閾
値を各画素の濃度に応じて画素毎に決定する閾値可変手
段と、周辺画素から分配された2値化誤差和により各画
素の濃度を補正して補正入力濃度を求める補正入力濃度
演算手段と、上記補正入力濃度演算手段によって求めら
れた補正入力濃度と上記閾値可変手段により決定された
閾値とを比較して各画素の出力濃度を決定する出力濃度
決定手段と、上記出力濃度決定手段により決定された出
力濃度と上記補正入力濃度演算手段により求められた補
正入力濃度とから各画素で発生した2値化誤差を演算す
る2値化誤差演算手段と、上記2値化誤差を重み付けし
て周辺画素に分配する2値化誤差分配手段と、からなる
ことを特徴とする請求項1または2記載の画像処理装置
である。
The image processing apparatus according to claim 1, characterized in that The invention according to claim 3 is the above 2
The binarization processing unit determines the threshold value used for binarizing the density of each pixel for each pixel according to the density of each pixel, and the sum of the binarization errors distributed from the surrounding pixels for each pixel. Output of each pixel by comparing the corrected input density calculated by the corrected input density calculation means with the threshold value determined by the threshold value changing means. A binarization error generated in each pixel is calculated from the output density determining means for determining the density, and the output density determined by the output density determining means and the corrected input density calculated by the corrected input density calculating means 2 The image processing apparatus according to claim 1 or 2, further comprising: a binarization error calculation unit and a binarization error distribution unit that weights the binarization error and distributes the binarization error to peripheral pixels.

【0011】請求項4記載の発明は、上記閾値可変手段
は、各画素の濃度Iに基づいて閾値Tval を、次式
According to a fourth aspect of the present invention, the threshold varying means calculates the threshold Tval based on the density I of each pixel by the following equation.

【0012】[0012]

【数4】 [Equation 4]

【0013】但し n:原中間調画像の階調数 A:0<A≦1を満足する任意の係数 によって決定することを特徴とする請求項3記載の画像
処理装置。請求項5記載の発明は、上記係数Aを、1/
2とすることを特徴とする請求項4記載の画像処理装置
である。
The image processing apparatus according to claim 3, wherein n is the number of gradations of the original halftone image, and A is determined by an arbitrary coefficient satisfying 0 <A ≦ 1. In the invention according to claim 5, the coefficient A is set to 1 /
The image processing apparatus according to claim 4, wherein the number is 2.

【0014】[0014]

【作用及び発明の効果】請求項1記載の画像処理装置
は、エッジ強調手段が、上記中間調画像のエッジ強調処
理を行うことにより各画素の濃度を補正する。その後、
2値化処理手段が、上記エッジ強調手段により補正され
た各画素の濃度を誤差拡散法により、各画素の濃度に応
じて決定される閾値を用いて2値化する。このように、
予め中間調画像のエッジ部を強調した後に、上記可変の
閾値を用いる誤差拡散法にて2値化しているので、可変
の閾値を用いる誤差拡散法に伴うエッジ部の鮮鋭度の低
下とエッジ強調処理に伴う鮮鋭度の向上とが相殺して、
エッジ部の鮮鋭度の低下が抑制できる。しかも、エッジ
強調処理を実施しても、エッジ部において画素が誤差の
拡散される方向に偏るといったことはない。したがっ
て、本発明の画像処理装置は、濃度が急激に変化するエ
ッジ部においても画素が誤差の分配方向に偏ることが無
く、かつ、鮮鋭度の低下を抑えた、より好ましい疑似中
間調画像を作成できる。
According to the image processing apparatus of the first aspect, the edge enhancing means corrects the density of each pixel by performing the edge enhancing process of the halftone image. afterwards,
The binarization processing unit binarizes the density of each pixel corrected by the edge enhancement unit by an error diffusion method using a threshold value determined according to the density of each pixel. in this way,
Since the edge part of the halftone image is emphasized in advance and binarized by the error diffusion method using the variable threshold value, the sharpness of the edge part is reduced and the edge emphasis is caused by the error diffusion method using the variable threshold value. The improvement in sharpness due to the treatment offsets,
It is possible to suppress a decrease in the sharpness of the edge portion. Moreover, even if the edge enhancement processing is performed, the pixels are not biased in the direction in which the error is diffused in the edge portion. Therefore, the image processing apparatus of the present invention creates a more preferable pseudo-halftone image in which the pixels are not biased in the error distribution direction even at the edge portion where the density changes abruptly, and the reduction in sharpness is suppressed. it can.

【0015】上記エッジ強調手段は、各画素の濃度Iと
各画素の左右の画素の濃度IL,IRとに基づいて補正後
の濃度I′を次式
The edge emphasizing means calculates the corrected density I'based on the density I'of each pixel and the densities IL and IR of the pixels on the left and right of each pixel as follows.

【0016】[0016]

【数5】 (Equation 5)

【0017】によって決定するように構成することがで
きる。このほか上下左右の画素の濃度IU,ID,IL,
IRに基づいて、次式のように補正後の濃度I′を求め
てもよい。
Can be configured to be determined by In addition, the densities IU, ID, IL
Based on IR, the corrected density I'may be obtained as in the following equation.

【0018】[0018]

【数6】 (Equation 6)

【0019】なお、これ以外にもエッジ強調処理として
画像処理にて一般的に用いられている処理を用いること
ができる。上記2値化処理手段は、例えば、閾値可変手
段が各画素の濃度の2値化に用いられる閾値を各画素の
濃度に応じて画素毎に決定し、補正入力濃度演算手段が
周辺画素から分配された2値化誤差和により各画素の濃
度を補正して補正入力濃度を求め、出力濃度決定手段が
上記補正入力濃度演算手段によって求められた補正入力
濃度と上記閾値可変手段により決定された閾値とを比較
して各画素の出力濃度を決定し、2値化誤差演算手段が
上記出力濃度決定手段により決定された出力濃度と上記
補正入力濃度演算手段により求められた補正入力濃度と
から各画素で発生した2値化誤差を演算し、2値化誤差
分配手段が上記2値化誤差を重み付けして周辺画素に分
配することにより、実現される。
Other than this, it is possible to use processing generally used in image processing as the edge enhancement processing. In the binarization processing means, for example, the threshold varying means determines a threshold value used for binarizing the density of each pixel for each pixel according to the density of each pixel, and the correction input density calculating means distributes from the peripheral pixels. The density of each pixel is corrected by the sum of the binarized errors thus obtained to obtain the corrected input density, and the output density determining means determines the corrected input density calculated by the corrected input density calculating means and the threshold value determined by the threshold varying means. And the output density of each pixel is determined, and the binarization error calculating means calculates the output density of each pixel from the output density determined by the output density determining means and the corrected input density calculated by the corrected input density calculating means. This is realized by calculating the binarization error that has occurred in step (1) and weighting the binarization error by the binarization error distribution means to distribute the binarization error to peripheral pixels.

【0020】上記閾値可変手段は、各画素の濃度Iに基
づいて閾値Tval を、次式
The threshold varying means calculates the threshold Tval based on the density I of each pixel by the following equation:

【0021】[0021]

【数7】 (Equation 7)

【0022】但し n:原中間調画像の階調数 A:0<A≦1を満足する任意の係数 によって決定するよう構成してもよい。上記係数Aは、
例えば、1/2とする。
However, n may be determined by an arbitrary coefficient that satisfies the gradation number of the original halftone image A: 0 <A ≦ 1. The coefficient A is
For example, it is set to 1/2.

【0023】[0023]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。図1は、本発明における一実施例を
具体化した画像処理回路1を示すブロック図である。本
実施例における誤差拡散処理を行う画像処理回路1は、
コンピュータとして構成されており、入力データに所要
の演算処理を施すものである。この画像処理回路1は、
ディジタル電気信号で入力された中間調の原画像情報の
一部を記憶する原画像記憶装置(画像メモリ)3と、各
計算結果を格納するRAM5と、ROM7と、RAM5
を用いて各種画像処理を行うCPU9と、誤差拡散処理
後のデータを記憶する出力画像記憶装置(画像メモリ)
11とにより構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an image processing circuit 1 embodying an embodiment of the present invention. The image processing circuit 1 that performs the error diffusion processing in this embodiment is
It is configured as a computer and performs required arithmetic processing on input data. This image processing circuit 1
An original image storage device (image memory) 3 for storing a part of halftone original image information input by a digital electric signal, a RAM 5 for storing each calculation result, a ROM 7, and a RAM 5
CPU 9 for performing various image processings using an output image storage device (image memory) for storing data after error diffusion processing
11 and 11.

【0024】前記ROM7には、画像処理プログラムや
周辺画素の2値化誤差の分配に対する重み付けの係数マ
トリクスや、エッジ強調処理を行う際に用いる係数値を
格納したエッジ強調係数、更に基準閾値などが記憶され
ている。撮像装置や既に撮影された画像データを記憶す
る外部記憶装置等の画像入力手段(図示しない)から入
力された原画像の中間調画像データは、バス13を介し
て原画像記憶装置3に記憶される。原画像データの入力
は、1画素毎でも、1ライン毎でも、また、1画面分送
られても構わない。この格納された中間調画像情報に対
して、CPU9がROM7内の画像処理プログラムや上
記マトリクス等のデータを用いてエッジ強調処理及び誤
差拡散処理を行う。
The ROM 7 stores an image processing program, a weighting coefficient matrix for distribution of binarization errors of peripheral pixels, an edge emphasis coefficient storing coefficient values used when performing edge emphasis processing, and a reference threshold value. Remembered Halftone image data of an original image input from an image input unit (not shown) such as an image pickup device or an external storage device that stores already captured image data is stored in the original image storage device 3 via the bus 13. It The original image data may be input pixel by pixel, line by line, or sent for one screen. The CPU 9 performs edge enhancement processing and error diffusion processing on the stored halftone image information using the image processing program in the ROM 7 and the data such as the matrix.

【0025】以下に、図2,図3を参照して、エッジ強
調処理を行った後、誤差拡散処理にて補正入力濃度及び
閾値を計算して出力値を決定する手順を説明する。な
お、中間調の原画像データの階調数は、0〜255の2
56階調であるとする。図2は、本実施例における2値
化処理の処理手順を示すフローチャートである。
A procedure for determining the output value by calculating the corrected input density and the threshold value by the error diffusion processing after performing the edge enhancement processing will be described below with reference to FIGS. It should be noted that the number of gradations of the halftone original image data is 2 from 0 to 255.
It is assumed that there are 56 gradations. FIG. 2 is a flowchart showing the processing procedure of the binarization processing in this embodiment.

【0026】まず、画像入力手段によって入力された原
画像データが格納された原画像記憶装置3から、最初の
注目画素の入力濃度Ix,yを取り出す(S10)。そし
て、注目画素の入力濃度Ix,yと、図3(a)に示すご
とく、その注目画素に対して上下左右に隣接する4画素
の濃度Ix,y-1、Ix-1,y、Ix+1,y、Ix,y+1とに基づい
て、ROM7から読みだしたエッジ強調係数を用いて、
式1に従ってエッジ強調処理を行い、第一補正入力濃度
I′x,yを求める(S20)。
First, the input density Ix, y of the first pixel of interest is retrieved from the original image storage device 3 in which the original image data input by the image input means is stored (S10). Then, as shown in FIG. 3A, the input densities Ix, y of the target pixel and the densities Ix, y-1, Ix-1, y, Ix + of the four pixels vertically and horizontally adjacent to the target pixel are shown. Using the edge enhancement coefficient read from the ROM 7 based on 1, y, Ix, y + 1,
Edge enhancement processing is performed in accordance with Expression 1 to obtain the first corrected input density I'x, y (S20).

【0027】[0027]

【数8】 (Equation 8)

【0028】式1の「3」、「1/2」がエッジ強調係
数であって、所望の強調の程度により、変更することが
できる。また左右に隣接する2画素の濃度Ix-1,y、Ix
+1,yに基づく場合は、式2のようにされる。この場合
は、「2」、「1/2」がエッジ強調係数である。
"3" and "1/2" in the equation 1 are edge emphasis coefficients, which can be changed according to a desired degree of emphasis. Also, the densities Ix-1, y, Ix of the two pixels adjacent to the left and right
When it is based on + 1, y, it is expressed by Expression 2. In this case, "2" and "1/2" are edge emphasis coefficients.

【0029】[0029]

【数9】 [Equation 9]

【0030】次に、第一補正入力濃度I′x,yに基づ
き、注目画素に対する閾値Tvalx,yを決定する(S
30)。本実施例では、式3に従って、閾値Tvalx,
yを決定している。
Next, the threshold value Tvalx, y for the target pixel is determined based on the first corrected input density I'x, y (S
30). In the present embodiment, the threshold value Tvalx,
y is determined.

【0031】[0031]

【数10】 [Equation 10]

【0032】この128は、階調数256の半分の値を
表している。例えば階調数が1024であれば、512
が128の代わりに設定される。また式3の1/2の代
わりに1以下の正の値でもよい。次に、式4のごとく、
第一補正入力濃度I′x,yに、注目画素に周辺画素から
分配された周辺画素における2値化誤差の重み付け誤差
和Eを加算し、第二補正入力濃度I″x,yを計算する
(S40)。
This 128 represents a half value of the number of gradations 256. For example, if the number of gradations is 1024, 512
Is set instead of 128. Further, a positive value of 1 or less may be used instead of 1/2 in Expression 3. Next, as shown in Equation 4,
The second correction input density I ″ x, y is calculated by adding the weighting error sum E of the binarization errors in the peripheral pixels distributed from the peripheral pixel to the target pixel to the first correction input density I′x, y. (S40).

【0033】[0033]

【数11】 [Equation 11]

【0034】この誤差和Eは、今回の注目画素の処理以
前に処理された画素における、後述するステップS11
0での2値化誤差の分配により、各画素の2値化誤差記
憶用バッファ内に蓄積されて既に得られている値であ
る。ここで、上記閾値Tvalx,yと第二補正入力濃度
I″x,yを比較して(S50)、2値となる出力濃度Ie
の値を決定する(S60,S70)。I″x,y≧Tva
lx,yの場合には出力濃度Ieが「255」となり(S6
0)、I″x,y<Tvalx,yの場合には出力濃度Ieは
「0」となる(S70)。このようにして決定された出
力濃度Ieを出力画像記憶装置11に格納する(S8
0)。
This error sum E is obtained in step S11, which will be described later, in the pixel processed before the current pixel of interest is processed.
It is a value that has already been obtained by accumulating in the binarization error storage buffer of each pixel due to the binarization error distribution of 0. Here, the threshold value Tvalx, y is compared with the second corrected input density I ″ x, y (S50), and the binary output density Ie is obtained.
The value of is determined (S60, S70). I ″ x, y ≧ Tva
In the case of lx, y, the output density Ie becomes "255" (S6
0) and I ″ x, y <Tval x, y, the output density Ie becomes “0” (S70). The output density Ie thus determined is stored in the output image storage device 11 (S8).
0).

【0035】次に、注目画素で発生した2値化誤差eを
算出する(S90)。2値化誤差eは、式5に示すごと
く、上記第二補正入力濃度I″x,yから出力濃度Ieを引
いたものである。
Next, the binarization error e generated in the target pixel is calculated (S90). The binarization error e is obtained by subtracting the output density Ie from the second corrected input density I ″ x, y as shown in Expression 5.

【0036】[0036]

【数12】 (Equation 12)

【0037】この注目画素の2値化誤差eを、周辺画素
に分配するために、まず、ROM7から、式6に示す重
み付け係数マトリクスαを読み出す(S100)。この
重み付け係数マトリクスαを用いて、周辺画素に注目画
素に発生した2値化誤差を分配する(S110)。即
ち、「*」で表される注目画素に対して図3(b)に示
すごとくの位置関係にある係数値を、重み付け係数マト
リクスαの各要素と全要素の合計との比から得て、注目
画素の2値化誤差に乗算し、該当する位置の画素の2値
化誤差記憶用のバッファに加算する。
In order to distribute the binarization error e of the target pixel to the peripheral pixels, first, the weighting coefficient matrix α shown in Equation 6 is read from the ROM 7 (S100). Using this weighting coefficient matrix α, the binarization error generated in the target pixel is distributed to the peripheral pixels (S110). That is, the coefficient value having the positional relationship as shown in FIG. 3B with respect to the pixel of interest represented by “*” is obtained from the ratio of each element of the weighting coefficient matrix α and the sum of all elements, The binarization error of the pixel of interest is multiplied and added to the buffer for storing the binarization error of the pixel at the corresponding position.

【0038】[0038]

【数13】 (Equation 13)

【0039】例えば、注目画素の右隣の画素について
は、重み付け係数として「7/48(式6のマトリクス
αの「*」の右隣の要素/全要素の合計)」が得られ、
その結果右隣の画素についてはe×7/48が加算され
ることになる。こうして、座標(x,y)の位置の画素
の処理が終了し、次の未処理の画素が存在するか否かが
判定され(S120)、存在すれば、次の座標の画素が
注目画素として設定されて(S130)、上述した処理
が繰り返される。
For example, for the pixel to the right of the pixel of interest, "7/48 (the element to the right of" * "in the matrix α of equation 6 / the sum of all elements)" is obtained as the weighting coefficient,
As a result, e × 7/48 is added to the pixel on the right side. In this way, the processing of the pixel at the position of the coordinates (x, y) is completed, and it is determined whether or not the next unprocessed pixel exists (S120). If there is, the pixel at the next coordinate is set as the pixel of interest. After being set (S130), the above-described processing is repeated.

【0040】尚、画素の処理順序は、最上ラインの左の
画素から水平方向右へ処理し、同じ処理を順次、一ライ
ンずつ下に移して行くことにより、最後に右下の画素の
処理となる順序である。そして、すべての画素について
上述した処理が実行されれば、2値化処理を終了する。
The processing order of the pixels is that the leftmost pixel in the uppermost line is processed horizontally to the right, and the same processing is sequentially moved downward by one line to finally process the lower right pixel. Is the order. Then, if the above-described processing is executed for all the pixels, the binarization processing ends.

【0041】本実施例は上述したごとく、誤差拡散法に
おいて、2値化の閾値を各画素の濃度に応じて決定して
いるため、濃度が急激に変化するエッジ部においても画
素が誤差の分配方向に偏ることが無い。更に、誤差拡散
法によるエッジ強調処理を実行しているため、鮮鋭度の
低下を抑制し、より好ましい疑似中間調画像を作成でき
る。
As described above, in the present embodiment, since the threshold value for binarization is determined according to the density of each pixel in the error diffusion method, even if the edge portion where the density changes abruptly, the error distribution of pixels is distributed. There is no bias in the direction. Furthermore, since the edge enhancement processing by the error diffusion method is executed, it is possible to suppress a decrease in sharpness and create a more preferable pseudo halftone image.

【0042】上記実施例において、ステップS20がエ
ッジ強調手段としての処理に該当し、ステップS30が
閾値可変手段としての処理に該当し、ステップS40が
補正入力濃度演算手段としての処理に該当し、ステップ
S50,S60,S70が出力濃度決定手段としての処
理に該当し、ステップS90が2値化誤差演算手段とし
ての処理に該当し、ステップS100,S110が2値
化誤差分配手段としての処理に該当する。
In the above embodiment, step S20 corresponds to the processing as the edge enhancing means, step S30 corresponds to the processing as the threshold varying means, step S40 corresponds to the processing as the corrected input density calculating means, and step S40 S50, S60, and S70 correspond to the process as the output density determining unit, step S90 corresponds to the process as the binarizing error calculating unit, and steps S100 and S110 correspond to the process as the binarizing error distributing unit. .

【0043】[その他]上記実施例では、エッジ強調処
理(S20)と、誤差拡散法(S30〜S110)と
は、各画素について連続して処理していたが、予め全画
素に対してエッジ強調処理(S20)を実行しておき、
その後、誤差拡散法(S30〜S110)を実行するよ
うにしてもよい。この他、エッジ強調処理(S20)を
一装置で実施し、そのデータを、他の装置に入力して誤
差拡散法(S30〜S110)を実施するようにしても
よい。
[Others] In the above embodiment, the edge enhancement processing (S20) and the error diffusion method (S30 to S110) were successively performed for each pixel. The processing (S20) is executed,
After that, the error diffusion method (S30 to S110) may be executed. Alternatively, the edge enhancement process (S20) may be performed by one device, and the data may be input to another device to perform the error diffusion method (S30 to S110).

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

【図1】 一実施例の画像処理回路を示すブロック図で
ある。
FIG. 1 is a block diagram illustrating an image processing circuit according to an embodiment.

【図2】 その2値化処理のフローチャートである。FIG. 2 is a flowchart of the binarization process.

【図3】 注目画素と周辺画素との関係を示す説明図で
あり、(a)はエッジ強調処理の説明図、(b)は誤差
分配処理の説明図である。
3A and 3B are explanatory diagrams showing a relationship between a target pixel and peripheral pixels, FIG. 3A is an explanatory diagram of edge enhancement processing, and FIG. 3B is an explanatory diagram of error distribution processing.

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

1…画像処理回路 3…原画像記憶装置 5…
RAM 7…ROM 9…CPU 11…出力画像記憶装
置 13…バス
1 ... Image processing circuit 3 ... Original image storage device 5 ...
RAM 7 ... ROM 9 ... CPU 11 ... Output image storage device 13 ... Bus

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/68 320 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06F 15/68 320 A

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】中間調画像を2値化して疑似中間調の画像
データを作成する画像処理装置において、 上記中間調画像のエッジ強調処理を行うことにより各画
素の濃度を補正するエッジ強調手段と、 上記エッジ強調手段により補正された各画素の濃度を誤
差拡散法により2値化するとともに、上記2値化に用い
られる閾値が各画素の濃度に応じて決定される2値化処
理手段と、 を備えたことを特徴とする画像処理装置。
1. An image processing apparatus for binarizing a halftone image to create pseudo halftone image data, comprising: edge enhancing means for correcting the density of each pixel by performing edge enhancement processing of the halftone image. A binarization processing unit that binarizes the density of each pixel corrected by the edge enhancement unit by an error diffusion method and determines a threshold value used for the binarization according to the density of each pixel; An image processing apparatus comprising:
【請求項2】上記エッジ強調手段は、各画素の濃度Iと
各画素の左右の画素の濃度IL,IRとに基づいて補正後
の濃度I′を次式 【数1】 によって決定することを特徴とする請求項1記載の画像
処理装置。
2. The edge emphasizing means calculates a corrected density I'based on the density I of each pixel and the densities IL and IR of the pixels on the left and right of each pixel by the following equation: ## EQU1 ## The image processing device according to claim 1, wherein the image processing device is determined by
【請求項3】上記2値化処理手段は、 各画素の濃度の2値化に用いられる閾値を各画素の濃度
に応じて画素毎に決定する閾値可変手段と、 周辺画素から分配された2値化誤差和により各画素の濃
度を補正して補正入力濃度を求める補正入力濃度演算手
段と、 上記補正入力濃度演算手段によって求められた補正入力
濃度と上記閾値可変手段により決定された閾値とを比較
して各画素の出力濃度を決定する出力濃度決定手段と、 上記出力濃度決定手段により決定された出力濃度と上記
補正入力濃度演算手段により求められた補正入力濃度と
から各画素で発生した2値化誤差を演算する2値化誤差
演算手段と、 上記2値化誤差を重み付けして周辺画素に分配する2値
化誤差分配手段と、 からなることを特徴とする請求項1または2記載の画像
処理装置。
3. The binarization processing means, threshold value varying means for determining a threshold value used for binarizing the density of each pixel for each pixel according to the density of each pixel, and 2 distributed from peripheral pixels. The correction input density calculation means for correcting the density of each pixel by the sum of the binarization error to obtain the correction input density, the correction input density calculated by the correction input density calculation means, and the threshold value determined by the threshold value varying means. 2 generated at each pixel from the output density determining means for comparing and determining the output density of each pixel, and the output density determined by the output density determining means and the corrected input density calculated by the corrected input density calculating means. 3. A binarization error calculation means for computing a binarization error, and a binarization error distribution means for weighting the binarization error and distributing the binarization error to peripheral pixels. Image processing Apparatus.
【請求項4】上記閾値可変手段は、各画素の濃度Iに基
づいて閾値Tval を、次式 【数2】 但し n:原中間調画像の階調数 A:0<A≦1を満足する任意の係数 によって決定することを特徴とする請求項3記載の画像
処理装置。
4. The threshold varying means calculates the threshold Tval based on the density I of each pixel by the following equation: However, the image processing apparatus according to claim 3, wherein: n is the number of gradations of the original halftone image, and A is determined by an arbitrary coefficient that satisfies 0 <A ≦ 1.
【請求項5】上記係数Aを、1/2とすることを特徴と
する請求項4記載の画像処理装置。
5. The image processing apparatus according to claim 4, wherein the coefficient A is 1/2.
JP6240379A 1994-10-04 1994-10-04 Image processing unit Pending JPH08107499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6240379A JPH08107499A (en) 1994-10-04 1994-10-04 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6240379A JPH08107499A (en) 1994-10-04 1994-10-04 Image processing unit

Publications (1)

Publication Number Publication Date
JPH08107499A true JPH08107499A (en) 1996-04-23

Family

ID=17058620

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6240379A Pending JPH08107499A (en) 1994-10-04 1994-10-04 Image processing unit

Country Status (1)

Country Link
JP (1) JPH08107499A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013199031A (en) * 2012-03-23 2013-10-03 Canon Inc Printer device, printing method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013199031A (en) * 2012-03-23 2013-10-03 Canon Inc Printer device, printing method, and program

Similar Documents

Publication Publication Date Title
JP3222183B2 (en) Image processing device
JP2001113754A (en) Apparatus and method for processing image
JPH07288689A (en) Device and method for binarization processing of image signal
JP3810835B2 (en) Image processing method using error diffusion and halftone processing
JPH0846784A (en) Image processing unit
JPH07307866A (en) Processing unit and method for binarizing image signal
JPH08111777A (en) Image processor
JPH08107499A (en) Image processing unit
JPS63209370A (en) Image signal processor
JP3787890B2 (en) Image processing device
JP3300582B2 (en) Image processing device
JPH11150659A (en) Method for processing image
JP2916171B2 (en) Image processing device
JP3285349B2 (en) Dither image enlarger
JP3094810B2 (en) Color image processing equipment
JP2000354163A (en) Image processing method
JP2717020B2 (en) Image processing device
JP2898322B2 (en) Halftone estimation method for dither image
JP2608404B2 (en) Image processing device
JP2857906B2 (en) Halftone binarization processor
JP3302426B2 (en) Image processing method
JPH08116443A (en) Image processing unit
JPH09135349A (en) Image processor
JP3091935B2 (en) Multi-value estimation method
JPH09247450A (en) Image processing unit