JP4300742B2 - Image processing apparatus for converting the number of gradations of image data - Google Patents

Image processing apparatus for converting the number of gradations of image data Download PDF

Info

Publication number
JP4300742B2
JP4300742B2 JP2002079601A JP2002079601A JP4300742B2 JP 4300742 B2 JP4300742 B2 JP 4300742B2 JP 2002079601 A JP2002079601 A JP 2002079601A JP 2002079601 A JP2002079601 A JP 2002079601A JP 4300742 B2 JP4300742 B2 JP 4300742B2
Authority
JP
Japan
Prior art keywords
gradation
dot
component
pixel
dots
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002079601A
Other languages
Japanese (ja)
Other versions
JP2003276249A (en
Inventor
繁明 角谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2002079601A priority Critical patent/JP4300742B2/en
Publication of JP2003276249A publication Critical patent/JP2003276249A/en
Application granted granted Critical
Publication of JP4300742B2 publication Critical patent/JP4300742B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
この発明は、階調画像データを各種ドットの形成有無によって表現された画像データに変換する技術に関する。
【0002】
【従来の技術】
印刷媒体や液晶画面といった表示媒体上に、ドットを形成することによって画像を表現する画像表示装置は、各種画像機器の出力装置として広く使用されている。かかる画像表示装置は、局所的にはドットを形成するか否かのいずれかの状態しか表現し得ないが、画像の階調値に応じてドットの形成密度を適切に制御することによって、多階調の画像を表現することが可能である。また、形成するドットの大きさやドットの濃さを変えることが可能な画像表示装置も広く使用されている。かかる画像表示装置は、ドット単独でも複数の階調値を表現することができるので、表示しようとする画像の階調値に応じて、これら各種ドットを適切な密度で形成してやれば、より高画質な画像を表示することが可能である。
【0003】
こうした画像表示装置では、画像の階調値に応じた適切な密度でドットを形成する必要があり、このため、画素毎にドットを形成するか否かの判断を行って、画像データをドットの形成有無による表現形式のデータに変換する処理を行っている。多種のドットを形成可能な場合、こうした判断はドットの種類毎に別個に行うのではなく、他種のドットについての判断結果を考慮しながら判断することが望ましい。これは、ドットの種類毎に別個に判断したのでは、異なる種類のドットが偶然に同一、あるいは近接した画素に形成されてしまい、こうしたドットの集まりが視認されて画質を悪化させるおそれがあるためである。ドットの形成有無を判断するに際して、他種のドットについての判断結果を考慮しながら判断してやれば、こうした現象によって生じる画質の悪化を回避することができる。このように、各種ドットについてのドット形成有無の判断を、異なる種類のドットについての判断結果を考慮しながら行う技術については、本願の出願人によって既に出願済みである(例えば、国際公開番号WO98/03341)。
【0004】
【発明が解決しようとする課題】
しかし、ドットの形成有無の判断を、異なるドットについての判断結果を考慮しながら判断した場合、他種のドットの判断結果を考慮する分だけ処理が複雑となるので、処理に時間がかかると言う問題がある。処理に時間がかかれば、画像を迅速に表示することは困難となる。かといって、異なる種類のドットについての判断結果を考慮しなければ、表示画質の悪化を招くおそれがある。
【0005】
この発明は、従来技術における上述の課題を解決するためになされたものであり、画質を悪化させることなく、画像データを各種ドットの形成有無による表現形式のデータに、迅速に変換することが可能な技術の提供を目的とする。
【0006】
【課題を解決するための手段およびその作用・効果】
上述の課題の少なくとも一部を解決するため、本発明の画像処理装置は、次の構成を採用した。すなわち、
画素毎の階調値を表す画像データを、該画素あたりに表現する階調値の異なる第1および第2のドットについての形成有無を表すデータに変換する画像処理装置であって、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する階調値変換手段と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する第1のドット形成判断手段と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する階調成分補正手段と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する第2のドット形成判断手段と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する禁止手段と
を備え
前記階調成分補正手段は、
前記第1のドットの形成有無を判断したことで該判断した画素に表現される階調値と、該画素についての前記第1の階調成分との偏差たる階調誤差を算出する階調誤差算出手段と、
前記階調誤差を算出した画素の周辺にあって前記第1あるいは前記第2のドットの形成有無を判断していない周辺画素に、該算出した階調誤差を拡散させて前記第2の階調成分を補正する階調誤差拡散手段と
を備えることを要旨とする。
【0007】
また、上記の画像処理装置に対応する本発明の画像処理方法は、
画素毎の階調値を表す画像データを、該画素あたりに表現する階調値の異なる第1および第2のドットについての形成有無を表すデータに変換する画像処理方法であって、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する工程と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する工程と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する工程と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する工程と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する工程と
を備え
前記第2の階調成分を補正する工程は、
前記第1のドットの形成有無を判断したことで該判断した画素に表現される階調値と、該画素についての前記第1の階調成分との偏差たる階調誤差を算出し、
前記階調誤差を算出した画素の周辺にあって前記第1あるいは前記第2のドットの形成有無を判断していない周辺画素に、該算出した階調誤差を拡散させて前記第2の階調成分を補正することを要旨とする。
【0008】
かかる画像処理装置および画像処理方法においては、前記第1の階調成分に基づいて第1のドットの形成有無を判断し、前記第2の階調成分に基づいて第2のドットの形成有無を判断する。第2の階調成分は、第1のドットについての判断結果に基づいて補正されるので、第2のドットの形成有無を適切に判断することができる。更に、第1の階調成分がゼロとなる画素については、第1のドットについての形成有無の判断を行わず、これに伴って、第2の階調成分の補正も行わないこととしている。このため、画像データを、第1のドットおよび第2のドットの形成有無による表現形式のデータに変換する処理を迅速化することができる。第1の階調成分がゼロとなる画素については、第1のドットが形成されることはないと考えてよいから、第1のドットについての形成有無を判断する処理、および判断結果に基づいて第2の階調成分を補正する処理を省略しても実質的な処理に変わりはない。このことから、画質に何ら悪影響を与えることなく、画像データを変換する処理を迅速化することが可能となる。
【0009】
こうした画像処理装置では、前記第1のドットの形成有無を判断したことで該判断した画素に生じた階調誤差を算出し、得られた階調誤差を、該画素の周辺にあって未だドットの形成有無を判断していない画素(周辺画素)に拡散させることによって、これら周辺画素の第2の階調成分を補正する。ここで、階調誤差とは、第1のドットの形成有無を判断したことによって該画素に表現される階調値と、該画素についての前記第1の階調成分との偏差である。
【0010】
第2の発明では、上記の構成に代えて、前記第1の階調成分と前記第2の階調成分とを加算して合成階調成分を算出し、該合成階調成分に基づいて前記第2のドットの形成有無を判断する構成を用いる。かかる構成は、第1のドットの形成有無を判断し、第1のドットを形成する画素については、該判断によって生じた階調誤差を算出する。そうして、得られた階調誤差を、未だドットの形成有無を判断していない周辺の画素に拡散して、該合成階調成分を補正する。この場合階調誤差としては、前記第1のドットを形成したことでその画素に表現される階調値と、該画素についての前記合成階調成分との偏差を使用する。
【0011】
前者の方法による画像処理装置では、第1のドットの形成有無を判断したことによる階調誤差を拡散して第2の階調成分を補正しているので、第1のドットが形成された画素の周辺では第2のドットが形成され難くなる。その結果、第1のドットと第2のドットとが、互いに近接した位置に形成されて画質を悪化させることがない。一方で、第1のドットが形成されなかった画素の周辺の領域では、第2のドットが形成され易くなるので、全体としては、第2のドットは適切な密度で形成されることになる。
【0012】
また、後者の方法による画像処理装置では、合成階調成分を算出している。これは、前者の方法になぞらえれば、大まかには次のように考えることもできる。すなわち前者の方法において、第1のドットがいずれの画素にも形成されなかったものと仮定して、これによる階調誤差を拡散して第2の階調成分を予め補正しておくこととほぼ等しいと考えることができる。次いで、第1のドットの形成有無を判断し、第1のドットが形成された場合には、これにより生じた階調誤差を合成階調成分に拡散することによって、改めて第2の階調成分を補正した後、第2のドットの形成有無を判断する。一方、ドットが形成されなかった場合には、そのまま合成階調成分を用いて第2のドットの形成有無を判断する。
【0013】
このように第1の階調成分と第2の階調成分とを予め加算して合成階調成分を算出する方法では、第1のドットを形成した場合にだけ階調誤差を拡散すればよく、画像データを変換する処理を迅速に行うことが可能となるので好ましい。
【0014】
また、上述した画像処理装置においては、第1のドットは第2のドットよりも、画素あたりに表現する階調値の大きなドットとすることができる。
【0015】
画素あたりに表現する階調値の大きなドットは、表現する階調値の小さなドットに比べて、発生する階調誤差が大きくなる傾向がある。このことから、第1のドットを第2のドットよりも、画素あたりに表現する階調値の大きなドットとすれば、第1のドットの形成有無を判断したことにより生じた比較的大きな階調誤差を、第2のドットの形成有無を判断することによって適切に解消することが可能となる。
【0016】
ここで、ドットが、画素あたりに表現する階調値を変えるために、第1のドットを、第2のドットよりも、ドットの大きさが大きなドットとすることができる。あるいは、第1のドットを、第2のドットよりも明度の低い(暗い)ドットとすることができる。
【0017】
これらの方法によれば、第1のドットおよび第2のドットが画素あたりに表現する階調値を、比較的簡便に且つ正確に異ならせることができるので好ましい。
【0018】
上述した画像処理装置においては、画像データの階調値が所定値以下となる画素については、該画素の前記第1の階調成分がゼロになると判断して、前記第1のドットについての形成有無の判断を禁止することとしてもよい。
【0019】
第1の階調成分は画像データの階調値に応じて定まり、第1の階調成分が大きいほど画像データの階調値は大きくなる。すなわち、第1の階調成分がゼロとなるか否かを判断するための閾値として使用可能な画像データが存在し、このような閾値の値を予め求めておくことができる。そして、画像データの階調値がこのような閾値より小さい場合には、第1の階調成分はゼロであると考えてよい。このことから、画像データの階調値が、このような閾値よりも小さい場合に第1のドットについての形成有無の判断を禁止することとすれば、第1のドットの形成有無を判断するか否かを迅速に判断することができるので好ましい。
【0020】
上述した画像処理装置においては、第1のドットあるいは第2のドットの少なくともいずれかは、いわゆる誤差拡散法を用いてドットの形成有無を判断することとしてもよい。
【0021】
誤差拡散法は高画質な画像が得られる反面、画像データの変換に時間がかかる傾向がある。従って、画像データを迅速に変換することが可能な上述の画像処理装置を適用すれば、高画質と迅速な処理とを両立させることができるので好ましい。
【0022】
また、画素あたりに表現する階調値の異なる第1のドットおよび第2のドットを形成可能な印刷部を、上述した画像処理装置によって制御し、該画像処理装置を印刷制御装置として用いてもよい。
【0023】
更には、画素あたりに表現する階調値の異なる第1のドットと第2のドットを形成可能な印刷部と、上述した画像処理装置とを組み合わせて印刷装置を構成することとしてもよい。
【0024】
このような印刷制御装置を用いて印刷部を制御したり、あるいは印刷装置を用いて画像を印刷すれば、第1のドットおよび第2のドットが適切に形成された高画質な画像を、迅速に印刷することができるので好ましい。
【0025】
更に本発明は、上述した画像処理方法を実現するプログラムをコンピュータに読み込ませ、コンピュータを用いて実現することも可能である。従って、本発明は次のようなプログラム、あるいは該プログラムを記憶した記録媒体としての態様も含んでいる。すなわち、上述の画像処理方法に対応する本発明のプログラムは、
画素毎の階調値を表す画像データを、該画素あたりに表現する階調値の異なる第1および第2のドットについての形成有無を表すデータに変換する方法を、コンピュータを用いて実現するためのプログラムであって、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する機能と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する機能と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する機能と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する機能と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する機能と
を実現することを要旨とする。
【0026】
また、上述の画像処理方法に対応する本発明の記録媒体は、
画素毎の階調値を表す画像データを、該画素あたりに表現する階調値の異なる第1および第2のドットについての形成有無を表すデータに変換するためのプログラムを、コンピュータで読み取り可能に記録した記録媒体であって、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する機能と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する機能と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する機能と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する機能と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する機能と
を記録していることを要旨とする。
【0027】
こうしたプログラム、あるいは記録媒体に記録されているプログラムをコンピュータに読み込ませ、該コンピュータを用いて上述の各種機能を実現すれば、画像データを適切に且つ迅速に変換することが可能となる。
【0028】
【発明の実施の形態】
本発明の作用・効果をより明確に説明するために、本発明の実施の形態を、次のような順序に従って以下に説明する。
A.発明の概要:
B.装置構成:
C.画像データ変換処理の概要:
D.階調数変換処理の概要:
E.本実施例の階調数変換処理:
F.変形例:
【0029】
A.発明の概要:
図1を参照しながら、本発明の概要について説明する。図1は、印刷システムを例にとって、本発明の概要を示した説明図である。図1に示した印刷システムは、画像処理装置としてのコンピュータ10と、カラープリンタ20等から構成されている。コンピュータ10は、デジタルカメラやカラースキャナなどの画像機器からRGBカラー画像の階調画像データを受け取ると、該画像データを、カラープリンタ20で印刷可能な各色ドットの形成有無により表現された印刷データに変換する。かかる画像データの変換は、プリンタドライバ12と呼ばれる専用のプログラムを用いて行われる。尚、RGBカラー画像の階調画像データは、各種アプリケーションプログラムを用いてコンピュータ10で作成することもできる。
【0030】
図1に示したカラープリンタ20は、各色毎に大きさの異なる2種類のドット(大ドットおよび小ドット)を形成可能なプリンタである。このことに対応してプリンタドライバ12は、RGB画像データを、大ドットおよび小ドットについての形成有無によって表現されたデータに変換した後、印刷データとしてカラープリンタ20に供給する。
【0031】
プリンタドライバ12は、解像度変換モジュール,色変換モジュール,階調数変換モジュール,インターレースモジュールといった複数のモジュールから構成されている。RGB画像データは、これらモジュールで順次所定の処理が施されることによって印刷データに変換される。各モジュールで行う処理の詳細については後述するが、階調数変換モジュール14では、画像データは次のようにして大ドットおよび小ドットの形成有無によって表現された画像データに変換される。先ず、解像度変換モジュールおよび色変換モジュールで所定の処理が施された画像データを受け取ると、大ドットが分担して表現する階調成分と、小ドットが分担して表現する階調成分とに変換する。こうして得られたそれぞれの階調成分に基づいて、大ドットおよび小ドットについてのドット形成有無を判断する。
【0032】
大ドットと小ドットとが近接して形成されることの無いように、これらドットの形成有無は次のようにして判断する。説明の便宜上、ここでは、大ドットおよび小ドットのうち、先に判断した方のドットを第1のドットと呼び、後に判断した方のドットを第2のドットと呼ぶことにする。第1のドット形成有無を判断したら、判断結果に基づいて第2の階調成分を補正し、第2のドット形成有無の判断は、補正した階調成分に基づいて判断する。こうして、第1のドットについての判断結果に基づいて補正した第2の階調成分を用いて、第2のドットの形成有無を判断する。こうれば、第2のドットを適切に形成することができるので、大ドットおよび小ドットが近接して形成されることを回避することができる。その一方で、こうした方法では、第1のドットについての判断結果に基づいて第2の階調成分を補正している分だけ処理が複雑となり、迅速な処理を行うことが困難になる。
【0033】
そこで、図1に例示した印刷システムの階調数変換モジュール14では、第1のドットについての判断に先立って、第1の階調成分が「0」か否かを判断し、第1の階調成分が「0」である場合は、第1のドットについての形成有無を判断する処理と、該判断結果に基づいて第2の階調成分を補正する処理とを省略し、直ちに第2のドットの形成有無の判断を開始する。こうすれば、処理を省略した分だけ、ドットの形成有無の判断を迅速に行うことが可能となる。
【0034】
第1の階調成分が「0」の場合には、例えドットの形成有無を判断しても第1のドットが形成されることはない。このことから、第1のドットの形成有無を判断する処理および判断結果に基づき第2の階調成分を補正する処理を省略しても、画質に何ら悪影響を与えることなく、高画質の画像を表示することが可能である。以下では、こうした本発明の画像処理装置について、実施例に基づき詳細に説明する。
【0035】
B.装置構成:
図2は、本実施例の画像処理装置としてのコンピュータ100の構成を示す説明図である。コンピュータ100は、CPU102を中心に、ROM104やRAM106などを、バス116で互いに接続して構成された周知のコンピュータである。
【0036】
コンピュータ100には、フレキシブルディスク124やコンパクトディスク126などからデータを読み込むためのディスクコントローラDDC109や、周辺機器とデータの授受を行うための周辺機器インターフェースP・I/F108、CRT114を駆動するためのビデオインターフェースV・I/F112等が接続されている。P・I/F108には、後述するカラープリンタ200や、ハードディスク118等が接続されている。また、デジタルカメラ120や、カラースキャナ122等をP・I/F108に接続すれば、デジタルカメラ120やカラースキャナ122で取り込んだ画像を印刷することも可能である。また、ネットワークインターフェースカードNIC110を装着すれば、コンピュータ100を通信回線300に接続して、通信回線に接続された記憶装置310に記憶されているデータを取得することもできる。
【0037】
図3は、第1実施例のカラープリンタ200の概略構成を示す説明図である。カラープリンタ200はシアン,マゼンタ,イエロ,ブラックの4色インクのドットを形成可能なインクジェットプリンタである。もちろん、これら4色のインクに加えて、染料濃度の低いシアン(淡シアン)インクと染料濃度の低いマゼンタ(淡マゼンタ)インクとを含めた合計6色のインクドットを形成可能なインクジェットプリンタを用いることもできる。尚、以下では場合によって、シアンインク,マゼンタインク,イエロインク,ブラックインク,淡シアンインク,淡マゼンタインクのそれぞれを、Cインク,Mインク,Yインク,Kインク,LCインク,LMインクと略称するものとする。
【0038】
カラープリンタ200は、図示するように、キャリッジ240に搭載された印字ヘッド241を駆動してインクの吐出およびドット形成を行う機構と、このキャリッジ240をキャリッジモータ230によってプラテン236の軸方向に往復動させる機構と、紙送りモータ235によって印刷用紙Pを搬送する機構と、ドットの形成やキャリッジ240の移動および印刷用紙の搬送を制御する制御回路260とから構成されている。
【0039】
キャリッジ240には、Kインクを収納するインクカートリッジ242と、Cインク,Mインク,Yインクの各種インクを収納するインクカートリッジ243とが装着されている。キャリッジ240にインクカートリッジ242,243を装着すると、カートリッジ内の各インクは図示しない導入管を通じて、印字ヘッド241の下面に設けられた各色毎のインク吐出用ヘッド244ないし247に供給される。各色毎のインク吐出用ヘッド244ないし247は、こうして供給されたインクを用いてインク滴を吐出して、印刷媒体上にインクドットを形成する。
【0040】
制御回路260は、CPU261とROM262とRAM263等から構成されており、キャリッジモータ230および紙送りモータ235の動作を制御することによってキャリッジ240の主走査と副走査とを制御する。また、各色毎のインク吐出用ヘッド244ないし247の各ノズルからインク滴が適切なタイミングで吐出されるように、コンピュータ100から供給される印刷データに基づいてノズルの駆動タイミングを制御する処理も司っている。こうして、制御回路260の制御の下、印刷媒体上の適切な位置に各色のインクドットを形成することによって、カラープリンタ200はカラー画像を印刷することができる。
【0041】
尚、各色のインク吐出ヘッドからインク滴を吐出する方法には、種々の方法を適用することができる。すなわち、ピエゾ素子を用いてインクを吐出する方式や、インク通路に配置したヒータでインク通路内に泡(バブル)を発生させてインク滴を吐出する方法などを用いることができる。また、インクを吐出する代わりに、熱転写などの現象を利用して印刷用紙上にインクドットを形成する方式や、静電気を利用して各色のトナー粉を印刷媒体上に付着させる方式のプリンタを使用することも可能である。
【0042】
図4は、各色のインク吐出用ヘッド244ないし247の底面に、インク滴を吐出するノズルが形成されている様子を示した説明図である。図示するように、各色のインク吐出用ヘッドの底面には、各色毎のインク滴を吐出する4組のノズル列が形成されており、1組のノズル列は、48個のノズルがノズルピッチkの間隔を空けて千鳥状に配列されている。
【0043】
カラープリンタ200は、吐出するインク滴の大きさを制御することにより、印刷用紙上に形成されるインクドットの大きさを制御することができる。以下、カラープリンタ200で大きさの異なるインクドットを形成している方法について説明するが、その準備として、先ず、各色インクを吐出するノズルの内部構造について説明する。図5(a)は各色インクを吐出するノズルの内部構造を示した説明図である。各色のインク吐出用ヘッド244ないし247には、このようなノズルが複数設けられている。図示するように、各ノズルにはインク通路255と、インク室256と、インク室の上にピエゾ素子PEとが設けられている。キャリッジ240にインクカートリッジ242,243を装着すると、カートリッジ内のインクがインクギャラリ257を経由して、インク室256に供給される。ピエゾ素子PEは、周知のように電圧を印加すると、結晶構造が歪んで極めて高速に電気−機械エネルギの変換を行う素子である。本実施例では、ピエゾ素子PEの両端に設けられた電極間に所定波形の電圧を印加することで、インク室256の側壁を変形させる。その結果、インク室256の容積が減少し、容積の減少分に相当するインクがインク滴IpとなってノズルNzから吐出される。このインク滴Ipがプラテン236に装着された印刷用紙Pに染み込むことで、印刷用紙上にインクドットが形成される。
【0044】
図5(b)は、ピエゾ素子PEに印加する電圧波形を制御することで、吐出するインク滴の大きさを変更する原理を示した説明図である。ノズルからインク滴Ipを吐出するためには、ピエゾ素子PEに負の電圧を印加してインクギャラリ257からインク室256内に一旦インクを吸入し、その後、ピエゾ素子PEに正電圧を印加してインク室容積を減少させて、インク滴Ipを吐出させる。ここで、インクの吸引速度が適正であればインク室容積の変化量に相当するインクが流入するが、吸引速度が速すぎると、インクギャラリ257とインク室256との間には通路抵抗があるためにインクギャラリ257からのインクの流入が間に合わなくなる。その結果、インク通路255のインクがインク室内に逆流して、ノズル付近のインク界面が大きく後退した状態となる。図5(b)に実線で示した電圧波形aは、適正な速度でインクを吸引する波形を示し、破線で示した電圧波形bは適正速度より大きな速度で吸引する波形の一例を示している。
【0045】
充分なインクがインク室256内に供給された状態で、ピエゾ素子PEに正電圧を印加すると、インク室256の容積減少に相当する体積のインク滴IpがノズルNzから吐出される。これに対して、インクの供給量が不足してインク界面が大きく後退した状態で正電圧を印加すると、吐出されるインク滴は小さなインク滴となる。このように、本実施例のカラープリンタ200では、インク滴の吐出前に印加する負の電圧波形を制御してインクの吸引速度を変更することで、吐出するインク滴の大きさを制御し、大ドット,小ドットの2種類のインクドットを形成することが可能となっている。
【0046】
もちろん、2種類に限らずより多種類のドットを形成することも可能である。更には、微細なインク滴を一度に複数吐出して、吐出するインク滴の数を制御するといった方法を用いて、印刷用紙上に形成されるインクドットの大きさを制御してもよい。
【0047】
以上のようなハードウェア構成を有するカラープリンタ200は、キャリッジモータ230を駆動することによって、各色のインク吐出用ヘッド244ないし247を印刷用紙Pに対して主走査方向に移動させ、また紙送りモータ235を駆動することによって、印刷用紙Pを副走査方向に移動させる。制御回路260は、印刷データに従って、キャリッジ240の主走査および副走査を繰り返しながら、適切なタイミングでノズルを駆動してインク滴を吐出する。こうして、各色インクのドットを、印刷用紙上の適切な位置に形成することによって、カラープリンタ200は印刷用紙上にカラー画像を印刷している。
【0048】
C.画像データ変換処理の概要:
図6は、本実施例の画像処理装置としてのコンピュータ100が、受け取った画像データに所定の画像処理を加えることにより、印刷データに変換する処理の流れを示すフローチャートである。かかる処理は、コンピュータ100のオペレーティングシステムがプリンタドライバ12を起動することによって開始される。以下、図6に従って、本実施例の画像データ変換処理について簡単に説明する。
【0049】
プリンタドライバ12は、画像データ変換処理を開始すると、先ず初めに、変換すべきRGBカラー画像データの読み込みを開始する(ステップS100)。次いで、取り込んだ画像データの解像度を、カラープリンタ200が印刷するための解像度に変換する(ステップS102)。カラー画像データの解像度が印刷解像度よりも低い場合は、線形補間を行うことで隣接画像データ間に新たなデータを生成し、逆に印刷解像度よりも高い場合は、一定の割合でデータを間引くことによって画像データの解像度を印刷解像度に変換する。
【0050】
こうして解像度を変換すると、カラー画像データの色変換処理を行う(ステップS104)。色変換処理とは、R,G,Bの階調値の組み合わせによって表現されているカラー画像データを、C,M,Y,Kなどのカラープリンタ200で使用する各色の階調値の組み合わせによって表現された画像データに変換する処理である。色変換処理は、色変換テーブル(LUT)と呼ばれる3次元の数表を参照することで迅速に行うことができる。
【0051】
色変換処理を終了すると、続いて階調数変換処理を開始する(ステップS106)。階調数変換処理とは次のような処理である。色変換後の画像データは、階調値0から255の256階調を有するデータとして表現されているが、実際には、印刷用紙上に「大ドットを形成する」か、「小ドットを形成する」が、「いずれのドットも形成しない」かの、3つの状態しか取り得ない。そこで、256階調を有する画像データを、ドットの形成有無に対応したデータに変換する必要がある。このように階調数変換処理とは、256階調の画像データをドットの形成有無に対応した3階調の画像データに変換する処理である。階調数変換処理については、後ほど詳しく説明する。
【0052】
こうして階調数変換処理を終了すると、大ドットおよび小ドットの形成有無を画素毎に示したデータが得られる。続いてプリンタドライバ12は、インターレース処理を開始する(ステップS108)。インターレース処理とは、大ドットおよび小ドットの形成有無を表す形式に変換された画像データを、ドットの形成順序を考慮しながらカラープリンタ200に転送すべき順序に並べ替える処理である。こうして最終的に得られたデータを、プリンタドライバ12は、印刷データとしてカラープリンタ200に出力する(ステップS110)。カラープリンタ200は、印刷データに従って、各色のインクドットを印刷媒体上に形成する。その結果、画像データに対応したカラー画像が印刷用紙上に印刷される。
【0053】
D.階調数変換処理の概要:
前述したように、本実施例の階調数変換処理では、大ドットについての判断結果を考慮しながら小ドットの形成有無を判断することにより、大ドットと小ドットとが近接して形成されて画質が悪化することを回避している。加えて、こうした処理を行いながらも、ドットの形成有無を迅速に判断することが可能なように、後述する所定の条件を満足する場合には、大ドットについての形成有無を判断する処理を省略する。かかる本実施例の階調数変換処理について説明する準備として、先ず初めに、大ドットについての判断結果を考慮しながら小ドットの形成有無を判断しつつ、画像データの階調数を変換する処理について説明した後、本実施例の階調数変換処理について説明する。尚、以下では、大ドット、小ドットの順番でドットの形成有無を判断するものとして説明するが、小ドット、大ドットの順番で判断するものとすることも可能である。
【0054】
図7は、大ドットについての判断結果を考慮しながら小ドットの形成有無を判断することにより、画像データの階調数を変換する処理の流れを示したフローチャートである。以下、図7のフローチャートに従って説明する。尚、階調数変換処理は、各色毎に同様な処理を行うが、説明の煩雑化を避けるために、以下では色を特定せずに説明する。
【0055】
階調数変換処理を開始すると、先ず初めに1画素分の画像データを読み込んで、読み込んだ画像データから大ドット用データDL と小ドット用データDs とを算出する(ステップS200)。この処理で読み込む画像データは、色変換処理によって、プリンタに備えられたインクの各色による表現形式に変換された階調データである。こうして読み込んだ画像データを、大ドットの形成有無を判断するために使用する大ドット用データDL と、小ドットの形成有無の判断に使用する小ドット用データDs とに変換する。この変換は、変換テーブルと呼ばれる数表を参照することによって行われる。
【0056】
図8は、変換テーブルを概念的に示した説明図である。図示するように、変換テーブルには、入力画像データに対して、小ドット用のドットデータDs および大ドット用のドットデータDL が記憶されている。例えば、入力画像データdataAに対しては、小ドット用のドットデータとして階調値As が、大ドット用のドットデータとして階調値AL がそれぞれ設定されている。これらドットデータに基づいて、ドットの形成有無が判断される。ドットデータの階調値が大きくなるにつれて、ドットは形成され易くなる。すなわち、ドットデータの階調値は、ドットを形成する密度に対応していることになる。例えば、ドットデータの階調値「0」は、ドットが全く形成されないことに対応しており、ドットデータの階調値「255」は、すべての画素にドットを形成することに対応している。このように、単位面積あたりのすべての画素にドットが形成される状態を、ドット記録率100%と呼び、いずれの画素にもドットが形成されない状態を、ドット記録率0%と呼ぶものとする。同様に、ドットデータの階調値「128」はドット記録率50%、すなわち半数の画素にドットが形成される状態を示している。図8では、参考として、ドットデータに対応するドット記録率を併せて表示してある。
【0057】
こうして画像データを、大ドット用のドットデータDL と小ドット用のドットデータDs とに変換したら、大ドット用のドットデータDL に基づいて、処理中の画素に大ドットを形成するか否かの判断を行う(図7のステップS202)。かかる判断には、ディザ法あるいは誤差拡散法などの周知の手法を用いることができる。これら手法の内容については説明を省略するが、どのような手法を用いた場合でも、大ドット用データDL の階調値に応じた密度でドットが形成されるように、大ドットの形成有無が判断される。大ドット用のドットデータDL は、図8に示したように、入力画像データの階調値が大きくなるほど大きな値に設定されており、入力画像データが階調値「255」付近となる領域では、ほぼすべての画素に大ドットが形成されることになる。また、入力画像データの階調値が減少するに従って、大ドットが形成される密度は減少し、ある階調値以下の領域では大ドットは全く形成されなくなる。
【0058】
こうして大ドットのドット形成有無の判断を終了したら、処理中の画素に大ドットを形成すると判断したか否かを判断する(ステップS204)。そして、処理中の画素に大ドットを形成すると判断されている場合は(ステップS204:yes)、小ドットについての形成有無を判断する代わりに、ステップS206の処理を行う。ステップS206では、大ドットを形成したことにより処理中の画素に生じた階調誤差を算出して、得られた階調誤差を周辺の未処理の画素に拡散する処理を行う。ここで階調誤差は、処理画素の補正データDx から大ドットの結果値RVを減算することによって算出することができる。また、大ドットの結果値とは、大ドットを形成することによって処理画素に表現される階調値をいう。こうして得られた階調誤差を、処理画素の周辺にある未処理の画素に、所定の割合で拡散させる。
【0059】
図9は、階調誤差を拡散させるための所定の割合が設定されている様子を例示した説明図である。図9に示した小さな正方形は、それぞれが画素を示しており、斜線を付して示した画素は、ドット形成有無を判断した処理画素を示している。処理画素で発生した階調誤差は、周辺の画素に示した所定の割合で拡散される。例えば、処理画素の右隣の画素には、階調誤差の1/4の誤差が拡散され、この画素を挟んで更に右隣の画素には階調誤差の1/8の誤差が拡散される。また、処理画素の真下の画素には階調誤差の1/4の誤差が拡散される。処理画素に左隣の画素、あるいは更にその左隣の画素には階調誤差は拡散されない。これは、これらの画素については、既にドットの形成有無の判断を終了していることによる。
【0060】
一方、処理中の画素に大ドットを形成しないと判断された場合は(図7のステップS204:no)、小ドットを形成するか否かを判断するための処理を開始する。小ドットについての形成有無の判断は、合成データDc に基づいて行われる。合成データDc とは、大ドット用データDL と小ドット用データDs とを加算したデータである。小ドットについての形成有無の判断を、このような合成データDc に基づいて行うのは、後述するように、大ドットについての判断の結果を反映させながら小ドットの形成有無を判断するためである。図7の階調数変換処理では、小ドットについてのドット形成有無を判断する処理を開始すると、先ず初めに、大ドット用のドットデータDL と小ドット用のドットデータDs とを加算して、合成データDc を算出する処理を行う(ステップS208)。
【0061】
次いで、補正データDx を算出する処理を行う(ステップS210)。補正データDx は、先に得られた合成データDc に、処理中の画素に拡散されている拡散誤差ΔDerを加算することによって行う。拡散誤差ΔDerを算出する方法については後述するが、この誤差は大ドットについての形成有無を判断したことによって生じた誤差を、処理画素の周辺にある未判断の画素に拡散したものである。
【0062】
こうして補正データDx を算出したら、得られた補正データDx に基づいて、小ドットについての形成有無の判断を開始する(ステップS212)。かかる判断も、ディザ法あるいは誤差拡散法などの周知の手法を用いて行うことができる。このように、図7に示した階調数変換処理では、合成データDc に大ドットの形成有無を判断したことに起因した拡散誤差ΔDerを加算して補正データDx を算出し、得られた補正データDx に基づいて小ドットの形成有無を判断している。このため、小ドットの形成有無の判断に際して、大ドットについて判断した結果が考慮され、小ドットの形成有無を適切に判断することが可能となる。尚、小ドットの形成有無の判断に、小ドット用のドットデータDs ではなく、大ドット用のドットデータDL も加えた合成データDc を用いる理由については後述する。
【0063】
こうして、処理画素について、大ドットあるいは小ドットの形成有無を判断したら、全画素についてドットの形成有無を判断する処理を終了したか否かについて判断し(ステップS214)、未処理の画素が残っていれば、ステップS200に戻って再び上述した一連の処理を繰り返す。こうして、すべての画素についての処理を終了したら、図7に示した階調数変換処理を抜けて、図6に示した画像データ変換処理に復帰する。
【0064】
以上に説明したように、図7の階調数変換処理では、大ドット用のドットデータDL と小ドット用のドットデータDs とを加算して合成データDc を算出し、得られた合成データDc を、大ドットを形成したことにより生じた拡散誤差によって補正する。こうして算出された補正データDx に基づいて小ドットの形成有無を判断すれば、大ドットの判断結果を考慮しながら適切な判断を行うことができる。以下、この理由について説明する。
【0065】
例えば、ある画素に大ドットが形成されたものとする。すると、その画素には、大ドットが形成されたことによる階調誤差が発生する。入力画像データが中間階調より低階調となるような画像では、大ドットが形成されることによって大きな負の階調誤差が発生する。こうして発生した階調誤差は、処理画素の周辺の未処理画素に拡散される。これら未処理の画素のドット形成有無を判断する際には、拡散された誤差ΔDerを用いて合成データDc を補正し補正データDx に基づいて判断する。大ドットを形成したことによって発生した階調誤差は、負の誤差であるから、誤差が拡散された画素では補正データDx の値は合成データDc の値よりも小さくなる。この結果、大ドットが形成された画素の周辺の画素では、小ドットが形成され難くなる。一方、大ドットを形成した画素で生じた階調誤差が拡散されないような離れた画素では、逆に小ドットが形成され易くなる。何故なら、合成データは大ドット用のドットデータDL が加算されている分だけ、小ドット用のドットデータDs よりも大きな値となっており、この様な合成データDc に基づいて小ドットの形成有無を判断すれば、小ドット用のドットデータDs に基づいてドット形成の有無を判断した場合よりも、ドットが多めに形成されるからである。
【0066】
以上の説明から明らかなように、上述した方法を用いて大ドットおよび小ドットの形成有無を判断すれば、大ドットが形成された画素の周辺では小ドットは形成され難くなる。また、大ドットから離れた位置にある画素では、逆に小ドットが形成され易くなる。このため、特に、大ドットと小ドットとが混在して形成されるような中間階調領域では、これらドットを適切に分散させて形成することができ、印刷画質を大きく改善することが可能である。その一方で、かかる方法では、処理が複雑となる分だけ時間がかかり、ドットの形成有無を迅速に判断することが困難である。そこで、本実施例のプリンタドライバ12は、次のようにして階調数変換処理を行う。
【0067】
E.本実施例の階調数変換処理:
図10は、本実施例のプリンタドライバ12が行う階調数変換処理の流れを示したフローチャートである。本実施例の階調数変換処理は、図7に示した処理に対して、所定の条件を満足する場合には、大ドットについての形成有無を判断する処理を省略する点が大きく異なっている。以下では、こうした相違点を中心にして、本実施例の階調数変換処理について説明する。
【0068】
本実施例の階調数変換処理においても、処理を開始すると、先ず初めに1画素分の画像データを読み込んで、読み込んだ画像データから大ドット用データDL と小ドット用データDs とを算出する(ステップS300)。かかる処理は、図8に例示した変換テーブルを参照することによって行われる。
【0069】
次いで、大ドット用のドットデータDL の階調値が「0」か否かを判断する(ステップS302)。大ドット用のドットデータDL の階調値が「0」でない場合は(ステップS302:no)、図7を用いて前述した階調数変換処理と同様に、大ドットについてのドット形成有無を判断する(ステップS304)。ドット形成有無の判断には、誤差拡散法やディザ法などの周知な種々の方法を適用することができる。そして、処理画素に大ドットを形成した場合には(ステップS306:yes)、その処理画素については小ドットの形成有無を判断することなく、階調誤差を周辺の画素に拡散させる処理を開始する(ステップS308)。また、処理画素に大ドットが形成されなかった場合は(ステップS306:no)、合成データDc を算出して(ステップS310)、拡散誤差を加えて補正データDx を算出し(ステップS312)、得られた補正データDx に基づいて小ドットの形成有無を判断する(ステップS314)。
【0070】
一方、ステップS302において、大ドット用のドットデータDL の階調値が「0」と判断された場合には(ステップS302:yes)、大ドットについての形成有無を判断することなく、ステップS310に進んで、直ちに小ドットの形成有無を判断する処理を開始する。
【0071】
以上のようにして、処理画素について、大ドットあるいは小ドットの形成有無を判断したら、全画素についてドットの形成有無を判断する処理を終了したか否かについて判断し(ステップS316)、未処理の画素が残っていれば、ステップS300に戻って再び上述した一連の処理を繰り返す。こうして、すべての画素についての処理を終了したら、本実施例の階調数変換処理を終了する。
【0072】
このように、本実施例の階調数変換処理では、大ドット用のドットデータDL の階調値が「0」である場合は、大ドットについての形成有無を判断する処理(ステップS304、S306)および、大ドットの形成に伴って処理画素に生じた階調誤差を周辺の未処理の画素に拡散させる処理(ステップS308)を省略することができる。また、階調誤差を周辺の画素に拡散させる処理は、図9に例示した所定の割合で複数の画素に誤差を配分しなければならず、迅速な処理を図る上で律速段階となりがちな処理である。従って、かかる処理を省略することにより、階調数変換処理に要する時間を短縮化することが可能となる。
【0073】
また、前述したように、大ドットの形成有無は大ドット用のドットデータDL に基づいて判断される。このことから、大ドット用のドットデータDL の階調値が「0」であれば、その処理画素については、大ドットの形成有無を判断する処理および大ドットを形成したことによって生じた階調誤差を拡散させる処理を省略しても、画質を悪化させるおそれはない。従って、本実施例の階調数変換処理を用いれば、大ドットおよび小ドットの形成有無を迅速にかつ適切に判断することが可能となり、延いては、良好な画質の画像を迅速に印刷することができる。
【0074】
F.変形例:
上述した本実施例の階調数変換処理には、種々の変形例が存在している。以下では、これら変形例について簡単に説明する。
【0075】
(1)第1の変形例:
上述した実施例では、大ドットの形成有無についての判断を実施するか否かは、大ドット用のドットデータDL の階調値が「0」か否かに基づいて判断したが、これに限らず、入力画像データに基づいて判断することとしてもよい。すなわち、大ドット用のドットデータDL は、図11に示すような変換テーブルに予め設定されており、入力画像データが階調値Aよりも小さければ、大ドット用のドットデータDL の階調値は「0」となる。従って、このような階調値Aを予め求めておき、入力画像データと階調値Aとを比較して、入力画像データの方が小さければ、大ドットの形成有無の判断を省略することとしても良い。
【0076】
あるいは、合成データの階調値と所定の閾値とを比較することによって判断することもできる。ここで閾値の値は、大ドット用のドットデータDL が「0」でない値を採る範囲で、合成データDc が採り得る最小値とすることができる。図11に示した階調値「C」は、このような値を示している。図11から明らかなように、合成データDc が階調値「C」より小さければ、入力画像データは少なくとも階調値「0」から階調値「B」の範囲にあり、大ドット用のドットデータDL の階調値は「0」となっている。従って、このような閾値Cを予め求めておき、合成データDc が閾値Cより小さければ、大ドットの形成有無の判断を省略することもできる。
【0077】
(2)第2の変形例:
小ドットについてのドット形成有無の判断に、いわゆる誤差拡散法を適用する場合には、大ドットを形成したことによって生じた階調誤差を拡散させる処理と、小ドットの形成有無を判断したことによって生じた階調誤差を拡散させる処理とを共用することとしてもよい。図12は、こうした階調数変換処理の一例を示すフローチャートである。以下、図12のフローチャートに従って簡単に説明する。
【0078】
処理を開始すると、先ず初めに画像データを取得して、大ドット用のドットデータと小ドット用のドットデータとを算出する(ステップS400)。次いで、大ドット用のドットデータDL の階調値が「0」か否かを判断し(ステップS402)、ドットデータDL の階調値が「0」でない場合は、大ドットについての形成有無を判断する(ステップS404)。次いで、大ドットを形成したか否かを判断し(ステップS406)、大ドットを形成していない場合には小ドットの形成有無の判断を開始する。また、ドットデータDL の階調値が「0」の場合は、直ちに小ドットの形成有無の判断を開始する。
【0079】
小ドットについての形成有無の判断を開始すると、合成データDc に拡散誤差ΔDerを加算して補正データDx を算出する(ステップS408,S410)。次いで、補正データDx と誤差拡散法の閾値とを比較して、補正データDx の方が大きければ小ドットを形成すると判断し、そうでなければドットを形成しないと判断する(ステップS412)。
【0080】
こうして大ドットあるいは小ドットの形成有無を判断したら、結果値を設定する処理を行う(ステップS414)。結果値とは、ドットを形成したこと、あるいは形成しなかったことによって、処理画素に表現される階調値である。ステップS414においては、処理画素に大ドットが形成された場合には大ドットに対応した結果値を設定し、小ドットが形成された場合は小ドットに対応した結果値を設定する。また、ドットが形成されなかった場合には結果値として階調値「0」を設定する。
【0081】
次いで、補正データDx から、こうして設定した結果値を算出することにより階調誤差を算出し、得られた階調誤差を、処理画素の周辺にある未処理画素に拡散させる(ステップS416)。階調誤差は、図9に例示したような所定の割合で周辺の未処理画素に拡散する。こうして、大ドットあるいは小ドットの形成有無を判断したことによって生じた階調誤差を拡散させたら、全ての画素についての処理を終了したか否かを判断し(ステップS418)、未処理の画素が残っていればステップS400に戻って、上述した一連の処理を繰り返す。全ての画素の処理が終わったら、階調数変換処理を終了して、図6に示した画像データ変換処理に復帰する。
【0082】
以上に説明した第2の変形例の階調数変換処理では、大ドットを形成したことによって生じた階調誤差を拡散させる処理と、小ドットについての形成有無を判断したことによって生じた階調誤差を拡散させる処理とを共用することができる。このため、階調数変換処理を簡素な構成とすることができるので好ましい。
【0083】
(3)第3の変形例:
上述した実施例では、大ドットおよび小ドットの2種類のドットについて、ドット形成有無を判断するものとして説明したが、もちろん、より多数のドットについて、ドット形成有無を判断することもできる。例えば、大ドット、小ドットに、中ドットを加えた3種類のドットについて、ドット形成有無を判断することとしてもよい。
【0084】
あるいは、濃度の異なる複数種類のインクをプリンタに装着して、濃インクを用いて形成する濃ドットと、淡インクを用いて形成する淡ドットとについて、ドットの形成有無を判断することとしても良い。更には、これら濃インク、淡インクのそれぞれについて大きさの異なるドットを形成可能として、これらを組み合わせた各種ドットについて、ドット形成の有無を判断することとしても良い。
【0085】
以上、各種の実施例について説明してきたが、本発明は上記すべての実施例に限られるものではなく、その要旨を逸脱しない範囲において種々の態様で実施することができる。例えば、上述の機能を実現するソフトウェアプログラム(アプリケーションプログラム)を、通信回線を介してコンピュータシステムのメインメモリまたは外部記憶装置に供給し実行するものであってもよい。もちろん、CD−ROMやフレキシブルディスクに記憶されたソフトウェアプログラムを読み込んで実行するものであっても構わない。
【0086】
また、上述した各種実施例では、画像データ変換処理はコンピュータ内で実行されるものとして説明したが、画像データ変換処理の一部あるいは全部をプリンタ側、あるいは専用の画像処理装置を用いて実行するものであっても構わない。
【0087】
更には、画像表示装置は、必ずしも印刷媒体上にインクドットを形成して画像を印刷する印刷装置に限定されるものではなく、例えば、液晶表示画面上で輝点を適切な密度で分散させることにより、階調が連続的に変化する画像を表現する液晶表示装置であっても構わない。
【図面の簡単な説明】
【図1】本発明の概要を例示した印刷システムの概略構成図である。
【図2】本実施例の画像処理装置としてのコンピュータの構成を示す説明図である。
【図3】本実施例の画像表示装置としてのプリンタの概略構成図である。
【図4】インク吐出用ヘッドの底面にノズルが配置されている様子を示した説明図である。
【図5】本実施例のプリンタが大きさの異なるドットを形成する原理を示す説明図である。
【図6】本実施例の画像処理装置で行われる画像データ変換処理の流れを示すフローチャートである。
【図7】大ドットについての判断結果を考慮しながら小ドットの形成有無を判断することにより、画像データの階調数を変換する処理の流れを示すフローチャートである。
【図8】入力画像データに対応付けて小ドット用および大ドット用のそれぞれのドットデータが設定されている様子を示す説明図である。
【図9】発生した階調誤差を周辺画素に拡散させる重み係数を例示した説明図である。
【図10】本実施例の階調数変換処理の流れを示すフローチャートである。
【図11】第1の変形例の階調数変換処理において、入力画像データあるいは合成データに基づいて制御を切り換える様子を示す説明図である。
【図12】第2の変形例の階調数変換処理の流れを示すフローチャートである。
【符号の説明】
10…コンピュータ
12…プリンタドライバ
14…階調数変換モジュール
20…カラープリンタ
100…コンピュータ
100…ドット記録率
102…CPU
104…ROM
106…RAM
108…周辺機器インターフェースP・I/F
109…ディスクコントローラDDC
110…ネットワークインターフェースカードNIC
112…ビデオインターフェースV・I/F
114…CRT
116…バス
118…ハードディスク
120…デジタルカメラ
122…カラースキャナ
124…フレキシブルディスク
126…コンパクトディスク
200…カラープリンタ
230…キャリッジモータ
235…紙送りモータ
236…プラテン
240…キャリッジ
241…印字ヘッド
242,243…インクカートリッジ
244〜247…インク吐出用ヘッド
255…インク通路
256…インク室
257…インクギャラリ
260…制御回路
261…CPU
262…ROM
263…RAM
300…通信回線
310…記憶装置
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a technique for converting gradation image data into image data expressed by the presence or absence of various dots.
[0002]
[Prior art]
An image display device that expresses an image by forming dots on a display medium such as a print medium or a liquid crystal screen is widely used as an output device of various image devices. Such an image display device can express only the state of whether or not to form dots locally, but it can be achieved by appropriately controlling the dot formation density according to the gradation value of the image. It is possible to express a gradation image. In addition, image display devices that can change the size of dots to be formed and the density of dots are also widely used. Since such an image display device can express a plurality of gradation values even with a single dot, if these various dots are formed with an appropriate density according to the gradation value of the image to be displayed, higher image quality can be achieved. It is possible to display a simple image.
[0003]
In such an image display device, it is necessary to form dots with an appropriate density according to the gradation value of the image. For this reason, it is determined whether or not to form dots for each pixel, and the image data is converted into dot data. Processing to convert the data into an expression format depending on whether or not it is formed is performed. When various types of dots can be formed, it is desirable to make such a determination in consideration of the determination results for other types of dots, rather than making a separate determination for each type of dot. This is because if different types of dots are determined separately, different types of dots may accidentally be formed on the same or close pixels, and the collection of these dots may be visually recognized, degrading image quality. It is. When determining whether or not dots are formed, it is possible to avoid deterioration in image quality caused by such a phenomenon if the determination is made in consideration of the determination results for other types of dots. As described above, a technique for determining whether or not to form dots for various dots while considering the determination results for different types of dots has already been filed by the applicant of the present application (for example, International Publication No. WO98 / 03341).
[0004]
[Problems to be solved by the invention]
However, if the determination of dot formation is determined in consideration of the determination results for different dots, the processing becomes complicated as much as the determination results of other types of dots are taken into account. There's a problem. If processing takes time, it becomes difficult to display an image quickly. However, if the judgment results for different types of dots are not taken into account, the display image quality may be deteriorated.
[0005]
The present invention has been made to solve the above-mentioned problems in the prior art, and can quickly convert image data into data in an expression format based on the presence or absence of various dots without deteriorating the image quality. Aims to provide new technology.
[0006]
[Means for solving the problems and their functions and effects]
  In order to solve at least a part of the problems described above, the image processing apparatus of the present invention employs the following configuration. That is,
  An image processing apparatus that converts image data representing a gradation value for each pixel into data representing the presence or absence of formation of first and second dots having different gradation values expressed for each pixel,
  A level for converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot. A tone value conversion means;
  First dot formation determination means for determining whether or not the first dot is formed based on the first gradation component;
  A gradation component correcting unit that corrects the second gradation component based on the determination result when the determination result for the first dot is obtained;
  Second dot formation determination means for determining whether or not the second dot is formed based on the second gradation component;
  Prohibiting means for prohibiting the determination of the presence / absence of formation of the first dot for the pixel having the first gradation component of zero;
  With,
The gradation component correcting means includes
A gradation error that calculates a gradation error that is a deviation between the gradation value represented by the determined pixel and the first gradation component for the pixel by determining whether or not the first dot is formed A calculation means;
The second gradation is obtained by diffusing the calculated gradation error to peripheral pixels around the pixel for which the gradation error has been calculated and for which the presence or absence of the first or second dot is not determined. Gradation error diffusion means for correcting the component;
  It is a summary to provide.
[0007]
  The image processing method of the present invention corresponding to the above image processing apparatus is
  An image processing method for converting image data representing a gradation value for each pixel into data representing the presence / absence of formation of first and second dots having different gradation values expressed for each pixel,
  Converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot When,
  Determining whether or not the first dot is formed based on the first gradation component;
  When a determination result for the first dot is obtained, correcting the second gradation component based on the determination result;
  Determining whether or not the second dot is formed based on the second gradation component;
  A step of prohibiting the determination of whether or not the first dot is formed for a pixel in which the first gradation component is zero;
  With,
The step of correcting the second gradation component includes:
Calculating a gradation error that is a deviation between the gradation value expressed in the determined pixel by determining whether or not the first dot is formed and the first gradation component for the pixel;
The second gradation is obtained by diffusing the calculated gradation error to peripheral pixels around the pixel for which the gradation error has been calculated and for which the presence or absence of the formation of the first or second dot has not been determined. Correct componentsThis is the gist.
[0008]
In the image processing apparatus and the image processing method, whether or not the first dot is formed is determined based on the first gradation component, and whether or not the second dot is formed is determined based on the second gradation component. to decide. Since the second gradation component is corrected based on the determination result for the first dot, it is possible to appropriately determine whether or not the second dot is formed. Further, for pixels in which the first gradation component is zero, the determination of whether or not the first dot is formed is not performed, and accordingly, the second gradation component is not corrected. For this reason, the process which converts image data into the data of the expression format by the presence or absence of formation of the 1st dot and the 2nd dot can be speeded up. Since it may be considered that the first dot is not formed for the pixel having the first gradation component of zero, based on the process of determining whether or not the first dot is formed and the determination result Even if the process for correcting the second gradation component is omitted, the substantial process remains unchanged. Therefore, it is possible to speed up the process of converting the image data without adversely affecting the image quality.
[0009]
  In such an image processing apparatus, it is determined whether or not the first dot is formed, and the gradation error generated in the determined pixel is calculated. The second gradation component of these peripheral pixels is corrected by diffusing to pixels (peripheral pixels) for which the presence / absence of the formation of the pixel is notTheHere, the gradation error is a deviation between the gradation value expressed in the pixel by determining whether or not the first dot is formed and the first gradation component for the pixel.
[0010]
  In the second invention, instead of the above configuration,A composite gradation component is calculated by adding the first gradation component and the second gradation component, and whether or not the second dot is formed is determined based on the composite gradation component.Use a configuration that. TakeConstitutionDetermines whether or not the first dot is formed, and calculates a gradation error caused by the determination for the pixel forming the first dot. Then, the obtained gradation error is diffused to surrounding pixels for which it has not yet been determined whether or not dots are formed, and the combined gradation component is corrected.The thisCase,As the gradation error, a deviation between the gradation value expressed in the pixel by forming the first dot and the composite gradation component for the pixel is used.
[0011]
In the image processing apparatus according to the former method, the second tone component is corrected by diffusing the tone error caused by determining whether or not the first dot is formed, so that the pixel on which the first dot is formed It is difficult to form the second dots in the vicinity of. As a result, the first dot and the second dot are formed at positions close to each other and the image quality is not deteriorated. On the other hand, since the second dots are easily formed in the area around the pixels where the first dots are not formed, the second dots are formed with an appropriate density as a whole.
[0012]
In the image processing apparatus using the latter method, a composite gradation component is calculated. If this is compared with the former method, it can be roughly considered as follows. That is, in the former method, assuming that the first dot is not formed on any pixel, it is almost equivalent to correcting the second gradation component in advance by diffusing the gradation error caused by this. Can be considered equal. Next, it is determined whether or not the first dot is formed, and when the first dot is formed, the second gradation component is renewed by diffusing the gradation error caused thereby to the combined gradation component. Is corrected, it is determined whether or not the second dot is formed. On the other hand, if no dot is formed, the presence / absence of the second dot is determined using the composite gradation component as it is.
[0013]
In this way, in the method of calculating the composite gradation component by adding the first gradation component and the second gradation component in advance, it is only necessary to diffuse the gradation error only when the first dot is formed. This is preferable because the process of converting the image data can be performed quickly.
[0014]
In the above-described image processing apparatus, the first dot can be a dot having a larger gradation value expressed per pixel than the second dot.
[0015]
Dots with a large gradation value expressed per pixel tend to generate a larger gradation error than dots with a small gradation value to be expressed. Therefore, if the first dot is a dot having a larger gradation value expressed per pixel than the second dot, a relatively large gradation generated by determining whether or not the first dot is formed. The error can be appropriately eliminated by determining whether or not the second dot is formed.
[0016]
Here, since the dot changes the gradation value expressed per pixel, the first dot can be a dot having a larger dot size than the second dot. Alternatively, the first dot can be a dot that is lighter (darker) than the second dot.
[0017]
These methods are preferable because the gradation values expressed by the first dot and the second dot per pixel can be varied relatively easily and accurately.
[0018]
In the image processing apparatus described above, for the pixel whose gradation value of the image data is equal to or less than the predetermined value, it is determined that the first gradation component of the pixel is zero, and the formation of the first dot is performed. The presence / absence determination may be prohibited.
[0019]
The first gradation component is determined according to the gradation value of the image data, and the gradation value of the image data increases as the first gradation component increases. That is, there is image data that can be used as a threshold value for determining whether or not the first gradation component becomes zero, and such a threshold value can be obtained in advance. Then, when the gradation value of the image data is smaller than such a threshold value, the first gradation component may be considered to be zero. Therefore, if the determination of the presence / absence of formation of the first dot is prohibited when the gradation value of the image data is smaller than such a threshold value, whether the formation / non-existence of the first dot is determined. It is preferable because it can be quickly determined whether or not.
[0020]
In the image processing apparatus described above, at least one of the first dot and the second dot may be determined by using a so-called error diffusion method to determine whether or not dots are formed.
[0021]
The error diffusion method can obtain a high-quality image, but tends to take time to convert image data. Therefore, it is preferable to apply the above-described image processing apparatus capable of quickly converting image data because both high image quality and rapid processing can be achieved.
[0022]
Further, the printing unit capable of forming the first dot and the second dot having different gradation values expressed per pixel is controlled by the above-described image processing apparatus, and the image processing apparatus can be used as the print control apparatus. Good.
[0023]
Furthermore, the printing apparatus may be configured by combining the printing unit capable of forming first dots and second dots having different gradation values expressed per pixel and the above-described image processing apparatus.
[0024]
By controlling the printing unit using such a printing control device or printing an image using the printing device, a high-quality image in which the first dot and the second dot are appropriately formed can be quickly obtained. It is preferable because it can be printed on.
[0025]
Furthermore, the present invention can also be realized using a computer by causing a computer to read a program that realizes the above-described image processing method. Accordingly, the present invention includes the following program or a mode as a recording medium storing the program. That is, the program of the present invention corresponding to the image processing method described above is
To realize a method of converting image data representing a gradation value for each pixel into data representing the presence or absence of formation of first and second dots having different gradation values expressed for each pixel using a computer The program of
A function of converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot When,
A function of determining whether or not the first dot is formed based on the first gradation component;
A function for correcting the second gradation component based on the determination result when the determination result for the first dot is obtained;
A function of determining whether or not the second dot is formed based on the second gradation component;
A function that prohibits the determination of the presence or absence of formation of the first dot for the pixel in which the first gradation component is zero;
The gist is to realize.
[0026]
The recording medium of the present invention corresponding to the above-described image processing method is
A computer-readable program for converting image data representing gradation values for each pixel into data representing the presence or absence of formation of first and second dots having different gradation values expressed for each pixel A recorded recording medium,
A function of converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot When,
A function of determining whether or not the first dot is formed based on the first gradation component;
A function for correcting the second gradation component based on the determination result when the determination result for the first dot is obtained;
A function of determining whether or not the second dot is formed based on the second gradation component;
A function that prohibits the determination of the presence or absence of formation of the first dot for the pixel in which the first gradation component is zero;
The gist is to record.
[0027]
If such a program or a program recorded on a recording medium is read into a computer and the above-described various functions are realized using the computer, image data can be appropriately and quickly converted.
[0028]
DETAILED DESCRIPTION OF THE INVENTION
In order to more clearly describe the operation and effect of the present invention, embodiments of the present invention will be described below in the following order.
A. Summary of the invention:
B. Device configuration:
C. Overview of image data conversion process:
D. Overview of gradation conversion processing:
E. Tone number conversion processing of this embodiment:
F. Variations:
[0029]
A. Summary of the invention:
The outline of the present invention will be described with reference to FIG. FIG. 1 is an explanatory diagram showing an outline of the present invention, taking a printing system as an example. The printing system shown in FIG. 1 includes a computer 10 as an image processing apparatus, a color printer 20 and the like. When the computer 10 receives gradation image data of an RGB color image from an image device such as a digital camera or a color scanner, the computer 10 converts the image data into print data expressed by the presence or absence of each color dot that can be printed by the color printer 20. Convert. Such conversion of image data is performed using a dedicated program called the printer driver 12. Note that the gradation image data of the RGB color image can also be created by the computer 10 using various application programs.
[0030]
The color printer 20 shown in FIG. 1 is a printer that can form two types of dots (large dots and small dots) having different sizes for each color. In response to this, the printer driver 12 converts the RGB image data into data expressed by the presence / absence of formation of large dots and small dots, and then supplies the data to the color printer 20 as print data.
[0031]
The printer driver 12 includes a plurality of modules such as a resolution conversion module, a color conversion module, a gradation number conversion module, and an interlace module. The RGB image data is converted into print data by sequentially performing predetermined processing in these modules. Although details of processing performed by each module will be described later, in the gradation number conversion module 14, the image data is converted into image data expressed by the presence or absence of formation of large dots and small dots as follows. First, when image data that has been subjected to predetermined processing by the resolution conversion module and the color conversion module is received, it is converted into a gradation component that is represented by large dots and a gradation component that is represented by small dots. To do. Based on the gradation components thus obtained, the presence / absence of dot formation for large dots and small dots is determined.
[0032]
Whether or not these dots are formed is determined as follows so that the large dots and the small dots are not formed adjacent to each other. For convenience of explanation, of the large dots and small dots, the dot determined earlier is referred to as a first dot, and the dot determined later is referred to as a second dot. When it is determined whether or not the first dot is formed, the second tone component is corrected based on the determination result, and whether or not the second dot is formed is determined based on the corrected tone component. Thus, it is determined whether or not the second dot is formed using the second gradation component corrected based on the determination result for the first dot. In this case, since the second dots can be appropriately formed, it is possible to avoid the formation of the large dots and the small dots close to each other. On the other hand, in such a method, the processing becomes complicated by correcting the second gradation component based on the determination result for the first dot, and it is difficult to perform the quick processing.
[0033]
Therefore, the gradation number conversion module 14 of the printing system illustrated in FIG. 1 determines whether or not the first gradation component is “0” before determining the first dot, and determines the first floor. When the tone component is “0”, the process of determining whether or not the first dot is formed and the process of correcting the second tone component based on the determination result are omitted, and the second tone is immediately Judgment of dot formation is started. In this way, it is possible to quickly determine whether or not dots are formed by the amount that the process is omitted.
[0034]
When the first gradation component is “0”, the first dot is not formed even if it is determined whether or not the dot is formed. Therefore, even if the process of determining whether or not the first dot is formed and the process of correcting the second tone component based on the determination result are omitted, a high-quality image can be obtained without adversely affecting the image quality. It is possible to display. Hereinafter, the image processing apparatus of the present invention will be described in detail based on examples.
[0035]
B. Device configuration:
FIG. 2 is an explanatory diagram illustrating a configuration of a computer 100 as the image processing apparatus according to the present exemplary embodiment. The computer 100 is a well-known computer configured by connecting a ROM 104, a RAM 106, and the like with a bus 116 around a CPU 102.
[0036]
The computer 100 includes a disk controller DDC 109 for reading data from a flexible disk 124, a compact disk 126, and the like, and a video for driving a peripheral device interface P / I / F 108 and a CRT 114 for exchanging data with peripheral devices. Interface V / I / F 112 and the like are connected. The P / I / F 108 is connected to a color printer 200, a hard disk 118, and the like which will be described later. Further, if a digital camera 120, a color scanner 122, or the like is connected to the P / I / F 108, an image captured by the digital camera 120 or the color scanner 122 can be printed. If the network interface card NIC 110 is attached, the computer 100 can be connected to the communication line 300 to acquire data stored in the storage device 310 connected to the communication line.
[0037]
FIG. 3 is an explanatory diagram showing a schematic configuration of the color printer 200 of the first embodiment. The color printer 200 is an ink jet printer capable of forming dots of four color inks of cyan, magenta, yellow, and black. Of course, in addition to these four color inks, an ink jet printer capable of forming ink dots of a total of six colors including cyan (light cyan) ink having a low dye density and magenta (light magenta) ink having a low dye density is used. You can also. In the following, cyan ink, magenta ink, yellow ink, black ink, light cyan ink, and light magenta ink are abbreviated as C ink, M ink, Y ink, K ink, LC ink, and LM ink, respectively. Shall.
[0038]
As shown in the figure, the color printer 200 drives a print head 241 mounted on a carriage 240 to eject ink and form dots, and the carriage 240 is reciprocated in the axial direction of a platen 236 by a carriage motor 230. And a control circuit 260 that controls dot formation, carriage 240 movement, and printing sheet conveyance.
[0039]
An ink cartridge 242 that stores K ink and an ink cartridge 243 that stores various inks of C ink, M ink, and Y ink are mounted on the carriage 240. When the ink cartridges 242 and 243 are mounted on the carriage 240, each ink in the cartridge is supplied to ink discharge heads 244 to 247 for each color provided on the lower surface of the print head 241 through an introduction pipe (not shown). The ink ejection heads 244 to 247 for each color eject ink droplets using the ink thus supplied to form ink dots on the print medium.
[0040]
The control circuit 260 includes a CPU 261, a ROM 262, a RAM 263, and the like, and controls main scanning and sub scanning of the carriage 240 by controlling operations of the carriage motor 230 and the paper feed motor 235. Also, a process for controlling the nozzle drive timing based on the print data supplied from the computer 100 so that ink droplets are ejected from the nozzles of the ink ejection heads 244 to 247 for each color at an appropriate timing. ing. Thus, the color printer 200 can print a color image by forming ink dots of respective colors at appropriate positions on the print medium under the control of the control circuit 260.
[0041]
Various methods can be applied to the method of ejecting ink droplets from the ink ejection heads of the respective colors. That is, a method of ejecting ink using a piezoelectric element, a method of ejecting ink droplets by generating bubbles in the ink passage with a heater arranged in the ink passage, and the like can be used. Also, instead of ejecting ink, use a method that uses ink transfer to form ink dots on printing paper using a phenomenon such as thermal transfer, or a method that uses static electricity to attach toner powder of each color onto the print medium. It is also possible to do.
[0042]
FIG. 4 is an explanatory view showing a state in which nozzles for ejecting ink droplets are formed on the bottom surfaces of the ink ejection heads 244 to 247 for each color. As shown in the figure, on the bottom surface of the ink ejection head for each color, four sets of nozzle rows for ejecting ink droplets for each color are formed, and one nozzle row has 48 nozzles with a nozzle pitch k. They are arranged in a zigzag pattern with an interval of.
[0043]
The color printer 200 can control the size of the ink dots formed on the printing paper by controlling the size of the ejected ink droplets. Hereinafter, a method of forming ink dots having different sizes by the color printer 200 will be described. As preparation, first, an internal structure of a nozzle that discharges each color ink will be described. FIG. 5A is an explanatory diagram showing an internal structure of a nozzle that ejects each color ink. Each of the ink discharge heads 244 to 247 for each color is provided with a plurality of such nozzles. As shown in the figure, each nozzle is provided with an ink passage 255, an ink chamber 256, and a piezo element PE on the ink chamber. When the ink cartridges 242 and 243 are mounted on the carriage 240, the ink in the cartridge is supplied to the ink chamber 256 via the ink gallery 257. The piezo element PE is an element that performs electro-mechanical energy conversion at a very high speed when the voltage is applied, as is well known. In this embodiment, the side wall of the ink chamber 256 is deformed by applying a voltage having a predetermined waveform between the electrodes provided at both ends of the piezo element PE. As a result, the volume of the ink chamber 256 is reduced, and ink corresponding to the reduced volume is ejected from the nozzle Nz as ink droplets Ip. The ink droplet Ip soaks into the printing paper P mounted on the platen 236, whereby ink dots are formed on the printing paper.
[0044]
FIG. 5B is an explanatory diagram showing the principle of changing the size of the ink droplets ejected by controlling the voltage waveform applied to the piezo element PE. In order to eject the ink droplet Ip from the nozzle, a negative voltage is applied to the piezo element PE, the ink is once sucked into the ink chamber 256 from the ink gallery 257, and then a positive voltage is applied to the piezo element PE. The ink chamber volume is reduced and the ink droplet Ip is ejected. Here, if the ink suction speed is appropriate, ink corresponding to the change amount of the ink chamber volume flows, but if the suction speed is too fast, there is a passage resistance between the ink gallery 257 and the ink chamber 256. Therefore, the inflow of ink from the ink gallery 257 is not in time. As a result, the ink in the ink passage 255 flows back into the ink chamber, and the ink interface near the nozzle is largely retracted. A voltage waveform a shown by a solid line in FIG. 5B shows a waveform for sucking ink at an appropriate speed, and a voltage waveform b shown by a broken line shows an example of a waveform for sucking at a speed larger than the appropriate speed. .
[0045]
When a positive voltage is applied to the piezo element PE while sufficient ink is supplied into the ink chamber 256, an ink droplet Ip having a volume corresponding to the volume reduction of the ink chamber 256 is ejected from the nozzle Nz. On the other hand, when a positive voltage is applied in a state where the ink supply amount is insufficient and the ink interface is largely retracted, the ejected ink droplets become small ink droplets. As described above, in the color printer 200 according to the present embodiment, the size of the ink droplet to be ejected is controlled by changing the suction speed of the ink by controlling the negative voltage waveform applied before the ejection of the ink droplet, Two types of ink dots, large dots and small dots, can be formed.
[0046]
Of course, it is possible to form not only two types but also more types of dots. Furthermore, the size of the ink dots formed on the printing paper may be controlled by using a method in which a plurality of fine ink droplets are ejected at a time and the number of ejected ink droplets is controlled.
[0047]
The color printer 200 having the hardware configuration as described above drives the carriage motor 230 to move the ink ejection heads 244 to 247 for each color in the main scanning direction with respect to the printing paper P, and the paper feed motor. By driving 235, the printing paper P is moved in the sub-scanning direction. The control circuit 260 ejects ink droplets by driving the nozzles at an appropriate timing while repeating main scanning and sub-scanning of the carriage 240 according to the print data. In this way, the color printer 200 prints a color image on the printing paper by forming dots of each color ink at appropriate positions on the printing paper.
[0048]
C. Overview of image data conversion process:
FIG. 6 is a flowchart showing a flow of processing in which the computer 100 as the image processing apparatus of the present embodiment converts the received image data into print data by performing predetermined image processing. Such processing is started when the operating system of the computer 100 activates the printer driver 12. Hereinafter, the image data conversion processing of the present embodiment will be briefly described with reference to FIG.
[0049]
When the image data conversion process is started, the printer driver 12 first starts reading RGB color image data to be converted (step S100). Next, the resolution of the captured image data is converted to a resolution for printing by the color printer 200 (step S102). When the resolution of color image data is lower than the printing resolution, new data is generated between adjacent image data by performing linear interpolation. Conversely, when the resolution is higher than the printing resolution, the data is thinned out at a certain rate. To convert the resolution of the image data to the printing resolution.
[0050]
When the resolution is converted in this way, color conversion processing of color image data is performed (step S104). Color conversion processing refers to color image data expressed by a combination of R, G, and B gradation values, by a combination of gradation values of each color used in the color printer 200 such as C, M, Y, and K. This is a process of converting into expressed image data. The color conversion process can be quickly performed by referring to a three-dimensional numerical table called a color conversion table (LUT).
[0051]
When the color conversion process ends, the gradation number conversion process starts (step S106). The gradation number conversion process is the following process. The image data after color conversion is expressed as data having 256 gradations of gradation values 0 to 255. In practice, however, “large dots are formed” or “small dots are formed on the printing paper. Yes, but only three states can be taken: no dot is formed. Therefore, it is necessary to convert image data having 256 gradations into data corresponding to the presence / absence of dot formation. As described above, the gradation number conversion process is a process of converting image data of 256 gradations to image data of 3 gradations corresponding to the presence or absence of dot formation. The gradation number conversion process will be described in detail later.
[0052]
When the gradation number conversion process is thus completed, data indicating whether or not large dots and small dots are formed is obtained for each pixel. Subsequently, the printer driver 12 starts an interlace process (step S108). The interlace process is a process of rearranging the image data converted into a format representing whether or not large dots and small dots are formed into an order to be transferred to the color printer 200 in consideration of the dot formation order. The printer driver 12 outputs the data finally obtained in this way as print data to the color printer 200 (step S110). The color printer 200 forms ink dots of each color on the print medium according to the print data. As a result, a color image corresponding to the image data is printed on the printing paper.
[0053]
D. Overview of gradation conversion processing:
As described above, in the tone number conversion process of this embodiment, the large dot and the small dot are formed close to each other by determining whether or not the small dot is formed while considering the determination result for the large dot. It prevents the image quality from deteriorating. In addition, the processing for determining the presence / absence of large dots is omitted when predetermined conditions described later are satisfied so that the presence / absence of dots can be quickly determined while performing such processing. To do. As preparation for explaining the gradation number conversion processing of the present embodiment, first, processing for converting the gradation number of image data while determining the presence / absence of small dots while considering the determination result for large dots Then, the tone number conversion process of this embodiment will be described. In the following description, it is assumed that the presence or absence of dot formation is determined in the order of large dots and small dots, but it is also possible to determine in the order of small dots and large dots.
[0054]
FIG. 7 is a flowchart showing a flow of processing for converting the number of gradations of image data by determining whether or not a small dot is formed while considering the determination result for a large dot. Hereinafter, description will be given with reference to the flowchart of FIG. The tone number conversion process is performed for each color in the same manner. However, in order to avoid complication of the description, the following description will be made without specifying a color.
[0055]
When the gradation number conversion process is started, first, image data for one pixel is read, and large dot data DL and small dot data Ds are calculated from the read image data (step S200). The image data read in this process is gradation data converted into an expression format by each color of ink provided in the printer by the color conversion process. The image data read in this way is converted into large dot data DL that is used to determine whether or not large dots are formed and small dot data Ds that is used to determine whether or not small dots are formed. This conversion is performed by referring to a numerical table called a conversion table.
[0056]
FIG. 8 is an explanatory diagram conceptually showing the conversion table. As shown in the drawing, dot data Ds for small dots and dot data DL for large dots are stored in the conversion table for input image data. For example, for input image data dataA, a gradation value As is set as dot data for small dots, and a gradation value AL is set as dot data for large dots. Based on these dot data, whether or not dots are formed is determined. As the tone value of the dot data increases, dots are more easily formed. That is, the tone value of dot data corresponds to the density at which dots are formed. For example, the tone value “0” of dot data corresponds to the fact that no dots are formed, and the tone value “255” of dot data corresponds to the formation of dots in all pixels. . In this way, a state in which dots are formed in all pixels per unit area is referred to as a dot recording rate of 100%, and a state in which no dots are formed in any pixel is referred to as a dot recording rate of 0%. . Similarly, the tone value “128” of the dot data indicates a dot recording rate of 50%, that is, a state where dots are formed in half of the pixels. In FIG. 8, the dot recording rate corresponding to the dot data is also displayed for reference.
[0057]
After the image data is converted into dot data DL for large dots and dot data Ds for small dots, whether or not to form a large dot on the pixel being processed is determined based on the dot data DL for large dots. A determination is made (step S202 in FIG. 7). For this determination, a known method such as a dither method or an error diffusion method can be used. Although the description of the contents of these methods is omitted, the presence or absence of large dots is determined so that the dots are formed at a density corresponding to the gradation value of the large dot data DL regardless of which method is used. To be judged. As shown in FIG. 8, the dot data DL for large dots is set to a larger value as the gradation value of the input image data becomes larger. In the region where the input image data is near the gradation value “255”, Large dots are formed in almost all pixels. Further, as the gradation value of the input image data decreases, the density at which large dots are formed decreases, and no large dots are formed at all in a region below a certain gradation value.
[0058]
When the determination of whether or not large dots are formed is thus completed, it is determined whether or not it is determined to form a large dot on the pixel being processed (step S204). If it is determined that a large dot is to be formed on the pixel being processed (step S204: yes), the process of step S206 is performed instead of determining whether or not a small dot is formed. In step S206, the gradation error generated in the pixel being processed due to the formation of the large dot is calculated, and the obtained gradation error is diffused to surrounding unprocessed pixels. Here, the gradation error can be calculated by subtracting the large dot result value RV from the correction data Dx of the processing pixel. The large dot result value refers to a gradation value expressed in a processing pixel by forming a large dot. The gradation error obtained in this way is diffused at a predetermined rate to unprocessed pixels around the processing pixel.
[0059]
FIG. 9 is an explanatory diagram illustrating a state in which a predetermined ratio for diffusing gradation errors is set. Each of the small squares shown in FIG. 9 indicates a pixel, and the pixels indicated by hatching indicate processing pixels for which the presence or absence of dot formation has been determined. The gradation error generated in the processing pixel is diffused at a predetermined ratio shown in the surrounding pixels. For example, an error of ¼ of the gradation error is diffused to the pixel on the right side of the processing pixel, and an error of 8 of the gradation error is diffused to the pixel on the right side across this pixel. . In addition, an error that is 1/4 of the gradation error is diffused to the pixel immediately below the processing pixel. The gradation error is not diffused to the pixel on the left side of the processing pixel or further to the pixel on the left side. This is because the determination of dot formation has already been completed for these pixels.
[0060]
On the other hand, when it is determined that a large dot is not formed on the pixel being processed (step S204 in FIG. 7: no), a process for determining whether to form a small dot is started. The determination as to whether or not a small dot is formed is made based on the composite data Dc. The composite data Dc is data obtained by adding the large dot data DL and the small dot data Ds. The reason for determining whether or not a small dot is formed is based on such composite data Dc in order to determine whether or not a small dot is formed while reflecting the result of the determination regarding a large dot, as will be described later. . In the gradation number conversion process of FIG. 7, when the process for determining the presence or absence of dot formation for small dots is started, first, dot data DL for large dots and dot data Ds for small dots are added, A process of calculating the composite data Dc is performed (step S208).
[0061]
Next, a process for calculating correction data Dx is performed (step S210). The correction data Dx is obtained by adding the diffusion error ΔDer diffused to the pixel being processed to the previously obtained composite data Dc. A method for calculating the diffusion error ΔDer will be described later. This error is obtained by diffusing an error caused by determining whether or not a large dot is formed to undetermined pixels around the processing pixel.
[0062]
When the correction data Dx is calculated in this way, the determination of whether or not to form a small dot is started based on the obtained correction data Dx (step S212). Such a determination can also be made using a known method such as a dither method or an error diffusion method. As described above, in the gradation number conversion process shown in FIG. 7, the correction data Dx is calculated by adding the diffusion error ΔDer resulting from the determination of the presence / absence of large dots to the composite data Dc, and obtaining the correction data obtained. Whether or not a small dot is formed is determined based on the data Dx. For this reason, when determining whether or not small dots are formed, the determination result regarding large dots is taken into consideration, and it is possible to appropriately determine whether or not small dots are formed. The reason why the composite data Dc including the dot data DL for large dots is used instead of the dot data Ds for small dots in determining whether or not small dots are formed will be described later.
[0063]
When it is determined whether or not large dots or small dots are formed for the processed pixels in this way, it is determined whether or not the processing for determining whether or not dots are formed for all the pixels is completed (step S214), and unprocessed pixels remain. Then, it returns to step S200 and repeats a series of processes mentioned above again. When the processing for all the pixels is thus completed, the gradation number conversion process shown in FIG. 7 is exited, and the process returns to the image data conversion process shown in FIG.
[0064]
As described above, in the tone number conversion process of FIG. 7, the dot data DL for large dots and the dot data Ds for small dots are added to calculate the combined data Dc, and the obtained combined data Dc is obtained. Is corrected by a diffusion error caused by forming a large dot. If it is determined whether or not a small dot is formed based on the correction data Dx thus calculated, an appropriate determination can be made in consideration of the determination result of the large dot. Hereinafter, the reason will be described.
[0065]
For example, it is assumed that a large dot is formed in a certain pixel. Then, a gradation error due to the formation of a large dot occurs in that pixel. In an image in which the input image data has a lower gradation than the intermediate gradation, a large negative gradation error occurs due to the formation of large dots. The gradation error generated in this way is diffused to the unprocessed pixels around the process pixel. When determining the presence or absence of dot formation for these unprocessed pixels, the composite data Dc is corrected using the diffused error ΔDer and determined based on the correction data Dx. Since the gradation error generated by forming the large dot is a negative error, the value of the correction data Dx is smaller than the value of the composite data Dc in the pixel in which the error is diffused. As a result, it is difficult to form small dots in the pixels around the pixels where large dots are formed. On the other hand, a small dot is likely to be formed in a distant pixel where a gradation error generated in a pixel in which a large dot is formed is not diffused. This is because the composite data has a larger value than the dot data Ds for small dots by the amount of dot data DL for large dots added, and the formation of small dots based on such composite data Dc. This is because when the presence / absence is determined, more dots are formed than when the presence / absence of dot formation is determined based on the dot data Ds for small dots.
[0066]
As is clear from the above description, if it is determined whether or not large dots and small dots are formed using the above-described method, it is difficult to form small dots around the pixel on which the large dots are formed. On the other hand, a small dot is likely to be formed at a pixel located away from the large dot. For this reason, in particular, in an intermediate gradation region where large dots and small dots are mixedly formed, these dots can be appropriately dispersed and formed, and the print image quality can be greatly improved. is there. On the other hand, in this method, it takes time for the processing to be complicated, and it is difficult to quickly determine whether or not dots are formed. Therefore, the printer driver 12 of this embodiment performs the tone number conversion process as follows.
[0067]
E. Tone number conversion processing of this embodiment:
FIG. 10 is a flowchart showing the flow of tone number conversion processing performed by the printer driver 12 of this embodiment. The gradation number conversion process of the present embodiment is greatly different from the process shown in FIG. 7 in that the process of determining whether or not to form a large dot is omitted when a predetermined condition is satisfied. . Hereinafter, the gradation number conversion processing according to the present embodiment will be described focusing on such differences.
[0068]
Also in the gradation number conversion processing of this embodiment, when processing is started, first, image data for one pixel is read, and large dot data DL and small dot data Ds are calculated from the read image data. (Step S300). Such processing is performed by referring to the conversion table illustrated in FIG.
[0069]
Next, it is determined whether or not the gradation value of the dot data DL for large dots is “0” (step S302). If the tone value of the dot data DL for large dots is not “0” (step S302: no), the presence / absence of dot formation for large dots is determined in the same manner as the tone number conversion processing described above with reference to FIG. (Step S304). Various known methods such as an error diffusion method and a dither method can be applied to determine the presence or absence of dot formation. When a large dot is formed in the processing pixel (step S306: yes), a process for diffusing gradation errors to surrounding pixels is started without determining whether or not a small dot is formed for the processing pixel. (Step S308). If no large dot is formed on the processed pixel (step S306: no), the composite data Dc is calculated (step S310), and the correction data Dx is calculated by adding a diffusion error (step S312). Based on the corrected data Dx, it is determined whether or not a small dot is formed (step S314).
[0070]
On the other hand, if it is determined in step S302 that the tone value of the dot data DL for large dots is “0” (step S302: yes), the process proceeds to step S310 without determining whether or not a large dot is formed. The process immediately proceeds to determine whether small dots are formed.
[0071]
As described above, when it is determined whether or not large dots or small dots are formed for the processed pixels, it is determined whether or not the processing for determining whether or not dots are formed for all the pixels is completed (step S316). If pixels remain, the process returns to step S300 and the above-described series of processing is repeated again. Thus, when the processing for all the pixels is completed, the tone number conversion processing of this embodiment is completed.
[0072]
As described above, in the gradation number conversion process of this embodiment, when the gradation value of the dot data DL for large dots is “0”, the process for determining whether or not large dots are formed (steps S304 and S306). ) And the process (step S308) of diffusing the gradation error generated in the processed pixel due to the formation of the large dot to the surrounding unprocessed pixels can be omitted. Further, in the process of diffusing the gradation error to the surrounding pixels, the error must be distributed to a plurality of pixels at a predetermined ratio illustrated in FIG. 9, and a process that tends to be a rate-determining step for a quick process. It is. Therefore, by omitting such processing, it is possible to shorten the time required for the tone number conversion processing.
[0073]
Further, as described above, whether or not large dots are formed is determined based on the dot data DL for large dots. From this, if the gradation value of the dot data DL for large dots is “0”, the gradation generated by forming the large dots and the process for determining whether or not large dots are formed for the processed pixel. Even if the process of diffusing the error is omitted, there is no possibility of deteriorating the image quality. Therefore, by using the tone number conversion process of the present embodiment, it is possible to quickly and appropriately determine whether or not large dots and small dots are formed, and thus, an image with good image quality can be quickly printed. be able to.
[0074]
F. Variations:
Various modifications exist in the gradation number conversion process of the present embodiment described above. Hereinafter, these modified examples will be briefly described.
[0075]
(1) First modification:
In the embodiment described above, whether or not to determine whether or not large dots are formed is determined based on whether or not the gradation value of the dot data DL for large dots is “0”, but is not limited thereto. Instead, the determination may be made based on the input image data. That is, the dot data DL for large dots is set in advance in a conversion table as shown in FIG. 11, and if the input image data is smaller than the gradation value A, the gradation value of the dot data DL for large dots. Becomes “0”. Therefore, such a gradation value A is obtained in advance, and the input image data and the gradation value A are compared. If the input image data is smaller, the determination of whether or not a large dot is formed is omitted. Also good.
[0076]
Alternatively, the determination can be made by comparing the gradation value of the composite data with a predetermined threshold value. Here, the threshold value can be set to a minimum value that can be taken by the composite data Dc within a range where the dot data DL for large dots takes a value other than “0”. The gradation value “C” shown in FIG. 11 shows such a value. As is apparent from FIG. 11, if the composite data Dc is smaller than the gradation value “C”, the input image data is at least in the range from the gradation value “0” to the gradation value “B”, and the dot for large dots is used. The gradation value of the data DL is “0”. Accordingly, such a threshold value C is obtained in advance, and if the composite data Dc is smaller than the threshold value C, the determination of whether or not a large dot is formed can be omitted.
[0077]
(2) Second modification:
When applying the so-called error diffusion method to determine the presence or absence of dot formation for small dots, the process of diffusing gradation errors caused by the formation of large dots and the presence or absence of formation of small dots The processing for diffusing the generated gradation error may be shared. FIG. 12 is a flowchart showing an example of such gradation number conversion processing. Hereinafter, a brief description will be given according to the flowchart of FIG.
[0078]
When the process is started, first, image data is acquired, and dot data for large dots and dot data for small dots are calculated (step S400). Next, it is determined whether or not the tone value of the dot data DL for large dots is “0” (step S402). If the tone value of the dot data DL is not “0”, whether or not a large dot is formed is determined. Judgment is made (step S404). Next, it is determined whether or not a large dot has been formed (step S406). If a large dot has not been formed, determination of whether or not a small dot has been formed is started. If the tone value of the dot data DL is “0”, the determination of whether or not to form a small dot is started immediately.
[0079]
When the determination of the presence / absence of small dots is started, the correction data Dx is calculated by adding the diffusion error ΔDer to the composite data Dc (steps S408 and S410). Next, the correction data Dx is compared with the threshold value of the error diffusion method, and if the correction data Dx is larger, it is determined that a small dot is to be formed, and if not, it is determined that no dot is to be formed (step S412).
[0080]
When it is determined whether or not large dots or small dots are formed, processing for setting a result value is performed (step S414). The result value is a gradation value expressed in the processing pixel by forming a dot or not forming a dot. In step S414, when a large dot is formed in the processing pixel, a result value corresponding to the large dot is set, and when a small dot is formed, a result value corresponding to the small dot is set. If no dot is formed, the gradation value “0” is set as the result value.
[0081]
Next, the gradation error is calculated by calculating the result value set in this way from the correction data Dx, and the obtained gradation error is diffused to unprocessed pixels around the processing pixel (step S416). The gradation error diffuses to the surrounding unprocessed pixels at a predetermined rate as illustrated in FIG. In this way, when the gradation error caused by determining whether or not large dots or small dots are formed is diffused, it is determined whether or not the processing for all the pixels has been completed (step S418). If it remains, it returns to step S400 and repeats a series of processes mentioned above. When all the pixels have been processed, the tone number conversion process ends, and the process returns to the image data conversion process shown in FIG.
[0082]
In the gradation number conversion process of the second modification described above, the gradation generated by diffusing the gradation error caused by forming a large dot and determining whether or not a small dot is formed is determined. A process for diffusing errors can be shared. For this reason, it is preferable because the gradation number conversion process can be simplified.
[0083]
(3) Third modification:
In the above-described embodiment, the description has been made on the assumption that the presence or absence of dot formation is determined for two types of dots, the large dot and the small dot. For example, the presence or absence of dot formation may be determined for three types of dots in which medium dots are added to large dots and small dots.
[0084]
Alternatively, a plurality of types of inks having different densities may be mounted on the printer, and the presence or absence of dot formation may be determined for dark dots formed using dark ink and light dots formed using light ink. . Further, it is possible to form dots having different sizes for each of the dark ink and the light ink, and to determine whether or not dots are formed for various dots obtained by combining these dots.
[0085]
Although various embodiments have been described above, the present invention is not limited to all the embodiments described above, and can be implemented in various modes without departing from the scope of the invention. For example, a software program (application program) that realizes the above functions may be supplied to a main memory or an external storage device of a computer system via a communication line and executed. Of course, a software program stored in a CD-ROM or a flexible disk may be read and executed.
[0086]
In the above-described various embodiments, the image data conversion process is described as being executed in the computer. However, part or all of the image data conversion process is executed using the printer side or a dedicated image processing apparatus. It doesn't matter.
[0087]
Further, the image display device is not necessarily limited to a printing device that prints an image by forming ink dots on a print medium. For example, bright spots are dispersed at an appropriate density on a liquid crystal display screen. Thus, a liquid crystal display device that expresses an image whose gradation changes continuously may be used.
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram of a printing system illustrating an outline of the present invention.
FIG. 2 is an explanatory diagram illustrating a configuration of a computer as an image processing apparatus according to the present exemplary embodiment.
FIG. 3 is a schematic configuration diagram of a printer as an image display apparatus according to the present exemplary embodiment.
FIG. 4 is an explanatory diagram showing a state in which nozzles are arranged on the bottom surface of the ink ejection head.
FIG. 5 is an explanatory diagram illustrating a principle of forming dots having different sizes by the printer according to the present exemplary embodiment.
FIG. 6 is a flowchart illustrating a flow of image data conversion processing performed by the image processing apparatus according to the present exemplary embodiment.
FIG. 7 is a flowchart showing a flow of processing for converting the number of gradations of image data by determining whether or not a small dot is formed in consideration of a determination result for a large dot.
FIG. 8 is an explanatory diagram showing a state in which dot data for small dots and large dots are set in association with input image data.
FIG. 9 is an explanatory diagram exemplifying weighting factors for diffusing a generated gradation error to surrounding pixels.
FIG. 10 is a flowchart illustrating a flow of tone number conversion processing according to the present exemplary embodiment.
FIG. 11 is an explanatory diagram showing how control is switched based on input image data or composite data in the gradation number conversion processing of the first modification.
FIG. 12 is a flowchart illustrating a flow of tone number conversion processing according to a second modification.
[Explanation of symbols]
10 ... Computer
12. Printer driver
14 ... Tone conversion module
20 Color printer
100: Computer
100 ... dot recording rate
102 ... CPU
104 ... ROM
106 ... RAM
108 ... Peripheral device interface P / I / F
109 ... Disk controller DDC
110: Network interface card NIC
112 ... Video interface V / I / F
114 ... CRT
116 ... Bus
118 ... Hard disk
120 ... Digital camera
122 ... Color scanner
124: Flexible disk
126 ... Compact disc
200 ... Color printer
230 ... Carriage motor
235 ... Paper feed motor
236 ... Platen
240 ... carriage
241 ... Print head
242, 243 ... Ink cartridge
244 to 247 ... Ink ejection head
255: Ink passage
256: Ink chamber
257 ... Ink Gallery
260 ... control circuit
261 ... CPU
262 ... ROM
263 ... RAM
300 ... communication line
310 ... Storage device

Claims (11)

画素毎の階調値を表す画像データを、該画素あたりに表現する階調値の異なる第1および第2のドットについての形成有無を表すデータに変換する画像処理装置であって、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する階調値変換手段と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する第1のドット形成判断手段と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する階調成分補正手段と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する第2のドット形成判断手段と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する禁止手段と
を備え
前記階調成分補正手段は、
前記第1のドットの形成有無を判断したことで該判断した画素に表現される階調値と、該画素についての前記第1の階調成分との偏差たる階調誤差を算出する階調誤差算出手段と、
前記階調誤差を算出した画素の周辺にあって前記第1あるいは前記第2のドットの形成有無を判断していない周辺画素に、該算出した階調誤差を拡散させて前記第2の階調成分を補正する階調誤差拡散手段と
を備える画像処理装置。
An image processing apparatus that converts image data representing a gradation value for each pixel into data representing the presence or absence of formation of first and second dots having different gradation values expressed for each pixel,
A level for converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot. A tone value conversion means;
First dot formation determination means for determining whether or not the first dot is formed based on the first gradation component;
A gradation component correcting unit that corrects the second gradation component based on the determination result when the determination result for the first dot is obtained;
Second dot formation determination means for determining whether or not the second dot is formed based on the second gradation component;
And a prohibiting means for prohibiting the determination of the presence or absence of formation of the first dot for the pixel in which the first gradation component is zero ,
The gradation component correcting means includes
A gradation error that calculates a gradation error that is a deviation between the gradation value represented by the determined pixel and the first gradation component for the pixel by determining whether or not the first dot is formed A calculation means;
The second gradation is obtained by diffusing the calculated gradation error to peripheral pixels around the pixel for which the gradation error has been calculated and for which the presence or absence of the first or second dot is not determined. Gradation error diffusion means for correcting the component;
An image processing apparatus comprising:
画素毎の階調値を表す画像データを、該画素あたりに表現する階調値の異なる第1および第2のドットについての形成有無を表すデータに変換する画像処理装置であって、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する階調値変換手段と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する第1のドット形成判断手段と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する階調成分補正手段と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する第2のドット形成判断手段と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する禁止手段と、
前記第1の階調成分と前記第2の階調成分とを加算して合成階調成分を算出する階調成分加算手段を備え、
前記階調成分補正手段は、
前記第1のドットの形成有無を判断したことで該判断した画素に表現される階調値と、該画素についての前記合成階調成分との偏差たる階調誤差を算出する階調誤差算出手段と、
前記階調誤差を算出した画素の周辺にあって前記第1あるいは前記第2のドットの形成有無を判断していない周辺画素に、該算出した階調誤差を拡散させて、該周辺画素の前記合成階調成分を補正する階調誤差拡散手段と
を備えており、
前記第2のドット形成判断手段は、前記合成階調成分に基づいて前記第2のドットの形成有無を判断する手段である画像処理装置。
An image processing apparatus that converts image data representing a gradation value for each pixel into data representing the presence or absence of formation of first and second dots having different gradation values expressed for each pixel,
A level for converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot. A tone value conversion means;
First dot formation determination means for determining whether or not the first dot is formed based on the first gradation component;
A gradation component correcting unit that corrects the second gradation component based on the determination result when the determination result for the first dot is obtained;
Second dot formation determination means for determining whether or not the second dot is formed based on the second gradation component;
Prohibiting means for prohibiting the determination of the presence / absence of formation of the first dot for pixels in which the first gradation component is zero;
Gradation component addition means for calculating a combined gradation component by adding the first gradation component and the second gradation component;
The gradation component correcting means includes
Gradation error calculation means for calculating a gradation error that is a deviation between the gradation value expressed in the determined pixel by determining whether or not the first dot is formed and the composite gradation component for the pixel When,
The calculated gradation error is diffused to the peripheral pixels around the pixel where the gradation error is calculated and the first or second dot is not determined, and Gradation error diffusion means for correcting the composite gradation component,
The second dot formation determination means is an image processing apparatus which is a means for determining whether or not the second dot is formed based on the composite gradation component.
請求項1または請求項2記載の画像処理装置であって、
前記第1のドットは、前記第2のドットよりも、画素あたりに表現する階調値の大きなドットである画像処理装置。
The image processing apparatus according to claim 1 or 2 ,
The image processing apparatus, wherein the first dot is a dot having a larger gradation value expressed per pixel than the second dot.
請求項3記載の画像処理装置であって、
前記第1のドットは、前記第2のドットよりも大きいドットである画像処理装置。
The image processing apparatus according to claim 3 ,
The image processing apparatus, wherein the first dot is a dot larger than the second dot.
請求項3記載の画像処理装置であって、
前記第1のドットは、前記第2のドットよりも、ドットの明度が暗いドットである画像処理装置。
The image processing apparatus according to claim 3 ,
The image processing apparatus according to claim 1, wherein the first dot is a dot having a darker dot than the second dot.
請求項1記載の画像処理装置であって、
前記禁止手段は、前記画像データの階調値が所定値以下となる画素については、前記第1のドットについての形成有無の判断を禁止する手段である画像処理装置。
The image processing apparatus according to claim 1,
The prohibiting means is an image processing apparatus which is a means for prohibiting the determination of the presence or absence of formation of the first dot for a pixel whose gradation value of the image data is a predetermined value or less.
画素毎の階調値を表す画像データを、該画素あたりに表現する階調値の異なる第1および第2のドットについての形成有無を表すデータに変換する画像処理方法であって、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する工程と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する工程と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する工程と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する工程と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する工程と
を備え
前記第2の階調成分を補正する工程は、
前記第1のドットの形成有無を判断したことで該判断した画素に表現される階調値と、該画素についての前記第1の階調成分との偏差たる階調誤差を算出し、
前記階調誤差を算出した画素の周辺にあって前記第1あるいは前記第2のドットの形成有無を判断していない周辺画素に、該算出した階調誤差を拡散させて前記第2の階調成分を補正する
画像処理方法。
An image processing method for converting image data representing a gradation value for each pixel into data representing the presence / absence of formation of first and second dots having different gradation values expressed for each pixel,
Converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot When,
Determining whether or not the first dot is formed based on the first gradation component;
When a determination result for the first dot is obtained, correcting the second gradation component based on the determination result;
Determining whether or not the second dot is formed based on the second gradation component;
Wherein for the pixels first grayscale component is zero, and a step of prohibiting the judgment of the on-off state for the first dot,
The step of correcting the second gradation component includes:
Calculating a gradation error that is a deviation between the gradation value expressed in the determined pixel by determining whether or not the first dot is formed and the first gradation component for the pixel;
The second gradation is obtained by diffusing the calculated gradation error to peripheral pixels around the pixel for which the gradation error has been calculated and for which the presence or absence of the first or second dot is not determined. An image processing method for correcting a component .
画素あたりに表現する階調値の異なる第1および第2のドットを形成して印刷媒体上に画像を形成する印刷部に、該第1および第2のドットの形成を制御するための制御信号を出力する印刷制御装置であって、
前記画像の各画素についての階調値を表す画像データを受け取る画像データ受取手段と、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する階調値変換手段と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する第1のドット形成判断手段と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する階調成分補正手段と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する第2のドット形成判断手段と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する禁止手段と、
前記第1のドットおよび第2のドットについての判断結果を前記制御信号として前記印刷部に出力する制御信号出力手段と
を備え
前記階調成分補正手段は、
前記第1のドットの形成有無を判断したことで該判断した画素に表現される階調値と、該画素についての前記第1の階調成分との偏差たる階調誤差を算出する階調誤差算出手段と、
前記階調誤差を算出した画素の周辺にあって前記第1あるいは前記第2のドットの形成有無を判断していない周辺画素に、該算出した階調誤差を拡散させて前記第2の階調成分を補正する階調誤差拡散手段と
を備える印刷制御装置。
A control signal for controlling the formation of the first and second dots in a printing unit that forms first and second dots having different gradation values expressed per pixel to form an image on a print medium A print control device that outputs
Image data receiving means for receiving image data representing a gradation value for each pixel of the image;
A level for converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot. A tone value conversion means;
First dot formation determination means for determining whether or not the first dot is formed based on the first gradation component;
A gradation component correcting unit that corrects the second gradation component based on the determination result when the determination result for the first dot is obtained;
Second dot formation determination means for determining whether or not the second dot is formed based on the second gradation component;
Prohibiting means for prohibiting the determination of the presence / absence of formation of the first dot for pixels in which the first gradation component is zero;
Control signal output means for outputting the determination result for the first dot and the second dot to the printing unit as the control signal ;
The gradation component correcting means includes
A gradation error that calculates a gradation error that is a deviation between the gradation value represented by the determined pixel and the first gradation component for the pixel by determining whether or not the first dot is formed A calculation means;
The second gradation is obtained by diffusing the calculated gradation error to peripheral pixels around the pixel for which the gradation error has been calculated and for which the presence or absence of the first or second dot is not determined. Gradation error diffusion means for correcting the component;
A printing control apparatus comprising:
画素あたりに表現する階調値の異なる第1および第2のドットを形成して印刷媒体上に画像を形成する印刷装置であって、
前記画像の画素毎の階調値を表す画像データを受け取る画像データ受取手段と、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する階調値変換手段と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する第1のドット形成判断手段と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する階調成分補正手段と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する第2のドット形成判断手段と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する禁止手段と、
前記第1のドットおよび第2のドットについての判断結果に従って、該第1のドットおよび該第2のドットを前記印刷媒体上に形成するドット形成手段と
を備え
前記階調成分補正手段は、
前記第1のドットの形成有無を判断したことで該判断した画素に表現される階調値と、該画素についての前記第1の階調成分との偏差たる階調誤差を算出する階調誤差算出手段と、
前記階調誤差を算出した画素の周辺にあって前記第1あるいは前記第2のドットの形成有無を判断していない周辺画素に、該算出した階調誤差を拡散させて前記第2の階調成分を補正する階調誤差拡散手段と
を備える印刷制御装置。
A printing apparatus for forming an image on a print medium by forming first and second dots having different gradation values expressed per pixel,
Image data receiving means for receiving image data representing a gradation value for each pixel of the image;
A level for converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot. A tone value conversion means;
First dot formation determination means for determining whether or not the first dot is formed based on the first gradation component;
A gradation component correcting unit that corrects the second gradation component based on the determination result when the determination result for the first dot is obtained;
Second dot formation determination means for determining whether or not the second dot is formed based on the second gradation component;
Prohibiting means for prohibiting the determination of the presence / absence of formation of the first dot for pixels in which the first gradation component is zero;
Dot forming means for forming the first dots and the second dots on the print medium according to the determination results for the first dots and the second dots ,
The gradation component correcting means includes
A gradation error that calculates a gradation error that is a deviation between the gradation value represented by the determined pixel and the first gradation component for the pixel by determining whether or not the first dot is formed A calculation means;
The second gradation is obtained by diffusing the calculated gradation error to peripheral pixels around the pixel for which the gradation error has been calculated and for which the presence or absence of the first or second dot is not determined. Gradation error diffusion means for correcting the component;
A printing control apparatus comprising:
画素毎の階調値を表す画像データを、該画素あたりに表現する階調値の異なる第1および第2のドットについての形成有無を表すデータに変換するためのプログラムを、コンピュータで読み取り可能に記録した記録媒体であって、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する機能と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する機能と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する機能と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する機能と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する機能と
を記録し、
前記第2の階調成分を補正する機能として、
前記第1のドットの形成有無を判断したことで該判断した画素に表現される階調値と、該画素についての前記第1の階調成分との偏差たる階調誤差を算出する機能と、
前記階調誤差を算出した画素の周辺にあって前記第1あるいは前記第2のドットの形成有無を判断していない周辺画素に、該算出した階調誤差を拡散させて前記第2の階調成分を補正する機能と
をコンピュータを用いて実現させるプログラムを記録した記録媒体。
A computer-readable program for converting image data representing gradation values for each pixel into data representing the presence or absence of formation of first and second dots having different gradation values expressed for each pixel A recorded recording medium,
A function of converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot When,
A function of determining whether or not the first dot is formed based on the first gradation component;
A function for correcting the second gradation component based on the determination result when the determination result for the first dot is obtained;
A function of determining whether or not the second dot is formed based on the second gradation component;
For a pixel in which the first gradation component is zero, a function for prohibiting the determination of the presence or absence of formation of the first dot is recorded, and
As a function of correcting the second gradation component,
A function of calculating a gradation error that is a deviation between a gradation value expressed in the determined pixel by determining whether or not the first dot is formed and the first gradation component for the pixel;
The second gradation is obtained by diffusing the calculated gradation error to peripheral pixels around the pixel for which the gradation error has been calculated and for which the presence or absence of the first or second dot is not determined. The function to correct the component and
A recording medium on which is recorded a program for realizing the above using a computer .
画素毎の階調値を表す画像データを、該画素あたりに表現する階調値の異なる第1および第2のドットについての形成有無を表すデータに変換する方法を、コンピュータを用いて実現するためのプログラムであって、
前記画像データの階調値を、前記第1のドットが分担して表現する第1の階調成分と、前記第2のドットが分担して表現する第2の階調成分とに変換する機能と、
前記第1の階調成分に基づいて、前記第1のドットの形成有無を判断する機能と、
前記第1のドットについての判断結果が得られた場合には、該判断結果に基づいて前記第2の階調成分を補正する機能と、
前記第2の階調成分に基づいて、前記第2のドットの形成有無を判断する機能と、
前記第1の階調成分がゼロとなる画素については、前記第1のドットについての形成有無の判断を禁止する機能と
を記録し
前記第2の階調成分を補正する機能として、
前記第1のドットの形成有無を判断したことで該判断した画素に表現される階調値と、該画素についての前記第1の階調成分との偏差たる階調誤差を算出する機能と
前記階調誤差を算出した画素の周辺にあって前記第1あるいは前記第2のドットの形成有無を判断していない周辺画素に、該算出した階調誤差を拡散させて前記第2の階調成分を補正する機能と
をコンピュータを用いてを実現するプログラム。
To realize a method of converting image data representing a gradation value for each pixel into data representing the presence or absence of formation of first and second dots having different gradation values expressed for each pixel using a computer The program of
A function of converting the gradation value of the image data into a first gradation component shared and expressed by the first dot and a second gradation component shared and expressed by the second dot When,
A function of determining whether or not the first dot is formed based on the first gradation component;
A function for correcting the second gradation component based on the determination result when the determination result for the first dot is obtained;
A function of determining whether or not the second dot is formed based on the second gradation component;
A function for prohibiting the determination of the presence or absence of formation of the first dot for a pixel in which the first gradation component is zero ;
Recorded,
As a function of correcting the second gradation component,
A function of calculating a gradation error which is a deviation between a gradation value expressed in the determined pixel by determining whether or not the first dot is formed and the first gradation component for the pixel;
The second gradation is obtained by diffusing the calculated gradation error to peripheral pixels around the pixel for which the gradation error has been calculated and for which the presence or absence of the first or second dot is not determined. The function to correct the component and
A program that uses a computer .
JP2002079601A 2002-03-20 2002-03-20 Image processing apparatus for converting the number of gradations of image data Expired - Fee Related JP4300742B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002079601A JP4300742B2 (en) 2002-03-20 2002-03-20 Image processing apparatus for converting the number of gradations of image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002079601A JP4300742B2 (en) 2002-03-20 2002-03-20 Image processing apparatus for converting the number of gradations of image data

Publications (2)

Publication Number Publication Date
JP2003276249A JP2003276249A (en) 2003-09-30
JP4300742B2 true JP4300742B2 (en) 2009-07-22

Family

ID=29206290

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002079601A Expired - Fee Related JP4300742B2 (en) 2002-03-20 2002-03-20 Image processing apparatus for converting the number of gradations of image data

Country Status (1)

Country Link
JP (1) JP4300742B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4065532B2 (en) * 2003-05-09 2008-03-26 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP4678299B2 (en) * 2005-03-24 2011-04-27 セイコーエプソン株式会社 Printing apparatus, printing program, printing method and image processing apparatus, image processing program, image processing method, and recording medium storing the program
KR100777123B1 (en) 2007-04-18 2007-11-19 현대하이스코 주식회사 Stainless steel separator for fuel cell and the manufacturing method thereof

Also Published As

Publication number Publication date
JP2003276249A (en) 2003-09-30

Similar Documents

Publication Publication Date Title
JP3912055B2 (en) Image processing apparatus, print control apparatus, image processing method, and recording medium
JP5517833B2 (en) Image processing apparatus and image processing method
JP3890220B2 (en) Recording apparatus and recording method
JP4385626B2 (en) Image processing apparatus, image processing method, and image processing program
JP3601491B2 (en) Image processing apparatus, image processing method, recording medium, and program
JP3661624B2 (en) Image processing device
US7249820B2 (en) Printing method, printing system, printing apparatus, print-control method, and storage medium
JP3666427B2 (en) Image processing apparatus, print control apparatus, image processing method, and recording medium
JP4206588B2 (en) Printing apparatus, printing method, adjustment method for printing apparatus, and recording medium on which program is recorded
JP3687381B2 (en) Printing apparatus, printing method, and recording medium
JP4296621B2 (en) Printing apparatus, printing method, and recording medium
JP4075241B2 (en) Printing apparatus, printing method, and recording medium
JP4300742B2 (en) Image processing apparatus for converting the number of gradations of image data
JP3858802B2 (en) Image processing apparatus for performing color conversion while referring to reconstructed color conversion table, and image processing method therefor
JP4691880B2 (en) An image output device that outputs an image while converting resolution of data of a plurality of pixel columns in which dots are formed simultaneously
US20050017999A1 (en) Printing method, printing apparatus, computer-readable storage medium, and correction pattern
JP4107302B2 (en) Printing apparatus, image processing apparatus, printing method, image processing method, and conversion table creation method
JP4183167B2 (en) Image processing apparatus for printing a monochrome image
JP4561049B2 (en) Printing system for printing an image based on information on the number of dots formed in a predetermined area
JP4529379B2 (en) Printing apparatus, printing method, and printing program
JP2006263938A (en) Printing device, image processing device, printing method, and image processing method
JP2005028661A (en) Image processor for printing variable-density image
JP2002171392A (en) Image processor, printing controller, image processing method and recording medium
JP2008263448A (en) Image processing method and image processor
JP2001353888A (en) Printing control device and image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050301

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080520

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081111

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090113

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20090122

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: 20090331

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

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

Free format text: PAYMENT UNTIL: 20120501

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090413

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

Free format text: PAYMENT UNTIL: 20120501

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130501

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees