JP4547752B2 - Image processing apparatus and method, and recording medium - Google Patents
Image processing apparatus and method, and recording medium Download PDFInfo
- Publication number
- JP4547752B2 JP4547752B2 JP2000006570A JP2000006570A JP4547752B2 JP 4547752 B2 JP4547752 B2 JP 4547752B2 JP 2000006570 A JP2000006570 A JP 2000006570A JP 2000006570 A JP2000006570 A JP 2000006570A JP 4547752 B2 JP4547752 B2 JP 4547752B2
- Authority
- JP
- Japan
- Prior art keywords
- pixels
- character
- edge
- pixel
- image data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
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/4023—Scaling of whole images or parts thereof, e.g. expanding or contracting based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels
-
- 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)
- Facsimile Image Signal Circuits (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、画像処理装置および方法、並びに記録媒体に関し、特に、デジタル画像データを高解像度で拡大させることを可能にする画像処理装置および方法、並びに記録媒体に関する。
【0002】
【従来の技術】
デジタル画像データを高解像度で拡大し、表示させる技術が普及しつつある。
例えば、デジタルカメラやカムコーダなどのデジタル画像データの表示技術として、デジタルズームと呼ばれる、デジタル画像データの拡大表示を、高解像度で実現させる為の開発が進められている。
【0003】
従来、デジタル画像データを拡大させる場合、隣接補間法、2次元線形補間法、または、Bスプライン法などに代表される手法が用いられてきた。
【0004】
【発明が解決しようとする課題】
しかしながら、0次ホールド補間法として知られている隣接補間法は、拡大することによって生じたブランクに、隣接するピクセルを挿入して表示させる方法であるため、ハードウェアに最も負荷をかけずに、簡単に、デジタル画像データを拡大することができる反面、高倍率の拡大表示をすると、いわゆるモザイクパターンが現れてしまい、画像のエッジ部分(輪郭を形成する部分)を歪ませたり、ギザギザに表示してしまうなどの課題があった。
【0005】
2次元線形補間法は、拡大する際に、元の画像のピクセル間に生じるブランクとなる部分に、水平方向および垂直方向のそれぞれに隣接する元の画像のピクセルの平均となるピクセルを挿入することによりデジタル画像データを拡大する方法であるが、水平方向と垂直方向に補間する為、隣接補間法よりも、補間方法では優れているものの、画像全体が、ぼやけてしまうため、解像度を向上させることは困難である。このため、元の画像データを高倍率で拡大すると、隣接補間法と同様にモザイクパターンが現れてしまうという課題があった。
【0006】
Bスプライン法は、隣接補間法や2次元線形補間法に比べると、安定しており、高倍率で拡大する場合でも、モザイクパターンなどが生じないが、画像をぼやけさせてしまうと共に、複雑な計算をしなければならないため、相対的にハードウェアに負荷がかかってしまうという課題があった。
【0007】
本発明はこのような状況に鑑みてなされたものであり、簡単な装置構成と、計算方法で、デジタル画像データを高解像度で拡大させるようにするものである。
【0008】
【課題を解決するための手段】
本発明の第1の画像処理装置は、入力された画像データの画像を拡大させる画像処理装置であって、入力された画像データの画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定手段と、判定手段の判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出手段と、文字エッジ検出手段により検出された2つのピクセルの組と異なる、エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、文字エッジ検出手段により検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調手段と、文字エッジ強調手段によりエッジ部の接続部が強調された画像データを拡大する拡大手段とを備えることを特徴とする。
【0011】
本発明の第1の画像処理方法は、入力された画像データの画像を拡大させる画像処理装置であって、入力された画像データの画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定手段と、判定手段の判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出手段と、文字エッジ検出手段により検出された2つのピクセルの組と異なる、エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、文字エッジ検出手段により検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調手段と、文字エッジ強調手段によりエッジ部の接続部が強調された画像データを拡大する拡大手段とを備えることを特徴とする画像処理装置の画像処理方法において、判定手段における、入力された画像データの画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定ステップと、文字エッジ検出手段における、判定ステップの処理での判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出ステップと、文字エッジ強調手段における、文字エッジ検出ステップの処理で検出された2つのピクセルの組と異なる、エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、文字エッジ検出ステップにより検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調ステップと、拡大手段における、文字エッジ強調ステップによりエッジ部の接続部が強調された画像データを拡大する拡大ステップとを含むことを特徴とする。
【0012】
本発明の第1の記録媒体のプログラムは、入力された画像データの画像を拡大させる画像処理装置であって、入力された画像データの画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定手段と、判定手段の判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出手段と、文字エッジ検出手段により検出された2つのピクセルの組と異なる、エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、文字エッジ検出手段により検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調手段と、文字エッジ強調手段によりエッジ部の接続部が強調された画像データを拡大する拡大手段とを備えることを特徴とする画像処理装置を制御するコンピュータに読み取り可能なプログラムであって、判定手段における、入力された画像データの画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定ステップと、文字エッジ検出手段における、判定ステップの処理での判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出ステップと、文字エッジ強調手段における、文字エッジ検出ステップの処理で検出された2つのピクセルの組と異なる、エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、文字エッジ検出ステップにより検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調ステップと、拡大手段における、文字エッジ強調ステップによりエッジ部の接続部が強調された画像データを拡大する拡大ステップとを含むことを特徴とする。
【0017】
前記ピクセル生成手段には、ブランクに、エッジ方向検出手段により検出されたエッジ方向上の2つのピクセルのエネルギの線形補間により、ピクセルを生成させるようにすることができる。
【0019】
前記2次元のフィルタ処理は、3×3ピクセルに対するローパスフィルタ処理と、5×5ピクセルに対するハイパスフィルタ処理とを同時に作用させる5×5ピクセルに対するフィルタ処理とすることができる。
【0027】
本発明の第2の画像処理装置は、入力された画像データの画像を拡大させる画像処理装置において、入力された画像データの画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定手段と、判定手段の判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出手段と、文字エッジ検出手段により検出された2つのピクセルの組と異なる、エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、文字エッジ検出手段により検出された2つのピクセルの組のエネルギの平均値に置換することにより、エッジ部の接続部を強調する文字エッジ強調手段と、判定手段の判定結果が写真である場合、水平方向および垂直方向のそれぞれのいずれかである第1方向、および第2方向に、入力された画像データの各ピクセル間に、それぞれ第1方向ブランク、および第2方向ブランクを生成するブランク生成手段と、ブランク生成手段により生成された第1方向ブランク、または第2方向ブランクと隣接する各ピクセルに基づいて、第1方向、または第2方向に隣接するピクセル間のエネルギ差を求め、そのエネルギ差が閾値を超える場合、第1方向ブランク、または第2方向ブランクを中心として対称の位置関係となる2つのピクセル同士のエネルギ差が、最小となる2つのピクセル間を結ぶ方向をエッジ方向として検出するエッジ方向検出手段と、第1方向ブランクに、第1方向ブランクに隣接したピクセルと、エッジ方向検出手段により検出されたエッジ方向に基づいて、第1方向に補間してピクセルを生成し、第1方向に補間して生成されたピクセルが付加された画像データの第2方向の各ピクセルの第2方向ブランクに、第2方向ブランクに隣接したピクセルと、エッジ方向検出手段により検出されたエッジ方向に基づいて、第2方向に補間してピクセルを生成するピクセル生成手段と、ピクセル生成手段によりピクセルが生成された画像データの各ピクセルに2次元のフィルタ処理を施すことによりエッジを強調する写真エッジ強調手段と、判定手段の判定結果がグラフィックである場合、第1方向に画像を拡大する第1方向拡大手段と、第1方向拡大手段により拡大された画像のピクセルに1次元の第1方向フィルタ処理を施すことでエッジを強調する第1方向エッジ強調手段と、第2方向に画像を拡大する第2方向拡大手段と、第2方向拡大手段により拡大された画像のピクセルに1次元の第2方向フィルタ処理を施すことでエッジを強調する第2方向エッジ強調手段とを備えることを特徴とする。
【0028】
本発明の第1の画像処理装置、画像処理方法、および、記録媒体のプログラムにおいては、入力された画像データの画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかが判定され、判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差とが比較されることにより、いずれかエネルギ差の小さい2つのピクセルの組が、入力された画像データの画像のうちの文字のエッジ部として検出され、検出された2つのピクセルの組と異なる、エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルが、検出された2つのピクセルの組のエネルギの平均値に置換されることにより、検出されたエッジ部の接続部が強調され、エッジ部の接続部が強調された画像データが拡大される。
【0030】
本発明の第2の画像処理装置においては、入力された画像データの画像を拡大させる画像処理装置であって、入力された画像データの画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかが判定され、判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組が、入力された画像データの画像のうちの文字のエッジ部として検出され、検出された2つのピクセルの組と異なる、エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルが、検出された2つのピクセルの組のエネルギの平均値に置換されることにより、エッジ部の接続部が強調され、判定結果が写真である場合、水平方向および垂直方向のそれぞれのいずれかである第1方向、および第2方向に、入力された画像データの各ピクセル間に、それぞれ第1方向ブランク、および第2方向ブランクが生成され、生成された第1方向ブランク、または第2方向ブランクと隣接する各ピクセルに基づいて、第1方向、または第2方向に隣接するピクセル間のエネルギ差が求められ、そのエネルギ差が閾値を超える場合、第1方向ブランク、または第2方向ブランクを中心として対称の位置関係となる2つのピクセル同士のエネルギ差が、最小となる2つのピクセル間を結ぶ方向がエッジ方向として検出され、第1方向ブランクに、第1方向ブランクに隣接したピクセルと、検出されたエッジ方向に基づいて、第1方向に補間されてピクセルが生成され、第1方向に補間して生成されたピクセルが付加された画像データの第2方向の各ピクセルの第2方向ブランクに、第2方向ブランクに隣接したピクセルと、検出されたエッジ方向に基づいて、第2方向に補間されてピクセルが生成され、ピクセルが生成された画像データの各ピクセルに2次元のフィルタ処理が施されることによりエッジが強調され、判定結果がグラフィックである場合、第1方向に画像が拡大され、第1方向により拡大された画像のピクセルに1次元の第1方向フィルタ処理が施されることでエッジが強調され、第2方向に画像が拡大され、第2方向により拡大された画像のピクセルに1次元の第2方向フィルタ処理が施されることでエッジが強調される。
【0031】
【発明の実施の形態】
図1は、本発明を適用した画像拡大装置1の一実施の形態の構成を示すブロック図である。画像拡大装置1に入力されるデジタル画像データは、主に、グラフィックデータ、写真データ、および、文字データ(フォントデータ)の3種類である。
【0032】
尚、図1を参照して画像拡大装置1の構成について説明するが、その詳細については、動作説明と共に図2以降に後述するものとする。
【0033】
画像拡大装置1のイメージセレクタ11は、入力された画像データが、グラフィックデータ、写真データ、または、文字データ(フォントデータ)のいずれのデジタル画像データであるかを判定し、グラフィックデータ、または、写真データであると判定した場合、入力された画像データを水平拡大処理部12に出力する。また、入力された画像データが、文字データであると判定された場合、イメージセレクタ11は、入力された画像データをエッジ接続部15に出力する。
【0034】
エッジ接続部15は、イメージセレクタ11から入力された文字データ(フォントデータ)のうち、拡大することによりぼやけ易い、細いエッジの接続部分を検出し、太くする前処理を施し、水平拡大処理部12に出力する。
【0035】
水平拡大処理部12は、イメージセレクタ11、または、エッジ接続部15より入力された画像データを、H(Horizontal:水平)バッファ12aを適宜使用して、水平方向に拡大処理し、入力された画像データが、写真データ、または、文字データである場合、垂直拡大処理部13に出力する。また、水平拡大処理した画像データが、グラフィックデータである場合、水平拡大処理部12は、水平拡大処理したグラフィックデータを1Dエッジ強調部16に出力する。
【0036】
1Dエッジ強調部16は、水平拡大処理部12から入力された水平拡大処理されたグラフィックデータに、バッファ16aを適宜使用しながら、水平1次元フィルタ処理(水平方向の1Dエッジ強調処理)を施し、エッジ部分の水平方向成分を強調処理し、垂直拡大処理部13に出力する。
【0037】
垂直拡大処理部13は、水平拡大処理部12、または、1Dエッジ強調部16より入力された画像データを、V(Vertical:垂直)バッファ13aを適宜使用して、垂直方向に拡大処理し、2Dエッジ強調部14に出力する。
【0038】
2Dエッジ強調部14は、バッファ14aを適宜使用しながら、垂直拡大処理部13より入力された水平方向と垂直方向に拡大された画像データの各ピクセルにフィルタ処理を施し、画像データのエッジ部分を2次元方向(水平方向と垂直方向)に対して強調することにより、画像の輪郭の解像度を高め、最終的な拡大画像データとして、表示部2に出力する。表示部2は、2Dエッジ強調部14より入力された拡大画像データを表示する。
【0039】
尚、水平拡大処理部12により水平方向に拡大され、1Dエッジ強調部16により水平方向にエッジ強調されたグラフィックデータが、垂直拡大処理部13に入力され、垂直拡大処理された後、2Dエッジ強調部14に入力された画像データは、既にエッジ部分の水平方向成分の強調がなされている為、2Dエッジ強調部14では、残された方向のエッジ強調、すなわち、エッジ部分の垂直方向成分のみを強調する。
【0040】
すなわち、2Dエッジ強調部14は、グラフィックデータが入力された場合、1Dエッジ強調部16の処理と同様に、垂直方向成分の1次元フィルタ処理のみを実行し、最終的な拡大画像データとして、表示部2に出力する。
【0041】
この様に、画像データの種類によりエッジ部分の強調処理が異なるのは、次のような理由による。すなわち、例えば、グラフィックデータは、写真データや文字データよりも、エッジが強調された画像(エッジ部分が鮮明な画像)が多いので、水平方向および垂直方向の各々の方向で拡大処理する毎に、エッジ強調をすることにより、拡大処理するごとに発生する、画像データのエッジ部分に発生するぼやけやエラーを減少させることができる。そこで、2Dフィルタで一度にエッジ強調をするよりも、各方向毎にエッジが強調される。
【0042】
これに対して、写真データは、焦点付近の画像と焦点から離れた画像が混在する為、グラフィックデータと比べると、エッジが強調された画像(エッジ部分が鮮明な画像)ではないため、2Dフィルタで、水平方向と垂直方向のエッジ強調を一度に処理することにより、遠近により適度にぼやける部分が現れた画像とすることができる。
【0043】
このように、エッジ強調のフィルタのかけ方を画像データにより切り換えることで、拡大された画像は、人間の視覚に対して、より自然に表現することができる。
【0044】
次に、図2のフローチャートを参照して、画像拡大装置1が、入力された画像データを拡大処理するときの動作について説明する。
【0045】
画像拡大装置1に処理の開始が指令されると処理が開始され、ステップS1において、イメージセレクタ11は、入力された画像データ(イメージ)の種類を判別する。
【0046】
ステップS2において、イメージセレクタ11は、入力された画像データが、文字データ(フォントデータ)であるか否かを判定する。例えば、入力された画像データが、写真データである場合、イメージセレクタ11は、入力された画像データが、文字データ(フォントデータ)ではないと判定し、ステップS3の処理に進む。
【0047】
ステップS3において、イメージセレクタ11は、入力された画像データ(写真データ)を水平拡大処理部12に出力する。
【0048】
ステップS4において、水平拡大処理部12は、水平拡大処理を実行する。
【0049】
ここで、図3のフローチャートを参照して、水平拡大処理部12の水平拡大処理について説明する。
【0050】
ステップS21において、水平拡大処理部12は、入力された画像データのピクセル間の水平方向にブランクを形成し、Hバッファ12aに記憶させる。
【0051】
例えば、2倍に拡大処理する場合、水平拡大処理部12は、図4に示すように、入力された画像データ(写真データ)の各ピクセルの水平方向に対して1列おきにブランクを設け、これを、Hバッファ12aに記憶させる。尚、図3中の実線で描かれている円は、元の画像データのピクセルを示し、点線で描かれている円は、ブランクを示している。
【0052】
図5は、図4に示すような処理(ステップS21の処理)を施したときの元の画像データ(図5(A))(水平方向の幅:Width=W、垂直方向の高さ:Height=H)と、処理を施された後、Hバッファ12aに記憶された画像データ(図5(B))の関係を示したものである。図5(B)に示すように、元のピクセルに対して、水平方向に1ピクセル毎にブランクの列が形成されることになるので、Hバッファに記憶されているデータの幅は、2W−1になる。
【0053】
ステップS22において、水平拡大処理部12は、ブランクがあるか否かを判定する。例えば、ブランクが形成された直後の状態である場合、水平拡大処理部12は、ブランクがあると判定し、その処理はステップS23に進む。
【0054】
ステップS23において、水平拡大処理部12は、ピクセルを補間しようとするブランクのエネルギを計算する。
【0055】
求めようとするブランクのエネルギ関数E(N,Y+(N−1)/2)は以下のように定義される。
【0056】
E(N,Y+(N−1)/2)
=ABS(Pixel(X+2,Y+(N−1)/2)
−Pixel(X,Y+(N−1)/2)) ・・・(1)
【0057】
ここで、Pixel()は、各座標上の(既知の)ピクセルのエネルギを表す。N(Nは、任意)は、ピクセルを補間、生成するのに使用する既知のピクセルの個数を意味し、ABS(Absolute)は、絶対値を意味する。
【0058】
この式(1)で定義されるエネルギ関数は、ブランクに水平方向に隣接するピクセル同士のエネルギ差の絶対値を表す。
【0059】
尚、ここで言うピクセルのエネルギとは、ピクセルの輝度と色に基づく値であり、エネルギの値から、各ピクセルの輝度と色の値が復元できるものを意味する。以下の説明において、エネルギは、同様の意味で使用するものとする。
【0060】
例えば、図6(A)の実線で円が描かれているブランクにピクセルを生成する(補間する)ものとし、その座標を(X+1,Y+(N−1)/2)とする。そして、このピクセルの補間に、左側の列のN個のピクセルと、右側の列のN個のピクセル(図6(A)においては、N=3の例について示している)を使用するものとすると、それらのピクセル(図中実線の長方形で囲まれている左右のN個のピクセル)の座標は、(X,Y),(X,Y+(N−1)/2),(X,Y+N−1),(X+2,Y),(X+2,Y+(N−1)/2),および(X+2,Y+N−1)となる。図6(B)は、この着目するピクセルと、求めようとするブランクのみを示している。
【0061】
従って、ステップS23においては、式(1)に示すように、求めようとするブランクの左右のピクセル(図6(B)において、矢印で結ばれている左右のピクセル)のエネルギ差の絶対値が求められている。
【0062】
尚、以下の説明においては、所定のピクセルまたはブランクに水平方向に隣接するピクセル間のエネルギ差を水平エネルギ差と称し、所定のピクセルまたはブランクに垂直方向に隣接するピクセル間のエネルギ差を垂直エネルギ差と称する。
【0063】
ステップS24において、水平拡大処理部12は、計算された水平エネルギ差が予め設定されている所定の閾値以上であるか否かを判定する。例えば、水平エネルギ差が閾値以上ではなかった場合、既知のピクセル間のエネルギに大きな差がないことになるので、ステップS25において、水平拡大処理部12は、この部分の画像は、フラットな変化のない部分(エッジのない部分)とみなし、上位側の列のピクセルのエネルギ(より大きいX座標のピクセルのエネルギ)をそのまま挿入し、Hバッファ12aに記憶させる。その後、ステップS22の処理に戻り、それ以降の処理が繰り返される。
【0064】
ステップS24において、水平エネルギ差が閾値以上であると判定された場合、ステップS26において、水平拡大処理部12は、ブランクにはエッジが存在するものとみなし、ピクセルを補間しようとするブランクの左右の列にある、N個の補間用ピクセルのうち、そのブランクを中心として対称な位置関係にあるピクセル同士のエネルギ差の絶対値を計算し、その差の最も小さなピクセルの組み合わせを見つけ出す。
【0065】
例えば、図7に示すように、各ピクセルのエネルギが、Pixel(X,Y)=70,Pixel(X,Y+(N−1)/2)=50,Pixel(X,Y+N−1)=50,Pixel(X+2,Y)=50,Pixel(X+2,Y+(N−1)/2)=30,およびPixel(X+2,Y+N−1)=50であるとき、水平拡大処理部12は、求めようとするブランクを中心として、着目したピクセルのうち、対称な位置関係となるピクセル同士のエネルギの差を求める。
【0066】
すなわち、ABS(Pixel(X,Y)−Pixel(X+2,Y+N−1))=70−50=20,ABS(Pixel(X,Y+(N−1)/2)−Pixel(X+2,Y+(N−1)/2))=50−30=20,およびABS(Pixel(X,Y+N−1)−Pixel(X+2,Y))=50−50=0が求められる。
【0067】
図7の例の場合、ABS(Pixel(X,Y+N−1)−Pixel(X+2,Y))=50−50=0が最小となるので、(X,Y+N−1)と(X+2,Y)の組み合わせが選択されることになる。すなわち、この(X,Y+N−1)と(X+2,Y)を結ぶ方向がエッジ方向となる。
【0068】
ステップS27において、水平拡大処理部12は、エネルギ差が最小となるピクセル同士のピクセルのエネルギの平均値を新たなピクセルのエネルギとしてHバッファ12aに記憶させる。図7の例においては、50(=(50+50)/2)が新たなピクセルの値として挿入され、Hバッファ12aに記憶される。
【0069】
ステップS22において、全てのブランクに新たなピクセルが挿入され、ブランクがないと判定された場合、その処理は終了され、図2のステップS4の処理に戻る。
【0070】
以上のような処理により、例えば、図8(A)に示すような5×5のピクセルの画像データが入力された場合、水平拡大処理部12は、図8(B)に示されるような拡大された画像データを生成する。尚、図8において、各マスは、ピクセルを表し、実線で円が描かれているピクセルが、水平拡大処理により新たに生成(補間)されたピクセルを表している。
【0071】
また、以上においては、補間用のピクセルの個数N=3としたが、Nの個数を増やせば増やすほど、エッジの方向を正確に求めることができるため、生成されるピクセルの精度を向上させることができる。
【0072】
ここで、図2のフローチャートの説明に戻る。
【0073】
ステップS5(図2)において、水平拡大処理部12は、水平拡大処理した画像データが、グラフィックデータであるか否かを判定する。水平拡大処理した画像データが、例えば、写真データである場合、ステップS5(図2)において、水平拡大処理部12は、グラフィックデータではないと判定し、その処理は、ステップS6に進む。
【0074】
ステップS6において、水平拡大処理部12は、水平拡大処理されたHバッファ12aに記憶されている画像データを垂直拡大処理部13に供給する。
【0075】
ステップS7において、垂直拡大処理部13は、入力された画像データを垂直拡大処理する。
【0076】
ここで、図9のフローチャートを参照して、垂直拡大処理部13の垂直拡大処理について説明する。
【0077】
ステップS31において、垂直拡大処理部13は、入力された画像データのピクセル間の垂直方向にブランクを形成し、Vバッファ13aに記憶させる。
【0078】
例えば、2倍に拡大処理する場合、垂直拡大処理部13は、図10に示すように、入力された画像データ(例えば、写真データ)の各ピクセルの水平方向に対して1行おきにブランクの行を設け、これを、Vバッファに記憶させる。尚、図10中の実線で描かれている白円は、元の画像データのピクセルを表し、実線で描かれている黒円は、水平拡大処理により生成されたピクセルを表し、点線で描かれている円は、ブランクを表している。
【0079】
図11は、図10に示すような処理(ステップS31の処理)を施したときの元の画像データ(図11(A))(水平方向の幅:Width=2W−1、垂直方向の高さ:Height=H)と、処理を施された後、Hバッファ12aに記憶された画像データ(図11(B))の関係を示したものである。図11(B)に示すように、元のピクセルに対して、垂直方向に1ピクセル毎にブランクの行が形成されることになるので、Vバッファに記憶されているデータの高さは、2H−1になる。
【0080】
尚、図11中で、濃淡で表されているマスは、元の画像データのピクセルを表し、ハッチングされているマスは、水平拡大処理により生成されたピクセルを表し、白い部分がブランクを表している。
【0081】
ステップS32において、垂直拡大処理部13は、ブランクがあるか否かを判定する。例えば、ブランクがある場合、垂直拡大処理部13は、その処理をステップS33に進める。
【0082】
ステップS33において、垂直拡大処理部13は、ピクセルを求めようとするブランクの垂直エネルギ差を計算する。
【0083】
求めようとするピクセルのエネルギ関数E(N,X+(N−1)/2)は以下のように定義される。
【0084】
E(N,Y+(N−1)/2)
=ABS(Pixel(X+(N−1)/2,Y+2)
−Pixel(X+(N−1)/2,Y)) ・・・(2)
【0085】
この式(2)で定義されるエネルギ関数は、ブランクに垂直方向に隣接するピクセル同士のエネルギ差の絶対値(垂直エネルギ差)を表す。
【0086】
例えば、図12(A)の実線で円が描かれているブランクにピクセルを生成する(補間する)ものとし、その座標を(X+(N−1)/2,Y+1)とする。
そして、このピクセルの補間に、上側の行のN個のピクセルと、下側の行のN個のピクセル(図12(A)においては、N=3の例について示している)を使用するものとすると、それらのピクセル(図中実線の長方形で囲まれている左右のN個のピクセル)の座標は、(X,Y),(X+(N−1)/2,Y),(X+N−1,Y),(X,Y+2),(X+(N−1)/2,Y+2),および(X+N−1,Y+2)となる。図12(B)は、この着目するピクセルと、求めようとするブランクのみを示している。
【0087】
従って、ステップS33においては、式(2)に示すように、求めようとするブランクの左右のピクセル(図12(B)において、矢印で結ばれている上下のピクセル)のエネルギ差の絶対値が求められている。
【0088】
ステップS34において、垂直拡大処理部13は、計算された垂直エネルギ差が予め設定されている閾値以上であるか否かを判定する。例えば、垂直エネルギ差が、閾値以上ではなかった場合、既知の隣接するピクセル間に大きなエネルギ差がないことになるので、ここの画像は、フラットな変化のない(エッジのない)部分とみなし、ステップS35において、垂直拡大処理部13は、上位行のピクセルのエネルギをブランクのピクセルにそのまま挿入し、Vバッファ13aに記憶させる。その後、ステップS32の処理に戻り、それ以降の処理が繰り返される。
【0089】
ステップS34において、計算された垂直エネルギ差が閾値以上であると判定された場合、ステップS36において、垂直拡大処理部13は、ピクセルを補間しようとするブランクの上の行にあるN個の補間用ピクセルと、下の行にあるN個のピクセルのうち、そのブランクを中心として対称な位置関係にあるピクセル同士のエネルギ差の絶対値を計算し、その差の最も小さなピクセルの組み合わせを見つけ出す。
【0090】
例えば、図13に示すように、各ピクセルのエネルギが、Pixel(X,Y)=50,Pixel(X+(N−1)/2,Y)=70,Pixel(X+N−1,Y)=70,Pixel(X,Y+2)=50,Pixel(X+(N−1)/2,Y+2)=30,およびPixel(X+N−1,Y+2)=50であるとき、垂直拡大処理部13は、求めようとするブランクを中心として、着目したピクセルのうち、対称な位置関係となるピクセル同士のエネルギの差の絶対値を求める。
【0091】
すなわち、ABS(Pixel(X,Y)−Pixel(X+N−1,Y+2))=50−50=0,ABS(Pixel(X+(N−1)/2,Y)−Pixel(X+(N−1)/2,Y+2))=70−30=40,およびABS(Pixel(X+N−1,Y)−Pixel(X,Y+2)=70−50=20が求められる。
【0092】
図13の例の場合、ABS(Pixel(X,Y)−Pixel(X+N−1,Y+2))=50−50=0が最小となるので、(X,Y)と(X+N−1,Y+2)の組み合わせが選択されることになる。すなわち、(X,Y)と(X+N−1,Y+2)を結ぶ、方向が、エッジ方向となる。
【0093】
ステップS37において、垂直拡大処理部13は、エネルギ差が最小となるピクセル同士のピクセルのエネルギの平均値を新たなピクセルのエネルギとしてVバッファ13aに記憶させる。
【0094】
図13の例においては、50(=(50+50)/2)が新たなピクセルの値としてブランクのピクセルに挿入され、Vバッファに記憶される。その後、ステップS32の処理に戻り、それ以降の処理が繰り返される。
【0095】
ステップS32において、全てのブランクに新たなピクセルが挿入され、ブランクが存在しないと判定された場合、ステップS38において、垂直拡大処理部13は、Vバッファ13aに記憶されている画像データを2Dエッジ強調部14に出力し、その処理は終了され、図2のステップS7の処理に戻る。
【0096】
以上のような処理により、例えば、図8(B)に示すような画像データが入力された場合、垂直拡大処理部13は、図8(C)に示すように、画像データを拡大することになる。従って、水平拡大処理および垂直拡大処理をすることにより、図8(A)に示す画像データは、図8(C)に示すような画像データに変換されることになる。尚、図8(C)の点線で描かれた円が、垂直拡大処理により生成されたピクセルを表している。
【0097】
ここで、図2のフローチャートの説明に戻る。
【0098】
ステップS8において、2Dエッジ強調部14は、入力された水平垂直拡大処理された画像データに、2Dエッジ強調処理を実行する。
【0099】
ここで、図14のフローチャートを参照して、2Dエッジ強調部14の2Dエッジ強調処理について説明する。
【0100】
ステップS41において、2Dエッジ強調部14は、入力された画像データをバッファ14aに記憶させる。
【0101】
ステップS42において、2Dエッジ強調部14は、処理すべきピクセルがあるか否かを判定する。例えば、2Dエッジ強調処理されていないピクセルがある場合、処理すべきピクセルがあると判定され、その処理は、ステップS43に進む。
【0102】
ステップS43において、2Dエッジ強調部14は、処理しようとするピクセルの水平または垂直エネルギ差が、閾値以上であるか否かを判定する。例えば、水平および垂直エネルギ差が閾値以上ではないと判定された場合、ステップS44において、2Dエッジ強調部14は、そのピクセルは、エッジ上のピクセルではないものとみなし、フィルタ処理を施さずに(元のエネルギをそのままそのピクセルのエネルギし)、バッファ14aに記憶させる。その後、ステップS42の処理に戻り、それ以降の処理が繰り返される。
【0103】
ステップS43において、水平または垂直エネルギ差が閾値以上であると判定された場合、ステップS45において、2Dエッジ強調部14は、そのピクセルがエッジ上にあるものとみなし、2Dエッジ強調処理を施す。すなわち、2Dエッジ強調部14は、2Dエッジ強調処理しようとするピクセルを中心とする5×5個のピクセルに対して、例えば、図15に示すようなフィルタ係数を乗算し、その和を、2Dエッジ強調処理しようとするピクセルに挿入する。尚、図15のα(0.5<α<1.2)は、2Dエッジ処理のレベル(訂正のレベル)を制御する適正パラメータである。また、この2Dフィルタは、3×3個のピクセルに対してローパスフィルタ処理すると同時に、5×5個のピクセルに対してハイパスフィルタ処理するフィルタである。
【0104】
例えば、α=0.6とする場合、図16(A)に示されるようなエネルギの画像データが、2Dエッジ強調部14に入力されたとき、この図16(A)に示す画像データの実線の四角で囲まれる「30」のピクセルに対して、図16(A)の点線で囲まれる5×5個のピクセルを用いて、フィルタの演算が実行される。
【0105】
すなわち、フィルタの上の行の右から、(1/4−0.6/2)2×30+(1/16−0.6/8)×30+(0.6/4−0.62/2)×30+(1/16−0.6/8)×30+(1/4−0.6/2)2×30+(1/16−0.6/8)×70+1/16×30+0.6/4×30+1/16×30+(1/16−0.6/8)×30+(0.6/4−0.62/2)×70+0.6/4×70+0.62×30+0.6/4×30+(0.6/4−0.62/2)×30+(1/16−0.6/8)×70+1/16×70+0.6/4×70+1/16×30+(1/16−0.6/8)×30+(1/4−0.6/2)2×70+(1/16−0.6/8)×70+(0.6/4−0.62/2)×70+(1/16−0.6/8)×70+(1/4−0.6/2)2×30=40となり、フィルタ処理されたエネルギは、図16(B)に示すように40となる。
【0106】
ステップS46において、2Dエッジ強調部14は、上記の処理により求められたフィルタ処理されたエネルギをバッファ14aに記憶させる。その後、ステップS42の処理に戻り、全てのピクセルに対して処理がなされるまで、それ以降の処理が繰り返される。すなわち、図15に示すフィルタにより、2Dエッジ強調部14に入力された画像データの各ピクセルが順次フィルタ処理される。
【0107】
ステップS42において、全てのピクセルがフィルタ処理され、フィルタ処理されるべきピクセルがないと判定された場合、2Dエッジ強調部14は、ステップS47において、バッファ14aに記憶されている画像データを表示部2に出力する。その後、その処理は、図2のフローチャートのステップS8の処理に戻る。
【0108】
ステップS9において、表示部2は、2Dエッジ強調部14から入力された画像データを表示する。
【0109】
ステップS2において、入力された画像データが、フォントデータであると判定された場合、ステップS10において、イメージセレクタ11は、入力された画像データをエッジ接続部15に出力する。
【0110】
ステップS11において、エッジ接続部15は、入力されたフォントデータのエッジのぼやけ易い、接続部分を、以下の処理により太くする。
【0111】
エッジの接続部分は、ピクセルで表すと図17に示すような構成となる。すなわち、図17(A)に示すように、Pixel0とPixel3のエネルギ差が、Pixel1とPixel2のエネルギよりも低い場合、エッジは、Pixel0とPixel3により構成されることになる。この状態で、ピクセルPixel1とPixel2のエネルギの大小を比較し、例えば、Pixel1の方が、エネルギ的に大きいとき、Pixel1のエネルギをPixel0とPixel3の平均値となるエネルギで置換することによりエッジの接続部分を太くする。
【0112】
同様に図17(B)に示すように、Pixel1とPixel2によりエッジが構成された場合、Pixel0とPixel3のエネルギの大小を比較し、Pixel3の方がエネルギ的に大きいとき、Pixel3に、Pixel1とPixel2の平均値となるエネルギで置換してエッジの接続部分を太くする。
【0113】
以上のように、エッジ接続部15は、入力されたフォントデータの細いエッジの接続部分を太く接続した後、水平拡大処理部12に出力する。その後、ステップS4以降の処理が繰り返される。
【0114】
ステップS5において、水平拡大処理部12により水平拡大処理された画像データがグラフィックデータであると判定された場合、ステップS12において、水平拡大処理部12は、水平拡大処理した画像データを1Dエッジ強調部16に出力する。
【0115】
ステップS13において、1Dエッジ強調部16は、入力された水平拡大処理されている画像データを1Dエッジ強調処理する。
【0116】
ここで、図18のフローチャートを参照して、1Dエッジ強調部16の1Dエッジ強調処理について説明する。
【0117】
ステップS51において、1Dエッジ強調部16は、入力された画像データをバッファ16aに記憶させる。
【0118】
ステップS52において、1Dエッジ強調部16は、処理すべきピクセルがあるか否かを判定する。処理すべきピクセルがある場合、ステップS53において、1Dエッジ強調部16は、処理しようとするピクセルの水平エネルギ差が閾値以上であるか否かを判定する。水平エネルギ差が、閾値以上ではないと判定された場合、ステップS54において、1Dエッジ強調部16は、処理すべきピクセルは、エッジ上のピクセルではないものとみなし、そのピクセルに1Dエッジ強調用のフィルタ処理をすることなく、バッファ16aに記憶させる。その後、ステップS52の処理に戻り、それ以降の処理が繰り返される。
【0119】
ステップS53において、ピクセルの水平エネルギ差が閾値以上であると判定された場合、1Dエッジ強調部16は、そのピクセルがエッジ上のピクセルであるものとみなし、ステップS55において、水平方向の1Dエッジ強調用のフィルタ処理を施す。
【0120】
例えば、図19に示すような水平方向の1Dエッジ強調用のフィルタを、α=0.6で使用し、図20(A)に示すような画像データのうち、実線の四角で囲まれた「30」のピクセルをフィルタ処理する場合、フィルタ処理は、図19に示すフィルタと、図20(A)の点線で囲まれる1×5個のピクセルにより計算される。その計算結果は、(1/4−0.6/2)×70+1/4×70+0.6×30+1/4×30+(1/4−0.6/2)×30=38となり、図20(B)に示すように、フィルタ処理後のピクセルのエネルギは、「38」となる。
【0121】
ステップS56において、1Dエッジ強調部16は、ステップS55の処理で、フィルタ処理されたピクセルの値を元のピクセルの値とし、バッファ16aに記憶させる。その後、ステップS52の処理に戻り、それ以降の処理が繰り返される。
【0122】
ステップS52において、全てのピクセルに処理がなされ、処理すべきピクセルがないと判定された場合、ステップS57において、1Dエッジ強調部16は、バッファ16aに記憶された画像データを垂直拡大処理部13に出力する。その後、処理は、図2のステップS13に戻る。
【0123】
ここで、図2のフローチャートの説明に戻る。
【0124】
ステップS14において、垂直拡大処理部13は、入力された画像データを垂直拡大処理する。この処理については、図9のフローチャートを参照して説明した処理と同様であるので、省略する。
【0125】
ステップS15において、2Dエッジ強調部14は、垂直拡大処理部13から入力された垂直拡大処理されている画像データが、既に水平方向に1Dエッジ強調処理された画像であるので、図14のフローチャートで説明した2Dエッジ強調用のフィルタを使った処理ではなく、垂直方向の1Dエッジ強調処理を実行する。
【0126】
ここで、図21のフローチャートを参照して、2Dエッジ強調部16が実行する1Dエッジ強調処理(垂直方向)について説明する。
【0127】
ステップS61において、2Dエッジ強調部14は、入力された画像データをバッファ14aに記憶させる。
【0128】
ステップS62において、2Dエッジ強調部14は、処理すべきピクセルがあるか否かを判定する。処理すべきピクセルがある場合、ステップS63において、2Dエッジ強調部14は、処理しようとするピクセルの垂直エネルギ差が閾値以上であるか否かを判定する。垂直エネルギ差が、閾値以上ではないと判定された場合、ステップS64において、2Dエッジ強調部14は、処理すべきピクセルが、エッジ上のピクセルではないとみなし、そのピクセルに1Dエッジ強調用のフィルタ処理をすることなく、バッファ14aに記憶させる。その後、ステップS62の処理に戻り、それ以降の処理が繰り返される。
【0129】
ステップS63において、ピクセルの垂直エネルギ差が閾値以上であると判定された場合、ステップS65において、2Dエッジ強調部14は、そのピクセルがエッジ上のピクセルであるものとみなし、1Dエッジ強調用のフィルタ処理を施す。
【0130】
例えば、図22に示すような1Dエッジ強調用のフィルタを使用し、α=0.6とする場合、図23(A)に示すような画像データのうち、実線の四角で囲まれた「70」のピクセルをフィルタ処理するとき、フィルタ処理は、図22に示すフィルタと、図23(A)の点線で囲まれる5×1個のピクセルにより計算される。その計算結果は、(1/4−0.6/2)×30+1/4×30+0.6×70+1/4×70+(1/4−0.6/2)×70=62となり、図23(B)に示すように、フィルタ処理後のピクセルのエネルギは、「62」となる。
【0131】
ステップS66において、2Dエッジ強調部14は、ステップS65の処理で、フィルタ処理されたピクセルの値を元のピクセルの値とし、バッファ14aに記憶させる。その後、ステップS62の処理に戻り、それ以降の処理が繰り返される。
【0132】
ステップS62において、全てのピクセルに処理がなされ、処理すべきピクセルがないと判定された場合、ステップS67において、2Dエッジ強調部14は、バッファ14aに記憶された画像データを表示部2に出力する。その後、処理は、図2のステップS9に進み、それ以降の処理が繰り返される。
【0133】
尚、以上の説明においては、拡大の倍率を水平方向と垂直方向について、それぞれ2倍として説明したが、当然のことながら、これ以上の倍率であってもよい。
【0134】
また、画像データの種類については、文字データ、写真データ、およびグラフィックデータのそれぞれの単一データの場合について説明してきたが、複数の種類が組み合わされている場合、画像データをそれぞれのデータの種類ごとに分割して、処理することで複数種類の画像データが組み合わされた画像データにも対応することができる。
【0135】
また、以上の画像拡大装置1においては、水平方向に拡大処理を実行した後、垂直方向に拡大処理を実行する例について、説明してきたが、当然のことながら、垂直方向に拡大処理を行った後、水平方向に拡大処理をするようにしてもよく、グラフィックデータを拡大する場合には、垂直方向に拡大処理を実行した後、垂直方向成分のエッジ強調処理を実行し、その後、水平方向に拡大処理を実行した後、水平方向成分のエッジ強調処理を実行するようにしても良い。
【0136】
以上によれば、入力された画像データの種類が判定され、文字データである場合、ぼやけ易いエッジの接続部分が強調され、高解像度での拡大処理が可能となる。また、入力された画像データが、写真データである場合、水平方向と垂直方向にブランクを設け、そのブランクに元の画像データのピクセルからエッジ方向を設定し、そのエッジ方向のピクセルからブランクにピクセルを補間し、拡大画像データを生成すると共に、その拡大された画像データの水平方向と垂直方向の両方にエッジ強調処理がなされるので、高解像度で写真データを拡大することが可能となる。さらに、入力された画像データが、グラフィックデータである場合、水平方向に拡大処理をした後、水平方向のエッジ強調処理を施し、続いて、垂直方向の拡大処理をした後、垂直方向のエッジ強調処理を施すようにしたので、拡大処理毎に発生するエッジのぼやけやエラーを減少することができ、エッジ部分をより鮮明に、高解像度で拡大することが可能となる。
【0137】
上述した一連の処理は、ハードウェアにより実行させることもできるが、ソフトウェアにより実行させることもできる。一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、図1に示す画像拡大装置などの専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行させることが可能な、例えば汎用のパーソナルコンピュータなどに記録媒体からインストールされる。
【0138】
図24は、パーソナルコンピュータの一実施の形態の構成を示している。パーソナルコンピュータのCPU101は、パーソナルコンピュータの動作の全体を制御する。また、CPU101は、バス104および入出力インターフェース105を介してユーザからキーボードやマウスなどからなる入力部106から指令が入力されると、それに対応してROM(Read Only Memory)102に格納されているプログラムを実行する。あるいはまた、CPU101は、ドライブ110に接続された磁気ディスク131、光ディスク132、光磁気ディスク133、または半導体メモリ134から読み出され、記憶部108にインストールされたプログラムを、RAM(Random Access Memory)103にロードして実行する。さらに、CPU101は、通信部109を制御して、外部と通信し、データの授受を実行する。
【0139】
プログラムが記録されている記録媒体は、図24に示すように、コンピュータとは別に、ユーザにプログラムを提供するために配布される、磁気ディスク131(フロッピーディスクを含む)、光ディスク132(CD-ROM(Compact Disk-Read Only Memory),DVD(Digital Versatile Disk)を含む)、光磁気ディスク133(MD(Mini-Disk)を含む)、もしくは半導体メモリ134などよりなるパッケージメディアにより構成されるだけでなく、コンピュータに予め組み込まれた状態でユーザに提供される、ROM102や、記憶部108に含まれるハードディスクなどで構成される。
【0140】
尚、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理を含むものである。
【0141】
【発明の効果】
本発明によれば、文字データなどの拡大画像にするとぼやけ易いエッジの接続部分の解像度を高くすることが可能となる。
【0142】
また、本発明によれば、水平垂直方向の画像データの拡大処理が簡単で、かつ、拡大処理された画像の解像度を高くすることが可能となる。
【0143】
さらに、本発明によれば、グラフィックデータなどの拡大画像のエッジ部分の解像度を高めることが可能となる。
【図面の簡単な説明】
【図1】画像拡大装置の構成を示すブロック図である。
【図2】図1の画像拡大装置が入力された画像データを拡大するときの処理を説明するフローチャートである。
【図3】水平拡大処理を説明するフローチャートである。
【図4】水平拡大するときの元の画像データのピクセルとブランクの位置関係を説明する図である。
【図5】元の画像データに水平方向にブランクを入れた状態を説明する図である。
【図6】水平拡大処理する際に、新たにピクセルを生成する方法を説明する図である。
【図7】水平拡大処理する場合の新たにピクセルを生成するときの一例を示す図である。
【図8】入力された画像データが水平拡大処理および垂直拡大処理されたときの画像データを説明する図である。
【図9】垂直拡大処理を説明するフローチャートである。
【図10】垂直拡大処理するときの元の画像データのピクセルとブランクの位置関係を説明する図である。
【図11】元の画像データに垂直方向にブランクを入れた状態を説明する図である。
【図12】垂直拡大処理する際に、新たにピクセルを生成する方法を説明する図である。
【図13】垂直拡大処理する際に、新たにピクセルを生成する一例を示す図である。
【図14】2Dエッジ強調処理を説明するフローチャートである。
【図15】2Dエッジ強調用のフィルタの一例を示す図である。
【図16】2Dエッジ強調用フィルタの処理を説明する図である。
【図17】フォントデータのエッジの接続部分を太くする方法を説明する図である。
【図18】図1の1Dエッジ強調部の1Dエッジ強調処理を説明するフローチャートである。
【図19】水平方向の1Dエッジ強調用フィルタの一例を示す図である。
【図20】水平方向の1Dエッジ強調用フィルタの処理を説明する図である。
【図21】図1の2Dエッジ強調部の1Dエッジ強調処理を説明するフローチャートである。
【図22】垂直方向の1Dエッジ強調用フィルタの一例を示す図である。
【図23】垂直方向の1Dエッジ強調用フィルタの処理を説明する図である。
【図24】媒体を説明する図である。
【符号の説明】
1 画像拡大装置,2 表示部,11 イメージセレクタ,12 水平拡大処理部,12a Hバッファ,13 垂直拡大処理部,13a Vバッファ,142Dエッジ強調部,14a バッファ,15 エッジ接続部,16 1Dエッジ強調部,16a バッファ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus and method, and a recording medium, and more particularly, to an image processing apparatus and method and a recording medium that allow digital image data to be enlarged at high resolution.
[0002]
[Prior art]
A technique for enlarging and displaying digital image data with high resolution is becoming widespread.
For example, as a display technology for digital image data such as a digital camera and a camcorder, development for realizing an enlarged display of digital image data called digital zoom at a high resolution is being advanced.
[0003]
Conventionally, when enlarging digital image data, a technique represented by an adjacent interpolation method, a two-dimensional linear interpolation method, a B-spline method, or the like has been used.
[0004]
[Problems to be solved by the invention]
However, the adjacent interpolation method known as the 0th-order hold interpolation method is a method in which adjacent pixels are inserted and displayed in a blank generated by enlargement. Digital image data can be easily enlarged, but when high-magnification display is used, a so-called mosaic pattern appears, and the edge portion of the image (the part that forms the contour) is distorted or displayed in a jagged manner. There were problems such as.
[0005]
The two-dimensional linear interpolation method inserts a pixel that is an average of the pixels of the original image adjacent to each other in the horizontal direction and the vertical direction into a blank portion generated between the pixels of the original image when expanding. This method enlarges the digital image data, but because it interpolates in the horizontal and vertical directions, the interpolation method is superior to the adjacent interpolation method, but the entire image is blurred, so the resolution is improved. It is difficult. Therefore, when the original image data is enlarged at a high magnification, there is a problem that a mosaic pattern appears like the adjacent interpolation method.
[0006]
The B-spline method is more stable than the adjacent interpolation method and the two-dimensional linear interpolation method, and even when enlarged at a high magnification, a mosaic pattern or the like does not occur, but the image is blurred and complicated calculation is performed. Therefore, there is a problem that the hardware is relatively loaded.
[0007]
The present invention has been made in view of such circumstances, and intends to enlarge digital image data with high resolution by a simple apparatus configuration and a calculation method.
[0008]
[Means for Solving the Problems]
The first image processing apparatus of the present invention, An image processing apparatus for enlarging an image of input image data, Image type of input image data Whether or not contains text and is a graphic or photo And a determination result of the determination means Of the pixels arranged two-dimensionally in the horizontal and vertical directions, the energy difference between the pair of two pixels adjacent to each other in the first diagonal direction and the first diagonal direction A set of two pixels having a smaller energy difference by comparison with the energy difference of the set of two pixels adjacent to each other in a second diagonal direction different from the first set of two pixels. The Of the images of the input image data As the edge of the character To detect Character edge Detection means; Character edge By detection means By comparing the energy difference, which is different from the detected two pixel sets, out of the two sets of pixels having a large energy difference, the energy of the two sets of pixels detected by the character edge detection means is determined as the high-energy pixel. By substituting the average value of Emphasize the connection of detected edges letter Edge enhancement means, letter And an enlarging means for enlarging the image data in which the connection portion of the edge portion is emphasized by the edge emphasizing means.
[0011]
The first image processing method of the present invention, An image processing apparatus for enlarging an image of input image data, wherein the determination unit determines whether the type of the image of the input image data includes a character and whether it is a graphic or a photograph. When the determination result of the determination means includes a character, among the pixels arranged two-dimensionally in the horizontal direction and the vertical direction, the energy difference between a pair of two pixels adjacent to each other in the first diagonal direction By comparing with the energy difference of two pixel sets adjacent to the second diagonal direction different from the first diagonal direction and respectively adjacent to the first two pixel sets, Character edge detection means for detecting a set of two small pixels as an edge portion of a character in the input image data image, and two pixels detected by the character edge detection means. By comparing the energy difference, which is different from the set of data, a pixel having a large energy out of the group of two pixels having a large energy difference is replaced with an average value of the energy of the group of two pixels detected by the character edge detecting means. A character edge emphasizing unit for emphasizing the detected connection portion of the edge portion, and an enlarging unit for enlarging the image data in which the edge portion connection portion is emphasized by the character edge emphasis unit. In the image processing method of the image processing apparatus, In judging means, Image type of input image data Whether or not contains text and is a graphic or photo A determination step for determining In the character edge detection means, Judgment result in the judgment step process Of the pixels arranged two-dimensionally in the horizontal and vertical directions, the energy difference between the pair of two pixels adjacent to each other in the first diagonal direction and the first diagonal direction A set of two pixels having a smaller energy difference by comparison with the energy difference of the set of two pixels adjacent to each other in a second diagonal direction different from the first set of two pixels. The Of the images of the input image data As the edge of the character To detect Character edge A detection step; Character edge in character edge enhancement means In the processing of the detection step By comparing the energy difference, which is different from the detected two pixel sets, the energy of the two pixel sets detected by the character edge detection step is selected from the two pixel sets having the large energy difference. By substituting the average value of Emphasize the connection of detected edges letter An edge enhancement step; Character in enlargement means And an enlargement step of enlarging the image data in which the connection portion of the edge portion is emphasized by the edge enhancement step.
[0012]
The program of the first recording medium of the present invention is An image processing apparatus for enlarging an image of input image data, wherein the determination unit determines whether the type of the image of the input image data includes a character and whether it is a graphic or a photograph. When the determination result of the determination means includes a character, among the pixels arranged two-dimensionally in the horizontal direction and the vertical direction, the energy difference between a pair of two pixels adjacent to each other in the first diagonal direction By comparing with the energy difference of two pixel sets adjacent to the second diagonal direction different from the first diagonal direction and respectively adjacent to the first two pixel sets, Character edge detection means for detecting a set of two small pixels as an edge portion of a character in the input image data image, and two pixels detected by the character edge detection means. By comparing the energy difference, which is different from the set of data, a pixel having a large energy out of the group of two pixels having a large energy difference is replaced with an average value of the energy of the group of two pixels detected by the character edge detecting means. A character edge emphasizing unit for emphasizing the detected connection portion of the edge portion, and an enlarging unit for enlarging the image data in which the edge portion connection portion is emphasized by the character edge emphasis unit. Image processing device Readable by computer to control A program, In judging means, Image type of input image data Whether or not contains text and is a graphic or photo A determination step for determining In the character edge detection means, Judgment result in the judgment step process Of the pixels arranged two-dimensionally in the horizontal and vertical directions, the energy difference between the pair of two pixels adjacent to each other in the first diagonal direction and the first diagonal direction A set of two pixels having a smaller energy difference by comparison with the energy difference of the set of two pixels adjacent to each other in a second diagonal direction different from the first set of two pixels. The Of the images of the input image data As the edge of the character To detect Character edge A detection step; Character edge in character edge enhancement means In the processing of the detection step By comparing the energy difference, which is different from the detected two pixel sets, the energy of the two pixel sets detected by the character edge detection step is selected from the two pixel sets having the large energy difference. By substituting the average value of Emphasize the connection of detected edges letter An edge enhancement step; Character in enlargement means And an enlargement step of enlarging the image data in which the connection portion of the edge portion is emphasized by the edge enhancement step.
[0017]
The pixel generation means may cause the blank to generate pixels by linear interpolation of the energy of two pixels on the edge direction detected by the edge direction detection means.
[0019]
The two-dimensional filter process may be a filter process for 5 × 5 pixels in which a low-pass filter process for 3 × 3 pixels and a high-pass filter process for 5 × 5 pixels simultaneously operate.
[0027]
The second of the present invention An image processing apparatus determines whether an image type of input image data includes a character and whether it is a graphic or a photograph in an image processing apparatus that enlarges an image of input image data. If the determination result of the determination means and the determination means includes a character, among the pixels arranged two-dimensionally in the horizontal direction and the vertical direction, a set of two pixels adjacent to each other in the first diagonal direction By comparing the energy difference with the energy difference of two pixel sets adjacent to the second diagonal direction different from the first diagonal direction and respectively adjacent to the first two pixel sets, either Character edge detection means for detecting a pair of two pixels having a small energy difference as an edge portion of a character in the image of the input image data, and detection by the character edge detection means By comparing the energy difference, which is different from the set of two pixels, a pixel having a large energy out of the pair of two pixels having a large energy difference is detected as the energy of the set of two pixels detected by the character edge detecting means. By replacing with the average value, the character edge emphasizing means for emphasizing the connection part of the edge part, and when the determination result of the determination means is a photo, the first direction which is one of the horizontal direction and the vertical direction, and A blank generating means for generating a first direction blank and a second direction blank between the pixels of the input image data in the second direction, and a first direction blank generated by the blank generating means, or a second Based on each pixel adjacent to the direction blank, an energy difference between adjacent pixels in the first direction or the second direction is obtained, and the difference is determined. If the energy difference exceeds the threshold value, the direction connecting the two pixels where the energy difference between the two pixels having a symmetrical positional relationship with respect to the first direction blank or the second direction blank is the minimum is the edge direction. Based on the edge direction detection means to detect, the first direction blank, the pixel adjacent to the first direction blank, and the edge direction detected by the edge direction detection means, a pixel is generated by interpolation in the first direction. In the second direction blank of each pixel in the second direction of the image data to which the pixel generated by interpolation in the first direction is added, the pixel adjacent to the second direction blank and detected by the edge direction detection means Based on the edge direction, a pixel generation unit that generates a pixel by interpolating in the second direction, and the pixel generation unit generates the pixel. Photographic edge enhancement means for enhancing edges by performing two-dimensional filtering on each pixel of image data; and first direction enlargement means for enlarging an image in a first direction when the determination result of the determination means is graphic First-direction edge enhancement means for enhancing edges by applying a one-dimensional first-direction filtering process to pixels of the image enlarged by the first-direction enlargement means, and second-direction enlargement for enlarging the image in the second direction And a second direction edge enhancement unit that enhances an edge by applying a one-dimensional second direction filtering process to the pixels of the image enlarged by the second direction enlargement unit.
[0028]
In the first image processing apparatus, image processing method, and recording medium program of the present invention, the type of image of the input image data Whether or not contains text and is a graphic or photo Is determined and the result is Of the pixels arranged two-dimensionally in the horizontal and vertical directions, the energy difference between the pair of two pixels adjacent to each other in the first diagonal direction and the first diagonal direction Is compared with the energy difference of the two pixel sets adjacent to each other in the second diagonal direction, and adjacent to each of the first two pixel sets. A set of pixels Of the images of the input image data As the edge of the character Detected, Comparing the energy difference, which is different from the two detected pixel sets, out of the two pixel sets having the large energy difference, the high energy pixel is replaced with the average value of the energy of the two detected pixel sets. By doing The detected connection part of the edge part is emphasized, and the image data in which the connection part of the edge part is emphasized is enlarged.
[0030]
The second of the present invention In the image processing device, the image processing device enlarges the image of the input image data, and whether the type of the image of the input image data includes characters and whether it is a graphic or a photograph Is determined, and the determination result includes a character, among the pixels arranged two-dimensionally in the horizontal direction and the vertical direction, the energy difference between a pair of two pixels adjacent to each other in the first diagonal direction; By comparing with the energy difference of two pixel sets adjacent to the second diagonal direction different from the first diagonal direction and respectively adjacent to the first two pixel sets, A small pair of pixels is detected as an edge of a character in the image of the input image data, and is different from the detected pair of pixels. Of the pair of two pixels having a large energy difference, the pixel having the large energy is replaced with the average value of the energy of the two pairs of detected pixels, so that the edge connection portion is emphasized, and the determination result is In the case of a photograph, a first direction blank and a second direction blank are respectively provided between the pixels of the input image data in the first direction and the second direction which are either the horizontal direction or the vertical direction. Based on the generated first direction blank or each pixel adjacent to the second direction blank, an energy difference between pixels adjacent in the first direction or the second direction is obtained, and the energy difference is determined as a threshold value. The energy difference between the two pixels having a symmetrical positional relationship with the first direction blank or the second direction blank as the center is the minimum. The direction connecting the two pixels is detected as an edge direction, and a pixel is generated by interpolating in the first direction based on the first direction blank, the pixel adjacent to the first direction blank, and the detected edge direction. The second direction blank of each pixel in the second direction of the image data to which the pixel generated by interpolation in the first direction is added is based on the pixel adjacent to the second direction blank and the detected edge direction. If the pixel is generated by interpolation in the second direction, the edge is emphasized by applying a two-dimensional filtering process to each pixel of the image data from which the pixel is generated, and the determination result is a graphic, The image is magnified in one direction, and the pixels of the image magnified in the first direction are subjected to a one-dimensional first direction filtering process to enhance edges, Direction image is enlarged, the edge is emphasized by the second direction filter processing of the one-dimensional pixel of the enlarged image by the second direction is performed.
[0031]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram showing a configuration of an embodiment of an
[0032]
The configuration of the
[0033]
The image selector 11 of the
[0034]
The
[0035]
The horizontal
[0036]
The 1D
[0037]
The vertical
[0038]
The 2D
[0039]
It should be noted that graphic data enlarged in the horizontal direction by the horizontal
[0040]
That is, when the graphic data is input, the 2D
[0041]
As described above, the edge portion enhancement processing differs depending on the type of image data, for the following reason. That is, for example, graphic data has more edges-enhanced images (images with sharp edges) than photographic data and character data, so each time enlargement processing is performed in each of the horizontal and vertical directions, By performing edge emphasis, it is possible to reduce blurring and errors occurring at the edge portion of the image data that occur each time enlargement processing is performed. Therefore, edges are emphasized in each direction, rather than edge enhancement at once with a 2D filter.
[0042]
On the other hand, since the photographic data is a mixture of an image near the focus and an image away from the focus, the photographic data is not an image in which the edge is emphasized (image where the edge is clear) compared to the graphic data. Thus, by processing the edge enhancement in the horizontal direction and the vertical direction at the same time, it is possible to obtain an image in which a moderately blurred portion appears in perspective.
[0043]
In this way, by switching the edge enhancement filtering method according to the image data, the enlarged image can be expressed more naturally with respect to human vision.
[0044]
Next, an operation when the
[0045]
When the
[0046]
In step S2, the image selector 11 determines whether or not the input image data is character data (font data). For example, when the input image data is photo data, the image selector 11 determines that the input image data is not character data (font data), and proceeds to the process of step S3.
[0047]
In step S <b> 3, the image selector 11 outputs the input image data (photo data) to the horizontal
[0048]
In step S4, the horizontal
[0049]
Here, the horizontal enlargement processing of the horizontal
[0050]
In step S21, the horizontal
[0051]
For example, when the enlargement process is performed twice, the horizontal
[0052]
FIG. 5 shows the original image data (FIG. 5A) (horizontal width: Width = W, vertical height: Height) when the processing shown in FIG. 4 (the processing of step S21) is performed. = H) and the image data (FIG. 5B) stored in the
[0053]
In step S22, the horizontal
[0054]
In step S <b> 23, the horizontal
[0055]
The blank energy function E (N, Y + (N−1) / 2) to be obtained is defined as follows.
[0056]
E (N, Y + (N-1) / 2)
= ABS (Pixel (X + 2, Y + (N-1) / 2)
−Pixel (X, Y + (N−1) / 2)) (1)
[0057]
Here, Pixel () represents the energy of (known) pixels on each coordinate. N (N is arbitrary) means the number of known pixels used to interpolate and generate pixels, and ABS (Absolute) means an absolute value.
[0058]
The energy function defined by this equation (1) represents the absolute value of the energy difference between pixels adjacent to the blank in the horizontal direction.
[0059]
The pixel energy referred to here is a value based on the luminance and color of the pixel, and means that the luminance and color values of each pixel can be restored from the energy value. In the following description, energy is used in the same meaning.
[0060]
For example, a pixel is generated (interpolated) in a blank in which a circle is drawn with a solid line in FIG. 6A, and its coordinates are (X + 1, Y + (N−1) / 2). In this pixel interpolation, N pixels in the left column and N pixels in the right column (in FIG. 6A, an example of N = 3) is used. Then, the coordinates of these pixels (N pixels on the left and right surrounded by a solid rectangle in the figure) are (X, Y), (X, Y + (N−1) / 2), (X, Y + N). -1), (X + 2, Y), (X + 2, Y + (N-1) / 2), and (X + 2, Y + N-1). FIG. 6B shows only the pixel of interest and the blank to be obtained.
[0061]
Therefore, in step S23, as shown in Expression (1), the absolute value of the energy difference between the left and right blank pixels (left and right pixels connected by arrows in FIG. 6B) to be obtained is calculated. It has been demanded.
[0062]
In the following description, the energy difference between pixels adjacent to a predetermined pixel or blank in the horizontal direction is referred to as horizontal energy difference, and the energy difference between pixels adjacent to the predetermined pixel or blank in the vertical direction is referred to as vertical energy. Called the difference.
[0063]
In step S24, the horizontal
[0064]
If it is determined in step S24 that the horizontal energy difference is equal to or greater than the threshold value, in step S26, the horizontal
[0065]
For example, as shown in FIG. 7, the energy of each pixel is Pixel (X, Y) = 70, Pixel (X, Y + (N−1) / 2) = 50, Pixel (X, Y + N−1) = 50. , Pixel (X + 2, Y) = 50, Pixel (X + 2, Y + (N−1) / 2) = 30, and Pixel (X + 2, Y + N−1) = 50, the horizontal
[0066]
That is, ABS (Pixel (X, Y) -Pixel (X + 2, Y + N-1)) = 70-50 = 20, ABS (Pixel (X, Y + (N-1) / 2) -Pixel (X + 2, Y + (N -1) / 2)) = 50-30 = 20 and ABS (Pixel (X, Y + N-1) -Pixel (X + 2, Y)) = 50-50 = 0.
[0067]
In the case of the example of FIG. 7, ABS (Pixel (X, Y + N−1) −Pixel (X + 2, Y)) = 50−50 = 0 is minimum, so (X, Y + N−1) and (X + 2, Y) Will be selected. That is, the direction connecting (X, Y + N-1) and (X + 2, Y) is the edge direction.
[0068]
In step S27, the horizontal
[0069]
In step S22, when a new pixel is inserted into all blanks and it is determined that there are no blanks, the process ends, and the process returns to step S4 in FIG.
[0070]
For example, when image data of 5 × 5 pixels as shown in FIG. 8A is input by the above processing, the horizontal
[0071]
In the above description, the number N of interpolation pixels is set to 3. However, as the number of N is increased, the direction of the edge can be obtained more accurately, so that the accuracy of the generated pixel is improved. Can do.
[0072]
Here, the description returns to the flowchart of FIG.
[0073]
In step S5 (FIG. 2), the horizontal
[0074]
In step S <b> 6, the horizontal
[0075]
In step S7, the vertical
[0076]
Here, the vertical enlargement processing of the vertical
[0077]
In step S31, the vertical
[0078]
For example, when the enlargement process is performed twice, the vertical
[0079]
FIG. 11 shows the original image data (FIG. 11A) (horizontal width: Width = 2W−1, vertical height) when the processing shown in FIG. 10 (processing in step S31) is performed. : Height = H) and the relationship between the image data (FIG. 11B) stored in the
[0080]
In FIG. 11, shaded squares represent pixels of the original image data, hatched squares represent pixels generated by horizontal enlargement processing, and white portions represent blanks. Yes.
[0081]
In step S32, the vertical
[0082]
In step S33, the vertical
[0083]
The energy function E (N, X + (N-1) / 2) of the pixel to be obtained is defined as follows.
[0084]
E (N, Y + (N-1) / 2)
= ABS (Pixel (X + (N-1) / 2, Y + 2)
-Pixel (X + (N-1) / 2, Y)) (2)
[0085]
The energy function defined by Equation (2) represents the absolute value (vertical energy difference) of the energy difference between pixels adjacent to the blank in the vertical direction.
[0086]
For example, a pixel is generated (interpolated) in a blank in which a circle is drawn with a solid line in FIG. 12A, and its coordinates are (X + (N−1) / 2, Y + 1).
In this pixel interpolation, N pixels in the upper row and N pixels in the lower row (in FIG. 12A, an example of N = 3 is used) are used. Then, the coordinates of these pixels (N pixels on the left and right surrounded by a solid rectangle in the figure) are (X, Y), (X + (N-1) / 2, Y), (X + N- 1, Y), (X, Y + 2), (X + (N-1) / 2, Y + 2), and (X + N-1, Y + 2). FIG. 12B shows only the pixel of interest and the blank to be obtained.
[0087]
Therefore, in step S33, as shown in Expression (2), the absolute value of the energy difference between the left and right blank pixels to be obtained (upper and lower pixels connected by arrows in FIG. 12B) is calculated. It has been demanded.
[0088]
In step S34, the vertical
[0089]
If it is determined in step S34 that the calculated vertical energy difference is equal to or greater than the threshold value, in step S36, the vertical
[0090]
For example, as shown in FIG. 13, the energy of each pixel is Pixel (X, Y) = 50, Pixel (X + (N−1) / 2, Y) = 70, Pixel (X + N−1, Y) = 70. , Pixel (X, Y + 2) = 50, Pixel (X + (N−1) / 2, Y + 2) = 30, and Pixel (X + N−1, Y + 2) = 50, the vertical
[0091]
That is, ABS (Pixel (X, Y) -Pixel (X + N-1, Y + 2)) = 50-50 = 0, ABS (Pixel (X + (N-1) / 2, Y) -Pixel (X + (N-1 ) / 2, Y + 2)) = 70-30 = 40 and ABS (Pixel (X + N-1, Y) -Pixel (X, Y + 2) = 70-50 = 20.
[0092]
In the case of the example of FIG. 13, ABS (Pixel (X, Y) −Pixel (X + N−1, Y + 2)) = 50−50 = 0 is minimum, so (X, Y) and (X + N−1, Y + 2) Will be selected. That is, the direction connecting (X, Y) and (X + N-1, Y + 2) is the edge direction.
[0093]
In step S <b> 37, the vertical
[0094]
In the example of FIG. 13, 50 (= (50 + 50) / 2) is inserted as a new pixel value into the blank pixel and stored in the V buffer. Thereafter, the processing returns to step S32, and the subsequent processing is repeated.
[0095]
If it is determined in step S32 that new pixels are inserted into all blanks and no blank exists, the vertical
[0096]
For example, when image data as shown in FIG. 8B is input by the above processing, the vertical
[0097]
Here, the description returns to the flowchart of FIG.
[0098]
In step S <b> 8, the 2D
[0099]
Here, the 2D edge enhancement processing of the 2D
[0100]
In step S41, the 2D
[0101]
In step S42, the 2D
[0102]
In step S43, the 2D
[0103]
If it is determined in step S43 that the horizontal or vertical energy difference is equal to or greater than the threshold value, in step S45, the 2D
[0104]
For example, when α = 0.6, when image data with energy as shown in FIG. 16 (A) is input to the 2D
[0105]
That is, from the right of the upper line of the filter, (1 / 4-0.6 / 2) 2 × 30 + (1 / 16−0.6 / 8) × 30 + (0.6 / 4−0.6) 2 /2)×30+(1/16−0.6/8)×30+(1/4−0.6/2) 2 × 30 + (1 / 16−0.6 / 8) × 70 + 1/16 × 30 + 0.6 / 4 × 30 + 1/16 × 30 + (1 / 16−0.6 / 8) × 30 + (0.6 / 4-0 .6 2 /2)×70+0.6/4×70+0.6 2 × 30 + 0.6 / 4 × 30 + (0.6 / 4-0.6 2 /2)×30+(1/16−0.6/8)×70+1/16×70+0.6/4×70+1/16×30+(1/16−0.6/8)×30+(1/4 0.6 / 2) 2 × 70 + (1 / 16−0.6 / 8) × 70 + (0.6 / 4−0.6) 2 /2)×70+(1/16−0.6/8)×70+(1/4−0.6/2) 2 X30 = 40, and the filtered energy is 40 as shown in FIG.
[0106]
In step S46, the 2D
[0107]
If it is determined in step S42 that all pixels have been filtered and there are no pixels to be filtered, the 2D
[0108]
In step S9, the
[0109]
If it is determined in step S2 that the input image data is font data, the image selector 11 outputs the input image data to the
[0110]
In step S <b> 11, the
[0111]
The connection portion of the edge is configured as shown in FIG. That is, as shown in FIG. 17A, when the energy difference between Pixel0 and Pixel3 is lower than the energy of Pixel1 and Pixel2, the edge is constituted by Pixel0 and Pixel3. In this state, the magnitudes of the energy of the pixels Pixel1 and Pixel2 are compared. For example, when Pixel1 is larger in energy, the energy of Pixel1 is replaced by the energy that is the average value of Pixel0 and Pixel3. Make the part thicker.
[0112]
Similarly, as shown in FIG. 17B, when edges are formed by Pixel1 and Pixel2, the magnitudes of energy of Pixel0 and Pixel3 are compared, and when Pixel3 is larger in energy, Pixel1 and Pixel2 The edge connection portion is thickened by replacing with the energy of the average value of.
[0113]
As described above, the
[0114]
If it is determined in step S5 that the image data subjected to the horizontal enlargement processing by the horizontal
[0115]
In step S13, the 1D
[0116]
Here, the 1D edge enhancement processing of the 1D
[0117]
In step S51, the 1D
[0118]
In step S52, the 1D
[0119]
If it is determined in step S53 that the horizontal energy difference of the pixel is greater than or equal to the threshold value, the 1D
[0120]
For example, a horizontal 1D edge enhancement filter as shown in FIG. 19 is used at α = 0.6, and “30” surrounded by a solid-line square in the image data as shown in FIG. When the pixel is filtered, the filter processing is calculated by the filter shown in FIG. 19 and 1 × 5 pixels surrounded by the dotted line in FIG. The calculation result is (1 / 4−0.6 / 2) × 70 + 1/4 × 70 + 0.6 × 30 + 1/4 × 30 + (1 / 4−0.6 / 2) × 30 = 38, and FIG. As shown in B), the energy of the pixel after filtering is “38”.
[0121]
In step S56, the 1D
[0122]
If it is determined in step S52 that all pixels have been processed and there are no pixels to be processed, in step S57, the 1D
[0123]
Here, the description returns to the flowchart of FIG.
[0124]
In step S14, the vertical
[0125]
In step S15, the 2D
[0126]
Here, the 1D edge enhancement processing (vertical direction) executed by the 2D
[0127]
In step S61, the 2D
[0128]
In step S62, the 2D
[0129]
If it is determined in step S63 that the vertical energy difference of the pixel is equal to or greater than the threshold value, in step S65, the 2D
[0130]
For example, if a filter for 1D edge enhancement as shown in FIG. 22 is used and α = 0.6, “70” surrounded by a solid square in the image data as shown in FIG. When filtering pixels, the filtering process is calculated by the filter shown in FIG. 22 and 5 × 1 pixels surrounded by the dotted line in FIG. The calculation result is (1 / 4−0.6 / 2) × 30 + 1/4 × 30 + 0.6 × 70 + 1/4 × 70 + (1 / 4−0.6 / 2) × 70 = 62, and FIG. As shown in B), the energy of the pixel after filtering is “62”.
[0131]
In step S66, the 2D
[0132]
If it is determined in step S62 that all pixels have been processed and there are no pixels to be processed, the 2D
[0133]
In the above description, the enlargement magnification has been described as being twice in each of the horizontal direction and the vertical direction.
[0134]
In addition, as for the type of image data, the case of single data of character data, photo data, and graphic data has been described. However, when multiple types are combined, the image data is classified into the type of each data. It is possible to deal with image data in which a plurality of types of image data are combined by dividing and processing each.
[0135]
In the
[0136]
According to the above, the type of the input image data is determined, and in the case of character data, the connection portion of the edge that is easily blurred is emphasized, and the enlargement process at high resolution is possible. When the input image data is photo data, a blank is provided in the horizontal direction and the vertical direction, the edge direction is set from the original image data pixel to the blank, and the pixel from the edge direction pixel to the blank is set. Are interpolated to generate enlarged image data, and edge enhancement processing is performed in both the horizontal direction and the vertical direction of the enlarged image data, so that the photographic data can be enlarged at a high resolution. In addition, when the input image data is graphic data, the image is subjected to enlargement processing in the horizontal direction, and then subjected to horizontal edge enhancement processing, followed by vertical enlargement processing, and then vertical edge enhancement. Since the processing is performed, it is possible to reduce edge blurring and errors that occur in each enlargement process, and it is possible to enlarge the edge portion more clearly and with high resolution.
[0137]
The series of processes described above can be executed by hardware, but can also be executed by software. When a series of processing is executed by software, a computer constituting the software is installed in a dedicated hardware such as the image enlargement apparatus shown in FIG. 1 or various programs are installed. For example, it is installed from a recording medium in a general-purpose personal computer capable of executing various functions.
[0138]
FIG. 24 shows the configuration of an embodiment of a personal computer. The
[0139]
As shown in FIG. 24, the recording medium on which the program is recorded is distributed to provide the program to the user separately from the computer, and includes a magnetic disk 131 (including a floppy disk), an optical disk 132 (CD-ROM). (Including Compact Disk-Read Only Memory), DVD (Digital Versatile Disk), magneto-optical disk 133 (including MD (Mini-Disk)), or
[0140]
In the present specification, the step of describing the program recorded in the recording medium is not limited to the processing performed in chronological order according to the described order, but is not necessarily performed in chronological order. It includes processes that are executed individually.
[0141]
【The invention's effect】
According to the present invention, character data When the enlarged image is used, it is possible to increase the resolution of the connection portion of the edge that is easily blurred.
[0142]
Moreover, according to the present invention, the horizontal and vertical directions The image data enlargement process is easy, and the resolution of the enlarged image can be increased.
[0143]
Furthermore, according to the present invention, graphic data It is possible to increase the resolution of the edge portion of the enlarged image.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image enlargement apparatus.
FIG. 2 is a flowchart for explaining processing when the image enlargement apparatus in FIG. 1 enlarges input image data.
FIG. 3 is a flowchart for explaining horizontal enlargement processing;
FIG. 4 is a diagram illustrating a positional relationship between pixels and blanks of original image data when horizontally enlarged.
FIG. 5 is a diagram for explaining a state in which a blank is inserted in the original image data in the horizontal direction;
FIG. 6 is a diagram for explaining a method for newly generating a pixel when performing horizontal enlargement processing;
FIG. 7 is a diagram illustrating an example when a new pixel is generated when horizontal enlargement processing is performed.
FIG. 8 is a diagram illustrating image data when input image data is subjected to horizontal enlargement processing and vertical enlargement processing;
FIG. 9 is a flowchart illustrating vertical enlargement processing.
FIG. 10 is a diagram illustrating a positional relationship between pixels and blanks of original image data when performing vertical enlargement processing.
FIG. 11 is a diagram illustrating a state in which a blank is inserted in the vertical direction on original image data.
FIG. 12 is a diagram illustrating a method for newly generating a pixel when performing vertical enlargement processing;
FIG. 13 is a diagram illustrating an example of generating a new pixel when performing vertical enlargement processing;
FIG. 14 is a flowchart for describing 2D edge enhancement processing;
FIG. 15 is a diagram illustrating an example of a 2D edge enhancement filter.
FIG. 16 is a diagram illustrating processing of a 2D edge enhancement filter.
FIG. 17 is a diagram for explaining a method of thickening the edge connection portion of font data.
18 is a flowchart for describing 1D edge enhancement processing of the 1D edge enhancement unit of FIG. 1; FIG.
FIG. 19 is a diagram illustrating an example of a horizontal 1D edge enhancement filter.
FIG. 20 is a diagram illustrating processing of a 1D edge enhancement filter in the horizontal direction.
FIG. 21 is a flowchart illustrating 1D edge enhancement processing of the 2D edge enhancement unit of FIG. 1;
FIG. 22 is a diagram illustrating an example of a 1D edge enhancement filter in the vertical direction.
FIG. 23 is a diagram illustrating processing of a 1D edge enhancement filter in the vertical direction.
FIG. 24 is a diagram illustrating a medium.
[Explanation of symbols]
DESCRIPTION OF
Claims (4)
前記入力された画像データの前記画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定手段と、
前記判定手段の判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、前記第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、前記第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、前記入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出手段と、
前記文字エッジ検出手段により検出された2つのピクセルの組と異なる、前記エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、前記文字エッジ検出手段により検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調手段と、
前記文字エッジ強調手段によりエッジ部の接続部が強調された画像データを拡大する拡大手段と
を備えることを特徴とする画像処理装置。In an image processing apparatus that enlarges an image of input image data,
Determining means for determining whether the type of the image of the input image data includes a character and whether it is a graphic or a photograph;
When the determination result of the determination unit includes a character, among the pixels arranged two-dimensionally in the horizontal direction and the vertical direction, the energy difference between a pair of two pixels adjacent to each other in the first diagonal direction; The energy difference between the two pixel sets adjacent to the second diagonal direction different from the first diagonal direction and adjacent to the first two pixel sets is Character edge detection means for detecting a set of two pixels having a small difference as an edge portion of a character in the image of the input image data;
By comparing the energy difference, which is different from the two pixel sets detected by the character edge detection means, a pixel having a large energy among the two pixel sets having a large energy difference is detected by the character edge detection means. A character edge emphasizing means for emphasizing a connection portion of the detected edge portion by substituting the average value of energy of a set of two pixels.
An image processing apparatus comprising: enlarging means for enlarging image data in which a connection portion of an edge portion is emphasized by the character edge enhancing means.
前記入力された画像データの前記画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定手段と、
前記判定手段の判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、前記第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、前記第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、前記入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出手段と、
前記文字エッジ検出手段により検出された2つのピクセルの組と異なる、前記エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、前記文字エッジ検出手段により検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調手段と、
前記文字エッジ強調手段によりエッジ部の接続部が強調された画像データを拡大する拡大手段と
を備えることを特徴とする画像処理装置の画像処理方法において、
前記判定手段における、前記入力された画像データの前記画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定ステップと、
前記文字エッジ検出手段における、前記判定ステップの処理での判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、前記第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、前記第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、前記入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出ステップと、
前記文字エッジ強調手段における、前記文字エッジ検出ステップの処理で検出された2つのピクセルの組と異なる、前記エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、前記文字エッジ検出ステップにより検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調ステップと、
前記拡大手段における、前記文字エッジ強調ステップによりエッジ部の接続部が強調された画像データを拡大する拡大ステップと
を含むことを特徴とする画像処理方法。An image processing apparatus for enlarging an image of input image data,
Determining means for determining whether the type of the image of the input image data includes a character and whether it is a graphic or a photograph;
When the determination result of the determination unit includes a character, among the pixels arranged two-dimensionally in the horizontal direction and the vertical direction, the energy difference between a pair of two pixels adjacent to each other in the first diagonal direction; The energy difference between the two pixel sets adjacent to the second diagonal direction different from the first diagonal direction and adjacent to the first two pixel sets is Character edge detection means for detecting a set of two pixels having a small difference as an edge portion of a character in the image of the input image data;
By comparing the energy difference, which is different from the two pixel sets detected by the character edge detection means, a pixel having a large energy among the two pixel sets having a large energy difference is detected by the character edge detection means. A character edge emphasizing means for emphasizing a connection portion of the detected edge portion by substituting the average value of energy of a set of two pixels.
In the image processing method of the image processing apparatus, comprising: an enlarging unit that enlarges the image data in which the connection portion of the edge portion is emphasized by the character edge emphasizing unit,
A determination step of determining whether the type of the image of the input image data includes a character and whether it is a graphic or a photograph in the determination unit;
When the determination result in the determination step in the character edge detection means includes a character, the pixels adjacent to each other in the first diagonal direction among the pixels arranged two-dimensionally in the horizontal direction and the vertical direction Energy difference between two pixel sets and two pixel sets adjacent to the second diagonal direction different from the first diagonal direction and adjacent to the first two pixel sets, respectively. A character edge detection step of detecting a pair of two pixels having a small energy difference as an edge portion of a character in the image of the input image data by comparison with an energy difference;
In the character edge emphasizing means, a pixel having a large energy out of a pair of two pixels having a large energy difference is determined by comparing the energy differences, which is different from the pair of two pixels detected in the processing of the character edge detecting step. A character edge emphasizing step for emphasizing a connection portion of the detected edge portion by substituting with an average value of energy of a set of two pixels detected by the character edge detecting step;
An image processing method comprising: an enlarging step of enlarging the image data in which the connection portion of the edge portion is emphasized by the character edge emphasizing step in the enlarging means.
前記入力された画像データの前記画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定手段と、
前記判定手段の判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、前記第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、前記第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、前記入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出手段と、
前記文字エッジ検出手段により検出された2つのピクセルの組と異なる、前記エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、前記文字エッジ検出手段により検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調手段と、
前記文字エッジ強調手段によりエッジ部の接続部が強調された画像データを拡大する拡大手段と
を備えることを特徴とする画像処理装置を制御するコンピュータに読み取り可能なプログラムであって、
前記判定手段における、前記入力された画像データの前記画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定ステップと、
前記文字エッジ検出手段における、前記判定ステップの処理での判定結果が文字を含むものである場合、水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、前記第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、前記第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、前記入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出ステップと、
前記文字エッジ強調手段における、前記文字エッジ検出ステップの処理で検出された2つのピクセルの組と異なる、前記エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、前記文字エッジ検出ステップにより検出された2つのピクセルの組のエネルギの平均値に置換することにより、検出されたエッジ部の接続部を強調する文字エッジ強調ステップと、
前記拡大手段における、前記文字エッジ強調ステップによりエッジ部の接続部が強調された画像データを拡大する拡大ステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録されている記録媒体。An image processing apparatus for enlarging an image of input image data,
Determining means for determining whether the type of the image of the input image data includes a character and whether it is a graphic or a photograph;
When the determination result of the determination unit includes a character, among the pixels arranged two-dimensionally in the horizontal direction and the vertical direction, the energy difference between a pair of two pixels adjacent to each other in the first diagonal direction; The energy difference between the two pixel sets adjacent to the second diagonal direction different from the first diagonal direction and adjacent to the first two pixel sets is Character edge detection means for detecting a set of two pixels having a small difference as an edge portion of a character in the image of the input image data;
By comparing the energy difference, which is different from the two pixel sets detected by the character edge detection means, a pixel having a large energy among the two pixel sets having a large energy difference is detected by the character edge detection means. A character edge emphasizing means for emphasizing a connection portion of the detected edge portion by substituting the average value of energy of a set of two pixels.
A computer-readable program for controlling an image processing apparatus, comprising: an enlarging unit that enlarges image data in which a connection portion of an edge portion is emphasized by the character edge emphasizing unit,
A determination step of determining whether the type of the image of the input image data includes a character and whether it is a graphic or a photograph in the determination unit;
When the determination result in the determination step in the character edge detection means includes a character, the pixels adjacent to each other in the first diagonal direction among the pixels arranged two-dimensionally in the horizontal direction and the vertical direction Energy difference between two pixel sets and two pixel sets adjacent to the second diagonal direction different from the first diagonal direction and adjacent to the first two pixel sets, respectively. A character edge detection step of detecting a pair of two pixels having a small energy difference as an edge portion of a character in the image of the input image data by comparison with an energy difference;
In the character edge emphasizing means, a pixel having a large energy out of a pair of two pixels having a large energy difference is determined by comparing the energy differences, which is different from the pair of two pixels detected in the processing of the character edge detecting step. A character edge emphasizing step for emphasizing a connection portion of the detected edge portion by substituting with an average value of energy of a set of two pixels detected by the character edge detecting step;
A recording medium on which a computer-readable program is recorded, comprising: an enlarging step of enlarging the image data in which the connection portion of the edge portion is emphasized by the character edge emphasizing step in the enlarging means.
前記入力された画像データの前記画像の種類が文字を含むか否か、および、グラフィック、または、写真であるかを判定する判定手段と、
前記判定手段の判定結果が文字を含むものである場合、
水平方向および垂直方向に対して2次元に配置されるピクセルのうち、第1の斜め方向に相互に隣接する2つのピクセルの組のエネルギ差と、前記第1の斜め方向とは異なる第2の斜め方向に隣接し、かつ、前記第1の2つのピクセルの組にそれぞれ隣接する2つのピクセルの組のエネルギ差との比較により、いずれかエネルギ差の小さい2つのピクセルの組を、前記入力された画像データの画像のうちの文字のエッジ部として検出する文字エッジ検出手段と、
前記文字エッジ検出手段により検出された2つのピクセルの組と異なる、前記エネルギ差の比較により、エネルギ差が大きい2つのピクセルの組のうち、エネルギの大きなピクセルを、前記文字エッジ検出手段により検出された2つのピクセルの組のエネルギの平均値に置換することにより、前記エッジ部の接続部を強調する文字エッジ強調手段と、
前記判定手段の判定結果が写真である場合、
水平方向および垂直方向のそれぞれのいずれかである第1方向、および第2方向に、前記入力された画像データの各ピクセル間に、それぞれ第1方向ブランク、および第2方向ブランクを生成するブランク生成手段と、
前記ブランク生成手段により生成された第1方向ブランク、または第2方向ブランクと隣接する各ピクセルに基づいて、前記第1方向、または第2方向に隣接するピクセル間のエネルギ差を求め、そのエネルギ差が閾値を超える場合、前記第1方向ブランク、または第2方向ブランクを中心として対称の位置関係となる2つのピクセル同士のエネルギ差が、最小となる2つのピクセル間を結ぶ方向をエッジ方向として検出するエッジ方向検出手段と、
前記第1方向ブランクに、前記第1方向ブランクに隣接したピクセルと、前記エッジ方向検出手段により検出されたエッジ方向に基づいて、前記第1方向に補間してピクセルを生成し、前記第1方向に補間して生成されたピクセルが付加された画像データの前記第2方向の各ピクセルの前記第2方向ブランクに、前記第2方向ブランクに隣接したピクセルと、前記エッジ方向検出手段により検出されたエッジ方向に基づいて、前記第2方向に補間してピクセルを生成するピクセル生成手段と、
前記ピクセル生成手段によりピクセルが生成された前記画像データの各ピクセルに2次元のフィルタ処理を施すことによりエッジを強調する写真エッジ強調手段と、
前記判定手段の判定結果がグラフィックである場合、
前記第1方向に前記画像を拡大する第1方向拡大手段と、
前記第1方向拡大手段により拡大された画像のピクセルに1次元の第1方向フィルタ処理を施すことでエッジを強調する第1方向エッジ強調手段と、
第2方向に前記画像を拡大する第2方向拡大手段と、
前記第2方向拡大手段により拡大された画像のピクセルに1次元の第2方向フィルタ処理を施すことでエッジを強調する第2方向エッジ強調手段と
を備えることを特徴とする画像処理装置。In an image processing apparatus that enlarges an image of input image data,
Determining means for determining whether the type of the image of the input image data includes a character and whether it is a graphic or a photograph;
When the determination result of the determination means includes a character,
Among the pixels arranged two-dimensionally with respect to the horizontal direction and the vertical direction, the energy difference between a pair of two pixels adjacent to each other in the first diagonal direction is different from the first diagonal direction. By comparing the energy difference of two pixel sets adjacent to each other in the diagonal direction and adjacent to each of the first two pixel sets, a set of two pixels having a small energy difference is input. Character edge detecting means for detecting the edge portion of the character in the image of the image data,
By comparing the energy difference, which is different from the two pixel sets detected by the character edge detection means, a pixel having a large energy among the two pixel sets having a large energy difference is detected by the character edge detection means. Character edge emphasizing means for emphasizing the connection portion of the edge portion by replacing the average value of the energy of the set of two pixels.
When the determination result of the determination means is a photo,
Blank generation for generating a first direction blank and a second direction blank between the pixels of the input image data in the first direction and the second direction, which are either the horizontal direction or the vertical direction, respectively. Means,
Based on each pixel adjacent to the first direction blank or the second direction blank generated by the blank generation means, an energy difference between pixels adjacent to the first direction or the second direction is obtained, and the energy difference is obtained. When the value exceeds the threshold, the direction connecting the two pixels where the energy difference between the two pixels having a symmetrical positional relationship with respect to the first direction blank or the second direction blank is the center is detected as the edge direction. Edge direction detecting means to perform,
The first direction blank is interpolated in the first direction based on the pixel adjacent to the first direction blank and the edge direction detected by the edge direction detection unit, and the first direction blank is generated. In the second direction blank of each pixel in the second direction of the image data to which the pixel generated by interpolation is added, the pixel adjacent to the second direction blank, and the edge direction detection means detect Pixel generating means for generating a pixel by interpolating in the second direction based on an edge direction;
Photo edge enhancement means for emphasizing edges by performing a two-dimensional filtering process on each pixel of the image data in which pixels are generated by the pixel generation means;
When the determination result of the determination means is a graphic,
First direction enlarging means for enlarging the image in the first direction;
First direction edge emphasizing means for emphasizing edges by applying a one-dimensional first direction filtering process to the pixels of the image magnified by the first direction enlarging means;
Second direction enlarging means for enlarging the image in a second direction;
An image processing apparatus comprising: a second direction edge enhancement unit that enhances an edge by performing a one-dimensional second direction filter process on a pixel of an image enlarged by the second direction enlargement unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000006570A JP4547752B2 (en) | 2000-01-14 | 2000-01-14 | Image processing apparatus and method, and recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000006570A JP4547752B2 (en) | 2000-01-14 | 2000-01-14 | Image processing apparatus and method, and recording medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2001195571A JP2001195571A (en) | 2001-07-19 |
| JP4547752B2 true JP4547752B2 (en) | 2010-09-22 |
Family
ID=18535080
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000006570A Expired - Fee Related JP4547752B2 (en) | 2000-01-14 | 2000-01-14 | Image processing apparatus and method, and recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4547752B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109543669A (en) * | 2018-12-04 | 2019-03-29 | 龙马智芯(珠海横琴)科技有限公司 | The processing method and processing device of text, storage medium, electronic device |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004061446A (en) | 2002-07-31 | 2004-02-26 | Fujitsu Ten Ltd | Pattern matching processing method and image processor |
| JP5874721B2 (en) * | 2013-12-25 | 2016-03-02 | コニカミノルタ株式会社 | Image processing apparatus, image correction method, and program |
| CN109969371A (en) * | 2018-08-01 | 2019-07-05 | 永康市缘匠贸易有限公司 | Refrigeration equipment fuselage guard system |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2951977B2 (en) * | 1989-08-31 | 1999-09-20 | キヤノン株式会社 | Image processing device |
| JP2711176B2 (en) * | 1990-10-02 | 1998-02-10 | アロカ株式会社 | Ultrasound image processing device |
| JP2962920B2 (en) * | 1991-04-10 | 1999-10-12 | キヤノン株式会社 | Image processing apparatus and system having the same |
| IL98293A (en) * | 1991-05-28 | 1994-04-12 | Scitex Corp Ltd | Method of discriminating between text and graphics |
| JPH05233790A (en) * | 1992-02-19 | 1993-09-10 | Brother Ind Ltd | Digital image processor |
| JPH0730752A (en) * | 1993-07-09 | 1995-01-31 | Konica Corp | Image area discriminating device |
| JP3268542B2 (en) * | 1993-08-19 | 2002-03-25 | 日本電信電話株式会社 | Enlargement method of fine character image |
| JPH07107275A (en) * | 1993-10-06 | 1995-04-21 | Konica Corp | Image data discrimination device |
| JP2871601B2 (en) * | 1995-08-15 | 1999-03-17 | 日本電気株式会社 | Character string detecting apparatus and method |
| JPH09200575A (en) * | 1996-01-17 | 1997-07-31 | Sharp Corp | Image data interpolation device |
| JP3357776B2 (en) * | 1996-01-17 | 2002-12-16 | シャープ株式会社 | Image processing method |
| JPH11220618A (en) * | 1998-01-30 | 1999-08-10 | Canon Inc | Color image processing apparatus and color image processing method |
-
2000
- 2000-01-14 JP JP2000006570A patent/JP4547752B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109543669A (en) * | 2018-12-04 | 2019-03-29 | 龙马智芯(珠海横琴)科技有限公司 | The processing method and processing device of text, storage medium, electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2001195571A (en) | 2001-07-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3276886B2 (en) | Generating pixel values for enlarged destination images | |
| JP2002064704A (en) | Image processing apparatus and method, and recording medium | |
| KR20160064953A (en) | Image processing device, image processing method and program | |
| JP2011504682A (en) | Resize image sequence | |
| JP4617730B2 (en) | Image processing apparatus and method, recording medium, and program | |
| JP3591859B2 (en) | Digital video data interpolation method and circuit | |
| JP3357776B2 (en) | Image processing method | |
| JP4065462B2 (en) | Image processing apparatus and image processing method | |
| JP4547752B2 (en) | Image processing apparatus and method, and recording medium | |
| KR20070119482A (en) | Image resampling method | |
| JP2006222965A (en) | Image processing method and image processing apparatus | |
| JP5042251B2 (en) | Image processing apparatus and image processing method | |
| JP6444049B2 (en) | Image processing apparatus, method, and program | |
| JP5751157B2 (en) | Video signal processing apparatus and video signal processing method | |
| JP3200351B2 (en) | Image processing apparatus and method | |
| JPH07334648A (en) | Image processing method and apparatus thereof | |
| JP2005293265A (en) | Image processing apparatus and method | |
| JP3054338B2 (en) | Image processing apparatus and method | |
| JP3638231B2 (en) | Image processing apparatus and recording medium | |
| JP2006050481A (en) | Image processing apparatus, image processing method and program thereof | |
| JP4517288B2 (en) | Image processing apparatus, image processing method, and program thereof | |
| JP2010141863A (en) | Image processing method, apparatus and program | |
| JP2015106318A (en) | Image processing apparatus and image processing method | |
| JP4744593B2 (en) | Image processing apparatus, method, and program | |
| JP4415104B2 (en) | Image processing method and system, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070105 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090918 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090929 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091120 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100309 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100506 |
|
| 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: 20100615 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100628 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130716 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |