JP6464826B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP6464826B2 JP6464826B2 JP2015041021A JP2015041021A JP6464826B2 JP 6464826 B2 JP6464826 B2 JP 6464826B2 JP 2015041021 A JP2015041021 A JP 2015041021A JP 2015041021 A JP2015041021 A JP 2015041021A JP 6464826 B2 JP6464826 B2 JP 6464826B2
- Authority
- JP
- Japan
- Prior art keywords
- error
- dot
- value
- processing
- diffusion
- 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.)
- Active
Links
- 238000012545 processing Methods 0.000 title claims description 154
- 238000009792 diffusion process Methods 0.000 claims description 201
- 238000004364 calculation method Methods 0.000 claims description 16
- 230000015572 biosynthetic process Effects 0.000 claims description 10
- 238000000034 method Methods 0.000 description 67
- 230000008569 process Effects 0.000 description 43
- 239000000976 ink Substances 0.000 description 23
- 238000006243 chemical reaction Methods 0.000 description 21
- 230000008859 change Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000007246 mechanism Effects 0.000 description 4
- 239000003086 colorant Substances 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000003672 processing method Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 230000006866 deterioration Effects 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000000740 bleeding effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Color, Gradation (AREA)
Description
本発明は画像処理装置に関し、特にハーフトーニングに関する。 The present invention relates to an image processing apparatus, and more particularly to halftoning.
従来、階調値をプリンターのインクドットの吐出(オン)と非吐出(オフ)を示す値に変換するハーフトーン処理の方法として、ディザ法、誤差拡散法など、様々な方法が知られている。一般に、ハーフトーン処理を高速化するためには、ハーフトーン処理のためのパイプラインプロセッサが採用される。 Conventionally, various methods such as a dither method and an error diffusion method are known as a halftone processing method for converting a gradation value into a value indicating ejection (on) and non-ejection (off) of ink dots of a printer. . Generally, in order to speed up halftone processing, a pipeline processor for halftone processing is employed.
特許文献1には、ディザ法と誤差拡散法を組み合わせてハーフトーン処理の画質性能を向上させる技術が開示されている。特許文献1に記載された、ディザ処理の結果を用いた誤差拡散処理においては、先行して誤差拡散処理が施された他の画素について生じた拡散誤差を注目画素の階調値に加算し、他の画素の拡散誤差が加算された階調値と、最大階調値又は最小階調値との差に応じた拡散誤差が導出される。
しかし、特許文献1に記載されているように、先行して誤差拡散処理が施された他の画素について生じた拡散誤差を注目画素の階調値に加算する場合、先行して誤差拡散処理が施された画素について生じる拡散誤差が確定するまで注目画素の誤差拡散処理を開始することができない。したがって、特許文献1に記載されたディザ法と誤差拡散法を組み合わせたハーフトーン処理を実行するパイプラインプロセッサには、先行して誤差拡散処理が施された画素について生じる拡散誤差が確定するまで注目画素の誤差拡散処理を遅延させるパイプラインバッファが必要になり、ハーフトーン処理に必要なクロック数が増加するという問題がある。
本発明は、高画質が得られるハーフトーン処理を高速化することを目的の1つとする。
However, as described in
An object of the present invention is to increase the speed of halftone processing that provides high image quality.
上記目的を達成するための画像処理装置は、注目画素の階調値に応じて閾値を決定し、前記注目画素の階調値に他の画素に生じた拡散誤差を加算した加算値が前記閾値よりも大きい場合には、ドットを形成すると決定し、前記加算値が前記閾値よりも小さい場合には、ドットを形成しないと決定する比較部と、前記比較部が前記注目画素について前記閾値と前記ドットの形成を決定する期間において、前記注目画素の前記加算値と最大階調値との差に応じたオン誤差と、前記注目画素の前記加算値と最小階調値との差に応じたオフ誤差のそれぞれについて計算を実行する誤差計算部と、前記比較部がドットを形成すると決定した場合に前記オン誤差を前記注目画素に生じた前記拡散誤差として選択し、前記比較部がドットを形成しないと決定した場合に前記オフ誤差を前記注目画素に生じた前記拡散誤差として選択する選択部と、を備える。 An image processing apparatus for achieving the above object determines a threshold value according to a gradation value of a target pixel, and an added value obtained by adding a diffusion error generated in another pixel to the gradation value of the target pixel is the threshold value. Is greater than the threshold, the comparison unit determines that no dot is formed when the added value is smaller than the threshold value, and the comparison unit determines the threshold value and the threshold value for the target pixel. In a period for determining dot formation, an ON error corresponding to the difference between the added value and the maximum gradation value of the pixel of interest and an OFF corresponding to the difference between the addition value and the minimum gradation value of the pixel of interest An error calculation unit that performs calculation for each of the errors, and when the comparison unit determines to form a dot, the ON error is selected as the diffusion error that has occurred in the pixel of interest, and the comparison unit does not form a dot And decision And a selection unit for the off error is selected as the diffusion errors occurring in the target pixel when the.
本発明によると、注目画素のドットオン(ドットを形成する)またはドットオフ(ドットを形成しない)を決定するための処理を実行している期間中に、他の画素(後続画素)に対する誤差拡散処理における初期の処理ステップで必要になる注目画素の拡散誤差をドットオンの場合とドットオフの両方の場合について予め導出しておき、注目画素についてドットオンまたはドットオフが決定されたときに、あらかじめ導出した拡散誤差のいずれかを選択する。これにより、他の画素(後続画素)に対する誤差拡散処理の開始を早めることができるため、ハーフトーン処理を高速化することができる。 According to the present invention, error diffusion with respect to another pixel (subsequent pixel) is performed during a period in which processing for determining dot-on (forming a dot) or dot-off (not forming a dot) of a pixel of interest is performed. The diffusion error of the target pixel required in the initial processing step in the processing is derived in advance for both the dot-on and dot-off cases, and when the dot-on or dot-off is determined for the target pixel, Select one of the derived diffusion errors. Thereby, since the start of the error diffusion process for other pixels (subsequent pixels) can be accelerated, the halftone process can be speeded up.
なお請求項に記載された各手段の機能は、構成自体で機能が特定されるハードウェア資源、プログラムにより機能が特定されるハードウェア資源、又はそれらの組み合わせにより実現される。また、これら各手段の機能は、各々が物理的に互いに独立したハードウェア資源で実現されるものに限定されない。 Note that the function of each means described in the claims is realized by hardware resources whose function is specified by the configuration itself, hardware resources whose function is specified by a program, or a combination thereof. The functions of these means are not limited to those realized by hardware resources that are physically independent of each other.
以下、本発明の実施の形態を添付図面を参照しながら説明する。尚、各図において対応する構成要素には同一の符号が付され、重複する説明は省略される。
1.装置構成
図1に示す本発明の実施例としてのプリンター1は、双方向印刷を行うシリアルインクジェットプリンターである。プリンター1は、送紙モーター32によって印刷媒体Pを搬送する機構と、キャリッジモーター31によってキャリッジ40をプラテンの長手方向に往復動させる機構と、キャリッジ40に搭載された印刷ヘッド90を駆動してインクドットの吐出を行う機構と、制御ユニット10とを備えている。
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In addition, the same code | symbol is attached | subjected to the corresponding component in each figure, and the overlapping description is abbreviate | omitted.
1. Apparatus Configuration A
キャリッジ40をプラテンの長手方向に往復動させる機構は、プラテンの軸と平行に架設されてキャリッジ40を摺動可能に保持するガイドと、無端ベルトが掛け渡されてキャリッジモーター31によって駆動されるプーリー等から構成されている。
A mechanism for reciprocating the
キャリッジ40には、カラーインクとして、シアンインクC、マゼンタインクM、イエロインクY、ブラックインクK、ライトシアンインクLc、ライトマゼンタインクLmをそれぞれ収容したインクカートリッジ41〜46が搭載される。以下、C、M、Y、K、Lc、Lmの階調で表すデータ形式をCMY形式という。キャリッジ40の下部の印刷ヘッド47には、上述の各色のカラーインクに対応するノズル列が形成されている。キャリッジ40にこれらのインクが充填されたインクカートリッジ41〜46を上方から装着すると、各カートリッジから印刷ヘッド47へのインクの供給が可能となる。
The
各カラーインクは、面積階調によりフルカラーを表現するための色成分を構成する。すなわち、C、M、Y、K、Lc、Lmのインクドットが占める面積の割合を異ならせることによりC、M、Y、K、Lc、Lmの6つの色成分でフルカラーが表現される。印刷ヘッド47は、インクドットを吐出する(オン)か、インクドットを吐出しない(オフ)かを格子点毎に制御できるにすぎないため、後述するハーフトーン処理部16において、CMY形式の階調値はインクドットのオンとオフを示すハーフトーンデータに変換され、印刷ヘッド47はハーフトーンデータに基づいて駆動される。
Each color ink constitutes a color component for expressing a full color by area gradation. That is, by changing the ratio of the area occupied by the ink dots of C, M, Y, K, Lc, and Lm, a full color is expressed by the six color components of C, M, Y, K, Lc, and Lm. Since the
制御ユニット10は、CPU13、フラッシュメモリ・EEPROMなどの不揮発性記憶媒体からなる外部記憶12、揮発性記憶媒体からなる主記憶52、入出力部11、画像処理IC(Integrated Circuit)19を備え、これらがバスで相互に接続されている。制御ユニット10は、外部記憶12に記憶されたプログラムを主記憶14にロードし、CPU13で実行することにより、入力された画像データに対する画像処理を実行してハーフトーンデータを生成し、プリンター1の動作全般を制御する。
The
入出力部11は、USB、イーサネット(登録商標)、IrDA、ブルートゥース等の規格に準拠したデータ入力インターフェースを備え、リムーバブルメモリや外部機器から画像データを入力することができる。本実施例においては、入出力部11から入力される画像データは、レッド(R)、グリーン(G)、ブルー(B)の3色の色成分の階調値を画素毎に持つ。
The input /
外部記憶12には、OS、印刷制御プログラム等の各種のプログラムのほか、色変換テーブル120、ディザマスク121、誤差拡散閾値テーブル122等の各種のデータテーブルが記憶されている。色変換テーブル120には、RGBの階調値とCMYKLcLmの階調値とが予め対応付けて記憶されている。ディザマスク121は、組織的ディザ法によるハーフトーン処理に用いるものであり、複数のディザ閾値により構成される。ディザマスク121は、本実施例では、いわゆるブルーノイズ特性を備えている。誤差拡散閾値テーブル122は、誤差拡散処理におけるドットのオンとオフの決定に用いる拡散閾値が記憶されたテーブルであり、その詳細は後述する。
The
画像処理IC19は、以下で説明する色変換部15、ハーフトーン処理部16、ドット処理部17、吐出制御部18の機能を実現するためのプログラムが所定のハードウェア記述言語によって記述されることで設計された集積回路である。
The image processing IC 19 is configured such that a program for realizing the functions of the
色変換部15は、色変換テーブル120を参照することでRGBからCMYKLcLmへの色変換を行う。色変換後の画像データは、CMY形式の各色成分について256段階(0〜255)の階調値Dnを有する。
The
ハーフトーン処理部16は、色変換部15からCMY形式の画像データを入力し、画素単位にインクドットのオンとオフを示す二値のハーフトーンデータに変換する。ハーフトーン処理部16の詳細については後に説明する。
ドット処理部17は、二値のハーフトーンデータを入力し、印刷媒体上に形成されるドットの配置を示すドット配置データに変換し、ドット配置データをドットの吐出順に並び替えたドット吐出データを出力する。
吐出制御部18は、ドット吐出データを入力し、ドット配置データに応じたドットが印刷媒体上に形成されるように、ドット吐出データに基づいて印刷ヘッド47、キャリッジモーター31、送紙モーター32を駆動するための制御信号を出力する。
The
The
The
ここで図2を参照しながらハーフトーン処理部16の構成について詳細に説明する。
第一処理部、第二処理部および第三処理部として機能するディザユニット61は、ディザマスク121を参照しながらディザ閾値と注目画素の階調値Dnとの大小を色成分毎に比較し、比較結果を出力する。比較結果を示すディザユニット61の出力信号は、ディザ閾値以上(ドットオン)またはディザ閾値未満(ドットオフ)を示す二値であり、以後、ディザ比較値という。ディザユニット61は、各色成分についてこのディザ処理を並列に実行する。全ての色成分のディザ比較値は、第一セレクタ62および第二セレクタ67に入力される。また後述する誤差拡散ユニット64、65、66で用いるため、ディザユニット61に入力される全ての色成分の階調値も第一セレクタ62に入力される。
Here, the configuration of the
The
合成部として機能する第一セレクタ62は、注目画素の全ての色成分についてディザ比較値と階調値を取得し、各色成分についてこれらの出力先を選択する。すなわち第一セレクタ62は、注目画素の誤差拡散処理の対象ではない第一色成分については、遅延バッファ63にディザ比較値を入力し、注目画素の誤差拡散処理の対象である第二色成分については、誤差拡散ユニット64、65、66にディザ比較値と階調値を入力する。
The
合成部として機能する遅延バッファ63は、誤差拡散ユニット64、65、66において注目画素について処理が完了するのに必要なクロック数だけ注目画素の他の色成分についてディザ比較値を保持する遅延回路(パイプラインレジスタ)である。なお、全ての色成分について誤差拡散処理を行わない場合には、遅延バッファ63でディザ比較値を保持する必要が無く、1つの色成分についてのみ誤差拡散処理を行う場合には、5つの色成分についてディザ比較値を遅延バッファ63で保持する必要がある。したがって第一セレクタ62と遅延バッファ63とを接続する信号線の数は、最大でも、プリンター1が対応可能な色成分の数である6よりも1小さい5つの色成分についてディザ比較値を伝送できる数だけ用意すればよい。本実施例では、3つの色成分について二値のディザ比較値を伝送する3本の信号線で第一セレクタ62と遅延バッファ63とが接続される。
The
第二処理部として機能する第一誤差拡散ユニット64、第二誤差拡散ユニット65、第三誤差拡散ユニット66は、構成が共通であって、それぞれ注目画素の1つの色成分について、ディザ比較値と注目画素の階調値とを第一セレクタ62から取得し、注目画素のディザ比較値と階調値に基づいて、誤差拡散法におけるドットのオン/オフの決定に用いる閾値である誤差拡散閾値を変化させることで、誤差拡散法によるドットの形成のされやすさを制御するパイプラインプロセッサである。各誤差拡散ユニットには、誤差加算部661、閾値比較部662、オン誤差計算部663、オン誤差記憶部664、拡散範囲係数テーブル665、オフ誤差計算部666、オフ誤差記憶部667、選択部としての第三セレクタ668、拡散誤差記憶部669が備わっている。誤差加算部661、閾値比較部662、オン誤差計算部663、オン誤差記憶部664、拡散範囲係数テーブル665、オフ誤差計算部666、オフ誤差記憶部667、第三セレクタ668、拡散誤差記憶部669の機能については後に詳しく説明する。
The first
以上のようなハードウェア構成を有するプリンター1は、キャリッジモーター31を駆動することによって、印刷ヘッド47を印刷媒体Pに対して主走査方向に往復動させ、また、送紙モーター32を駆動することによって、印刷媒体Pを副走査方向に移動させる。制御ユニット10は、キャリッジ40が往復動する動き(主走査)や、印刷媒体の紙送りの動き(副走査)に合わせて、ドット吐出データに基づくタイミングでノズルを駆動することにより、印刷媒体Pに各色のインクドットを吐出する。こうすることによって、プリンター1は、印刷媒体P上にカラー画像を印刷することが可能となっている。
The
2.印刷処理
次に図3を参照しながらプリンター1における印刷処理について説明する。ここでの印刷処理は、ユーザーが操作パネル20等を用いて、所望の画像データについて印刷指示操作を行うことで開始される。印刷処理を開始すると、CPU13は、まず、入出力部11を介して印刷対象であるRGB形式の画像データを主記憶14に読み込む(ステップS1)。
2. Printing Process Next, a printing process in the
画像データを入力すると、CPU13は、色変換部15に色変換を実行させる(ステップS2)。色変換部15は、外部記憶12に記憶された色変換テーブル120を参照して、画像データについて、RGB形式の画像データをCMY形式に変換する。なお、CPU13は、RGB形式またはCMY形式の画像データについて、解像度変換処理やスムージング処理などの画像処理を施してから色変換部15に色変換を実行させてもよいし、色変換後に解像度変換処理やスムージング処理などの画像処理を施しても良い。
When the image data is input, the
色変換処理を行うと、CPU13は、ハーフトーン処理部42にハーフトーン処理を実行させる(S3)。
When the color conversion process is performed, the
ハーフトーン処理を行うと、CPU13は、ドット処理部43にドット処理を実行させる(ステップS4)。ドット処理部43は、プリンター1のノズル配置や紙送り量などに合わせて1回の主走査単位でドット配置データをドット吐出データに並び替える。
When the halftone process is performed, the
ドット処理を行うと、CPU13は、吐出制御部18に印刷を実行させる(ステップS5)。吐出制御部18は、ドット吐出データに基づく制御信号を印刷ヘッド47、キャリッジモーター31、送紙モーター32等に出力して印刷を実行する。
When the dot processing is performed, the
3.ハーフトーン処理の詳細
ここでハーフトーン処理(ステップS3)について、図2、図4を参照しながら詳細に説明する。図4に示すように、ハーフトーン処理を開始するとき、CPU13は、まず、ハーフトーン処理の対象の画像データについて、誤差拡散処理の対象となる色成分を設定する(S31)。具体的には、第一セレクタ62がディザ比較値と階調値とを出力する先を各色成分についてCPU13が設定する。すなわちCPU13は、誤差拡散処理の対象となる色成分のディザ比較値と階調値とが誤差拡散ユニット64、65、66に出力され、誤差拡散処理の対象とならない色成分のディザ比較値が遅延バッファ63に出力されるように第一セレクタ62を設定する。
3. Details of Halftone Processing Here, the halftone processing (step S3) will be described in detail with reference to FIGS. As shown in FIG. 4, when starting halftone processing, the
誤差拡散処理の対象となる色成分には、ディザ処理と誤差拡散処理とを組み合わせたハーフトーン処理が施されることになる。また誤差拡散処理の対象とならない色成分には、ディザ処理だけがハーフトーン処理として施されることになる。また、ディザユニット61の出力は、第一セレクタ62だけでなく、最終的なハーフトーン処理結果を出力するための第二セレクタ67にも入力される。したがって、誤差拡散ユニット64、65、66も遅延バッファ63も使わずに、全ての色成分に対してディザ処理のみを高速なハーフトーン処理として施すことも可能である。全ての色成分に対してディザ処理のみをハーフトーン処理として施す場合、CPU13は第一セレクタ62から出力されたディザ比較値が選択して出力されるように第二セレクタ67を設定すればよい。
A halftone process in which a dither process and an error diffusion process are combined is performed on a color component to be subjected to the error diffusion process. In addition, only the dither processing is performed as the halftone processing for the color components that are not subjected to the error diffusion processing. The output of the
いずれの色成分を誤差拡散処理の対象とするかについては、本発明において任意の設計事項である。例えば、印刷品質よりも印刷速度を重視する場合には、全ての色成分についてディザ処理だけをハーフトーン処理として施しても良い。またモノトーン画像のように画像データの大部分の色が特定の色域に集中しているような場合には、色が集中している色域に近い色成分について誤差拡散処理の対象として、印刷品質を高めてもよい。 Which color component is to be subjected to error diffusion processing is an arbitrary design matter in the present invention. For example, when the printing speed is more important than the printing quality, only the dithering process may be performed as a halftone process for all color components. In addition, when most of the image data colors are concentrated in a specific color gamut, such as a monotone image, the color components close to the color gamut where the colors are concentrated are printed as error diffusion processing targets. Quality may be increased.
なお、誤差拡散処理の対象となる色成分をどのような単位で設定するかについては、例えば、画像データ毎に誤差拡散処理の対象となる色成分を設定しても良いし、ページ毎に設定しても良いし、ファイル毎に設定しても良いし、バンド毎に設定しても良いし、起動毎に設定しても良いし、出荷後のセットアップ時に一度だけユーザーが設定するようにしてもよいし、工場組立時に一度だけ設定するようにしても良い。すなわち、ステップS31の処理は、図3に示す印刷処理の実行前に実行されても良い。工場組立時に一度だけ設定する場合であっても、第一セレクタ62を備えることにより、誤差拡散ユニットを設ける数を設計仕様に応じて容易に変更することもできるため、設計コストを低減できる。
Note that the units for setting the color component that is the target of error diffusion processing may be set, for example, for each image data, or may be set for each page. It can be set for each file, for each band, for each start-up, or set once by the user during setup after shipment. Alternatively, it may be set only once during factory assembly. That is, the process in step S31 may be performed before the printing process shown in FIG. Even in the case of setting only once at the time of factory assembly, by providing the
誤差拡散処理の対象となる色成分を設定した後、CPU13が、色変換部15から出力されるCMY形式の画像データに対してハーフトーン処理部16にハーフトーン処理の実行を指示すると、ディザユニット61は、CMY形式の画像データについて、注目画素の位置を示す座標n(x、y)と、注目画素の階調値Dnとを取得する(ステップS31)。
After setting the color components to be subjected to error diffusion processing, when the
注目画素の座標n(x、y)と階調値Dnとを取得すると、ディザユニット61は、ディザ処理を行う(ステップS33)。ここでのディザ処理は、外部記憶12に記憶されたディザマスク121を構成する複数の閾値のうちの、注目画素の座標n(x、y)に対応する閾値THn_dの値と、階調値Dnとの大小関係を比較する処理である。この処理は、通常行われるディザ法によるドットのオン/オフ判断の処理と同一の処理である。ただし、本実施例のディザ処理は、後述する誤差拡散法によってドットのオン/オフが最終的に決定される可能性があるという点では、仮のディザ処理であり、また、誤差拡散法の閾値(誤差拡散閾値)を決定するための処理でもある。
When the coordinate n (x, y) of the target pixel and the gradation value Dn are acquired, the
ディザユニット61からディザ比較値としてのオンまたはオフが画素毎、色成分毎に出力されると、第一セレクタ62は、ステップS31の設定に基づいて、色成分毎に出力先を選択してディザ比較値と階調値を出力する(ステップS34)。すなわち、第一セレクタ62は、色成分毎に異なるハーフトーン処理をする場合において、誤差拡散処理の対象である第二色成分については、ディザ比較値と階調値Dnの出力先を誤差拡散ユニット64、65、66のいずれかとし、誤差拡散処理の対象外である第一色成分については、ディザ比較値の出力先を遅延バッファ63とする。
When ON or OFF as a dither comparison value is output from the
遅延バッファ63は、誤差拡散処理の対象外の色成分のディザ比較値を取得すると、以下に述べる誤差拡散処理に必要なパイプラインステップ数に対応するクロック数だけディザ比較値を保持する(ステップS35)。
When the
誤差拡散ユニット64、65、66は、誤差拡散処理の対象色成分のディザ比較値と階調値Dnを取得すると、パイプライン処理により誤差拡散処理を実行する。パイプライン処理により複数の処理が同時に実行されるため、実際には図4に記載された順序で実行されるわけではないが、1つの注目画素に施す誤差拡散処理の手順を理解しやすくするために、図4に記載された流れに沿って誤差拡散処理を説明した後に、実際の処理順序を図6を参照して説明する。
When the
まず閾値比較部662は、ステップS33のディザ処理によって定まったディザ比較値がドットオンであるかドットオフであるかを判定し(ステップS36)、ドットオンであれば、誤差拡散処理に用いる閾値THeを、階調値Dnに対応する低位閾値THe_Lに設定する(ステップS37)。一方、ディザ比較値がドットオフであれば、誤差拡散処理に用いる閾値THeを、階調値Dnに対応する高位閾値THe_Hに設定する(ステップS38)。このように、本実施例においては、誤差拡散法に用いる閾値THeをディザ処理の結果と階調値Dnに応じて変化させる構成としている。かかる閾値THeの設定は、外部記憶12に記憶された誤差拡散閾値テーブル122を参照して行われる。
First, the
誤差拡散閾値テーブル122の具体例を概念的に図5に示す。図示するように、誤差拡散閾値テーブル122では、階調値Dn(ここでは0〜255)と、低位閾値THe_L及び高位閾値THe_Hとが、それぞれ対応付けられている。図中に示す閾値THe_Nは、通常の誤差拡散法で用いられる閾値の例を参考として表示するものであり、この例では、閾値THe_Nは、階調値Dnによらず一定値127.5となっている。 A specific example of the error diffusion threshold table 122 is conceptually shown in FIG. As shown in the figure, in the error diffusion threshold table 122, the gradation value Dn (here, 0 to 255) is associated with the lower threshold THe_L and the higher threshold THe_H. The threshold value THe_N shown in the figure is displayed as an example of a threshold value used in a normal error diffusion method. In this example, the threshold value THe_N becomes a constant value 127.5 regardless of the gradation value Dn. ing.
図5に示す例では、高位閾値THe_Hは、階調値Dnが0の場合に値127.5をとり、階調値Dnが0から大きくなるに従って大きくなり、最終的には、階調値Dnが255の場合に値207.5となる。低位閾値THe_Lは、階調値Dnが0の場合には、高位閾値THe_Hと同じ値127.5をとり、階調値Dnが0から大きくなるに従って小さくなり、階調値Dnが255の場合に値47.5となる。 In the example shown in FIG. 5, the high threshold THe_H takes a value of 127.5 when the gradation value Dn is 0, and increases as the gradation value Dn increases from 0. Finally, the gradation value Dn When the value is 255, the value is 207.5. The low threshold value THe_L takes the same value 127.5 as the high threshold value THe_H when the gradation value Dn is 0, and decreases as the gradation value Dn increases from 0, and when the gradation value Dn is 255. The value is 47.5.
換言すれば、高位閾値THe_Hと低位閾値THe_Lとの差分(以下、閾値差分ΔTHeともいう)は、階調値Dnが0の場合に値0であり、階調値Dnが大きくなるに従って大きくなり、階調値Dnが255の場合に値80となる。つまり、図5の例では、誤差拡散閾値テーブル122は、注目画素の階調値Dnの全範囲に亘って、階調値が大きいほど閾値差分ΔTHeが大きくなるように(ここでは正比例の関係に)設定されている。このように、高位閾値THe_Hと低位閾値THe_Lとの大小関係は、互いの値が等しいか、高位閾値THe_Hが低位閾値THe_Lよりも相対的に大きくなるように設定される。ただし、高位閾値THe_Hと低位閾値THe_Lとが全ての階調値において等しい場合は除かれる。なお、階調値ごとの高位閾値THe_H及び低位閾値THe_Lの値は、かかる大小関係が保持されていれば、いかようにも設定することが可能である。なお、本実施例では、テーブルを参照することにより、階調値Dnに応じた高位閾値THe_H及び低位閾値THe_Lを求める構成としたが、関数によりこれらを求めてもよい。 In other words, the difference between the high threshold THe_H and the low threshold THe_L (hereinafter also referred to as threshold difference ΔTHe) is 0 when the gradation value Dn is 0, and increases as the gradation value Dn increases. When the gradation value Dn is 255, the value is 80. That is, in the example of FIG. 5, the error diffusion threshold value table 122 indicates that the threshold value difference ΔTHe increases as the gradation value increases over the entire range of the gradation value Dn of the target pixel (here, the relationship is in a directly proportional relationship). ) Is set. Thus, the magnitude relationship between the high threshold THe_H and the low threshold THe_L is set such that the mutual values are equal or the high threshold THe_H is relatively larger than the low threshold THe_L. However, the case where the high threshold THe_H and the low threshold THe_L are the same in all gradation values is excluded. Note that the values of the high threshold THe_H and the low threshold THe_L for each gradation value can be set in any way as long as such a magnitude relationship is maintained. In this embodiment, the high threshold value THe_H and the low threshold value THe_L corresponding to the gradation value Dn are obtained by referring to the table, but these may be obtained by a function.
次に誤差加算部661は、階調値Dnに、拡散誤差記憶部669に記憶されている他の画素の拡散誤差Ednを加算し、階調値Dn+を出力する(ステップS39)。ここで、拡散誤差Ednについては、注目画素の近傍にある先行画素について後述するステップS44において決定されるものであり、その内容は後述する。階調値Dn+は、先行画素に生じた拡散誤差Ednを注目画素の階調値Dnに加算した結果としての階調値である。
Next, the
一方、オン誤差計算部663とオフ誤差計算部666は、それぞれ、注目画素に生ずる二値化誤差と拡散誤差を見積もる(ステップS40)。二値化誤差Enは、先行画素に生じた拡散誤差Ednを加算した階調値Dn+とドットのオン/オフ結果(ここでは階調値255または0)との差分である。拡散誤差Ednとは、上記ステップS36において他の画素(後続画素)の階調値Dnに加算する誤差である。本実施例では、二値化誤差Enを、ドットのオン/オフを閾値比較部662で未決定の周辺画素である、注目画素の右隣の画素に対して7/16、左下の画素に対して3/16、下の画素に対して5/16、右下の画素に対して1/16の割合で、拡散誤差Ednとして配分する。これらの係数は拡散範囲係数テーブル665に記憶されている。すなわち、オン誤差計算部663およびオフ誤差計算部666は、階調値Dn+と階調値255または0との差分である二値化誤差Enに、次式(1)〜(4)のように、拡散範囲係数テーブル665に記憶された係数を掛け合わせて、注目画素の各近傍画素について拡散誤差Ednを導出する。なお、拡散範囲係数テーブル665はこれに限られるものではなく、異なる数字を用いてもよいし、拡散する範囲を広げたり、狭めたりしてもよい。
E1n=En×7/16…(1)
E2n=En×3/16…(2)
E3n=En×5/16…(3)
E4n=En×1/16…(4)
On the other hand, the on
E1n = En × 7/16 (1)
E2n = En × 3/16 (2)
E3n = En × 5/16 (3)
E4n = En × 1/16 (4)
誤差拡散閾値を設定した閾値比較部662は、先行画素に生じた拡散誤差Ednが加算された階調値Dn+と、ステップS38またはステップS39で設定した閾値THeとを比較する(ステップS41)。その結果、階調値Dn+が閾値THe以上であれば、注目画素のドットをオンに決定し(ステップS42)、階調値Dn+が閾値THe未満であれば、注目画素のドットをオフに決定する(ステップS43)。
The threshold
閾値比較部662は、注目画素についてドットオンまたはドットオフを決定すると、第三セレクタ668をその決定に応じて設定し、決定に応じた拡散誤差Ednを第三セレクタ668から出力させる(ステップS44)。すなわち、閾値比較部662がドットオンを決定した場合には、オン誤差記憶部664が保持している拡散誤差Ednが第三セレクタ668から出力される。また閾値比較部662がドットオフを決定した場合には、オフ誤差記憶部666が保持している拡散誤差Ednが第三セレクタ668から出力される。こうして決定された拡散誤差Ednは、拡散誤差記憶部669に格納される。
When the
以上述べたステップS36〜S44の処理は、誤差拡散法によるハーフトーン処理であり、色成分毎に誤差拡散ユニット64、65、66がパイプライン処理により実行する。誤差拡散法については、周知の技術であるため、詳細な説明は省略するが、上述したとおり、注目画素の階調値の量子化誤差を周囲の画素に所定の配分比率で加算しながら、注目画素の階調値と所定の閾値とを比較して階調値を量子化する手法である。
The processing in steps S36 to S44 described above is halftone processing by the error diffusion method, and is executed by the
注目画素について誤差拡散ユニット64、65、66による誤差拡散処理が終了すると、第二セレクタ67は、ステップS35で遅延バッファ63に格納されたドットオンまたはドットオフと、ステップS44で第三セレクタ668から出力されるドットオンまたはドットオフとを、1つの注目画素のハーフトーン処理の結果として出力する(S45)。すなわち、第二セレクタ67は、誤差拡散処理の対象になった色成分のハーフトーン処理の結果と、誤差拡散処理の対象外の色成分のハーフトーン処理の結果とを画素毎に合成して出力する。ここで、既に述べたとおり、誤差拡散ユニット64、65、66のクロック数(パイプラインステップ数)に応じたクロック数だけ遅延バッファ63はドットオンまたはドットオフを保持するように構成されているため、第二セレクタ67には1つの注目画素の各色成分のドットのオン又はオフが同時に入力され、第二セレクタ67は、1つの注目画素の各色成分のドットのオン又はオフを同時に出力する。その結果、画素毎にドットのオン又はオフを示すハーフトーンデータがハーフトーン処理部16から出力される。
When the error diffusion processing by the
ここでハーフトーン処理部16は、第二セレクタ67から出力される各色成分のドットのオン又はオフを示す信号をパラレル出力しても良いし、画素毎にまとめてシリアル出力しても良い。パラレル配線の場合には、全色成分のドットのオン又はオフが並列に画素毎に同時に出力される。シリアル配線の場合には、全色成分のドットのオン又はオフが直列にまとまって画素毎に出力される。
Here, the
そしてハーフトーン処理部16は、全ての画素を順次注目画素として上記ステップS32〜S45の処理を繰り返す(ステップS46)。全ての画素について上記ステップS32〜S44の処理が終了すると、ステップS3のハーフトーン処理は終了する。
Then, the
なお、第二セレクタ67には、ディザユニット61の出力も直接入力されるため、全ての色成分に対して誤差拡散処理を施さない場合には、上述したステップS34〜ステップS44の処理は実行されず、ディザユニット61の出力がそのままハーフトーン処理の結果として第二セレクタ67から出力される。このため、全ての色成分に対して誤差拡散処理を施さない場合には、高速なハーフトーン処理が可能になる。
Since the output of the
次に上述したディザ法と誤差拡散法とを組み合わせたハーフトーン処理の原理について、以下に説明する。上述したように、ステップS37〜S39の処理においては、注目画素の階調値Dnがディザ処理の閾値THn_dの値以上であれば、誤差拡散法に用いる閾値THeは、低位閾値THe_Lに設定され、階調値Dnがディザ処理の閾値THn_dの値未満であれば、閾値THeは、高位閾値THe_Hに設定される。閾値差分ΔTHe(=THe_H−THe_L)は0以上の値である。 Next, the principle of halftone processing combining the above-described dither method and error diffusion method will be described below. As described above, in the processing of steps S37 to S39, if the tone value Dn of the target pixel is equal to or larger than the threshold value THn_d of the dither processing, the threshold value THe used for the error diffusion method is set to the lower threshold value THe_L. If the tone value Dn is less than the threshold value THn_d for dither processing, the threshold value THe is set to the high threshold value THe_H. The threshold difference ΔTHe (= THe_H−THe_L) is a value of 0 or more.
ここで、閾値差分ΔTHeが値0である場合(THe_H=THe_L)を考える。この場合(本実施例では階調値Dn=0の場合)、ディザ処理の結果は、閾値THeに影響を与えないのであるから、ステップS33の処理は、誤差拡散法(ステップS36〜S44)による最終的なドットのオン又はオフの決定に対して意味を持たないことになる。このことは、ステップS3のハーフトーン処理において、最終的なドットのオン又はオフが、誤差拡散法のみによって決定されていることを意味する。 Here, a case where the threshold difference ΔTHe is 0 (THe_H = THe_L) is considered. In this case (in this embodiment, when the gradation value Dn = 0), the result of the dithering process does not affect the threshold value THe, so the process of step S33 is performed by the error diffusion method (steps S36 to S44). It will have no meaning for the final dot on / off decision. This means that in the halftone process of step S3, the final dot on or off is determined only by the error diffusion method.
次に、閾値差分ΔTHeが値0より大きい場合(THe_H>THe_L)を考える。この場合(本実施例では階調値Dn≠0の場合)、CPU13は、ディザ処理によりドットオンと判断すると(階調値Dnが閾値THn_dの値以上である場合)、閾値THeを相対的に小さい低位閾値THe_Lに設定する。一方、ディザ処理によりドットオフと判断すると(階調値Dnの階調値が閾値THn_dの値未満である場合)、閾値THeを相対的に大きい高位閾値THe_Hに設定する。つまり、CPU13は、ディザ処理によりドットオンと判断すると、誤差拡散法によりドットがオンになりやすいように制御し、ディザ処理によりドットオフと判断すると、誤差拡散法によりドットがオフになりやすいように制御する。このことは、閾値差分ΔTHeが値0である場合と比べて、階調値Dnが大きいほど誤差拡散法による最終的なドットのオン/オフの判断結果がディザ処理によるドットのオン/オフの判断結果に近づくことを意味している。つまり、最終的なドットのオン/オフを、誤差拡散法の要素とディザ法の要素とを組み合わせて判断していることになる。
Next, consider a case where the threshold difference ΔTHe is greater than 0 (THe_H> THe_L). In this case (in this embodiment, when the gradation value Dn ≠ 0), when the
そして、この閾値差分ΔTHeが大きくなるほど、ディザ法が支配的になっていき、閾値差分ΔTHeが無限大になれば、完全にディザ法のみでドットのオン/オフのみを判断していることとなる。閾値差分ΔTHeが無限大の場合、ディザ処理によりドットがオンと判断されれば、その後の誤差拡散法により必ずドットオンと判断され、ディザ処理によりドットをオフと判断されれば、その後の誤差拡散法により必ずドットオフと判断されるからである。 As the threshold difference ΔTHe increases, the dither method becomes dominant. When the threshold difference ΔTHe becomes infinite, only the on / off state of the dot is determined by the dither method alone. . When the threshold difference ΔTHe is infinite, if it is determined that the dot is turned on by the dithering process, it is always determined that the dot is turned on by the subsequent error diffusion method, and if the dot is turned off by the dithering process, the subsequent error diffusion is performed. This is because the dot is always determined to be off by law.
要するに、ディザ処理の結果に応じて誤差拡散処理の閾値THeを変化させることにより、具体的には、閾値差分ΔTHeの大きさを変化させることにより、ハーフトーン処理におけるディザ法の要素と誤差拡散法の要素とのそれぞれの寄与度を制御することができるのである。本実施例においては、こうした原理を利用して、階調値Dnの階調値に応じて、ハーフトーン処理におけるディザ法の要素と誤差拡散法の要素とを動的に制御している。 In short, by changing the threshold value THe of the error diffusion process according to the result of the dither process, specifically, by changing the magnitude of the threshold difference ΔTHe, the elements of the dither method and the error diffusion method in the halftone process It is possible to control the degree of contribution to each element. In this embodiment, by utilizing such a principle, the dither method element and the error diffusion method element in the halftone process are dynamically controlled according to the gradation value of the gradation value Dn.
そして、誤差拡散法においては閾値THeが大きいほどドットがオフになりやすいため、ディザ処理の結果に応じて閾値THeを変化させることにより、誤差拡散法によるドットの形成のされやすさの制御の程度を制御していると捉えることもできる。 In the error diffusion method, the dot is more likely to be turned off as the threshold value THe is larger. Therefore, by controlling the threshold value THe according to the dither processing result, the degree of control of the ease of dot formation by the error diffusion method It can also be understood as controlling.
ここで、誤差拡散ユニット64、65、66における誤差拡散処理の順序について図6を参照しながら詳細に説明する。注目画素に生ずる拡散誤差は、閾値比較部662において、先行画素に生じた拡散誤差Ednが加算された注目画素の階調値Dn+と閾値THeとが比較された結果として最終的にドットオンまたはドットオフが決定されなければ本来算定することができない。すなわち、先行画素に生じた拡散誤差Ednが定まるまでは、注目画素に生ずる拡散誤差を算定することができない。
Here, the order of the error diffusion processing in the
注目画素に生ずる拡散誤差は、誤差加算部661において後続画素の階調値に加算されるところ、注目画素についてドットのオン/オフが決定されて注目画素に生ずる拡散誤差が算定されていなければ、後続画素の処理が滞ることになる。すなわち、閾値比較部662がドットのオン/オフを決定するまで待ってから注目画素に生ずる拡散誤差を導出するとすれば、ドットのオン/オフの決定を待つためのパイプラインバッファのクロック数が増加することで、誤差拡散処理の全体に必要なクロック数が増加する。そして誤差拡散処理の必要クロック数が増加すれば、誤差拡散処理の対象外の色成分について遅延バッファ63がディザ比較値を保持するクロック数も増加させなければならず、ハーフトーン処理の全体として必要なクロック数が増加する。したがって、注目画素に生ずる拡散誤差を早い段階で算定しておくことにより、後続画素に対する誤差拡散処理を早く進行させることができる。
The diffusion error generated in the target pixel is added to the gradation value of the subsequent pixel in the
そこで、オン誤差計算部663は、閾値比較部662が注目画素のドットオンまたはドットオフを決定する前に、閾値比較部662がドットオンを決定した場合に注目画素に生ずる拡散誤差を予め導出し、オン誤差記憶部664に記憶させておく。またオフ誤差計算部666は、閾値比較部662が注目画素のドットオンまたはドットオフを決定する前に、閾値比較部662がドットオフを決定した場合に注目画素に生ずる拡散誤差を予め導出しておき、オフ誤差記憶部667に記憶させておく。このように閾値比較部662が注目画素のドットオンまたはドットオフを決定するための処理を実行している期間中に、拡散誤差を予め2通り見積もってそれぞれ保持しておくことで、後続画素に対する誤差拡散処理の開始を早めることができる。すなわち、誤差拡散ユニット64、65、66のパイプラインステップ数を少なくすることができる。
Therefore, the on
このようにプリンター1は、注目画素のドットオンまたはドットオフを決定するための処理を実行している期間中に、閾値比較部662がドットオンを決定した場合に注目画素に生ずる拡散誤差と、閾値比較部662がドットオフを決定した場合に注目画素に生ずる拡散誤差とを導出しておくことにより、誤差拡散処理のパイプラインステップ数を少なくする。その結果、誤差拡散処理を施さない色成分についてディザ処理の結果を保持するパイプラインバッファのクロック数も減らすことができる。その結果、色成分毎にディザ処理のみまたはディザ処理と誤差拡散処理を組み合わせて行うハーフトーン処理に必要なパイプラインステップ数が少なくなり、ハーフトーン処理を高速化することができる。
In this way, the
そしてプリンター1は、インクの色数分だけの誤差拡散ユニットを備える代わりに、誤差拡散ユニットで処理できない色成分数の色成分のディザ比較値を保持できる遅延バッファを備えているため、ハーフトーン処理のための回路規模を抑制することができる。またプリンター1は、第一セレクタ62の出力先を色成分毎に選択できるため、ディザ処理のみのハーフトーン処理を行うか、ディザ処理と誤差拡散処理を組み合わせたハーフトーン処理を行うかを、要求される印刷性能や仕様に応じて、色成分毎に選択することができる。さらに、誤差拡散ユニット64、65、66により誤差拡散処理を行うために必要なクロック数だけディザ処理の結果であるディザ比較値を遅延バッファ63で保持することができるため、1つの画素のハーフトーン処理結果を同時に第二セレクタ67に入力して画素毎にハーフトーン処理結果を合成して出力することができる。
Since the
また、プリンター1は、ハーフトーン処理において閾値差分ΔTHeを適宜設定することで、ハーフトーン処理におけるディザ法と誤差拡散法との寄与度を、所望の程度に設定することができる。また、仮ディザ処理の結果に基づいて閾値THeを変化させることで、誤差拡散法によるドットの形成のされやすさを制御するので、構成が簡単であり、処理の高速化に資する。
Further, the
また、プリンター1は、階調値Dnの階調値の大きさに基づいて、閾値THeの大きさを変化させて、具体的には、閾値差分ΔTHeを変化させて、誤差拡散法によるドットの形成のされやすさを制御するので、画像データの階調値に応じて、ディザ法的要素と誤差拡散法的要素との寄与度を変化させることができる。しかも、かかる寄与度は、画像データの任意の領域ごとに変化させることができる。その結果、画像データや印刷装置の特性に応じた良好な寄与度のドットデータを生成することができ、印刷画質を向上させることができる。
Further, the
本実施例においては、誤差拡散処理によるドットのオン/オフの決定は閾値差分ΔTHeの大きさによって制御されるところ、高階調側ほど閾値差分ΔTHeが大きくなるように設定されている。そして誤差拡散処理では、ディザ処理によりドットオンと判断すると、階調値Dnが大きいほど誤差拡散処理によりドットがオンになりやすくなる低位閾値ΔTHe_Lが設定され、ディザ処理によりドットオフと判断すると、階調値Dnが大きいほど、誤差拡散法によりドットがオフになりやすい高位閾値ΔTHe_Hが設定される。つまり、プリンター1は、高階調の画像データに対しては、低階調の画像データに対してよりも、誤差拡散処理の結果がディザ処理の結果に近づく誤差拡散閾値THeを定めるため、低階調側では、誤差拡散法的要素によるメリットを得つつ、高階調側では、ディザ法的要素のメリットを得ることができる。
In this embodiment, ON / OFF determination of dots by error diffusion processing is controlled by the magnitude of the threshold difference ΔTHe, and the threshold difference ΔTHe is set so as to increase toward the higher gradation side. In the error diffusion process, when it is determined that the dot is turned on by the dithering process, a lower threshold ΔTHe_L that sets the dot to be easily turned on by the error diffusion process is set as the gradation value Dn is larger. The higher threshold value ΔTHe_H is set that the dot is likely to be turned off by the error diffusion method as the tone value Dn is larger. In other words, the
低階調側での誤差拡散法のメリットとしては、例えば、印刷画質の良好な粒状性が得られる点が挙げられる。誤差拡散法として、拡散範囲切替誤差拡散法などを用いれば、さらに、画質の向上が期待できる。拡散範囲切替誤差拡散法は、公知の技術であるため、詳しい説明は省略するが、入力階調値と二値化結果の組み合わせに応じて誤差拡散範囲を切り替える手法であり、低階調値でドットオンになった時のみ広い範囲に誤差拡散することで、低階調領域の粒状性を改善し、ドットの非所望な連続、いわゆるワームの発生を抑制することができる。 As an advantage of the error diffusion method on the low gradation side, for example, it is possible to obtain a granularity with good print image quality. If a diffusion range switching error diffusion method or the like is used as the error diffusion method, further improvement in image quality can be expected. Since the diffusion range switching error diffusion method is a known technique, a detailed description is omitted. However, the error diffusion range is switched according to the combination of the input gradation value and the binarization result. By diffusing the error over a wide range only when the dots are turned on, it is possible to improve the granularity of the low gradation region and suppress the occurrence of undesired continuity of dots, so-called worms.
高階調側でのディザ法のメリットとしては、例えば、ドット着弾位置のずれによる画質劣化を抑制できる点が挙げられる。このメリットは、ディザマスク121の上述した所定のドット形成特性に起因するものである。なお、高階調領域では、ディザ法によってドットデータを生成しても、インクのにじみによって印刷画質の粒状性が目立ちにくく、大きな問題とはならない。
As an advantage of the dither method on the high gradation side, for example, it is possible to suppress deterioration in image quality due to deviation of dot landing positions. This merit is due to the above-described predetermined dot formation characteristic of the
しかも、誤差拡散閾値テーブル122は、階調値Dnの大きさに基づいて、閾値差分ΔTHeが段階的に変化するように設定されている。つまり、プリンター1は、階調値の大きさに基づいて、誤差拡散法によるドットの形成のされやすさの制御の程度を段階的に変化させている。したがって、ディザ法的要素と誤差拡散法的要素との寄与度をデータ階調値に応じて滑らかに変化させることができる。その結果、印刷結果において、ディザ法的要素と誤差拡散法的要素との寄与度の変化が視認されにくいので、同一の印刷画像におけるディザ法的要素と誤差拡散法的要素の寄与度の変化に伴う印刷画質の低下を抑制することができる。
In addition, the error diffusion threshold value table 122 is set so that the threshold difference ΔTHe changes stepwise based on the magnitude of the gradation value Dn. That is, the
特に、本実施例では、ディザマスク121に、印刷画質の粒状性に優れたブルーノイズ特性を有するものを採用していることから、同じく印刷画質の粒状性に優れた誤差拡散法的要素との寄与度の変化をよりスムーズに見せることができる。なお、ディザマスク121がブルーノイズ特性を有していない場合であっても、階調値の大きさに基づいて、誤差拡散法によるドットの形成のされやすさの制御の程度を段階的に変化させれば、ディザ法的要素と誤差拡散法的要素との寄与度をデータ階調値に応じて滑らかに変化させることは可能である。
In particular, in the present embodiment, since the
4.他の実施形態
尚、本発明の技術的範囲は、上述した実施例に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。例えば、閾値比較部662に階調値Dn+が入力されてから閾値比較部662がドットのオン/オフを決定するまでの期間中に、閾値比較部662がドットオンを決定した場合に注目画素に生ずる拡散誤差と、閾値比較部662がドットオフを決定した場合に注目画素に生ずる拡散誤差とを導出できればよいため、オン誤差記憶部664、オフ誤差記憶部667は必ずしも必要ではないし、オン誤差記憶部664、オフ誤差記憶部667に代えて、若しくはオン誤差記憶部664、オフ誤差記憶部667に加えて、階調値Dnまたは誤差加算部661から出力される階調値Dn+を保持するバッファ(パイプラインレジスタ)を設けても良い。
4). Other Embodiments The technical scope of the present invention is not limited to the above-described embodiments, and it goes without saying that various modifications can be made without departing from the scope of the present invention. For example, if the
また、上述の実施例では、ドットのオンまたはオフのみを決定するハーフトーン処理について説明したが、サイズが異なる複数種類のドットのそれぞれについてドットのオンまたはオフを決定する多値化処理をディザユニット61、誤差拡散ユニット64、65、66で行ってもよい。
In the above-described embodiments, halftone processing for determining only dot on / off has been described. However, multi-value processing for determining dot on / off for each of a plurality of types of dots having different sizes is performed as a dither unit. 61, may be performed by the
また上述の実施例では、画素毎に1つのドットのオンまたはオフを決定するハーフトーン処理について説明したが、画素毎に複数のドットのオン又はオフを決定してもよい。すなわち、画像データの1つの画素がプリンターの複数のドットに対応する構成にも、本発明を適用可能である。 In the above-described embodiment, halftone processing for determining whether one dot is turned on or off for each pixel has been described. However, a plurality of dots may be turned on or off for each pixel. That is, the present invention can be applied to a configuration in which one pixel of image data corresponds to a plurality of dots of the printer.
また上述の実施例では、第一処理部に適用するハーフトーン処理方法としてディザ法を例示したが、ディザ法でも誤差拡散法でもない別のハーフトーン処理方法を第一処理部に適用しても良い。また、上述の実施例では、第一処理部と第二処理部がディザユニット61を共有する例について説明したが、ディザユニット61を第一処理部とし、誤差拡散ユニット64、65、66を第二処理部として、色成分毎にディザ法または誤差拡散法を択一的に適用する構成としても良い。
In the above-described embodiment, the dither method is exemplified as the halftone processing method applied to the first processing unit, but another halftone processing method that is neither the dither method nor the error diffusion method may be applied to the first processing unit. good. In the above-described embodiment, an example in which the first processing unit and the second processing unit share the
1…プリンター、10…制御ユニット、11…入出力部、12…外部記憶、14…主記憶、15…色変換部、16…ハーフトーン処理部、17…ドット処理部、18…吐出制御部、20…操作パネル、31…キャリッジモーター、32…送紙モーター、40…キャリッジ、41−46…インクカートリッジ、42…ハーフトーン処理部、43…ドット処理部、47…印刷ヘッド、52…主記憶、61…ディザユニット、62…第一セレクタ、63…遅延バッファ、64、65、66…誤差拡散ユニット、64…誤差拡散ユニット、64…第一誤差拡散ユニット、64、65…誤差拡散ユニット、64、65、66…誤差拡散ユニット、65…第二誤差拡散ユニット、66…第三誤差拡散ユニット、67…第二セレクタ、90…印刷ヘッド、120…色変換テーブル、121…ディザマスク、122…誤差拡散閾値テーブル、661…誤差加算部、662…閾値比較部、663…オン誤差計算部、664…オン誤差記憶部、665…拡散範囲係数テーブル、665…拡散範囲係数テーブル、666…オフ誤差計算部、667…オフ誤差記憶部、668…第三セレクタ、669…拡散誤差記憶部、19…画像処理IC、P…印刷媒体
DESCRIPTION OF
Claims (3)
前記比較部が前記注目画素について前記閾値と前記ドットの形成を決定する期間において、前記注目画素の前記加算値と最大階調値との差に応じた拡散誤差であるオン誤差と、前記注目画素の前記加算値と最小階調値との差に応じた拡散誤差であるオフ誤差のそれぞれについて計算を実行する誤差計算部と、
前記比較部がドットを形成すると決定した場合に前記オン誤差を前記注目画素に生じた前記拡散誤差として選択し、前記比較部がドットを形成しないと決定した場合に前記オフ誤差を前記注目画素に生じた前記拡散誤差として選択する選択部と、
を備える画像処理装置。 A threshold value is determined in accordance with the tone value of the target pixel, and if an added value obtained by adding a diffusion error generated in another pixel to the tone value of the target pixel is larger than the threshold value, it is determined to form a dot. And a comparison unit that determines not to form dots when the added value is smaller than the threshold value;
An ON error that is a diffusion error according to a difference between the added value and the maximum gradation value of the target pixel in a period in which the comparison unit determines the threshold value and the dot formation for the target pixel; and the target pixel An error calculation unit that performs calculation for each of the off errors that are diffusion errors according to the difference between the added value and the minimum gradation value;
When the comparison unit determines to form a dot, the on error is selected as the diffusion error generated in the target pixel, and when the comparison unit determines not to form a dot, the off error is set to the target pixel. A selection unit for selecting the generated diffusion error;
An image processing apparatus comprising:
請求項1に記載の画像処理装置。 The comparison unit controls the easiness of dot formation by changing the threshold according to the result of dithering the tone value of the pixel of interest and the tone value of the pixel of interest.
The image processing apparatus according to claim 1.
請求項2に記載の画像処理装置。 When the result of the dither processing is a value for forming a dot, the comparison unit changes the threshold so that the comparison unit can easily determine to form the dot, and the result of the dither processing is a dot. If the value does not form the dot, the threshold value is changed so that the decision not to form the dot is easily made.
The image processing apparatus according to claim 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015041021A JP6464826B2 (en) | 2015-03-03 | 2015-03-03 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015041021A JP6464826B2 (en) | 2015-03-03 | 2015-03-03 | Image processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2016163212A JP2016163212A (en) | 2016-09-05 |
| JP6464826B2 true JP6464826B2 (en) | 2019-02-06 |
Family
ID=56847411
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2015041021A Active JP6464826B2 (en) | 2015-03-03 | 2015-03-03 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6464826B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7127423B2 (en) * | 2018-08-22 | 2022-08-30 | セイコーエプソン株式会社 | Image processing device, printing device and image processing method |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000152005A (en) * | 1998-11-17 | 2000-05-30 | Toshiba Corp | Image processing device |
| JP4096949B2 (en) * | 2005-02-04 | 2008-06-04 | セイコーエプソン株式会社 | Image processing apparatus, processing method, and recording medium |
| JP5955109B2 (en) * | 2012-06-05 | 2016-07-20 | キヤノン株式会社 | Image processing method and image processing apparatus |
| JP5720764B2 (en) * | 2013-12-05 | 2015-05-20 | セイコーエプソン株式会社 | Printing apparatus and printing method |
-
2015
- 2015-03-03 JP JP2015041021A patent/JP6464826B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2016163212A (en) | 2016-09-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6587552B2 (en) | Image processing apparatus and image processing method | |
| US9571696B2 (en) | Print data generating apparatus and generating method for generating color conversion profile | |
| JP6252003B2 (en) | Printing apparatus, printing method, image processing apparatus, and program | |
| US20110116115A1 (en) | Image processor and image processing method | |
| JP6175915B2 (en) | Printing apparatus, printing method, program, and image processing apparatus | |
| JP6781399B2 (en) | Control device and computer program | |
| JP6464826B2 (en) | Image processing device | |
| JP5237215B2 (en) | Image processing apparatus and method | |
| US9237254B2 (en) | Image processing apparatus and image processing method for forming a high-quality image by controlling superimposition of dots to be printed in multi-pass printing | |
| US9456108B2 (en) | Image processing apparatus | |
| US9594989B2 (en) | Image-processing device determining dot formation state of target pixel by using gradation value of target pixel | |
| JP6428383B2 (en) | Image processing device | |
| JP6601225B2 (en) | Control device and computer program | |
| US20200039234A1 (en) | Image Processing Apparatus Controlling Printing According to Unidirectional Printing Method or Bidirectional Printing Method | |
| JP2016171491A (en) | Image processing apparatus | |
| JP5979261B2 (en) | Printing apparatus and printing method | |
| US10389910B2 (en) | Image processing apparatus, image processing method, and storage medium | |
| JP2020028988A (en) | Image processing apparatus and computer program | |
| JP5720764B2 (en) | Printing apparatus and printing method | |
| JP6171398B2 (en) | printer | |
| JP6492871B2 (en) | Image processing apparatus, image processing system, and image processing method | |
| JP5950694B2 (en) | Image processing apparatus and control method thereof | |
| JP2008153914A (en) | Dither matrix generation apparatus, dither matrix generation program and dither matrix generation method, printing apparatus, printing apparatus control program and printing apparatus control method, image processing apparatus, image processing program and image processing method, and recording medium storing the program | |
| JP2020192784A (en) | Image processing device, printing method and printing device | |
| JP2020192783A (en) | Image processing device, printing method and printing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180118 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180710 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180827 |
|
| RD05 | Notification of revocation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7425 Effective date: 20180905 |
|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20181115 |
|
| 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: 20181211 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20181224 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6464826 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |