JP3919430B2 - Image processing apparatus and method - Google Patents

Image processing apparatus and method Download PDF

Info

Publication number
JP3919430B2
JP3919430B2 JP2000241764A JP2000241764A JP3919430B2 JP 3919430 B2 JP3919430 B2 JP 3919430B2 JP 2000241764 A JP2000241764 A JP 2000241764A JP 2000241764 A JP2000241764 A JP 2000241764A JP 3919430 B2 JP3919430 B2 JP 3919430B2
Authority
JP
Japan
Prior art keywords
pixel
pixel position
distance
coefficient
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2000241764A
Other languages
Japanese (ja)
Other versions
JP2002057888A (en
Inventor
敦 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2000241764A priority Critical patent/JP3919430B2/en
Publication of JP2002057888A publication Critical patent/JP2002057888A/en
Application granted granted Critical
Publication of JP3919430B2 publication Critical patent/JP3919430B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、画像を変倍する画像処理装置及び方法に関する。
【0002】
【従来の技術】
画像を変倍する処理として、ニアレストネイバー法が知られている。これは、変倍後の注目画素に最も近い元の画像データの画素を選択する方法である(図12参照)。なお図12では、簡単のために1次元での図となっている。
【0003】
また、双3次補間法などの処理もよく用いられている(図13参照)。双3次補完法は、図13における4×4画素を、変倍後の注目点1301(i0,j0)を中心として画像データから切り出し、sinc補間の3次近似式を用いて以下のように計算する方法である。
【0004】
【数1】

Figure 0003919430
【0005】
ここで、f(x,y)は、主走査方向の座標をx、副走査方向の座標をyとした場合の画素値を表し、注目点(i0,j0)は、図13において1≦i0,j0<2となるように選ばれる。すなわち、4×4ブロックのほぼ中央が注目点となる。
【0006】
【発明が解決しようとする課題】
このように従来用いられた方法では、次のような問題点があった。
【0007】
ニアレストネイバー法は、最近傍の画素データを使用するだけであるため、モアレが発生したり、拡大であれば画素が荒く見えるなど画像の劣化がひどい。
【0008】
双3次補間法は、画質はニアレストネイバー法に比較するとよいが、解像度を保つために縮小変倍時に周期性のある原稿、例えば印刷物原稿を読み取った画像を処理する際に、モアレ縞が発生し画質が劣化してしまうという問題がある。
【0009】
本発明は上記従来例に鑑みて成されたもので、縮小変倍時のモアレ縞発生による画質劣化を防ぎ、拡大変倍時でも必要以上に解像度をおとさないような変倍処理を実現する画像処理装置及び方法を提供することを目的とする。
【0010】
また、初期位相演算を付加することで、整数倍や整数分の1倍の変倍率時においても良好な画像が得られる画像処理装置及び方法を提供することを目的とする。
【0011】
【課題を解決するための手段】
上記目的を達成するために、本発明は次のような構成からなる。すなわち、画像を変倍するための画像処理装置であって、変倍率に応じて、変倍後の注目画素位置を毎画素演算し、前記注目画素近傍の元画像の画素位置である画素位置情報と、前記画素位置情報と前記注目画素との距離を表わす位相情報とを出力するアドレス演算処理手段と、畳み込み演算の係数をN×M個求める係数演算処理手段と、前記画素位置情報をもとに画像記憶部から元画像データをN×M個セットし、前記畳み込み演算の係数を用いて畳み込み演算を行う畳み込み演算処理手段とを備え、前記係数演算処理手段は、前記位相情報をもとに、注目画素位置とN×M個の各画素位置との距離を求め、その距離に応じて各画素位置での係数を演算するように構成し、かつ変倍率に応じて算出される位相情報制御パラメータを用いて、前記注目画素位置とN×M個の各画素位置との距離の値を更新可である。
【0012】
さらに好ましくは、前記位相情報制御パラメータは、変倍率の1次関数を用いて距離を生成される。さらに好ましくは、前記アドレス演算処理手段は、アドレスの演算を行う際に、初期位相を足し込むための初期位相演算処理を行う。
【0013】
さらに好ましくは、前記係数演算処理手段は、sinc関数の多項式近似式を用いて注目画素位置とN×M個の各画素位置との距離を求める。
【0014】
さらに好ましくは、前記係数演算処理手段は、前記位相情報に応じて、予め用意されている係数テーブルから係数を読み出して注目画素位置とN×M個の各画素位置との距離を求める。
【0015】
さらに好ましくは、前記係数演算手段は、変倍率をRP%、前記注目画素位置とN×M個の各画素位置のi列j行の画素位置との距離の値をAij、更新された距離をAij’とするとき、
Aij’=Aij/(100/RP)
と距離を変更する。
【0016】
さらに好ましくは、前記係数演算手段は、変倍率をRP%、前記注目画素位置とN×M個の各画素位置のi列j行の画素位置との距離の倦をAij、更新された距離をAij’とするとき、
Aij’=Aij/(1.5+(1−RP/100))
と距離を変更する。
【0017】
さらに好ましくは、前記畳み込み演算処理部は、主走査、副走査方向に独立に畳み込み演算を行う。
【0018】
さらに好ましくは、前記畳み込み演算処理部は、主走査方向にN×1の畳み込み演算をMライン分行い、M個の結果に対して副走査方向に1×Mの畳み込み演算を行う。
【0019】
さらに好ましくは、前記畳み込み演算処理部は、副走査方向に1×Mの畳み込み演算をN画素分行い、N個の結果に対して主走査方向にN×1の畳み込み演算を行う。
【0024】
【発明の実施の形態】
(第一の実施形態)
以下、好ましい実施形態として、複写機についての詳細な説明をする。なお、本発明はこの実施形態に限るものではない。
【0025】
[装置概要説明]
図2に、本発明の実施形態としての複写機の外観図を示す。
【0026】
200は、原稿自動送り装置(以下DF)であり、複数枚の原稿を自動的に一枚ずつ給紙し、各原稿の表面および裏面を原稿台に順次セットすることができる。その具体的構成は既に公知であるため、詳細な説明は省略する。図2において、DF200上には、読み取られるべき複数枚の原稿が置かれる。DF200にセットされた原稿は、DF200によって1枚ずつ給紙され原稿台201上に置かれる。202は例えばハロゲンランプから構成される原稿照明ランプで、原稿台ガラス201に載置された原稿を露光する。203、204、205は走査ミラーであり、図示しない光学走査ユニットに収容され、往復動しながら、原稿からの反射光をCCDユニット206に導く。CCDユニット206はCCDに原稿からの反射光を結像させる結像レンズ207、CCDから構成される撮像素子208、撮像素子208を駆動するCCDドライバ209等から構成されている。撮像素子208からの画像信号出力は、例えば8ビットのデジタルデータに変換された後、コントローラ部239に入力される。また、210は感光ドラムであり、212の前露光ランプによって画像形成に備えて除電される。213は帯電器であり、感光ドラム210を一様に帯電させる。214は露光手段であり、例えば半導体レーザー等で構成され、画像処理や装置全体の制御を行うコントローラ部139で処理された画像データに基づいて感光ドラム210を露光し、静電潜像を形成する。215は現像器で黒色の現像剤(トナー)が収容されている。219は転写前帯電器であり、感光ドラム210上に現像されたトナー像を用紙に転写する前に高圧をかける。220、222、224は給紙ユニットであり、各給紙ローラ221、223、225の駆動により、転写用紙が装置内へ給送され、レジストローラ226の配設位置で一旦停止し、感光ドラム210に形成された画像との書き出しタイミングがとられ再給送される。227は転写帯電器であり、感光ドラム210に現像されたトナー像を給送される転写用紙に転写する。228は分離帯電器であり、転写動作の終了した転写用紙を感光ドラム210より分離する。転写されずに感光ドラム210上に残ったトナーはクリーナ211によって回収される。229は搬送ベルトで、転写プロセスの終了した転写用紙を定着器130に搬送し、例えば熱により定着される。231はフラッパであり、定着プロセスの終了した転写用紙の搬送パスを切換え、コピー終了して機外に排紙するか、または中間トレイ237の配置方向のいずれかに制御する。233〜236は給送ローラであり、一度定着プロセスの終了した転写用紙を中間トレイ237に反転(多重)または非反転(両面)して給送する。238は再給送ローラであり、中間トレイ237に載置された転写用紙を再度、レジストローラ236の配設位置まで搬送する。232はステープルソータであり、コピーされた用紙の丁合およびステープル綴じを行う。
【0027】
239のコントローラ部には後述するマイクロコンピュータ、画像処理部等を備えており、操作パネル290からの指示に従って、前述の画像形成動作を行う。
【0028】
[コントローラ部詳細説明]
図3は本発明の画像形成装置におけるコントローラ部239のブロック図である。
【0029】
301は画像処理装置全体の制御を行うCPUであり、装置本体の制御手順(制御プログラム)を記憶した読み取り専用メモリ303(ROM)からプログラムを順次読み取り、実行する。CPU301からは、CPUバス302を介して、各負荷に接続されている。また、304は入力データの記憶や作業用記憶領域等として用いる主記憶装置であるところのランダムアクセスメモリ(RAM)である。305はI/Oインターフェースであり、操作者がキー入力を行い、装置の状態等を液晶、LEDを用いて表示する316の操作パネルや給紙系、搬送系、光学系の駆動を行うモーター類307、クラッチ類308、ソレノイド類309、また、搬送される用紙を検知するための紙検知センサ類310等の装置の各負荷に接続される。(さらに、現像器215には現像器内のトナー量を検知する311のトナー残検センサが配置されており、その出力信号がI/Oポート305に入力される。)315は高圧ユニットであり、CPUの指示に従って、前述の帯電器、現像器、転写前帯電器、転写帯電器、分離帯電器へ高圧を出力する。
【0030】
306は画像処理部であり、CCDユニット206から出力された画像信号が入力され、後述する画像処理を行い、画像データに従って214のレーザーユニットの制御信号を出力する。レーザーユニット214から出力されるレーザー光は感光ドラム210を照射する。
【0031】
[画像処理部]
図1は、本発明の特徴を最もよく表す図面であり、同ブロック図において、101は変倍率入力部、102はアドレス演算処理部、103は位相情報変更処理部、104は係数演算処理部、105は画像記憶部、106はデジタルフィルタ処理部である。これは、本実施例において、前述された画像処理部306の1機能として搭載される。
【0032】
本発明は、画像の変倍に関するものであり、元画像を変倍率に応じて、変倍画像を出力する。本実施形態の複写機においては、出力される画像は、画像記憶部105に一時記憶されるように構成される。これは、RAMでもHDでもよい。また、処理する画像の全領域がスプールされるように構成してもよいし、画像の1部がスプールされるように構成されてもよい。以下のように動作する。
【0033】
変倍率入力部101から変倍率が入力される。
【0034】
位相情報変更部103は、変倍率を受け取り、変倍率に応じて位相情報制御パラメータを出力し、また、変倍率に応じて初期位相パラメータをアドレス演算処理部102に出力する。
【0035】
アドレス演算処理部102は、変倍率と初期位相パラメータを受け取り、出力画像の画素位置を1画素毎に移動させてアドレス演算をする。具体的には、出力画像上の注目画素が元画像上のどの画素位置にあたるかを前記変倍率から演算し、位相情報を係数演算処理部104に、元画像の画素位置情報をフィルタ処理部に出力する。
【0036】
係数演算処理部104は、位相情報と位相情報制御パラメータを入力し、注目画素の近傍に位置する元画像8×8画素それぞれと注目画素との距離を計算し、距離と位相情報制御パラメータに応じて、フィルタに用いるためのフィルタ係数を演算する。その後フィルタ処理部106に各画素の係数をセットする。
【0037】
画像記憶部105には、処理する元画像が予め記憶されている。
【0038】
フィルタ処理部106は、アドレス演算処理部からの画素位置情報をもとに、処理される元画像の8×8画素のデータを画像記憶部から取り出して、前記フィルタ係数をもとに畳み込み演算をし、多値画像を出力する。
【0039】
本実施形態では、フィルタのサイズを8×8として説明をすすめるが、サイズは主走査、副走査で違ってもよいし、サイズも8に限るものではなく任意に設定することが可能である。
【0040】
上記動作をより詳しく説明していく。説明の簡単化のため、位相情報制御パラメータ、初期位相パラメータ、変倍率などを主走査、副走査ともに同じであると仮定して説明をすすめるが、主、副独立に動作させるように構成することも容易に拡張可能であることはいうまでもない。
【0041】
変倍率101から入力される変倍率が主操作方向、副操作方向とも50%だとする。位相情報変更部103は、変倍率に応じて、例えば、以下のように位相情報制御パラメータを算出する。
【0042】
LC=100/RPX(RPY)
ここで、LCは、位相情報制御パラメータ、RPX(RPY)は、主走査(副走査)の変倍率である。変倍率は主副とも50%なので、今回はLC=100/50=2となる。LCは、係数演算処理に出力され用いられる。これは後述する。
【0043】
また、変倍率に応じて初期位相パラメータを算出する。例えば、整数分の1の変倍率の場合は、初期位相パラメータIX(IY)を0.5とし、それ以外は0である、といったルールを本実施形態では用いる。これは後述する。今回は、1/2=50%ということで、IX=IY=0.5と設定される。1/3=約33%、1/4=25%の変倍率時も同様に設定される。
【0044】
また、拡大変倍時に整数倍となる場合、例えば200%、300%などの場合に、
IX(IY)=100/RPX(RPY)/2
となるように設定する。
【0045】
200%時には、IX(IY)=0.25
300%時には、IX(IY)=約0.167
とする。初期位相パラメータの効果は、本実施形態の最後に説明する。IX,IYは、アドレス演算処理部102に出力され用いられる。
【0046】
アドレス演算処理部102は、変倍率RPX(RPY)=50、初期位相パラメータIX(IY)=0.5を受け取り、以下のように動作する。例えば、注目画素が主走査X=50画素目、副走査Y=10画素目だとする。すると、注目画素が、元画像のどの座標に位置しているかは、以下のように演算できる。
【0047】
Xo=X/(RPX/100)+IX
=50/(50/100)+0.5=100.5
Yo=Y/(RPY/100)+IY
=10/(50/100)+0.5=20.5
ここで、初期位相パラメータは上記のようにアドレス演算時に足し込まれるように用いられる。
【0048】
ここで、Xo,Yoの小数部
PIX=0.5
PIY=0.5
を位相情報として係数演算処理部104に出力し、Xo,Yoの整数部
OX=100
OY=20
を元画像の画素位置情報としてフィルタ処理部106に出力する。なお、本実施形態ではXoとYoの小数部が同じ値になるように構成されているため、初期位相パラメータを1パラメータとして説明を続ける。
【0049】
現在の注目画素での処理が全て終わったら、注目画素を1画素移動してまた処理を続ける。
【0050】
RPX(RPY)が50の場合、常に50/100=0.5で割ることになるため、常に小数部PIXは、初期位相IXのまま変わらない。例えばX=51、Y=10とXだけ1画素更新した場合、Xo=102.5(副走査に更新した場合も同じ話が成り立つので省略する)となり、やはりPIX=0.5である。Xが1画素ずつ増えていっても常にXoが2ずつ増えてPIX=0.5で変わらないことになる。
【0051】
しかし、これは例外である。一般に、注目画素を1画素移動するたびにPIX(PIY)の値は変化し、PIX(PIY)、の変化により補間演算で用いられるフィルタの係数の値も1画素毎に変化することになる。例えば、RP=80であったとすると、上述のとおり、初期位相Iは0として
X=50のとき、
Xo=50/(80/100)+0=62.5でPIX=0.5
X=51のとき、
Xo=51/(80/100)+0=63.75でPIX=0.75
X=52のとき、
Xo=52/(80/100)+0=65.0でPIX=0
のようにX(またはY)が更新されるとPIX(PIY)の値も更新される。
【0052】
ここでは、RPX=RPY=50として説明を続ける。
【0053】
本実施形態では、次の処理は、主走査方向に1画素移動して、X=51画素目、Y=10画素目となる。複写機の原稿台の大きさと読み取り解像度、変倍率により、主走査、副走査の最大画素値は変わってくるが、今回主走査の最大画素値が5000画素だとすると、本処理が主走査方向に0画素目から始まって4999画素目まで達すると、その次の処理は副走査方向に1画素進むことになる。今回の例では、X=4999画素目、Y=10画素目まで処理が進んだ場合、次の処理は、X=0画素目、Y=11画素目と副走査方向に注目画素位置が進められるように構成され副走査方向の最大値に達するまで処理が継続されることになる。
【0054】
係数演算処理部は、前記位相情報制御パラメータLCと前記位相情報PIXを受け取り、以下のように動作する。
【0055】
図4は、注目画素と注目画素近傍の元画像上の画素を表わした図であり、中央付近の×(バツ)マークが注目画素で、○(マル)マークが元画像上の画素を表わす。本実施形態では、8×8個のフィルタを用いるため、前記注目画素近傍の元画像上の画素を8×8個だけ用いることになる。また、注目画素×の位置(i,j)は、常に前記注目画素近傍の元画像上の画素の主走査方向および副走査方向それぞれの位置を0〜7で表した場合、
3≦i<4
3≦j<4
内にくるように設定される。また、アドレス演算処理で出力される前記元画像の画素位置情報OX,OYは、i=3,j=3の位置となるように設定される。
【0056】
ここで前記注目画素近傍の元画像上の画素と注目画素との距離を主走査、副走査独立に求める。まず図5のように主走査に着目する。AXi(iは0から7の整数)をi番目の画素と注目画素との距灘とすると
AX0=3+PIX
AX1=2+PIX
AX2=1+PIX
AX3=PIX
AX4=1−PIX
AX5=2−PIX
AX6=3−PIX
AX7=4−PIX
となる。1画素間の距離は1として計算を行っており、0≦PIX(PIY)<1とする。
【0057】
副走査方向にも同様に求められ、AY0〜AY7を算出する。
【0058】
また、AX0〜AX7、AY0〜AY7の距離情報と位相情報制御パラメータLCから、主副独立に主走査i番目の係数Ci、副走査j番目の係数Cjを求め、主走査i番目、副走査j番目の係数Cij=Ci*Cjとして演算することになるが、本実施形態の効果を説明するために双3次補間法の説明を先に述べる。
【0059】
ここで、フィルタの係数を求めるための演算式として、双3次補間法(bi-cubic法)としてよく知られているsinc関数の3次多項式近似式を用いる。ただし、フィルタの係数を求めるための一例であり、これに限るものではない。
【0060】
双3次補間法は、係数c、注目画素からの距離をdとすると以下の式で表わされる。なおdは距離なので負の値はとらない。
【0061】
Figure 0003919430
図6は、この係数Cと距離dの関係を図示したものである。△は、本実施形態の距離情報AXiもしくはAYjがどのように配置されるかを示したもので、i(もしくはj)は△の添え字に対応していて0から7までの値をとる。距離dは、図5の画素×を原点にして、原点を中心に1目盛りが1の距離となるように描かれており、距離であるために原点よりも左にあっても正の値をとる。また△3の位置は原点からPIX(PIY)の位置にあり、AX3(AY3)=PIとなる。また△間の距離は1である。よってAX0は△0の位置にあり、AX0=3+PIXであることがわかる。図6に描かれた曲線は距離dに応じた係数cの値を示しており、iが2から5の場合、それぞれ係数が割り当てられ、0,1,6,7の場合、係数が0となることがわかる。
【0062】
双3次補間法は常に4×4画素のフィルタしか用いられない。sinc関数の周波数特性を図7に示す。双3次補間法で用いられる多項式近似式はsinc関数の近似であるため、図7とは多少周波数特性が異なるが、説明の簡単化のため図7と同等であるとして説明を進める。sinc関数は、図7からわかるとおり帯域制限フィルタである。制限される帯域は、元画像の周波数の±1/2(ナイキスト周波数)を越える周波数帯である。一般にナイキスト周波数を超える周波数帯をもつ画像は解像できず、モアレの発生等により画質が劣化する。
【0063】
例えば元画像が600dpiであるとすると、300dpiを越える周波数成分を0とすることになる。縮小変倍時にそのままこの演算式を用いた場合、元画像の周波数帯域をすべて保存することになる。縮小変倍時に元画像の周波数帯域を残すと、元画像に周期性のある画像が含まれているとモアレが発生し画質劣化の原因となる。例えば、50%縮小変倍を行った場合、200dpiのスクリーン画像が元画像に含まれていた場合、みかけの周波数が400dpiであるような振る舞いをする。そのため、解像限界の300dpiを越えてしまい、モアレ縞による画質劣化が起こる。
【0064】
本発明では変倍率に応じて位相情報変更を行うことで、モアレ縞の低減を図り、画質の劣化を防ぐ。
【0065】
本実施形態では、以下のようにする。
【0066】
本来、dは注目画素からの距離であるので、dXi=AXi(dYj=AYj)となるが、前記位相制御パラメータLCを用いて以下のように変更する。
【0067】
dXi=AXi/LC (dYj=AYj/LC)
LCは、変倍率に応じて変更される。例えば、上述したように、LC=100/RP(変倍率)とするとLC=2となる。
LC=1の時
d=AX0=3.5 Ci=0
d=AX1=2.5 Ci=0
d=AX2=1.5 Ci=−0.125
d=AX3=0.5 Ci=0.625
d=AX4=0.5 Ci=0.625
d=AX5=1.5 Ci=−0.125
d=AX6=2.5 Ci=0
d=AX7=3.5 Ci=0
LC=2の時は、
d=AX0=3.5/2=1.75 Ci=−0.047
d=AX1=2.5/2=1.25 Ci=−0.141
d=AX2=1.5/2=0.75 Ci=0.297
d=AX3=0.5/2=0.25 Ci=0.891
d=AX4=0.5/2=0.25 Ci=0.891
d=AX5=1.5/2=0.75 Ci=0.297
d=AX6=2.5/2=1.25 Ci=−0.141
d=AX7=3.5/2=1.75 Ci=−0.047
となる。説明の簡単化のため係数の小数点は第4位で四捨五入してある。
【0068】
ここで重要なのは、LC=1の時は、iが2から5までの真ん中の4つの係数しか用いていない(図6参照)が、LC=2の時は、iが0から7まで全てに係数が割り当てられ、より低周波数の領域まで帯域制限されることである(図9参照)。
【0069】
LC=2の時のフィルタの周波数特性を模式的に図8に示す。実際の周波数特性としては、フィルタがsinc関数そのものではなく近似であること、有限個でうちきられていることのために、このようにきれいな矩形とはならないが、近い周波数特性になる。図8からわかるように、ナイキスト周波数の半分の帯域まで制限することになり、上述したようなモアレ縞の発生による画質劣化を低減することが可能になる。副走査も同様にしてCjを求める。
【0070】
いままでは、1次元で説明してきたが、2次元での係数は、
Cij=Ci*Cj
として求め、フィルタ処理部106は、Cijが入力され、8×8のうちのアドレス(i番目、j番目)に対応した場所に係数をセットする。これを8×8個分の係数回だけセットすることでフィルタ演算を行う。
【0071】
フィルタ処理部106は、アドレス演算処理部からの画素位置情報をもとに、処理される元画像の8×8画素のデータを画像記憶部から取り出して、前記フィルタ係数をもとに畳み込み演算をし、多値画像を出力する。
【0072】
実際には、元画像の画素位置情報X,Yが、i=3,j=3にあたるため、元画像のX−3,Y−3からX+4,Y+4までの8×8画素のデータを取り出して畳み込み演算を行う。
【0073】
拡大変倍時は、LC=1と例えば固定する。LCを1以下の値に設定することも可能だが、元画像のナイキスト周波数を越えるために有効でない。よって拡大変倍時は、例えばLC=1に固定することで元画像の解像度を保持したまま拡大処理を行う。
【0074】
このように構成することにより、縮小変倍時では変倍率に応じて低周波数まで帯域制限することで必要以上の解像度の低下を防ぎながらモアレの発生を防ぎ、拡大時では、必要以上に解像度をおとさないような処理が可能となる。
【0075】
位相情報変更手段は、本実施形態では、縮小変倍時位相情報制御パラメータLC=100/RP拡大変倍時LC=1として、距離AXi(AYj)=AXi(AYj)/LCと更新することで、フィルタ係数を変更するように説明をした。これは本発明の一実施形にすぎず、例えばフィルタ係数が変倍後の注目画素位置からの距離に依って係数が定められるように形成され、変倍率RPに応じて、位相情報が変更されるように構成すればよい。ここでいう位相情報の変更は、フィルタ係数を定めるべき元画像上の各画素と求めるべき変倍後の注目画素位置との距離情報を変倍率RPに応じて更新することで実施される。距離情報を更新するためのLCという設定値は、例えばLC=1.5+(1−RP/100)などのように1次式でRPの値に応じて連続的に変化するものが考えられる。また、1次式や連続的に変化するような構成に限らなくても距離情報が更新されるように構成すればよい。
【0076】
また、初期位相IX(IY)は、本実施形態では、整数分の1倍となる縮小倍率時は0.5で、拡大変倍時が整数倍となる場合、IX(IY)=100/RP/2としている。
【0077】
本実施形態のフィルタ係数の演算式がsinc関数の近似式であり、PIX(PIY)が0の場合、係数C3が1で他が全て0となってしまい、常に変倍後の注目画素位置にある元画像上の画像データがそのまま用いられ補間演算が行われないことになる。整数分の1倍、整数倍の変倍率では、変倍後の注目画素位置を移動させても、整数分の1倍の場合は常にこの状態で補間演算されず、整数倍の時は、200%なら変倍後の注目画素の2画素に1個、300%ならば3画素おきにこの状態があらわれ、フィルタ演算処理されるところとされないところが短い周期であらわれるため好ましくない画像となってしまう。これを防ぐために用いられる。
【0078】
位相情報制御パラメータLCが1でなければ、以上述べたような極端なケースとはならないが、係数が0となる画素が短い周期でおきることが考えられるため、必要なことにはかわりない。
【0079】
また、本実施形態で述べたような初期位相の設定は1例に過ぎず、変倍率に応じて変化させる構成となっていれば、これに限るものではない。
【0080】
以上説明したように本実施形態によれば、位相情報変更部103をもつことにより、縮小変倍時のモアレ縞発生による画質劣化を防ぎ、拡大変倍時でも必要以上に解像度をおとさない構成の変倍処理を施すことが可能になる。また、初期位相演算を付加することで、整数倍や整数分の1倍の変倍率時においても良好な画像が得られる。
【0081】
(第二の実施形態)
第一の実施形態と同様の複写機を例にあげ、第二の実施形態を説明していく。
【0082】
図10に第二の実施形態を最もよく表わす画像処理ブロック図であり、同ブロック図において、101は変倍率入力部、102はアドレス演算処理部、103は位相情報変更処理部、104は係数演算処理部、105は画像記憶部、107はNx1フィルタ処理部、108は1×Mフィルタ処理部である。
【0083】
本発明は、画像の変倍に関するものであり、元画像を変倍率に応じて、変倍画像を出力する。本実施形態の複写機においては、出力される画像は、画像記憶部105に一時記憶されるように構成される。これは、RAMでもHDでもよい。また、処理する画像の全領域がスプールされるように構成してもよいし、画像の1部がスプールされるように構成されてもよい。以下のように動作する。
【0084】
変倍率入力部101から変倍率が入力される。
【0085】
位相情報変更手段103は、前記変倍率を受け取り、変倍率に応じて位相情報制御パラメータを出力し、また、変倍率に応じて初期位相パラメータをアドレス演算処理部に出力する。
【0086】
アドレス演算処理部102は、前記変倍率と初期位相パラメータを受け取り、出力画像の画素位置を1画素毎に移動させてアドレス演算をする。具体的には、出力画像上の注目画素が元画像上のどの画素位置にあたるかを前記変倍率から演算し、位相情報を係数演算処理部104に、元画像の画素位置情報をフィルタ処理部に出力する。
【0087】
係数演算処理部104は、位相情報と位相情報制御パラメータを入力し、注目画素の近傍に位置する元画像8×8画素それぞれと注目画素との距離を主走査方向、副走査方向それぞれ独立に計算し、距離と位相情報制御パラメータに応じて、フィルタに用いるためのフィルタ係数を演算する。その後N×1フィルタ処理部107、1×Mフィルタ処理部108に各画素の係数をセットする。N×1フィルタ処理部107、1×Mフィルタ処理部108は、それぞれ、主走査方向のN×1画素の1次元フィルタ処理部、副走査方向の1×M画素の1次元フィルタ処理部である。
【0088】
画像記憶部105は、処理する元画像が予め記憶されている。
【0089】
N×1フィルタ処理部107は、アドレス演算処理部からの画素位置情報をもとに、処理される元画像のN×M画素のデータを画像記憶部から取り出して、主走査方向N画素×1ラインを1単位として、Mラインそれぞれについて、前記フィルタ係数をもとに畳み込み演算をする。前記N×1フィルタ処理部は、図11(a)(b)または(c)のようにM個の出力がなされるように構成される。
【0090】
図11(a)では、N×1フィルタ演算処理部1101がM個並列に配置され、それぞれ1ラインからMラインまでのN×1画素分の元画像データが供給される。また係数演算処理部104で設定されたN×1個の係数セットは、各N×1フィルタ演算処理部1101にセットされ、畳み込み演算を行い、各フィルタ演算処理1101で1つずつ出力があるのでM個の出力がある。ここでN×1個の係数セットは、各ラインで同じものが用いられる。また図11(b)の構成では、M−1個のN−1画素分のライン遅延手段をもち、N−1画素の画像データのセットが各1回ずつN×1フィルタ演算部に供給されるようにセレクタが制御する。N×1フィルタには、係数演算処理部104から係数がセットされ畳み込み演算を行い、M個の出力をする。また、図11(c)では、画像記憶部105からN×1画素分の画像データが1ラインからMラインまでM回供給され、係数演算処理部104から係数がセットされ、畳み込み演算を行い、M個の出力をする。
【0091】
いずれにせよ、N×1画素の画像データのセットが1からMラインまで供給され、M個の出力がなされるようにN×1フィルタ処理部107は構成されればよい。
【0092】
1×Mフィルタ処理郡は、前記M個の演算結果を、副走査方向に演算されたフィルタの係数を係数演算処理部104から受け取り、畳み込み演算を行い、多値出力をする。
【0093】
このように構成することで本発明を主走査、副走査独立したフィルタ演算処理部として実施可能であり、さらに図11(b),(c)のように構成すれば、演算処理部を減じてより簡単な構成にて実施することが可能である。
【0094】
【他の実施形態】
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
【0095】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成される。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。
【0096】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。
【0097】
【発明の効果】
以上説明したように本発明によれば、位相情報変更手段をもつことにより、縮小変倍時のモアレ縞発生による画質劣化を防ぎ、拡大変倍時でも必要以上に解像度をおとさない構成の変倍処理を施すことが可能になる。また、初期位相演算を付加することで、整数倍や整数分の1倍の変倍率時においても良好な画像が得られる。
【図面の簡単な説明】
【図1】本発明をもっともよく表す画像処理のブロック図である。
【図2】実施形態1、2の説明で用いた複写機を説明した図である。
【図3】実施形態1、2の説明で用いた複写機のコントローラを説明した図である。
【図4】実施形態1の説明で用いた変倍画像の注目画素とその近傍の元画像上の画素を表わした図である。
【図5】実施形態1の説明で用いた主走査方向の変倍画像の注目画素とその近傍の元画像上の画素を表わした図である。
【図6】畳み込み演算で用いる係数とその係数を用いる元画像上の画素位置から注目画素位置からの距離の関係を表わした図である。
【図7】図6の係数のフィルタの解像力特性を示す図である。
【図8】図9の係数のフィルタの解像力特性を示す図である。
【図9】本発明の特徴である位相情報を更新した時の距離と係数の関係を示す図である。
【図10】実施形態2を説明するためのブロック図である。
【図11】N×1フィルタ処理部の実施形態を説明する図である。
【図12】従来例であるニアレストネイバー法を説明する図である。
【図13】従来例である双3次補間法を説明する図である。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus and method for scaling an image.
[0002]
[Prior art]
The nearest neighbor method is known as a process for scaling an image. This is a method of selecting the pixel of the original image data closest to the target pixel after scaling (see FIG. 12). Note that FIG. 12 is a one-dimensional diagram for simplicity.
[0003]
Also, processing such as bicubic interpolation is often used (see FIG. 13). In the bicubic interpolation method, the 4 × 4 pixels in FIG. 0 , J 0 ) At the center, and is calculated as follows using a cubic approximate expression of sinc interpolation.
[0004]
[Expression 1]
Figure 0003919430
[0005]
Here, f (x, y) represents a pixel value when the coordinate in the main scanning direction is x and the coordinate in the sub scanning direction is y, and the attention point (i 0 , J 0 ) Is 1 ≦ i in FIG. 0 , J 0 <2 is chosen. That is, the approximate center of the 4 × 4 block is the attention point.
[0006]
[Problems to be solved by the invention]
As described above, the conventionally used methods have the following problems.
[0007]
Since the nearest neighbor method only uses the nearest pixel data, the image is severely degraded such that moire occurs or pixels appear rough when enlarged.
[0008]
In the bicubic interpolation method, the image quality is better than that of the nearest neighbor method. However, when processing a document having a periodicity at the time of zooming to reduce the resolution, for example, an image obtained by reading a printed document, moire fringes are generated. There is a problem that the image quality is deteriorated.
[0009]
The present invention has been made in view of the above-described conventional example, and prevents an image quality deterioration due to the generation of moire fringes at the time of reduction / magnification, and realizes an enlargement / reduction process that does not reduce the resolution more than necessary even at the time of enlargement / magnification. It is an object of the present invention to provide a processing apparatus and method.
[0010]
It is another object of the present invention to provide an image processing apparatus and method that can obtain a good image even at a variable magnification of an integral multiple or an integral fraction by adding an initial phase calculation.
[0011]
[Means for Solving the Problems]
In order to achieve the above object, the present invention comprises the following arrangement. That is, an image processing apparatus for scaling an image, which calculates a pixel position of interest after scaling according to a magnification ratio, and pixel position information that is a pixel position of an original image near the pixel of interest Address calculation processing means for outputting the pixel position information and phase information representing the distance between the pixel of interest, coefficient calculation processing means for obtaining N × M coefficients of convolution calculation, and based on the pixel position information N × M original image data from the image storage unit and a convolution operation processing means for performing a convolution operation using a coefficient of the convolution operation, the coefficient operation processing means based on the phase information The distance between the target pixel position and each of the N × M pixel positions is obtained, and the coefficient at each pixel position is calculated according to the distance, and according to the scaling factor. Using the calculated phase information control parameter The distance value between the target pixel position and each of the N × M pixel positions can be updated. Noh It is.
[0012]
More preferably, the above Phase information control parameter Is the distance using a linear function Generated. More preferably, the address calculation processing means performs an initial phase calculation process for adding an initial phase when calculating an address.
[0013]
More preferably, the coefficient calculation processing means obtains the distance between the target pixel position and each of the N × M pixel positions using a polynomial approximation of a sinc function.
[0014]
More preferably, the coefficient calculation processing means reads a coefficient from a coefficient table prepared in advance according to the phase information and obtains a distance between the target pixel position and each of the N × M pixel positions.
[0015]
More preferably, the coefficient calculating means sets RP% as the scaling factor, Aij as the distance value between the pixel position of interest and the pixel position in the i-th column and j-th row of each of the N × M pixel positions, and the updated distance as the distance. When Aij '
Aij '= Aij / (100 / RP)
And change the distance.
[0016]
More preferably, the coefficient calculation means has a scaling factor of RP%, a distance between the pixel position of interest and the pixel position of i columns and j rows of each N × M pixel positions, Aij, and the updated distance. When Aij '
Aij ′ = Aij / (1.5+ (1−RP / 100))
And change the distance.
[0017]
More preferably, the convolution operation processing unit performs convolution operations independently in the main scanning and sub-scanning directions.
[0018]
More preferably, the convolution operation processing unit performs N × 1 convolution operations for the M lines in the main scanning direction, and performs 1 × M convolution operations for the M results in the sub-scanning direction.
[0019]
More preferably, the convolution operation processing unit performs 1 × M convolution operation for N pixels in the sub-scanning direction, and performs N × 1 convolution operation for the N results in the main scanning direction.
[0024]
DETAILED DESCRIPTION OF THE INVENTION
(First embodiment)
Hereinafter, as a preferred embodiment, a detailed description of a copying machine will be given. Note that the present invention is not limited to this embodiment.
[0025]
[Device overview]
FIG. 2 shows an external view of a copying machine as an embodiment of the present invention.
[0026]
Reference numeral 200 denotes an automatic document feeder (hereinafter referred to as “DF”), which can automatically feed a plurality of documents one by one and set the front and back surfaces of each document sequentially on a document table. Since the specific configuration is already known, detailed description is omitted. In FIG. 2, a plurality of documents to be read are placed on the DF 200. Documents set on the DF 200 are fed one by one by the DF 200 and placed on the document table 201. Reference numeral 202 denotes a document illumination lamp composed of, for example, a halogen lamp, which exposes a document placed on the document table glass 201. Reference numerals 203, 204, and 205 denote scanning mirrors that are accommodated in an optical scanning unit (not shown) and guide reflected light from the original to the CCD unit 206 while reciprocating. The CCD unit 206 includes an imaging lens 207 that forms an image of reflected light from an original on the CCD, an image sensor 208 that includes a CCD, a CCD driver 209 that drives the image sensor 208, and the like. An image signal output from the image sensor 208 is converted into, for example, 8-bit digital data, and then input to the controller unit 239. Reference numeral 210 denotes a photosensitive drum, which is discharged by a pre-exposure lamp 212 in preparation for image formation. A charger 213 uniformly charges the photosensitive drum 210. Reference numeral 214 denotes an exposure unit, which is composed of, for example, a semiconductor laser and exposes the photosensitive drum 210 based on image data processed by the controller unit 139 that performs image processing and overall control of the apparatus, thereby forming an electrostatic latent image. . A developing unit 215 stores a black developer (toner). A pre-transfer charger 219 applies a high voltage before transferring the toner image developed on the photosensitive drum 210 onto a sheet. Reference numerals 220, 222, and 224 denote paper feed units, which are driven by the paper feed rollers 221, 223, and 225 to feed the transfer paper into the apparatus, temporarily stop at the position where the registration rollers 226 are disposed, and the photosensitive drum 210. The timing of writing out the image formed in the above is taken and re-feeded. A transfer charger 227 transfers the toner image developed on the photosensitive drum 210 to a transfer sheet to be fed. A separation charger 228 separates the transfer sheet after the transfer operation from the photosensitive drum 210. The toner remaining on the photosensitive drum 210 without being transferred is collected by the cleaner 211. A conveyance belt 229 conveys the transfer sheet after the transfer process to the fixing device 130 and is fixed by heat, for example. A flapper 231 switches the transfer path of the transfer sheet after the fixing process, and controls whether the copying is finished and the sheet is discharged to the outside of the apparatus or in the arrangement direction of the intermediate tray 237. Reference numerals 233 to 236 denote feeding rollers which feed the transfer paper once the fixing process is completed to the intermediate tray 237 while being reversed (multiple) or non-reversed (both sides). Reference numeral 238 denotes a re-feed roller, which again conveys the transfer paper placed on the intermediate tray 237 to the position where the registration roller 236 is disposed. A staple sorter 232 performs collation of the copied paper and staple binding.
[0027]
The controller unit 239 includes a microcomputer, an image processing unit, and the like, which will be described later, and performs the above-described image forming operation in accordance with instructions from the operation panel 290.
[0028]
[Detailed explanation of controller part]
FIG. 3 is a block diagram of the controller unit 239 in the image forming apparatus of the present invention.
[0029]
A CPU 301 controls the entire image processing apparatus, and sequentially reads and executes a program from a read-only memory 303 (ROM) that stores a control procedure (control program) of the apparatus main body. The CPU 301 is connected to each load via the CPU bus 302. Reference numeral 304 denotes a random access memory (RAM) which is a main storage device used for storing input data, a working storage area, and the like. Reference numeral 305 denotes an I / O interface, which is operated by a key input by an operator, and displays a state of the apparatus using a liquid crystal display and an LED 316, and motors for driving a paper feed system, a transport system, and an optical system. 307, clutches 308, solenoids 309, and paper detection sensors 310 for detecting the transported paper are connected to each load of the apparatus. (Furthermore, the developing device 215 is provided with a toner residual detection sensor 311 for detecting the amount of toner in the developing device, and its output signal is input to the I / O port 305.) 315 is a high-pressure unit. In accordance with instructions from the CPU, a high voltage is output to the aforementioned charger, developer, pre-transfer charger, transfer charger, and separation charger.
[0030]
An image processing unit 306 receives an image signal output from the CCD unit 206, performs image processing described later, and outputs a control signal of the laser unit 214 according to the image data. Laser light output from the laser unit 214 irradiates the photosensitive drum 210.
[0031]
[Image processing unit]
FIG. 1 is a diagram that best represents the features of the present invention. In the block diagram, 101 is a scaling factor input unit, 102 is an address calculation processing unit, 103 is a phase information change processing unit, 104 is a coefficient calculation processing unit, Reference numeral 105 denotes an image storage unit, and 106 denotes a digital filter processing unit. This is mounted as one function of the image processing unit 306 described above in this embodiment.
[0032]
The present invention relates to scaling of an image, and outputs a scaled image of the original image according to the scaling ratio. In the copier of the present embodiment, the output image is configured to be temporarily stored in the image storage unit 105. This may be RAM or HD. Further, the entire area of the image to be processed may be spooled, or a part of the image may be spooled. It operates as follows.
[0033]
A scaling factor is input from the scaling factor input unit 101.
[0034]
The phase information changing unit 103 receives the scaling factor, outputs a phase information control parameter according to the scaling factor, and outputs an initial phase parameter to the address calculation processing unit 102 according to the scaling factor.
[0035]
The address calculation processing unit 102 receives the scaling factor and the initial phase parameter, and performs an address calculation by moving the pixel position of the output image for each pixel. Specifically, the pixel position on the original image corresponding to the target pixel on the output image is calculated from the scaling factor, the phase information is input to the coefficient calculation processing unit 104, and the pixel position information of the original image is input to the filter processing unit. Output.
[0036]
The coefficient calculation processing unit 104 receives the phase information and the phase information control parameter, calculates the distance between each of the original image 8 × 8 pixels located in the vicinity of the target pixel and the target pixel, and according to the distance and the phase information control parameter Then, filter coefficients for use in the filter are calculated. Thereafter, the coefficient of each pixel is set in the filter processing unit 106.
[0037]
The image storage unit 105 stores an original image to be processed in advance.
[0038]
Based on the pixel position information from the address calculation processing unit, the filter processing unit 106 extracts 8 × 8 pixel data of the original image to be processed from the image storage unit, and performs a convolution calculation based on the filter coefficient. And output a multi-valued image.
[0039]
In the present embodiment, the description will be made assuming that the filter size is 8 × 8. However, the size may be different between main scanning and sub-scanning, and the size is not limited to 8 and can be arbitrarily set.
[0040]
The above operation will be described in more detail. For simplification of explanation, the explanation is based on the assumption that the phase information control parameter, initial phase parameter, scaling factor, etc. are the same for both main scanning and sub-scanning. Needless to say, it can be easily expanded.
[0041]
Assume that the scaling factor input from the scaling factor 101 is 50% in both the main operation direction and the sub-operation direction. The phase information changing unit 103 calculates the phase information control parameter as follows, for example, according to the magnification.
[0042]
LC = 100 / RPX (RPY)
Here, LC is a phase information control parameter, and RPX (RPY) is a scaling factor of main scanning (sub-scanning). Since the scaling ratio is 50% for both the main and sub, LC = 100/50 = 2 this time. LC is output and used for coefficient calculation processing. This will be described later.
[0043]
Also, an initial phase parameter is calculated according to the magnification. For example, in the case of a scaling factor of 1 / integer, a rule that the initial phase parameter IX (IY) is set to 0.5 and the others are 0 is used in this embodiment. This will be described later. This time, 1/2 = 50%, so that IX = IY = 0.5 is set. It is set in the same manner when the magnification ratio is 1/3 = about 33% and 1/4 = 25%.
[0044]
In addition, when it becomes an integral multiple at the time of zooming, for example, 200%, 300%, etc.,
IX (IY) = 100 / RPX (RPY) / 2
Set to be.
[0045]
At 200%, IX (IY) = 0.25
At 300%, IX (IY) = about 0.167
And The effect of the initial phase parameter will be described at the end of this embodiment. IX and IY are output to the address calculation processing unit 102 and used.
[0046]
The address calculation processing unit 102 receives the scaling factor RPX (RPY) = 50 and the initial phase parameter IX (IY) = 0.5, and operates as follows. For example, it is assumed that the target pixel is the main scanning X = 50th pixel and the sub-scanning Y = 10th pixel. Then, it can be calculated as follows in which coordinate of the original image the pixel of interest is located.
[0047]
Xo = X / (RPX / 100) + IX
= 50 / (50/100) + 0.5 = 100.5
Yo = Y / (RPY / 100) + IY
= 10 / (50/100) + 0.5 = 20.5
Here, the initial phase parameter is used to be added at the time of address calculation as described above.
[0048]
Where the decimal part of Xo, Yo
PIX = 0.5
PIY = 0.5
Is output to the coefficient calculation processing unit 104 as phase information, and the integer parts of Xo and Yo
OX = 100
OY = 20
Is output to the filter processing unit 106 as pixel position information of the original image. In the present embodiment, since the decimal part of Xo and Yo is configured to have the same value, the description will be continued assuming that the initial phase parameter is one parameter.
[0049]
When all the processes for the current pixel of interest are completed, the pixel of interest is moved by one pixel and the process is continued.
[0050]
When RPX (RPY) is 50, since it is always divided by 50/100 = 0.5, the decimal part PIX always remains the initial phase IX. For example, when X = 51 and Y = 10 and only one pixel is updated, Xo = 102.5 (the same story holds true even when updated to sub-scanning, so it is omitted), and PIX = 0.5. Even if X increases by one pixel, Xo always increases by two and does not change at PIX = 0.5.
[0051]
However, this is an exception. In general, the value of PIX (PIY) changes every time the target pixel is moved by one pixel, and the value of the coefficient of the filter used in the interpolation calculation also changes for each pixel due to the change of PIX (PIY). For example, if RP = 80, the initial phase I is 0 as described above.
When X = 50,
Xo = 50 / (80/100) + 0 = 62.5 and PIX = 0.5
When X = 51
Xo = 51 / (80/100) + 0 = 63.75 and PIX = 0.75
When X = 52
Xo = 52 / (80/100) + 0 = 65.0 and PIX = 0
When X (or Y) is updated like this, the value of PIX (PIY) is also updated.
[0052]
Here, the description will be continued assuming that RPX = RPY = 50.
[0053]
In the present embodiment, the next process moves one pixel in the main scanning direction, and becomes X = 51st pixel and Y = 10th pixel. The maximum pixel value for main scanning and sub-scanning varies depending on the size of the original platen of the copying machine, the reading resolution, and the scaling ratio. If the maximum pixel value for main scanning this time is 5000 pixels, this processing is 0 in the main scanning direction. When the pixel starts from the pixel and reaches the 4999th pixel, the next processing advances by one pixel in the sub-scanning direction. In this example, when the processing advances to the X = 4999th pixel and the Y = 10th pixel, the next processing advances the target pixel position in the sub-scanning direction with the X = 0th pixel and the Y = 11th pixel. Thus, the processing is continued until the maximum value in the sub-scanning direction is reached.
[0054]
The coefficient calculation processing unit receives the phase information control parameter LC and the phase information PIX, and operates as follows.
[0055]
FIG. 4 is a diagram showing a pixel of interest and pixels on the original image near the pixel of interest, where an x (cross) mark near the center is a pixel of interest and a circle (maru) mark represents a pixel on the original image. In this embodiment, since 8 × 8 filters are used, only 8 × 8 pixels on the original image near the target pixel are used. Further, the position (i, j) of the target pixel x is always expressed as 0 to 7 in the main scanning direction and the sub-scanning direction of the pixel on the original image near the target pixel.
3 ≦ i <4
3 ≦ j <4
Set to be inside. Further, the pixel position information OX, OY of the original image output in the address calculation process is set so that the position is i = 3, j = 3.
[0056]
Here, the distance between the pixel on the original image in the vicinity of the target pixel and the target pixel is obtained independently of main scanning and sub-scanning. First, focus on main scanning as shown in FIG. Let AXi (i is an integer from 0 to 7) be the distance between the i-th pixel and the pixel of interest.
AX0 = 3 + PIX
AX1 = 2 + PIX
AX2 = 1 + PIX
AX3 = PIX
AX4 = 1-PIX
AX5 = 2−PIX
AX6 = 3-PIX
AX7 = 4-PIX
It becomes. The calculation is performed assuming that the distance between one pixel is 1, and 0 ≦ PIX (PIY) <1.
[0057]
It is similarly obtained in the sub-scanning direction, and AY0 to AY7 are calculated.
[0058]
Further, the main scanning i-th coefficient Ci and the sub-scanning j-th coefficient Cj are obtained independently from the main and sub-distances from the distance information of AX0 to AX7 and AY0 to AY7 and the phase information control parameter LC. The calculation is performed with the second coefficient Cij = Ci * Cj. In order to explain the effect of this embodiment, the bicubic interpolation method will be described first.
[0059]
Here, a cubic polynomial approximate expression of a sinc function well known as a bicubic interpolation method (bi-cubic method) is used as an arithmetic expression for obtaining a filter coefficient. However, this is an example for obtaining the filter coefficient, and the present invention is not limited to this.
[0060]
The bicubic interpolation method is expressed by the following equation where the coefficient c and the distance from the target pixel are d. Since d is a distance, it does not take a negative value.
[0061]
Figure 0003919430
FIG. 6 illustrates the relationship between the coefficient C and the distance d. Δ indicates how the distance information AXi or AYj of this embodiment is arranged. I (or j) corresponds to the subscript of Δ and takes a value from 0 to 7. The distance d is drawn so that the pixel x in FIG. 5 is the origin, and one scale is 1 distance from the origin, and is a positive value even if it is to the left of the origin. Take. Further, the position of Δ3 is located at PIX (PIY) from the origin, and AX3 (AY3) = PI. The distance between Δ is 1. Therefore, it can be seen that AX0 is in the position of Δ0, and AX0 = 3 + PIX. The curve drawn in FIG. 6 shows the value of the coefficient c according to the distance d. When i is 2 to 5, a coefficient is assigned, and when 0, 1, 6, and 7, the coefficient is 0. I understand that
[0062]
Bicubic interpolation always uses only 4 × 4 pixel filters. The frequency characteristic of the sinc function is shown in FIG. Since the polynomial approximation used in the bicubic interpolation method is an approximation of the sinc function, the frequency characteristic is slightly different from that in FIG. 7, but the description will be made assuming that it is equivalent to that in FIG. The sinc function is a band limiting filter as can be seen from FIG. The limited band is a frequency band exceeding ± 1/2 (Nyquist frequency) of the frequency of the original image. In general, an image having a frequency band exceeding the Nyquist frequency cannot be resolved, and the image quality deteriorates due to generation of moire or the like.
[0063]
For example, if the original image is 600 dpi, the frequency component exceeding 300 dpi is set to 0. If this arithmetic expression is used as it is at the time of reduction / magnification, all the frequency bands of the original image are stored. If the frequency band of the original image is left at the time of zooming, if the original image includes a periodic image, moire occurs and causes image quality degradation. For example, when 50% reduction / magnification is performed, if a 200 dpi screen image is included in the original image, the behavior is such that the apparent frequency is 400 dpi. For this reason, the resolution limit of 300 dpi is exceeded, and image quality deterioration due to moire fringes occurs.
[0064]
In the present invention, by changing the phase information according to the variable magnification, the moire fringes are reduced and the deterioration of the image quality is prevented.
[0065]
In the present embodiment, the following is performed.
[0066]
Originally, since d is a distance from the target pixel, dXi = AXi (dYj = AYj), which is changed as follows using the phase control parameter LC.
[0067]
dXi = AXi / LC (dYj = AYj / LC)
LC is changed according to the scaling factor. For example, as described above, LC = 2 when LC = 100 / RP (magnification).
When LC = 1
d = AX0 = 3.5 Ci = 0
d = AX1 = 2.5 Ci = 0
d = AX2 = 1.5 Ci = -0.125
d = AX3 = 0.5 Ci = 0.625
d = AX4 = 0.5 Ci = 0.625
d = AX5 = 1.5 Ci = -0.125
d = AX6 = 2.5 Ci = 0
d = AX7 = 3.5 Ci = 0
When LC = 2
d = AX0 = 3.5 / 2 = 1.75 Ci = −0.047
d = AX1 = 2.5 / 2 = 1.25 Ci = −0.141
d = AX2 = 1.5 / 2 = 0.75 Ci = 0.297
d = AX3 = 0.5 / 2 = 0.25 Ci = 0.891
d = AX4 = 0.5 / 2 = 0.25 Ci = 0.891
d = AX5 = 1.5 / 2 = 0.75 Ci = 0.297
d = AX6 = 2.5 / 2 = 1.25 Ci = -0.141
d = AX7 = 3.5 / 2 = 1.75 Ci = −0.047
It becomes. To simplify explanation, the decimal point of the coefficient is rounded off to the fourth place.
[0068]
What is important here is that when LC = 1, only the middle four coefficients from i to 2 are used (see FIG. 6). However, when LC = 2, i is from 0 to 7 in all cases. A coefficient is assigned, and the band is limited to a lower frequency region (see FIG. 9).
[0069]
FIG. 8 schematically shows the frequency characteristics of the filter when LC = 2. As an actual frequency characteristic, since the filter is not a sinc function itself but an approximation, and is limited by a finite number, it does not become a beautiful rectangle like this, but becomes a close frequency characteristic. As can be seen from FIG. 8, the band is limited to half the Nyquist frequency, and it is possible to reduce image quality degradation due to the generation of the moire fringes as described above. Similarly, Cj is obtained in the sub-scanning.
[0070]
As it has been described in one dimension, the coefficient in two dimensions is
Cij = Ci * Cj
The filter processing unit 106 receives Cij and sets a coefficient at a location corresponding to an address (i-th, j-th) of 8 × 8. The filter operation is performed by setting this only 8 × 8 coefficient times.
[0071]
Based on the pixel position information from the address calculation processing unit, the filter processing unit 106 extracts 8 × 8 pixel data of the original image to be processed from the image storage unit, and performs a convolution calculation based on the filter coefficient. And output a multi-valued image.
[0072]
Actually, since the pixel position information X, Y of the original image corresponds to i = 3, j = 3, the data of 8 × 8 pixels from X-3, Y-3 to X + 4, Y + 4 of the original image are extracted. Perform a convolution operation.
[0073]
At the time of zooming, for example, LC = 1 is fixed. Although LC can be set to a value of 1 or less, it is not effective because it exceeds the Nyquist frequency of the original image. Therefore, at the time of enlargement / reduction, for example, enlargement processing is performed while maintaining the resolution of the original image by fixing LC = 1.
[0074]
By configuring in this way, at the time of zooming, the band is limited to a low frequency according to the zooming factor to prevent the occurrence of moiré while preventing the reduction of resolution more than necessary, and at the time of zooming, the resolution is more than necessary. Processing that does not happen is possible.
[0075]
In this embodiment, the phase information change means updates the distance AXi (AYj) = AXi (AYj) / LC with the phase information control parameter LC = 100 / RP at the time of enlargement / magnification as LC = 1. The explanation was made to change the filter coefficient. This is only one embodiment of the present invention, for example, the filter coefficient is formed so that the coefficient is determined according to the distance from the target pixel position after scaling, and the phase information is changed according to the scaling factor RP. What is necessary is just to comprise. The change of the phase information here is performed by updating distance information between each pixel on the original image for which the filter coefficient is to be determined and the target pixel position after the scaling to be obtained according to the scaling factor RP. A setting value called LC for updating the distance information may be a linear expression that changes continuously according to the value of RP, such as LC = 1.5 + (1−RP / 100). In addition, the distance information may be updated without being limited to a linear expression or a structure that changes continuously.
[0076]
In this embodiment, the initial phase IX (IY) is 0.5 at a reduction ratio that is 1 / integer, and IX (IY) = 100 / RP when the enlargement magnification is an integral multiple. / 2.
[0077]
When the filter coefficient arithmetic expression of this embodiment is an approximate expression of the sinc function, and PIX (PIY) is 0, the coefficient C3 is 1 and all others are 0, so that the pixel position of interest after scaling is always at the pixel position of interest. The image data on a certain original image is used as it is, and no interpolation calculation is performed. With a magnification of 1 / integer and an integer multiple, even if the target pixel position after scaling is moved, interpolation is not always performed in this state when the pixel is multiplied by 1 / integer. If it is%, this state appears every two pixels of the pixel of interest after scaling, and if it is 300%, this state appears every three pixels, and the place where the filter calculation processing is not performed appears in a short period, so that an undesirable image is obtained. Used to prevent this.
[0078]
If the phase information control parameter LC is not 1, it will not be an extreme case as described above. However, it is possible that pixels with a coefficient of 0 occur in a short cycle, so that this is not necessary.
[0079]
In addition, the setting of the initial phase as described in the present embodiment is merely an example, and the configuration is not limited to this as long as it is configured to change according to the magnification.
[0080]
As described above, according to the present embodiment, by having the phase information changing unit 103, the image quality deterioration due to the generation of moire fringes at the time of zooming is prevented, and the resolution is not reduced more than necessary even at zooming. A scaling process can be performed. Also, by adding the initial phase calculation, a good image can be obtained even at a variable magnification of an integral multiple or an integral fraction.
[0081]
(Second embodiment)
The second embodiment will be described by taking a copying machine similar to that of the first embodiment as an example.
[0082]
FIG. 10 is an image processing block diagram that best represents the second embodiment. In the block diagram, 101 is a scaling factor input unit, 102 is an address calculation processing unit, 103 is a phase information change processing unit, and 104 is a coefficient calculation. A processing unit, 105 is an image storage unit, 107 is an N × 1 filter processing unit, and 108 is a 1 × M filter processing unit.
[0083]
The present invention relates to scaling of an image, and outputs a scaled image of the original image according to the scaling ratio. In the copier of the present embodiment, the output image is configured to be temporarily stored in the image storage unit 105. This may be RAM or HD. Further, the entire area of the image to be processed may be spooled, or a part of the image may be spooled. It operates as follows.
[0084]
A scaling factor is input from the scaling factor input unit 101.
[0085]
The phase information changing unit 103 receives the scaling factor, outputs a phase information control parameter according to the scaling factor, and outputs an initial phase parameter to the address calculation processing unit according to the scaling factor.
[0086]
The address calculation processing unit 102 receives the scaling factor and the initial phase parameter, and performs an address calculation by moving the pixel position of the output image for each pixel. Specifically, the pixel position on the original image corresponding to the target pixel on the output image is calculated from the scaling factor, the phase information is input to the coefficient calculation processing unit 104, and the pixel position information of the original image is input to the filter processing unit. Output.
[0087]
The coefficient calculation processing unit 104 receives the phase information and the phase information control parameter, and independently calculates the distance between each of the original image 8 × 8 pixels located near the target pixel and the target pixel in each of the main scanning direction and the sub scanning direction. Then, filter coefficients for use in the filter are calculated according to the distance and the phase information control parameter. Thereafter, the coefficient of each pixel is set in the N × 1 filter processing unit 107 and the 1 × M filter processing unit 108. The N × 1 filter processing unit 107 and the 1 × M filter processing unit 108 are an N × 1 pixel one-dimensional filter processing unit in the main scanning direction and a 1 × M pixel one-dimensional filter processing unit in the sub-scanning direction, respectively. .
[0088]
The image storage unit 105 stores an original image to be processed in advance.
[0089]
The N × 1 filter processing unit 107 extracts N × M pixel data of the original image to be processed from the image storage unit based on the pixel position information from the address calculation processing unit, and N pixels × 1 in the main scanning direction A line is taken as one unit, and a convolution operation is performed for each M line based on the filter coefficient. The N × 1 filter processing unit is configured to output M outputs as shown in FIGS. 11A, 11B, or 11C.
[0090]
In FIG. 11A, N × 1 filter arithmetic processing units 1101 are arranged in parallel, and original image data for N × 1 pixels from 1 line to M line is supplied. Further, the N × 1 coefficient set set in the coefficient calculation processing unit 104 is set in each N × 1 filter calculation processing unit 1101, performs a convolution calculation, and outputs one by one in each filter calculation processing 1101. There are M outputs. Here, the same N × 1 coefficient set is used for each line. 11B has line delay means for M−1 N−1 pixels, and a set of N−1 pixel image data is supplied to the N × 1 filter arithmetic unit once each. The selector controls. The N × 1 filter is set with a coefficient from the coefficient calculation processing unit 104, performs a convolution operation, and outputs M outputs. In FIG. 11C, image data for N × 1 pixel is supplied M times from one line to M lines from the image storage unit 105, a coefficient is set from the coefficient calculation processing unit 104, a convolution calculation is performed, M outputs.
[0091]
In any case, the N × 1 filter processing unit 107 may be configured so that a set of image data of N × 1 pixels is supplied from 1 to M lines and M outputs are made.
[0092]
The 1 × M filter processing group receives the M calculation results from the coefficient calculation processing unit 104 as filter coefficients calculated in the sub-scanning direction, performs a convolution calculation, and outputs a multi-value.
[0093]
With this configuration, the present invention can be implemented as a filter arithmetic processing unit independent of main scanning and sub-scanning. Further, when configured as shown in FIGS. 11B and 11C, the arithmetic processing unit is reduced. It is possible to implement with a simpler configuration.
[0094]
[Other Embodiments]
Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, and a printer), and a device (for example, a copying machine and a facsimile device) including a single device. You may apply to.
[0095]
Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and the computer (or CPU or CPU) of the system or apparatus. This is also achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. A case where part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing is also included.
[0096]
Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is determined based on the instruction of the program code. The case where the CPU of the expansion card or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing is also included.
[0097]
【The invention's effect】
As described above, according to the present invention, by having the phase information changing means, the image quality deterioration due to the generation of moire fringes at the time of zooming is prevented, and the zooming of the configuration that does not reduce the resolution more than necessary even at the zooming magnification. Processing can be performed. Also, by adding the initial phase calculation, a good image can be obtained even at a variable magnification of an integral multiple or an integral fraction.
[Brief description of the drawings]
FIG. 1 is a block diagram of image processing that best represents the present invention.
FIG. 2 is a diagram illustrating a copying machine used in the description of Embodiments 1 and 2. FIG.
FIG. 3 is a diagram illustrating a copier controller used in the description of the first and second embodiments.
FIG. 4 is a diagram illustrating a pixel of interest of a scaled image used in the description of Embodiment 1 and a pixel on the original image in the vicinity thereof.
FIG. 5 is a diagram illustrating a target pixel of a scaled image in the main scanning direction and a pixel on the original image in the vicinity thereof used in the description of the first embodiment.
FIG. 6 is a diagram illustrating a relationship between a coefficient used in a convolution operation and a distance from a pixel position on the original image using the coefficient to a target pixel position.
7 is a diagram showing the resolving power characteristics of the filter of the coefficient shown in FIG. 6. FIG.
8 is a diagram showing the resolving power characteristics of the filter of the coefficient in FIG. 9. FIG.
FIG. 9 is a diagram illustrating a relationship between a distance and a coefficient when phase information, which is a feature of the present invention, is updated.
FIG. 10 is a block diagram for explaining a second embodiment;
FIG. 11 is a diagram illustrating an embodiment of an N × 1 filter processing unit.
FIG. 12 is a diagram for explaining a nearest neighbor method as a conventional example.
FIG. 13 is a diagram for explaining a conventional bicubic interpolation method.

Claims (13)

画像を変倍するための画像処理装置であって、
変倍率に応じて、変倍後の注目画素位置を毎画素演算し、前記注目画素近傍の元画像の画素位置である画素位置情報と、前記画素位置情報と前記注目画素との距離を表わす位相情報とを出力するアドレス演算処理手段と、
畳み込み演算の係数をN×M個求める係数演算処理手段と、
前記画素位置情報をもとに画像記憶部から元画像データをN×M個セットし、前記畳み込み演算の係数を用いて畳み込み演算を行う畳み込み演算処理手段とを備え、
前記係数演算処理手段は、前記位相情報をもとに、注目画素位置とN×M個の各画素位置との距離を求め、その距離に応じて各画素位置での係数を演算するように構成し、かつ変倍率に応じて算出される位相情報制御パラメータを用いて、前記注目画素位置とN×M個の各画素位置との距離の値を更新可能であることを特徴とする画像処理装置。
An image processing apparatus for scaling an image,
According to the scaling factor, the pixel position of interest after scaling is calculated for each pixel, pixel position information that is the pixel position of the original image near the pixel of interest, and a phase that represents the distance between the pixel position information and the pixel of interest Address calculation processing means for outputting information;
Coefficient arithmetic processing means for obtaining N × M coefficients of convolution operation;
N × M sets of original image data from the image storage unit based on the pixel position information, and a convolution operation processing means for performing a convolution operation using a coefficient of the convolution operation,
The coefficient calculation processing unit is configured to obtain a distance between the target pixel position and each of the N × M pixel positions based on the phase information and calculate a coefficient at each pixel position according to the distance. And a value of a distance between the target pixel position and each of the N × M pixel positions can be updated using a phase information control parameter calculated according to a scaling factor. .
前記位相情報制御パラメータは、変倍率の1次関数を用いて距離を生成されることを特徴とする請求項1に記載の画像処理装置。The image processing apparatus according to claim 1, wherein the phase information control parameter is a distance generated using a linear function of a scaling factor. 前記アドレス演算処理手段は、アドレスの演算を行う際に、初期位相を足し込むための初期位相演算処理を行うことを特徴とする請求項1又は2に記載の画像処理装置。  The image processing apparatus according to claim 1, wherein the address calculation processing unit performs an initial phase calculation process for adding an initial phase when calculating an address. 前記係数演算処理手段は、sinc関数の多項式近似式を用いて注目画素位置とN×M個の各画素位置との距離を求めることを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。  The coefficient calculation processing unit obtains the distance between the target pixel position and each of the N × M pixel positions using a polynomial approximation of a sinc function. Image processing apparatus. 前記係数演算処理手段は、前記位相情報に応じて、予め用意されている係数テーブルから係数を読み出して注目画素位置とN×M個の各画素位置との距離を求めることを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。  The coefficient calculation processing means reads out a coefficient from a coefficient table prepared in advance according to the phase information, and obtains a distance between the target pixel position and each of N × M pixel positions. The image processing apparatus according to any one of 1 to 3. 前記係数演算手段は、変倍率をRP%、前記注目画素位置とN×M個の各画素位置のi列j行の画素位置との距離の値をAij、更新された距離をAij’とするとき、
Aij’=Aij/(100/RP)
と距離を変更することを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。
The coefficient calculation means sets a scaling factor as RP%, a value of a distance between the pixel position of interest and a pixel position of i columns and j rows of N × M pixel positions as Aij, and an updated distance as Aij ′. When
Aij '= Aij / (100 / RP)
The image processing apparatus according to claim 1, wherein the distance is changed.
前記係数演算手段は、変倍率をRP%、前記注目画素位置とN×M個の各画素位置のi列j行の画素位置との距離の倦をAij、更新された距離をAij’とするとき、
Aij’=Aij/(1.5+(1−RP/100))
と距離を変更することを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。
The coefficient calculation means sets the scaling factor to RP%, the distance between the pixel position of interest and the pixel position of the i-th column and the j-th row of N × M pixel positions as Aij, and the updated distance as Aij ′. When
Aij ′ = Aij / (1.5+ (1−RP / 100))
The image processing apparatus according to claim 1, wherein the distance is changed.
前記畳み込み演算処理部は、主走査、副走査方向に独立に畳み込み演算を行うことを特徴とする請求項1乃至7のいずれか1項に記載の画像処理装置。  The image processing apparatus according to claim 1, wherein the convolution operation processing unit performs convolution operations independently in the main scanning and sub-scanning directions. 前記畳み込み演算処理部は、主走査方向にN×1の畳み込み演算をMライン分行い、M個の結果に対して副走査方向に1×Mの畳み込み演算を行うことを特徴とする請求項8に記載の画像処理装置。  9. The convolution operation processing unit performs N × 1 convolution operations for M lines in the main scanning direction, and performs 1 × M convolution operations in the sub-scanning direction on M results. The image processing apparatus according to 1. 前記畳み込み演算処理部は、副走査方向に1×Mの畳み込み演算をN画素分行い、N個の結果に対して主走査方向にN×1の畳み込み演算を行うことを特徴とする請求項8に記載の画像処理装置。  9. The convolution operation processing unit performs 1 × M convolution operation for N pixels in the sub-scanning direction, and performs N × 1 convolution operation on the N results in the main scanning direction. The image processing apparatus according to 1. 前記Mと前記Nはいずれも8であることを特徴とする請求項1乃至10のいずれか1項に記載の画像処理装置。The image processing apparatus according to claim 1, wherein both M and N are eight. 画像を変倍するための画像処理方法であって、
変倍率を入力し、変倍後の注目画素位置を毎画素演算し、前記注目画素近傍の元画像の画素位置である画素位置情報と、前記画素位置情報と前記注目画素との距離を表わす位相情報とを出力し、
畳み込み演算の係数をN×M個求め、
前記画素位置情報をもとに画像記憶部から元画像データをN×M個セットし、前記畳み込み演算の係数を用いて畳み込み演算を行い、
前記畳み込み演算の係数は、前記位相情報をもとに求められた、注目画素位置とN×M個の各画素位置との距離に応じて各画素位置について演算され、前記注目画素位置とN×M個の各画素位置との距離の値は、変倍率に応じて算出される位相情報制御パラメータを用いて更新可能であることを特徴とする画像処理方法。
An image processing method for scaling an image,
A scaling factor is input, the pixel position of interest after scaling is calculated for each pixel, pixel position information that is the pixel position of the original image near the pixel of interest, and a phase that represents the distance between the pixel position information and the pixel of interest Output information and
N × M coefficients of convolution calculation are obtained,
Set N × M original image data from the image storage unit based on the pixel position information, perform a convolution operation using the coefficient of the convolution operation,
The convolution calculation coefficient is calculated for each pixel position according to the distance between the pixel position of interest and each of the N × M pixel positions obtained based on the phase information, and the pixel position of interest and N × M An image processing method characterized in that a value of a distance from each of M pixel positions can be updated using a phase information control parameter calculated according to a scaling factor.
コンピュータにより画像を変倍するためのコンピュータプログラムを格納するコンピュータ可読の記憶媒体であって、前記プログラムは、変倍率を入力し、変倍後の注目画素位置を毎画素演算し、前記注目画素近傍の元画像の画素位置である画素位置情報と、前記画素位置情報と前記注目画素との距離を表わす位相情報とを出力し、
畳み込み演算の係数をN×M個求め、
前記画素位置情報をもとに画像記憶部から元画像データをN×M個セットし、前記畳み込み演算の係数を用いて畳み込み演算を行い、
前記畳み込み演算の係数は、前記位相情報をもとに求められた、注目画素位置とN×M個の各画素位置との距離に応じて各画素位置について演算され、前記注目画素位置とN×M個の各画素位置との距離の値は、変倍率に応じて算出される位相情報制御パラメータを用いて更新可能であることを特徴とするコンピュータ可読記憶媒体。
A computer-readable storage medium for storing a computer program for scaling an image by a computer, wherein the program inputs a scaling factor, calculates a pixel-of-interest position after scaling, and the vicinity of the pixel of interest Output pixel position information that is a pixel position of the original image, and phase information indicating a distance between the pixel position information and the target pixel,
N × M coefficients of convolution calculation are obtained,
Set N × M original image data from the image storage unit based on the pixel position information, perform a convolution operation using the coefficient of the convolution operation,
The convolution calculation coefficient is calculated for each pixel position according to the distance between the pixel position of interest and each of the N × M pixel positions obtained based on the phase information, and the pixel position of interest and N × M A computer-readable storage medium characterized in that a value of a distance from each of M pixel positions can be updated using a phase information control parameter calculated in accordance with a scaling factor.
JP2000241764A 2000-08-09 2000-08-09 Image processing apparatus and method Expired - Fee Related JP3919430B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000241764A JP3919430B2 (en) 2000-08-09 2000-08-09 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000241764A JP3919430B2 (en) 2000-08-09 2000-08-09 Image processing apparatus and method

Publications (2)

Publication Number Publication Date
JP2002057888A JP2002057888A (en) 2002-02-22
JP3919430B2 true JP3919430B2 (en) 2007-05-23

Family

ID=18732906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000241764A Expired - Fee Related JP3919430B2 (en) 2000-08-09 2000-08-09 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3919430B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632497A (en) * 2017-03-16 2018-10-09 佳能株式会社 Image processing apparatus, control method and computer readable recording medium storing program for performing

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5067336B2 (en) * 2007-12-26 2012-11-07 大日本印刷株式会社 Image conversion apparatus and image conversion method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632497A (en) * 2017-03-16 2018-10-09 佳能株式会社 Image processing apparatus, control method and computer readable recording medium storing program for performing
US10672107B2 (en) 2017-03-16 2020-06-02 Canon Kabushiki Kaisha Image processing apparatus and method of controlling the same

Also Published As

Publication number Publication date
JP2002057888A (en) 2002-02-22

Similar Documents

Publication Publication Date Title
JP3581037B2 (en) Image processing device
JPH11234490A (en) Image forming device
JP2003008888A (en) Image processor and processing method therefor
US7209260B1 (en) Image processing apparatus
US20050219629A1 (en) Image forming apparatus
JP3919430B2 (en) Image processing apparatus and method
JP2010041383A (en) Image processor, image reader and image forming device
JP3950647B2 (en) Image processing apparatus and processing method thereof
JP4675864B2 (en) Image forming apparatus
JP3967074B2 (en) Image processing apparatus and image forming apparatus
JP2014209711A (en) Image processing apparatus, image processing method, and program capable of copying document
JP2002094782A (en) Image processing unit and method
JP5662675B2 (en) Image forming apparatus and control method thereof
JP3098246B2 (en) Image data generation device
JP2004032510A (en) Image processing method and apparatus
JP4237353B2 (en) Image processing device
JP4118052B2 (en) Image processing device
JP4384055B2 (en) Image forming apparatus and image data output method
JP2968327B2 (en) Image editing method
JP3927716B2 (en) Image processing device
JP2010141510A (en) Image processor and image forming apparatus
JP2001218026A (en) Image processor and image forming device
JP4298695B2 (en) Image processing device
JP2005238709A (en) Imaging device/method
JP3580374B2 (en) Digital copier

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040611

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7426

Effective date: 20040611

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20040611

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060306

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060508

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070213

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110223

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120223

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130223

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140223

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees