JP3692160B2 - Image scaling device - Google Patents

Image scaling device Download PDF

Info

Publication number
JP3692160B2
JP3692160B2 JP06437395A JP6437395A JP3692160B2 JP 3692160 B2 JP3692160 B2 JP 3692160B2 JP 06437395 A JP06437395 A JP 06437395A JP 6437395 A JP6437395 A JP 6437395A JP 3692160 B2 JP3692160 B2 JP 3692160B2
Authority
JP
Japan
Prior art keywords
data
image
scaling
interpolation
interpolation calculation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP06437395A
Other languages
Japanese (ja)
Other versions
JPH08265562A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP06437395A priority Critical patent/JP3692160B2/en
Publication of JPH08265562A publication Critical patent/JPH08265562A/en
Application granted granted Critical
Publication of JP3692160B2 publication Critical patent/JP3692160B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、デジタル画像読み取り装置などにおいて画像データを電気的に拡大、縮小する画像変倍装置に関し、特に3次元コンボリューション法を用いた画像変倍装置に関する。
【0002】
【従来の技術】
従来、この種の画像変倍装置としては、例えば特開昭62−256179号公報に示すようにナイキスト周波数をカットオフとする標本化関数を近似した3次元コンボリューション法により補間演算を行うものが知られている。この方法では、画像データを拡大時や100%に近い縮小率の縮小時には補間し、また、50%近傍以下の縮小時には間引くことが行われる。
【0003】
【発明が解決しようとする課題】
しかしながら、上記の如く3次元コンボリューション法を用いた画像変倍装置では、拡大時や100%に近い縮小率の縮小時には画像データを補間するので高画質の電気変倍が可能であるが、50%近傍以下の縮小時には画像データを間引くのでモアレが発生する可能性があるという問題点がある。なお、このモアレは特に原画像が文字画像の場合や、読み取りセンサの奇数画素センサと偶数画素センサの間に出力差がある場合などに多く発生する。
【0004】
本発明は上記従来の問題点に鑑み、モアレのない高画質の変倍画像を得ることができる画像変倍装置を提供することを目的とする。
【0005】
【課題を解決するための手段】
第1の手段は上記目的を達成するために、主走査方向の原画像データの補間演算を、ナイキスト周波数をカットオフとする周波数特性の標本化関数で行う補間演算手段を備えると共に、主走査方向の原画像データまたは前記補間演算されたデータをメモリに対して蓄積するタイミングを制御することにより原画像データの主走査方向を変倍する画像変倍装置において、前記主走査方向の50%近傍以下の原画像データの縮小変倍時に前記補間演算手段における補間演算を行うための標本化関数のナイキスト周波数の1/2の周波数をカットオフとする周波数特性の標本化関数への切り替えと、帯域制限の実行とを並行して制御する制御手段を備えたことを特徴とする。
【0006】
第2の手段は、第1の手段において前記縮小変倍の変倍率が50%近傍以下であることを特徴とする。
【0007】
第3の手段は、第1または第2の手段において前記制御手段は、設定画質モードが文字モードの場合に標本化関数を切り替えることを特徴とする。
【0010】
【作用】
第1の手段では、前記主走査方向の50%近傍以下の原画像データの縮小変倍時に前記補間演算手段における補間演算を行うための標本化関数のナイキスト周波数の1/2の周波数をカットオフとする周波数特性の標本化関数への切り替えと、帯域制限の実行とを並行して制御するので、縮小変倍時に画像データを間引く場合にモアレのない高画質の変倍画像を得ることができる。
【0014】
の手段では、文字モードの場合に標本化関数を切り替えるので、MTF補正されてモアレが発生しやすくなっても、自動的にモアレのない高画質の変倍画像を得ることができる。
【0015】
【実施例】
以下、図面を参照して本発明の実施例を説明する。図1は本発明に係る画像変倍装置の一実施例を示すブロック図、図2は図1の画像変倍装置を備えた画像信号処理回路を示すブロック図、図3は図2の画像信号処理回路を備えたデジタル複写機を示す構成図、図4は等倍時のタイミング信号を示す説明図、図5は縮小時のタイミング信号を示す説明図、図6は拡大時のタイミング信号を示す説明図、図7は縮小時の仮想サンプリング点を示す説明図、図8は図7における縮小時の補間係数を示す説明図、図9は縮小時の他の仮想サンプリング点を示す説明図、図10は図9における縮小時の補間係数を示す説明図、図11は設定倍率に基づいて補間演算を切り替える処理を説明するためのフローチャート、図12は設定倍率と画質モードに基づいて補間演算を切り替える処理を説明するためのフローチャートである。
【0016】
先ず、図3を参照して本実施例の画像変倍装置が適用されたデジタル複写機の構成を説明する。コンタクトガラス1上に載置された原稿は光源2により照明され、その反射光が第1ミラー3、第2ミラー4、第3ミラー5により反射され、レンズ6によりCCDラインイメージセンサ7の受光面に結像されて原稿画像が読み取られる。光源2および第1ミラー3は走行体8に搭載され、第2ミラー4および第3ミラー5は走行体9に搭載されている。そして、走行体8と走行体9の走行速度比が変化することにより副走査方向の変倍が行われる。
【0017】
このように読み取られた画像信号は図1、図2に示す回路により処理され、次いでレーザダイオード(LD)17から画像データに応じて変調されたレーザ光が出射される。このレーザ光はf−θレンズ18等の光学系により感光体20の表面に導かれ、感光体20の表面に潜像が形成される。この潜像は現像ローラ21によりトナーで現像され、このトナー像が転写チャージャ28により転写紙に転写され、また、感光体20上の残存トナーがクリーニングユニット32により除去される。転写紙は給紙トレイ24、25などから給紙コロ27により給紙され、トナー像が転写チャージャ28により転写された後、分離チャージャ29により感光体20の表面から分離され、トナー像が定着ユニット31により定着された後排紙トレイ33上に排出される。
【0018】
次に、図2を参照して画像信号処理回路の構成を説明する。CCDラインイメージセンサ7により読み取られたアナログの画像信号は、VPU(Video Processing Unit) 41により適正なゲインを与えられた後A/D変換され、クロックCK1に同期した8ビット(256階調)のデジタルデータDATA0〜7としてIPU(Image Processing Unit) 50に印加される。ここで、VPU41に対してはIPU50内のタイミング発生部51から、CCDラインイメージセンサ7の読み出しタイミングを決める信号CCDSTNと、10MHzのクロックCK1が印加される。
【0019】
IPU50に印加されたデータDATA0〜7は、黒オフセット補正回路52、シェーディング補正回路53、MTF補正回路54、γ補正回路55を介して本実施例の変倍回路56に印加され、後述するように主走査方向の変倍が行われた後画質処理回路57に印加される。ここで、黒オフセット補正とはCCD7の暗電流の黒レベルをデータDATA0〜7から減算する処理である。シェーディング補正は主走査方向の光源2の光量むらやCCD7の各画素の感度むらを除去するために、原稿の走査開始前に主走査方向の濃度が均一な白板を読み取ってそのデータを記憶し、データDATA0〜7をそのデータで除算する処理である。
【0020】
MTF補正は光学的な周波数劣化などを2次元の空間フィルタで補正する処理であり、γ補正は図3に示すスキャナのγ特性を補正する処理である。画質処理回路57では文字処理部58、誤差拡散部59、ディザ処理部60、61により画質処理が行われ、画像データSDT0〜7としてGAVD63に出力されて書き込みクロックに応じた速度変換が行われる。次いでプリンタのLD変調板64ではLD17に印加される電流のパルス幅(PWMの場合)や電流量(PMの場合)が8ビットのデータSDT0〜7に応じてコントロールされる。
【0021】
IPU50はメイン制御板のCPU65との間で13ビット幅のアドレスバスと8ビット幅のデータバスを共有し、また、これらのバスを介してCPU65との間で通信が行われている。また、このメイン制御板のCPU65は図3に示すスキャナやプリンタのモータや、各種クラッチやソレノイド等を制御することにより、スキャナ、プリンタ及び図2に示すIPU50を制御している。なお、符号62はROMである。
【0022】
次に、図1を参照して本実施例の変倍回路56を詳細に説明する。この変倍回路56は変倍制御部101、変倍RAM102、入力側フリップフロップFF1、FF3、セレクタSEL1〜SEL3、8ビット多値データの補間演算回路(hokan256)103、2ビットデータの補間演算回路(hokan2)104、105及び出力側フリップフロップFF2、FF4を有し、3次関数コンボリューション法による補間で主走査方向を25%〜512%(1%刻み)で変倍する。なお、図示省略されているが、出力側FF2の出力bout<9:0>と入力側FF3の入力bin<9:0> の間には、共に5k×8ビットの2つのFIFOメモリが並列に設けられ、この各FIFOメモリはトグル動作している。また、信号sd<9:0> は図2に示すγ補正回路55からFF1に対する入力データ、信号hd<9:0> はFF4から図2に示す画質処理回路59に対する出力データである。
【0023】
入力側FF1、FF3の出力と補間演算回路103〜105の出力は、CPU65からのkakdai信号に基づいてセレクタSEL1〜SEL3により選択される。セレクタSEL1の出力は出力側FF2を介してFIFOメモリに印加され、セレクタSEL2の出力は補間演算回路103〜105に印加され、セレクタSEL3の出力は出力側FF3を介して画質処理回路57に印加される。
【0024】
実際の変倍制御は、メイン制御板のCPU65から変倍RAM102に記憶された変倍制御データに基づいて、変倍制御部101が仮想サンプリング点を表す信号smpl<2:0> を補間演算回路103〜105に印加すると共に、FIFOメモリとFF2、FF3に対して読み出しイネーブル信号renと書き込みイネーブル信号wenを印加することにより行っている。なお、FF2がwen付き、FF3はren付きである。
【0025】
変倍RAM102と変倍制御データについて説明すると、変倍RAM102は512×4ビットの構成であり、速度変換を行うための間引き/重複制御データan (1ビット)と、補間演算の係数を選択するための再サンプリング点の位置データsmpln (3ビット)を記憶する。変倍RAM102に対するデータのリード、ライトは、通常のコマンドと同様にCPU65のインタフェースを介して行う。
【0026】
ここで、変倍RAM102に書き込まれるデータは、拡大モードの場合と縮小モードの場合では異なる意味を有する。
【0027】
(1)拡大モードの場合
間引き/重複制御データan (1ビット)は重複制御に用いられ、an =Hの時にFIFOメモリから次の画素のデータを読み出し、an =Lの時に読み出しを停止するようにFF2、FF3とFIFOメモリのイネーブル信号enが制御される。
【0028】
(2)縮小モードの場合
間引き/重複制御データan は間引き制御に用いられ、an =Hの時にFIFOメモリに書き込むが、an =Lの時には書込みを行わないようにFF2、FF3とFIFOメモリのイネーブル信号enが制御される。
【0029】
位置データsmpln (3ビット)は拡大モード、縮小モードのいずれの場合にも再サンプリング点の位置データを表す。変倍RAM102への変倍制御データの転送は、この変倍RAM102のデータバスとアドレスバスを直接アクセスすることにより行われる。この場合、前述したように拡大モードの場合と縮小モードの場合では、データの意味も個数も異なり、縮小モードにおけるデータの個数は「100」であるが、拡大時のそれは変倍率(%)そのものとなる。ここで、本実施例では変倍制御データの仮想サンプリング点は、0〜7の数をとる場合と0〜3の数をとる場合がある。
【0030】
次に、等倍時、縮小時、拡大時の動作を詳細に説明する。
【0031】
(1)等倍時
等倍時にはkakdi信号=Lに設定され、また、図4に示すようにwen=ren=Lに設定される。この場合、wen=ren=Lであるので速度変換は行われず、したがって、等倍動作する。すなわち、入力多値データsd<9:0> はFF1により取り込まれ、補間演算回路103を補間処理されることなく通り、FF2においてwen信号(=L)により等速度でFIFOメモリに書き込まれる。このデータは次のライン時に読み出され、FF3においてren信号(=L)により等速度で取り込まれ、FF4を介して出力データhd<9:0> として出力される。
【0032】
(2)縮小時
縮小時にはkakdi信号=Lに設定され、また、図5に示すようにwenが縮小率に応じた周期、ren=Lに設定される。入力多値データsd<9:0> はFF1により取り込まれ、上位8ビットのsd<7:0> が補間演算回路103に送られて3 次関数コンボリューション法により補間演算が行われる。
【0033】
この場合、仮想サンプリング点Xは図7に示すように、画素間を8等分した位置smpl(0〜7)と、その前後の各2つの画素のデータS(n−1)、S(n)、S(n+1)、S(n+2)と、図8に示す係数h(−1)、h(0)、h(1)、h(2)と次式(1)に従って畳み込み演算を行うことにより計算される。
【0034】

Figure 0003692160
この補間を行う場合のサンプリング位置は、変倍RAM102に予め変倍制御データを読み出すことにより得られる。また、この補間演算は400dpiをカットオフとする標本化関数で演算を行っていることになり、したがって、等倍に近い縮小時や拡大時に精度の高い補間演算が行われ、高画質の電気変倍が可能となる。
【0035】
ところで、縮小時、特に50%近傍の倍率時にはおおよそ2画素から1画素を間引くと、サンプリング密度によって決まるナイキスト周波数(200dpi前後)を越える周波数成分が原画像の中に含まれているので、強いモアレが発生する可能性がある。このような周波数成分は、CCD7の偶数画素、奇数画素の差などの理由により、スキャナの読み取りデータ中に頻繁に現れる。
【0036】
このため、本発明では200dpiをカットオフとする標本化関数で補間を行うように構成されている。この場合の補間演算は、図9に示すように画素間を4等分した位置smpl(0〜3)と、仮想サンプリング点Xの前後の各4つの画素のデータS(n−3)、S(n−2)、S(n−1)、S(n)、S(n+1)、S(n+2)、S(n+3)、S(n+4)と、図10に示す係数h(−3)、h(−2)、h(−1)、h(0)、h(1)、h(2)、h(3)、h(4)と次式(2)に従って畳み込み演算を行うことにより計算される。
【0037】
Figure 0003692160
この補間を行う場合のサンプリング位置Xは同様に、変倍RAM102に書き込まれた変倍制御データを書き換えて読み出すことにより得られる。また、この補間演算は200dpiをカットオフとする標本化関数で演算を行っていることになり、したがって、帯域制限を行いながら主走査変倍を行うので縮小時のモアレを減少することができる。
【0038】
このようにして補間されたデータは、FF2において縮小率に応じた周期のwen信号により間引かれ、FIFOメモリに書き込まれる。そして、このデータは次のライン時に読み出され、FF3においてren信号(=L)により等速度で取り込まれ、FF4を介して出力データhd<9:0> として出力される。
【0039】
(3)拡大時
拡大時にはkakdi信号=Hに設定され、また、図6に示すようにwen=L、ren信号が拡大率に応じた周期に設定される。入力多値データsd<9:0> はFF1により取り込まれ、そのままFF2においてwen信号(=L)により等速度で出力され、FIFOメモリに書き込まれる。そして、このデータは次のライン時にFF3において拡大率に応じた周期のren信号により読み出しが制御されて速度変換され、次いで、上位8ビットのデータsd<7:0> が補間演算回路103に送られて3 次関数コンボリューション法により補間演算が行われる。
【0040】
この拡大時の補間係数は一般的には400dpiをカットオフとするのが望ましい。また、補間を行うときのサンプリング位置データは、変倍RAMから読み出すことにより得られ、読み出しを停止されたデータに対してサンプリング位置を変化させて複数回補間を行うことにより拡大処理が行われる。このようにして補間が行われたデータはFF4を介して出力される。
【0041】
ここで、上記補間係数の選択は、一例としてユーザが操作パネルを介して選択可能に構成することができ、この場合、ユーザは出力画像を見ながら最適な画像になるような補間係数を選択する。目安として縮小時、特に50〜60%以下の時には1/2に帯域が制限された補間係数で演算を行うことによりモアレを効果的に抑制することができる。なお、写真モードにおいて縮小する場合や拡大時には画像のぼけを極力避けるために通常の補間係数を選択する方が望ましい。
【0042】
また、図11に示すように設定倍率に応じて、または図12に示すように設定画質モードと設定倍率に応じてCPU65が自動的に補間係数を選択するように構成することができる。図11では、先ず、操作パネルから変倍率Xを読み込み(ステップS1)、スタートボタンが押されると設定変倍率Xに応じた変倍制御データを変倍RAM102に書き込む(ステップS2)。
【0043】
そして、設定変倍率Xが例えば60%以上の場合には図8に示す係数と式(1)に基づいて補間演算を行い(ステップS3→S4)、他方、設定変倍率Xが60%未満の場合には図10に示す係数と式(2)に基づいて補間演算を行う(ステップS3→S5)。次いでスキャナが読み取りを開始すると変倍RAM102に書き込まれた変倍制御データに基づいて主走査方向が変倍される(ステップS6)。
【0044】
図12は画質モードとして文字モードと写真モードをユーザが選択可能な場合を示している。ここで、文字モードが選択されるとMTF補正が行われ、写真モードが選択されると平滑化が行われる。したがって、MTF補正が行われた画像はモアレが発生しやすく、平滑化が行われた画像を縮小する場合には帯域制限を行わなくてもモアレはそれほど発生しない。そこで、図12に示すように、先ず、操作パネルから変倍率Xを読み込み(ステップS11)、次いで操作パネルから画質モードを読み込み(ステップS12)、次いでスタートボタンが押されると設定変倍率Xに応じた変倍制御データを変倍RAM102に書き込む(ステップS13)。
【0045】
次いで文字モードが設定されているか否かを判別し(ステップS14)、文字モードが設定されていない場合と設定変倍率Xが60%以上の場合には図8に示す係数と式(1)に基づいて補間演算を行い(ステップS15→S16)、他方、文字モードが設定されている場合と設定変倍率Xが60%未満の場合には図10に示す係数と式(2)に基づいて補間演算を行う(ステップS15→S17)。次いでスキャナが読み取りを開始すると変倍RAM102に書き込まれた変倍制御データに基づいて主走査方向が変倍される(ステップS18)。
【0046】
したがって、図8に示す係数と式(1)に基づいて補間演算を行った場合には帯域制限を行わないので原画像に忠実な変倍を得ることができ、他方、図10に示す係数と式(2)に基づいて補間演算を行った場合にはナイキスト周波数の1/2の周波数で帯域制限を行い、不要な高周波成分がカットされるのでモアレを減少することができる。
【0047】
【発明の効果】
以上説明したように請求項1記載の発明は、画像データを間引く前記主走査方向の50%近傍以下の原画像データの縮小変倍時に前記補間演算手段における補間演算を行うための標本化関数のナイキスト周波数の1/2の周波数をカットオフとする周波数特性の標本化関数への切り替えと、帯域制限の実行とを並行して制御するので、縮小変倍時に画像データを間引く場合にモアレのない高画質の変倍画像を得ることができる。
【0051】
請求項記載の発明は、文字モードの場合に標本化関数を切り替えるので、MTF補正されてモアレが発生しやすくなっても、自動的にモアレのない高画質の変倍画像を得ることができる。
【図面の簡単な説明】
【図1】本発明に係る画像変倍装置の一実施例を示すブロック図である。
【図2】図1の画像変倍装置を備えた画像信号処理回路を示すブロック図である。
【図3】図2の画像信号処理回路を備えたデジタル複写機を示す構成図である。
【図4】等倍時のタイミング信号を示す説明図である。
【図5】縮小時のタイミング信号を示す説明図である。
【図6】拡大時のタイミング信号を示す説明図である。
【図7】縮小時の仮想サンプリング点を示す説明図である。
【図8】図7における縮小時の補間係数を示す説明図である。
【図9】縮小時の他の仮想サンプリング点を示す説明図である。
【図10】図9における縮小時の補間係数を示す説明図である。
【図11】設定倍率に基づいて補間演算を切り替える処理を説明するためのフローチャートである。
【図12】設定倍率と画質モードに基づいて補間演算を切り替える処理を説明するためのフローチャートである。
【符号の説明】
7 CCDイメージセンサ
56 変倍回路
65 CPU
101 変倍制御部
102 変倍RAM
103〜105 補間演算回路
FF1〜FF4 フリップフロップ
SEL1〜SEL3 セレクタ[0001]
[Industrial application fields]
The present invention relates to an image scaling device for electrically enlarging or reducing image data in a digital image reading device or the like, and more particularly to an image scaling device using a three-dimensional convolution method.
[0002]
[Prior art]
Conventionally, as this type of image scaling device, for example, as shown in Japanese Patent Laid-Open No. Sho 62-256179, an interpolation operation is performed by a three-dimensional convolution method approximating a sampling function with a cutoff of the Nyquist frequency. Are known. In this method, interpolation is performed when image data is enlarged or when the reduction rate is close to 100%, and thinning is performed when the image data is reduced below 50%.
[0003]
[Problems to be solved by the invention]
However, in the image scaling device using the three-dimensional convolution method as described above, the image data is interpolated at the time of enlargement or reduction at a reduction rate close to 100%, so that high-quality electrical scaling is possible. There is a problem that moire may occur because the image data is thinned out when the reduction is less than about%. This moire often occurs particularly when the original image is a character image or when there is an output difference between the odd-numbered pixel sensor and the even-numbered pixel sensor of the reading sensor.
[0004]
In view of the above-described conventional problems, an object of the present invention is to provide an image scaling device capable of obtaining a high-quality scaled image without moire.
[0005]
[Means for Solving the Problems]
In order to achieve the above object, the first means includes interpolation calculation means for performing interpolation calculation of original image data in the main scanning direction with a sampling function having a frequency characteristic with the Nyquist frequency being cut off, and also in the main scanning direction. In an image scaling device that scales the main image scanning direction of the original image data by controlling the timing of storing the original image data or the interpolated data in the memory, the vicinity of 50% or less in the main scanning direction Switching to a sampling function with a frequency characteristic that cuts off a half of the Nyquist frequency of the sampling function for performing the interpolation calculation in the interpolation calculation means at the time of reduction scaling of the original image data, and band limitation It is characterized by comprising a control means for controlling the execution of the above in parallel.
[0006]
The second means is characterized in that, in the first means, the scaling ratio of the reduction scaling is about 50% or less .
[0007]
The third means is characterized in that, in the first or second means, the control means switches the sampling function when the set image quality mode is the character mode .
[0010]
[Action]
The first means cuts off a frequency that is ½ of the Nyquist frequency of the sampling function for performing the interpolation calculation in the interpolation calculation means at the time of the reduction scaling of the original image data less than 50% in the main scanning direction. Since the switching to the sampling function of the frequency characteristic and the execution of the band limitation are controlled in parallel, it is possible to obtain a high-quality zoomed image without moiré when thinning out image data during zooming .
[0014]
In the second means, the sampling function is switched in the character mode. Therefore, even if MTF correction is made and moire tends to occur, a high-quality zoomed image without moire can be obtained automatically.
[0015]
【Example】
Embodiments of the present invention will be described below with reference to the drawings. 1 is a block diagram showing an embodiment of an image scaling device according to the present invention, FIG. 2 is a block diagram showing an image signal processing circuit including the image scaling device of FIG. 1, and FIG. 3 is an image signal of FIG. 4 is a block diagram showing a digital copying machine provided with a processing circuit, FIG. 4 is an explanatory diagram showing a timing signal at the same magnification, FIG. 5 is an explanatory diagram showing a timing signal at the time of reduction, and FIG. 6 is a timing signal at the time of enlargement. FIG. 7 is an explanatory diagram showing virtual sampling points at the time of reduction, FIG. 8 is an explanatory diagram showing interpolation coefficients at the time of reduction in FIG. 7, and FIG. 9 is an explanatory diagram showing other virtual sampling points at the time of reduction. 10 is an explanatory diagram showing the interpolation coefficient at the time of reduction in FIG. 9, FIG. 11 is a flowchart for explaining processing for switching the interpolation calculation based on the set magnification, and FIG. 12 switches the interpolation calculation based on the set magnification and the image quality mode. To explain the process It is a flow chart.
[0016]
First, the configuration of a digital copying machine to which the image scaling device of this embodiment is applied will be described with reference to FIG. The document placed on the contact glass 1 is illuminated by the light source 2, the reflected light is reflected by the first mirror 3, the second mirror 4, and the third mirror 5, and the light receiving surface of the CCD line image sensor 7 by the lens 6. The original image is read after being imaged. The light source 2 and the first mirror 3 are mounted on the traveling body 8, and the second mirror 4 and the third mirror 5 are mounted on the traveling body 9. Then, when the traveling speed ratio between the traveling body 8 and the traveling body 9 is changed, scaling in the sub-scanning direction is performed.
[0017]
The image signal read in this way is processed by the circuits shown in FIGS. 1 and 2, and then laser light modulated in accordance with the image data is emitted from the laser diode (LD) 17. This laser light is guided to the surface of the photoconductor 20 by an optical system such as the f-θ lens 18 and a latent image is formed on the surface of the photoconductor 20. The latent image is developed with toner by the developing roller 21, the toner image is transferred onto the transfer paper by the transfer charger 28, and the residual toner on the photoconductor 20 is removed by the cleaning unit 32. The transfer paper is fed from a paper feed tray 24, 25 or the like by a paper feed roller 27, and after the toner image is transferred by a transfer charger 28, it is separated from the surface of the photoreceptor 20 by a separation charger 29, and the toner image is fixed to a fixing unit. After fixing by 31, the paper is discharged onto a paper discharge tray 33.
[0018]
Next, the configuration of the image signal processing circuit will be described with reference to FIG. An analog image signal read by the CCD line image sensor 7 is given an appropriate gain by a VPU (Video Processing Unit) 41 and then A / D converted, and is 8 bits (256 gradations) synchronized with the clock CK1. Digital data DATA0 to 7 is applied to an IPU (Image Processing Unit) 50. Here, a signal CCDSTN for determining the readout timing of the CCD line image sensor 7 and a clock CK1 of 10 MHz are applied to the VPU 41 from the timing generator 51 in the IPU 50.
[0019]
The data DATA0-7 applied to the IPU 50 are applied to the zoom circuit 56 of this embodiment via the black offset correction circuit 52, the shading correction circuit 53, the MTF correction circuit 54, and the γ correction circuit 55, as will be described later. After scaling in the main scanning direction, it is applied to the image quality processing circuit 57. Here, the black offset correction is a process of subtracting the black level of the dark current of the CCD 7 from the data DATA0-7. In the shading correction, in order to remove the unevenness of the light amount of the light source 2 in the main scanning direction and the sensitivity unevenness of each pixel of the CCD 7, a white plate having a uniform density in the main scanning direction is read and stored, before starting scanning of the document. This is a process of dividing the data DATA0 to 7 by the data.
[0020]
The MTF correction is a process for correcting optical frequency degradation or the like with a two-dimensional spatial filter, and the γ correction is a process for correcting the γ characteristic of the scanner shown in FIG. In the image quality processing circuit 57, image processing is performed by the character processing unit 58, the error diffusion unit 59, and the dither processing units 60 and 61, which are output to the GAVD 63 as the image data SDT0 to 7, and the speed conversion corresponding to the writing clock is performed. Next, in the LD modulation plate 64 of the printer, the pulse width (in the case of PWM) and the amount of current (in the case of PM) of the current applied to the LD 17 are controlled according to the 8-bit data SDT0-7.
[0021]
The IPU 50 shares a 13-bit wide address bus and an 8-bit wide data bus with the CPU 65 of the main control board, and communicates with the CPU 65 via these buses. The CPU 65 of the main control board controls the scanner and printer, and the IPU 50 shown in FIG. 2 by controlling the motors of the scanner and printer shown in FIG. Reference numeral 62 denotes a ROM.
[0022]
Next, the zoom circuit 56 of this embodiment will be described in detail with reference to FIG. The scaling circuit 56 includes a scaling control unit 101, a scaling RAM 102, input side flip-flops FF1 and FF3, selectors SEL1 to SEL3, an 8-bit multi-value data interpolation operation circuit (hokan256) 103, and a 2-bit data interpolation operation circuit. (Hokan2) 104 and 105 and output side flip-flops FF2 and FF4, and the main scanning direction is scaled by 25% to 512% (in increments of 1%) by interpolation using a cubic function convolution method. Although not shown in the figure, two FIFO memories of 5 k × 8 bits are connected in parallel between the output bout <9: 0> of the output side FF2 and the input bin <9: 0> of the input side FF3. Each FIFO memory is provided with a toggle operation. The signal sd <9: 0> is input data from the γ correction circuit 55 shown in FIG. 2 to the FF1, and the signal hd <9: 0> is output data from the FF4 to the image quality processing circuit 59 shown in FIG.
[0023]
The outputs of the input side FF1 and FF3 and the outputs of the interpolation operation circuits 103 to 105 are selected by the selectors SEL1 to SEL3 based on the kakdai signal from the CPU 65. The output of the selector SEL1 is applied to the FIFO memory via the output side FF2, the output of the selector SEL2 is applied to the interpolation operation circuits 103 to 105, and the output of the selector SEL3 is applied to the image quality processing circuit 57 via the output side FF3. The
[0024]
In actual zoom control, based on zoom control data stored in the zoom RAM 102 from the CPU 65 of the main control board, the zoom control unit 101 interpolates signals smpl <2: 0> representing virtual sampling points. This is performed by applying a read enable signal ren and a write enable signal wen to the FIFO memories, FF2 and FF3. Note that FF2 is attached with wen and FF3 is attached with ren.
[0025]
Selection Referring to zooming RAM102 and scaling control data, scaling RAM102 is 512 × 4 bits configuration, the decimation / overlap control data a n for performing speed conversion (1 bit), the coefficients of the interpolation calculation To store the re-sampling point position data smpl n (3 bits). Data reading and writing to the scaling RAM 102 are performed via the interface of the CPU 65 in the same way as normal commands.
[0026]
Here, the data written in the scaling RAM 102 has different meanings in the enlargement mode and the reduction mode.
[0027]
(1) When the enlargement mode decimation / overlap control data a n (1 bit) is used for duplication control, reads the data of the next pixel from the FIFO memory when a n = H, the reading when a n = L The enable signal en of the FF2, FF3 and FIFO memory is controlled to stop.
[0028]
(2) If the decimation / overlap control data a n of the reduced mode is used for thinning control, a n = write into the FIFO memory when the H but, a n = FF2 so as not to write at the time of L, FF3 and FIFO The memory enable signal en is controlled.
[0029]
The position data smpl n (3 bits) represents the re-sampling point position data in both the enlargement mode and the reduction mode. The scaling control data is transferred to the scaling RAM 102 by directly accessing the data bus and the address bus of the scaling RAM 102. In this case, as described above, in the case of the enlargement mode and the case of the reduction mode, the meaning and number of data differ, and the number of data in the reduction mode is “100”, but that at the time of enlargement is the scaling factor (%) itself. It becomes. Here, in this embodiment, the virtual sampling points of the scaling control data may take a number from 0 to 7 or a number from 0 to 3.
[0030]
Next, operations at the same magnification, reduction, and enlargement will be described in detail.
[0031]
(1) At the same magnification, the kakdi signal is set to L, and as shown in FIG. 4, wen = ren = L. In this case, since wen = ren = L, the speed conversion is not performed, and therefore the operation is the same. That is, the input multivalued data sd <9: 0> is taken in by the FF1, passes through the interpolation calculation circuit 103 without being subjected to interpolation processing, and is written in the FIFO memory at a constant speed by the wen signal (= L) in the FF2. This data is read at the time of the next line, is fetched at a constant speed by the ren signal (= L) in FF3, and is output as output data hd <9: 0> via FF4.
[0032]
(2) At the time of reduction, the kakdi signal is set to L, and as shown in FIG. 5, wen is set to a period corresponding to the reduction ratio, ren = L. The input multivalued data sd <9: 0> is taken in by FF1, and the upper 8-bit sd <7: 0> is sent to the interpolation operation circuit 103, where interpolation calculation is performed by a cubic function convolution method.
[0033]
In this case, as shown in FIG. 7, the virtual sampling point X includes a position smpl (0 to 7) obtained by dividing the pixel into eight equal parts, and data S (n-1) and S (n ), S (n + 1), S (n + 2) and the coefficients h (−1), h (0), h (1), h (2) and the following expression (1) shown in FIG. Is calculated by
[0034]
Figure 0003692160
The sampling position in the case of performing this interpolation is obtained by reading the scaling control data into the scaling RAM 102 in advance. In addition, this interpolation calculation is performed with a sampling function having a cutoff of 400 dpi. Therefore, a high-precision interpolation calculation is performed at the time of reduction or enlargement close to the same magnification, and high-quality electric conversion is performed. Double is possible.
[0035]
By the way, if one pixel is thinned out from about 2 pixels at the time of reduction, particularly at a magnification of around 50%, a frequency component exceeding the Nyquist frequency (around 200 dpi) determined by the sampling density is included in the original image. May occur. Such frequency components frequently appear in the read data of the scanner due to the difference between the even and odd pixels of the CCD 7.
[0036]
For this reason, the present invention is configured to perform interpolation using a sampling function with a cutoff of 200 dpi. As shown in FIG. 9, the interpolation calculation in this case is performed by dividing the pixel into four equal positions smpl (0-3) and data S (n-3), S of each of the four pixels before and after the virtual sampling point X. (N-2), S (n-1), S (n), S (n + 1), S (n + 2), S (n + 3), S (n + 4), and the coefficient h (-3) shown in FIG. Calculated by performing a convolution operation according to the following equation (2) with h (-2), h (-1), h (0), h (1), h (2), h (3), h (4) Is done.
[0037]
Figure 0003692160
Similarly, the sampling position X in the case of performing this interpolation is obtained by rewriting and reading the scaling control data written in the scaling RAM 102. In addition, this interpolation calculation is performed using a sampling function with a cutoff of 200 dpi. Therefore, main scanning scaling is performed while limiting the bandwidth, so that moire during reduction can be reduced.
[0038]
The data interpolated in this way is thinned out by a wen signal having a period corresponding to the reduction ratio in the FF 2 and written into the FIFO memory. Then, this data is read at the next line, taken in at a constant speed by the ren signal (= L) in FF3, and output as output data hd <9: 0> through FF4.
[0039]
(3) At the time of enlarging, kakdi signal = H is set, and as shown in FIG. 6, wen = L and the ren signal are set to a period corresponding to the enlarging rate. The input multi-value data sd <9: 0> is taken in by FF1, and is output as it is at a constant speed by the wen signal (= L) in FF2 and written in the FIFO memory. In the next line, the data is read out in the FF 3 by the ren signal having a period corresponding to the enlargement ratio, and the speed is converted. Then, the upper 8-bit data sd <7: 0> is sent to the interpolation operation circuit 103. Interpolation is performed by the cubic function convolution method.
[0040]
It is generally desirable that the interpolation coefficient at the time of enlargement is cut off at 400 dpi. Further, the sampling position data when performing interpolation is obtained by reading from the scaling RAM, and the enlargement process is performed by performing interpolation a plurality of times by changing the sampling position with respect to the data for which reading has been stopped. The data subjected to interpolation in this way is output via FF4.
[0041]
Here, as an example, the selection of the interpolation coefficient can be configured so that the user can select it via the operation panel. In this case, the user selects an interpolation coefficient that makes an optimal image while viewing the output image. . As a guide, moire can be effectively suppressed by performing computation with an interpolation coefficient whose bandwidth is limited to ½ at the time of reduction, particularly 50 to 60% or less. Note that it is desirable to select a normal interpolation coefficient in order to avoid blurring of the image as much as possible when reducing or enlarging in the photo mode.
[0042]
Further, the CPU 65 can be configured to automatically select the interpolation coefficient in accordance with the set magnification as shown in FIG. 11 or in accordance with the set image quality mode and the set magnification as shown in FIG. In FIG. 11, first, the magnification X is read from the operation panel (step S1), and when the start button is pressed, the magnification control data corresponding to the set magnification X is written into the magnification RAM 102 (step S2).
[0043]
When the set scaling factor X is 60% or more, for example, an interpolation calculation is performed based on the coefficient shown in FIG. 8 and the equation (1) (step S3 → S4). On the other hand, the setting scaling factor X is less than 60%. In this case, an interpolation calculation is performed based on the coefficient shown in FIG. 10 and the equation (2) (step S3 → S5). Next, when the scanner starts reading, the main scanning direction is scaled based on the scaling control data written in the scaling RAM 102 (step S6).
[0044]
FIG. 12 shows a case where the user can select the character mode and the photo mode as the image quality mode. Here, MTF correction is performed when the character mode is selected, and smoothing is performed when the photo mode is selected. Therefore, moire is likely to occur in an image subjected to MTF correction, and moire does not occur so much even if band limitation is not performed when a smoothed image is reduced. Therefore, as shown in FIG. 12, first, the magnification ratio X is read from the operation panel (step S11), then the image quality mode is read from the operation panel (step S12). The variable magnification control data is written in the variable magnification RAM 102 (step S13).
[0045]
Next, it is determined whether or not the character mode is set (step S14). When the character mode is not set and when the set scaling factor X is 60% or more, the coefficient and the equation (1) shown in FIG. On the other hand, interpolation is performed (steps S15 → S16). On the other hand, when the character mode is set and when the set magnification X is less than 60%, the interpolation is performed based on the coefficient shown in FIG. 10 and equation (2). Calculation is performed (step S15 → S17). Next, when the scanner starts reading, the main scanning direction is scaled based on the scaling control data written in the scaling RAM 102 (step S18).
[0046]
Therefore, when the interpolation calculation is performed based on the coefficient shown in FIG. 8 and the equation (1), the band limitation is not performed, so that a magnification that is faithful to the original image can be obtained, while the coefficient shown in FIG. When the interpolation calculation is performed based on Expression (2), band limitation is performed at a frequency that is ½ of the Nyquist frequency, and unnecessary high frequency components are cut, so that moire can be reduced.
[0047]
【The invention's effect】
Invention, specimens for performing an interpolation operation in the interpolation operation unit image data when reduction zooming before Symbol main scanning direction of around 50% or less of the original image data rather thinning of claim 1, wherein, as described above Since the switching to the sampling function of the frequency characteristic that cuts off the half of the Nyquist frequency of the conversion function and the execution of the band limitation are controlled in parallel, the image data is thinned out at the time of zooming A high-quality zoomed image without moiré can be obtained.
[0051]
According to the second aspect of the present invention, since the sampling function is switched in the character mode, a high-quality zoomed image without moire can be automatically obtained even if moire is likely to occur due to MTF correction. .
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of an image scaling device according to the present invention.
2 is a block diagram showing an image signal processing circuit including the image scaling device of FIG. 1. FIG.
3 is a block diagram showing a digital copying machine provided with the image signal processing circuit of FIG. 2. FIG.
FIG. 4 is an explanatory diagram showing a timing signal at the same magnification.
FIG. 5 is an explanatory diagram showing timing signals at the time of reduction.
FIG. 6 is an explanatory diagram showing a timing signal at the time of enlargement.
FIG. 7 is an explanatory diagram showing virtual sampling points at the time of reduction.
FIG. 8 is an explanatory diagram showing interpolation coefficients at the time of reduction in FIG.
FIG. 9 is an explanatory diagram showing another virtual sampling point at the time of reduction.
10 is an explanatory diagram showing interpolation coefficients at the time of reduction in FIG. 9. FIG.
FIG. 11 is a flowchart for explaining a process of switching interpolation calculation based on a set magnification.
FIG. 12 is a flowchart for explaining processing for switching interpolation calculation based on a set magnification and an image quality mode.
[Explanation of symbols]
7 CCD image sensor 56 Scaling circuit 65 CPU
101 Scaling control unit 102 Scaling RAM
103 to 105 Interpolation operation circuits FF1 to FF4 Flip-flops SEL1 to SEL3 selector

Claims (2)

主走査方向の原画像データの補間演算を、ナイキスト周波数をカットオフとする周波数特性の標本化関数で行う補間演算手段を備えると共に、主走査方向の原画像データまたは前記補間演算されたデータをメモリに対して蓄積するタイミングを制御することにより原画像データの主走査方向を変倍する画像変倍装置において、
前記主走査方向の原画像データの50%近傍以下の縮小変倍時に前記補間演算手段における補間演算を行うための標本化関数のナイキスト周波数の1/2の周波数をカットオフとする周波数特性の標本化関数への切り替えと、帯域制限の実行とを並行して制御する制御手段を備えたことを特徴とする画像変倍装置。
Interpolation calculation means for performing interpolation calculation of original image data in the main scanning direction with a sampling function having a frequency characteristic with a Nyquist frequency cut off, and storing the original image data in the main scanning direction or the data subjected to the interpolation calculation In an image scaling device that scales the main scanning direction of the original image data by controlling the timing of storage,
A sample of frequency characteristics in which a half of the Nyquist frequency of the sampling function for performing the interpolation calculation in the interpolation calculation means at the time of reduction scaling near 50% or less of the original image data in the main scanning direction is cut off An image scaling device comprising control means for controlling in parallel the switching to the conversion function and the execution of the band limitation.
前記制御手段は、設定画質モードが文字モードの場合に標本化関数を切り替えることを特徴とする請求項1記載の画像変倍装置。2. The image scaling device according to claim 1 , wherein the control unit switches the sampling function when the set image quality mode is a character mode .
JP06437395A 1995-03-23 1995-03-23 Image scaling device Expired - Lifetime JP3692160B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06437395A JP3692160B2 (en) 1995-03-23 1995-03-23 Image scaling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06437395A JP3692160B2 (en) 1995-03-23 1995-03-23 Image scaling device

Publications (2)

Publication Number Publication Date
JPH08265562A JPH08265562A (en) 1996-10-11
JP3692160B2 true JP3692160B2 (en) 2005-09-07

Family

ID=13256436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06437395A Expired - Lifetime JP3692160B2 (en) 1995-03-23 1995-03-23 Image scaling device

Country Status (1)

Country Link
JP (1) JP3692160B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11298727A (en) * 1998-02-16 1999-10-29 Sumitomo Metal Ind Ltd Magnification and reduction method for digital image and circuit thereof
CN111667459B (en) * 2020-04-30 2023-08-29 杭州深睿博联科技有限公司 Medical sign detection method, system, terminal and storage medium based on 3D variable convolution and time sequence feature fusion

Also Published As

Publication number Publication date
JPH08265562A (en) 1996-10-11

Similar Documents

Publication Publication Date Title
JPH11261809A (en) Digital copying machine
US5535007A (en) Method and device for adjusting magnification of image
JP2003533917A (en) Scanner with paperless scaling mode
EP1542447A1 (en) Image data processing device, image data processing method, program, recording medium, and image reading device
JP2003219116A (en) Image processing device and its controlling method
JPS6346065A (en) Image magnification changing method
JP3237616B2 (en) Image processing apparatus, image processing method, and recording medium
JP3692160B2 (en) Image scaling device
US5729357A (en) Image processing apparatus
JP2829931B2 (en) Image processing device
JPH1098612A (en) Image processor, image processing method and image forming device
JP2592824B2 (en) Image signal processing device
JP4068769B2 (en) Image processing apparatus and tilt correction method thereof
JP3784537B2 (en) Image processing device
EP1241864A1 (en) Image processing device and image reading apparatus using the image processing device
JP3756207B2 (en) Image forming apparatus
JP2005229646A (en) Image processing apparatus
JP3880793B2 (en) Image processing apparatus and image forming apparatus
JPH11355575A (en) Image processor
JP2575301B2 (en) Image processing device
JP2831573B2 (en) Pseudo halftone image processing system
JP2003533918A (en) Scanner with prepress mode
JP3400874B2 (en) Image forming device
JPH10276328A (en) Image processing unit
JP2007194955A (en) Image processing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20031224

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040223

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041005

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041206

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050620

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

Free format text: PAYMENT UNTIL: 20080624

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090624

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090624

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100624

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110624

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110624

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120624

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130624

Year of fee payment: 8

EXPY Cancellation because of completion of term