JP3848017B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP3848017B2
JP3848017B2 JP18000699A JP18000699A JP3848017B2 JP 3848017 B2 JP3848017 B2 JP 3848017B2 JP 18000699 A JP18000699 A JP 18000699A JP 18000699 A JP18000699 A JP 18000699A JP 3848017 B2 JP3848017 B2 JP 3848017B2
Authority
JP
Japan
Prior art keywords
image
value
data
binarization
error
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
JP18000699A
Other languages
Japanese (ja)
Other versions
JP2001008033A5 (en
JP2001008033A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP18000699A priority Critical patent/JP3848017B2/en
Publication of JP2001008033A publication Critical patent/JP2001008033A/en
Publication of JP2001008033A5 publication Critical patent/JP2001008033A5/ja
Application granted granted Critical
Publication of JP3848017B2 publication Critical patent/JP3848017B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は画像処理装置及び画像処理方法に関し、特に、例えば、スキャナ、コンピュータ等により入力された多値画像を繰り返し展開して、低階調デバイスに出力する際の擬似階調表現する画像処理装置及び画像処理方法に関するものである。
【0002】
【従来の技術】
従来より、擬似階調表現手法として誤差拡散法、ディザ法が知られている。これらの内、誤差拡散法では、図10に示すように、注目画素に関しいくつかの後続の画素に対して拡散係数を割り当て、注目画素で発生した量子化誤差を、この拡散係数に応じて周辺画素に振り分ける。この処理により画像全体の濃度値が保存されることになり、良好な擬似階調表現が可能となる。
【0003】
また、ディザ法では、図11に示すように、あらかじめ閾値を与えてあるディザマトリクス(図11では、マトリクスサイズが4×4である)を用意しておき、このマトリクスと入力多値画像データの各画素との1対1の画素比較を行なう。このとき、入力多値画像データの値が閾値より大きければ、その画素をON、小さければOFFとして2値化出力を得る。このディザ法では、ドットの規則的な並びによって生じる人工的な模様のため、擬似階調画像に粒状感があり、一般的に、誤差拡散法を適用した画像に比べて画質が悪くなる傾向にある。
【0004】
さて、ネクタイやハンカチなどの布に施された模様に見られるような繰り返しパターンを考えると、図12に示すように、その繰り返しの基本となるパターン(図12(a))を単純に水平方向と垂直方向に繰り返して生成するパターン(図12(b))や、基本パターンを1/2づつずらしながら水平方向と垂直方向に繰り返すパターン(図12(c))等がある。しかし、繰り返し回数が多い場合、この繰り返し画像全体に擬似階調処理を施すのは非効率であり、この処理をソフトウェアで行なうのであれば、処理速度の面からも非現実的である。
【0005】
また、基本パターンのみを2値化し、単純にその2値データを繰り返して画像形成すると、図13に示すように基本パターンと基本パターンとの境界部に目につきやすいノイズ(これを境界ノイズという)が発生してしまう。この原因としては、境界部における2値化処理の不連続性が考えられる。
【0006】
そこで、この境界ノイズを削減するために、図14(a)に示すように基本パターンに外枠を追加してそのパターンを描画する外枠追加方式や、図14(b)に示すように基本パターンの境界部にスムージング処理を施す境界部スムージング方式が提案されている。外枠追加方式では、基本パターンを囲むように、ある大きさからなる同じ多値画像を追加して、この画像全体に2値化処理を行ない、基本パターンの2値化データを得る。しかし、これにより得られる2値データを繰り返して画像形成しても、依然として境界部の不連続性のために境界ノイズが発生してしまう。
【0007】
また、境界部スムージング方式のように、得られた2値データの境界ノイズを削減するために、2値データの境界部にスムージング処理を施しても、例えば、その境界部に細線等のエッジ領域を含む画像の場合には、この処理により、境界部の画像が不鮮明になるという問題がある。
【0008】
【発明が解決しようとする課題】
そこで、特開平10-233923号公報には、誤差拡散法により発生する基本画像端部での誤差を逆側の未処理領域のデータに巻き込む手法が開示されている。
【0009】
しかしながら、この処理で形成された2値の基本画像を用いて繰り返して記録すると、誤差拡散法処理の独特な縞パターンの影響で、境界部の画質が劣化する場合があった。
【0010】
また、誤差を巻き込む処理を垂直方向に順次進めていくと、基本画像の下端部において発生する拡散誤差を上端部に拡散できないため、垂直方向の繰り返しの連続性が崩れてしまう。
【0011】
そこで、前述の公報では、予め基本画像の上部に基本画像の下部部分の補助画像を追加しておき処理を行ない、処理が終了した時点で補助画像と基本画像の下部領域のデータを用いて、基本画像の最下端の2値データを決定している。
【0012】
具体的には、前述の公報では、2値化データを決定する際、注目画素周辺のデータの平均値または注目画素周辺の2値化により発生した誤差の平均値のみを用いている。
【0013】
この場合、注目画素周辺の入力多値データの値を考慮していないため、画質劣化を生じる恐れがあった。
【0014】
本発明は上述の従来技術の課題の解決を目的とし、擬似階調表現された画像の繰り返しに伴う境界ノイズを削減するとともに、誤差拡散法の処理方向を1ライン毎逆方向にすることで、更に境界ノイズの発生を抑えた高画質な繰り返し画像を得ることができる画像処理装置及び画像処理方法を提供することを目的とする。
【0015】
また本発明は、予め基本画像の上部に基本画像の下部部分の補助画像を追加しておき処理を行ない、処理が終了した時点で補助画像と基本画像の下部領域のデータを用いて、基本画像の最下端の2値データを決定する際、注目画素周辺の2値化による誤差の平均値を注目画素の入力多値データに加算した値を用いるので、入力多値データの濃度を保存し、境界ノイズの発生を抑えると共に高画質な繰り返し画像を得ることができる画像処理装置及び画像処理方法を提供することを目的とする。
【0016】
【課題を解決するための手段】
上述した目的を達成するべく本発明の画像処理装置は、多値データで表現された基本画像を擬似階調表現する2値画像に変換する画像処理装置において、前記基本画像の一部の画像からなる補助画像を前記基本画像に隣接させて結合画像を形成する結合手段と、前記結合された画像を表現する各画素の値を順次、所定の閾値と比較し、該比較結果に従って2値化する2値化手段と、前記2値化によって発生する誤差を所定サイズの誤差拡散マトリクスを適用して、注目画素の周辺画素に分配する分配手段と、前記分配手段によって分配される誤差のうち、前記基本画像の外にはみ出す誤差を、前記2値化手段による2値化処理が未処理の領域に取り込む取込手段と、2値化処理終了後、前記補助画像のうち、前記基本画像と接するラインを含む第1の領域の画像データ値と、前記第1の領域に対応する前記基本画像中の第2の領域の画像データ値とを比較し、該比較結果をもとに前記第1及び第2の領域の画像データ値を補正する補正手段とを有し、前記補正手段は、前記周辺画素における元の多値データ値と、前記周辺画素における前記取込手段が誤差を取り込んだ後の2値データ値との差分値を求める差分値演算手段と、前記差分値演算手段により求められた前記周辺画素の差分値を加重平均する加重平均手段と、前記加重平均手段によって加重平均された値を、前記注目画素の多値データに加算する加算手段と、前記加算手段により得られた加重平均値を所定の閾値と比較し、該比較結果に従って補正値を生成する補正値生成手段とからなることを特徴とする。
【0017】
また、本発明の画像処理方法は、多値データで表現された基本画像を擬似階調表現する2値画像に変換する画像処理方法において、前記基本画像の一部の画像からなる補助画像を前記基本画像に隣接させて結合画像を形成する結合工程と、前記結合された画像を表現する各画素の値を順次、所定の閾値と比較し、該比較結果に従って2値化する2値化工程と、前記2値化によって発生する誤差を所定サイズの誤差拡散マトリクスを適用して、注目画素の周辺画素に分配する分配工程と、前記分配工程によって分配される誤差のうち、前記基本画像の外にはみ出す誤差を、前記2値化工程による2値化処理が未処理の領域に取り込む取込工程と、2値化処理終了後、前記補助画像のうち、前記基本画像と接するラインを含む第1の領域の画像データ値と、前記第1の領域に対応する前記基本画像中の第2の領域の画像データ値とを比較し、該比較結果をもとに前記第1及び第2の領域の画像データ値を補正する補正工程とを有し、前記補正工程は、前記周辺画素における元の多値データ値と、前記周辺画素における前記取込工程が誤差を取り込んだ後の2値データ値との差分値を求める差分値演算工程と、前記差分値演算工程で求められた前記周辺画素の差分値を加重平均する加重平均工程と、前記加重平均工程で加重平均された値を、前記注目画素の多値データに加算する加算工程と、前記加算工程で得られた加重平均値を所定の閾値と比較し、該比較結果に従って補正値を生成する補正値生成工程とからなることを特徴とする。
【0020】
【発明の実施の形態】
以下添付図面を参照して本発明の好適な実施の形態について詳細に説明する。
【0021】
図1は、本発明の代表的な実施形態である画像処理装置の構成を示すブロック図である。この画像処理装置は、図1に示すように、画像原稿100を読み取る画像読取り部109と、その読み取った画像を処理する画像処理部104と、画像処理されたデータに基づいて、記録媒体(紙、板、布など)に画像をプリントするプリンタ部105と、画像読取り部109と画像処理部104とプリンタ部105とを制御する制御部110とから構成される。
【0022】
画像読み取り部109は、レンズ101、CCDセンサ102、アナログ信号処理部103等により構成される。レンズ101を介してCCDセンサ102に結像された原稿画像に基づいて、CCDセンサ102によりR(Red),G(Green),B(Blue)のアナログ電気信号が生成される。そして、その電気信号は、アナログ信号処理部103に入力され、そこで、R,G,Bの各色成分毎にサンプル&ホールド、ダークレベルの補正等が行なわれた後、アナログ・デジタル変換(A/D変換)され、RGB成分からなるデジタル画像データが生成される。
【0023】
このようにデジタル化されたフルカラー信号は、画像処理部104に入力される。画像処理部104では、シェーディング補正、色補正、γ補正等の画像読み取り部109における読み取り処理に起因する必要な補正処理や、輝度濃度変換処理、UCR処理、スムージング処理、エッジ強調などの前処理や加工等を施した後、その結果得られるYMCK成分からなる濃度画像データがプリンタ部105に出力される。
【0024】
プリンタ部105は、インクジェット方式に従う記録ヘッドを用い、インクを記録媒体に吐出することによりその記録媒体に画像を記録するインクジェットプリンタである。
【0025】
図2はプリンタ部105の構成を示す外観斜視図である。
【0026】
図2において、1は記録用紙、プラスチックシート、或は、布などの記録媒体、2〜3は記録用紙1の記録領域の上下に配置され矢印Aの方向に記録用紙1を搬送する搬送ローラ、4は搬送ローラ2〜3を駆動するシート送りモータ、5は搬送ローラ2と3との間に位置し搬送ローラ2〜3の回転軸に平行に設けられたガイドシャフト、6はガイドシャフト5に沿って往復移動(矢印B)するキャリッジ、7はキャリッジを移動させるキャリッジモータ、8はキャリッジモータ7の駆動力をキャリッジ6に伝達するベルトである。
【0027】
さて、キャリッジ6には、インクジェット方式に従ってインク液滴を吐出して記録を行なう記録ヘッド9A〜9D(以下、これら4つの記録ヘッドを総称して言及するときには、記録ヘッド9とする)が搭載されている。記録ヘッド9はカラー画像記録用であり、キャリッジ6の移動方向に配置され、それぞれ、シアン(C)、マゼンタ(M)、イエロ(Y)、ブラック(Bk)の各色のインクに対応させて設けた4個の記録ヘッド(Kヘッド)9A、記録ヘッド(Cヘッド)9B、記録ヘッド(Mヘッド)9C、記録ヘッド(Yヘッド)9Dからなっている。記録ヘッド9A〜9D各々の前面、即ち、記録用紙1の記録面と所定間隔(例えば0.8mm)を於て対抗する面には複数の(例えば、64個或は128個)のインク吐出口をキャリッジ6の走査方向と交差させる方向に縦一列に配置している。そして、記録ヘッド9A〜9Dのロジック回路は同じ構成をもっている。
【0028】
また、このプリンタの外装ケース(不図示)に取付けられる操作パネル64には、オンライン/オフライン切換えキー60A、ラインフィードキー60B、記録モード切り替えキー60C、リセットキー60D等のキー設定部の他、アラームランプ61Aや電源ランプ61Bの警告ランプなどのLEDランプや各種メッセージを表示するLCD65が設けられている。
【0029】
なお、80はプラテン、92は記録媒体1に所望の画像を記録するためのインクを貯溜するインクタンクである。インクタンク92は、記録ヘッド9A〜9Dに対応して4色(シアン(C)、マゼンタ(M)、イエロ(Y)、ブラック(Bk))のインクを貯溜する4つのインクコンパートメント92A〜92Dから構成されている。
【0030】
なお、プリンタを制御するCPUやこれに併設されたROM、RAM等を含む制御部は、ホストコンピュータ(以下、ホストという)200と接続し、そこからの送られる指令信号やデータ信号(記録情報)に基づいて、各種モータ等の駆動するとともに、記録ヘッド9A〜9Dに含まれる電気熱変換体(ヒータ)に駆動電源(ヒート電源)を印加し通電することによりプリントを実行することもできる。
【0031】
図3は、図1に示す制御部の概略構成を示すブロック図である。
【0032】
マイクロプロセッサ形態のCPU21は、インタフェース22を介してホスト200に、また、別のインタフェース83を介して画像処理部104と画像読取り部109とに接続されている。そして、制御プログラムを格納したROM24や更新可能な制御プログラムや処理プログラムや各種定数データなどを格納したEEPROM23、及び、ホスト100からインタフェース22を介して受信した指令信号(コマンド)や記録信号、或は、画像処理部104からインタフェース83を介して転送された濃度画像データを格納するRAM25にアクセスし、これらのメモリに格納された情報に基づいて記録動作を制御する。
【0033】
さらに、CPU21は、出力ポート26及びキャリッジモータ制御回路42を介してキャリッジモータ7を動作させることによりキャリッジ6を移動させたり、出力ポート26及びシート送りモータ制御回路44を介してシート送りモータ4を動作させることにより搬送ローラ2〜3などの搬送機構を動作させる。さらに、CPU21は、RAM25に格納されている記録情報に基づきヘッド駆動回路29を介して記録ヘッド9A〜9Dを駆動することにより、記録媒体1上に所望の画像を記録することができる。
【0034】
また、電源回路28からは、CPU21や記録ヘッド制御回路29を動作させるためのロジック駆動電圧Vcc(例えば5V)、各種モータ駆動電圧Vm(例えば30V)、記録ヘッド9を駆動させるためのヒート電圧Vh(例えば25V)、及び、記録ヘッド9保護用バックアップ電圧VDDH等が出力される。そして、ヒート電圧Vhは記録ヘッド9に、バックアップ電圧VDDHは、記録ヘッド制御回路29および記録ヘッド9にそれぞれ印加される。
【0035】
さらに、操作キー60A〜60Dから入力される指示は入力ポート32を介してCPU21に伝えられ、CPU21からの命令が出力ポート36を介してLED発光制御回路62に伝えられるとLED61A、61Bが点灯したり、表示制御回路66に伝えられるとLCD65にメッセージが表示される。
【0036】
さらにまた、キャリッジ6には記録媒体幅検知センサ81が搭載されており、記録媒体幅1の幅検知のための信号がA/D変換回路82を介してCPU21に送られる。
【0037】
次に以上のような構成の画像処理装置を用いて、例えば、織布などの記録媒体に、図12で示したような基本パターン“A”を連続的に水平方向及び垂直方向に繰り返してプリントする場合の画像処理について説明する。
【0038】
図4は水平方向に基本パターンを繰り返しプリントする場合の誤差拡散法の適用の様子を示す図である。
【0039】
画像の左上端から順々に右方向に所定の閾値を用いて各画素毎を2値化し、さらに、例えば、図4に示すような誤差マトリクス700を適用し誤差拡散を行いながら2値化処理を進めていく場合に、その誤差マトリクスの適用範囲がその画像の右端からはみ出すようになる。
【0040】
この実施形態では、例えば、注目画素が画像の右端に達し、誤差マトリクス700の内、3画素分が画像の外側にはみ出した場合、図4の701に示すように、2値化が未処理の領域(図4の701の斜線部)にそのはみ出した誤差を取り入れて誤差拡散を実行する。
【0041】
すなわち、右端部のはみ出し誤差を、ここでは、基本パターンの繰り返しに関し、水平方向の連続性を保証するために、左端部に取り入れていく。図4の701に示す例では、注目画素が属するラインは、既に2値化処理が終了しているので、その下のラインが誤差を取り込む。
【0042】
更に本実施の形態では、図15に示したように、1ライン毎に、誤差拡散法による処理方向を切り換える。
【0043】
これにより、誤差拡散法特有のテクスチャノイズ(縞パターン)の発生を減少させ、結果的に、基本パターンを繰り返した場合におて、その境界部における境界ノイズをも減少させることができる。
【0044】
このように誤差拡散法による処理方向を切り換えた場合の拡散誤差の処理について図16を用いて説明する。
【0045】
図16の(a)〜(d)は本実施の形態で、実施される処理を示している。
【0046】
図16の(a)は左側から右側に処理を行なう場合、右端部で発生するはみだし誤差801を左端部の未処理領域に拡散する処理を示している。
【0047】
図16の(b)は右側から左側に処理を行なう場合、左端部で発生するはみだし誤差802を右端部の未処理領域に拡散する処理を示している。
【0048】
図16の(c)は左側から右側に処理を行なう場合、左端部で発生するはみだし誤差803を右端部の未処理領域に拡散する処理を示している。
【0049】
図16の(d)は右側から左側に処理を行なう場合、右端部で発生するはみだし誤差804を左端部の未処理領域に拡散する処理を示している。
【0050】
なお、処理方向に応じて、誤差拡散係数を換えることもでき、これにより、一層テクスチャノイズの発生を抑えることができる。
【0051】
さて、このような一連の処理を画像の最終ラインまで繰り返して行くと、図4の702に示すように、今度は、画像の下端において誤差のはみ出しが発生する。理想的には、この誤差を画像の左上端部に取り込むことが望ましいが、その部分は、既に2値化処理が終わっていて、その取り込みが不可能である。従って、このままの処理だけでは、上記のような取り込みを行いつつ、基本パターンを繰り返し記録していくと、図4の703に示すように、垂直方向の境界ノイズは削減できるが、水平方向の境界ノイズは残ったままとなる。
【0052】
そこで、この実施形態では、上述の取り込み処理に加え、次のような処理を実行する。
【0053】
図5は垂直方向に基本パターンを繰り返しプリントする場合の誤差拡散法の適用の様子を示す図である。
【0054】
まず、基本パターン800の上部に、基本パターンの一部からなる、ある大きさの補助パターン801を加える。そして、この補助画像を加えた結合パターン802全体に対して、上述した誤差の取り込み処理を含む誤差拡散法を適用して2値化処理を行う。そして、この処理終了後、補助パターンの最下端1ラインである「領域1」と、基本画像の最下端1ラインである「領域2」とを比較する。
【0055】
補助パターン801が基本パターン800の一部からなるのであるから、これら領域1、領域2は、元来、基本パターン800中の同じ位置を表わしている。従って、仮に、双方の領域の2値データが完全に一致していれば、上述した誤差の取り込み処理を含む誤差拡散法だけを適用して、基本パターン800を繰り返して記録しても、境界ノイズは全く発生しないことになるが、実際は、図5の803に示すように、それぞれの領域中のデータは完全には一致していない。これは、2値化の過程でドットの値に変化が起こるからである。従って、これら異なるドット配列を視覚的に良好となるように調整することが必要である。
【0056】
そのため、この実施形態では領域1と領域2とを比較して、2値データが一致しているものに関しては、その一致したデータをそのまま利用する。しかし、不一致のものに関しては、周辺画素の値を考慮するように以下の処理を実行して、どちらかの値に合わせるよう決定する。
【0057】
図6はその決定のために使用する平均値算出フィルタの構成を示す図であり、図7はその比較処理の手順を示すフローチャートである。
【0058】
図6において、斜線で示した画素が注目画素であり、他の画素に記された値は2値化処理が終了している周辺領域での2値化誤差の平均値を算出するための重み係数である。ここでは、不一致の画素の位置をその注目画素の位置とする。
【0059】
ステップS101では、既に2値化処理が終わっている周辺の各画素の(入力多値データ−2値データ)を求める。
【0060】
ステップS102では、ステップS101で求められた各画素の誤差データに図6に示された係数をかけ合わせ、更にその和を求めることで、誤差データの平均値を算出する。なお1/69という値は全ての重み係数に掛け合わされる。
【0061】
ステップS103では、ステップS102で算出された誤差データの加重平均値を注目画素の入力多値データに加算する。
【0062】
ステップS104では、ステップS103の加算結果を閾値である128と比較し、加算結果が128以上であれば、注目画素の値をON(“1”)とし、これに対して、加算結果が128未満であれば、注目画素の値をOFF(“0”)にする。
【0063】
このようにして、図5に示した領域1と領域2に関し、2つの領域の対応する画素の値が不一致の場合のみ、周辺画素2値化により発生した誤差の平均値を考慮に入れた補正を行なう。これにより、図4の703に見られる水平方向の境界ノイズが削減され、画質の劣化を抑えられるとともに、入力画像の濃度を保障することができ、入力データに忠実な2値化結果を得ることができる。
【0064】
最後に、以上説明した一連の画像処理をまとめると、図8に示すフローチャートのようになる。
【0065】
まず、ステップS10において、図5に示したように補助パターンと基本パターンとを結合した結合パターン802を入力する。次に、ステップS20では、1画素分多値のデータを入力する。ステップS25では処理方向を変換する設定を行なう。1ライン目は左から右に処理を行ない、2ライン目では、右から左に処理を行なう。つまり、ライン毎に、右方向と左方向と処理方向を入れ替えて処理する。ステップS30では所定の閾値とその入力多値データとを比較し、各ラインのそれぞれの画像データの2値化を行う。
【0066】
ステップS40では、その2値化によって生じた誤差に対して、誤差拡散マトリクス700を適用して、そのマトリクスに従って誤差を2値化が未処理の領域に拡散する。
【0067】
次に、ステップS50では、図4に示されているように、誤差拡散される場所が結合パターンの画像の外にはみ出るかどうかを調べる。ここで、そのような“はみ出し”がないなら、処理はステップS20に戻り、次の画素を処理する。これに対して、そのような“はみ出し”があれば、処理はステップS60に進み、そのはみ出した誤差を2値化が未処理の領域である次ライン以降の、“はみ出し”が発生した端とは反対側の端部に拡散する。
【0068】
なお、ステップS60の処理による誤差拡散は、2値化処理が進行し、誤差拡散の場所が結合パターンの最終ラインから下側にはみ出した場合には実行しない。
【0069】
ステップS70では、ステップS10〜S60の2値化処理が最終ラインの最終画素まで達したかどうかを調べ、その最終画素の処理が終了したと判断されたなら、処理はステップS80に、未終了であると判断されたなら、処理はステップS20に戻り、次の画素を処理する。
【0070】
さて、処理はステップS80において、図5に示すように、領域1と領域2の対応画素について1対の画素の比較する。そして、ステップS90において、その比較結果、対応する2つの画素の値が一致しているかどうかを判断し、一致していなければ、処理はステップS100に進み、一致していれば、その注目画素についての補正は実行せず、処理はステップS110に進む。
【0071】
ステップS100では図7のフローチャートを参照して説明したのと同じ処理を実行し、周辺画素の値を参照して、注目画素の値を補正する。その後、処理はステップS110に進む。ステップS110では、全ての対応画素についての比較と補正の処理が終了したかどうかを調べる。ここで、それらの処理が未終了であると判断されれば、処理はステップS80に戻り、次の1対の画素についての比較を実行する。
【0072】
これに対して、全ての対応画素についての処理が終了したと判断されたなら処理を終了する。
【0073】
以上説明したように、記録媒体に全体に記録される画像に対して2値化処理を行なわなくとも、繰り返し記録の基本となるパターンのみを2値化処理して、必要な回数だけそのパターンの記録を繰り返すことにより、画像全体を2値化処理した場合と同程度の境界ノイズのない良好な画質を得ることができる。
【0074】
しかも、誤差拡散法の処理方向を1ライン毎逆方向にすることで、境界ノイズの発生をほぼ完全に抑えた高画質な繰り返し画像を得ることができる。
【0075】
また予め基本画像の上部に基本画像の下部部分の補助画像を追加しておき処理を行ない、処理が終了した時点で補助画像と基本画像の下部領域のデータを用いて、基本画像の最下端の2値データを決定する際、注目画素周辺の2値化による誤差の平均値を注目画素の入力多値データに加算した値を用いるので、入力多値データの濃度を保存し、境界ノイズの発生を抑えると共に高画質な繰り返し画像を得ることができる。
【0076】
更に、これによって、例えば、織布のような記録媒体にインク吐出して特定のパターンを繰り返しプリントするような場合には、効率的な画像処理がなされ、さらに高速な処理速度を達成することができる。
【0077】
以上のような2値化処理は画像処理部104において、論理回路を用いて実行することも可能であるが、処理の融通性を考慮したとき、CPU21の性能が高いものであれば、ソフトウェアを用いて実行することも可能である。
【0078】
また、この実施形態における注目画素と拡散係数の相対位置、誤差の取り込みの際の具体的な位置関係、比較処理の方法は、あくまでも一例に過ぎず、種々のバリエーションがあることは言うまでもない。さらに、この実施形態では2値化処理を扱っているが、本発明は、例えば、多値の誤差拡散法にも適用できる。
【0079】
以下、変形例について説明する。
【0080】
[変形例]
上記の実施形態では、基準パターンを図12Bに示すように繰り返して記録する場合を例にして説明したが、図12Cに示すような繰り返し記録を行う場合には、水平方向に並んだ基本パターンがそのパターンのサイズの1/2つづ垂直方向にずれているために、上述したように循環誤差拡散法をそのまま適用すると、水平方向の境界ノイズを低減するための処理が複雑になるので、以下に示すような処理を実行する。
【0081】
即ち、循環誤差拡散法の処理方向を水平方向から垂直方向に変えて誤差の取り込み処理を行なう。
【0082】
図9は垂直方向に循環誤差拡散法を適用する様子を示す図である。
【0083】
この場合、基本パターンの左側に補助パターンを垂直方向にそのサイズの1/2だけづらせて付加する。そして、その付加によって形成された合成画像のパターンの左下端より垂直方向に誤差拡散マトリクスを適用して基本パターンの2値化を実行する。その処理が上端に達したとき、その上端よりはみ出した誤差を次の行の下端に取り込みながら、同様な処理を続け、その合成パターンの最終行まで2値化処理を行う。
【0084】
このようにして形成された2値画像の領域1、領域2に対して、上述したような比較処理を行ない、2つの領域の対応する画素で値が不一致の場所には、上述したように周辺画素の値を考慮した補正を行う。
【0085】
これにより、単純に水平方向と垂直方向に基本パターンを繰り返してプリントする場合と同様に、循環誤差拡散法を使って境界ノイズを削減し、画質の劣化を抑えることができる。
【0086】
なお、以上の実施形態において、特にインクジェット記録方式の中でも、インク吐出を行わせるために利用されるエネルギーとして熱エネルギーを発生する手段(例えば電気熱変換体やレーザ光等)を備え、前記熱エネルギーによりインクの状態変化を生起させる方式を用いることにより記録の高密度化、高精細化が達成できる。
【0087】
その代表的な構成や原理については、例えば、米国特許第4723129号明細書、同第4740796号明細書に開示されている基本的な原理を用いて行うものが好ましい。この方式はいわゆるオンデマンド型、コンティニュアス型のいずれにも適用可能であるが、特に、オンデマンド型の場合には、液体(インク)が保持されているシートや液路に対応して配置されている電気熱変換体に、記録情報に対応していて膜沸騰を越える急速な温度上昇を与える少なくとも1つの駆動信号を印加することによって、電気熱変換体に熱エネルギーを発生せしめ、記録ヘッドの熱作用面に膜沸騰を生じさせて、結果的にこの駆動信号に1対1で対応した液体(インク)内の気泡を形成できるので有効である。この気泡の成長、収縮により吐出用開口を介して液体(インク)を吐出させて、少なくとも1つの滴を形成する。この駆動信号をパルス形状をすると、即時適切に気泡の成長収縮が行われるので、特に応答性に優れた液体(インク)の吐出が達成でき、より好ましい。
【0088】
このパルス形状の駆動信号としては、米国特許第4463359号明細書、同第4345262号明細書に記載されているようなものが適している。なお、上記熱作用面の温度上昇率に関する発明の米国特許第4313124号明細書に記載されている条件を採用すると、さらに優れた記録を行うことができる。
【0089】
記録ヘッドの構成としては、上述の各明細書に開示されているような吐出口、液路、電気熱変換体の組み合わせ構成(直線状液流路または直角液流路)の他に熱作用面が屈曲する領域に配置されている構成を開示する米国特許第4558383号明細書、米国特許第4459600号明細書を用いた構成も本発明に含まれるものである。加えて、複数の電気熱変換体に対して、共通するスロットを電気熱変換体の吐出部とする構成を開示する特開昭59−123670号公報や熱エネルギーの圧力波を吸収する開口を吐出部に対応させる構成を開示する特開昭59−138461号公報に基づいた構成としても良い。
【0090】
さらに、記録装置が記録できる最大記録媒体の幅に対応した長さを有するフルラインタイプの記録ヘッドとしては、上述した明細書に開示されているような複数記録ヘッドの組み合わせによってその長さを満たす構成や、一体的に形成された1個の記録ヘッドとしての構成のいずれでもよい。
【0091】
加えて、上記の実施形態で説明した記録ヘッド自体に一体的にインクタンクが設けられたカートリッジタイプの記録ヘッドのみならず、装置本体に装着されることで、装置本体との電気的な接続や装置本体からのインクの供給が可能になる交換自在のチップタイプの記録ヘッドを用いてもよい。
【0092】
また、以上説明した記録装置の構成に、記録ヘッドに対する回復手段、予備的な手段等を付加することは記録動作を一層安定にできるので好ましいものである。これらを具体的に挙げれば、記録ヘッドに対してのキャッピング手段、クリーニング手段、加圧あるいは吸引手段、電気熱変換体あるいはこれとは別の加熱素子あるいはこれらの組み合わせによる予備加熱手段などがある。また、記録とは別の吐出を行う予備吐出モードを備えることも安定した記録を行うために有効である。
【0093】
さらに、記録装置の記録モードとしては黒色等の主流色のみの記録モードだけではなく、記録ヘッドを一体的に構成するか複数個の組み合わせによってでも良いが、異なる色の複色カラー、または混色によるフルカラーの少なくとも1つを備えた装置することもできる。
【0094】
以上説明した実施の形態においては、インクが液体であることを前提として説明しているが、室温やそれ以下で固化するインクであっても、室温で軟化もしくは液化するものを用いても良く、あるいはインクジェット方式ではインク自体を30℃以上70℃以下の範囲内で温度調整を行ってインクの粘性を安定吐出範囲にあるように温度制御するものが一般的であるから、使用記録信号付与時にインクが液状をなすものであればよい。
【0095】
加えて、積極的にエネルギーによる昇温をインクの固形状態から液体状態への状態変化への状態エネルギーとして使用せしめることで積極的に防止するため、またはインクの蒸発を防止するため、放置状態で固化し加熱によって液化するインクを用いても良い。いずれにしても熱エネルギーの記録信号に応じた付与によってインクが液化し、液状インクが吐出されるものや、記録媒体に到達する時点では既に固化し始めるもの等のような、熱エネルギーの付与によって初めて液化する性質のインクを使用する場合も本発明は適用可能である。このような場合インクは、特開昭54−56847号公報あるいは特開昭60−71260号公報に記載されるような、多孔質シート凹部または貫通孔に液状または固形物として保持された状態で、電気熱変換体に対して対向するような形態としてもよい。本発明においては、上述した各インクに対して最も有効なものは、上述した膜沸騰方式を実行するものである。
【0096】
さらに加えて、本発明に係る記録装置の形態としては、コンピュータ等の情報処理機器の画像出力端末として一体または別体に設けられるものの他、リーダ等と組み合わせた複写装置、更には送受信機能を有するファクシミリ装置の形態を取るものであっても良い。
【0097】
また本発明は、例えば、ホストコンピュータ、インターフェイス機器,リーダ,プリンタ等の複数のデバイスによって構成されるシステムにも適用でき、更に、例えば、複写機、ファクシミリ装置等の単体の装置に適用できる。
【0098】
また、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することにも適用できる。
【0099】
この場合、記憶媒体から読み出されたプログラムコード自体が、上述した実施形態の機能を実現することになる、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
【0100】
プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROM等を用いることができる。
【0101】
また、コンピュータが読み出したプログラムコードを実行することにより、上述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって、上述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0102】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの・指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって、上述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0103】
【発明の効果】
以上説明したごとく本発明によれば、記録媒体に全体に記録される画像に対して2値化処理を行なわなくとも、繰り返し記録の基本となるパターンのみを2値化処理して、必要な回数だけそのパターンの記録を繰り返すことにより、画像全体を2値化処理した場合と同程度の境界ノイズのない良好な画質を得ることができる。
【0104】
しかも、誤差拡散法の処理方向を1ライン毎逆方向にすることで、境界ノイズの発生をほぼ完全に抑えた高画質な繰り返し画像を得ることができる。
【0105】
また予め基本画像の上部に基本画像の下部部分の補助画像を追加しておき処理を行ない、処理が終了した時点で補助画像と基本画像の下部領域のデータを用いて、基本画像の最下端の2値データを決定する際、注目画素周辺の2値化による誤差の平均値を注目画素の入力多値データに加算した値を用いるので、入力多値データの濃度を保存し、境界ノイズの発生を抑えると共に高画質な繰り返し画像を得ることができる。
【図面の簡単な説明】
【図1】本発明の代表的な実施形態である画像処理装置の構成を示すブロック図である。
【図2】図1に示すプリンタに対応するインクジェット方式に従って記録を行なう記録ヘッドを備えたプリンタの構成を示す外観斜視図である。
【図3】図1に示す制御部の構成を示すブロック図である。
【図4】その実施形態に従う循環誤差拡散法を適用した水平方向の誤差の取り込み処理を示す図である。
【図5】その実施形態に従う循環誤差拡散法を適用した垂直方向の比較処理を概念的に示す図である。
【図6】その比較処理に用いる平均値算出フィルタを示す図である。
【図7】その実施形態に従う比較処理を示すフローチャートである。
【図8】その実施形態に従う2値化処理全体の概要を示すフローチャートである。
【図9】その実施形態の変形例に従う循環誤差拡散法を適用する様子を示す図である。
【図10】誤差拡散法における注目画素と拡散係数との関係を示す図である。
【図11】ディザ法による2値化処理を示す図である。
【図12】基本画像と繰り返し画像との関係を示す図である。
【図13】2値データの繰り返しによる境界ノイズを示す図である。
【図14】従来の境界ノイズ削減の方法を説明するための図である。
【図15】双方向の誤差拡散法を説明するための図である。
【図16】双方向の誤差拡散を行なった際の水平方向の誤差の取り込み処理を示す図である。
【符号の説明】
100 画像原稿
101 レンズ
102 CCDセンサ
103 アナログ信号処理部
104 画像処理部
105 プリンタ部
109 画像読取り部
110 制御部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus and an image processing method, and in particular, an image processing apparatus that expresses pseudo gradation when a multi-value image input by, for example, a scanner or a computer is repeatedly developed and output to a low gradation device. And an image processing method.
[0002]
[Prior art]
Conventionally, an error diffusion method and a dither method are known as pseudo gradation expression methods. Among these, in the error diffusion method, as shown in FIG. 10, a diffusion coefficient is assigned to several subsequent pixels with respect to the target pixel, and the quantization error generated in the target pixel is changed according to the diffusion coefficient. Sort to pixels. By this processing, the density value of the entire image is saved, and a favorable pseudo gradation expression is possible.
[0003]
In the dither method, as shown in FIG. 11, a dither matrix (in FIG. 11, the matrix size is 4 × 4) prepared in advance is prepared, and this matrix and the input multi-value image data are stored. A one-to-one pixel comparison with each pixel is performed. At this time, if the value of the input multivalued image data is larger than the threshold value, the pixel is turned on, and if the value is smaller, the binarized output is obtained. In this dither method, because of the artificial pattern generated by the regular arrangement of dots, there is a graininess in the pseudo-gradation image, and in general, the image quality tends to deteriorate compared to an image using the error diffusion method. is there.
[0004]
Now, considering a repeating pattern as seen on a pattern such as a tie or a handkerchief, as shown in FIG. 12, the basic pattern (FIG. 12 (a)) is simply horizontal. And a pattern repeatedly generated in the vertical direction (FIG. 12B) and a pattern repeated in the horizontal direction and the vertical direction while shifting the basic pattern by 1/2 (FIG. 12C). However, if the number of repetitions is large, it is inefficient to perform pseudo gradation processing on the entire repeated image. If this processing is performed by software, it is impractical from the viewpoint of processing speed.
[0005]
Further, if only the basic pattern is binarized and the binary data is simply repeated to form an image, noise that is easily noticeable at the boundary between the basic pattern and the basic pattern as shown in FIG. 13 (this is called boundary noise). Will occur. As this cause, the discontinuity of the binarization process in the boundary part can be considered.
[0006]
Therefore, in order to reduce the boundary noise, an outer frame addition method in which an outer frame is added to the basic pattern and the pattern is drawn as shown in FIG. 14 (a), or a basic as shown in FIG. 14 (b). A boundary smoothing method has been proposed in which smoothing processing is performed on the boundary of a pattern. In the outer frame addition method, the same multivalued image having a certain size is added so as to surround the basic pattern, and binarization processing is performed on the entire image to obtain binary data of the basic pattern. However, even if binary data obtained in this way is repeatedly formed, boundary noise still occurs due to the discontinuity of the boundary portion.
[0007]
Further, in order to reduce the boundary noise of the obtained binary data as in the boundary smoothing method, for example, an edge region such as a thin line may be applied to the boundary portion even if the boundary portion of the binary data is subjected to the smoothing process. In the case of an image including the image, there is a problem that the image at the boundary becomes unclear due to this processing.
[0008]
[Problems to be solved by the invention]
In view of this, Japanese Patent Laid-Open No. 10-233923 discloses a method of involving an error at an end portion of a basic image generated by an error diffusion method in data of an unprocessed area on the opposite side.
[0009]
However, if the binary basic image formed by this process is repeatedly recorded, the image quality at the boundary portion may be deteriorated due to the influence of the unique stripe pattern of the error diffusion method process.
[0010]
In addition, if the process involving the error is sequentially advanced in the vertical direction, the diffusion error occurring at the lower end of the basic image cannot be diffused to the upper end, so that the continuity of repetition in the vertical direction is lost.
[0011]
Therefore, in the above-mentioned publication, the auxiliary image of the lower part of the basic image is added to the upper part of the basic image in advance, the processing is performed, and when the processing is completed, the auxiliary image and the lower area data of the basic image are used, The binary data at the bottom end of the basic image is determined.
[0012]
Specifically, in the above-mentioned publication, when determining binarized data, only the average value of data around the pixel of interest or the average value of errors generated by binarization around the pixel of interest is used.
[0013]
In this case, since the value of the input multi-value data around the pixel of interest is not taken into account, there is a risk of image quality degradation.
[0014]
The present invention aims to solve the above-described problems of the prior art, reduces boundary noise associated with repetition of an image represented by pseudo-tones, and reverses the processing direction of the error diffusion method for each line, It is another object of the present invention to provide an image processing apparatus and an image processing method capable of obtaining high-quality repetitive images with suppressed generation of boundary noise.
[0015]
Further, the present invention performs processing by adding an auxiliary image of the lower part of the basic image in advance to the upper part of the basic image, and uses the auxiliary image and the data of the lower area of the basic image when the processing is completed. When the binary data at the bottom end of the pixel of interest is determined, a value obtained by adding the average value of the error due to the binarization around the pixel of interest to the input multivalued data of the pixel of interest is used. An object of the present invention is to provide an image processing apparatus and an image processing method capable of suppressing boundary noise generation and obtaining high-quality repetitive images.
[0016]
[Means for Solving the Problems]
In order to achieve the above-described object, the image processing apparatus of the present invention provides: In an image processing apparatus for converting a basic image expressed by multi-value data into a binary image expressing pseudo gradation, a combined image is formed by adjoining an auxiliary image consisting of a part of the basic image to the basic image Combining means, binarizing means for sequentially comparing the value of each pixel representing the combined image with a predetermined threshold value, and binarizing according to the comparison result, and an error caused by the binarization By applying an error diffusion matrix of a predetermined size and distributing to the peripheral pixels of the pixel of interest, among the errors distributed by the distributing means, errors that protrude outside the basic image are determined by the binarizing means. A capturing unit that captures a binarization process in an unprocessed area; an image data value of a first area that includes a line in contact with the basic image in the auxiliary image after the binarization process; and the first Corresponding to Correction means for comparing the image data values of the second area in the basic image and correcting the image data values of the first and second areas based on the comparison result, Means for calculating a difference value between an original multi-value data value in the peripheral pixel and a binary data value after the error is taken in by the capturing means in the peripheral pixel; and the difference value calculation A weighted average means for weighted averaging the difference values of the surrounding pixels obtained by the means, an adding means for adding the weighted average value by the weighted average means to the multi-value data of the target pixel, and the adding means Comparing the obtained weighted average value with a predetermined threshold value, and comprising correction value generation means for generating a correction value according to the comparison result It is characterized by that.
[0017]
Further, the image processing method of the present invention includes: In an image processing method for converting a basic image expressed by multi-value data into a binary image expressing a pseudo gradation, a combined image is formed by adjoining an auxiliary image consisting of a part of the basic image to the basic image A combining step, a value of each pixel representing the combined image is sequentially compared with a predetermined threshold value, and a binarization step of binarizing according to the comparison result, and an error caused by the binarization By applying an error diffusion matrix of a predetermined size and distributing to peripheral pixels of the pixel of interest, among errors distributed by the distributing step, errors that protrude outside the basic image are determined by the binarizing step. A capturing process for capturing the binarization process into an unprocessed area; an image data value of a first area including a line in contact with the basic image in the auxiliary image after the binarization process; and the first Corresponding to A correction step of comparing the image data values of the second area in the basic image and correcting the image data values of the first and second areas based on the comparison result, The step includes a difference value calculation step for obtaining a difference value between the original multi-value data value in the peripheral pixel and a binary data value after the capturing step in the peripheral pixel takes in an error, and the difference value calculation A weighted average step of weighted averaging the difference values of the surrounding pixels obtained in the step, an addition step of adding the weighted average value in the weighted average step to the multi-value data of the pixel of interest, and the addition step Comparing the obtained weighted average value with a predetermined threshold value, and a correction value generating step of generating a correction value according to the comparison result It is characterized by that.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0021]
FIG. 1 is a block diagram showing a configuration of an image processing apparatus which is a representative embodiment of the present invention. As shown in FIG. 1, the image processing apparatus includes an image reading unit 109 that reads an image original 100, an image processing unit 104 that processes the read image, and a recording medium (paper) based on the image-processed data. , A board, a cloth, etc.), a printer unit 105 that prints an image, an image reading unit 109, an image processing unit 104, and a control unit 110 that controls the printer unit 105.
[0022]
The image reading unit 109 includes a lens 101, a CCD sensor 102, an analog signal processing unit 103, and the like. Based on the original image formed on the CCD sensor 102 via the lens 101, analog electrical signals of R (Red), G (Green), and B (Blue) are generated by the CCD sensor 102. Then, the electrical signal is input to the analog signal processing unit 103, where sample and hold, dark level correction, and the like are performed for each of the R, G, and B color components, and then analog / digital conversion (A / D conversion), and digital image data composed of RGB components is generated.
[0023]
The digitized full color signal is input to the image processing unit 104. In the image processing unit 104, necessary correction processing due to reading processing in the image reading unit 109 such as shading correction, color correction, and γ correction, preprocessing such as luminance density conversion processing, UCR processing, smoothing processing, edge enhancement, After processing and the like, density image data composed of YMCK components obtained as a result is output to the printer unit 105.
[0024]
The printer unit 105 is an ink jet printer that records an image on a recording medium by ejecting ink onto the recording medium using a recording head according to an ink jet system.
[0025]
FIG. 2 is an external perspective view showing the configuration of the printer unit 105.
[0026]
In FIG. 2, 1 is a recording medium such as recording paper, plastic sheet, or cloth, and 2-3 are conveying rollers that are arranged above and below the recording area of the recording paper 1 and convey the recording paper 1 in the direction of arrow A. 4 is a sheet feeding motor for driving the conveying rollers 2 to 3, 5 is a guide shaft which is located between the conveying rollers 2 and 3 and is provided in parallel with the rotation axis of the conveying rollers 2 to 3, and 6 is a guide shaft 5. A carriage that reciprocates along (B), 7 is a carriage motor that moves the carriage, and 8 is a belt that transmits the driving force of the carriage motor 7 to the carriage 6.
[0027]
The carriage 6 is mounted with recording heads 9A to 9D (hereinafter referred to as recording head 9 when these four recording heads are collectively referred to) that perform recording by discharging ink droplets according to an ink jet method. ing. The recording head 9 is for recording a color image and is arranged in the moving direction of the carriage 6 and is provided corresponding to each color ink of cyan (C), magenta (M), yellow (Y), and black (Bk), respectively. The recording head (K head) 9A, recording head (C head) 9B, recording head (M head) 9C, and recording head (Y head) 9D. A plurality of (for example, 64 or 128) ink discharge ports are provided on the front surface of each of the recording heads 9A to 9D, that is, the surface facing the recording surface of the recording paper 1 with a predetermined interval (for example, 0.8 mm). Are arranged in a vertical line in a direction intersecting the scanning direction of the carriage 6. The logic circuits of the recording heads 9A to 9D have the same configuration.
[0028]
An operation panel 64 attached to the exterior case (not shown) of the printer includes an alarm setting in addition to a key setting unit such as an online / offline switching key 60A, a line feed key 60B, a recording mode switching key 60C, and a reset key 60D. An LED lamp such as a warning lamp for the lamp 61A and the power lamp 61B and an LCD 65 for displaying various messages are provided.
[0029]
Reference numeral 80 denotes a platen, and 92 denotes an ink tank for storing ink for recording a desired image on the recording medium 1. The ink tank 92 includes four ink compartments 92A to 92D that store inks of four colors (cyan (C), magenta (M), yellow (Y), and black (Bk)) corresponding to the recording heads 9A to 9D. It is configured.
[0030]
A control unit including a CPU for controlling the printer and a ROM, a RAM, and the like attached to the CPU is connected to a host computer (hereinafter referred to as a host) 200, and command signals and data signals (recording information) sent from the host computer Based on the above, it is possible to execute printing by driving various motors or the like and applying a driving power source (heat power source) to the electrothermal transducers (heaters) included in the recording heads 9A to 9D and energizing them.
[0031]
FIG. 3 is a block diagram showing a schematic configuration of the control unit shown in FIG.
[0032]
The CPU 21 in the form of a microprocessor is connected to the host 200 via the interface 22 and to the image processing unit 104 and the image reading unit 109 via another interface 83. Then, a ROM 24 storing a control program, an EEPROM 23 storing an updatable control program, a processing program, various constant data, and the like, a command signal (command) or a recording signal received from the host 100 via the interface 22, or The RAM 25 that stores the density image data transferred from the image processing unit 104 via the interface 83 is accessed, and the recording operation is controlled based on the information stored in these memories.
[0033]
Further, the CPU 21 moves the carriage 6 by operating the carriage motor 7 via the output port 26 and the carriage motor control circuit 42, and moves the sheet feed motor 4 via the output port 26 and the sheet feed motor control circuit 44. By operating, a transport mechanism such as the transport rollers 2 to 3 is operated. Further, the CPU 21 can record a desired image on the recording medium 1 by driving the recording heads 9 </ b> A to 9 </ b> D via the head driving circuit 29 based on the recording information stored in the RAM 25.
[0034]
Further, from the power supply circuit 28, a logic driving voltage Vcc (for example, 5V) for operating the CPU 21 and the recording head control circuit 29, various motor driving voltages Vm (for example, 30V), and a heat voltage Vh for driving the recording head 9 are used. (For example, 25 V) and the backup voltage VDDH for protecting the recording head 9 are output. The heat voltage Vh is applied to the recording head 9, and the backup voltage VDDH is applied to the recording head control circuit 29 and the recording head 9, respectively.
[0035]
Furthermore, instructions input from the operation keys 60A to 60D are transmitted to the CPU 21 via the input port 32, and when an instruction from the CPU 21 is transmitted to the LED light emission control circuit 62 via the output port 36, the LEDs 61A and 61B are turned on. When the message is transmitted to the display control circuit 66, a message is displayed on the LCD 65.
[0036]
Further, a recording medium width detection sensor 81 is mounted on the carriage 6, and a signal for detecting the width of the recording medium width 1 is sent to the CPU 21 via the A / D conversion circuit 82.
[0037]
Next, the basic pattern “A” as shown in FIG. 12 is continuously printed in a horizontal direction and a vertical direction on a recording medium such as a woven fabric by using the image processing apparatus configured as described above. The image processing for this will be described.
[0038]
FIG. 4 is a diagram showing how the error diffusion method is applied when the basic pattern is repeatedly printed in the horizontal direction.
[0039]
Each pixel is binarized using a predetermined threshold in the right direction sequentially from the upper left end of the image, and further, for example, binarization processing is performed while performing error diffusion by applying an error matrix 700 as shown in FIG. , The range of application of the error matrix protrudes from the right end of the image.
[0040]
In this embodiment, for example, when the target pixel reaches the right end of the image and three pixels of the error matrix 700 protrude outside the image, binarization is not processed as indicated by 701 in FIG. Error diffusion is performed by incorporating the error that protrudes into the region (shaded area 701 in FIG. 4).
[0041]
That is, the protrusion error at the right end portion is taken into the left end portion here in order to guarantee horizontal continuity regarding the repetition of the basic pattern. In the example indicated by reference numeral 701 in FIG. 4, since the binarization process has already been completed for the line to which the target pixel belongs, the line below it takes in an error.
[0042]
Further, in this embodiment, as shown in FIG. 15, the processing direction by the error diffusion method is switched for each line.
[0043]
As a result, the generation of texture noise (stripe pattern) peculiar to the error diffusion method can be reduced. As a result, when the basic pattern is repeated, the boundary noise at the boundary portion can also be reduced.
[0044]
The diffusion error processing when the processing direction by the error diffusion method is switched in this way will be described with reference to FIG.
[0045]
(A) to (d) of FIG. 16 show processing performed in the present embodiment.
[0046]
FIG. 16A shows a process of diffusing an overflow error 801 generated at the right end into an unprocessed area at the left end when processing is performed from the left side to the right side.
[0047]
FIG. 16B shows a process of diffusing an overflow error 802 generated at the left end portion into an unprocessed area at the right end portion when processing from the right side to the left side.
[0048]
FIG. 16C shows a process of diffusing an overflow error 803 generated at the left end portion into the unprocessed area at the right end portion when processing is performed from the left side to the right side.
[0049]
FIG. 16D shows a process of diffusing an overflow error 804 generated at the right end to an unprocessed area at the left end when the process is performed from the right side to the left side.
[0050]
Note that the error diffusion coefficient can be changed in accordance with the processing direction, thereby further suppressing the occurrence of texture noise.
[0051]
Now, when such a series of processing is repeated up to the last line of the image, as shown at 702 in FIG. 4, an error protrudes at the lower end of the image. Ideally, it is desirable to capture this error in the upper left corner of the image, but the binarization process has already been completed for that portion, and the capture is impossible. Therefore, if the basic pattern is repeatedly recorded while performing the above-described capturing only with the processing as it is, the boundary noise in the vertical direction can be reduced as shown by reference numeral 703 in FIG. The noise remains.
[0052]
Therefore, in this embodiment, the following processing is executed in addition to the above-described capturing processing.
[0053]
FIG. 5 is a diagram showing how the error diffusion method is applied when a basic pattern is repeatedly printed in the vertical direction.
[0054]
First, an auxiliary pattern 801 having a certain size, which is a part of the basic pattern, is added to the upper part of the basic pattern 800. Then, binarization processing is performed on the entire combined pattern 802 to which the auxiliary image has been added by applying the error diffusion method including the error capturing processing described above. Then, after this processing is completed, “area 1”, which is the lowest line of the auxiliary pattern, is compared with “area 2”, which is the lowest line of the basic image.
[0055]
Since the auxiliary pattern 801 consists of a part of the basic pattern 800, these areas 1 and 2 originally represent the same position in the basic pattern 800. Therefore, if the binary data in both areas completely match, even if the basic pattern 800 is repeatedly recorded by applying only the error diffusion method including the error capturing process described above, the boundary noise However, in actuality, the data in the respective areas do not match completely as indicated by reference numeral 803 in FIG. This is because the dot value changes in the binarization process. Therefore, it is necessary to adjust these different dot arrangements so that they are visually good.
[0056]
Therefore, in this embodiment, the region 1 and the region 2 are compared, and when the binary data matches, the matched data is used as it is. However, for non-matching ones, the following processing is executed so as to consider the values of surrounding pixels, and it is determined to match either value.
[0057]
FIG. 6 is a diagram showing a configuration of an average value calculation filter used for the determination, and FIG. 7 is a flowchart showing a procedure of the comparison process.
[0058]
In FIG. 6, the pixel indicated by diagonal lines is the pixel of interest, and the values described in other pixels are weights for calculating the average value of the binarization error in the peripheral region where the binarization processing has been completed. It is a coefficient. Here, the position of the mismatched pixel is set as the position of the target pixel.
[0059]
In step S101, (input multi-valued data−binary data) of each peripheral pixel that has already been binarized is obtained.
[0060]
In step S102, the error data average value of the error data is calculated by multiplying the error data of each pixel obtained in step S101 by the coefficient shown in FIG. 6 and further obtaining the sum. The value 1/69 is multiplied by all the weighting factors.
[0061]
In step S103, the weighted average value of the error data calculated in step S102 is added to the input multi-value data of the target pixel.
[0062]
In step S104, the addition result in step S103 is compared with 128 which is a threshold value. If the addition result is 128 or more, the value of the target pixel is set to ON (“1”), whereas the addition result is less than 128. If so, the value of the target pixel is set to OFF (“0”).
[0063]
In this way, with respect to the area 1 and the area 2 shown in FIG. 5, only when the values of the corresponding pixels in the two areas do not match, the correction taking into account the average value of errors generated by the peripheral pixel binarization To do. Accordingly, horizontal boundary noise seen in 703 in FIG. 4 is reduced, image quality deterioration can be suppressed, the density of the input image can be guaranteed, and a binarized result faithful to the input data can be obtained. Can do.
[0064]
Finally, the series of image processing described above can be summarized as a flowchart shown in FIG.
[0065]
First, in step S10, a combined pattern 802 obtained by combining the auxiliary pattern and the basic pattern is input as shown in FIG. In step S20, multi-value data for one pixel is input. In step S25, a setting for converting the processing direction is performed. The first line is processed from left to right, and the second line is processed from right to left. That is, for each line, processing is performed by switching the right direction, the left direction, and the processing direction. In step S30, a predetermined threshold value and its input multi-value data are compared, and each image data of each line is binarized.
[0066]
In step S40, the error diffusion matrix 700 is applied to the error caused by the binarization, and the error is diffused into an unprocessed area according to the matrix.
[0067]
Next, in step S50, as shown in FIG. 4, it is checked whether or not the location where the error is diffused is outside the combined pattern image. Here, if there is no such “extrusion”, the process returns to step S20 to process the next pixel. On the other hand, if there is such a “protruding”, the process proceeds to step S60, and the error that protrudes is regarded as the end of the “protruding” after the next line that is an unprocessed area. Diffuses to the opposite end.
[0068]
Note that error diffusion by the process of step S60 is not executed when the binarization process proceeds and the location of error diffusion protrudes downward from the final line of the combined pattern.
[0069]
In step S70, it is checked whether or not the binarization processing in steps S10 to S60 has reached the final pixel of the final line. If it is determined that the processing of the final pixel is complete, the processing is not completed yet in step S80. If it is determined that there is, the process returns to step S20 to process the next pixel.
[0070]
In step S80, the process compares a pair of pixels with respect to the corresponding pixels in region 1 and region 2, as shown in FIG. In step S90, it is determined whether or not the values of the two corresponding pixels match as a result of the comparison. If they do not match, the process proceeds to step S100. This correction is not executed, and the process proceeds to step S110.
[0071]
In step S100, the same processing as described with reference to the flowchart of FIG. 7 is executed, and the value of the target pixel is corrected with reference to the values of the surrounding pixels. Thereafter, the process proceeds to step S110. In step S110, it is checked whether the comparison and correction processes for all corresponding pixels have been completed. Here, if it is determined that these processes have not been completed, the process returns to step S80, and the comparison for the next pair of pixels is executed.
[0072]
On the other hand, if it is determined that all the corresponding pixels have been processed, the process ends.
[0073]
As described above, even if the binarization process is not performed on the entire image recorded on the recording medium, the binarization process is performed only on the basic pattern of the repeated recording, and the pattern is repeated as many times as necessary. By repeating the recording, it is possible to obtain a good image quality without boundary noise as much as when the entire image is binarized.
[0074]
In addition, by setting the processing direction of the error diffusion method in the reverse direction for each line, it is possible to obtain a high-quality repetitive image in which the generation of boundary noise is almost completely suppressed.
[0075]
In addition, the auxiliary image of the lower part of the basic image is added to the upper part of the basic image in advance, and processing is performed.When the processing is completed, the auxiliary image and the data of the lower area of the basic image are used to When determining binary data, a value obtained by adding the average value of the error due to binarization around the pixel of interest to the input multivalue data of the pixel of interest is used, so the density of the input multivalue data is saved and boundary noise is generated In addition, it is possible to obtain repeated images with high image quality.
[0076]
In addition, for example, when a specific pattern is repeatedly printed by ejecting ink onto a recording medium such as a woven fabric, efficient image processing is performed, and a higher processing speed can be achieved. it can.
[0077]
The binarization process as described above can be executed by the image processing unit 104 using a logic circuit. However, considering the flexibility of the process, if the CPU 21 has high performance, the software can be used. It is also possible to execute using.
[0078]
In addition, the relative position between the target pixel and the diffusion coefficient, the specific positional relationship at the time of taking in the error, and the comparison processing method in this embodiment are merely examples, and it goes without saying that there are various variations. Furthermore, although this embodiment deals with binarization processing, the present invention can also be applied to, for example, a multi-value error diffusion method.
[0079]
Hereinafter, modified examples will be described.
[0080]
[Modification]
In the above-described embodiment, the case where the reference pattern is repeatedly recorded as shown in FIG. 12B has been described as an example. However, when the repeated recording as shown in FIG. 12C is performed, the basic patterns arranged in the horizontal direction are arranged. Since the pattern error is shifted by 1/2 of the size of the pattern in the vertical direction, if the cyclic error diffusion method is applied as it is as described above, the processing for reducing the boundary noise in the horizontal direction becomes complicated. The process as shown is executed.
[0081]
That is, the error capturing process is performed by changing the processing direction of the cyclic error diffusion method from the horizontal direction to the vertical direction.
[0082]
FIG. 9 is a diagram showing how the cyclic error diffusion method is applied in the vertical direction.
[0083]
In this case, an auxiliary pattern is added to the left side of the basic pattern in the vertical direction by a half of the size. Then, binarization of the basic pattern is executed by applying the error diffusion matrix in the vertical direction from the lower left end of the pattern of the composite image formed by the addition. When the processing reaches the upper end, the same processing is continued while taking the error protruding from the upper end into the lower end of the next row, and binarization processing is performed up to the final row of the combined pattern.
[0084]
The comparison process as described above is performed on the area 1 and the area 2 of the binary image formed in this way, and in a place where the values do not coincide with each other in the corresponding pixels in the two areas, as described above Correction is performed in consideration of the pixel value.
[0085]
As a result, similarly to the case where the basic pattern is simply repeatedly printed in the horizontal direction and the vertical direction, the boundary noise can be reduced by using the cyclic error diffusion method, and the deterioration of the image quality can be suppressed.
[0086]
In the above-described embodiment, particularly in the ink jet recording system, a means (for example, an electrothermal converter or a laser beam) that generates thermal energy as energy used for performing ink ejection is provided, and the thermal energy By using a system that causes a change in the state of the ink, it is possible to achieve higher recording density and higher definition.
[0087]
As its typical configuration and principle, for example, those performed using the basic principle disclosed in US Pat. Nos. 4,723,129 and 4,740,796 are preferable. This method can be applied to both the so-called on-demand type and continuous type. In particular, in the case of the on-demand type, it is arranged corresponding to the sheet or liquid path holding the liquid (ink). By applying at least one drive signal corresponding to the recording information and applying a rapid temperature rise exceeding the film boiling to the electrothermal transducer, the thermal energy is generated in the electrothermal transducer, and the recording head This is effective because film boiling occurs on the heat acting surface of the liquid, and as a result, bubbles in the liquid (ink) corresponding to the drive signal on a one-to-one basis can be formed. By the growth and contraction of the bubbles, liquid (ink) is ejected through the ejection opening to form at least one droplet. When the drive signal is pulse-shaped, the bubble growth and contraction is performed immediately and appropriately, and thus it is possible to achieve the discharge of liquid (ink) with particularly excellent responsiveness.
[0088]
As this pulse-shaped drive signal, those described in US Pat. Nos. 4,463,359 and 4,345,262 are suitable. Further excellent recording can be performed by employing the conditions described in US Pat. No. 4,313,124 of the invention relating to the temperature rise rate of the heat acting surface.
[0089]
As the configuration of the recording head, in addition to the combination configuration (straight liquid flow path or right-angle liquid flow path) of the discharge port, the liquid path, and the electrothermal transducer as disclosed in each of the above-mentioned specifications, the heat acting surface The configurations using US Pat. No. 4,558,383 and US Pat. No. 4,459,600, which disclose a configuration in which the first and second portions are arranged in the bent region, are also included in the present invention. In addition, Japanese Patent Application Laid-Open No. 59-123670, which discloses a configuration in which a common slot is used as a discharge portion of an electrothermal transducer, or an opening that absorbs a pressure wave of thermal energy is discharged to a plurality of electrothermal transducers. A configuration based on Japanese Patent Laid-Open No. 59-138461 disclosing a configuration corresponding to each part may be adopted.
[0090]
Furthermore, as a full-line type recording head having a length corresponding to the width of the maximum recording medium that can be recorded by the recording apparatus, the length is satisfied by a combination of a plurality of recording heads as disclosed in the above specification. Either a configuration or a configuration as a single recording head formed integrally may be used.
[0091]
In addition to the cartridge-type recording head in which the ink tank is integrally provided in the recording head itself described in the above embodiment, it can be electrically connected to the apparatus body by being attached to the apparatus body. A replaceable chip type recording head that can supply ink from the apparatus main body may be used.
[0092]
In addition, it is preferable to add recovery means for the recording head, preliminary means, etc. to the configuration of the recording apparatus described above, since the recording operation can be further stabilized. Specific examples thereof include a capping unit for the recording head, a cleaning unit, a pressure or suction unit, an electrothermal converter, a heating element different from this, or a preheating unit using a combination thereof. In addition, it is effective to provide a preliminary ejection mode for performing ejection different from recording in order to perform stable recording.
[0093]
Further, the recording mode of the recording apparatus is not limited to the recording mode of only the mainstream color such as black, but the recording head may be integrated or may be a combination of a plurality of colors. A device with at least one of the full colors can also be provided.
[0094]
In the embodiment described above, the description is made on the assumption that the ink is a liquid, but it may be an ink that is solidified at room temperature or lower, or an ink that is softened or liquefied at room temperature, Alternatively, in the ink jet system, the temperature of the ink itself is generally adjusted within a range of 30 ° C. or higher and 70 ° C. or lower to control the temperature so that the viscosity of the ink is within a stable discharge range. Any material may be used if it is liquid.
[0095]
In addition, in order to actively prevent the temperature rise by energy as a state energy from the ink solid state to the liquid state change, or to prevent ink evaporation, An ink that is solidified and liquefied by heating may be used. In any case, by applying heat energy according to the application of thermal energy according to the recording signal, the ink is liquefied and liquid ink is ejected, or when it reaches the recording medium, it already starts to solidify. The present invention can also be applied to the case of using ink having the property of being liquefied for the first time. In such a case, the ink is held as a liquid or solid in a porous sheet recess or through-hole as described in JP-A-54-56847 or JP-A-60-71260, It is good also as a form which opposes with respect to an electrothermal converter. In the present invention, the most effective one for each of the above-described inks is to execute the above-described film boiling method.
[0096]
In addition, as a form of the recording apparatus according to the present invention, a copying apparatus combined with a reader or the like as well as an image output terminal of an information processing device such as a computer or a separate apparatus, and a transmission / reception function are provided. It may take the form of a facsimile machine.
[0097]
The present invention can also be applied to a system constituted by a plurality of devices such as a host computer, an interface device, a reader, and a printer, and can be applied to a single device such as a copying machine and a facsimile machine.
[0098]
In addition, a storage medium in which a program code of software that realizes the functions of the above-described embodiments is supplied to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the program code in the storage medium. It can also be applied to reading out and executing.
[0099]
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
[0100]
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, or the like can be used.
[0101]
Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) or the like running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0102]
Furthermore, 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 program code is read based on the instruction of the program code. It goes without saying that the CPU or the like provided in the function expansion board or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
[0103]
【The invention's effect】
As described above, according to the present invention, the binarization process is performed only on the basic pattern of the repeated recording without performing the binarization process on the image recorded on the entire recording medium, and the necessary number of times is obtained. By repeating this pattern recording only, it is possible to obtain a good image quality free from boundary noise as much as when the entire image is binarized.
[0104]
In addition, by setting the processing direction of the error diffusion method in the reverse direction for each line, it is possible to obtain a high-quality repetitive image in which the generation of boundary noise is almost completely suppressed.
[0105]
In addition, the auxiliary image of the lower part of the basic image is added to the upper part of the basic image in advance, and processing is performed.When the processing is completed, the auxiliary image and the data of the lower area of the basic image are used to When determining binary data, a value obtained by adding the average value of the error due to binarization around the pixel of interest to the input multivalue data of the pixel of interest is used, so the density of the input multivalue data is saved and boundary noise is generated In addition, it is possible to obtain repeated images with high image quality.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to a representative embodiment of the present invention.
2 is an external perspective view showing a configuration of a printer including a recording head that performs recording in accordance with an ink jet method corresponding to the printer shown in FIG. 1;
FIG. 3 is a block diagram showing a configuration of a control unit shown in FIG. 1;
FIG. 4 is a diagram showing a horizontal error capturing process to which a cyclic error diffusion method according to the embodiment is applied.
FIG. 5 is a diagram conceptually showing a comparison process in the vertical direction to which a cyclic error diffusion method according to the embodiment is applied.
FIG. 6 is a diagram illustrating an average value calculation filter used for the comparison process.
FIG. 7 is a flowchart showing comparison processing according to the embodiment;
FIG. 8 is a flowchart showing an overview of the entire binarization process according to the embodiment;
FIG. 9 is a diagram showing a state in which a cyclic error diffusion method according to a modification of the embodiment is applied.
FIG. 10 is a diagram illustrating a relationship between a target pixel and a diffusion coefficient in the error diffusion method.
FIG. 11 is a diagram illustrating binarization processing by a dither method.
FIG. 12 is a diagram illustrating a relationship between a basic image and a repeated image.
FIG. 13 is a diagram illustrating boundary noise due to repetition of binary data.
FIG. 14 is a diagram for explaining a conventional boundary noise reduction method;
FIG. 15 is a diagram for explaining a bidirectional error diffusion method;
FIG. 16 is a diagram showing a horizontal error capturing process when bidirectional error diffusion is performed;
[Explanation of symbols]
100 image original
101 lens
102 CCD sensor
103 Analog signal processor
104 Image processing unit
105 Printer section
109 Image reader
110 Control unit

Claims (2)

多値データで表現された基本画像を擬似階調表現する2値画像に変換する画像処理装置において、
前記基本画像の一部の画像からなる補助画像を前記基本画像に隣接させて結合画像を形成する結合手段と、
前記結合された画像を表現する各画素の値を順次、所定の閾値と比較し、該比較結果に従って2値化する2値化手段と、
前記2値化によって発生する誤差を所定サイズの誤差拡散マトリクスを適用して、注目画素の周辺画素に分配する分配手段と、
前記分配手段によって分配される誤差のうち、前記基本画像の外にはみ出す誤差を、前記2値化手段による2値化処理が未処理の領域に取り込む取込手段と、
2値化処理終了後、前記補助画像のうち、前記基本画像と接するラインを含む第1の領域の画像データ値と、前記第1の領域に対応する前記基本画像中の第2の領域の画像データ値とを比較し、該比較結果をもとに前記第1及び第2の領域の画像データ値を補正する補正手段とを有し、
前記補正手段は、
前記周辺画素における元の多値データ値と、前記周辺画素における前記取込手段が誤差を取り込んだ後の2値データ値との差分値を求める差分値演算手段と、
前記差分値演算手段により求められた前記周辺画素の差分値を加重平均する加重平均手段と、
前記加重平均手段によって加重平均された値を、前記注目画素の多値データに加算する加算手段と、
前記加算手段により得られた加重平均値を所定の閾値と比較し、該比較結果に従って補正値を生成する補正値生成手段とからなることを特徴とする画像処理装置。
In an image processing apparatus for converting a basic image expressed by multi-value data into a binary image expressing pseudo gradation,
A combining unit that forms a combined image by adjoining the basic image to an auxiliary image that is a partial image of the basic image;
Binarization means for sequentially comparing the value of each pixel representing the combined image with a predetermined threshold value and binarizing according to the comparison result;
Distribution means for distributing an error generated by the binarization to a peripheral pixel of a target pixel by applying an error diffusion matrix of a predetermined size;
A fetching unit that fetches, out of the errors distributed by the distributing unit, an error that protrudes outside the basic image into an unprocessed area by the binarization processing by the binarizing unit;
After the binarization processing is completed, the image data value of the first area including the line in contact with the basic image in the auxiliary image, and the image of the second area in the basic image corresponding to the first area A correction means for comparing data values and correcting the image data values of the first and second regions based on the comparison results;
The correction means includes
Difference value calculation means for obtaining a difference value between the original multi-value data value in the surrounding pixels and the binary data value after the capturing means in the surrounding pixels has taken in an error;
A weighted average means for weighted average of the difference values of the surrounding pixels obtained by the difference value calculating means;
Adding means for adding the weighted average value by the weighted average means to the multi-value data of the target pixel;
An image processing apparatus comprising: a correction value generation unit that compares the weighted average value obtained by the addition unit with a predetermined threshold value and generates a correction value according to the comparison result.
多値データで表現された基本画像を擬似階調表現する2値画像に変換する画像処理方法において、
前記基本画像の一部の画像からなる補助画像を前記基本画像に隣接させて結合画像を形成する結合工程と、
前記結合された画像を表現する各画素の値を順次、所定の閾値と比較し、該比較結果に従って2値化する2値化工程と、
前記2値化によって発生する誤差を所定サイズの誤差拡散マトリクスを適用して、注目画素の周辺画素に分配する分配工程と、
前記分配工程によって分配される誤差のうち、前記基本画像の外にはみ出す誤差を、前記2値化工程による2値化処理が未処理の領域に取り込む取込工程と、
2値化処理終了後、前記補助画像のうち、前記基本画像と接するラインを含む第1の領域の画像データ値と、前記第1の領域に対応する前記基本画像中の第2の領域の画像データ値とを比較し、該比較結果をもとに前記第1及び第2の領域の画像データ値を補正する補正工程とを有し、
前記補正工程は、
前記周辺画素における元の多値データ値と、前記周辺画素における前記取込工程が誤差を取り込んだ後の2値データ値との差分値を求める差分値演算工程と、
前記差分値演算工程で求められた前記周辺画素の差分値を加重平均する加重平均工程と、
前記加重平均工程で加重平均された値を、前記注目画素の多値データに加算する加算工程と、
前記加算工程で得られた加重平均値を所定の閾値と比較し、該比較結果に従って補正値を生成する補正値生成工程とからなることを特徴とする画像処理方法。
In an image processing method for converting a basic image expressed by multi-value data into a binary image expressing pseudo gradation,
A combining step of forming a combined image by adjoining the basic image with an auxiliary image consisting of a part of the basic image;
A binarization step of sequentially comparing the value of each pixel representing the combined image with a predetermined threshold value, and binarizing according to the comparison result;
A distribution step of distributing an error generated by the binarization to peripheral pixels of the target pixel by applying an error diffusion matrix of a predetermined size;
A process of taking in errors out of the basic image out of errors distributed by the distribution process into a region that is not processed by the binarization process by the binarization process;
After the binarization processing is completed, the image data value of the first area including the line in contact with the basic image in the auxiliary image, and the image of the second area in the basic image corresponding to the first area A correction step of comparing data values and correcting the image data values of the first and second regions based on the comparison results,
The correction step includes
A difference value calculation step for obtaining a difference value between an original multi-value data value in the peripheral pixels and a binary data value after the capturing step in the peripheral pixels takes in an error;
A weighted average step of performing a weighted average of the difference values of the surrounding pixels obtained in the difference value calculation step;
An addition step of adding the weighted average value in the weighted average step to the multi-value data of the target pixel;
An image processing method comprising: a correction value generation step of comparing the weighted average value obtained in the addition step with a predetermined threshold value and generating a correction value according to the comparison result.
JP18000699A 1999-06-25 1999-06-25 Image processing apparatus and image processing method Expired - Fee Related JP3848017B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18000699A JP3848017B2 (en) 1999-06-25 1999-06-25 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18000699A JP3848017B2 (en) 1999-06-25 1999-06-25 Image processing apparatus and image processing method

Publications (3)

Publication Number Publication Date
JP2001008033A JP2001008033A (en) 2001-01-12
JP2001008033A5 JP2001008033A5 (en) 2004-11-11
JP3848017B2 true JP3848017B2 (en) 2006-11-22

Family

ID=16075815

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18000699A Expired - Fee Related JP3848017B2 (en) 1999-06-25 1999-06-25 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP3848017B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4501440B2 (en) * 2004-01-29 2010-07-14 コニカミノルタホールディングス株式会社 Image recording device
JP4251189B2 (en) 2006-03-27 2009-04-08 ブラザー工業株式会社 Image data conversion processing apparatus and image data conversion processing method
US8442348B2 (en) 2008-11-06 2013-05-14 Seiko Epson Corporation Image noise reduction for digital images using Gaussian blurring
JP2011035802A (en) * 2009-08-05 2011-02-17 Brother Industries Ltd Image processor
JP5501108B2 (en) * 2009-10-21 2014-05-21 京セラドキュメントソリューションズ株式会社 Electronic device and image processing program
JP5573706B2 (en) * 2011-01-31 2014-08-20 ブラザー工業株式会社 Image processing apparatus and image processing program
CN115022526B (en) * 2021-09-29 2023-05-30 荣耀终端有限公司 Full depth image generation method and device

Also Published As

Publication number Publication date
JP2001008033A (en) 2001-01-12

Similar Documents

Publication Publication Date Title
US8040569B2 (en) Image processing apparatus and method for contrast processing and intermediate color removal
US7164503B2 (en) Image-processing apparatus, print control apparatus, image-processing method, and recording medium
JPH11275359A (en) Half tone processing method
US7497537B2 (en) Printing apparatus, printing program, printing method and printing data generating apparatus, printing data generating program, printing data generating method, and recording medium recording the programs
JP5381378B2 (en) Inkjet printing apparatus and printing method
US20050116981A1 (en) Method of camouflaging defective print elements in a printer
EP0849934B1 (en) Image processing apparatus and image processing method
JP3848017B2 (en) Image processing apparatus and image processing method
US6467866B1 (en) Print control method and apparatus, and printing apparatus using the same
JP2005088342A (en) Color reduction process of improvement ink
JP3984690B2 (en) Image processing apparatus and image processing method
JP3069413B2 (en) Recording device
JP2010120185A (en) Image processing apparatus and image processing method
JP2000118007A (en) Printing apparatus, printing method and recording medium
US7362473B2 (en) Image processing technique for tone number conversion of image data
JP2004001311A (en) Image processing apparatus, recorder, image processing method, recording method, program, and storage medium
JP2004142196A (en) Image processing method
JP2004015421A (en) Method and apparatus for processing image
US6231149B1 (en) Method and apparatus for image processing and image forming apparatus
JP2006247918A (en) Printing device, printing program, printing method, image processing device, image processing program, image processing method, and recording medium on which the program is recorded
JP2002171415A (en) Image processing apparatus and image processing method
JP6971804B2 (en) Inkjet recording device and inkjet recording method
JP2009049812A (en) Image processor, image recording device, and program
JP2004042350A (en) Image processor and image processing method
JP6547430B2 (en) Recording device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060405

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060418

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060511

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060824

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090901

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100901

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110901

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110901

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120901

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120901

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130901

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees