JP3740721B2 - Image processing method - Google Patents

Image processing method Download PDF

Info

Publication number
JP3740721B2
JP3740721B2 JP24209695A JP24209695A JP3740721B2 JP 3740721 B2 JP3740721 B2 JP 3740721B2 JP 24209695 A JP24209695 A JP 24209695A JP 24209695 A JP24209695 A JP 24209695A JP 3740721 B2 JP3740721 B2 JP 3740721B2
Authority
JP
Japan
Prior art keywords
periodic component
ctarget
color
component
image processing
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 - Lifetime
Application number
JP24209695A
Other languages
Japanese (ja)
Other versions
JPH0993446A (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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP24209695A priority Critical patent/JP3740721B2/en
Publication of JPH0993446A publication Critical patent/JPH0993446A/en
Application granted granted Critical
Publication of JP3740721B2 publication Critical patent/JP3740721B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は画像処理方法に関し、詳しくは、カラー階調画像をオリジナルよりもレベル数の少ない濃度階調(強度変調)と面積階調(面積変調)との組み合わせで表現するための画像処理方法に関する。
【0002】
【従来の技術】
従来から、デジタルプリンタやデジタルファクシミリ等において、オリジナルよりもレベル数の少ない濃度階調(強度変調)と面積階調(面積変調)との組み合わせで中間調を再現するための手法として、ディザ法や誤差拡散法が知られている(特開昭61−35676号公報,特開昭63−217768号公報等参照)。
【0003】
前記ディザ法(2値ディザ法)は、ディザ・マトリクスの各行列の値を閾値とし、対応する座標点の画素の濃度と比較して、1(印画又は発光),0(無印画又は無発光)を決定し2値化する方法であり、原画データと閾値とを比較演算するだけで面積階調用の2値化データを得ることができ、高速演算が可能である。
また、前記誤差拡散法は、階調画像データをより少ないレベル数のデータ(例えば2値)に変換したときの誤差を、近傍の画素に分散させ、周囲近傍の画素と併せて階調表現誤差を低減させるものである(文献:「R.W.Floyd and L.Steinberg “An Adaptive Algorithm for Spatial Gray Scale" , SID 75 Digest(1976)」参照) 。
【0004】
【発明が解決しようとする課題】
しかしながら、ディザ法では、階調性と解像度がディザ・マトリクスの大きさに直接依存するため、階調性と解像度とを両立できないという問題があった。
また、誤差拡散法では、画像のハイライト部やシャドウ部の粒状性ノイズが目立ち、更に、中間調を中心にテキスチュアと呼ばれる規則的な縞模様が発生するという画質上の問題があった。
【0005】
本発明は上記問題点に鑑みなされたものであり、誤差拡散法における前記画質上の問題を改善し、高い画質の画像を再現できる画像処理方法を提供することを目的とする。
【0006】
【課題を解決するための手段】
そのため請求項1記載の発明は、カラー階調画像をオリジナルよりもレベル数の少ない濃度階調と面積階調との組み合わせで表現する画像処理方法であって、処理対象となる入力信号に対して、誤差成分と、周期性成分と、非周期性成分とを加えるようにし、前記入力信号が所定値からハイライト部に近付くにつれて又は前記所定値からシャドウ部に近付くにつれて、前記周期性成分を少なくするとともに前記非周期性成分を多くすることで、前記入力信号に応じて、前記周期性成分と、非周期性成分との配分比率を変化させる構成とした。
【0007】
かかる構成によると、誤差拡散による誤差成分の他に、周期性成分を加算することにより、中間調でオリジナル画像とは無関係に発生する規則的な縞模様を打ち消すことができる。一方、ハイライト部、シャドウ部では、逆にこの周期性成分がノイズとして感じられるため、非周期性成分、即ち、乱数成分を加えることで、ハイライト部、シャドウ部における粒状性ノイズの抑制を図ることができる。このとき、入力信号に応じて、周期性成分と、非周期性成分との配分比率を変化させる構成としたことで、例えばハイライト部、シャドウ部において非周期性成分の割合を高くして粒状性ノイズを抑制する一方、中間調では周期性成分の割合を高くして規則的な縞模様の発生を効果的に抑制できる。
請求項2記載の発明では、前記入力信号をB0とし、前記非周期性成分をth1とし、前記周期性成分をth2としたときの目標値を、
目標値=入力信号+誤差成分+(|所定値−B0|/所定値)×th1×係数1+{1−(|所定値−B0|/所定値)}×th2×係数2
により設定するようにした。
【0008】
請求項3記載の発明では、画像信号の出力媒体によって、周期性成分と非周期性成分との配分比率を変化させる構成とした。
かかる構成によると、プリンタ等の出力媒体の特性に応じて周期性成分と非周期性成分との配分比率を適正に変化させ、粒状性ノイズと縞模様の発生を効果的に抑制できる。
【0010】
請求項4記載の発明では、周期性成分が、入力信号毎に異なる構成とした。
かかる構成によると、基本の周期的変化に入力画像信号の変化を加味した形で周期性成分を設定することができ、画質を損ねることなく縞模様の発生を抑制できる。
請求項5記載の発明では、周期性成分が、各色毎に異なる構成とした。
【0011】
かかる構成によると、グレイの中間調部分において、どれか1つの補色の組み合わせを優先的に発生させて、色むらの発生を抑制できる。
請求項6記載の発明では、周期性成分が市松模様となる構成とした。
かかる構成によると、市松模様によって規則的な縞模様の打ち消しが図られる。ここで、例えば市松模様を2×2画素単位とすることで最も良好な画質が得られる。
【0012】
請求項7記載の発明では、前記非周期性成分をテーブルでもつ構成とした。
かかる構成によると、非周期性成分をテーブルでもつことで、テーブルデータを繰り返し用いて処理を簡略化できる。ここで、テーブルによって一定のパターンが発生することを回避すべく、テーブルの大きさはなるべく大きい方が好ましい。
【0013】
【発明の実施の形態】
以下に本発明の実施の形態を説明する。
本実施形態においては、色剤に対応する3原色(イエローY,マゼンタM,シアンC)のカラー階調信号Ay,Am,Ac (8ビットデータ)が入力される構成のプリンタ(或いはディスプレィ)において、オリジナルよりもレベル数の少ない2値(ドット有り無し)でカラー階調画像を表現するために階調画像信号を処理し、面積階調(面積変調)の手法で階調を表現させるものとする。但し、カラー階調信号がレッドR,グリーンG,ブルーBの3原色で与えられ、これをY,M,C系に変換して用いるものであっても良い。
【0014】
第1の実施形態として、カラー階調信号Ay,Am,Ac それぞれで独立して誤差拡散を行って、Y,M,Cのドット打ちを個別に決定する画像処理方法を、図1のフローチャートに基づいて説明する。
図1のフローチャートにおいて、まず、前処理として、入力信号(オリジナル信号)としてのカラー階調信号Ay,Am,Ac に乱数成分th1(非周期性成分)を加算させるべく、乱数テーブルを乱数ジェネレータにより作成する(S31)。前記乱数テーブルのサイズは、64×64から256 ×256 程度が適当であるが、コストアップを無視すれば、一定パターンの発生を回避するためにより大きなサイズのものが望ましい。
【0015】
尚、前記乱数成分th1は、後述するように係数coeff が乗算され、th1×coeff として入力信号(オリジナルカラー信号)に加算されるようになっており、前記S31で作成されたテーブルが、その後、当該画像におけるカラー階調信号Ay,Am,Ac の処理に共通的に用いられる。
次に、入力信号に対して前記乱数成分th1と共に加算される周期性成分th2の基準マトリックスを作る(S32)。
【0016】
前記マトリックスは、前記周期性成分th2に周期性をもたせるために周期的な変化を示すことが要求され、例えば1×1画素単位の市松模様を示すベイヤー型マトリックス(図2参照)や、このベイヤー型マトリックスを基礎として2×2画素単位(図3参照)又は4×4画素単位(図4参照)の市松模様としたマトリックスなどを用いることができるが、前記2×2画素単位の市松模様のマトリックスが最も好ましい。また、マトリックスのサイズは、入力信号が8ビットである場合には、16×16とすることが好ましいが、これ以下のサイズであっても良い。
【0017】
前記市松模様の基準マトリックスに基づく周期性成分th2の算出は、以下のように入力信号と前記基準マトリックスとに基づいて行われ、入力信号に応じて周期性成分th2が異なる構成としてある。
例えば座標が(x,y)での入力信号(オリジナルカラー信号)をB0としたときに、B0≦matrix(x mod 16,y mod 16)であれば、th2=−(32+B0)とし、B0>matrix(x mod 16,y mod 16)であれば、th2=(32+(255 −B0))とする。
【0018】
また、B0≦matrix(x mod 16,y mod 16)であれば、th2=−32とし、B0>matrix(x mod 16,y mod 16)であれば、th2=32としても良い。
上記のようにして周期性成分th2を算出させる構成とすれば、周期的変化としての市松模様を基本としつつ、オリジナル画像の階調特性が反映された周期性成分th2を設定できる。従って、かかる周期性成分th2を入力信号に加算してから誤差拡散法を用いて2値化処理する構成とすれば、オリジナル画像の階調性を損なうことなく、誤差拡散に伴う縞模様の発生を打ち消すことができる。
【0019】
尚、前記周期性成分th2は、後述するように係数coeff2が乗算され、th2×coeff2として入力信号に加算される。
S33では、各色毎の目標値Ctarget-y, Ctarget-m, Ctarget-cを算出する。前記各色毎の目標値Ctarget-y, Ctarget-m, Ctarget-cは、オリジナルのカラー階調信号Ay,Am,Ac それぞれに、誤差拡散法によって各色毎に周囲画素から割り振られた各色毎の誤差成分Aerror-y,Aerror-m,Aerror-c ,前記乱数テーブルの乱数成分(非周期性成分)th1×coeff 及び周期性成分th2×coeff2を足し合わせて算出される。
【0020】
Ctarget-y=Ay +Aerror-y +th1×coeff +th2×coeff2
Ctarget-m=Am +Aerror-m +th1×coeff +th2×coeff2
Ctarget-c=Ac +Aerror-c +th1×coeff +th2×coeff2
前記周期性成分th2は、前述のようにマトリックスの閾値と入力信号との比較に基づいて設定される。
【0021】
ここで、前記各色毎の目標値Ctarget-y, Ctarget-m, Ctarget-cの演算において、乱数成分th1と周期性成分th2とが加算されるから、乱数成分th1によってディザ画像の偏りを回避して特にハイライト,シャドウ部における粒状性ノイズの発生を抑制でき、また、基本を市松模様としてオリジナル画像の特性が反映された周期性成分th2によって、オリジナル画像には無い縞模様が発生することを抑制できる。
【0022】
尚、前記乱数成分th1,周期性成分th2に乗算される係数coeff,coeff2、換言すれば、乱数成分th1,周期性成分th2の配分比率は固定値であっても良いが、処理後の画像信号が出力される媒体(プリンタ)毎に最適な値を選択することで、出力媒体の特性に対応して乱数成分th1と周期性成分th2とを適当な割合で加算でき、以て、出力媒体毎に画質を効果的に改善できる。例えば、プリンタの特性によってハードコピー上で縞模様よりも粒状性ノイズが目立つ場合には、乱数成分th1の割合を大きくすれば良いし、逆に、規則的な縞模様がハードコピー上に顕著に現れる場合には、周期性成分th2の割合を増大させるようにすれば良い。
【0023】
また、前記配分比率を、入力信号に応じて変化させるようにしても良く、例えば下式にようにして各色毎の目標値(Ctarget-y, Ctarget-m, Ctarget-c)を設定させることができる。

Figure 0003740721
上記式に基づいて入力信号に乱数成分th1と周期性成分th2とを加算する構成であれば、ハイライト,シャドウ部においては乱数成分の割合を高くする一方、中間調では、周期性成分の割合を高くすることができ、以て、ハイライト,シャドウ部における粒状性ノイズの抑制、及び、中間調における縞模様の抑制を共に効果的に行えることになる。
【0024】
S34では、前記各色毎の目標値Ctarget-y, Ctarget-m, Ctarget-cと、固定閾値とをそれぞれ比較し、各色毎に2値化する。
S35では、前記2値化による誤差分を各色毎に算出する。
S36では、前記算出された各色毎の誤差を、各色毎に周囲画素に分配して、周囲画素における誤差成分Aerror-y,Aerror-m,Aerror-c を決定する。
【0025】
上記の誤差分配における分配画素と重み付けの例を、図5又は図6に示してある。
図5は、3×3画素の誤差拡散マトリクスを示してあり、この例では、マトリクスの中心画素における誤差を、7/16,5/16,3/16,1/16の一定した重み付けで周囲画素に分配する構成としてある。
【0026】
また、図6に示す例は、乱数化された誤差拡散マトリクスを示し、各周囲画素に対する誤差分配の重み付けを、a/16,b/16,c/16,d/16とし、前記a,b,c,dを乱数によって決定させるものである。ここで、整数の乱数を発生させる関数をrand()とし、除算の余りを求める演算子を%とすると、前記a,b,c,dを、
a=rand()%17
b=rand()%(17−a)
c=rand()%(17−a−b)
d=16−a−b−c
として決定することができる。
【0027】
S37では、全画素について処理が終了したか否かを判別し、処理が終了するまでS31〜S36の処理を繰り返す。
次に、カラー階調信号Ay,Am,Ac から該当する色空間を特定して、各色によるドット打ちを決定する構成の第2の実施形態を説明する。
ここでは、色空間を、図7に示すように、8つの原色(基本色)ホワイトW,イエローY,マゼンタM,シアンC,ブラックK,ブルーB,グリーンG,レッドRを頂点とする立方体で規定し、更に、前記色空間を、例えば図8に示すように、3つの小色空間に分割するものとする。
【0028】
前記3つの小色空間は、W,Y,M,Cの原色で表現される第1の小色空間、Y,M,C,R,G,Bの原色で表現される第2の小色空間、R,G,B,Kの原色で表現される第3の小色空間からなり、それぞれの小色空間は、原色の組み合わせが相互に異なっている。
前記各小色空間を階調信号上で規定すると、Ay,Am,Ac がY,M,Cそれぞれの濃度データ(8ビットデータ)を示すものとすると、Ay +Am +Ac ≦255 の条件が第1の小色空間の領域に該当し、255 <Ay +Am +Ac <510 の条件が第2の小色空間の領域に該当し、Ay +Am +Ac ≧510 の条件が第3の小色空間の領域に該当することになる。
【0029】
ここで、与えられるカラー階調信号Ay,Am,Ac (色画像信号)が、Ay +Am +Ac ≦255 なる条件であって、W,Y,M,Cの原色で表現される(頂点をW,Y,M,Cとする)第1の小色空間に所属する色であるときには、出力として第1の小色空間を表現する前記4つの原色W,Y,M,Cのいずれかのドットを利用するものとする。
【0030】
また、与えられるカラー階調信号Ay,Am,Ac (色画像信号)が、255 <Ay +Am +Ac <510 なる条件であって、Y,M,C,R,G,Bの原色で表現される(頂点をY,M,C,R,G,Bとする)第2の小色空間に所属する色であるときには、出力として第2の小色空間を表現する前記6つの原色Y,M,C,R,G,Bのいずれかのドットを利用するものとする。
【0031】
更に、与えられるカラー階調信号Ay,Am,Ac (色画像信号)が、Ay +Am +Ac ≧510 なる条件であって、R,G,B,Kの原色で表現される(頂点をR,G,B,Kとする)第3の小色空間に所属する色であるときには、出力として第3の小色空間を表現する前記4つの原色R,G,B,Kのいずれかのドットを利用するものとする。
【0032】
即ち、色空間を分割する各小色空間のいずれに所属するかによって、割り当てられる色の種類が限定されるようにしてある。
但し、ホワイトWのドットは、実際にはドットを打たないことを示し、また、イエローY,マゼンタM,シアンCのドットは、各色のインクによるドット打ちを示し、更に、レッドR,グリーンG,ブルーBそれぞれのドットは、Y+M,Y+C,M+Cの重ね合わせを示し、ブラックドットは、Y,M,Cの重ね合わせか、純粋なブラックインクによるブラックドット打ちを示すものとする。
【0033】
尚、色空間の設定及び色空間の分割を、図7及び図8に示すものに限定するものではなく、種々の変形態様が想定されることは明らかである。
ここで、上記のようにして行なわれるカラー階調信号Ay,Am,Ac (色画像信号)に対する原色信号の振り分けの様子を、図9及び図10のフローチャートに従って詳細に示す。
【0034】
図9のフローチャートにおいて、S1 ,S2では、前記図1のフローチャートトのS31,S32と同様に、乱数成分th1(非周期性成分)のテーブル作成及び周期性成分th2の基準マトリックス(例えば2×2画素単位の市松模様)設定を行う。
次に、与えられた3原色カラー階調信号Ay,Am,Ac の各色毎の濃度データを足し合わせ、オリジナル色が図8に示したいずれの小色空間に所属するかを判別するためのパラメータCtotal (←Ay +Am +Ac )を算出する(S3)。
【0035】
次に、目標値Ctargetを決定する(S4)。
前記目標値Ctargetは、各色毎の目標値Ctarget-y, Ctarget-m, Ctarget-cを足し合わせて決定され(Ctarget←Ctarget-y+Ctarget-m+Ctarget-c)、前記各色毎の目標値Ctarget-y, Ctarget-m, Ctarget-cは、オリジナルのカラー階調信号Ay,Am,Ac それぞれに、誤差拡散法によって周囲画素から割り振られた各色毎の誤差成分Aerror-y,Aerror-m,Aerror-c ,前記乱数テーブルの乱数成分(非周期性成分)th1×coeff 及び周期性成分th2×coeff2を足し合わせて算出される。
【0036】
Ctarget-y=Ay +Aerror-y +th1×coeff +th2×coeff2
Ctarget-m=Am +Aerror-m +th1×coeff +th2×coeff2
Ctarget-c=Ac +Aerror-c +th1×coeff +th2×coeff2
Ctarget=Ctarget-y+Ctarget-m+Ctarget-c
続いて、前記パラメータCtotal に基づいていずれの小色空間に所属するかを判別し、所属する小色空間を表現する原色のいずれかを前記目標値Ctargetに基づいて振り分ける処理を実行する(S5)。
【0037】
ここで、前記目標値Ctargetの基礎となる各色毎の目標値Ctarget-y, Ctarget-m, Ctarget-cの演算において、乱数成分th1と周期性成分th2とが加算されるから、乱数成分th1によってディザ画像の偏りを回避して特にハイライト,シャドウ部における粒状性ノイズの発生を抑制でき、また、基本を市松模様としてオリジナル画像の特性が反映された周期性成分th2によって、オリジナル画像には無い縞模様が発生することを抑制できる。
【0038】
尚、前記乱数成分th1,周期性成分th2に乗算される係数coeff,coeff2、換言すれば、乱数成分th1,周期性成分th2の配分比率は、前述のように、は固定値であっても良いが、処理後の画像信号が出力される媒体(プリンタ)毎に最適な値を選択することが好ましく、更に、入力信号に応じて変化させるようにしても良い。
【0039】
ここで、前記S5における振り分け処理の内容を、図10のフローチャートに従って詳細に説明する。
図10のフローチャートにおいて、まず、前記パラメータCtotal に基づいて、図7及び図8に示される3つの小色空間のうちのいずれに所属するかを判別させる。
【0040】
具体的には、前記パラメータCtotal が、Ctotal ≦255 ,255 <Ctotal <510 ,Ctotal ≧510 のいずれかであるかを判別する(S11)。
Ctotal ≦255 であって、W,Y,M,Cの原色で表現される第1の小色空間に所属する場合には、前記目標値Ctargetが180 以下であるか否かを判別する(12)。前記目標値Ctargetが180 以下である場合には、前記第1の小色空間の中でもハイライト付近に所属するものと判断し、当該画素に対して所属する小色空間の原色の1つであるホワイトWを振り分ける(S13)。
【0041】
尚、ホワイトWの振り分けの基準となる前記180 は例示的なものであり、かかる値に限定されるものではないが、W,Y,M,Cの原色で表現される第1の小色空間の体積を、原色の振り分けに対応して略均等割りするような値を設定することが好ましい。
一方、目標値Ctargetが180 を越える場合には、イエローYの目標値Ctarget-yがマゼンタMの目標値Ctarget-m以上であり、かつ、イエローYの目標値Ctarget-yがシアンCの目標値Ctarget-c以上であるか否かを判別する(S14)。
【0042】
そして、マゼンタMの目標値Ctarget-m及びシアンCの目標値Ctarget-cがイエローYの目標値Ctarget-yを越えない場合には、当該画素に対して所属する小色空間の原色の1つであるイエローYを振り分ける(S15)。
また、イエローYの目標値Ctarget-yを越える目標値が存在する場合には、マゼンタMの目標値Ctarget-mがシアンCの目標値Ctarget-c以上であるか否かを判別する(S16)。
【0043】
そして、マゼンタMの目標値Ctarget-mがシアンCの目標値Ctarget-c以上であるときには、当該画素に対して所属する小色空間の原色の1つであるマゼンタMを振り分る(S17)。
また、マゼンタMの目標値Ctarget-mがシアンCの目標値Ctarget-c未満であるときには、当該画素に対して所属する小色空間の原色の1つであるシアンCを振り分る(S18)。
【0044】
即ち、前記パラメータCtotal によってW,Y,M,Cの原色で表現される第1の小色空間に対する所属が判別されると、前記4つの原色(空間の頂点に相当する色)の中で近接度の最も高い原色が振り分けられ、当該画素に対しては振り分けられた原色のドット打ちがなされるようにする。
このように、第1の小色空間に対する所属が判別されているときには、該第1の小色空間を表現する4つの原色W,Y,M,Cの中でのみ色の振り分けが行なわれるから、ハイライト付近である第1の小色空間に所属する色であるのに、面積階調処理のために色が濃いドット(K,R,G,Bのドット)が突発的に打たれることを回避できる。
【0045】
一方、前記パラメータCtotal がCtotal ≧510 であってK,R,G,Bの原色で表現される第3の小色空間に所属する場合には、前記目標値Ctargetが585 以上であるか否かを判別する(S19)。前記目標値Ctargetが585 以上である場合には、前記第1の小色空間の中でもシャドー付近に所属するものと判断し、当該画素に対して所属する小色空間の原色の1つであるブラックKを振り分ける(S20)。
【0046】
また、目標値Ctargetが585 未満であるときには、イエローYの目標値Ctarget-y,マゼンタMの目標値Ctarget-m,シアンCの目標値Ctarget-cを比較し(S21)、イエローYの目標値Ctarget-yが最も小さい場合にはイエローYの補色であるブルーB(マゼンタMとシアンCの重ね合わせ)を振り分け(S22)、シアンCの目標値Ctarget-cが最も小さいときには(S23)、シアンCの補色であるレッドR(イエローYとマゼンタMの重ね合わせ)を振り分け(S24)、マゼンタMの目標値Ctarget-mが最も小さいときにはマゼンタMの補色であるグリーンG(イエローYとシアンCの重ね合わせ)を振り分ける(S25)。
【0047】
このように、第3の小色空間に対する所属が判別されているときには、該第3の小色空間を表現する4つの原色K,R,G,Bの中でのみ色の振り分けが行なわれるから、シャドー付近である第3の小色空間に所属する色であるのに、面積階調処理のために色が薄く明るい濃いドット(W,Y,M,Cのドット)が突発的に打たれることを回避できる。
【0048】
更に、前記Ctotal が255 <Ctotal <510 であってY,M,C,R,G,Bの原色で表現される第2の小色空間に所属する場合には、前記目標値Ctargetが383 以下であるか否かを判別することで(S26)、第2の小色空間の中でも第1の小色空間に近い領域であるか、或いは第3の小色空間に近い領域であるかを判別する。
【0049】
そして、前記目標値Ctargetが383 以下であると判別されたときには、イエローYの目標値Ctarget-y,マゼンタMの目標値Ctarget-m,シアンCの目標値Ctarget-cを比較することで、イエローY,マゼンタM,シアンCの中で近接度の最も高い原色が振り分ける(S14〜S18)。
また、前記目標値Ctargetが383 を越えていると、イエローYの目標値Ctarget-y,マゼンタMの目標値Ctarget-m,シアンCの目標値Ctarget-cを比較することで、イエローY,マゼンタM,シアンCの中で近接度の最も低い原色を判別し、以下判別された原色に対する補色関係にあるレッドR,グリーンG,ブルーBのいずれかを振り分ける(S21〜S25)。
【0050】
第2の小色空間に所属する場合、即ち、シャドー付近でもなくハイライト付近でもない場合には、上記のようにして、所属する小色空間を表現するY,M,C,R,G,Bの原色の中でのみ振り分けが行なわれるから、ホワイトWドットやブラックKドットが打たれることがない。
上記のようにして、各画素毎に、原色であるホワイトW,イエローY,マゼンタM,シアンC,ブラックK,ブルーB,グリーンG,レッドRのいずれかを振り分けると、かかる振り分け(2値化)による誤差を、各色(Y,M,C)毎に算出する(S6)。
【0051】
そして、前記算出された誤差を誤差拡散法に基づき周囲画素に分配して、周期画素における誤差成分Aerror-y,Aerror-m,Aerror-c を設定し(S7)、全画素に対して処理が終了するまで(S8)、上記S1〜S7の処理を繰り返す。
ところで、周期性成分th2の設定に用いる基準マトリックスは、各色共通であっても良いが、各色毎に異なるマトリックスを用いる構成としても良い。
【0052】
例えば2×2単位の市松模様の16×16の基本マトリックスmatrixを作成する一方(図11参照)、前記基本マトリックスmatrixを右に2つずらしたマトリックスmatrix1 (図12参照)と、前記基本マトリックスmatrixを下に2つずらしたマトリックスmatrix2 (図13参照)とを作成する。
そして、前記3つのマトリックスmatrix,matrix1 ,matrix2 を、各色毎に対応させ、例えばオリジナルカラー信号がR,G,Bであるときには、Rのときには基本マトリックスmatrixを、Gのときにはマトリックスmatrix1 を、Bのときにはマトリックスmatrix2 を用いるようにする。
【0053】
かかる構成によると、グレイの中間調部分では、どれか1つの補色の組み合わせが優先的に発生することになり、色むらが発生しにくくなる。
また、例えばオリジナルカラー信号がY,M,C,Kの4色である場合には、Kのときはmatrixを、Yのときにはmatrix1 を、Mのときにはmatrixを、Cのときにはmatrix2 をそれぞれ対応させるようにすれば良い。
【0054】
【発明の効果】
以上説明したように請求項1の発明にかかる画像処理方法によると、粒状性ノイズの発生を回避するための非周期性成分と、規則的な縞模様の発生を回避するための周期性成分とをそれぞれに必要に応じて付加することで、例えばハイライト部、シャドウ部において非周期性成分の割合を高くして粒状性ノイズの発生を回避する一方、中間調では周期性成分の割合を高くして、オリジナル画像とは無関係に発生する規則的なノイズを抑制することができる。よって、誤差拡散法で処理される画像の画質を向上させることができるという効果がある。
また、請求項2記載の発明によると、ハイライト部、シャドウ部の近傍においては周期性成分(乱数成分)の割合を高くする一方、中間調では、周期性成分の割合を高くして各色毎の目標値を設定することができ、ハイライト、シャドウ部における粒状性ノイズの抑制、及び中間調における縞模様の抑制を共に効果的に行えることになる。
【0055】
請求項3記載の発明によると、プリンタ等の出力媒体の特性に応じて周期性成分と非周期性成分との配分比率を適正に変化させ、粒状性ノイズと規則的縞模様の発生を出力媒体毎に効果的に抑制できるという効果がある。
【0056】
請求項4記載の発明によると、基本の周期的変化に入力画像信号の変化を加味した形で周期性成分を設定することができるので、画質を損ねることなく規則的な縞模様の発生を抑制できるという効果がある。
請求項5記載の発明によると、グレイの中間調部分において、どれか1つの補色の組み合わせを優先的に発生させることができるようになるので、色むらの発生を抑制できるという効果がある。
【0057】
請求項6記載の発明によると、市松模様によって規則的な縞模様を効果的に打つ消すことができるという効果がある。
請求項7記載の発明によると、非周期性成分をテーブルとしてもつことで、処理の簡素化が図れるという効果がある。
【図面の簡単な説明】
【図1】画像処理の第1形態を示すフローチャート。
【図2】16×16のベイヤー型マトリックスの例を示す図。
【図3】2×2画素単位の市松模様のマトリックスを示す図。
【図4】4×4画素単位の市松模様のマトリックスを示す図。
【図5】誤差拡散の重み付けの様子を説明するための図。
【図6】誤差拡散の重み付けの様子を説明するための図。
【図7】第2の実施形態における色空間の分割構成を示す図。
【図8】第2の実施形態における色空間の分割構成を示す図。
【図9】画像処理の第2形態を示すフローチャート。
【図10】前記第2の形態における原色の割り振りを示すフローチャート。
【図11】2×2画素単位の市松模様の基準マトリックスを示す図。
【図12】基準マトリックスの配列を右方向に2画素ずらしたマトリックスを示す図。
【図13】基準マトリックスの配列を下向に2画素ずらしたマトリックスを示す図。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method, and more particularly to an image processing method for expressing a color gradation image by a combination of density gradation (intensity modulation) and area gradation (area modulation) having a smaller number of levels than the original. .
[0002]
[Prior art]
Conventionally, in a digital printer, digital facsimile, etc., as a method for reproducing halftones by combining density gradation (intensity modulation) and area gradation (area modulation) with a smaller number of levels than the original, dithering or An error diffusion method is known (see Japanese Patent Laid-Open Nos. 61-35676 and 63-217768).
[0003]
In the dither method (binary dither method), the value of each matrix of the dither matrix is used as a threshold value, and compared with the density of the pixel at the corresponding coordinate point, 1 (print or light emission), 0 (no print or no light emission) ) Is determined and binarized, and binarized data for area gradation can be obtained simply by comparing the original image data and the threshold value, and high-speed calculation is possible.
Further, the error diffusion method disperses the error when the gradation image data is converted into data of a smaller number of levels (for example, binary) to neighboring pixels, and combines the gradation expression error with the neighboring pixels. (Ref: “RW Floyd and L. Steinberg“ An Adaptive Algorithm for Spatial Gray Scale ”, SID 75 Digest (1976)”).
[0004]
[Problems to be solved by the invention]
However, the dither method has a problem that the gradation and the resolution cannot be compatible since the gradation and the resolution directly depend on the size of the dither matrix.
In addition, the error diffusion method has a problem in image quality that graininess noise in a highlight portion and a shadow portion of an image is conspicuous, and a regular striped pattern called a texture is generated around a halftone.
[0005]
The present invention has been made in view of the above problems, and an object of the present invention is to provide an image processing method capable of improving the image quality problem in the error diffusion method and reproducing a high quality image.
[0006]
[Means for Solving the Problems]
  Therefore, the invention described in claim 1 is an image processing method for expressing a color gradation image by a combination of density gradation and area gradation having a smaller number of levels than the original, and for an input signal to be processed. , Adding an error component, a periodic component, and an aperiodic component, and the input signalBy decreasing the periodic component and increasing the non-periodic component as it approaches the highlight portion from a predetermined value or approaches the shadow portion from the predetermined value,The distribution ratio between the periodic component and the non-periodic component is changed according to the input signal.
[0007]
  According to this configuration, by adding a periodic component in addition to an error component due to error diffusion, it is possible to cancel a regular striped pattern that occurs in a halftone regardless of the original image. On the other hand, since the periodic component is perceived as noise in the highlight portion and shadow portion, the granularity noise in the highlight portion and shadow portion can be suppressed by adding a non-periodic component, that is, a random number component. Can be planned. At this time, according to the input signal, the distribution ratio of the periodic component and the non-periodic component is changed. For example, the proportion of the non-periodic component is increased in the highlight portion and the shadow portion so as to be granular. On the other hand, the occurrence of regular stripes can be effectively suppressed by increasing the ratio of the periodic component in the halftone while suppressing the noise.
  In the invention of claim 2, the target value when the input signal is B0, the non-periodic component is th1, and the periodic component is th2,
  Target value = input signal + error component + (| predetermined value−B0 | / predetermined value) × th1 × coefficient 1+ {1- (| predetermined value−B0 | / predetermined value)} × th2 × coefficient 2
It was made to set by.
[0008]
  Claim 3In the described invention, the distribution ratio of the periodic component and the non-periodic component is changed according to the output medium of the image signal.
  According to such a configuration, it is possible to appropriately change the distribution ratio of the periodic component and the non-periodic component according to the characteristics of the output medium such as a printer, and to effectively suppress the occurrence of the granularity noise and the stripe pattern.
[0010]
  Claim 4In the described invention, the periodic component is different for each input signal.
  According to such a configuration, the periodic component can be set in a form in which the change of the input image signal is added to the basic periodic change, and the occurrence of a striped pattern can be suppressed without impairing the image quality.
  Claim 5In the described invention, the periodic component is different for each color.
[0011]
  According to such a configuration, it is possible to preferentially generate any one of the combinations of complementary colors in the gray halftone portion and suppress the occurrence of color unevenness.
  Claim 6In the described invention, the periodic component has a checkered pattern.
  According to this configuration, the regular striped pattern is canceled by the checkered pattern. Here, for example, the best image quality can be obtained by setting the checkerboard pattern to 2 × 2 pixel units.
[0012]
  Claim 7In the described invention, the non-periodic component is configured as a table.
  According to such a configuration, it is possible to simplify the processing by repeatedly using table data by having a non-periodic component in the table. Here, it is preferable that the size of the table is as large as possible in order to avoid occurrence of a certain pattern by the table.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below.
In this embodiment, in a printer (or display) configured to receive color gradation signals Ay, Am, Ac (8-bit data) of three primary colors (yellow Y, magenta M, cyan C) corresponding to the colorant. In order to represent a color gradation image with a binary value (with or without dots) that has fewer levels than the original, the gradation image signal is processed, and the gradation is expressed by an area gradation (area modulation) technique. To do. However, the color gradation signal may be given in the three primary colors of red R, green G, and blue B, and converted into Y, M, and C systems for use.
[0014]
As a first embodiment, the flowchart of FIG. 1 shows an image processing method in which error diffusion is independently performed for each of the color gradation signals Ay, Am, and Ac to individually determine Y, M, and C dot strikes. This will be explained based on.
In the flowchart of FIG. 1, first, as preprocessing, a random number table is generated by a random number generator so as to add a random number component th1 (non-periodic component) to a color gradation signal Ay, Am, Ac as an input signal (original signal). Create (S31). The size of the random number table is suitably about 64 × 64 to 256 × 256, but if the cost increase is ignored, a larger size is desirable to avoid the occurrence of a fixed pattern.
[0015]
The random number component th1 is multiplied by a coefficient coeff as will be described later, and added to the input signal (original color signal) as th1 × coeff. The table created in S31 is It is commonly used for processing the color gradation signals Ay, Am, Ac in the image.
Next, a reference matrix of the periodic component th2 added to the input signal together with the random number component th1 is created (S32).
[0016]
The matrix is required to exhibit a periodic change in order to impart periodicity to the periodic component th2. For example, a Bayer matrix (see FIG. 2) showing a checkered pattern of 1 × 1 pixel unit or the Bayer A matrix having a checkered pattern of 2 × 2 pixel units (see FIG. 3) or 4 × 4 pixel units (see FIG. 4) can be used on the basis of the type matrix. A matrix is most preferred. The matrix size is preferably 16 × 16 when the input signal is 8 bits, but may be smaller than this size.
[0017]
The calculation of the periodic component th2 based on the checkered reference matrix is performed based on the input signal and the reference matrix as follows, and the periodic component th2 differs depending on the input signal.
For example, when B0 is an input signal (original color signal) with coordinates (x, y) and B0 ≦ matrix (x mod 16, y mod 16), th2 = − (32 + B0) and B0> If matrix (x mod 16, y mod 16), th2 = (32+ (255−B0)).
[0018]
If B0 ≦ matrix (x mod 16, y mod 16), th2 = −32, and if B0> matrix (x mod 16, y mod 16), th2 = 32.
If the periodic component th2 is calculated as described above, the periodic component th2 reflecting the gradation characteristics of the original image can be set based on the checkered pattern as a periodic change. Therefore, if the binarization processing is performed using the error diffusion method after the periodic component th2 is added to the input signal, a striped pattern due to error diffusion is generated without impairing the gradation of the original image. Can be countered.
[0019]
The periodic component th2 is multiplied by a coefficient coeff2 as will be described later, and is added to the input signal as th2 × coeff2.
In S33, target values Ctarget-y, Ctarget-m, and Ctarget-c for each color are calculated. The target values Ctarget-y, Ctarget-m, and Ctarget-c for each color are the errors for each color assigned to the original color gradation signals Ay, Am, and Ac from the surrounding pixels for each color by the error diffusion method. The components Aerror-y, Aerror-m, Aerror-c, and the random number component (non-periodic component) th1 × coeff and periodic component th2 × coeff2 of the random number table are added together.
[0020]
Ctarget-y = Ay + Aerror-y + th1 × coeff + th2 × coeff2
Ctarget-m = Am + Aerror-m + th1 × coeff + th2 × coeff2
Ctarget-c = Ac + Aerror-c + th1 × coeff + th2 × coeff2
As described above, the periodic component th2 is set based on the comparison between the matrix threshold and the input signal.
[0021]
Here, since the random component th1 and the periodic component th2 are added in the calculation of the target values Ctarget-y, Ctarget-m, and Ctarget-c for each color, the random component th1 avoids the bias of the dither image. In particular, the occurrence of graininess noise in highlights and shadows can be suppressed, and the periodic component th2 that reflects the characteristics of the original image with a checkerboard pattern as the basis, produces a stripe pattern that does not exist in the original image. Can be suppressed.
[0022]
The random number component th1 and the periodicity component th2 are multiplied by the coefficients coeff, coeff2, in other words, the distribution ratio of the random number component th1 and the periodicity component th2 may be a fixed value. By selecting an optimum value for each medium (printer) from which the random number component is output, the random number component th1 and the periodic component th2 can be added at an appropriate ratio corresponding to the characteristics of the output medium. The image quality can be effectively improved. For example, if graininess noise is more conspicuous than the stripe pattern on the hard copy due to the characteristics of the printer, the ratio of the random number component th1 may be increased, and conversely, the regular stripe pattern is conspicuous on the hard copy. If it appears, the proportion of the periodic component th2 may be increased.
[0023]
The distribution ratio may be changed according to the input signal. For example, the target values (Ctarget-y, Ctarget-m, Ctarget-c) for each color may be set as shown in the following equation. it can.
Figure 0003740721
If the random number component th1 and the periodic component th2 are added to the input signal based on the above formula, the proportion of the random component is increased in the highlight and shadow portions, while the proportion of the periodic component in the halftone Therefore, it is possible to effectively suppress both the graininess noise in the highlight and shadow portions and the stripe pattern in the halftone.
[0024]
  In S34, the target values Ctarget-y, Ctarget-m, and Ctarget-c for each color are compared with a fixed threshold value, and binarized for each color.
  In S35, the error due to the binarization is calculated for each color.
  In S36, the calculated error for each color is distributed to surrounding pixels for each color, andError componentAerror-y, Aerror-m, and Aerror-c are determined.
[0025]
Examples of distribution pixels and weighting in the above error distribution are shown in FIG. 5 or FIG.
FIG. 5 shows an error diffusion matrix of 3 × 3 pixels. In this example, the error at the center pixel of the matrix is surrounded by a constant weight of 7/16, 5/16, 3/16, 1/16. It is configured to distribute to the pixels.
[0026]
The example shown in FIG. 6 shows a randomized error diffusion matrix, and the error distribution weights for the surrounding pixels are a / 16, b / 16, c / 16, d / 16, and the above a, b , C, d are determined by random numbers. Here, assuming that a function for generating an integer random number is rand () and an operator for calculating the remainder of division is%, a, b, c, d are expressed as follows.
a = rand ()% 17
b = rand ()% (17-a)
c = rand ()% (17-ab)
d = 16−a−b−c
Can be determined as
[0027]
In S37, it is determined whether or not the processing has been completed for all the pixels, and the processing in S31 to S36 is repeated until the processing is completed.
Next, a second embodiment in which the corresponding color space is specified from the color gradation signals Ay, Am, Ac and the dot strike by each color is determined will be described.
Here, as shown in FIG. 7, the color space is a cube having eight primary colors (basic colors) white W, yellow Y, magenta M, cyan C, black K, blue B, green G, and red R as vertices. Further, it is assumed that the color space is divided into three small color spaces as shown in FIG.
[0028]
The three small color spaces are a first small color space expressed by primary colors of W, Y, M, and C, and a second small color expressed by primary colors of Y, M, C, R, G, and B. The space is composed of a third small color space expressed by primary colors of R, G, B, and K, and each of the small color spaces has a different combination of primary colors.
When each of the small color spaces is defined on the gradation signal, if Ay, Am, Ac represents the respective density data (8-bit data) of Y, M, C, the condition of Ay + Am + Ac ≦ 255 is the first. The condition of 255 <Ay + Am + Ac <510 corresponds to the area of the second small color space, and the condition of Ay + Am + Ac ≧ 510 corresponds to the area of the third small color space. Will do.
[0029]
Here, the given color gradation signals Ay, Am, Ac (color image signals) are expressed by primary colors of W, Y, M, C under the condition of Ay + Am + Ac ≦ 255 (the vertex is W, If the color belongs to the first small color space (denoted Y, M, C), the dot of any of the four primary colors W, Y, M, C expressing the first small color space is output as an output. Shall be used.
[0030]
Further, the given color gradation signals Ay, Am, Ac (color image signals) are expressed by primary colors of Y, M, C, R, G, B under the condition of 255 <Ay + Am + Ac <510. When the colors belong to the second small color space (the vertices are Y, M, C, R, G, B), the six primary colors Y, M, Any one of C, R, G, and B dots is used.
[0031]
Further, the given color gradation signals Ay, Am, Ac (color image signals) are expressed by the primary colors of R, G, B, K under the condition of Ay + Am + Ac ≧ 510 (the vertices are represented by R, G When the color belongs to the third small color space, the dot of any of the four primary colors R, G, B, and K expressing the third small color space is used as an output. It shall be.
[0032]
That is, the type of color to be assigned is limited depending on which of the small color spaces to divide the color space belongs.
However, white W dots indicate that dots are not actually hit, and yellow Y, magenta M, and cyan C dots indicate dot hits with inks of each color, and further, red R and green G , Blue B dots indicate Y + M, Y + C, M + C overlapping, and black dots indicate Y, M, C overlapping or black dot strike with pure black ink.
[0033]
It should be noted that the setting of the color space and the division of the color space are not limited to those shown in FIGS. 7 and 8, and it is apparent that various modifications are possible.
Here, the manner in which the primary color signals are distributed to the color gradation signals Ay, Am, Ac (color image signals) performed as described above will be described in detail according to the flowcharts of FIGS.
[0034]
In the flowchart of FIG. 9, in S1 and S2, as in S31 and S32 of the flowchart of FIG. 1, a table of random component th1 (non-periodic component) and a reference matrix (for example 2 × 2) of periodic component th2 are used. (Checker pattern in pixel units).
Next, the density data for each color of the given three primary color gradation signals Ay, Am, and Ac are added together to determine which small color space shown in FIG. 8 belongs to the original color. Ctotal (← Ay + Am + Ac) is calculated (S3).
[0035]
Next, the target value Ctarget is determined (S4).
The target value Ctarget is determined by adding the target values Ctarget-y, Ctarget-m, and Ctarget-c for each color (Ctarget ← Ctarget-y + Ctarget-m + Ctarget-c), and the target value Ctarget-y, for each color. Ctarget-m and Ctarget-c are error components Aerror-y, Aerror-m, and Aerror-c for each color allocated to the original color gradation signals Ay, Am, and Ac from the surrounding pixels by the error diffusion method. It is calculated by adding the random number component (non-periodic component) th1 × coeff and the periodic component th2 × coeff2 of the random number table.
[0036]
Ctarget-y = Ay + Aerror-y + th1 × coeff + th2 × coeff2
Ctarget-m = Am + Aerror-m + th1 × coeff + th2 × coeff2
Ctarget-c = Ac + Aerror-c + th1 × coeff + th2 × coeff2
Ctarget = Ctarget-y + Ctarget-m + Ctarget-c
Subsequently, it is determined which small color space belongs based on the parameter Ctotal, and a process of distributing any primary color representing the small color space to which it belongs based on the target value Ctarget is executed (S5). .
[0037]
Here, since the random component th1 and the periodic component th2 are added in the calculation of the target values Ctarget-y, Ctarget-m, and Ctarget-c for each color that is the basis of the target value Ctarget, the random component th1 The occurrence of dithered images can be avoided to suppress the occurrence of graininess noise, particularly in highlights and shadows. In addition, the periodic component th2 that reflects the characteristics of the original image with the basic checkered pattern does not exist in the original image. The occurrence of striped patterns can be suppressed.
[0038]
Note that the coefficient coeff, coeff2 multiplied by the random component th1 and the periodic component th2, in other words, the distribution ratio of the random component th1 and the periodic component th2 may be a fixed value as described above. However, it is preferable to select an optimum value for each medium (printer) to which the processed image signal is output, and it may be changed according to the input signal.
[0039]
Here, the contents of the sorting process in S5 will be described in detail according to the flowchart of FIG.
In the flowchart of FIG. 10, first, based on the parameter Ctotal, it is determined which of the three small color spaces shown in FIGS. 7 and 8 belongs.
[0040]
Specifically, it is determined whether the parameter Ctotal is either Ctotal ≦ 255, 255 <Ctotal <510, or Ctotal ≧ 510 (S11).
If Ctotal ≦ 255 and belongs to the first small color space expressed by the primary colors W, Y, M, and C, it is determined whether or not the target value Ctarget is 180 or less (12 ). When the target value Ctarget is 180 or less, it is determined that it belongs to the vicinity of the highlight in the first small color space, and is one of the primary colors of the small color space belonging to the pixel. White W is distributed (S13).
[0041]
Note that the reference 180 for white W distribution is exemplary, and is not limited to this value. However, the first small color space represented by the primary colors W, Y, M, and C is not limited thereto. It is preferable to set a value that substantially divides the volume of the volume corresponding to the distribution of primary colors.
On the other hand, if the target value Ctarget exceeds 180, the yellow Y target value Ctarget-y is equal to or greater than the magenta M target value Ctarget-m, and the yellow Y target value Ctarget-y is the cyan C target value. It is determined whether or not it is equal to or greater than Ctarget-c (S14).
[0042]
If the target value Ctarget-m of magenta M and the target value Ctarget-c of cyan C do not exceed the target value Ctarget-y of yellow Y, one of the primary colors of the small color space belonging to the pixel The yellow Y is distributed (S15).
If there is a target value that exceeds the target value Ctarget-y for yellow Y, it is determined whether the target value Ctarget-m for magenta M is equal to or greater than the target value Ctarget-c for cyan C (S16). .
[0043]
When the target value Ctarget-m of magenta M is equal to or greater than the target value Ctarget-c of cyan C, magenta M, which is one of the primary colors of the small color space belonging to the pixel, is distributed (S17). .
If the target value Ctarget-m of magenta M is less than the target value Ctarget-c of cyan C, cyan C, which is one of the primary colors of the small color space belonging to the pixel, is allocated (S18). .
[0044]
That is, when the belonging to the first small color space expressed by the primary colors of W, Y, M, and C is determined by the parameter Ctotal, the four primary colors (colors corresponding to the vertices of the space) are adjacent. The primary color having the highest degree is assigned, and the assigned primary color is doted on the pixel.
As described above, when the affiliation with the first small color space is determined, the colors are sorted only among the four primary colors W, Y, M, and C representing the first small color space. Although the color belongs to the first small color space in the vicinity of the highlight, dark dots (K, R, G, B dots) are suddenly hit for area gradation processing. You can avoid that.
[0045]
On the other hand, if the parameter Ctotal is Ctotal ≧ 510 and belongs to the third small color space expressed by the primary colors K, R, G, B, whether the target value Ctarget is 585 or more. Is discriminated (S19). If the target value Ctarget is greater than or equal to 585, it is determined that it belongs to the shadow vicinity in the first small color space, and black, which is one of the primary colors of the small color space belonging to the pixel. K is distributed (S20).
[0046]
When the target value Ctarget is less than 585, the yellow Y target value Ctarget-y, the magenta M target value Ctarget-m, and the cyan C target value Ctarget-c are compared (S21), and the yellow Y target value is compared. When Ctarget-y is the smallest, blue B (superposition of magenta M and cyan C), which is a complementary color of yellow Y, is assigned (S22). When the target value Ctarget-c for cyan C is the smallest (S23), cyan Red R (superposition of yellow Y and magenta M), which is a complementary color of C, is distributed (S24). When the target value Ctarget-m of magenta M is the smallest, green G (yellow Y and cyan C (Overlay) is distributed (S25).
[0047]
As described above, when the affiliation with the third small color space is determined, the colors are sorted only among the four primary colors K, R, G, and B representing the third small color space. Although the color belongs to the third small color space in the vicinity of the shadow, light and dark dots (W, Y, M, and C dots) are suddenly hit for area gradation processing. Can be avoided.
[0048]
Further, when the Ctotal is 255 <Ctotal <510 and belongs to the second small color space expressed by the primary colors Y, M, C, R, G, B, the target value Ctarget is 383 or less. (S26), it is determined whether it is an area close to the first small color space or an area close to the third small color space in the second small color space. To do.
[0049]
When it is determined that the target value Ctarget is 383 or less, the target value Ctarget-y of yellow Y, the target value Ctarget-m of magenta M, and the target value Ctarget-c of cyan C are compared, so that yellow The primary colors having the highest proximity among Y, magenta M, and cyan C are assigned (S14 to S18).
If the target value Ctarget exceeds 383, the target value Ctarget-y of yellow Y, the target value Ctarget-m of magenta M, and the target value Ctarget-c of cyan C are compared, so that yellow Y, magenta The primary color having the lowest degree of proximity is discriminated from among M and cyan C, and any of red R, green G, and blue B that are complementary to the discriminated primary color is assigned (S21 to S25).
[0050]
When it belongs to the second small color space, that is, when it is neither near the shadow nor near the highlight, as described above, Y, M, C, R, G, Since sorting is performed only in the primary colors of B, white W dots and black K dots are not hit.
As described above, when any one of the primary colors of white W, yellow Y, magenta M, cyan C, black K, blue B, green G, and red R is distributed for each pixel, such distribution (binarization) is performed. ) Is calculated for each color (Y, M, C) (S6).
[0051]
Then, the calculated error is distributed to surrounding pixels based on the error diffusion method, and error components Aerror-y, Aerror-m, Aerror-c in the periodic pixels are set (S7), and processing is performed on all the pixels. Until the process is completed (S8), the processes of S1 to S7 are repeated.
By the way, the reference matrix used for the setting of the periodic component th2 may be common to each color, but a different matrix may be used for each color.
[0052]
For example, while creating a 16 × 16 basic matrix matrix with a checkered pattern of 2 × 2 units (see FIG. 11), a matrix matrix1 (see FIG. 12) in which the basic matrix matrix is shifted to the right by two, and the basic matrix matrix A matrix matrix2 (see FIG. 13) is created by shifting the bottom by two.
The three matrixes matrix, matrix1, and matrix2 are made to correspond to each color. For example, when the original color signal is R, G, and B, the basic matrix matrix is set when R is set, the matrix matrix1 is set when B is set, and Sometimes the matrix matrix2 is used.
[0053]
According to this configuration, any one of the complementary color combinations occurs preferentially in the gray halftone portion, and color unevenness is less likely to occur.
For example, when the original color signal has four colors Y, M, C, and K, matrix is associated with K, matrix 1 is associated with Y, matrix 1 is associated with M, and matrix 2 is associated with C. You can do that.
[0054]
【The invention's effect】
  As described above, according to the image processing method of the first aspect of the present invention, the non-periodic component for avoiding the occurrence of granular noise and the periodic component for avoiding the occurrence of regular striped patterns Is added to each as necessary, for example, to increase the proportion of non-periodic components in the highlight portion and shadow portion to avoid the occurrence of granular noise, while in the halftone, the proportion of periodic components is increased. Thus, it is possible to suppress regular noise that occurs regardless of the original image. Therefore, there is an effect that the image quality of the image processed by the error diffusion method can be improved.
  According to the second aspect of the present invention, the ratio of the periodic component (random number component) is increased in the vicinity of the highlight portion and the shadow portion, while the proportion of the periodic component is increased for each color in the halftone. The target value can be set, and the suppression of the graininess noise in the highlight and shadow portions and the suppression of the stripe pattern in the halftone can be effectively performed.
[0055]
  Claim 3According to the described invention, the distribution ratio of the periodic component and the non-periodic component is appropriately changed according to the characteristics of the output medium such as a printer, and the generation of the granular noise and the regular stripe pattern is effective for each output medium. There is an effect that it can be suppressed.
[0056]
  Claim 4According to the described invention, since the periodic component can be set in a form in which the change of the input image signal is added to the basic periodic change, it is possible to suppress the occurrence of a regular stripe pattern without impairing the image quality. There is.
  Claim 5According to the described invention, any one of the combinations of complementary colors can be preferentially generated in the gray halftone portion, so that it is possible to suppress the occurrence of color unevenness.
[0057]
  Claim 6According to the described invention, there is an effect that a regular striped pattern can be effectively beaten by the checkered pattern.
  Claim 7According to the described invention, there is an effect that the processing can be simplified by having the aperiodic component as a table.
[Brief description of the drawings]
FIG. 1 is a flowchart illustrating a first form of image processing.
FIG. 2 is a diagram showing an example of a 16 × 16 Bayer matrix.
FIG. 3 is a diagram showing a checkered matrix of 2 × 2 pixel units.
FIG. 4 is a diagram showing a checkered matrix in units of 4 × 4 pixels.
FIG. 5 is a diagram for explaining how error diffusion is weighted;
FIG. 6 is a diagram for explaining how error diffusion is weighted;
FIG. 7 is a diagram showing a color space division configuration according to the second embodiment.
FIG. 8 is a diagram showing a color space division configuration according to the second embodiment;
FIG. 9 is a flowchart showing a second form of image processing.
FIG. 10 is a flowchart showing primary color allocation in the second embodiment.
FIG. 11 is a diagram showing a checkered reference matrix of 2 × 2 pixel units.
FIG. 12 is a diagram showing a matrix in which the arrangement of the reference matrix is shifted by two pixels in the right direction.
FIG. 13 is a diagram showing a matrix in which the arrangement of the reference matrix is shifted downward by two pixels.

Claims (7)

カラー階調画像をオリジナルよりもレベル数の少ない濃度階調と面積階調との組み合わせで表現する画像処理方法であって、
処理対象となる入力信号に対して、誤差成分と、周期性成分と、非周期性成分とを加えるようにし、
前記入力信号が所定値からハイライト部に近付くにつれて又は前記所定値からシャドウ部に近付くにつれて、前記周期性成分を少なくするとともに前記非周期性成分を多くすることで、前記入力信号に応じて、前記周期性成分と、前記非周期性成分との配分比率を変化させることを特徴とする画像処理方法。
An image processing method for expressing a color gradation image by a combination of density gradation and area gradation having a lower number of levels than the original,
An error component, a periodic component, and an aperiodic component are added to the input signal to be processed,
As the input signal approaches the highlight part from a predetermined value or approaches the shadow part from the predetermined value, by reducing the periodic component and increasing the non-periodic component , according to the input signal, An image processing method comprising changing a distribution ratio between the periodic component and the non-periodic component.
前記入力信号をB0とし、前記非周期性成分をth1とし、前記周期性成分をth2としたときの目標値を、The target value when the input signal is B0, the non-periodic component is th1, and the periodic component is th2,
目標値=入力信号+誤差成分+(|所定値−B0|/所定値)×th1×係数1+{1−(|所定値−B0|/所定値)}×th2×係数2Target value = input signal + error component + (| predetermined value−B0 | / predetermined value) × th1 × coefficient 1+ {1- (| predetermined value−B0 | / predetermined value)} × th2 × coefficient 2
により設定することを特徴とする請求項1に記載の画像処理方法。The image processing method according to claim 1, wherein the image processing method is set by:
前記入力信号の処理後の画像信号の出力媒体によって、前記周期性成分と、前記非周期性成分との配分比率を変化させることを特徴とする請求項1又は2に記載の画像処理方法。The image processing method according to claim 1, wherein a distribution ratio between the periodic component and the non-periodic component is changed according to an output medium of the image signal after processing the input signal. 前記周期性成分が、前記入力信号毎に異なることを特徴とする請求項1〜3のいずれか1つに記載の画像処理方法。The image processing method according to claim 1, wherein the periodic component is different for each input signal. 前記周期性成分が、各色毎に異なることを特徴とする請求項1〜4のいずれか1つに記載の画像処理方法。The image processing method according to claim 1, wherein the periodic component is different for each color. 前記周期性成分が、市松模様となることを特徴とする請求項1〜5のいずれか1つに記載の画像処理方法。The image processing method according to claim 1, wherein the periodic component has a checkered pattern. 前記非周期性成分をテーブルでもつことを特徴とする請求項1〜6のいずれか1つに記載の画像処理方法。The image processing method according to claim 1, wherein the non-periodic component is stored in a table.
JP24209695A 1995-09-20 1995-09-20 Image processing method Expired - Lifetime JP3740721B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24209695A JP3740721B2 (en) 1995-09-20 1995-09-20 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24209695A JP3740721B2 (en) 1995-09-20 1995-09-20 Image processing method

Publications (2)

Publication Number Publication Date
JPH0993446A JPH0993446A (en) 1997-04-04
JP3740721B2 true JP3740721B2 (en) 2006-02-01

Family

ID=17084248

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24209695A Expired - Lifetime JP3740721B2 (en) 1995-09-20 1995-09-20 Image processing method

Country Status (1)

Country Link
JP (1) JP3740721B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8045809B2 (en) 2006-05-26 2011-10-25 Ricoh Company, Ltd. Image forming apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8045809B2 (en) 2006-05-26 2011-10-25 Ricoh Company, Ltd. Image forming apparatus

Also Published As

Publication number Publication date
JPH0993446A (en) 1997-04-04

Similar Documents

Publication Publication Date Title
US5973803A (en) Combined color halftoning
KR100681108B1 (en) Tone dependent plane dependent error diffusion halftoning
US5991438A (en) Color halftone error-diffusion with local brightness variation reduction
US5243443A (en) Halftoning with error feedback and image dependent enhancement
JP4503105B2 (en) Method for halftoning a multichannel digital color image
JPH08107500A (en) Error diffusion halfton processing system and method of using homogeneous response of high/low brightness picture area
JPH10109443A (en) Color image processing method
JP3426851B2 (en) Dot forming method for multicolor printing
JP2003116002A (en) Method for changing digital color image into halftone image
JP4149269B2 (en) Error diffusion method and system using intermediate dots
US6791718B1 (en) Halftone printing with dither matrices generated by using cluster filters
JP3639397B2 (en) Color image processing device by image area, image output device, image processing method, and storage medium
JP4535978B2 (en) Image forming apparatus, image forming method, and image forming program
JP3740721B2 (en) Image processing method
US6707576B1 (en) Noise modulation error diffusion of digital halftoning
JPH09139841A (en) Image processing method
JP2905106B2 (en) Method of creating threshold matrix and method of binarizing color image
JP2006033064A (en) Image forming method, and image forming apparatus
US6006011A (en) Target patterns controlled error management
JP3782028B2 (en) Method, system, and processor-readable medium for creating aesthetic color printouts
JP5644808B2 (en) Image processing apparatus and image processing method
JP3870056B2 (en) Image processing apparatus and method, computer program, and computer-readable storage medium
JP4280473B2 (en) Image processing apparatus and method
US7394572B2 (en) Method and apparatus for processing of half-tone image
JP2800117B2 (en) Image forming device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050405

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050606

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050719

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050916

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051031

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091118

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101118

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111118

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111118

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121118

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121118

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131118

Year of fee payment: 8

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term