JP2002262089A - Device and method for processing halftone - Google Patents

Device and method for processing halftone

Info

Publication number
JP2002262089A
JP2002262089A JP2001060082A JP2001060082A JP2002262089A JP 2002262089 A JP2002262089 A JP 2002262089A JP 2001060082 A JP2001060082 A JP 2001060082A JP 2001060082 A JP2001060082 A JP 2001060082A JP 2002262089 A JP2002262089 A JP 2002262089A
Authority
JP
Japan
Prior art keywords
block
blocks
pixels
halftone processing
halftone
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.)
Granted
Application number
JP2001060082A
Other languages
Japanese (ja)
Other versions
JP3859122B2 (en
Inventor
Masatoshi Matsudaira
正年 松平
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2001060082A priority Critical patent/JP3859122B2/en
Publication of JP2002262089A publication Critical patent/JP2002262089A/en
Application granted granted Critical
Publication of JP3859122B2 publication Critical patent/JP3859122B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To process a halftone at high speed by reducing an arithmetic amount. SOLUTION: An inputted image is made into a block by n×n pixel (e.g. 2×2 pixel) and the gradation value of each pixel constituting the block is added. Binarization is performed in the block by adapting a dither matrix, etc., for example, concerning the block where gradation is added. Then a difference between the binarized output gradation value and the inputted gradation adding value is obtained and diffused by a prescribed ratio to another block which exists in the circumference of the block. A dither processing is performed in the block and also the error is diffused by block unit so that the arithmetic amount is reduced to process the halftone at high speed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、多階調の入力画像
をハーフトーン処理するのに用いて好適なハーフトーン
処理装置及びハーフトーン処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a halftone processing apparatus and a halftone processing method suitable for performing halftone processing on a multi-tone input image.

【0002】[0002]

【従来の技術】例えば、プリンタ等の画像出力機器で
は、ドットの有無によって画像を表現するため、本質的
に二階調で画像を表現する。そこで、プリンタ等の機器
では、複数のドットから各画素を表現し、階調値に応じ
てドットのオンオフパターンを変化させることにより、
擬似的な連続階調を実現している。
2. Description of the Related Art For example, in an image output device such as a printer, an image is expressed by two gradations in order to express an image by the presence or absence of a dot. Therefore, in a device such as a printer, each pixel is represented by a plurality of dots, and by changing an on / off pattern of the dots in accordance with a gradation value,
A pseudo continuous tone is realized.

【0003】この中間階調表現技術はハーフトーン(ha
lftone)と呼ばれ、ハーフトーンの方法としては、例え
ば、ディザ法(dither)や誤差拡散法が知られている。
ディザ法では、ディザマトリクス等を用いることによ
り、入力された画素の階調をドットの粗密に変換する。
誤差拡散法では、各画素の入力階調と出力されるハーフ
トーンセルの階調値との誤差を計算し、累積誤差が零と
なるように、入力値と出力値との差分を周囲の画素に分
散させる。従って、誤差拡散法の方が、単純なディザ法
よりも高度な処理を行っており、その分、ハーフトーン
処理の精度が向上している。
[0003] This halftone expression technique uses halftone (ha
lftone), and as a halftone method, for example, a dither method (dither) or an error diffusion method is known.
In the dither method, the gradation of an input pixel is converted to a density of dots by using a dither matrix or the like.
In the error diffusion method, an error between an input tone of each pixel and a tone value of a halftone cell to be output is calculated, and a difference between an input value and an output value is calculated so that a cumulative error becomes zero. Disperse in. Therefore, the error diffusion method performs more advanced processing than the simple dither method, and the halftone processing accuracy is improved accordingly.

【0004】[0004]

【発明が解決しようとする課題】上述した通り、誤差拡
散法によれば、累積誤差が0となるように、各画素に割
り当てるドットの粗密パターンを決定していくため、演
算量が多く、CPUの負荷が増大する。特に、カラー画
像の場合は、各画素各色成分毎に演算を行う必要がある
ため、CPUの負担が大きい。
As described above, according to the error diffusion method, the density pattern of dots to be allocated to each pixel is determined so that the accumulated error becomes zero. Load increases. In particular, in the case of a color image, it is necessary to perform an operation for each color component of each pixel, so that the CPU burden is large.

【0005】従って、パーソナルコンピュータやワーク
ステーション等のように、演算能力の優れたCPUと多
くのメモリを利用できる場合はともかく、例えば、プリ
ンタやデジタルカメラあるいはスキャナ等の機器に組み
込まれる組込型CPUは、一般的に演算能力が低いた
め、誤差拡散法によってハーフトーン処理を行うと、他
の処理を行うことができず、印刷処理全体の効率が低下
する。
[0005] Therefore, aside from the case where a CPU having a high computing capacity and a large amount of memory can be used as in a personal computer or a workstation, for example, an embedded CPU incorporated in a device such as a printer, a digital camera or a scanner. In general, since the calculation capability is low, if the halftone process is performed by the error diffusion method, other processes cannot be performed, and the efficiency of the entire printing process is reduced.

【0006】本発明は、上記のような課題に鑑みなされ
たもので、その目的は、高速にハーフトーン処理を行え
るようにしたハーフトーン処理装置及びハーフトーン処
理方法を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to provide a halftone processing apparatus and a halftone processing method capable of performing a halftone processing at high speed.

【0007】[0007]

【課題を解決するための手段】上記目的達成のため、本
発明では、それぞれ処理単位を変えた複数のハーフトー
ンアルゴリズムを用いて、ハーフトーン処理を行う。
In order to achieve the above-mentioned object, in the present invention, halftone processing is performed using a plurality of halftone algorithms with different processing units.

【0008】即ち、本発明のハーフトーン処理装置は、
入力画像を所定の複数画素単位でブロック化するブロッ
ク化手段と、ブロック単位で誤差拡散させる誤差拡散処
理手段と、誤差拡散された各ブロックを該各ブロック内
でそれぞれディザ処理するデザ処理手段とを備えてい
る。
That is, the halftone processing apparatus of the present invention comprises:
Blocking means for blocking an input image in units of a predetermined plurality of pixels, error diffusion processing means for performing error diffusion in block units, and dither processing means for dithering each error-diffused block in each block. Have.

【0009】ブロック化手段は、入力画像を所定の複数
画素単位で扱う。例えば、ブロック化手段は、n×n画
素のブロックサイズでブロック化し、ブロック内の各画
素の値を加算して出力させる。あるいは、ブロック化手
段は、ブロック内の各画素の値を平均化して出力するこ
ともできる。誤差拡散処理手段は、ブロック単位で誤差
拡散処理を行う。即ち、誤差拡散処理手段は、あるブロ
ックの入力値(加算値又は平均値)と出力値との誤差
を、該ブロックの周辺に位置する他のブロックに所定の
比率で分散させる。ディザ処理手段は、例えば、所定の
ディザマトリクスを用いる等により、各ブロック内でデ
ィザ処理を行う。各ブロック内でディザ処理を行う一
方、ブロック単位で誤差拡散処理を行うことにより、ブ
ロックサイズによっても相違するが、誤差拡散に要する
演算を少なくして、高速にハーフトーン処理を行うこと
ができる。
The blocking means handles the input image in units of a predetermined plurality of pixels. For example, the blocking unit divides the data into blocks with a block size of n × n pixels, and adds and outputs the values of the pixels in the block. Alternatively, the blocking unit may average and output the value of each pixel in the block. The error diffusion processing means performs an error diffusion process on a block basis. That is, the error diffusion processing means distributes an error between an input value (addition value or average value) and an output value of a certain block at a predetermined ratio to other blocks located around the block. The dither processing means performs dither processing in each block by using, for example, a predetermined dither matrix. By performing the error diffusion processing in each block while performing the error diffusion processing in each block, the arithmetic operation required for the error diffusion can be reduced and the halftone processing can be performed at a high speed, although it differs depending on the block size.

【0010】ここで、ブロックサイズは、入力画像中に
存在するエッジよりも小さくなるように設定することが
できる。本発明では、複数画素からなるブロック単位で
誤差拡散処理を行うため、ブロックサイズよりも狭いエ
ッジ(強いエッジ)が存在すると、ブロック単位の誤差
拡散によってエッジの急峻さが失われる可能性があるた
めである。
Here, the block size can be set so as to be smaller than an edge existing in the input image. In the present invention, since the error diffusion processing is performed in units of blocks composed of a plurality of pixels, if there is an edge narrower than the block size (strong edge), the sharpness of the edges may be lost due to error diffusion in block units. It is.

【0011】そこで、好適な実施形態では、更に、入力
画像の性質に応じてブロックサイズを設定するブロック
サイズ設定手段を備えている。入力画像の性質として
は、例えば、急峻なエッジの少ない風景等の画像である
か、エッジの多いテキストやグラフィックス主体の画像
であるか、入力画像の解像度(低解像度の画像か高解像
度の画像か)等を挙げることができる。
Therefore, in a preferred embodiment, there is further provided a block size setting means for setting a block size according to the properties of the input image. The characteristics of the input image include, for example, an image of a landscape with few sharp edges, an image mainly composed of text or graphics with many edges, and a resolution of the input image (a low-resolution image or a high-resolution image). ?) And the like.

【0012】また、ブロックサイズ設定手段は、出力画
像の品質に応じてブロックサイズを設定することもでき
る。例えば、ユーザーが処理時間よりも出力品質を重視
するような場合には、ブロックサイズを小さく設定し、
試し刷りやサムネイル印刷のように出力品質をそれほど
問わない場合は、ブロックサイズを大きく設定すること
ができる。
Further, the block size setting means can set the block size according to the quality of the output image. For example, if the user emphasizes output quality over processing time, set a smaller block size,
When the output quality is not so important, such as in trial printing or thumbnail printing, the block size can be set large.

【0013】[0013]

【発明の実施の形態】以下、図1〜図7に基づき、本発
明の実施の形態をプリンタに適用した場合を例に挙げて
説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a perspective view of a printer according to an embodiment of the present invention; FIG.

【0014】1.第1の実施の形態 図1〜図4は本発明の第1の実施の形態に係るハーフト
ーン処理装置が適用されたプリンタの構成を示すブロッ
ク図である。
1. First Embodiment FIGS. 1 to 4 are block diagrams showing a configuration of a printer to which a halftone processing device according to a first embodiment of the present invention is applied.

【0015】プリンタ1は、それぞれ後述するように、
メモリカード2,復号部3,RGB変換部4,拡大/縮
小処理部5,CMYK色変換部6,ハーフトーン処理部
7及びプリントエンジン8を備えて構成されている。
As will be described later, the printer 1
It comprises a memory card 2, a decoding unit 3, an RGB conversion unit 4, an enlargement / reduction processing unit 5, a CMYK color conversion unit 6, a halftone processing unit 7, and a print engine 8.

