JP3624153B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP3624153B2 JP3624153B2 JP2000341965A JP2000341965A JP3624153B2 JP 3624153 B2 JP3624153 B2 JP 3624153B2 JP 2000341965 A JP2000341965 A JP 2000341965A JP 2000341965 A JP2000341965 A JP 2000341965A JP 3624153 B2 JP3624153 B2 JP 3624153B2
- Authority
- JP
- Japan
- Prior art keywords
- image information
- smoothing
- resolution
- edge
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/403—Edge-driven scaling; Edge-based scaling
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、入力した低解像情報を高解像情報に解像度変換する画像処理装置及び画像処理方法に関する。
【0002】
【従来の技術】
従来より、入力装置と出力装置の解像度が異なる場合や、解像度の異なる装置間で通信を行う場合等に、低解像情報を高解像情報に変換することが行われている。
【0003】
そして、入力した低解像情報を高解像情報に解像度変換する方法として、様々な方法が提案されている。提案されている従来方法は、対象となる画像の種類(例えば、各画素ごとに階調情報の持つ多値画像、疑似中間調により2値化された2値画像、固定閾値により2値化された2値画像、文字画像等)によって、その変換処理方法が異なっている。本発明で対象としている画像は各画素ごとに階調情報を持つ自然画像等の多値画像であるが、従来より知られている多値画像に対する変換方法である内挿方法には図10に示すような、内挿点に最も近い同じ画素値を配列する最近接内挿方法、図11に示すような内挿点を囲む4点(4点の画素値をA、B、C、Dとする)の距離により、以下の演算によって画素値Eを決定する共1次内挿法等がある。
【0004】
E=(1−i)(1−j)A+i・(1−j)B+j・(1−i)C+ijD
(但し、画素間距離を1とした場合に、Aから横方向にi、縦方向にjの距離があるとする。(i≦1、j≦1))
【0005】
【発明が解決しようとする課題】
しかし、上記従来例には、以下に示す欠点がある。
【0006】
すなわち、図10の方法は構成が簡単であるという利点はあるが、対象画像を自然画像等に用いた場合には拡大するブロック毎に画素値が決定される為、視覚的にブロックが目立ってしまい画質的に劣悪であるといった欠点がある。
【0007】
また、文字、線画像、CG(コンピュータグラフィック)画像等に用いた場合でも、拡大するブロック毎に同一画素値が連続する為、特に、斜線等には、図12(a)、(b)に示す様にジャギーといわれるギザギザの目立った劣悪な画像になってしまう。図12では、縦横ともに2倍の解像度変換の例であるが、倍率が大きくなればなるほど、劣化は大きくなる(図中の“200”、“10”は画素値である。)。
【0008】
図11の方法は自然画像の拡大には一般的に良く用いられている方法である。この方法では、平均化され、スムージングのかかった画質になるが、エッジ部や、シャープな画質が要求される部分には、ぼけた画質になってしまう。さらに、地図等をスキャンした画像や、文字部を含む自然画像の様な場合には、補間によるぼけの為に、大切な情報が受け手に伝わらないこともある。
【0009】
図12(c)は図11の方法により、図12(a)の入力画像情報を縦横2倍ずつに補間処理をした画像情報を示している。
【0010】
図12(c)からも明らかな様に、斜線周辺のみならず、斜線そのものも画素値が均一にならず、ぼけが生じてしまう。
【0011】
また、解像度変換(画素密度変換)をプリンタ等の画像出力装置内部に持たせた時の応用を想定して考えてみる。プリンタでは、ホストコンピュータから送信されてくる画像情報が、イメージスキャナ等の画像入力装置から入力した自然画像情報であったり、ホストコンピュータ上のアプリケーションソフトにて人工的に作成した文字、線画情報であったり、また、CG(コンピュータグラフィック)であったりと様々な状況が考えられる。これらの画像情報の解像度変換をプリンタ内で行う時に、いかなる性質の画像かという属性が識別信号として、画像ごとに送信されてくれば良いが、昨今は識別信号なしで送信されるシステム構成が増えている。
【0012】
この場合、従来は図11の方法により、全画像情報の解像度変換が実行されることが多い。つまり、文字、線画像等の人工的に作成されたものには多少、犠牲になってもらい(図12(c))、自然画像を優先することが行われてきている。プリンタでは、文字、線画が見ずらいのは致命的である。言い換えると、1画素当たり多階調が出力可能な高精彩なプリンタ等では、そのエンジンの出力解像度に見合う良好な解像度変換が実現されていなかった。
【0013】
本発明は上述した従来技術の欠点を除去するものであり、文字、線画像と自然画像が混在している画像を高解像情報に変換する場合、低解像の画像情報で発生しているエッジを崩すように平滑化処理し、平滑化処理より鈍ったエッジから新たな高解像度に見合った急峻なエッジを作成するように解像度変換することで、文字、線画部分に対してはジャギーを発生することなく鮮明にエッジを再現でき、更に自然画像に対しては、補間ぼけの発生を抑えた高画質な画像を作成することができる画像処理装置及び画像処理方法の提供を目的とする。
【0014】
【課題を解決するための手段】
上述した目的を達成するため本発明の画像処理装置は、低解像の多階調の画像情報を高解像情報に解像度変換する画像処理装置において、低解像の画像情報を入力する入力手段と、前記入力手段により入力した画像情報に含まれるエッジ部の階調変化が小さくなるように平滑化処理する平滑化手段と、前記平滑化手段における平滑化処理後に、低解像の画像情報を高解像の画像情報となるように補間する補間手段と、前記補間手段によって補間された高解像の画像情報に対して、前記平滑化手段で平滑化されたエッジ部の階調変化を大きくするようにエッジを作成するエッジ作成手段と、を有する。
【0015】
また、本発明の画像処理方法は、低解像の多階調の画像情報を高解像情報に解像度変換する画像処理方法において、低解像の画像情報を入力する入力工程と、前記入力工程により入力した画像情報に含まれるエッジ部の階調変化が小さくなるように平滑化処理する平滑化工程と、前記平滑化工程における平滑化処理後に、低解像の画像情報を高解像の画像情報となるように補間する補間工程と、前記補間工程によって補間された高解像の画像情報に対して、前記平滑化工程で平滑化されたエッジ部の階調変化を大きくするようにエッジを作成するエッジ作成工程と、を有する。
【0016】
以上の構成において、入力した低解像情報から高解像情報に変換する際に、人工的に作成された文字、線画像等と自然画像が同じ1枚の画像中に混在してある場合でも、人工的な画像の部分に関しては、ジャギーの発生しない、エッジのくっきりした変換が、また、自然画像の部分に関しては、補間ぼけが発生しない良好な画像の作成が実現できる。
【0017】
【発明の実施の形態】
(第1の実施の形態)
図1は本発明にかかる第1の実施の形態を表す要部ブロック図である。本発明の画像処理装置は、主としてプリンタ等の画像出力装置内部に具備することが効率的であるが、画像出力装置以外の画像処理装置、ホストコンピュータ内のアプリケーションソフトとして内蔵することも可能である。
【0018】
図1のブロック図に沿って本実施の形態の動作手順を説明していく。本実施の形態では、入力した画像情報を縦N倍、横M倍(N、Mはそれぞれ2以上の整数)の画素数の情報に変換する例について述べる。
【0019】
図中100は入力端子を示し、低解像の画像情報が入力される。画像情報は1画素当たり多階調の情報とする。入力した低解像情報は、一時、数ライン分のラインバッファ101に格納される。ウインドウ作成手段102は、ラインバッファ101の格納情報より、注目画素周辺の画素群をレジスタ等に格納する手段を示す。図2(a)にウインドウの一例を示す。これは、3×3のウインドウであり、注目画素は中心のEの画素である。ウインドウは、注目画素の処理に伴って、1画素ごと走査していく。本実施の形態では、後述する平滑化処理の為に、図2(b)の3×3のウインドウとそれを含む5×5のウインドウを作成する。
【0020】
103は、階調数検出手段で、ウインドウ内の階調の数(種類)を検出する手段である。図3を用いて説明すると、3×3のウインドウ内で、図3(a)では、階調数は1、(b)では階調数は2、(c)では階調数は6となっている。すなわち、ウインドウ内に幾種の値が存在するのかを検出している。本実施の形態では、このウインドウ内の階調数が、注目画素の解像度変換処理後の(N×M)画素内(以下、注目画素ブロックと称す)の階調数決定に大きく起因することが大きな特徴である。
【0021】
104は、平滑化手段を示し、注目画素のみならず、ウインドウ内を平滑化する手段である。いま、例えば、図4の平滑化フィルタを用いて、図2(b)のウインドウを処理すると、3×3のウインドウ内は図5の様に変換される。
【0022】
105はスイッチを示し、階調数検出手段において、階調数が2以下と判断されたか、否かで切り換える。階調数が2以下(2と1)の場合には、端子Aに、それ以外は端子Bに接続される。
【0023】
106は補間手段を示し、注目画素1画素を(N×M)の画素に補間する。これは、主に共1次補間処理(以下、線形補間処理を称す)が用いられるが、他の公知の補間手段であっても良い。但し、周辺画素との連続性が失われるような補間手段は好ましくない。
【0024】
107は、最大値、最小値検出手段であり、3×3のウインドウ内の画素値の最大値、最小値を検出する手段である。ウインドウ内の階調数が1種類の時には最大値と最小値は同じ値となる。
【0025】
108は配置手段を示す。配置手段の一例を図6に示す。
【0026】
図6中、破線で囲んだ部分が配置手段108を示す。200は閾値算出手段を示し、入力した最大値、最小値より、2値化閾値を算出する。たとえば、閾値をTH、最大値をMAX、最小値をMINとおくと、
TH=(MAX+MIN)/2
として算出する。201は2値化手段を示し、入力した(N×M)画素の注目画素ブロック内の補間情報を、算出した閾値で2値化する。202は画素値代入手段を示し、2値化後のTH以上の画素には最大値を代入し、TH未満の画素には最小値を代入する。代入後の注目画素ブロック内には、ウインドウ内の最大値、最小値が配置されたブロックになる。
【0027】
図1、109はスイッチを示し、配置手段で配置されたブロックか、補間手段106より直接出力されるブロックかを選択する。スイッチを司るのは、階調数検出手段103の階調の数であり、スイッチ105と同様、ウインドウ内の階調数が2以下の場合には、端子Aに、それ以外の場合には端子Bに接続される。
【0028】
110は、出力端子を示し、注目画素ブロック内の(N×M)画素の情報が出力される。
【0029】
すなわち、本実施の形態では、ウインドウ内の階調数が2の場合には、必ず注目画素ブロック内の階調数も2、もしくは1になり、階調数が1の場合には、最大値、最小値とも同じ値である為に、注目画素ブロック内の階調数も1になる。ウインドウ内の階調数が3以上の場合には、補間手段から直接出力される為、注目画素ブロックの階調数は不定である。
【0030】
尚、110から出力されるデータは多値データであるため、プリンタが多値記録できるものであればそのまま多値データを用いて記録を行い、プリンタが2値記録のものであれば、2値化処理の後記録を行う。
【0031】
続いて本実施の形態の処理内容を説明する。
【0032】
いま、本処理をプリンタ等の画像出力装置内の処理と想定して考えてみる。プリンタでは、ホストコンピュータから送信されてくる画像情報が、イメージスキャナ等の画像入力装置から入力した自然画像情報であったり、ホストコンピュータ上のアプリケーションソフトにて作成した文字、線画情報であったり、また、CG(コンピュータグラフィック)画像であったりと様々な状況が考えられる。これらの画像情報の解像度変換をプリンタ内で行う時に、いかなる性質の画像かという属性が識別信号として、画像ごとに送信されてくれば良いが、昨今は識別信号なしで送信されるシステム構成が増えてきている。
【0033】
そこで、本実施の形態では、ウインドウ内に階調数が2の場合には、主に文字、線画像等、ホストコンピュータ上のPDL(ページ記述言語)や、様々なアプリケーションソフトにより作成した画像の可能性があると判断し、解像度変換する際にジャギー(ギザギザ)が発生しないような変換処理を実行する。
【0034】
図7に本実施の形態の処理を実際の値を基に説明する。
【0035】
図7(a)は、ある入力画像中の一部分である。今、破線で囲んだ画素が注目画素、一点鎖線で囲んだ部分がウインドウとする。図7(a)の画像はウインドウ内の階調数が2なので平滑化を行う。図7(b)は、平滑化後の(a)と同じ部分の画素値を示している。破線の注目画素は平滑化の為、“200”が“150”の値に変換されている。
【0036】
図7(c)は注目画素付近の線形補間後の画素値を示している。今、N=M=3として、1画素分が9画素に増加している。破線で囲んだ9画素が注目画素ブロックである。図7(a)のウインドウ内の階調数は2なので配置手段108による再配置を行う。まず、この注目画素ブロック内を2値化する。図7(a)のウインドウより、MAX=200、MIN=50であるので、2値化閾値は、TH=125として2値化する。その結果を図7(d)に示す。図7(e)は、注目画素をずらして処理したあとの最終結果を示している。
【0037】
この例からも明らかな様に、ジャギーを生じることなく、任意の倍率で良好な解像度変換が実現できる。また、ウインドウ内と同じく、注目画素ブロック内でも階調数を2に抑えている為、解像度上昇によるぼけもない。
【0038】
ここで、入力画像情報の解像度依存性について考えてみる。ホストコンピュータ等で作成した文字、線画像等では、低解像時に生じているエッジは、原解像度に依存している為、解像度変換には邪魔な周波数成分が含まれている。その為、邪魔な周波数成分を消してから(エッジを崩してから)解像度変換して、新たな解像度に見合ったエッジ(高周波成分の情報)を作成する必要がある。
【0039】
それに対して自然画像では、画像作成時にLPF(ローパスフィルタ)がかかっている為に、低解像時でも解像度フリーの状態に近い。すなわち、入力状態からエッジが崩された状態であるために、邪魔になる周波数成分が少ない。そこで本実施の形態では、ウインドウ内に階調数が3以上あると、注目画素は自然画像部に属する可能性があると判断し、平滑化手段、及び階調数を2にする配置手段は用いない。
【0040】
(第2の実施の形態)
図8は、本発明第2実施の形態を説明する要部ブロック図である。
【0041】
図2中、図1と同一部には同一番号を付してその詳細な説明は省略する。本実施の形態では、注目画素ブロック内の階調数の決定を、検出した周辺画素の階調数のみならず、周辺画素のコントラストの大きさも評価に含めていることに特徴がある。
【0042】
図中、300はコントラスト算出手段を示し、最大値、最小値検出手段107により検出された最大値、最小値から、その差分、すなわちコントラストを算出する手段である。算出されたコントラストは選択手段301に送信される。選択手段301では、前述の実施の形態同様、階調性検出手段103から検出された周辺画素の階調数の情報も入力する。選択手段301は、比較器を内蔵していて、入力したコントラストと、予め設定した閾値との比較を行い、閾値よりも大きいか、否かを判断する。閾値の設定は、実験的に求めても良い。選択手段301では、周辺画素の階調数が2、かつ、コトラストが、閾値以上の時にのみ、この注目画素は、人工的に作成された画像、すなわた、ホストコンピュータ上のアプリケーションソフト等により作成された文字、線画像、また、PDL(ページ記述言語)等により展開された画像等であると判断する。
【0043】
人工的な画像でない限り、例えば、イメージスキャナ等により入力したままの自然画像では、急峻なエッジ部だとしてもコントラストの高く、しかも階調数が2であることはないと仮定する。もし、自然画像中にそのようなエッジが存在しても、そのエッジは前述したように原情報の解像度に依存しているものであるから、ジャギーの発生しない解像度変換が必要である。
【0044】
周辺画素の階調数が1である場合、コントラストは0になる。そこで、“階調数が1の場合”、及び、“階調数が2、かつ、コントラストが大”と判断された場合には、スイッチ105、スイッチ109にて端子Aに接続し、前述した実施の形態にて説明したように平滑化にて解像度依存性を取り除き、補間した後に、最大値、最小値を配置することによって、良好な解像度変換が実行される。
【0045】
(第3の実施の形態)
図9は、本発明第3の実施の形態を示す要部ブロック図である。図9中、図1、図8と同一部には同一番号を付してある。本実施の形態では、選択手段400による場合分けが、前述の実施の形態よりも増えている。本実施の形態では、より高精彩な画像出力を期待するプリンタ等に有効である。
【0046】
選択手段400の入力は、前述した実施の形態同様、周辺画素の階調数と、コントラストであるが、本実施の形態では注目画素の属性を5種のカテゴリーに分類する。選択手段はスイッチ105、及びスイッチ401の接続を司るが、スイッチの切り換えは表1の示した様に設定する。
【0047】
【表1】
【0048】
まず、カテゴリーナンバー1として、階調性が1であった場合を想定する。階調性1の場合は、人工的な文字、線画像、また、自然画像の一部等、全ての場合が想定される。周辺画素がひとつの階調により成りたっているため、この場合には、0次補間手段402により、注目画素の画素値を(N×M)画素分繰り返す。
【0049】
カテゴリーナンバー2として、周辺画素の階調数が2、かつ、コントラスト大の場合を想定する。この場合は、前述したように、人工的なものと判断し、スイッチ105、スイッチ401ではともにAに接続して、注目画素ブロック内を階調数2以下に抑える。
【0050】
カテゴリーナンバー3として、周辺画素の階調数が2、かつ、コントラスト小の場合を想定する。この場合は、カテゴリーナンバー1と同様、人工的なもの、自然画像ともに考えられる。もともとコントラストが小さいため、いかなる処理でも画質的には目立たないが、本実施の形態では0次補間手段402により出力する。
【0051】
カテゴリーナンバー4として、周辺画素の階調数が3以上、かつ、コントラスト大の場合を想定する。この場合は、自然画像中のエッジ部にかかっている場合と想定する。その為、線形補間手段403のまま出力するのではなく、線形補間後の注目画素ブロック内を配置手段108にて階調性を2に調整した後の、合成手段404において、ある配分比率によって合成する。配分比率の設定は、予め実験的に求めても良いし、コントラストの大きさに依存させて動的に切り換えることも可能である。配置手段後の画像は、エッジを急峻にした画像であり、線形補間情報と合成することで、階調方向に滑らかなエッジが作成され、補間ぼけの少ない解像度変換が実現できる。
【0052】
カテゴリーナンバー5として、周辺画素の階調数が3以上、かつ、コントラスト小の場合を想定する。この場合は、自然画像の平坦部と想定され、通常の線形補間手段により、注目画素ブロック内の情報を作成する。
【0053】
以上、様々なカテゴリーに対する処理を示したが、この処理に限定されるものではない。また、カテゴリーの種類もこれに限定するものではない。 また、ジャギーの発生しない解像度変換を平滑化手段によって示してきたが、この平滑化フィルタをウインドウ内の状態により、適応的に切り換えることも有効である。
【0054】
また、配置手段を、図6の様な2値化手段により実現する例について説明したが、他の方式として、補間後の注目画素ブロック内の各画素をソートして、最大値、最小値を配置していく方式もある。この場合、例えば注目画素値をMとすると、
M=a・MAX+(1−a)・MIN (0≦a≦1)
を満足するaの値を求め、注目画素ブロックのソートにより、画素値の大きい順から(a×N×M)画素分にMAX値を配置し、その他の画素にはMIN値を配置する方式も有効である。
【0055】
【発明の効果】
以上説明したように、本発明によると、文字、線画像と自然画像が混在している画像を高解像情報に変換する場合、低解像の画像情報で発生しているエッジを崩すように平滑化処理し、平滑化処理より鈍ったエッジから新たな高解像度に見合った急峻なエッジを作成するように解像度変換することで、文字、線画部分に対してはジャギーを発生することなく鮮明にエッジを再現でき、更に自然画像に対しては、補間ぼけの発生を抑えた高画質な画像を作成することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態を示す要部ブロック図。
【図2】ウインドウの例と、本実施の形態のウインドウの図。
【図3】ウインドウ内の階調数の説明図。
【図4】平滑化フィルタの例を示した図。
【図5】本実施の形態のウインドウ内の平滑化の説明図。
【図6】図1の配置手段の詳細構成を示す図。
【図7】本実施の形態の処理を実際の値を用いて説明した例を示した図。
【図8】本発明の第2の実施の形態を示す要部ブロック図。
【図9】本発明の第3の実施の形態を示す要部ブロック図。
【図10】従来例である最近接内挿法を示した図。
【図11】従来例である共1次内挿法を示した図。
【図12】従来例の処理例を示した図。
【符号の説明】
100 入力端子
101 ラインバッファ
102 ウインドウ作成手段
103 階調数検出手段
104 平滑化手段
105、109 スイッチ
106 補間手段
107 最大値、最小値検出手段
108 配置手段[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus and an image processing method for converting resolution of input low resolution information into high resolution information.
[0002]
[Prior art]
Conventionally, when resolutions of an input device and an output device are different, or when communication is performed between devices having different resolutions, low resolution information is converted into high resolution information.
[0003]
Various methods have been proposed as a method of converting the resolution of the input low resolution information into high resolution information. The proposed conventional method is based on the type of target image (for example, a multi-valued image having gradation information for each pixel, a binary image binarized by pseudo halftone, and binarized by a fixed threshold value. The conversion processing method differs depending on the binary image, character image, and the like. The target image in the present invention is a multi-value image such as a natural image having gradation information for each pixel. FIG. 10 shows an interpolation method which is a conventionally known conversion method for multi-value images. As shown in FIG. 11, the closest interpolation method for arranging the same pixel values closest to the interpolation point, four points surrounding the interpolation point as shown in FIG. 11 (the pixel values of four points are A, B, C, and D). There is a bilinear interpolation method for determining the pixel value E by the following calculation according to the distance of
[0004]
E = (1-i) (1-j) A + i. (1-j) B + j. (1-i) C + ijD
(However, when the inter-pixel distance is 1, it is assumed that there is a distance i from the A and j in the vertical direction from A (i ≦ 1, j ≦ 1)).
[0005]
[Problems to be solved by the invention]
However, the conventional example has the following drawbacks.
[0006]
That is, the method of FIG. 10 has an advantage that the configuration is simple, but when the target image is used for a natural image or the like, the pixel value is determined for each block to be enlarged, so that the block is visually conspicuous. There is a disadvantage that the image quality is poor.
[0007]
Further, even when used for characters, line images, CG (computer graphic) images, etc., the same pixel value continues for each block to be enlarged. As shown in the figure, it becomes a noticeable inconspicuous image of jagged edges called jaggy. FIG. 12 shows an example of resolution conversion that is double in both the vertical and horizontal directions, but the larger the magnification, the greater the deterioration (“200” and “10” in the figure are pixel values).
[0008]
The method shown in FIG. 11 is a method that is generally used for enlarging a natural image. In this method, the image quality is averaged and smoothed, but the image quality is blurred in the edge portion and the portion where sharp image quality is required. Furthermore, in the case of an image obtained by scanning a map or a natural image including a character part, important information may not be transmitted to the receiver due to blurring due to interpolation.
[0009]
FIG. 12C shows image information obtained by interpolating the input image information of FIG. 12A twice vertically and horizontally by the method of FIG.
[0010]
As is clear from FIG. 12C, pixel values are not uniform not only in the vicinity of the hatched line but also in the hatched line, and blurring occurs.
[0011]
Consider an application when resolution conversion (pixel density conversion) is provided inside an image output device such as a printer. In a printer, image information transmitted from a host computer is natural image information input from an image input device such as an image scanner, or text and line drawing information artificially created by application software on the host computer. And various situations such as computer graphics (CG). When the resolution conversion of these image information is performed in the printer, the attribute of what kind of image should be transmitted as an identification signal for each image, but recently, the number of system configurations transmitted without an identification signal has increased. ing.
[0012]
In this case, conventionally, resolution conversion of all image information is often performed by the method of FIG. In other words, artificially created characters, line images, etc. are somewhat sacrificed (FIG. 12C), and priority is given to natural images. In printers, it is fatal that characters and line drawings are difficult to see. In other words, in a high-definition printer that can output multiple gradations per pixel, satisfactory resolution conversion corresponding to the output resolution of the engine has not been realized.
[0013]
The present invention eliminates the above-mentioned drawbacks of the prior art, and is generated with low-resolution image information when an image in which characters, line images, and natural images are mixed is converted into high-resolution information. Smoothing processing to break edges, and converting the resolution to create a steep edge corresponding to the new high resolution from the edge that is duller than the smoothing processing, jaggies are generated for characters and line drawings An object of the present invention is to provide an image processing apparatus and an image processing method capable of clearly reproducing an edge without generating an image and creating a high-quality image with reduced interpolation blurring for a natural image.
[0014]
[Means for Solving the Problems]
In order to achieve the above-described object, an image processing apparatus according to the present invention is an input processing unit for inputting low-resolution image information in an image processing apparatus that converts resolution of low-resolution multi-tone image information into high-resolution information. And smoothing means for smoothing so as to reduce the gradation change of the edge portion included in the image information input by the input means, and after the smoothing processing in the smoothing means , the low-resolution image information is Interpolating means for interpolating so as to obtain high-resolution image information, and for the high-resolution image information interpolated by the interpolating means, the gradation change of the edge portion smoothed by the smoothing means is greatly increased. And an edge creation means for creating an edge.
[0015]
The image processing method of the present invention is an image processing method for converting resolution of low-resolution multi-gradation image information into high-resolution information, an input step for inputting low-resolution image information, and the input step Smoothing process for smoothing the gradation change of the edge portion included in the image information input by the step, and after the smoothing process in the smoothing process, the low-resolution image information is converted to the high-resolution image. An interpolation step for interpolating information, and an edge so as to increase the gradation change of the edge portion smoothed in the smoothing step with respect to the high-resolution image information interpolated by the interpolation step. And an edge creation step to create.
[0016]
In the above configuration, when converting input low resolution information to high resolution information, even when artificially created characters, line images, and natural images are mixed in the same image As a result, it is possible to realize a sharp conversion without jaggies for an artificial image portion and a good image without an interpolation blur for a natural image portion.
[0017]
DETAILED DESCRIPTION OF THE INVENTION
(First embodiment)
FIG. 1 is a principal block diagram showing a first embodiment according to the present invention. The image processing apparatus according to the present invention is efficiently provided mainly in an image output apparatus such as a printer. However, the image processing apparatus can also be incorporated as application software in an image processing apparatus other than the image output apparatus or a host computer. .
[0018]
The operation procedure of the present embodiment will be described with reference to the block diagram of FIG. In this embodiment, an example will be described in which input image information is converted into information of the number of pixels of N times vertical and M times horizontal (N and M are integers of 2 or more, respectively).
[0019]
In the figure,
[0020]
[0021]
[0022]
[0023]
An
[0024]
[0025]
[0026]
In FIG. 6, a portion surrounded by a broken line indicates the
TH = (MAX + MIN) / 2
Calculate as
[0027]
1 and 109 show switches, which select whether the block is arranged by the arrangement means or the block directly output from the interpolation means 106. The switch controls the number of gradations of the gradation
[0028]
[0029]
That is, in this embodiment, when the number of gradations in the window is 2, the number of gradations in the target pixel block is always 2 or 1, and when the number of gradations is 1, the maximum value is obtained. Since the minimum value is the same value, the number of gradations in the target pixel block is also 1. When the number of gradations in the window is 3 or more, the number of gradations of the pixel block of interest is indefinite because it is directly output from the interpolation means.
[0030]
Since the data output from 110 is multi-value data, if the printer can record multi-value data, the multi-value data is recorded as it is. If the printer is binary data, binary data is recorded. Recording is performed after the conversion process.
[0031]
Next, processing contents of the present embodiment will be described.
[0032]
Now, consider this processing as processing in an image output apparatus such as a printer. In a printer, the image information transmitted from the host computer is natural image information input from an image input device such as an image scanner, character or line image information created by application software on the host computer, Various situations such as CG (computer graphic) images can be considered. When the resolution conversion of these image information is performed in the printer, the attribute of what kind of image should be transmitted as an identification signal for each image, but recently, the number of system configurations transmitted without an identification signal has increased. It is coming.
[0033]
Therefore, in the present embodiment, when the number of gradations is 2 in the window, mainly characters, line images, etc., images created by PDL (page description language) on the host computer and various application software are used. It is determined that there is a possibility, and conversion processing is performed so that jaggies (jagged edges) do not occur when resolution conversion is performed.
[0034]
FIG. 7 describes the processing of the present embodiment based on actual values.
[0035]
FIG. 7A shows a part of an input image. Now, a pixel surrounded by a broken line is a pixel of interest, and a portion surrounded by an alternate long and short dash line is a window. Since the image in FIG. 7A has 2 gradations in the window, smoothing is performed. FIG. 7B shows the pixel values of the same part as in FIG. Since the broken line pixel of interest is smoothed, “200” is converted to a value of “150”.
[0036]
FIG. 7C shows pixel values after linear interpolation near the target pixel. Now, N = M = 3, and one pixel is increased to nine pixels. Nine pixels surrounded by a broken line are the target pixel block. Since the number of gradations in the window of FIG. 7A is 2, rearrangement by the
[0037]
As is clear from this example, good resolution conversion can be realized at an arbitrary magnification without causing jaggies. Further, as in the window, since the number of gradations is suppressed to 2 in the target pixel block, there is no blur due to an increase in resolution.
[0038]
Consider the resolution dependency of input image information. In a character, line image, or the like created by a host computer or the like, an edge generated at the time of low resolution depends on the original resolution, and therefore, a frequency component that disturbs resolution conversion is included. For this reason, it is necessary to remove the disturbing frequency component (after breaking the edge) and convert the resolution to create an edge (information on the high frequency component) suitable for the new resolution.
[0039]
On the other hand, since a natural image has an LPF (low pass filter) applied at the time of image creation, it is close to a resolution-free state even at low resolution. That is, since the edge is broken from the input state, there are few frequency components that get in the way. Therefore, in this embodiment, if the number of gradations is 3 or more in the window, it is determined that the target pixel may belong to the natural image portion, and the smoothing means and the arrangement means for setting the number of gradations to 2 are Do not use.
[0040]
(Second Embodiment)
FIG. 8 is a principal block diagram for explaining a second embodiment of the present invention.
[0041]
2, the same parts as those in FIG. 1 are denoted by the same reference numerals, and detailed description thereof is omitted. The present embodiment is characterized in that the determination of the number of gradations in the pixel block of interest includes not only the number of gradations of the detected peripheral pixels but also the contrast level of the peripheral pixels in the evaluation.
[0042]
In the figure,
[0043]
Unless it is an artificial image, for example, it is assumed that a natural image as input by an image scanner or the like has a high contrast even if it is a steep edge portion, and the number of gradations is not two. Even if such an edge exists in the natural image, the edge depends on the resolution of the original information as described above, so that it is necessary to perform resolution conversion without causing jaggies.
[0044]
When the number of gradations of the peripheral pixels is 1, the contrast is 0. Therefore, when it is determined that “the number of gradations is 1” and “the number of gradations is 2 and the contrast is large”, the
[0045]
(Third embodiment)
FIG. 9 is a principal block diagram showing a third embodiment of the present invention. 9, the same parts as those in FIGS. 1 and 8 are denoted by the same reference numerals. In the present embodiment, the case classification by the
[0046]
The input of the
[0047]
[Table 1]
[0048]
First, it is assumed that the gradation number is 1 as the
[0049]
As the category number 2, it is assumed that the number of gradations of peripheral pixels is 2 and the contrast is large. In this case, as described above, it is determined that the image is artificial, and the
[0050]
As the category number 3, it is assumed that the number of gradations of peripheral pixels is 2 and the contrast is small. In this case, similar to
[0051]
As the category number 4, it is assumed that the number of gradations of peripheral pixels is 3 or more and the contrast is large. In this case, it is assumed that it is applied to the edge portion in the natural image. Therefore, instead of outputting the linear interpolation means 403 as it is, the composition means 404 after combining the pixel block of interest after linear interpolation with the arrangement means 108 after adjusting the gradation to 2 with a certain distribution ratio. To do. The setting of the distribution ratio may be obtained experimentally in advance, or may be dynamically switched depending on the magnitude of contrast. The image after the arrangement means is an image with sharp edges, and by combining with linear interpolation information, a smooth edge is created in the gradation direction, and resolution conversion with less interpolation blur can be realized.
[0052]
As the category number 5, it is assumed that the number of gradations of peripheral pixels is 3 or more and the contrast is small. In this case, a natural image is assumed to be a flat portion, and information in the pixel block of interest is created by a normal linear interpolation means.
[0053]
As mentioned above, although the process with respect to various categories was shown, it is not limited to this process. Also, the category type is not limited to this. Further, although the resolution conversion without jaggies has been shown by the smoothing means, it is also effective to adaptively switch the smoothing filter depending on the state in the window.
[0054]
In addition, the example in which the arranging unit is realized by the binarizing unit as shown in FIG. 6 has been described. However, as another method, the pixels in the pixel block of interest after the interpolation are sorted to obtain the maximum value and the minimum value. There is also a method of arranging. In this case, for example, if the target pixel value is M,
M = a · MAX + (1−a) · MIN (0 ≦ a ≦ 1)
There is also a method in which the value of a satisfying the above is obtained, and MAX values are arranged for (a × N × M) pixels in descending order of pixel values by sorting the pixel block of interest, and MIN values are arranged for other pixels. It is valid.
[0055]
【The invention's effect】
As described above, according to the present invention, when an image in which characters, line images, and natural images are mixed is converted into high resolution information, the edges generated in the low resolution image information are broken. By smoothing and converting the resolution to create a steep edge that matches the new high resolution from the edge that is duller than the smoothing process, the characters and line drawing parts are clear without causing jaggies. Edges can be reproduced, and for natural images, high-quality images with reduced occurrence of interpolation blur can be created.
[Brief description of the drawings]
FIG. 1 is a principal block diagram showing a first embodiment of the present invention.
FIG. 2 shows an example of a window and a window of this embodiment.
FIG. 3 is an explanatory diagram of the number of gradations in a window.
FIG. 4 is a diagram illustrating an example of a smoothing filter.
FIG. 5 is an explanatory diagram of smoothing in a window according to the present embodiment.
6 is a diagram showing a detailed configuration of the arrangement unit in FIG. 1. FIG.
FIG. 7 is a diagram illustrating an example in which processing of the present embodiment is described using actual values.
FIG. 8 is a principal block diagram showing a second embodiment of the present invention.
FIG. 9 is a principal block diagram showing a third embodiment of the present invention.
FIG. 10 is a diagram showing a nearest-neighbor interpolation method, which is a conventional example.
FIG. 11 is a diagram showing a bilinear interpolation method as a conventional example.
FIG. 12 is a diagram showing a processing example of a conventional example.
[Explanation of symbols]
100
Claims (16)
低解像の画像情報を入力する入力手段と、
前記入力手段により入力した画像情報に含まれるエッジ部の階調変化が小さくなるように平滑化処理する平滑化手段と、
前記平滑化手段における平滑化処理後に、低解像の画像情報を高解像の画像情報となるように補間する補間手段と、
前記補間手段によって補間された高解像の画像情報に対して、前記平滑化手段で平滑化されたエッジ部の階調変化を大きくするようにエッジを作成するエッジ作成手段と、
を有することを特徴とする画像処理装置。In an image processing apparatus that converts resolution of low-resolution multi-tone image information into high-resolution information,
Input means for inputting low-resolution image information;
Smoothing means for performing smoothing processing so as to reduce the gradation change of the edge portion included in the image information input by the input means;
Interpolating means for interpolating low-resolution image information to become high-resolution image information after the smoothing processing in the smoothing means;
Edge creation means for creating an edge so as to increase the gradation change of the edge portion smoothed by the smoothing means for the high-resolution image information interpolated by the interpolation means;
An image processing apparatus comprising:
低解像の画像情報を入力する入力工程と、An input process for inputting low-resolution image information;
前記入力工程により入力した画像情報に含まれるエッジ部の階調変化が小さくなるように平滑化処理する平滑化工程と、A smoothing step of performing a smoothing process so as to reduce a gradation change of an edge portion included in the image information input by the input step;
前記平滑化工程における平滑化処理後に、低解像の画像情報を高解像の画像情報となるように補間する補間工程と、After the smoothing process in the smoothing step, an interpolation step for interpolating the low resolution image information to become high resolution image information,
前記補間工程によって補間された高解像の画像情報に対して、前記平滑化工程で平滑化されたエッジ部の階調変化を大きくするようにエッジを作成するエッジ作成工程と、An edge creating step for creating an edge so as to increase the gradation change of the edge portion smoothed in the smoothing step with respect to the high-resolution image information interpolated by the interpolation step;
を有することを特徴とする画像処理方法。An image processing method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000341965A JP3624153B2 (en) | 2000-11-09 | 2000-11-09 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000341965A JP3624153B2 (en) | 2000-11-09 | 2000-11-09 | Image processing apparatus and image processing method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP27058593A Division JP3176195B2 (en) | 1993-10-28 | 1993-10-28 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2001189851A JP2001189851A (en) | 2001-07-10 |
JP3624153B2 true JP3624153B2 (en) | 2005-03-02 |
Family
ID=18816610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000341965A Expired - Lifetime JP3624153B2 (en) | 2000-11-09 | 2000-11-09 | Image processing apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3624153B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008124570A (en) * | 2006-11-08 | 2008-05-29 | Sony Corp | Signal processing apparatus, method and program thereof |
CN102077242B (en) * | 2008-07-30 | 2013-08-07 | 松下电器产业株式会社 | Image generation device and method for super-resolution of 3d textures |
JP4762336B2 (en) | 2009-09-15 | 2011-08-31 | 株式会社東芝 | Video processing apparatus and video processing method |
JP2011066540A (en) | 2009-09-15 | 2011-03-31 | Toshiba Corp | Video processing apparatus and video processing method |
-
2000
- 2000-11-09 JP JP2000341965A patent/JP3624153B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2001189851A (en) | 2001-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3176195B2 (en) | Image processing device | |
JP3143209B2 (en) | Image magnification device | |
US6157736A (en) | Method and apparatus for automatic image segmentation using template matching filters | |
US5737455A (en) | Antialiasing with grey masking techniques | |
JP3210248B2 (en) | Image processing apparatus and method | |
EP1349371A2 (en) | Image processing apparatus, image processing program and storage medium storing the program | |
JP3167120B2 (en) | Image processing apparatus and method | |
US5539866A (en) | Method and apparatus for accurately rendering half-bitted image pixels | |
JP4065462B2 (en) | Image processing apparatus and image processing method | |
JP3026706B2 (en) | Image processing device | |
JP3624153B2 (en) | Image processing apparatus and image processing method | |
JP3210264B2 (en) | Image processing apparatus and method | |
JP3092769B2 (en) | Image processing device | |
JP3262425B2 (en) | Image processing device | |
JP3703180B2 (en) | Image processing apparatus and image processing method | |
JP3200351B2 (en) | Image processing apparatus and method | |
JP3581460B2 (en) | Image processing method and apparatus | |
JP3073381B2 (en) | Image processing method and apparatus | |
JP3669081B2 (en) | Image processing device | |
JP3753900B2 (en) | Image processing device | |
JPH07210669A (en) | Image processing apparatus and control method thereof | |
JP2000149009A (en) | Image processing device | |
JP3703253B2 (en) | Image processing apparatus and method, and storage medium | |
JPH08297739A (en) | Image processing apparatus and method thereof | |
JP2001189852A (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040330 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040531 |
|
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: 20041116 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20041129 |
|
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: 20081203 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091203 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091203 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101203 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111203 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121203 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131203 Year of fee payment: 9 |
|
EXPY | Cancellation because of completion of term |