JP2004042350A - Image processor and image processing method - Google Patents
Image processor and image processing method Download PDFInfo
- Publication number
- JP2004042350A JP2004042350A JP2002201147A JP2002201147A JP2004042350A JP 2004042350 A JP2004042350 A JP 2004042350A JP 2002201147 A JP2002201147 A JP 2002201147A JP 2002201147 A JP2002201147 A JP 2002201147A JP 2004042350 A JP2004042350 A JP 2004042350A
- Authority
- JP
- Japan
- Prior art keywords
- recording
- data
- pixel
- image processing
- input
- 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.)
- Withdrawn
Links
Images
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は画像処理装置及び画像処理方法に関し、特に、所定方向に配列された複数の記録素子を有する記録ヘッドを記録媒体に対して相対的に移動させて記録を行う記録装置において各画素のデータを入力階調数よりも少ない階調数のデータに変換する画像処理に関するものである。
【0002】
【従来の技術】
例えばワードプロセッサ、パーソナルコンピュータ、ファクシミリ等に於ける情報出力装置として、所望される文字や画像等の情報を用紙やフィルム等シート状の記録媒体に記録を行う記録装置には様々な方式のものがあるが、その中で、記録媒体に記録剤を付着することで記録媒体上にテキストや画像を形成する方式が実用化されており、このような方式の代表例として、インクジェット記録装置がある。近年、インクジェット記録装置の性能が向上し、テキストばかりでなく、画像も記録されるようになってきた。
【0003】
インクジェット記録装置では、記録速度の向上や高画質化等のために、同一色同一濃度のインクを吐出可能な複数のインク吐出口(ノズル)を集積配列したノズル群を用い、さらに、このようなノズル群が、同一色で濃度の異なるインクや、異なる色のインクについてそれぞれ設けられているのが通例である。また、同一色で同一濃度のインクの吐出量を何段階かに変えて吐出可能としたものもある。
【0004】
そして、これらのノズル群を設けた記録ヘッドを、記録媒体に対して相対的に移動させつつノズルからインクを吐出させ、記録を行なう。
【0005】
画像を記録する場合、画像情報の階調を忠実に再現する方法として、ディザ法、誤差拡散法などの中間調処理法が用いられる。例えば、多値画像データを二値画像(または二値以上で入力階調数より少ない階調数を有する画像)に変換する手法として知られている、R.Floydらによる誤差拡散法(”An adaptivE algorithm for Spatial gray ScalE”, SID IntErnational SympoSium DigESt of TEchnical PapErS, vol4.3, 1975, pp.36−37)は、ある画素で生じた二値化誤差を以降の複数画素へ拡散することにより、擬似的に階調表現を行うものである。
【0006】
誤差拡散法は、階調再現性の高い擬似中間調処理方法として、プリンタ、複写機、ファクシミリ等の画像処理装置において広く用いられている。
【0007】
【発明が解決しようとする課題】
しかしながら、上記のような誤差拡散法を用いて記録を行う際に、以下のような問題が生じる。
【0008】
ここでは、所定方向に配列された複数のノズルを有する記録ヘッドをノズルの配列方向と交差する方向に記録媒体上で走査させて、記録媒体にインクを吐出することで画像を形成する、インクジェットプリンタのようなシリアルプリンタで画像を記録する場合を例に挙げて説明する。
【0009】
インク滴(ドット)を吐出する複数のノズルの中には、何らかの影響を受けてドットを吐出できない(不吐出)ノズル、或いは、吐出されるドット体積が規定値に満たないノズルが発生する。特に、ノズル列が長尺となり多数のノズルが具備される場合には、そのような正常な記録ができないノズルが存在する確率が高くなる。
【0010】
図6は、1つのノズル列を使用して、1ラインの画像列(ラスタ)を1回の走査により画像を形成する過程を示す図である。60は吐出状態が良好なノズル、61はドットを吐出できない非記録状態にあるノズル、62は誤差拡散法による二値化結果、63はドット記録状態を示している。
【0011】
図6に示されるように、1回の走査によって画像を形成する場合、非記録ノズルに対応するラスタにはドットを記録媒体に記録することができない。従って、従来の誤差拡散法を実施した二値化処理によって、非記録ノズルに対応するラスタにドットを形成する必要が発生した場合には、当該ドット付近では、実際に記録されなければならないドット数よりも少ないドット数にて画像が形成されることになる。すなわち、誤差拡散法の利点の1つである濃度保存が十分に行われず、記録画像の品位が著しく低下してしまう。
【0012】
本発明は、以上のような状況に鑑みてなされたものであり、正常な記録が出来ない記録素子を有する記録ヘッドを用いて記録を行う際にも、高品位な画像記録が行える画像処理装置及び画像処理方法を提供することを目的とする。
【0013】
【課題を解決するための手段】
上記目的を達成するため、本発明の画像処理装置は、所定方向に配列された複数の記録素子を有する記録ヘッドを記録媒体に対して相対的に移動させて記録を行う記録装置の画像処理装置であって、
入力された画素データが、正常な記録が行えない記録素子によって記録される画素のデータであるか否かを判定する判定手段と、
入力された各画素の多階調のデータを、入力階調数よりも少ない階調数のデータに変換する量子化手段と、
着目画素の入力データと前記量子化手段によって量子化されたデータとの差を、該着目画素周辺の画素に拡散する誤差拡散手段と、を備えており、
前記量子化手段が、前記判定手段によって前記正常な記録が行えない記録素子によって記録されると判定された画素の近傍にある画素のデータに対して、それ以外の画素のデータとは異なった量子化処理を行うことを特徴とする。
【0014】
また、上記目的を達成する本発明の画像処理方法は、所定方向に配列された複数の記録素子を有する記録ヘッドを記録媒体に対して相対的に移動させて記録を行う記録装置の画像処理方法であって、
入力された画素データが、正常な記録が行えない記録素子によって記録される画素のデータであるか否かを判定する判定工程と、
入力された各画素の多階調のデータを、入力階調数よりも少ない階調数のデータに変換する量子化工程と、
着目画素の入力データと前記量子化工程において量子化されたデータとの差を、該着目画素周辺の画素に拡散する誤差拡散工程と、を備えており、
前記量子化工程において、前記判定工程において前記正常な記録が行えない記録素子によって記録されると判定された画素の近傍にある画素のデータに対して、それ以外の画素のデータとは異なった量子化処理を行うことを特徴とする。
【0015】
更に、上記目的は前記の画像処理方法をコンピュータによって実行させるコンピュータプログラム、及び該プログラムを格納した記憶媒体によっても達成される。
【0016】
すなわち、本発明では、所定方向に配列された複数の記録素子を有する記録ヘッドを記録媒体に対して相対的に移動させて記録を行う記録装置において、入力された画素データが、正常な記録が行えない記録素子によって記録される画素のデータであるか否かを判定し、入力された各画素の多階調のデータを、入力階調数よりも少ない階調数のデータに変換し、着目画素の入力データと量子化において量子化されたデータとの差を、該着目画素周辺の画素に拡散するようにし、量子化において、正常な記録が行えない記録素子によって記録されると判定された画素の近傍にある画素のデータに対して、それ以外の画素のデータとは異なった量子化処理を行う。
【0017】
このようにすると、正常な記録が行えない記録素子によって記録されると判定された非記録画素のデータの近傍画素のデータに対して、それ以外の画素データとは異なる処理、例えば、記録されるドット個数を増加させるような処理を行うことにより、該非記録画素のデータが及ぼす急激な濃度低下を緩和することが可能である。
【0018】
従って、正常な記録が出来ない記録素子を有する記録ヘッドを用いて記録を行う際にも、非記録画素のデータが及ぼす急激な濃度低下を緩和して、白スジを抑制した高品位な画像記録が行える。
【0019】
量子化手段が、非記録画素の近傍にある画素のデータに対して、量子化時の閾値を変動させるように閾値変動手段を更に備えているのが好適である。
【0020】
この場合、閾値変動手段は、非記録画素の近傍にある画素に対する記録ドットが増加するように前記閾値を変動させると、非記録画素のデータが及ぼす急激な濃度低下を効果的に緩和できる。
【0021】
閾値変動手段が用いるパラメータをユーザが選択するためのユーザインタフェースを更に備えているのが好ましい。
【0022】
このパラメータとしては、閾値変動処理の適用範囲、閾値変動強度、閾値設定に際しての入力画素値の参照の有無などが考えられる。
【0023】
閾値変動手段は、入力画素のデータを参照して閾値の変動量を規定するようにするのがよい。
【0024】
画像処理装置に、正常な記録が行えない記録素子を検知する検知手段を更に備えるように構成するのが好ましい。
【0025】
この場合、検知手段は、各記録素子の駆動結果、あるいは各記録素子による記録媒体への記録結果に基づいて、正常な記録が行えない記録素子を検知するようにするのが好適である。
【0026】
【発明の実施の形態】
以下、本発明の好適な実施形態について添付図面を参照して詳細に説明する。
【0027】
なお、以下に説明する実施形態では、所定方向に配列された複数のノズルを有する記録ヘッドをノズルの配列方向と交差する方向に記録媒体上で走査させて、記録媒体にインクを吐出することで画像を形成する、インクジェット記録方式を用いたシリアル型の記録装置に係る画像処理装置を例に挙げ説明する。
【0028】
(第1の実施形態)
図1は、本発明の第1の実施形態である画像処理装置の構成を示したブロック図である。100は吐出状態検知部、101は非記録ラスタ判定部、102はアドレス入力端子、103は画素データの入力端子、104は累積誤差加算部、105は量子化閾値を設定する閾値設定部、106は量子化部、107は量子化誤差を演算する誤差演算部、108は量子化誤差を拡散する誤差拡散部、109は累積誤差メモリ、110は一連の処理後に形成された画像データの出力端子である。
【0029】
以下、図1の画像処理装置の動作について図2のフローチャートに従って説明する。
【0030】
まず、吐出状態検知部100において各ノズルの吐出状態を検知する(ステップS200)。ここでは、各ノズルにおけるインク滴の吐出量が規定値に満たない非記録状態にあるノズルを検知する。次に、図示しない画像走査部により入力画像が順次走査され各画素データが入力端子103より入力される(ステップS201)。
【0031】
図3は入力画像の走査の様子を示す図である。300は入力画像の左上端の画素、301は入力画像の右下端の画素である。画像の走査は、画像領域の左上端の画素300から開始し、右方向に1画素ごとに進む。そして、画像データ列の右端に達したら1画素下の画像データ列の左端画素に移る。このようにして処理を繰り返し行い右下端の画素301まで到達すると、画像の走査処理は完了する。
【0032】
次に、累積誤差加算部104において入力された画素データに累積誤差メモリの画素位置に対応する累積誤差値が加算される(ステップS202)。累積誤差メモリは1個の記憶領域E0と入力画像の横画素数Wと同数の記憶領域E(x)があり、後述する方法により量子化誤差が格納されている。なお、累積誤差メモリは処理開始前に全て初期値0で初期化されているものとする。
【0033】
図4は累積誤差メモリに格納される内容の詳細を示す図である。累積誤差加算部104では、入力画素データの横画素位置xに対応した誤差メモリE(x)の値が加算される。すなわち、入力画素データIに対し、累積誤差加算後の画素データI’の値は、
I’=I+E(x)
となる。
【0034】
次に、非記録ラスタ判定部101において、アドレス入力端子102から入力される入力画像のラスタ番号を参照し、着目ラスタの近傍に画像形成できない非記録ラスタが存在するか否かを判定する(ステップS203)。ここでは、着目ラスタのラスタ番号をL、ノズル列に具備されたノズル数をN、非記録状態にあるノズル番号をPiとした時に式、
L%N=(Pi+N−1)%N
L%N=(Pi+1)%N
のいずれかを満たすラスタは、非記録ラスタが近傍に存在すると判定される。なお、%はモジュロ(剰余)を表す演算子である。
【0035】
図5は、ノズル数N=16、非記録状態にあるノズルの番号がP0=3、P1=11であるノズル列を使用した場合の画像形成過程を示す図である。図5に示すように、出力画像のラスタ番号L=3、11、19、…に隣接するラスタ、すなわち、ラスタ番号L=2、4、10、12、18、20、…のラスタは、非記録ラスタが近傍に存在すると判定される。
【0036】
次に、着目ラスタの近傍に非記録ラスタが存在すると判定されると、閾値設定部105において第1の閾値設定処理Aを行い(ステップS204)、同ラスタの近傍に非記録ラスタが存在しないと判定されると、閾値設定部105において第2の閾値設定処理Bを行う(ステップS205)。
【0037】
ここで、個々の閾値設定処理について詳しく述べる。まず、第1の閾値設定処理Aでは、基準となる閾値(基準閾値)に対し、入力画素値に応じた変動量を印加した値を、量子化時の閾値として用いる。すなわち、入力画素値が0から255の範囲の整数値であり、基準閾値が入力画素の定義域の中央値である128であるとすれば、閾値Th(L)は次式、
Th(L)=128+Th_v(I)
によって決定される。
【0038】
ここで、Th_v(I)は、基準閾値に印加される変動量であり、入力画素値Iに応じて決定される。本実施形態では、式、
Th_v(I)=I/2
にて、この変動量が定義されるものとする。なお、本実施形態では、出力値が0の画素位置にはドットを記録し、出力値が255の画素位置にはドットを記録しないものとする。
【0039】
非記録ラスタはドット記録を行うことができないため、平常通りドット記録が行える近傍のラスタと比較し、濃度が低下したラスタを生じてしまい、いわゆる「白スジ」を発生させてしまう。この白スジの発生を緩和するために、非記録ラスタに隣接するラスタに記録されるドット数を通常よりも増加させ、白スジ部で損なわれる濃度低下を、近傍のラスタの濃度で補う。
【0040】
一方、第2の閾値設定処理Bでは、量子化時の閾値は基準閾値の通りであり、
Th(L)=128
とする。
【0041】
次に、量子化部106において量子化処理を行う(ステップS206)。累積誤差加算後の画素データI’と閾値設定部105により定められた閾値Th(L)とを比較し出力画素値を決定する。本実施形態では、量子化後の出力値を二値とし、閾値Th(L)と累積誤差加算後の画素データI’との比較により出力画素値を決定するものとする。すなわち、入力画素値が0から255の範囲の整数値とすれば、出力階調値Oは式、
O=0 (I’< Th(L))
O=255 (I’≧ Th(L))
荷より決定される。
【0042】
次に、誤差演算部107において、累積誤差加算後の画素データI’と出力画素値Oとの差分、すなわち量子化誤差Errを、
Err=I’−O
によって計算する(ステップS207)。
【0043】
次に、誤差拡散部108において、着目している画素の横方向位置xに応じて、
E(x+1)←E(x+1)+E×7/16 (x<W)
E(x―1)←E(x−1)+E×3/16 (x>1)
E(x)←E0+E×5/16 (1<x<W)
E(x)←E0+E×8/16 (x=1)
E(x)←E0+E×13/16 (x=W)
E0←E×1/16 (x<W)
E0←0 (x=W)
となるように誤差の拡散処理が行われる(ステップS208)。
【0044】
以上で、入力画像1画素に対する誤差拡散処理が完了する。この誤差拡散処理を入力画像の全画素に対して施されたか否かを判定し(ステップS209)、全画素に対して以上の処理が行われたと判断された場合、入力画像の擬似中間調処理が完了する。
【0045】
なお、第1の実施形態における閾値設定処理Aでは、非記録ラスタに隣接する2つのラスタを対象として実施しているが、非記録ラスタの近傍であれば、2ラスタに限定されものではない。
【0046】
更に、第1の実施形態における閾値設定処理Aでは、閾値に印加される変動量は入力画素値を参照して決定される構成としたが、入力画素値に依らない固定値としても差し支えない。
【0047】
また、第1の実施形態では、吐出状態検知部は各ノズルにおけるインク滴の吐出量を検知して非記録状態のノズルを検知したが、吐出状態検知部は、各ノズルから吐出されたインク滴の記録媒体上における記録面積に着目して非記録状態のノズルを検知してもよい。
【0048】
以上説明したように、第1の実施形態によれば、非記録状態にあるノズルの影響を受けて画像形成を実施できないラスタに対して、隣接するラスタの記録ドットの発生頻度を高めることにより、画像形成を実施できないラスタに起因する急激な濃度低下を緩和することができ、白スジの発生を抑制して高品位な出力画像を提供することが可能である。
【0049】
(第2の実施形態)
以下、本発明に係る画像処理装置の第2の実施形態について説明する。なお、以下の説明においては、上記第1の実施形態と同様な部分については説明を省略し、本実施形態の特徴的部分を中心に説明する。
【0050】
図7は、本発明の画像処理装置の第2の実施形態の構成を示したブロック図である。図1に示した第1の実施形態の構成に対して、閾値を設定する際のパラメータ設定する閾値パラメータ設定部700と、閾値パラメータ設定を行うためのモニタ701が追加された点が異なっている。
【0051】
以下、図7の画像処理装置の動作について、図8のフローチャートに従って説明する。
【0052】
まず、吐出状態検知部100において各ノズルの吐出状態を検知する(ステップS800)。ここでは、各ノズルにおけるインク滴の吐出量が規定値に満たない非記録状態にあるノズルを検知する。次に、閾値パラメータ設定部700において、閾値パラメータとして、後述する画像形成できない非記録ラスタの近傍ラスタに対して実施される閾値変動処理の適用範囲、閾値変動強度、閾値設定に際しての入力画素値の参照の有無が、ユーザによって指定される(ステップS801)。
【0053】
図9は、これらの閾値パラメータを指定する際のユーザインターフェイス画面の一例を示している。なお、ユーザインターフェイス画面はモニタ701に表示される。900は閾値変動処理の適用範囲指定部、901は閾値変動強度指定部、902は閾値設定に際しての入力画素値の参照有無指定部、903は閾値パラメータ設定決定部、904は閾値パラメータ設定の再実行決定部である。本実施形態では、図9に示されるように、閾値変動処理の適用範囲を±2ラスタ、閾値変動強度を64、入力画素値の参照を実施するよう閾値パラメータを指定したものとする。
【0054】
次に、図示しない画像走査部により入力画像が順次走査され各画素データが入力端子103より入力される(ステップS802)。画像の走査については、図3に関して説明した第1の実施形態と同様である。
【0055】
次に、累積誤差加算部104において入力された画素データに累積誤差メモリの画素位置に対応する累積誤差値が加算される(ステップS803)。累積誤差メモリは1個の記憶領域E0と入力画像の横画素数Wと同数の記憶領域E(x)があり、図4に関して説明した第1の実施形態と同様に量子化誤差が格納されている。なお、累積誤差メモリは処理開始前に全て初期値0で初期化されているものとする。
【0056】
次に、非記録ラスタ判定部101において、アドレス入力端子102から入力される入力画像のラスタ番号を参照し、着目ラスタが、適用範囲指定部900にて規定された閾値変動処理を実施する範囲内にあるか否かを判定する(ステップS804)。ここでは、着目ラスタのラスタ番号をL、ノズル列に具備されたノズル数をN、非記録状態にあるノズル番号をPi、閾値変動処理の適用範囲nを±2ラスタとした時に式、
L%N = (Pi+n)%N (n=−2、−1、…、1、2)
を満たすラスタは、閾値変動処理の適用範囲内にあると判定される。
【0057】
閾値変動処理の適用範囲nは、図9のユーザインターフェイス画面に例示した適用範囲に対応しており、適用範囲を±1ラスタと指定すると、
−1≦n≦1
となり、適用範囲を±3ラスタと指定すると、
−3≦n≦3
とそれぞれ規定される。なお、%はモジュロ(剰余)を表す演算子である。
【0058】
上記第1の実施形態と同様に、図5に示す、ノズル数N=16、非記録状態にあるノズルの番号がP0=3、P1=11であるノズル列を使用した場合、本実施形態では、上述のように閾値変動処理の適用範囲を非記録ラスタの近傍±2ラスタと規定しているため、出力画像のラスタ番号L=1、2、4、5、9、10、12、13、17、18、20、21、…におけるラスタが、閾値変動処理の適用の対象となる。
【0059】
次に、着目ラスタが閾値変動処理の適用範囲にあると判定されると、閾値設定部105において第1の閾値設定処理Aを行い(ステップS805)、同ラスタが適用範囲外であると判定されると、閾値設定部105において第2の閾値設定処理Bを行う(ステップS806)。
【0060】
ここで、個々の閾値設定処理について詳しく述べる。まず、第1の閾値設定処理Aでは、基準閾値に対して、閾値変動強度指定部901より規定される変動量を印加した値を、量子化時の閾値として用いる。すなわち、入力画素値が0から255の範囲の整数値であり、基準閾値が入力画素の定義域の中央値である128であるとすれば、閾値Th(L)は、式、
Th(L)=128+Th_v(I)
によって決定される。
【0061】
ここで、Th_v(I)は、基準閾値に印加される変動量であり、閾値変動強度指定部901において規定される閾値変動強度Vと入力画素値の参照有無指定部902の設定結果に連動して決定される。本実施形態では、閾値変動強度Vを64、入力画素値Iの参照を行うように設定されており、式、
Th_v(I)=I×V/255 (V=64)
にて、この変動量が定義されるものとする。
【0062】
閾値変動強度Vは、図9のユーザインターフェイス画面によって指定された変動強度に対応しており、変動強度を128と指定するとV=128、32と指定するとV=32、16と指定するとV=16、8と指定するとV=8とそれぞれ規定される。
【0063】
また、入力画素値の参照有無指定部902にて入力画像値を参照しないように設定すると、入力画素値Iに依らず、式、
Th_v(I)=V/255
によって、基準閾値に印加される変動量が与えられる。
【0064】
なお、本実施形態では、出力値が0の画素位置にはドットを記録し、出力値が255の画素位置にはドットを記録しないものとする。
【0065】
非記録ラスタはドット記録を行うことができないため、通常にドット記録が行える近傍のラスタと比較し、濃度が低下したラスタを生じてしまい、いわゆる「白スジ」を発生させてしまう。この白スジの発生を緩和するために、非記録ラスタの近傍に位置する数ラスタに対し、ユーザの指定したパラメータに応じて、記録ドットの発生頻度を司る閾値変動量を調整する閾値設定処理Aを実施する。
【0066】
一方、第2の閾値設定処理Bでは、量子化時の閾値は基準閾値の通りであり、
Th(L)=128
とする。
【0067】
次に、量子化部106において量子化処理を行う(ステップS807)。ここで行なわれる処理は、第1の実施形態でステップS206で行われる処理と同様であるので説明を省略する。
【0068】
次に、誤差演算部107において、累積誤差加算後の画素データI’と出力画素値Oとの差分、すなわち量子化誤差Errを、
Err=I’−O
によって計算する(ステップS808)。
【0069】
次に、誤差拡散部108において、着目している画素の横方向位置xに応じて誤差の拡散処理が行われる(ステップS809)。ここで行なわれる処理は、第1の実施形態においてステップS208で行われる処理と同様であるので説明を省略する。
【0070】
以上で、入力画像1画素に対する誤差拡散処理が完了する。この誤差拡散処理を入力画像の全画素に対して施されたか否かを判定し(ステップS810)、全画素に対して以上の処理が行われたと判断された場合、入力画像の擬似中間調処理が完了する。
【0071】
なお、第2の実施形態では、吐出状態検知部は各ノズルにおけるインク滴の吐出量を検知して非記録状態のノズルを検知したが、吐出状態検知部は、各ノズルから吐出されたインク滴の記録媒体上における記録面積に着目して非記録状態のノズルを検知してもよい。
【0072】
以上説明したように、第2の実施形態によれば、非記録状態にあるノズルの影響を受けて画像形成を実施できないラスタから指定された範囲にあるラスタの量子化時の閾値変動量をユーザが指定することにより、ユーザの所望するように出力画像品位を変化させることが可能である。
【0073】
(他の実施形態)
以上説明した実施形態は、所定方向に配列された複数のノズルを有する記録ヘッドをノズルの配列方向と交差する方向に記録媒体上で走査させて、記録媒体にインクを吐出することで画像を形成する、インクジェット記録方式を用いた記録装置に係る画像処理装置を例に挙げて説明したが、本発明は、インクジェット方式以外の他の方式に従って記録を行う記録装置に対しても適用できる。この場合、インク滴を吐出するノズルはドットを記録する記録素子に対応することとなる。
【0074】
また、本発明は、例えば記録媒体の記録幅に対応する長さの記録ヘッドを有し、記録ヘッドに対して記録媒体を移動させて記録を行う、いわゆるフルライン型の記録装置などの、シリアル型の記録装置(プリンタ)以外の、記録ヘッドを記録媒体に対して相対的に移動させて記録を行う記録装置に対しても適用することができる。
【0075】
更に、上述の実施形態では、画像処理装置が記録ヘッドの各ノズルの吐出状態を検知する吐出状態検知部を備えるものとして説明したが、この吐出状態の検知は、正常な記録が出来ないノズルの位置(番号)が画像処理装置に認識されれば別の装置によって行われてもよい。この場合には、吐出状態を検知した別の装置から、正常な記録が出来ないノズルの位置や番号のデータが画像処理装置に送信され、画像処理装置内の所定のメモリ位置に格納されることとなる。
【0076】
また、上述の実施形態においては、1つのノズル列を有する記録ヘッドを有する構成に関して説明するが、インクの種類に対応した数のノズル列が使用されてカラー記録を行う構成においては、各ノズル列それぞれで記録するデータに対して各実施形態で説明した処理が行われることとなる。
【0077】
なお、本発明は、複数の機器(例えばホストコンピュータ,インターフェース機器,リーダ,プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機,ファクシミリ装置など)に適用してもよい。また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、達成されることは言うまでもない。
【0078】
この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
【0079】
プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。
【0080】
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0081】
さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0082】
本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明した(図2および/または図8に示す)フローチャートに対応するプログラムコードが格納されることになる。
【0083】
【発明の効果】
以上説明したように、本発明によれば、正常な記録が行えない記録素子によって記録されると判定された非記録画素のデータの近傍画素のデータに対して、それ以外の画素データとは異なる処理、例えば、記録されるドット個数を増加させるような処理を行うことにより、該非記録画素のデータが及ぼす急激な濃度低下を緩和することが可能である。
【0084】
従って、正常な記録が出来ない記録素子を有する記録ヘッドを用いて記録を行う際にも、非記録画素のデータが及ぼす急激な濃度低下を緩和して、白スジを抑制した高品位な画像記録が行える。
【図面の簡単な説明】
【図1】本発明の第1の実施形態としての画像処理装置の構成を示すブロック図である。
【図2】図1の画像処理装置における処理を示すフローチャートである。
【図3】入力画像の走査の様子を示す図である。
【図4】累積誤差メモリに格納される内容の詳細を示す図である。
【図5】非記録状態のノズルを含むノズル列を使用した場合の画像形成過程を示す図である。
【図6】1つのノズル列を使用して、1ラインの画像列を1回の走査により画像を形成する過程を示す図である。
【図7】本発明の画像処理装置の第2の実施形態の構成を示すブロック図である。
【図8】図7の画像処理装置における処理を示すフローチャートである。
【図9】閾値パラメータの設定を行うためのユーザインターフェイス画面を示す図である。
【符号の説明】
100 吐出状態検知部
101 非記録ラスタ判定部
102 アドレス入力端子
103 画像データ入力端子
104 累積誤差加算部
105 閾値設定部
106 量子化部
107 誤差演算部
108 誤差拡散部
109 累積誤差メモリ
110 画像データ出力端子
700 閾値パラメータ設定部
701 モニタ[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus and an image processing method, and more particularly, to a recording apparatus that performs recording by moving a recording head having a plurality of recording elements arranged in a predetermined direction relative to a recording medium and performing recording. Is converted into data having a smaller number of gradations than the number of input gradations.
[0002]
[Prior art]
For example, as an information output device in a word processor, a personal computer, a facsimile, and the like, there are various types of recording devices that record desired information such as characters and images on a sheet-shaped recording medium such as paper or film. Among them, a method of forming a text or an image on a recording medium by attaching a recording agent to the recording medium has been put into practical use, and an ink jet recording apparatus is a typical example of such a method. In recent years, the performance of ink jet recording apparatuses has been improved, and not only texts but also images have been recorded.
[0003]
In the ink jet recording apparatus, a nozzle group in which a plurality of ink discharge ports (nozzles) capable of discharging ink of the same color and the same density is used in order to improve the recording speed and improve the image quality. Usually, nozzle groups are provided for inks of the same color but of different densities or inks of different colors. Further, there is an ink jet printer in which the ejection amount of the same color and the same density of ink is changed in several steps so that the ejection can be performed.
[0004]
Then, printing is performed by ejecting ink from the nozzles while moving the print head provided with these nozzle groups relatively to the print medium.
[0005]
When an image is recorded, a halftone processing method such as a dither method or an error diffusion method is used as a method for faithfully reproducing the gradation of image information. For example, R.I. is known as a method of converting multi-valued image data into a binary image (or an image having a binary number or more and a number of gradations smaller than the number of input gradations). The error diffusion method by Floyd et al. (“An adaptiveE algorithm for Spatial gray ScalE”, SID IntErnational Symposium DigEst of Tech., Pap. , A pseudo gray scale expression is performed by diffusing the data into a plurality of pixels.
[0006]
The error diffusion method is widely used in image processing apparatuses such as printers, copiers, and facsimile machines as a pseudo halftone processing method having high gradation reproducibility.
[0007]
[Problems to be solved by the invention]
However, when recording is performed using the above-described error diffusion method, the following problems occur.
[0008]
Here, an ink jet printer that forms an image by scanning a recording head having a plurality of nozzles arranged in a predetermined direction on a recording medium in a direction intersecting with the arrangement direction of the nozzles and discharging ink on the recording medium. A case where an image is recorded by a serial printer as described above will be described as an example.
[0009]
Among a plurality of nozzles that eject ink droplets (dots), there are nozzles that cannot eject a dot due to some influence (non-ejection) or nozzles whose ejected dot volume is less than a specified value. In particular, when the nozzle row is long and has a large number of nozzles, there is a high probability that there are nozzles that cannot perform such normal printing.
[0010]
FIG. 6 is a diagram showing a process of forming an image by scanning one line of an image line (raster) using one nozzle line.
[0011]
As shown in FIG. 6, when an image is formed by one scan, dots cannot be printed on a printing medium on a raster corresponding to a non-printing nozzle. Therefore, when it is necessary to form dots on the raster corresponding to the non-printing nozzles by the binarization processing using the conventional error diffusion method, the number of dots that must be actually printed near the dots An image is formed with a smaller number of dots. That is, density preservation, which is one of the advantages of the error diffusion method, is not sufficiently performed, and the quality of a recorded image is significantly reduced.
[0012]
The present invention has been made in view of the above circumstances, and is an image processing apparatus capable of performing high-quality image recording even when performing recording using a recording head having a recording element that cannot perform normal recording. And an image processing method.
[0013]
[Means for Solving the Problems]
In order to achieve the above object, an image processing apparatus according to the present invention is an image processing apparatus for a recording apparatus that performs recording by moving a recording head having a plurality of recording elements arranged in a predetermined direction relative to a recording medium. And
Determining means for determining whether or not the input pixel data is pixel data recorded by a recording element that cannot perform normal recording,
Quantization means for converting the input multi-grayscale data of each pixel into data having a smaller number of tones than the number of input tones;
Error diffusion means for diffusing the difference between the input data of the pixel of interest and the data quantized by the quantization means to pixels around the pixel of interest,
The quantizing means determines that the data of a pixel in the vicinity of a pixel determined to be recorded by the recording element that cannot perform the normal recording by the determining means has a different quantization value from the data of the other pixels. Is performed.
[0014]
According to another aspect of the present invention, there is provided an image processing method for a printing apparatus which performs printing by moving a printhead having a plurality of printing elements arranged in a predetermined direction relative to a print medium. And
A determining step of determining whether or not the input pixel data is pixel data recorded by a recording element that cannot perform normal recording;
A quantization step of converting the input multi-grayscale data of each pixel into data having a smaller number of gradations than the number of input gradations;
Error diffusion step of diffusing the difference between the input data of the target pixel and the data quantized in the quantization step to pixels around the target pixel,
In the quantization step, the data of a pixel in the vicinity of a pixel determined to be recorded by the recording element that cannot perform the normal recording in the determination step has a different quantization value from the data of the other pixels. Is performed.
[0015]
Further, the above object is also achieved by a computer program for causing a computer to execute the image processing method, and a storage medium storing the program.
[0016]
That is, according to the present invention, in a printing apparatus that performs printing by moving a printing head having a plurality of printing elements arranged in a predetermined direction relative to a printing medium, the input pixel data can be printed normally. It is determined whether the data is pixel data recorded by a recording element that cannot be performed, and the input multi-grayscale data of each pixel is converted into data having a grayscale number smaller than the input grayscale number. The difference between the input data of the pixel and the data quantized in the quantization is diffused to the pixels around the pixel of interest, and in the quantization, it is determined that recording is performed by a recording element that cannot perform normal recording. A different quantization process is performed on the data of the pixels in the vicinity of the pixel than the data of the other pixels.
[0017]
With this configuration, the data of the neighboring pixels of the data of the non-recording pixel determined to be recorded by the recording element that cannot perform normal recording is processed differently from the other pixel data, for example, is recorded. By performing a process for increasing the number of dots, it is possible to alleviate a sharp decrease in density caused by the data of the non-printed pixels.
[0018]
Therefore, even when printing is performed using a print head having a print element that cannot perform normal printing, high-quality image printing in which white stripes are suppressed by alleviating a sharp decrease in density caused by data of non-printed pixels. Can be performed.
[0019]
It is preferable that the quantizing means further includes a threshold changing means for changing a threshold value at the time of quantization with respect to data of a pixel near the non-recorded pixel.
[0020]
In this case, when the threshold value changing unit changes the threshold value so that the number of recording dots for pixels near the non-recording pixel increases, a sharp decrease in density exerted by data of the non-recording pixel can be effectively mitigated.
[0021]
It is preferable that the apparatus further includes a user interface for a user to select a parameter used by the threshold value changing unit.
[0022]
As the parameter, an application range of the threshold variation process, a threshold variation intensity, presence / absence of reference to an input pixel value at the time of threshold setting, and the like can be considered.
[0023]
It is preferable that the threshold variation unit defines the variation of the threshold with reference to the data of the input pixel.
[0024]
It is preferable that the image processing apparatus further includes a detecting unit that detects a recording element that cannot perform normal recording.
[0025]
In this case, it is preferable that the detecting unit detects a recording element that cannot perform normal recording based on a driving result of each recording element or a recording result of each recording element on a recording medium.
[0026]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0027]
In the embodiment described below, a recording head having a plurality of nozzles arranged in a predetermined direction is scanned on a recording medium in a direction intersecting with the arrangement direction of the nozzles to discharge ink onto the recording medium. An image processing apparatus related to a serial type recording apparatus using an ink jet recording method for forming an image will be described as an example.
[0028]
(1st Embodiment)
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment of the present invention. 100 is an ejection state detection unit, 101 is a non-recording raster determination unit, 102 is an address input terminal, 103 is an input terminal for pixel data, 104 is a cumulative error addition unit, 105 is a threshold setting unit that sets a quantization threshold, and 106 is A
[0029]
Hereinafter, the operation of the image processing apparatus of FIG. 1 will be described with reference to the flowchart of FIG.
[0030]
First, the ejection
[0031]
FIG. 3 is a diagram showing a state of scanning of an input image.
[0032]
Next, the cumulative error value corresponding to the pixel position of the cumulative error memory is added to the input pixel data in the cumulative error adding unit 104 (step S202). The cumulative error memory has one storage area E0 and the same number of storage areas E (x) as the number of horizontal pixels W of the input image, and stores a quantization error by a method described later. It is assumed that all the accumulated error memories have been initialized to the
[0033]
FIG. 4 is a diagram showing details of the contents stored in the accumulated error memory. In the cumulative
I ′ = I + E (x)
It becomes.
[0034]
Next, the non-recording
L% N = (Pi + N-1)% N
L% N = (Pi + 1)% N
It is determined that a non-record raster exists in the vicinity of a raster satisfying any one of the above. Note that% is an operator representing modulo (remainder).
[0035]
FIG. 5 is a diagram illustrating an image forming process in the case where a nozzle row in which the number of nozzles N = 16 and the nozzle numbers in the non-printing state are P0 = 3 and P1 = 11 is used. As shown in FIG. 5, rasters adjacent to raster numbers L = 3, 11, 19,... Of the output image, that is, rasters with raster numbers L = 2, 4, 10, 12, 18, 20,. It is determined that the recording raster exists in the vicinity.
[0036]
Next, when it is determined that a non-recording raster exists near the focused raster, the
[0037]
Here, the individual threshold setting processing will be described in detail. First, in the first threshold setting process A, a value obtained by applying a variation amount according to an input pixel value to a reference threshold (reference threshold) is used as a threshold at the time of quantization. That is, if the input pixel value is an integer value in the range of 0 to 255, and the reference threshold value is 128, which is the median value of the definition area of the input pixel, the threshold value Th (L) is expressed by the following equation:
Th (L) = 128 + Th_v (I)
Is determined by
[0038]
Here, Th_v (I) is the amount of change applied to the reference threshold, and is determined according to the input pixel value I. In the present embodiment, the formula:
Th_v (I) = I / 2
It is assumed that this variation is defined. In this embodiment, it is assumed that dots are recorded at pixel positions where the output value is 0, and dots are not recorded at pixel positions where the output value is 255.
[0039]
Since a non-recording raster cannot perform dot recording, a raster having a lower density is generated as compared with a nearby raster in which dot recording can be performed as usual, and a so-called “white streak” is generated. In order to alleviate the occurrence of the white stripe, the number of dots recorded on the raster adjacent to the non-record raster is increased more than usual, and the decrease in density damaged in the white stripe is compensated for by the density of the nearby raster.
[0040]
On the other hand, in the second threshold setting process B, the threshold at the time of quantization is as the reference threshold,
Th (L) = 128
And
[0041]
Next, a quantization process is performed in the quantization unit 106 (step S206). The pixel data I ′ after the addition of the accumulated error is compared with a threshold value Th (L) determined by the threshold
O = 0 (I '<Th (L))
O = 255 (I ′ ≧ Th (L))
Determined from the load.
[0042]
Next, the
Err = I'-O
(Step S207).
[0043]
Next, in the
E (x + 1) ← E (x + 1) + E × 7/16 (x <W)
E (x-1) ← E (x-1) + E × 3/16 (x> 1)
E (x) ← E0 + E × 5/16 (1 <x <W)
E (x) ← E0 + E × 8/16 (x = 1)
E (x) ← E0 + E × 13/16 (x = W)
E0 ← E × 1/16 (x <W)
E0 ← 0 (x = W)
The error diffusion processing is performed so that
[0044]
Thus, the error diffusion processing for one pixel of the input image is completed. It is determined whether or not this error diffusion processing has been performed on all pixels of the input image (step S209). If it is determined that the above processing has been performed on all pixels, the pseudo halftone processing of the input image is performed. Is completed.
[0045]
In the threshold setting process A according to the first embodiment, two rasters adjacent to the non-recording raster are targeted. However, the threshold is not limited to two rasters as long as the raster is near the non-recording raster.
[0046]
Further, in the threshold setting process A according to the first embodiment, the variation applied to the threshold is determined with reference to the input pixel value, but may be a fixed value that does not depend on the input pixel value.
[0047]
In the first embodiment, the ejection state detection unit detects the nozzles in the non-printing state by detecting the ejection amount of the ink droplets from each nozzle, but the ejection state detection unit detects the ink droplets ejected from each nozzle. The nozzle in the non-printing state may be detected by focusing on the printing area on the printing medium.
[0048]
As described above, according to the first embodiment, for a raster in which image formation cannot be performed due to the influence of a nozzle in a non-printing state, the frequency of occurrence of recording dots of an adjacent raster is increased. It is possible to alleviate a sharp decrease in density due to a raster on which image formation cannot be performed, and to suppress the occurrence of white streaks, thereby providing a high-quality output image.
[0049]
(Second embodiment)
Hereinafter, a second embodiment of the image processing apparatus according to the present invention will be described. In the following description, the same parts as those in the first embodiment will not be described, and the description will focus on the characteristic parts of the present embodiment.
[0050]
FIG. 7 is a block diagram showing the configuration of the second embodiment of the image processing apparatus of the present invention. The difference from the configuration of the first embodiment shown in FIG. 1 is that a threshold
[0051]
Hereinafter, the operation of the image processing apparatus of FIG. 7 will be described with reference to the flowchart of FIG.
[0052]
First, the ejection
[0053]
FIG. 9 shows an example of a user interface screen for specifying these threshold parameters. The user interface screen is displayed on the
[0054]
Next, an input image is sequentially scanned by an image scanning unit (not shown), and each pixel data is input from the input terminal 103 (step S802). The scanning of the image is the same as in the first embodiment described with reference to FIG.
[0055]
Next, the cumulative error value corresponding to the pixel position of the cumulative error memory is added to the input pixel data in the cumulative error adding unit 104 (step S803). The cumulative error memory has one storage area E0 and the same number of storage areas E (x) as the number of horizontal pixels W of the input image, and stores the quantization error as in the first embodiment described with reference to FIG. I have. It is assumed that all the accumulated error memories have been initialized to the
[0056]
Next, the non-recording
L% N = (Pi + n)% N (n = −2, −1,..., 1, 2)
Are determined to be within the applicable range of the threshold variation process.
[0057]
The application range n of the threshold variation process corresponds to the application range illustrated on the user interface screen of FIG. 9, and if the application range is specified as ± 1 raster,
-1 ≦ n ≦ 1
When the application range is specified as ± 3 rasters,
-3 ≦ n ≦ 3
Is defined respectively. Note that% is an operator representing modulo (remainder).
[0058]
Similar to the first embodiment, in the case of using the nozzle row shown in FIG. 5 in which the number of nozzles N = 16 and the nozzle numbers in the non-printing state are P0 = 3 and P1 = 11, the present embodiment Since the application range of the threshold variation process is defined as ± 2 rasters near the non-recording raster as described above, the raster numbers L of the output image are L = 1, 2, 4, 5, 9, 10, 12, 13,. The rasters at 17, 18, 20, 21,... Are subjected to the threshold variation processing.
[0059]
Next, when it is determined that the target raster is within the applicable range of the threshold variation process, the
[0060]
Here, the individual threshold setting processing will be described in detail. First, in the first threshold setting process A, a value obtained by applying a fluctuation amount defined by the threshold fluctuation
Th (L) = 128 + Th_v (I)
Is determined by
[0061]
Here, Th_v (I) is a fluctuation amount applied to the reference threshold, and is linked to the threshold fluctuation intensity V defined by the threshold fluctuation
Th_v (I) = I × V / 255 (V = 64)
It is assumed that this variation is defined.
[0062]
The threshold fluctuation intensity V corresponds to the fluctuation intensity specified on the user interface screen of FIG. 9. When the fluctuation intensity is specified as 128, V = 128, when 32 is specified, V = 32, and when 16 is specified, V = 16. , 8 are defined as V = 8.
[0063]
If the input pixel value reference presence /
Th_v (I) = V / 255
Gives the amount of variation applied to the reference threshold.
[0064]
In this embodiment, it is assumed that dots are recorded at pixel positions where the output value is 0, and dots are not recorded at pixel positions where the output value is 255.
[0065]
Since a non-recording raster cannot perform dot recording, a raster whose density is lower than that of a nearby raster in which dot recording can be normally performed is generated, and a so-called “white streak” is generated. In order to alleviate the occurrence of white streaks, a threshold setting process A for adjusting the threshold fluctuation amount governing the frequency of recording dots in accordance with a parameter specified by the user, for several rasters located near the non-recording raster. Is carried out.
[0066]
On the other hand, in the second threshold setting process B, the threshold at the time of quantization is as the reference threshold,
Th (L) = 128
And
[0067]
Next, a quantization process is performed in the quantization unit 106 (step S807). The processing performed here is the same as the processing performed in step S206 in the first embodiment, and a description thereof will be omitted.
[0068]
Next, the
Err = I'-O
Is calculated (step S808).
[0069]
Next, the
[0070]
Thus, the error diffusion processing for one pixel of the input image is completed. It is determined whether or not this error diffusion processing has been performed on all pixels of the input image (step S810). If it is determined that the above processing has been performed on all pixels, the pseudo halftone processing of the input image is performed. Is completed.
[0071]
In the second embodiment, the ejection state detection unit detects the ejection amount of ink droplets from each nozzle to detect a nozzle in a non-printing state. However, the ejection state detection unit detects the ink droplet ejection from each nozzle. The nozzle in the non-printing state may be detected by focusing on the printing area on the printing medium.
[0072]
As described above, according to the second embodiment, the amount of threshold fluctuation at the time of quantization of a raster within a specified range from a raster in which image formation cannot be performed due to the effect of a nozzle in a non-printing state is determined by the user. , It is possible to change the output image quality as desired by the user.
[0073]
(Other embodiments)
In the embodiment described above, an image is formed by ejecting ink to a recording medium by scanning a recording head having a plurality of nozzles arranged in a predetermined direction on a recording medium in a direction intersecting the arrangement direction of the nozzles. Although an image processing apparatus according to a recording apparatus using an ink jet recording method has been described as an example, the present invention can be applied to a recording apparatus that performs recording according to a method other than the ink jet method. In this case, the nozzles that eject ink droplets correspond to the recording elements that record dots.
[0074]
In addition, the present invention has a recording head having a length corresponding to the recording width of the recording medium, and performs recording by moving the recording medium with respect to the recording head. The present invention can also be applied to a recording device that performs recording by moving a recording head relatively to a recording medium, other than a recording device of a type (printer).
[0075]
Further, in the above-described embodiment, the image processing apparatus has been described as including the discharge state detection unit that detects the discharge state of each nozzle of the print head. However, the detection of the discharge state is performed by the nozzle that cannot perform normal printing. If the position (number) is recognized by the image processing apparatus, the processing may be performed by another apparatus. In this case, the data of the nozzle position or number where normal printing cannot be performed is transmitted to the image processing device from another device that has detected the ejection state, and stored in a predetermined memory position in the image processing device. It becomes.
[0076]
In the above-described embodiment, a configuration having a print head having one nozzle row will be described. However, in a configuration in which the number of nozzle rows corresponding to the type of ink is used to perform color printing, each nozzle row is used. The processing described in each embodiment is performed on the data to be recorded.
[0077]
The present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but may be applied to an apparatus (for example, a copying machine, a facsimile machine, etc.) including one device. May be applied. Further, an object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and a computer (or CPU or MPU) of the system or apparatus to store the storage medium. It is needless to say that the present invention can also be achieved by reading and executing the program code stored in the program.
[0078]
In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
[0079]
As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, and the like can be used.
[0080]
When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an OS (Operating System) running on the computer based on the instruction of the program code. It goes without saying that a part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.
[0081]
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that a CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[0082]
When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the above-described flowcharts (shown in FIG. 2 and / or FIG. 8).
[0083]
【The invention's effect】
As described above, according to the present invention, data of neighboring pixels of data of a non-printed pixel determined to be printed by a print element that cannot perform normal printing is different from other pixel data. By performing a process, for example, a process of increasing the number of dots to be printed, it is possible to alleviate a sharp decrease in density caused by the data of the non-printed pixels.
[0084]
Therefore, even when printing is performed using a print head having a print element that cannot perform normal printing, high-quality image printing in which white stripes are suppressed by alleviating a sharp decrease in density caused by data of non-printed pixels. Can be performed.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment of the present invention.
FIG. 2 is a flowchart illustrating a process in the image processing apparatus of FIG. 1;
FIG. 3 is a diagram showing a state of scanning of an input image.
FIG. 4 is a diagram showing details of contents stored in a cumulative error memory;
FIG. 5 is a diagram illustrating an image forming process when a nozzle row including a nozzle in a non-printing state is used.
FIG. 6 is a diagram illustrating a process of forming an image by scanning one line of an image line by using one nozzle line;
FIG. 7 is a block diagram illustrating a configuration of an image processing apparatus according to a second embodiment of the present invention.
FIG. 8 is a flowchart illustrating a process in the image processing apparatus of FIG. 7;
FIG. 9 is a diagram showing a user interface screen for setting a threshold parameter.
[Explanation of symbols]
100 Discharge state detector
101 Non-record raster determination unit
102 Address input terminal
103 Image data input terminal
104 Cumulative error adder
105 Threshold setting unit
106 Quantization unit
107 Error calculation unit
108 Error diffusion unit
109 Accumulated error memory
110 Image data output terminal
700 threshold parameter setting unit
701 monitor
Claims (20)
入力された画素データが、正常な記録が行えない記録素子によって記録される画素のデータであるか否かを判定する判定手段と、
入力された各画素の多階調のデータを、入力階調数よりも少ない階調数のデータに変換する量子化手段と、
着目画素の入力データと前記量子化手段によって量子化されたデータとの差を、該着目画素周辺の画素に拡散する誤差拡散手段と、を備えており、
前記量子化手段が、前記判定手段によって前記正常な記録が行えない記録素子によって記録されると判定された画素の近傍にある画素のデータに対して、それ以外の画素のデータとは異なった量子化処理を行うことを特徴とする画像処理装置。An image processing apparatus of a recording apparatus that performs recording by moving a recording head having a plurality of recording elements arranged in a predetermined direction relatively to a recording medium,
Determining means for determining whether or not the input pixel data is pixel data recorded by a recording element that cannot perform normal recording,
Quantization means for converting the input multi-grayscale data of each pixel into data having a smaller number of tones than the number of input tones;
Error diffusion means for diffusing the difference between the input data of the pixel of interest and the data quantized by the quantization means to pixels around the pixel of interest,
The quantizing means determines that the data of a pixel in the vicinity of a pixel determined to be recorded by the recording element that cannot perform the normal recording by the determining means has a different quantization value from the data of the other pixels. An image processing apparatus for performing a conversion process.
入力された画素データが、正常な記録が行えない記録素子によって記録される画素のデータであるか否かを判定する判定工程と、
入力された各画素の多階調のデータを、入力階調数よりも少ない階調数のデータに変換する量子化工程と、
着目画素の入力データと前記量子化工程において量子化されたデータとの差を、該着目画素周辺の画素に拡散する誤差拡散工程と、を備えており、
前記量子化工程において、前記判定工程において前記正常な記録が行えない記録素子によって記録されると判定された画素の近傍にある画素のデータに対して、それ以外の画素のデータとは異なった量子化処理を行うことを特徴とする画像処理方法。An image processing method for a printing apparatus that performs printing by moving a printing head having a plurality of printing elements arranged in a predetermined direction relative to a printing medium,
A determining step of determining whether or not the input pixel data is pixel data recorded by a recording element that cannot perform normal recording;
A quantization step of converting the input multi-grayscale data of each pixel into data having a smaller number of gradations than the number of input gradations;
Error diffusion step of diffusing the difference between the input data of the target pixel and the data quantized in the quantization step to pixels around the target pixel,
In the quantization step, the data of a pixel in the vicinity of a pixel determined to be recorded by the recording element that cannot perform the normal recording in the determination step has a different quantization value from the data of the other pixels. An image processing method comprising performing a conversion process.
入力された画素データが、正常な記録が行えない記録素子によって記録される画素のデータであるか否かを判定する判定工程と、
入力された各画素の多階調のデータを、入力階調数よりも少ない階調数のデータに変換する量子化工程と、
着目画素の入力データと前記量子化手段によって量子化されたデータとの差を、該着目画素周辺の画素に拡散する誤差拡散工程と、に対応したプログラムコードを備えており、
前記量子化工程において、前記判定工程において前記正常な記録が行えない記録素子によって記録されると判定された画素の近傍にある画素のデータに対して、それ以外の画素のデータとは異なった量子化処理を行うことを特徴とするコンピュータプログラム。A computer program that causes a computer to execute an image processing method of a recording apparatus that performs recording by moving a recording head having a plurality of recording elements arranged in a predetermined direction relative to a recording medium,
A determining step of determining whether or not the input pixel data is pixel data recorded by a recording element that cannot perform normal recording;
A quantization step of converting the input multi-grayscale data of each pixel into data having a smaller number of gradations than the number of input gradations;
An error diffusion step of diffusing the difference between the input data of the target pixel and the data quantized by the quantization means to pixels around the target pixel, and a program code corresponding to the error diffusion step.
In the quantization step, the data of a pixel in the vicinity of a pixel determined to be recorded by the recording element that cannot perform the normal recording in the determination step has a different quantization value from the data of the other pixels. A computer program for performing a conversion process.
入力された画素データが、正常な記録が行えない記録素子によって記録される画素のデータであるか否かを判定する判定工程と、
入力された各画素の多階調のデータを、入力階調数よりも少ない階調数のデータに変換する量子化工程と、
着目画素の入力データと前記量子化手段によって量子化されたデータとの差を、該着目画素周辺の画素に拡散する誤差拡散工程と、に対応したプログラムコードを格納し、
前記量子化工程において、前記判定工程において前記正常な記録が行えない記録素子によって記録されると判定された画素の近傍にある画素のデータに対して、それ以外の画素のデータとは異なった量子化処理を行うことを特徴とする記憶媒体。A storage medium storing a computer program for causing a computer to execute an image processing method of a printing apparatus that performs printing by moving a printing head having a plurality of printing elements arranged in a predetermined direction relative to a printing medium. ,
A determining step of determining whether or not the input pixel data is pixel data recorded by a recording element that cannot perform normal recording;
A quantization step of converting the input multi-grayscale data of each pixel into data having a smaller number of gradations than the number of input gradations;
An error diffusion step of diffusing the difference between the input data of the target pixel and the data quantized by the quantization means to pixels around the target pixel, and storing a program code corresponding to the error diffusion step.
In the quantization step, the data of a pixel in the vicinity of a pixel determined to be recorded by the recording element that cannot perform the normal recording in the determination step has a different quantization value from the data of the other pixels. A storage medium for performing a conversion process.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002201147A JP2004042350A (en) | 2002-07-10 | 2002-07-10 | Image processor and image processing method |
US10/252,562 US6652059B2 (en) | 2001-09-27 | 2002-09-24 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002201147A JP2004042350A (en) | 2002-07-10 | 2002-07-10 | Image processor and image processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004042350A true JP2004042350A (en) | 2004-02-12 |
Family
ID=31707767
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002201147A Withdrawn JP2004042350A (en) | 2001-09-27 | 2002-07-10 | Image processor and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004042350A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005319780A (en) * | 2004-05-06 | 2005-11-17 | Oce Technol Bv | Printing method using camouflage of defective printed element |
JP2016215395A (en) * | 2015-05-14 | 2016-12-22 | 株式会社リコー | Liquid discharging apparatus, method for processing image data, and program |
JP2017136731A (en) * | 2016-02-02 | 2017-08-10 | 株式会社リコー | Image processing method, image processing system, and program |
-
2002
- 2002-07-10 JP JP2002201147A patent/JP2004042350A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005319780A (en) * | 2004-05-06 | 2005-11-17 | Oce Technol Bv | Printing method using camouflage of defective printed element |
JP2016215395A (en) * | 2015-05-14 | 2016-12-22 | 株式会社リコー | Liquid discharging apparatus, method for processing image data, and program |
JP2017136731A (en) * | 2016-02-02 | 2017-08-10 | 株式会社リコー | Image processing method, image processing system, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4954494B2 (en) | Printing method using camouflage of defective printing element | |
US7393070B2 (en) | Printing device, printing device control, program and method, and printing data generation device, program and method | |
JP2002185789A (en) | Image processing unit, print controller, image processing method, and recording medium | |
JP2008194855A (en) | Image forming apparatus, image processing apparatus, and its controlling method | |
JP2021024275A (en) | Image processing device, recording device, image processing method and program | |
JP2008093852A (en) | Printer, printer control program, recording medium storing the program, printer control method, image processor, image processing program, recording medium storing the program and image processing method | |
JP2008018632A (en) | Printer, printer controlling program, storage medium storing the program and printer controlling method, image processing apparatus, image processing program, storage medium storing the program and image processing method, and compensation region information forming apparatus, compensation region information forming program, storage medium storing the program, and compensation region information forming method | |
JPH10329343A (en) | Method and apparatus for ink-jet recording | |
JP4645106B2 (en) | Image processing apparatus, image output apparatus, and program | |
JP4743817B2 (en) | Image processing apparatus and image processing method | |
JP2021084297A (en) | Image processing device, image processing method and program | |
JP2004042350A (en) | Image processor and image processing method | |
JP3732470B2 (en) | Image processing apparatus, image recording apparatus, and program | |
JP3848017B2 (en) | Image processing apparatus and image processing method | |
JP2000118007A (en) | Printing apparatus, printing method and recording medium | |
JP2012050062A (en) | Image processor, image processing method and program | |
JP4257087B2 (en) | Image processing apparatus, image recording apparatus, and program | |
US6652059B2 (en) | Image processing apparatus and image processing method | |
JP2001088328A (en) | Recording method and recording device | |
JP2007104470A (en) | Image processing apparatus, image output apparatus, and program | |
JP6015230B2 (en) | Image processing apparatus and image processing program | |
JP3780120B2 (en) | Recording method and recording apparatus | |
JP2012126040A (en) | Image forming apparatus | |
US20230385584A1 (en) | Printing apparatus, method of controlling printing apparatus, and storage medium | |
JP3757650B2 (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20051004 |