【0016】例えば、「原画像保持手段」として表現可
能なメモリカードは、プリンタ1に着脱可能に設けられ
ており、ディジタルカメラ等で撮影した画像データ(原
画像データ)を内部に記録している。メモリカード2に
は、例えば、JPEG(Joint Photographic Experts Grou
p)やExif(Exchangeable Image File Format)等の圧
縮ファイル形式で複数の画像データが格納可能である。
For example, a memory card which can be expressed as "original image holding means" is provided in the printer 1 in a detachable manner, and internally stores image data (original image data) photographed by a digital camera or the like. . The memory card 2 includes, for example, JPEG (Joint Photographic Experts Group
A plurality of image data can be stored in a compressed file format such as p) or Exif (Exchangeable Image File Format).

【0017】メモリカード2から読み出された画像デー
タは、復号部3により復号され、RGB変換部4により
RGB表色系のイメージデータに変換される。拡大/縮
小処理部5は、例えば、最近傍補間法等により、RGB
変換された画像データを所定の倍率に拡大したり縮小し
たりするものである。なお、拡大/縮小処理以外に、回
転等の他の処理を行うように構成してもよい。
The image data read from the memory card 2 is decoded by the decoding unit 3 and is converted by the RGB conversion unit 4 into image data of the RGB color system. For example, the enlargement / reduction processing unit 5 performs RGB
This is for enlarging or reducing the converted image data to a predetermined magnification. It should be noted that other processing such as rotation may be performed in addition to the enlargement / reduction processing.

【0018】CMYK色変換部6は、指定された拡大処
理等が行われたRGB表色系の画像データをCMY表色
系の画像データに変換するものである。そして、CMY
K色変換された画像データは、ハーフトーン処理部7に
よってハーフトーン処理され、プリントエンジン8に入
力される。
The CMYK color conversion unit 6 converts RGB color system image data subjected to designated enlargement processing and the like into CMY color system image data. And CMY
The K-color converted image data is subjected to halftone processing by a halftone processing unit 7 and input to a print engine 8.

【0019】ハーフトーン処理部7は、ブロック化処理
部11,ディザ処理部12及び誤差拡散処理部13を備
えている。
The halftone processing section 7 includes a block processing section 11, a dither processing section 12, and an error diffusion processing section 13.

【0020】「ブロック化手段」としてのブロック化処
理部11は、入力された多階調のCMYKカラー画像デ
ータを、n×n画素のサイズでブロック化し、ブロック
内の画素の階調値を加算して出力するものである。
A block processing section 11 as a "blocking means" divides the input multi-grayscale CMYK color image data into blocks of nxn pixels and adds the gradation values of the pixels in the block. And output it.

【0021】図2及び図3と共に後述するように、「デ
ィザ処理手段」としてのディザ処理部12は、例えば、
ディザマトリクス等を用いることにより、ブロック毎に
ディザリングを行う。「誤差拡散手段」としての誤差拡
散処理部13は、ディザリングの終了したブロックの誤
差を、該ブロックの周辺に存在する他のブロックに所定
の比率で配分することにより、ブロック単位で累積誤差
が零となるように処理を行うものである。
As will be described later with reference to FIGS. 2 and 3, the dither processing section 12 as "dither processing means"
Dithering is performed for each block by using a dither matrix or the like. The error diffusion processing unit 13 as the “error diffusion means” distributes the error of the dithered block to other blocks existing around the block at a predetermined ratio, so that the accumulated error in the block unit is reduced. The processing is performed so as to be zero.

【0022】次に、図2及び図3を参照して、本実施の
形態によるハーフトーン処理を説明する。
Next, the halftone processing according to the present embodiment will be described with reference to FIGS.

【0023】図2(a)に示すように、ハーフトーン処
理部7に入力された画像データが、それぞれ多階調の値
を有する画素a1〜a36から構成されているとする。
ブロック化処理部11は、n×n画素(図の例では、n
=2)のサイズで複数の画素をブロック化する。なお、
ここで、ブロック化するとは、ハーフトーン処理に際し
て、ブロック単位で扱うという意味である。図2(b)
に示すように、各ブロックAS1〜AS9の値は、該各
ブロックを構成する各画素の階調値を加算したものとな
る。
As shown in FIG. 2A, it is assumed that the image data input to the halftone processing section 7 is composed of pixels a1 to a36 each having a multi-tone value.
The blocking processing unit 11 includes n × n pixels (in the example shown in FIG.
= 2), and a plurality of pixels are divided into blocks. In addition,
Here, the term “blocking” means that the halftone processing is performed in block units. FIG. 2 (b)
As shown in (1), the values of the blocks AS1 to AS9 are obtained by adding the gradation values of the pixels constituting each of the blocks.

【0024】図3(a)に示すように、各ブロックAS
1〜AS9のそれぞれについて、Th1〜Th4の値が
設定されたディザマトリクスを適用することにより、各
ブロック毎にディザリングする。これにより、多階調の
画像が二値化され、擬似的に階調表現される。ブロック
をディザリングした時に発生した誤差は、累積誤差が零
となるように周囲のブロックに分散される。
As shown in FIG. 3A, each block AS
By applying a dither matrix in which values of Th1 to Th4 are set for each of 1 to AS9, dithering is performed for each block. As a result, the multi-tone image is binarized and pseudo-graded. An error generated when dithering a block is distributed to surrounding blocks so that the accumulated error becomes zero.

【0025】図3(b)は、具体的に数値をいれた処理
の一例である。ここで、原画像の各画素は、それぞれ0
〜15の16階調を有するものとする。図3(b)の左
側に示すように、ある画像ブロックを構成する各画素の
値が4,5,3,5である場合、これらを加算した値は
「17」となる。
FIG. 3B is an example of a process in which numerical values are specifically entered. Here, each pixel of the original image is 0
It is assumed that there are 16 tones of up to 15. As shown on the left side of FIG. 3B, when the value of each pixel constituting a certain image block is 4, 5, 3, and 5, the value obtained by adding these is “17”.

【0026】次に、この加算されたブロックに対して、
ディザマトリクスを適用する。ここで、16階調の画素
を4個加算しているため、ブロックの階調値は、64階
調を有することになる。従って、ディザマトリクスの値
は、0〜63の範囲内に存在する。図3(b)の右側に
示すように、ディザマトリクスを適用した結果、加算値
「17」よりも小さい値が設定された箇所(マトリクス
値「12」の箇所)にのみ「1」がセットされ、他の箇
所には「0」がそれぞれセットされる。これにより、4
画素を加算してなる一つのブロックが二値化される。な
お、ブロック内の画素の階調値を平均化してもよい。そ
の場合、ディザマトリクスの値は0〜15の範囲に制限
される。
Next, for the added block,
Apply a dither matrix. Here, since four pixels of 16 gradations are added, the gradation value of the block has 64 gradations. Therefore, the value of the dither matrix exists in the range of 0 to 63. As shown on the right side of FIG. 3B, as a result of applying the dither matrix, “1” is set only at a position where a value smaller than the added value “17” is set (a position of the matrix value “12”). , And “0” are set in other portions. This gives 4
One block formed by adding pixels is binarized. Note that the gradation values of the pixels in the block may be averaged. In that case, the value of the dither matrix is limited to the range of 0 to 15.

【0027】ここで、このディザリングの結果に着目す
ると、4つの領域のうち1つのみが「1」であり、他は
全て「0」である。一つのブロック全体で考えた場合、
4つの領域全てに「1」がセットされた場合が64階調
であるから、一つの領域に「1」がセットされた場合
は、このブロックは15階調で二値化出力されたものと
みなすことができる。そして、このブロック全体の合計
階調値は「17」であるから、出力階調値「15」との
差分は「2」となる。この二値化誤差「2」を周辺のブ
ロックに所定比率で配分することにより、誤差を拡散
し、全体として累積誤差が零になるようにすればよい。
Here, focusing on the result of the dithering, only one of the four regions is "1", and the others are all "0". If we consider the whole block,
When "1" is set in all four regions, there are 64 gradations. Therefore, when "1" is set in one region, this block is output as binary data with 15 gradations. Can be considered. Since the total gradation value of the entire block is “17”, the difference from the output gradation value “15” is “2”. By distributing the binarization error “2” to the peripheral blocks at a predetermined ratio, the error may be diffused so that the accumulated error becomes zero as a whole.

【0028】そして、以下同様、次のブロックについ
て、再び4画素の階調値を合計して、ディザリングし、
入力値と出力値との誤差を周辺のブロックに分配する。
この処理を入力画像の全体にわたって行うと、印刷用の
二値化イメージデータが生成される。なお、先の説明で
は、4画素の合計値を「17」であると述べたが、より
正確には、それより以前にディザリングされたブロック
から配分される誤差が加算される。ここで、注意すべき
点は、4画素からなるブロック内でディザリングを行
い、誤差拡散はブロック単位で行っている点である。
Then, similarly, for the next block, the gradation values of the four pixels are again summed and dithered.
The error between the input value and the output value is distributed to peripheral blocks.
When this processing is performed over the entire input image, binarized image data for printing is generated. In the above description, the total value of the four pixels is "17", but more precisely, an error distributed from a block dithered earlier than that is added. Here, it should be noted that dithering is performed within a block of four pixels, and error diffusion is performed on a block basis.

【0029】次に、図4に基づき本実施の形態の作用を
説明する。以下、ステップを「S」と略記する。
Next, the operation of the present embodiment will be described with reference to FIG. Hereinafter, steps are abbreviated as “S”.

【0030】まず、CMYK色変換された原画像から1
ブロック分の画素データを読出し(S1)、各画素の階
調値を加算する(S2)。次に、ディザマトリクスを適
用する等して、このブロックをディザリングし(S
3)、出力された二値化データを保持しておく(S
4)。そして、入力値(ブロックを構成する各画素の階
調値合計)と出力値(ブロックの二値化結果)との誤差
を算出し(S5)、この誤差を周辺のブロックに所定の
比率で拡散させる(S6)。
First, 1 is calculated from the CMYK color-converted original image.
The pixel data of the block is read (S1), and the gradation value of each pixel is added (S2). Next, this block is dithered by applying a dither matrix or the like (S
3) The output binarized data is held (S
4). Then, an error between the input value (total gradation value of each pixel constituting the block) and the output value (the binarization result of the block) is calculated (S5), and this error is diffused to peripheral blocks at a predetermined ratio. (S6).

【0031】全ブロックについてハーフトーン処理が終
了したか否かを判定し(S7)、処理が完了していない
場合は、次のブロックにポインタを移動させ(S8)、
上述したS1〜S6の処理を繰り返す。原画像の全体を
二値化した場合には、ハーフトーン処理を終了する。
It is determined whether the halftone process has been completed for all blocks (S7). If the process has not been completed, the pointer is moved to the next block (S8).
The processes of S1 to S6 described above are repeated. When the entire original image has been binarized, the halftone process ends.

【0032】このように構成される本実施の形態では、
それぞれ処理単位の異なる複数のハーフトーン処理アル
ゴリズムを用いてハーフトーン処理を行うため、以下の
効果を奏する。
In the present embodiment configured as described above,
Since the halftone processing is performed using a plurality of halftone processing algorithms having different processing units, the following effects are obtained.

【0033】第1に、n×n画素のブロック内でディザ
リングし、誤差拡散はブロック単位で行うため、1画素
単位で誤差拡散する従来方法に比較して、およそnの二
乗倍だけ処理を高速化することができる。従って、例え
ば、プリンタ等の機器に組み込まれたCPUに与える負
荷を少なくすることができ、この負担軽減分だけ他の処
理にCPU資源を割り当てることができる。
First, since dithering is performed in a block of n.times.n pixels and error diffusion is performed in block units, processing is performed by a factor of about n times as large as in the conventional method in which error diffusion is performed in pixel units. Speed can be increased. Therefore, for example, the load on the CPU incorporated in a device such as a printer can be reduced, and the CPU resources can be allocated to other processes by the reduced load.

【0034】第2に、ブロックサイズnを、2〜4程度
の比較的小さい値に設定することにより、画質の大幅な
劣化を招くことなく、高速にハーフトーン処理を行うこ
とができる。特に、例えば、100万画素程度の比較的
低解像度の自然画像をハーフトーン処理する場合等は、
印刷出力される画像の品質を低下させずに、高速な処理
を行うことができる。自然画像中にはそれほど強いエッ
ジが存在せず、しかも低解像度であるため、急峻さの目
立つエッジが存在する可能性も少ない。自然画像の場合
は、テキストやグラフィックスとは異なり、画像が滑ら
かに変化するため、200〜300dpi程度の解像度が
あれば十分実用に耐える。一方、プリントエンジン8
は、通常600dpi程度の印刷解像度を有する。従っ
て、2×2画素のブロックにまとめてハーフトーン処理
を行う場合でも、ハーフトーン処理の入力段階では30
0dpi以上の画素密度を維持することができ、印刷品質
上の問題は殆どない。
Second, by setting the block size n to a relatively small value of about 2 to 4, halftone processing can be performed at high speed without causing a significant deterioration in image quality. In particular, for example, when halftoning a relatively low-resolution natural image of about 1 million pixels,
High-speed processing can be performed without deteriorating the quality of an image printed and output. Since there are not so strong edges in the natural image and the resolution is low, there is little possibility that there is an edge with a sharp steepness. In the case of a natural image, unlike text and graphics, the image changes smoothly, so that a resolution of about 200 to 300 dpi is sufficient for practical use. On the other hand, print engine 8
Typically have a print resolution of about 600 dpi. Therefore, even when the halftone processing is performed collectively in a block of 2 × 2 pixels, 30 minutes are required at the input stage of the halftone processing.
A pixel density of 0 dpi or more can be maintained, and there is almost no problem in print quality.

【0035】2.第2の実施の形態 次に、図5に基づいて本発明の第2の実施の形態を説明
する。以下の各実施の形態では、上述した構成要素と同
一の構成要素に同一の符号を付し、その説明を省略する
ものとする。本実施の形態は、ランダムディザによって
ハーフトーンを行う場合の一例である。本実施の形態で
は、説明の便宜上、それぞれ16階調を有するIn00,In
01,In10,In11の4つの画素からなるブロックを、ハー
フトーン処理する場合を例に挙げて説明する。なお、出
力画素は、Out00,Out01,Out10,Out11とする。
2. Second Embodiment Next, a second embodiment of the present invention will be described with reference to FIG. In the following embodiments, the same reference numerals are given to the same components as those described above, and description thereof will be omitted. This embodiment is an example of a case where halftone is performed by random dither. In the present embodiment, for convenience of explanation, In00 and In each having 16 gradations are used.
A case where a block including four pixels 01, In10, and In11 is subjected to halftone processing will be described as an example. The output pixels are Out00, Out01, Out10, and Out11.

【0036】まず、ブロック内の各画素の階調値を加算
する(S11)。次に、乱数Randを取得し(S12)、
例えば、この取得した乱数Randの値と2進数の「15」
とのANDを取ることにより、乱数Randの値が0〜15
の範囲内に収まるよう制限する(S13)。
First, the gradation value of each pixel in the block is added (S11). Next, a random number Rand is obtained (S12),
For example, the value of the obtained random number Rand and the binary number "15"
And the value of the random number Rand is 0 to 15
(S13).

【0037】次に、ブロック内の階調加算値SUMと乱数R
andとを比較する(S14)。階調加算値SUMが乱数Rand
以上の場合は、出力画素Out00の値として「1」をセッ
トすると共に、階調加算値SUMと出力値「15」との誤
差を算出する(S15)。一方、階調加算値SUMが乱数R
andよりも小さい場合は、出力画素Out00の値として
「0」をセットする(S16)。
Next, the gradation addition value SUM and the random number R in the block
and is compared (S14). The gradation sum SUM is a random number Rand
In the above case, “1” is set as the value of the output pixel Out00, and an error between the gradation added value SUM and the output value “15” is calculated (S15). On the other hand, the gradation addition value SUM is a random number R
If it is smaller than and, "0" is set as the value of the output pixel Out00 (S16).

【0038】以下、同様にして、Out01〜Out11の各出力
画素の値を決定していく(S17〜S31)。最後に、
各出力画素Out00〜Out11で発生した誤差を積算し、この
誤差を周辺に位置する他のブロックに所定の比率で拡散
させる(S32)。
Thereafter, similarly, the values of the output pixels Out01 to Out11 are determined (S17 to S31). Finally,
An error generated in each of the output pixels Out00 to Out11 is integrated, and the error is diffused to other blocks located in the vicinity at a predetermined ratio (S32).

【0039】このように構成される本実施の形態でも、
前記第1の実施の形態と同様の効果を得ることができ
る。
In this embodiment configured as described above,
The same effects as in the first embodiment can be obtained.

【0040】3.第3の実施の形態 次に、図6及び図7に基づいて本発明の第3の実施の形
態を説明する。本実施の形態の特徴は、原画像の特性や
出力画像の品質等に応じてブロックサイズを設定するブ
ロックサイズ設定部21を備えている点にある。
3. Third Embodiment Next, a third embodiment of the present invention will be described with reference to FIGS. A feature of the present embodiment is that a block size setting unit 21 that sets a block size according to characteristics of an original image, quality of an output image, and the like is provided.

【0041】即ち、「ブロックサイズ設定手段」として
のブロックサイズ設定部21には、原画像の特性及び出
力画像の品質等が入力されている。ここで、原画像の特
性としては、例えば、原画像の種類(自然画像かテキス
ト又はグラフィック画像か)、原画像の解像度等を挙げ
ることができる。印刷品質や印刷モードとしては、例え
ば、試し刷り印刷か否か、サムネイル印刷か否か、画像
拡大率、指定された印刷解像度等を挙げることができ
る。
That is, the characteristics of the original image, the quality of the output image, and the like are input to the block size setting unit 21 as “block size setting means”. Here, the characteristics of the original image include, for example, the type of the original image (whether natural image or text or graphic image), the resolution of the original image, and the like. The print quality and print mode include, for example, whether or not test printing is performed, whether or not thumbnail printing is performed, an image enlargement ratio, a specified print resolution, and the like.

【0042】図7のフローチャートに示すように、ブロ
ックサイズ設定部21は、印刷モードや印刷品質等を取
得し(S41)、最適なブロックサイズを設定するよう
になっている(S42)。
As shown in the flowchart of FIG. 7, the block size setting section 21 acquires a print mode, print quality, and the like (S41), and sets an optimal block size (S42).

【0043】具体的には、例えば、テキストやグラフィ
ックス主体の画像が入力された場合は、ブロックサイズ
nを小さく設定し(n=1を含む)、自然画像が入力さ
れた場合は、ブロックサイズnを大きめに設定すること
ができる。また、例えば、試し刷り印刷やサムネイル一
覧印刷等のように、印刷品質をそれほど問わない印刷モ
ードの場合には、ブロックサイズnを大きめに設定する
ことができる。なお、ブロックサイズnは、ユーザーが
手動で設定できるようにしてもよい。
More specifically, for example, when an image mainly composed of text or graphics is input, the block size n is set small (including n = 1). When a natural image is input, the block size n is set. n can be set larger. Further, for example, in a print mode in which the print quality is not so important, such as test print print and thumbnail list print, the block size n can be set larger. Note that the block size n may be manually set by the user.

【0044】このように構成される本実施の形態でも、
前記各実施の形態と同様の効果を得ることができる。ま
た、これに加えて、原画像の特性や出力画像の品質に応
じたブロックサイズを設定できるため、使い勝手がより
向上する。
In this embodiment configured as described above,
The same effects as in the above embodiments can be obtained. In addition, since the block size can be set according to the characteristics of the original image and the quality of the output image, usability is further improved.

【0045】なお、当業者であれば、前記各実施の形態
に記載された本発明の要旨の範囲内で種々の追加、変
更、組合せ等が可能である。
It should be noted that those skilled in the art can make various additions, modifications, combinations, and the like within the scope of the present invention described in the above embodiments.

【0046】[0046]

【発明の効果】以上説明した通り、本発明に係るハーフ
トーン処理装置及びハーフトーン処理方法によれば、演
算量を低減することができ、短時間でハーフトーン処理
を行うことができる。
As described above, according to the halftone processing apparatus and the halftone processing method according to the present invention, the amount of calculation can be reduced and the halftone processing can be performed in a short time.

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

【図1】本発明の第1の実施の形態に係るハーフトーン
処理装置を適用したプリンタのブロック図である。
FIG. 1 is a block diagram of a printer to which a halftone processing device according to a first embodiment of the present invention is applied.

【図2】原画像をブロック化する様子を示す説明図であ
って、図2(a)は原画像、図2(b)はn×n画素で
ブロック化した様子をそれぞれ示す。
FIGS. 2A and 2B are explanatory diagrams showing how an original image is divided into blocks. FIG. 2A shows an original image, and FIG. 2B shows a state where the original image is divided into n × n pixels.

【図3】ハーフトーン処理方法を示す説明図であって、
図3(a)はブロックにディザマトリクスを適用して二
値化する様子を示し、図3(b)は具体的な数値を入れ
てハーフトーン処理の全体概要を示す説明図である。
FIG. 3 is an explanatory diagram showing a halftone processing method,
FIG. 3A is a diagram illustrating a state where binarization is performed by applying a dither matrix to a block, and FIG. 3B is an explanatory diagram illustrating a general outline of halftone processing by inserting specific numerical values.

【図4】ハーフトーン処理方法の概略を示すフローチャ
ートである。
FIG. 4 is a flowchart illustrating an outline of a halftone processing method.

【図5】本発明の第2の実施の形態に係るハーフトーン
処理方法の要部を概略的に示すフローチャートである。
FIG. 5 is a flowchart schematically showing a main part of a halftone processing method according to a second embodiment of the present invention.

【図6】本発明の第3の実施の形態に係るハーフトーン
処理装置を適用したプリンタのブロック図である。
FIG. 6 is a block diagram of a printer to which a halftone processing device according to a third embodiment of the present invention is applied.

【図7】ハーフトーン処理方法の概略を示すフローチャ
ートである。
FIG. 7 is a flowchart illustrating an outline of a halftone processing method.

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

1 プリンタ 2 メモリカード 3 復号部 4 RGB変換部 5 拡大/縮小処理部 6 CMYK色変換部 7 ハーフトーン処理部 8 プリントエンジン 11 ブロック化処理部 12 ディザ処理部 13 誤差拡散処理部 21 ブロックサイズ設定部 DESCRIPTION OF SYMBOLS 1 Printer 2 Memory card 3 Decoding part 4 RGB conversion part 5 Enlargement / reduction processing part 6 CMYK color conversion part 7 Halftone processing part 8 Print engine 11 Block processing part 12 Dither processing part 13 Error diffusion processing part 21 Block size setting part

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 2C262 AA24 AA26 AA27 AB19 BB01 BB06 BB08 BB18 GA23 5B057 AA11 CA01 CA02 CA08 CA12 CA16 CB01 CB02 CB07 CB12 CB16 CC01 CE13 CE14 CH07 CH08 5C077 LL19 MP01 MP08 NN02 NN08 NN15 PP20 PP33 PP68 PQ12 PQ23 RR21 SS02 TT02  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 2C262 AA24 AA26 AA27 AB19 BB01 BB06 BB08 BB18 GA23 5B057 AA11 CA01 CA02 CA08 CA12 CA16 CB01 CB02 CB07 CB12 CB16 CC01 CE13 CE14 CH07 CH08 5C077 LL19 MP01 PP08 NN02 PP01 PQ23 RR21 SS02 TT02

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 入力画像を所定の複数画素単位でブロッ
ク化するブロック化手段と、 前記ブロック単位で誤差拡散させる誤差拡散処理手段
と、 前記誤差拡散された各ブロックを該各ブロック内でそれ
ぞれディザ処理するディザ処理手段と、を備えたことを
特徴とするハーフトーン処理装置。
1. Blocking means for blocking an input image in units of a plurality of predetermined pixels, error diffusion processing means for performing error diffusion in units of blocks, and dithering each of the blocks subjected to error diffusion in each of the blocks. And a dither processing means for processing.
【請求項2】 前記ブロック化手段は、入力画像をn×
n画素のブロックサイズでブロック化し、該各ブロック
内の各画素の値を加算して出力する請求項1に記載のハ
ーフトーン処理装置。
2. The method according to claim 1, wherein the blocking unit converts the input image into n ×
2. The halftone processing apparatus according to claim 1, wherein the halftone processing unit divides into blocks with a block size of n pixels, and adds and outputs the values of the pixels in each block.
【請求項3】 前記ブロック化手段は、入力画像をn×
n画素のブロックサイズでブロック化し、前記各画素の
値を平均化して出力する請求項1に記載のハーフトーン
処理装置。
3. The method according to claim 1, wherein the blocking unit converts the input image into n ×
2. The halftone processing apparatus according to claim 1, wherein the halftone processing unit divides the data into blocks each having a block size of n pixels, and averages and outputs the values of the pixels.
【請求項4】 前記ブロックサイズは、入力画像中に存
在するエッジよりも小さくなるように設定されている請
求項2又は請求項3のいずれかに記載のハーフトーン処
理装置。
4. The halftone processing device according to claim 2, wherein the block size is set to be smaller than an edge existing in the input image.
【請求項5】 入力画像の性質に応じて前記ブロックサ
イズを設定するブロックサイズ設定手段を更に備えた請
求項2〜4のいずれかに記載のハーフトーン処理装置。
5. The halftone processing apparatus according to claim 2, further comprising a block size setting means for setting the block size according to the properties of an input image.
【請求項6】 指定された出力画像の品質に応じて前記
ブロックサイズを設定するブロックサイズ設定手段を更
に備えた請求項2〜4のいずれかに記載のハーフトーン
処理装置。
6. The halftone processing apparatus according to claim 2, further comprising a block size setting unit that sets the block size according to a designated quality of an output image.
【請求項7】 入力画像を複数画素からなるブロック単
位で誤差拡散するステップと、 前記誤差拡散された各ブロックを該各ブロック内でそれ
ぞれディザ処理するステップと、を含んでなることを特
徴とするハーフトーン処理方法。
7. The method according to claim 1, further comprising: a step of error-diffusing the input image in units of blocks each including a plurality of pixels; and a step of dithering each of the error-diffused blocks in each of the blocks. Halftone processing method.
【請求項8】 入力された画像データに基づいて印刷を
行うプリンタにおいて、 前記入力された画像データをCMY表色系データに変換
する色変換手段と、 前記色変換された画像データをハーフトーン処理して印
刷用イメージデータを生成するハーフトーン処理手段
と、 前記生成された印刷用イメージデータに基づいて印刷を
行うための印刷手段とを備え、 前記ハーフトーン処理手段は、 入力された画像データを所定の複数画素単位でブロック
化するブロック化手段と、 前記ブロック単位で誤差拡散させる誤差拡散処理手段
と、 前記誤差拡散された各ブロックを該各ブロック内でそれ
ぞれディザ処理するディザ処理手段と、 を含んでなることを特徴とするプリンタ。
8. A printer that performs printing based on input image data, a color conversion unit that converts the input image data into CMY colorimetric data, and a halftone process on the color-converted image data. And a printing unit for performing printing based on the generated printing image data, wherein the halftone processing unit converts the input image data into Blocking means for blocking in units of a predetermined plurality of pixels, error diffusion processing means for performing error diffusion in the block units, and dither processing means for dithering each of the error-diffused blocks in each of the blocks. A printer, comprising:
JP2001060082A 2001-03-05 2001-03-05 Halftone processing apparatus and halftone processing method Expired - Fee Related JP3859122B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001060082A JP3859122B2 (en) 2001-03-05 2001-03-05 Halftone processing apparatus and halftone processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001060082A JP3859122B2 (en) 2001-03-05 2001-03-05 Halftone processing apparatus and halftone processing method

Publications (2)

Publication Number Publication Date
JP2002262089A true JP2002262089A (en) 2002-09-13
JP3859122B2 JP3859122B2 (en) 2006-12-20

Family

ID=18919552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001060082A Expired - Fee Related JP3859122B2 (en) 2001-03-05 2001-03-05 Halftone processing apparatus and halftone processing method

Country Status (1)

Country Link
JP (1) JP3859122B2 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004086750A1 (en) * 2003-03-27 2004-10-07 Seiko Epson Corporation Image output control system, image output device, and image processing device
WO2004086749A1 (en) * 2003-03-27 2004-10-07 Seiko Epson Corporation Image output control system, image processing apparatus, and method thereof
KR100648923B1 (en) * 2004-12-14 2006-11-28 삼성전자주식회사 System and method for forming image
US7433083B2 (en) 2003-06-04 2008-10-07 Brother Kogyo Kabushiki Kaisha Halftone-image processing device
US8712165B2 (en) 2010-07-23 2014-04-29 Konica Minolta Business Technologies, Inc. Image processing apparatus and image processing method
JP2014165904A (en) * 2013-02-28 2014-09-08 Nec Engineering Ltd Image conversion processing method, program for performing the same and image conversion processor
JP2016063341A (en) * 2014-09-17 2016-04-25 Necエンジニアリング株式会社 Image processing method, program for performing the same, and image processing unit
JP2016092744A (en) * 2014-11-11 2016-05-23 Necエンジニアリング株式会社 Image conversion processing method, program for performing them, and image conversion processing apparatus
JP2016116105A (en) * 2014-12-16 2016-06-23 セイコーエプソン株式会社 Printer, printing method, program, and image processing apparatus
JP2016197827A (en) * 2015-04-06 2016-11-24 セイコーエプソン株式会社 Image processing apparatus, printing device, image processing method and printing method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004086750A1 (en) * 2003-03-27 2004-10-07 Seiko Epson Corporation Image output control system, image output device, and image processing device
WO2004086749A1 (en) * 2003-03-27 2004-10-07 Seiko Epson Corporation Image output control system, image processing apparatus, and method thereof
US7929183B2 (en) 2003-03-27 2011-04-19 Seiko Epson Corporation Image output control system, image processing device, and image processing method
US7433083B2 (en) 2003-06-04 2008-10-07 Brother Kogyo Kabushiki Kaisha Halftone-image processing device
KR100648923B1 (en) * 2004-12-14 2006-11-28 삼성전자주식회사 System and method for forming image
US8712165B2 (en) 2010-07-23 2014-04-29 Konica Minolta Business Technologies, Inc. Image processing apparatus and image processing method
JP2014165904A (en) * 2013-02-28 2014-09-08 Nec Engineering Ltd Image conversion processing method, program for performing the same and image conversion processor
JP2016063341A (en) * 2014-09-17 2016-04-25 Necエンジニアリング株式会社 Image processing method, program for performing the same, and image processing unit
JP2016092744A (en) * 2014-11-11 2016-05-23 Necエンジニアリング株式会社 Image conversion processing method, program for performing them, and image conversion processing apparatus
JP2016116105A (en) * 2014-12-16 2016-06-23 セイコーエプソン株式会社 Printer, printing method, program, and image processing apparatus
JP2016197827A (en) * 2015-04-06 2016-11-24 セイコーエプソン株式会社 Image processing apparatus, printing device, image processing method and printing method

Also Published As

Publication number Publication date
JP3859122B2 (en) 2006-12-20

Similar Documents

Publication Publication Date Title
US20060215929A1 (en) Methods and apparatus for image convolution
JP2008227759A (en) Image processing device, image forming device, image processing method, image processing program, and computer readable recording medium
JP3744610B2 (en) Image coding method
JPH1075362A (en) Electronic image processing system and processing method
JP3859122B2 (en) Halftone processing apparatus and halftone processing method
JPH10112801A (en) Input image processing method
JP2005047067A (en) Image processing device, image processing method and program
MXPA04006233A (en) Raster image path architecture.
US7072072B1 (en) Color rendering optimized for text and line art
JP4089862B2 (en) Image forming apparatus, image forming method, and recording medium
JP2010278933A (en) Image processing device, image forming device, image processing method, program and recording medium
JP2004112346A (en) Image processor and program thereof
JP6079720B2 (en) Image processing apparatus, image processing method, and program
JP4139752B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium recording the program
JP2006011754A (en) Image processing device and image processing method
US7068395B1 (en) Image processing apparatus and method
Yu et al. Digital multitoning evaluation with a human visual model
JP2003209707A (en) Image processing method, image processor, image forming device, program, and recording medium
JP2714140B2 (en) Pixel density converter
Marcu et al. Symmetric error compensation for digital halftoning and applications
JP2004147168A (en) Image processor
JP2714141B2 (en) Pixel density converter
JP2978060B2 (en) Color image data conversion method
JP4266004B2 (en) Image processing method, image processing apparatus, image forming apparatus, image processing program, and recording medium recording image processing program
JP2724177B2 (en) Halftone area separation method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060414

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060613

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060613

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060901

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060914

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090929

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100929

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100929

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110929

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120929

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130929

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees