【0001】
【発明の属する技術分野】
本発明は、与えられた描画命令に従って描画オブジェクトを展開処理する画像処理技術に関するものである。
【0002】
【従来の技術】
パーソナルコンピュータなどの上位処理装置から記録装置や表示装置などの出力装置に画像を表示させる場合、上位処理装置から出力される描画命令に従って描画オブジェクトを描画処理し、ビットマップイメージを生成する展開処理が行われる。現在の記録装置の一般的な解像度は600dpi程度であるが、展開処理では、このような出力装置の解像度に合わせて展開処理を行っている。
【0003】
しかし、文字や線画などにおいては、600dpi程度の解像度では斜めのエッジ部にジャギーと呼ばれる凹凸が視認され、視覚的な画質の劣化を生じてしまう。このようなジャギーを低減するため、いくつかの手法が提案されている。
【0004】
図10は、イメージエンハンス技術の一例の説明図である。ジャギーを低減するための一つの方法として、イメージエンハンス技術がある。この技術は、例えば図10(A)に示すような斜めの階段状の部分について、図10(B)に示すように段差よりも小さな画素を擬似的に埋めることによって、斜めの部分の段差を少なくしてなだらかにする技術である。このような技術によって、斜め線の部分におけるジャギーを低減することができる。
【0005】
しかし、例えば図10(C)に示すように線同士が90度で交差する付近では、交点付近を階段状の部分であると誤判定し、図10(D)に示すように斜めに画素を埋め込むことによってエッジが鈍るという副作用が発生してしまう。また、量子化誤差によって図10(E)に示すように線の幅が不均一となったり、あるいは図10(F)に示すように線の間隔が不均一になるという不具合については、このイメージエンハンス技術では解決することはできない。
【0006】
図11は、パルス幅変調方式の一例の説明図である。このパルス幅変調方式は、記録装置として電子写真方式を用いる場合の高解像度化の方法の一つである。具体的には、中間調のビデオデータに対し、参照する三角波の種類を切り替えて出力する。例えば図11(A)に示すように、1画素中で次第に電圧の高くなる三角波を用い、しきい値以下の電圧において記録されるように制御する。これによって、1画素の左側においてしきい値に応じた面積が記録される。同様に図11(B)に示すように、1画素中で次第に電圧の低くなる三角波を用い、しきい値以下の電圧において記録されるように制御する。これによって、1画素の右側においてしきい値に応じた面積が記録される。例えば特許文献1などにも、このパルス幅変調方式が記載されている。
【0007】
図11においてはしきい値を三角波の最大電圧と最小電圧の間の50%に設定した例を示しており、これによって1画素の半分の面積に記録することができる。例えば図11(A)または図11(B)のいずれかを選択することによって、水平方向の解像度を部分的に2倍に向上させることができる。もちろん、しきい値を変更すればさらに細かく制御可能であるし、他の三角波を用いることもある。
【0008】
通常の色情報は濃度を表現するが、エッジ部などの高解像度が必要な画素については濃度の代わりに図形の形状を表す形状情報を保持させ、両者を識別する情報(以下、タグと呼ぶ)を付加する。例えば図11に示す例では、図11(A)に示す三角波か、あるいは図11(B)に示す三角波のいずれを選択するかを示す情報を形状情報として保持し、形状情報を保持している旨を示すタグを付加すればよい。これによって、部分的に解像度を向上させることができ、またページ全体を高解像度で保持しなくともよいためデータ量を低減することができ、オブジェクトの特性にあった解像度と階調性を両立することができる。さらに、イメージエンハンス技術において解決できなかった線幅や線の間隔についても均一にすることが可能である。
【0009】
特許文献3には、上述のような形状情報の保持方法の一例が記載されており、階調数の一部を形状情報に割り当て、具体的には256階調のうち16階調分を形状情報に用い、240階調により濃度を表すことが記載されている。この場合、タグを別途付加しなくても濃度情報のビットを参照するだけで形状情報であるのか濃度情報であるのかを識別することが可能である。しかし、階調数が減少するため、表現可能な濃度あるいは色数が減少してしまい、再現性に問題がある。
【0010】
図12は、パルス幅変調方式を適用した場合の白抜けへの対応の説明図である。記録装置において画像の記録出力を行う場合、3色の色材(シアン(C)、マゼンタ(M)、イエロー(Y))とともに黒(K)の色材を用いる場合が多い。このような記録装置において黒の文字や線画を描画する場合には、通常、黒(K)の色材を用い、他のCMYの色材を用いないように描画する。上述のようなパルス幅変調方式を用いるための形状情報を利用する場合も同様であり、黒(K)の濃度の代わりに形状情報を出力し、他の色成分については濃度を0(白色)としている。しかし、黒の文字や線画の周辺画素が白以外の有色の場合には、形状情報を用いて1画素の一部のみに記録したために、白地が露出してしまい、白抜けが発生する。
【0011】
図12(A)ではC、Yによる緑の画像上に文字「あ」を描画した場合を示している。なお、図12において色材色CMYKのほかにTと記したのはタグを表している。背景となる緑の画素は、形状情報を含まない一般の画素であるため、タグを‘N’として示している。このような緑の背景上に黒の文字「あ」を描画するとき、文字のエッジ部分では、黒の濃度情報の代わりに形状情報を保存する。この状態を図12(B)に示している。中央の画素において左半分が黒くなっているが、この画素のタグを‘G’として形状情報を含むことを示し、K色の濃度として左半分を記録することを示す情報を保持させる。しかし、このように単純に形状情報を適用すると、中央の画素の右半分が白く抜けているのが分かる。この白抜けが原因となり、文字そのものの画質は向上しても、ページ全体で見た場合に画質が劣化してしまう場合がある。
【0012】
このような不具合を解消するため、形状情報をK色の濃度の代わりに保持するとともに、他のCMY色については黒の文字や線画としての描画を行わずに背景の色を残すことが考えられている。例えば図12(C)に示すように、タグは形状情報を含むことを示し、形状情報をK色の濃度情報の代わりに保持するとともに、背景の緑色を示すC、Y色の濃度をそのまま保存する。これによって、エッジ部の画素について、K色の色材で左半分に記録されるとともに、C、Y色の色材でも背景色が記録され、白抜けは防止される。なお、このような白抜けの防止処理については、例えば特許文献2等に記載されている。
【0013】
図13は、従来の描画処理の具体例の説明図である。上述のように、記録装置において画像の記録出力を行う場合、CMYKの4色の色材を用いる場合が多いが、それぞれの色材に対応する色成分の画像ごとに、記録装置が必要とする画素位置が異なっている。そのため、このような記録装置に対して画像を出力する画像処理装置においては、記録装置への画像の出力が容易に行えるように、それぞれの色材色ごとの画像、いわゆる面順次の画像を生成している。
【0014】
図13に示す例では、緑色の矩形を描画した後に黒の文字「あ」を描画する例を示している。面順次の画像として描画処理を行う場合、図13(A)に示すようにそれぞれの色材色、例えばC、M、Y、Kごとに領域を確保する。図13では、それぞれの色の画像領域を平行四辺形で示している。もちろん、上述のようにタグを保持する場合には、このほかにタグの領域も別途確保することになる。
【0015】
そして、描画命令に従って、描画オブジェクトを各色の領域に描画してゆく。まず図13(B)では、緑色の矩形を描画する。緑色はC色とY色の混合色(2次色)であるので、C色の領域とY色の領域には例えば最大濃度の値を書き込み、M色とK色の領域には例えば最小濃度の値を書き込む。
【0016】
次に図13(C)において、文字「あ」を描画する。この場合には従来の一般的な描画方法では、K色の領域に例えば最大濃度の値を書き込み、C色、M色、Y色の領域には例えば最小濃度の値を書き込む。しかし、上述のように白抜けを防止する場合には、少なくとも文字「あ」のエッジ部分について、C、M、Y色として背景となる色をそのまま残した上で、K色の領域に形状情報を書き込む。
【0017】
このように、描画処理を行う際には描画命令に従って描画オブジェクト毎に上述のようにしてそれぞれの色の領域に対して濃度値を書き込んでゆく処理を繰り返すことになる。
【0018】
このように、描画処理は描画オブジェクトをそれぞれの色の領域に書き込むため、1画素についてメモリへの書き込みを4回以上繰り返して行うことになる。そのため、描画処理はCPU演算と比較するとメモリのアクセス時間を非常に多く必要とする処理であり、時間のかかる処理であった。
【0019】
一方、点順次の場合には、一般に赤(R)、緑(G)、青(B)の3色が用いられるが、いずれの色を表現するにしても3色の濃度情報が必要となる。そのため、例えば黒の文字や線画などについて黒を表現するために3色の濃度情報が必要である。従来はこのような点順次の情報において高解像度化を図るための形状情報を保持しようとする考えはないし、仮に形状情報を濃度情報に代えて保持させようとすると、背景の色情報を保持できないという問題があった。
【0020】
【特許文献1】
特許第3266576号公報
【特許文献2】
特開2000−242461号公報
【特許文献3】
特開平8−223423号公報
【0021】
【発明が解決しようとする課題】
本発明は、上述した事情に鑑みてなされたもので、高速に描画処理を行うことができるとともに、部分的な高解像度化に対応して高品質の画像形成を可能とし、さらに高解像度化したときの白抜けも防止した画像処理装置及び画像処理方法を提供することを目的とするものである。
【0022】
【課題を解決するための手段】
本発明は、与えられた描画命令に従って描画オブジェクトの描画処理を行う画像処理装置及び画像処理方法において、与えられた描画命令に従って描画オブジェクトを第1の解像度で色の3要素データを点順次で展開してカラー点順次情報を生成する。このとき、文字や線画のエッジ部など、少なくとも所定の描画オブジェクトのエッジ部については、第1の解像度よりも高い第2の解像度でエッジ部の形状を表現した形状情報を生成し、カラー点順次情報と形状情報を第1の解像度の画素毎に拡張点順次情報として展開メモリに書き込むことを特徴としている。なお拡張点順次情報は、形状情報が生成された画素については形状情報とカラー点順次情報を含み、それ以外の画素については形状情報が含まれない旨の情報とカラー点順次情報を含むように構成することができる。
【0023】
カラー点順次情報は画素毎に各色の濃度情報が一体となっているため、形状情報と合わせても1画素当たりの展開メモリへのアクセス回数を減少させることができ、処理の高速化を図ることができる。特に、形状情報とカラー点順次情報を一括して展開メモリに書き込むことによって、1画素当たりの展開メモリへのアクセスを1回で済ますことができる。このとき、形状情報とカラー点順次情報のビット数を、使用するデータバス幅に収まるように構成しておくとよい。
【0024】
また、第1の解像度よりも高い第2の解像度における形状情報をカラー点順次情報とともに展開メモリに保持させるので、高解像度化に対応することができる。それとともに、形状情報とともに背景色をカラー点順次情報として保持することによって、白抜けも防止することができる。なお、形状情報を生成する画素におけるカラー点順次情報が最高濃度を表している場合には、背景色と描画色が同色であるので、わざわざ形状情報を保持する必要がない。従ってこのような場合には、形状情報の展開メモリへの書き込みを禁止するように構成することができる。
【0025】
描画命令の中には、ROP(Raster OPeration)演算を指示するものがある。形状情報を含む拡張点順次情報についてROP処理をそのまま行ってしまうと、演算結果が意味をなさなくなる場合が生じる。このような問題を回避するため、形状情報を伴う拡張点順次情報が前記展開メモリに保持されている画素については、形状情報を伴わない一般の画素と同様の拡張点順次情報に変換してからROP演算を行うように構成するとよい。また、形状情報を含む拡張点順次情報ではカラー点順次情報として背景色が保持されているため、これを最高濃度に変更することによって、正確なROP演算を行うことが可能となる。
【0026】
さらに、描画後、展開メモリに保持されている拡張点順次情報を出力する際には、拡張点順次情報が形状情報を伴うか否かを判定し、形状情報を伴わない場合には色空間変換処理及びカラー点順次情報を各色ごとの面順次情報へ変換する点面変換処理を行って面順次情報を出力する。また、形状情報を伴う場合には、形状情報を用いて所定の色版について高解像度出力処理を行うとともにカラー点順次情報について色空間変換処理及び点面変換処理を行って面順次情報を出力すればよい。
【0027】
【発明の実施の形態】
図1は、本発明の実施の一形態を示すブロック図である。図中、1は画像処理部、2は出力部、11は展開処理部、12は展開メモリ、13は出力制御部である。この例においては、画像処理部1は例えば上位処理装置などから描画命令を受け取り、その描画命令に従って順に描画オブジェクトの展開処理を行う。そして、展開された画像を出力部2に対して出力する。出力部2は、例えばCMYK等の色材を用いて画像を形成する記録装置などであり、面順次情報を受け取るものとする。画像処理装置1では、出力部2に対応し、CMYKなどの色材色の画像を面順次で出力するものとする。なお、出力部2は図11に示したような高解像度化のための出力制御が可能であるものとする。
【0028】
画像処理部1は、展開処理部11、展開メモリ12、出力制御部13等を含んで構成されている。展開処理部11は、与えられた描画命令を順に解釈し、描画命令に従って描画オブジェクトを第1の解像度で色の3要素データを点順次で展開してカラー点順次情報を生成する。また、文字や線画などのエッジ部など、少なくとも所定の描画オブジェクトのエッジ部については、第1の解像度よりも高い第2の解像度でエッジ部の形状を表現した形状情報を生成する。そして、形状情報を生成しなかった描画画素については、形状情報を含まない旨の情報とカラー点順次情報を拡張点順次情報として展開メモリ12に書き込む。また、形状情報を生成した描画画素については、生成した形状情報とカラー点順次情報を拡張点順次情報として展開メモリ12に書き込む。形状情報とともにカラー点順次情報を拡張点順次情報として書き込む場合、カラー点順次情報として背景色を保持させておき、高解像度化の処理の際の白抜けを防止する。なお、カラー点順次情報が出力部2における最高濃度(例えば黒)を示している場合には、その上に黒の文字や線画を描画しても同色となって見えないため、高解像度化しても無駄になる。そのため、このような場合には形状情報を展開メモリ12へ書き込まないようにし、一般の画素と同様に扱うと良い。また画像処理部1は、描画命令に従ってROP処理を行うことができる。このときの処理については後述する。
【0029】
展開メモリ12は、展開処理部11で生成された拡張カラー点順次情報を第1の解像度の画素毎に保持する。図2は、拡張点順次情報のデータフォーマットの具体例の説明図、図3は、形状情報が示す画像形成位置の一例の説明図である。図2に示した例では、拡張点順次情報には、カラー点順次情報としてB、G、Rの3色についてそれぞれの色の濃度情報とともに、タグ情報、形状情報が含まれている。タグ情報には、少なくとも形状情報が含まれているか否かを示すビットが含まれている。タグ情報には、このほかにも画素の属性情報などが含まれる場合がある。
【0030】
また形状情報は、ここでは上述のようなパルス幅変調方式により高解像度により画像形成を行う場合の画像形成位置を示している。形状情報が示す画像形成位置の一例を図3に示している。図3(A)には図11に具体例を示したように左半分あるいは右半分の記録のいずれかを選択することによって主走査方向の解像度を2倍にした場合を示している。この場合、2つのパターンのいずれかを選択するための情報を形状情報とすればよい。図3(B)に示した例は主走査方向とともに副走査方向についても解像度を2倍とした場合の例を示しており、14通りのパターンが存在する。このパターンのいずれかを選択するための情報を形状情報とすればよい。もちろんこのほかのパターンを設定しておき、それらのパターンを選択するための情報を形状情報としても良い。このような形状情報を用いることによって、出力部2において高解像度の画像形成が可能となる。なお、形状情報を生成しない場合には、形状情報のフィールドは利用しないか、あるいはタグ情報のフィールドの一部として利用することができる。
【0031】
なお、図3に示したように形状情報としてどのような形状を保持するかによって、必要とするビット数が異なってくる。記録する領域の分割数が増えれば解像度は高くなるが、その分情報量が増え、形状情報として必要なビット数が増えてしまう。そのため、出力部2が表現できる実質解像度や処理時間を考慮して、分割数など、どのような形状を形状情報として保持するかを決めるのが望ましい。
【0032】
カラー点順次情報であるB、G、Rの3色の濃度情報とは別に形状情報を保持しているため、点順次情報でありながら、形状情報とともに背景色の情報を保持することが可能である。すなわち、形状情報が含まれている場合、そのカラー点順次情報として背景色を保持しておくことができる。これによって、出力部2で形状情報を用いた高解像度出力を行う際に白抜けの発生を防止することができる。
【0033】
一般にB、G、Rの各色の濃度情報は8ビットで表現されることが多い。またタグ情報及び形状情報を8ビットで表現することによって、全体として32ビットで表現することができる。このビット幅は現在一般に使用されているデータバス幅の範囲内であり、図2に示す拡張点順次情報は1画素分を1回の展開メモリ12へのアクセスによって書き込むことができる。従来の面順次情報では、タグを含めて5回の異なるアドレスへのアクセスが必要であったのに比べて展開メモリ12へのアクセス回数を大幅に減少させることができ、処理を高速化することができる。
【0034】
もちろんデータフォーマットは図2に限られるものではないし、それぞれのビット数も上述の説明に限られるものではない。また、保持する色成分もRGBに限られるものではないことは言うまでもない。カラー点順次情報と、形状情報の有無、それに形状情報有りとした場合に形状情報が付加されるデータであれば任意である。
【0035】
展開メモリ12には、上述のような画素毎の拡張点順次情報が並べられることになる。例えば同じスキャンライン上の画素の拡張点順次情報は、連続した領域に書き込んでおくことができる。
【0036】
出力制御部13は、展開メモリ12に保持されている拡張点順次情報を面順次情報として出力部2へ出力する。出力の際には、出力部2が要求する色空間への色空間変換処理や点順次情報を面順次情報に変換する点面変換処理などを施す。また、拡張点順次情報中に形状情報が含まれている場合には、その形状情報に応じた高解像度処理により出力部2において部分的に高解像度の出力処理が行われるように制御する。
【0037】
次に、本発明の実施の一形態における動作の概要について説明する。図4は、展開処理部における1つの描画命令に対する動作の一例を示すフローチャートである。ここでは解像度の具体例として、通常の第1の解像度を600dpiとし、それよりも高解像度の第2の解像度を1200dpiとして説明する。展開処理部11は、描画命令を受け取ると、受け取った描画命令について1つずつ順に図4に示した処理を行う。なお、描画オブジェクトを描画する際の処理については、例えば特許文献1、特許文献2に記載されている内容とほぼ同様であるが、拡張点順次情報を生成するなどの点で異なっている。
【0038】
まずS21において、描画命令中のコマンドを解釈し、その解釈の結果によりS22において処理を分ける。ここでは通常の解像度(600dpi)での文字描画、高解像度(1200dpi)での文字描画、通常の解像度(600dpi)での図形描画、高解像度(1200dpi)での図形描画、写真描画(通常の解像度のみ)、ROP処理、その他の処理に分けている。
【0039】
S23、S25,S27における通常の解像度による文字、図形、写真の描画処理は、それぞれ文字、図形、写真の描画領域内の各画素について、RGBのカラー点順次情報を生成し、また形状情報がない旨の情報を含むタグを付加して、拡張点順次情報として展開メモリ12に書き込む。これによって文字、図形、写真の通常の解像度による描画処理を行う。
【0040】
また、S24,S26における高解像度による文字、図形の描画処理では、少なくともエッジ部の画素について、形状情報を生成する。そして、形状情報がある旨の情報を含むタグと、生成した形状情報の部分について、展開メモリ12に書き込む。カラー点順次情報はそのまま残すことによって背景の色をそのまま利用した新たな拡張点順次情報とすることができる。あるいは、既に展開メモリ12に書き込まれている背景となるカラー点順次情報を取得し、そのカラー点順次情報と、生成した形状情報、それに形状情報がある旨の情報を含むタグを付加して、拡張点順次情報として展開メモリ12に書き込むようにしてもよい。
【0041】
エッジ部以外の画素については、通常の解像度の場合と同様に処理しても良いし、全てを塗りつぶす形状情報を生成してエッジ部の画素と同様に処理を行っても良い。なお、図11に示した形状情報の具体例では、左半分又は右半分の描画を行う形状情報しか示していないが、文字や図形の内部まで形状情報を生成する場合には、全てを塗りつぶす形状情報を追加すればよい。図5は、形状情報を用いた場合と用いない場合における出力部で描画される画像の色材量の説明図である。通常の解像度で黒の文字を描画する場合、図5(A)に示すように黒の色材のみで1画素が形成される。しかし、形状情報を使用し、さらに白抜けの防止のために背景色を保存して出力部2で画像を形成した場合、背景色の上に文字や図形のための色材を乗せることになる。そのため、図5(B)に示すように1画素を形成するための色材量が増大してしまう。このように多くの色材が用いられると、パイルハイトの問題の発生が懸念される。また複数色の色材により画像が形成されるため、黒に他の色が混合され、きれいな黒にならないなど、色の再現性に問題が発生する場合がある。このような問題を回避するためには、文字や図形の内部の画素については、通常の解像度の場合と同様に拡張点順次情報を生成して展開メモリ12に書き込むことが望ましい。そもそも輪郭でない領域は高解像度の情報が必要ないため、通常の解像度での描画を行っても何ら問題はない。
【0042】
なお、黒文字や黒の図形を描画する際に、背景色が黒の場合など、背景色として出力部2で最大濃度で記録されるような場合には、文字や図形を描画しても背景色と同色となり、エッジ部で高解像度にした意味がなくなる。そのため、このような場合には形状情報を生成しないか、拡張メモリ12に書き込まず、通常の解像度での拡張点順次情報を拡張メモリ12に書き込めばよい。
【0043】
図6は、展開処理部によって書き込まれる拡張点順次情報の具体例の説明図である。図6に示す例では、上述の図13に示した例と同様に、緑色の矩形を描画した後に黒の文字「あ」を描画する例を示している。ここでは文字「あ」のエッジ部が描画される位置の1画素について示している。初期状態では、図6(A)に示すようにB、G、Rの3色の濃度がB0,G0,R0であるものとする。また、タグには形状情報無しの情報が含まれている。この場合、形状情報は無効である。
【0044】
図6(B)では、緑色の矩形が描画される。これによって、カラー点順次情報としてはB、G、Rの3色の濃度はB1,G1,R1となる。ここでは矩形の描画は通常の解像度あるいは高解像度であるが矩形内部の画素であるものとして、形状情報を生成していない。従って、タグには形状情報無しの情報が含まれている。
【0045】
次に図6(C)において、文字「あ」を高解像度で描画する。この文字「あ」のエッジ部分では高解像度化のために形状情報を生成する。そしてタグとして形状情報有りの情報を含めておく。さらに、カラー点順次情報として、この時点で展開メモリ12に書き込まれているカラー点順次情報(すなわち背景となる色)をそのまま残す。この場合、例えば展開メモリ12から同じ画素のカラー点順次情報を読み出してタグや形状情報とともに拡張点順次情報を作成して展開メモリ12に書き戻したり、あるいはタグ及び形状情報の部分だけ展開メモリ12に書き込めばよい。このようにして、文字「あ」のエッジ部については、高解像度化のための形状情報と、背景色のカラー点順次情報とを含む拡張点順次情報を展開メモリ12に保持させておくことができる。
【0046】
なお、図13と比較して分かるように、従来の面順次情報ではそれぞれの色成分の領域にそれぞれの色の濃度情報を書き込まなければならず、複数回の展開メモリ12のアクセスが必要であった。しかし本発明の拡張点順次情報では、タグや形状情報を含めても、1回の展開メモリ12のアクセスで書き込むことが可能であり、展開メモリ12のアクセスが頻繁に発生する描画処理においては、処理を高速化することができる。
【0047】
図4に戻り、S28において行うROP処理について説明する。ROP処理は、基本的には展開メモリ12に書き込まれている画像(デスティネーション画像)と、新たに描画しようとする画像(ソース画像)との間で論理演算を行い、展開メモリ12に書き戻す処理である。このほかに2つの論理演算をビット毎に切り替える画像(パターン画像)や演算量域を示す画像(マスク画像)等を用いることもある。
【0048】
図7は、拡張点順次情報を用いたROP処理の一例の説明図である。ROP処理は上述のように画像間での論理演算を行う。このとき、1画素の拡張点順次情報にはタグや形状情報が含まれている。そのため、図7(A)に示すように、デスティネーション画像の拡張点順次情報に形状情報が含まれている場合、ROP処理後は形状情報が必要であるか否かは不明であり、タグあるいはさらに形状情報としてどのような値となるかは分からない。さらには双方とも形状情報が含まれている場合であっても同様である。
【0049】
このような不具合を回避するため、形状情報が含まれている拡張点順次情報についてROP演算を行う場合には、例えば図7(B)に示すように、形状情報を含まない(あるいは形状情報を無効とした)通常の画素の拡張点順次情報に変換してからROP処理を行うことができる。この場合、変換前の形状情報を含む拡張点順次情報は、そのカラー点順次情報として背景色を保持しているので、ROP処理は背景色とのROP演算を行うことになる。
【0050】
別の回避方法として、例えば図7(C)に示すように、文字や図形の内部と同様に黒の通常の解像度の画素の拡張点順次情報に変換し、ROP演算を行うことができる。この場合、当該画素は黒の文字や図形の一部としてROP演算処理がなされることになる。なお、この場合のカラー点順次情報は、最高濃度(黒)としておくことになる。
【0051】
あるいは、図7(B)に示す方法と図7(C)に示す方法のいずれかを、例えば形状情報から記録される面積の割合などから選択するように構成することもできる。もちろんこのほかにも、例えばタグ及び形状情報を必ずマスクし、演算結果については形状情報を含まない通常のタグを付加してしまうなど、他の方法を適用することも可能である。なお、デスティネーション画像が形状情報を含まない場合、ソース画像として拡張点順次情報に形状情報が含まれるケースであっても、形状情報を含まない拡張点順次情報を生成することによって上述の不具合を回避することが可能である。
【0052】
上述のようにして、例えば1ページ分の描画命令について、展開メモリ12に対して描画処理(ROP処理を含む)が終了すると、展開メモリ12に書き込まれた拡張点順次情報は出力制御部13によって読み出され、出力制御部13が出力部2を制御しながら、面順次情報を出力部2に出力し、画像を形成させる。
【0053】
出力制御部13は、展開メモリ12から拡張点順次情報を読み出したとき、まずタグ中の形状情報の有無を判定する。そして、形状情報を含んでいなければ次の図8に示す処理を、また、形状情報を含んでいる場合には、後述する図9に示す処理を行う。
【0054】
図8は、出力制御部における通常の解像度での出力処理の一例を示すフローチャートである。形状情報を含まない通常の画素については、S31において、拡張点順次情報中のRGB色空間のカラー点順次情報をCMYK色空間のカラー点順次情報に色空間変換を行った後、S32において、CMYK色空間のカラー点順次情報をCMYK色空間の面順次情報に変換する点面変換を行う。そして、出力部2に対して通常の画像形成時の参照波を選択させた後、C、M、Y、Kのそれぞれの画像信号を出力部2に出力する。これによって、出力部2では、C、M、Y、Kのそれぞれの色材を用いて当該画素の画像を形成することができる。
【0055】
図9は、出力制御部における高解像度での出力処理の一例を示すフローチャートである。拡張点順次情報中に形状情報が含まれている画素の場合、上述のように文字や線画のエッジ部分は形状情報として保持し、背景色をカラー点順次情報として保持している。カラー点順次情報として保持されている背景色については、図8で説明した処理と同様にして、S41において、RGB色空間のカラー点順次情報をCMYK色空間のカラー点順次情報に色空間変換を行った後、S42において、CMYK色空間のカラー点順次情報を面順次情報に変換する点面変換を行うが、このとき、CMYのみについて面順次情報に変換する。そして、出力部2に対して、C、M、Yについては通常の画像形成時の参照波を選択させた後、C、M、Yのそれぞれの画像信号を出力部2に出力する。これによって、出力部2では、C、M、Yのそれぞれの色材を用いて当該画素の画像を形成することができる。
【0056】
また、形状情報については、S43においてその形状情報をデコードした後、Kについては形状情報で選択される参照波を使用するように出力部2を制御し、Kの画像信号を出力部2に出力する。これによって、出力部2では、Kの色材を用いて、高解像度での画像形成を行うことができる。
【0057】
このように、図8に示した処理あるいは図9に示した処理を、拡張点順次情報中の形状情報の有無を示す情報に応じて選択し、出力制御を行うことによって、出力部2では、部分的に高解像度で画像を形成することができる。また、高解像度で画像を形成する画素については、CMYによって背景色も画像形成するので、白抜けが発生せず、良好な画質で画像を形成することができる。
【0058】
上述の説明においては、黒の文字や図形について、エッジ部を高解像度で形成する場合について示した。本発明はこれに限らず、予め決められた特定の色の文字や図形について、同様に処理することが可能である。
【0059】
また、上述の説明では、展開処理部11が受け取る描画命令については任意であり、例えばPDLなどであっても良いし、また、展開処理部11が受け取る前に中間コードに変換されていても良い。また、ページ毎に展開処理を行うほか、例えばバンド単位で展開するような構成など、種々の展開処理に対して応用することができる。
【0060】
【発明の効果】
以上の説明から明らかなように、本発明によれば、拡張点順次情報として描画した各画素の情報を保持するので、展開メモリへのアクセスを減少させることができ、描画処理を高速に実行することができる。また、拡張点順次情報には、3色のカラー点順次情報とともに、高解像度で画像形成する画素については形状情報を付加することができるので、部分的に高解像度で画像を形成することができる。また、形状情報とともに背景色のカラー点順次情報を保持することによって、高解像度での画像形成を行う場合でも白抜けを防止することができる。このように、高速に描画処理を行うことができるとともに、高画質の画像を形成することができるという効果がある。
【図面の簡単な説明】
【図1】本発明の実施の一形態を示すブロック図である。
【図2】拡張点順次情報のデータフォーマットの具体例の説明図である。
【図3】形状情報が示す画像形成位置の一例の説明図である。
【図4】展開処理部における1つの描画命令に対する動作の一例を示すフローチャートである。
【図5】形状情報を用いた場合と用いない場合における出力部で描画される画像の色材量の説明図である。
【図6】展開処理部によって書き込まれる拡張点順次情報の具体例の説明図である。
【図7】拡張点順次情報を用いたROP処理の一例の説明図である。
【図8】出力制御部における通常の解像度での出力処理の一例を示すフローチャートである。
【図9】出力制御部における高解像度での出力処理の一例を示すフローチャートである。
【図10】イメージエンハンス技術の一例の説明図である。
【図11】パルス幅変調方式の一例の説明図である。
【図12】パルス幅変調方式を適用した場合の白抜けへの対応の説明図である。
【図13】従来の描画処理の具体例の説明図である。
【符号の説明】
1…画像処理部、2…出力部、11…展開処理部、12…展開メモリ、13…出力制御部。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing technique for developing a drawing object in accordance with a given drawing command.
[0002]
[Prior art]
When an image is displayed from an upper processing device such as a personal computer on an output device such as a recording device or a display device, a rendering process of drawing a drawing object in accordance with a drawing command output from the higher processing device and generating a bitmap image is performed. Done. The general resolution of the current recording apparatus is about 600 dpi, but in the expansion processing, the expansion processing is performed according to the resolution of such an output device.
[0003]
However, in the case of characters and line drawings, at a resolution of about 600 dpi, irregularities called jaggies are visually recognized at oblique edge portions, and visual quality is degraded. Several techniques have been proposed to reduce such jaggies.
[0004]
FIG. 10 is a diagram illustrating an example of the image enhancement technique. One method for reducing jaggies is image enhancement technology. According to this technique, for example, as shown in FIG. 10B, pixels smaller than the steps are quasi-filled as shown in FIG. It is a technique to make it smoother. With such a technique, it is possible to reduce jaggies at oblique lines.
[0005]
However, for example, in the vicinity where lines intersect at 90 degrees as shown in FIG. 10 (C), it is erroneously determined that the vicinity of the intersection is a step-like portion, and pixels are obliquely displayed as shown in FIG. 10 (D). The embedding has a side effect of dulling the edge. In addition, the problem that the line width becomes uneven as shown in FIG. 10E due to the quantization error or the line interval becomes uneven as shown in FIG. Enhancement technology cannot solve it.
[0006]
FIG. 11 is an explanatory diagram of an example of the pulse width modulation method. This pulse width modulation method is one of the methods for increasing the resolution when an electrophotographic method is used as a recording device. Specifically, for the halftone video data, the type of the triangular wave to be referred to is switched and output. For example, as shown in FIG. 11A, a control is performed so that recording is performed at a voltage equal to or lower than a threshold using a triangular wave whose voltage gradually increases in one pixel. As a result, an area corresponding to the threshold is recorded on the left side of one pixel. Similarly, as shown in FIG. 11B, a triangular wave having a gradually lower voltage in one pixel is used, and control is performed so that recording is performed at a voltage lower than the threshold value. As a result, an area corresponding to the threshold is recorded on the right side of one pixel. For example, Patent Document 1 and the like also describe this pulse width modulation method.
[0007]
FIG. 11 shows an example in which the threshold value is set to 50% between the maximum voltage and the minimum voltage of the triangular wave, whereby recording can be performed in half the area of one pixel. For example, by selecting either FIG. 11A or FIG. 11B, the horizontal resolution can be partially doubled. Of course, if the threshold value is changed, finer control is possible, and another triangular wave may be used.
[0008]
Normal color information expresses density, but for pixels requiring high resolution, such as an edge portion, shape information representing the shape of a figure is stored instead of density, and information for identifying the two (hereinafter, referred to as a tag) Is added. For example, in the example shown in FIG. 11, information indicating which one of the triangular wave shown in FIG. 11A and the triangular wave shown in FIG. 11B is selected is held as shape information, and the shape information is held. A tag indicating the effect may be added. As a result, the resolution can be partially improved, and the entire page does not need to be maintained at a high resolution, so that the data amount can be reduced, and both the resolution and gradation suitable for the characteristics of the object can be achieved. be able to. Further, it is possible to make the line width and the line interval which could not be solved by the image enhancement technology uniform.
[0009]
Patent Literature 3 describes an example of a shape information holding method as described above. A part of the number of gradations is assigned to the shape information, and specifically, 16 gradations out of 256 gradations are used as the shape information. It describes that the density is represented by 240 gradations for information. In this case, it is possible to identify whether the information is shape information or density information only by referring to the bit of density information without separately adding a tag. However, since the number of gradations is reduced, the density or the number of colors that can be expressed is reduced, and there is a problem in reproducibility.
[0010]
FIG. 12 is an explanatory diagram of how to deal with white spots when the pulse width modulation method is applied. When recording and outputting an image in a recording apparatus, a black (K) color material is often used together with three color materials (cyan (C), magenta (M), and yellow (Y)). When drawing black characters and line drawings in such a recording apparatus, the drawing is usually performed using a black (K) color material and not using other CMY color materials. The same applies to the case where the shape information for using the pulse width modulation method as described above is used. The shape information is output instead of the density of black (K), and the density of other color components is set to 0 (white). And However, when the peripheral pixels of the black character or the line drawing are colored other than white, the white background is exposed because white information is exposed because only one pixel is recorded using the shape information.
[0011]
FIG. 12A shows a case where the character “A” is drawn on a green image of C and Y. Note that, in FIG. 12, T represents tags in addition to the color material colors CMYK. The green pixel serving as the background is a general pixel that does not include shape information, and thus the tag is shown as “N”. When drawing a black character "A" on such a green background, at the edge of the character, shape information is stored instead of black density information. This state is shown in FIG. Although the left half of the center pixel is black, the tag of this pixel is set to 'G' to indicate that shape information is included, and information indicating that the left half is to be recorded as the density of K color is held. However, when shape information is simply applied in this way, it can be seen that the right half of the central pixel is white. Due to this white spot, even if the image quality of the character itself is improved, the image quality may deteriorate when viewed on the entire page.
[0012]
In order to solve such a problem, it is conceivable to hold the shape information instead of the density of the K color and leave the background color without drawing black characters or line drawings for other CMY colors. ing. For example, as shown in FIG. 12C, the tag indicates that the tag includes shape information, and the shape information is stored instead of the K color density information, and the C and Y color densities indicating the background green are stored as they are. I do. As a result, the pixels of the edge portion are recorded in the left half with the K color material, and the background color is also recorded with the C and Y color materials, thereby preventing white spots. It should be noted that such white spot prevention processing is described in, for example, Patent Document 2 and the like.
[0013]
FIG. 13 is an explanatory diagram of a specific example of a conventional drawing process. As described above, when an image is printed and output by a printing apparatus, four color materials of CMYK are often used, but the printing apparatus requires each color component image corresponding to each color material. The pixel positions are different. Therefore, in an image processing apparatus that outputs an image to such a recording apparatus, an image for each color material color, that is, a so-called plane-sequential image is generated so that the image can be easily output to the recording apparatus. are doing.
[0014]
The example illustrated in FIG. 13 illustrates an example in which a black character “A” is drawn after a green rectangle is drawn. When rendering processing is performed as a frame-sequential image, an area is secured for each color material color, for example, C, M, Y, and K, as shown in FIG. In FIG. 13, the image areas of the respective colors are indicated by parallelograms. Of course, when a tag is held as described above, a tag area is additionally secured separately.
[0015]
Then, the drawing object is drawn in the area of each color according to the drawing command. First, in FIG. 13B, a green rectangle is drawn. Since green is a mixed color (secondary color) of C and Y colors, for example, a maximum density value is written in the C color area and the Y color area, and a minimum density value is written in the M and K colors, for example. Write the value of
[0016]
Next, in FIG. 13C, the character “A” is drawn. In this case, in a conventional general drawing method, for example, a maximum density value is written in the K color area, and a minimum density value is written in the C, M, and Y color areas, for example. However, in order to prevent white spots as described above, at least for the edge portion of the character “A”, the background color is left as it is as the C, M, and Y colors, and the shape information is stored in the K color region. Write.
[0017]
As described above, when the drawing process is performed, the process of writing the density value in each color region for each drawing object in accordance with the drawing command as described above is repeated.
[0018]
As described above, in the drawing process, the drawing object is written in the area of each color, so that writing to the memory for one pixel is repeated four times or more. Therefore, the drawing process is a process that requires a much longer memory access time than the CPU operation, and is a time-consuming process.
[0019]
On the other hand, in the case of dot-sequential, three colors of red (R), green (G), and blue (B) are generally used. However, to express any color, density information of three colors is required. . Therefore, for example, three-color density information is required to express black for black characters and line drawings. Conventionally, there is no idea to hold shape information for achieving high resolution in such dot-sequential information, and if it is attempted to hold shape information instead of density information, background color information cannot be held. There was a problem.
[0020]
[Patent Document 1]
Japanese Patent No. 3266576
[Patent Document 2]
JP-A-2000-242461
[Patent Document 3]
JP-A-8-223423
[0021]
[Problems to be solved by the invention]
The present invention has been made in view of the above-described circumstances, and enables high-speed drawing processing, high-quality image formation corresponding to partial high resolution, and further higher resolution. It is an object of the present invention to provide an image processing apparatus and an image processing method in which white spots are prevented.
[0022]
[Means for Solving the Problems]
The present invention relates to an image processing apparatus and an image processing method for performing a drawing process of a drawing object in accordance with a given drawing command. To generate color dot sequential information. At this time, for at least the edge of a predetermined drawing object, such as the edge of a character or a line drawing, shape information expressing the shape of the edge at a second resolution higher than the first resolution is generated, and color point sequential printing is performed. It is characterized in that information and shape information are written to a development memory as extended point sequential information for each pixel of a first resolution. Note that the extended point sequential information includes the shape information and the color point sequential information for the pixel for which the shape information is generated, and includes the information that the shape information is not included and the color point sequential information for the other pixels. Can be configured.
[0023]
Since the color dot sequential information integrates the density information of each color for each pixel, the number of accesses to the development memory per pixel can be reduced even when combined with the shape information, and the processing speed is increased. Can be. In particular, by writing the shape information and the color dot sequential information collectively to the development memory, it is possible to access the development memory per pixel only once. At this time, it is preferable that the number of bits of the shape information and the color dot sequential information be configured to be within the data bus width to be used.
[0024]
Further, since the shape information at the second resolution higher than the first resolution is stored in the development memory together with the color dot sequential information, it is possible to cope with higher resolution. At the same time, by storing the background color together with the shape information as color dot sequential information, white spots can also be prevented. When the color dot sequential information in the pixel generating the shape information indicates the highest density, the background color and the drawing color are the same color, and there is no need to hold the shape information. Therefore, in such a case, it is possible to configure to prohibit writing of the shape information to the development memory.
[0025]
Some drawing commands instruct a ROP (Raster Operation) operation. If the ROP process is performed on the extended point sequential information including the shape information as it is, the calculation result may not be meaningful. In order to avoid such a problem, for a pixel in which extended point sequential information with shape information is held in the expansion memory, the pixel is converted into the same extended point sequential information as a general pixel without shape information. It is preferable to perform a ROP operation. Further, in the extended point sequential information including the shape information, since the background color is held as the color point sequential information, it is possible to perform an accurate ROP operation by changing the background color to the maximum density.
[0026]
Furthermore, when outputting the extended point sequential information held in the development memory after drawing, it is determined whether or not the extended point sequential information accompanies the shape information. Processing and point-to-plane conversion processing for converting color dot-sequential information into plane-sequential information for each color are performed to output plane-sequential information. In addition, when accompanied by shape information, high-resolution output processing is performed for a predetermined color plane using the shape information, and color space conversion processing and point plane conversion processing are performed on color dot sequential information to output plane sequential information. Just fine.
[0027]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 is a block diagram showing one embodiment of the present invention. In the figure, 1 is an image processing unit, 2 is an output unit, 11 is a development processing unit, 12 is a development memory, and 13 is an output control unit. In this example, the image processing unit 1 receives a drawing command from, for example, a higher-level processing device or the like, and sequentially performs drawing processing of the drawing object according to the drawing command. Then, the developed image is output to the output unit 2. The output unit 2 is, for example, a recording device that forms an image using a color material such as CMYK, and receives image-sequential information. The image processing apparatus 1 corresponds to the output unit 2 and outputs an image of a color material color such as CMYK in a frame sequential manner. It is assumed that the output unit 2 can perform output control for high resolution as shown in FIG.
[0028]
The image processing unit 1 includes a development processing unit 11, a development memory 12, an output control unit 13, and the like. The rendering processing unit 11 interprets the given rendering commands in order, and develops the rendering object in a dot-sequential manner at the first resolution according to the rendering commands to generate color dot-sequential information. In addition, for at least an edge of a predetermined drawing object such as an edge of a character or a line drawing, shape information expressing the shape of the edge at a second resolution higher than the first resolution is generated. Then, for drawing pixels for which shape information has not been generated, information indicating that shape information is not included and color dot sequential information are written to the expansion memory 12 as extended dot sequential information. For the drawing pixel for which the shape information has been generated, the generated shape information and color dot sequential information are written to the development memory 12 as extended point sequential information. When the color dot sequential information is written as the extended dot sequential information together with the shape information, the background color is held as the color dot sequential information to prevent white spots in the process of increasing the resolution. If the color dot sequential information indicates the highest density (for example, black) in the output unit 2, even if a black character or a line drawing is drawn thereon, the same color cannot be seen. Is also wasted. Therefore, in such a case, the shape information should not be written to the development memory 12 and should be handled in the same manner as a general pixel. Further, the image processing unit 1 can perform the ROP process according to the drawing command. The process at this time will be described later.
[0029]
The expansion memory 12 holds the extended color dot sequential information generated by the expansion processing unit 11 for each pixel of the first resolution. FIG. 2 is an explanatory diagram of a specific example of the data format of the extended point sequential information, and FIG. 3 is an explanatory diagram of an example of an image forming position indicated by the shape information. In the example shown in FIG. 2, the extended point sequential information includes tag information and shape information, as well as density information of each of the three colors B, G, and R, as color point sequential information. The tag information includes at least a bit indicating whether or not shape information is included. The tag information may also include pixel attribute information and the like.
[0030]
Here, the shape information indicates an image forming position when an image is formed with high resolution by the pulse width modulation method as described above. FIG. 3 shows an example of the image forming position indicated by the shape information. FIG. 3A shows a case where the resolution in the main scanning direction is doubled by selecting either the left half or the right half recording as shown in the specific example in FIG. In this case, information for selecting one of the two patterns may be used as the shape information. The example shown in FIG. 3B shows an example in which the resolution is doubled in both the main scanning direction and the sub-scanning direction, and there are 14 patterns. Information for selecting one of these patterns may be used as shape information. Of course, other patterns may be set, and information for selecting those patterns may be used as the shape information. By using such shape information, a high-resolution image can be formed in the output unit 2. When the shape information is not generated, the shape information field may not be used, or may be used as a part of the tag information field.
[0031]
Note that the required number of bits differs depending on what shape is held as shape information as shown in FIG. The resolution increases as the number of divisions of the recording area increases, but the amount of information increases accordingly, and the number of bits required as shape information increases. Therefore, it is desirable to determine what shape, such as the number of divisions, to hold as shape information in consideration of the substantial resolution and processing time that can be expressed by the output unit 2.
[0032]
Since the shape information is held separately from the density information of the three colors B, G, and R, which are color dot sequential information, it is possible to hold the background color information together with the shape information while being dot sequential information. is there. That is, when the shape information is included, the background color can be held as the color dot sequential information. As a result, white spots can be prevented from occurring when the output unit 2 performs high-resolution output using shape information.
[0033]
Generally, the density information of each color of B, G, and R is often expressed by 8 bits. In addition, by expressing the tag information and the shape information with 8 bits, the tag information and the shape information can be expressed with 32 bits as a whole. This bit width is within the range of the data bus width generally used at present, and the extended point sequential information shown in FIG. 2 can be written for one pixel by accessing the development memory 12 once. Compared to the conventional field sequential information, which requires access to five different addresses including the tag, the number of accesses to the development memory 12 can be greatly reduced, and the processing can be speeded up. Can be.
[0034]
Of course, the data format is not limited to that shown in FIG. 2, and the number of bits is not limited to the above description. Needless to say, the color components to be held are not limited to RGB. Any data can be used as long as it is color point sequential information, presence or absence of shape information, and data to which shape information is added when there is shape information.
[0035]
In the expansion memory 12, the extension point sequential information for each pixel as described above is arranged. For example, extended point sequential information of pixels on the same scan line can be written in a continuous area.
[0036]
The output control unit 13 outputs the extended point sequential information held in the development memory 12 to the output unit 2 as plane sequential information. At the time of output, a color space conversion process to a color space required by the output unit 2 and a point plane conversion process of converting dot sequential information to frame sequential information are performed. When shape information is included in the extended point sequential information, control is performed so that the output unit 2 performs high-resolution output processing in part by high-resolution processing according to the shape information.
[0037]
Next, an outline of an operation according to the embodiment of the present invention will be described. FIG. 4 is a flowchart illustrating an example of an operation in response to one drawing command in the expansion processing unit. Here, as a specific example of the resolution, a description will be given assuming that the normal first resolution is 600 dpi and the second resolution higher than that is 1200 dpi. Upon receiving the drawing command, the expansion processing unit 11 sequentially performs the processing shown in FIG. 4 on the received drawing command one by one. Processing for drawing a drawing object is substantially the same as that described in Patent Documents 1 and 2, for example, but differs in that extended point sequential information is generated.
[0038]
First, in S21, the command in the drawing command is interpreted, and the processing is divided in S22 according to the result of the interpretation. Here, character drawing at a normal resolution (600 dpi), character drawing at a high resolution (1200 dpi), graphic drawing at a normal resolution (600 dpi), graphic drawing at a high resolution (1200 dpi), and photo drawing (normal resolution) Only), ROP processing, and other processing.
[0039]
The character, graphic, and photo drawing processes at normal resolutions in S23, S25, and S27 generate RGB color dot sequential information for each pixel in the character, graphic, and photo drawing areas, and have no shape information. A tag including information indicating the effect is added to the expansion memory 12 as extended point sequential information. In this way, drawing processing of characters, figures, and photographs at a normal resolution is performed.
[0040]
In the process of drawing characters and graphics with high resolution in S24 and S26, shape information is generated at least for pixels at the edge portions. Then, a tag including information indicating that there is shape information and a portion of the generated shape information are written in the development memory 12. By leaving the color point sequential information as it is, new extended point sequential information using the background color as it is can be obtained. Alternatively, the background color dot sequential information which is already written in the development memory 12 is obtained, and the color dot sequential information, the generated shape information, and a tag including information indicating that the shape information is present are added, You may write it in the expansion memory 12 as extended point sequential information.
[0041]
For pixels other than the edge portion, processing may be performed in the same manner as in the case of normal resolution, or shape information for filling all may be generated and processing may be performed in the same manner as for the pixel at the edge portion. Note that, in the specific example of the shape information shown in FIG. 11, only the shape information for drawing the left half or the right half is shown. Information can be added. FIG. 5 is an explanatory diagram of a color material amount of an image drawn by the output unit when the shape information is used and when it is not used. When a black character is drawn at a normal resolution, one pixel is formed only with a black color material as shown in FIG. However, when an image is formed by the output unit 2 using the shape information and storing the background color to prevent white spots, a color material for characters and figures is placed on the background color. . Therefore, as shown in FIG. 5B, the amount of color material for forming one pixel increases. When a large number of color materials are used, there is a concern that a problem of pile height may occur. In addition, since an image is formed by using a plurality of color materials, a problem may occur in color reproducibility such that black is mixed with other colors and the black does not become clear black. In order to avoid such a problem, it is desirable to generate extended point sequential information and write it to the development memory 12 for pixels inside a character or a figure as in the case of normal resolution. Since a high resolution information is not necessary for a region which is not a contour in the first place, there is no problem even if drawing is performed at a normal resolution.
[0042]
When a black character or a black figure is drawn, for example, when the background color is recorded at the maximum density on the output unit 2 such as when the background color is black, even if the character or figure is drawn, the background color is not changed. The color becomes the same as that of the image, and there is no point in increasing the resolution at the edge. Therefore, in such a case, it is sufficient to write the extension point sequential information at the normal resolution to the extension memory 12 without generating the shape information or writing the shape information into the extension memory 12.
[0043]
FIG. 6 is an explanatory diagram of a specific example of the extension point sequential information written by the expansion processing unit. The example illustrated in FIG. 6 illustrates an example in which, similar to the example illustrated in FIG. 13 described above, a green rectangle is drawn and then a black character “A” is drawn. Here, one pixel at the position where the edge portion of the character “A” is drawn is shown. In the initial state, it is assumed that the densities of the three colors B, G, and R are B0, G0, and R0, as shown in FIG. Further, the tag includes information without shape information. In this case, the shape information is invalid.
[0044]
In FIG. 6B, a green rectangle is drawn. As a result, as color point sequential information, the densities of the three colors B, G, and R become B1, G1, and R1. Here, the drawing of a rectangle has a normal resolution or a high resolution, but no shape information is generated as pixels inside the rectangle. Therefore, the tag includes information without shape information.
[0045]
Next, in FIG. 6C, the character "A" is drawn at a high resolution. At the edge portion of the character "A", shape information is generated for higher resolution. Then, information with shape information is included as a tag. Further, as the color dot sequential information, the color dot sequential information (that is, the background color) written in the development memory 12 at this time is left as it is. In this case, for example, the color dot sequential information of the same pixel is read out from the development memory 12 and the extended point sequential information is created together with the tag and the shape information and written back to the development memory 12, or only the tag and shape information portion is developed. Just write it to In this manner, for the edge portion of the character “A”, the expanded point sequential information including the shape information for increasing the resolution and the color point sequential information of the background color may be stored in the expansion memory 12. it can.
[0046]
As can be seen from comparison with FIG. 13, in the conventional frame sequential information, density information of each color must be written in each color component area, and a plurality of accesses to the development memory 12 are required. Was. However, in the extended point sequential information of the present invention, even if tags and shape information are included, it is possible to write by one access to the development memory 12, and in the drawing processing in which access to the development memory 12 frequently occurs, Processing can be sped up.
[0047]
Returning to FIG. 4, the ROP processing performed in S28 will be described. In the ROP processing, a logical operation is basically performed between an image (destination image) written in the development memory 12 and an image (source image) to be newly drawn, and the data is written back to the development memory 12. Processing. In addition, an image (pattern image) in which two logical operations are switched for each bit, an image indicating a calculation amount area (mask image), and the like may be used.
[0048]
FIG. 7 is an explanatory diagram of an example of the ROP process using the extended point sequential information. The ROP process performs a logical operation between images as described above. At this time, the extended point sequential information of one pixel includes a tag and shape information. Therefore, as shown in FIG. 7A, when shape information is included in the extended point sequential information of the destination image, whether or not the shape information is necessary after the ROP process is unknown, and the tag or Further, it is not known what value will be used as the shape information. Further, the same applies to the case where both include shape information.
[0049]
In order to avoid such a problem, when performing the ROP operation on the extended point sequential information including the shape information, for example, as shown in FIG. ROP processing can be performed after conversion into extended point sequential information of normal pixels (invalid). In this case, since the extended point sequential information including the shape information before conversion holds the background color as the color point sequential information, the ROP process performs the ROP operation with the background color.
[0050]
As another avoiding method, as shown in FIG. 7C, for example, as in the case of the inside of a character or a figure, the information is converted into extended point sequential information of black pixels of normal resolution, and the ROP operation can be performed. In this case, the ROP calculation process is performed on the pixel as a part of a black character or graphic. In this case, the color point sequential information is set to the highest density (black).
[0051]
Alternatively, one of the method shown in FIG. 7B and the method shown in FIG. 7C can be selected from, for example, the ratio of the area recorded from the shape information. Of course, other methods can also be applied, such as always masking the tag and the shape information, and adding a normal tag that does not include the shape information to the calculation result. When the destination image does not include the shape information, even if the extended point sequential information includes the shape information as the source image, the above-described problem is solved by generating the extended point sequential information that does not include the shape information. It is possible to avoid.
[0052]
As described above, when the rendering process (including the ROP process) for the rendering command for one page is completed for the rendering memory 12, the extension point sequential information written in the rendering memory 12 is output by the output control unit 13. While being read, the output control unit 13 outputs the frame sequential information to the output unit 2 while controlling the output unit 2 to form an image.
[0053]
When reading out the extension point sequential information from the development memory 12, the output control unit 13 first determines whether or not there is shape information in the tag. If the shape information is not included, the process shown in FIG. 8 is performed. If the shape information is included, the process shown in FIG. 9 described later is performed.
[0054]
FIG. 8 is a flowchart illustrating an example of output processing at a normal resolution in the output control unit. For normal pixels that do not include shape information, in step S31, color point sequential information in the RGB color space in the extended point sequential information is subjected to color space conversion into color point sequential information in the CMYK color space. A point plane conversion is performed to convert the color point sequential information in the color space to the plane sequential information in the CMYK color space. Then, after causing the output unit 2 to select a reference wave at the time of normal image formation, each of the C, M, Y, and K image signals is output to the output unit 2. Thus, the output unit 2 can form an image of the pixel using the respective color materials of C, M, Y, and K.
[0055]
FIG. 9 is a flowchart illustrating an example of output processing at high resolution in the output control unit. In the case of a pixel whose shape information is included in the extended point sequential information, as described above, the edge portion of a character or a line drawing is stored as shape information, and the background color is stored as color point sequential information. As for the background color held as the color dot sequential information, in the same manner as in the processing described with reference to FIG. 8, in S41, the color dot sequential information in the RGB color space is converted into color dot sequential information in the CMYK color space. After that, in S42, point plane conversion for converting color dot sequential information in the CMYK color space into field sequential information is performed. At this time, only CMY is converted into field sequential information. After the output unit 2 selects a reference wave at the time of normal image formation for C, M, and Y, it outputs the respective image signals of C, M, and Y to the output unit 2. Thus, the output unit 2 can form an image of the pixel using the respective color materials of C, M, and Y.
[0056]
Further, for the shape information, after decoding the shape information in S43, for the K, the output unit 2 is controlled to use the reference wave selected by the shape information, and the K image signal is output to the output unit 2. I do. As a result, the output unit 2 can perform high-resolution image formation using the K color material.
[0057]
As described above, the processing shown in FIG. 8 or the processing shown in FIG. 9 is selected according to the information indicating the presence or absence of the shape information in the extended point sequential information, and output control is performed. An image can be partially formed at a high resolution. Further, as for the pixels forming an image with high resolution, the background color is also formed by CMY, so that white spots do not occur and images can be formed with good image quality.
[0058]
In the above description, a case has been described in which an edge portion is formed with high resolution for black characters and figures. The present invention is not limited to this, and it is possible to perform similar processing on characters and graphics of a predetermined specific color.
[0059]
Further, in the above description, the rendering command received by the expansion processing unit 11 is arbitrary, and may be, for example, PDL, or may be converted into an intermediate code before the expansion processing unit 11 receives it. . Further, in addition to performing the expansion processing for each page, the present invention can be applied to various expansion processing such as a configuration in which expansion is performed in band units.
[0060]
【The invention's effect】
As is apparent from the above description, according to the present invention, since the information of each pixel drawn as the extended point sequential information is held, access to the development memory can be reduced, and the drawing process is executed at high speed. be able to. In addition, since the extension point sequential information can be added with the color dot sequential information of the three colors and the shape information for the pixels forming the image with high resolution, the image can be partially formed with high resolution. . Also, by retaining the color point sequential information of the background color together with the shape information, it is possible to prevent white spots even when performing image formation at high resolution. Thus, there is an effect that the drawing process can be performed at a high speed and a high-quality image can be formed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of the present invention.
FIG. 2 is an explanatory diagram of a specific example of a data format of extended point sequential information.
FIG. 3 is an explanatory diagram of an example of an image forming position indicated by shape information.
FIG. 4 is a flowchart illustrating an example of an operation in response to one drawing command in a development processing unit.
FIG. 5 is an explanatory diagram of a color material amount of an image drawn by an output unit when shape information is used and when it is not used.
FIG. 6 is an explanatory diagram of a specific example of extended point sequential information written by a development processing unit;
FIG. 7 is an explanatory diagram of an example of ROP processing using extended point sequential information.
FIG. 8 is a flowchart illustrating an example of output processing at a normal resolution in an output control unit.
FIG. 9 is a flowchart illustrating an example of output processing at a high resolution in an output control unit.
FIG. 10 is an explanatory diagram of an example of the image enhancement technique.
FIG. 11 is an explanatory diagram of an example of a pulse width modulation method.
FIG. 12 is an explanatory diagram of how to deal with white spots when the pulse width modulation method is applied.
FIG. 13 is an explanatory diagram of a specific example of a conventional drawing process.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Image processing part, 2 ... Output part, 11 ... Development processing part, 12 ... Development memory, 13 ... Output control part.