JP4063971B2 - Image processing method and apparatus - Google Patents
Image processing method and apparatus Download PDFInfo
- Publication number
- JP4063971B2 JP4063971B2 JP26130698A JP26130698A JP4063971B2 JP 4063971 B2 JP4063971 B2 JP 4063971B2 JP 26130698 A JP26130698 A JP 26130698A JP 26130698 A JP26130698 A JP 26130698A JP 4063971 B2 JP4063971 B2 JP 4063971B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- image processing
- processing
- image data
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000003672 processing method Methods 0.000 title claims description 15
- 238000012545 processing Methods 0.000 claims description 175
- 238000000034 method Methods 0.000 claims description 61
- 230000008569 process Effects 0.000 claims description 14
- 238000013461 design Methods 0.000 claims description 4
- 230000007423 decrease Effects 0.000 claims description 3
- 230000003247 decreasing effect Effects 0.000 claims description 3
- 238000012937 correction Methods 0.000 description 29
- 230000015654 memory Effects 0.000 description 28
- 238000006243 chemical reaction Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 12
- 230000010354 integration Effects 0.000 description 9
- 239000000463 material Substances 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000001629 suppression Effects 0.000 description 4
- 238000009825 accumulation Methods 0.000 description 3
- 238000009792 diffusion process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000009499 grossing Methods 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 230000035945 sensitivity Effects 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 2
- 229920006395 saturated elastomer Polymers 0.000 description 2
- GGCZERPQGJTIQP-UHFFFAOYSA-N sodium;9,10-dioxoanthracene-2-sulfonic acid Chemical compound [Na+].C1=CC=C2C(=O)C3=CC(S(=O)(=O)O)=CC=C3C(=O)C2=C1 GGCZERPQGJTIQP-UHFFFAOYSA-N 0.000 description 2
- 230000032258 transport Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000003705 background correction Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000010191 image analysis Methods 0.000 description 1
- 230000001771 impaired effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002250 progressing effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling 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)
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、画像処理方法および装置に係り、特に、画像データの補間により画像の拡縮を行う電子変倍処理を含む画像処理技術に関する。
【0002】
【従来の技術】
従来、ネガフィルム、リバーサルフィルム等の写真フィルム原稿に撮影された画像の、印画紙等の感光材料への焼き付けは、フィルム原稿の画像を感光材料に投影して感光材料を面露光する、いわゆる直接露光によって行われていた。
【0003】
これに対し、近年では、デジタル露光を利用する焼き付けシステム、すなわち、フィルムに記録された画像情報を光電的に読み取って、読み取った画像をデジタル信号とした後、種々の画像処理を施して記録用の画像情報とし、この画像情報に応じて変調した記録光によって、感光材料を走査露光して画像(潜像)を記録し、現像してプリントとするデジタルプリントシステムが提案され、このシステムを具体的に実施するデジタルフォトプリンタの開発が進んでいる。
【0004】
デジタルプリントシステムでは、複数画像の合成や画像の分割等の編集や文字と画像との編集等のプリント画像の編集レイアウトや、色/濃度調整、電子変倍、輪郭の鮮鋭度強調(シャープネス強調)等の各種の画像処理も自由に行うことができ、用途に応じて自由に編集および画像処理した仕上がりプリントを出力することができる。また、従来の直接露光によるプリントシステムでは、濃度分解能、空間分解能、色/濃度再現性等の点で、フィルム等に記録されている画像濃度情報をすべて再生することはできないが、デジタルフォトプリンタによれば、フィルムに記録されている画像濃度情報をほぼ100%再生したプリントが出力可能である。
【0005】
このとき、出力画像のサイズに応じて、画像を拡縮する必要がある。あるいは特にその画像の一部を拡大して再生する場合もある。このようなとき、電子変倍処理が行われる。電子変倍により画像を拡大する場合、通常は、補間により画像データを増やすようにしている。そのため、従来様々な補間方法が提案されている。
「画像解析ハンドブック」(東京大学出版会)には、各種の補間方法が記載されている。例えば、ニヤレストネイバー(Nearest Neighbor) 補間、バイリニヤ(bi-linear)補間、3次畳み込み(cubic convolution あるいはcubic sincともいう) 補間等である。
【0006】
ニヤレストネイバー補間法とは、補間したい点に最も近いサンプル点の画像データを、求める画像データとするものである。すなわち、図8に示すように、補間点P(u,v)に対して、格子点P(i,j)に対する画像データをPij、実数xの整数部分を[x](ガウス記号)で表すとき、r=[u+0.5]、s=[v+0.5]として、求める画像データPを、P=Prsとする。いま、i=[u]、j=[v]とすると、図の場合、r=i、s=j+1となる。
【0007】
バイリニヤ補間法とは、補間したい点の周囲のサンプル点4点の画像データを用いて、双一次式により、求める画像データを算出するものである。すなわち、図9に示すように、補間点P(u,v)の周囲のサンプル点4点の画像データ、Pij、Pi+1,j 、Pi,j+1 、Pi+1,j+1 を用いて、次式により求める画像データPを算出する。
P=(1−a)・(1−b)・Pij+a・(1−b)・Pi+1,j
+(1−a)・b・Pi,j+1 +a・b・Pi+1,j+1
【0008】
3次畳み込み補間法(cubic sinc) とは、補間したい点の周囲のサンプル点16点の画像データを用いて、3次畳み込み関数により、求める画像データを算出するものである。すなわち、図10に示すように、補間点の周囲のサンプル点16点の画像データPij(i=1〜4,j=1〜4)を用いて、次式により、求める画像データPを算出する。
【数1】
ここで、xi(i=1〜4)およびyi(i=1〜4)は、それぞれ次のように計算される。
x1=1+(u−[u])
x2=u−[u]
x3=1−(u−[u])
x4=2−(u−[u])
y1=1+(v−[v])
y2=v−[v]
y3=1−(v−[v])
y4=2−(v−[v])
また、fは次の式によって定義される関数f(t)である。
【数2】
【0009】
また、これら以外にも、3次スプライン(cubic spline) 補間や3次Bスプライン(cubic B-spline) 補間等が知られている。
3次スプライン補間も上記3次畳み込み補間(cubic sinc) と同様、補間点の周囲のサンプル点16点の画像データを用いるものである。例えば、1次元方向において、4点Pk-1 、Pk 、Pk+1 、Pk+2 のうちPk とPk+1 の間に補間点P’があるとき、次の3次スプライン補間演算式によって、求める画像データP’が算出される。
P’=ak-1 ・Pk-1 +ak ・Pk +ak+1 ・Pk+1 +ak+2 ・Pk+2
ここで、補間係数ai は、例えば次の式で与えられる。
ak-1 =−(α/2)・t・(t−1)2
ak =(2−α/2)・t3 −(3−α/2)・t2 +1
ak+1 =(α/2−2)・t3 +(3−α)・t2 +(α/2)・t
ak+2 =(α/2)・t2 ・(t−1)
ただし、αは補間画像データに基づいて算出される画像データの鮮鋭度を決定するパラメータであり、t(0<t<1)は原画像データの格子間隔を1とし、画素Pk を基準としたときの補間点P’の画素Pk+1 方向への位置を示す。
実際の画像は、画素が2次元に配列されて形成されているため、上記補間式に用いたパラメータtを、その配列方向のうち、一方向についてはtx とし、他の方向についてはty に置き換えて、各方向ごとの補間係数を定めて計算が行われる。
また、3次Bスプライン補間法は、上記補間係数ai を変えたものである。
【0010】
また、特開平9−321981号公報においては、補間点が、原画像データの変化が急峻な画像のエッジ部に属するか、または変化が緩慢な画像の平坦部に属するかを判定し、その結果によって補間方法を切り換えるようにしたものが開示されている。
【0011】
【発明が解決しようとする課題】
しかしながら、従来のように、画像データがエッジ部か平坦部のどちらに属するかによって補間方法を切り換える方法は、それなりに効果はあるが、エッジの延びる方向の判定が難しく、エッジ部の検出精度があまり高くない場合には、それほどの効果を上げる事はできない。また、エッジ部を正確に検出できたとしても、単に、エッジ部か平坦部か、という相違に応じて補間方法を切り換えるだけでは、最適な再生画像を得ることはできないという問題があった。
【0012】
本発明は、前記従来の問題に鑑みてなされたものであり、絵柄、画像出力先、画像処理速度、画像使用用途等に応じて最適な再生画像を得ることのできる画像処理方法および装置を提供することを課題とする。
【0013】
【課題を解決するための手段】
前記課題を解決するために、本発明は、所定の間隔で格子状に配列された原画像データの画素数を増減し、画像を拡縮する電子変倍処理を行った後、シャープネス強調処理を行い出力画像とする画像処理方法であって、絵柄、画像の出力先、画像処理速度または画像の使用用途に応じた最適な補間方法を選択して電子変倍処理を行い、その後に行われる前記シャープネス強調処理の強さを、前記選択され実行された補間方法の種類によって決定されたレベルに変更することを特徴とする画像処理方法を提供する。
【0014】
また、前記画像の出力先は、画像が出力される記録媒体を含むことが好ましい。
【0016】
また、前記シャープネス処理の強さは、補間方法が3次スプライン法の場合には、補間方法が3次畳み込み法の場合より強められることが好ましい。
【0017】
同様に前記課題を解決するために、本発明は、所定の間隔で格子状に配列された原画像データの画素数を増減し、画像を拡縮する電子変倍処理を行う電子変倍処理手段と、該電子変倍処理を行った後、シャープネス強調処理を行い、出力画像とする画像処理手段とを有する画像処理装置であって、前記電子変倍処理手段は、絵柄、画像の出力先、画像処理速度または画像の使用用途に応じた最適な補間方法を選択して電子変倍処理を行い、前記画像処理手段は、前記電子変倍処理後に行われる前記シャープネス強調処理の強さを、前記選択され実行された補間方法の種類によって決定されたレベルに変更することを特徴とする画像処理装置を提供する。
【0020】
【発明の実施の形態】
以下、本発明に係る画像処理方法および装置について、添付の図面に示される好適実施例を基に、詳細に説明する。
【0021】
図1は、本発明の一実施形態に係る、画像処理方法を実施する画像処理装置を適用するデジタルフォトプリンタの概略を示すブロック図である。
図1に示すデジタルフォトプリンタ(以下、フォトプリンタという)10は、フィルムFに撮影された画像を光電的に読み取るスキャナ(画像読取装置)12と、このスキャナ12で読み取られた画像データの電子変倍処理や、画像データのエッジ部の検出やシャープネス強調(鮮鋭度強調)、平滑化処理(粒状抑制)などの画像処理やフォトプリンタ10全体の操作および制御等を行う画像処理装置14と、この画像処理装置14から出力された画像データに応じて変調した光ビームで感光材料(印画紙)を画像露光し、現像処理して(仕上がり)画像をプリントとして出力する画像記録装置16と、を有する。
また、画像処理装置14には、様々な条件の入力、設定、処理の選択や指示、色/濃度補正などの指示等を入力するためのキーボード18aおよびマウス18bを有する操作系18と、スキャナ12で読み取られた画像、各種の操作指示、様々な条件の設定/登録画面等を表示するモニタ20が接続される。
【0022】
スキャナ12は、フィルムF等に撮影された画像を1コマずつ光電的に読み取る装置で、光源22と、可変絞り24と、フィルムFに入射する読取光をフィルムFの面方向で均一にする拡散ボックス26と、フィルムFのキャリア28と、結像レンズユニット30と、R(赤)、G(緑)およびB(青)の各色画像濃度の読取に対応する3ラインCCDセンサを有するイメージセンサ32と、アンプ(増幅器)33と、A/D(アナログ/デジタル)変換器34とを有する。
【0023】
フォトプリンタ10においては、スキャナ12の本体に装着自在な専用のキャリア28が、新写真システム(Advanced Photo System)や135サイズのネガ(あるいはリバーサル)フィルム等のフィルムFの種類やサイズ、ストリップスやスライド等のフィルムの形態等に応じて用意されており、キャリア28の交換によって、各種のフィルムや処理に対応することができる。フィルムに撮影され、プリント作成に供される画像(コマ)は、このキャリア28によって所定の読取位置に搬送される。
また、周知のように、新写真システムのフィルムには、磁気記録媒体が形成され、カートリッジIDやフィルムサイズ、ISO感度等が記録されており、また、撮影時や現像時等に、撮影や現像日時、露出レベル、カメラや現像機の機種等の各種のデータが記録可能である。新写真システムのフィルム(カートリッジ)に対応するキャリア28には、この磁気情報の読取手段が配置されており、フィルムを読取位置に搬送する際に磁気情報を読み取り、これらの各種の情報が画像処理装置14に送られる。
【0024】
このようなスキャナ12において、フィルムFに撮影された画像を読み取る際には、光源22から射出され、可変絞り24および拡散ボックス26によって光量調整された均一な読取光が、キャリア28によって所定の読取位置に位置されたフィルムFに入射して、透過することにより、フィルムFに撮影された画像を担持する投影光を得る。
なお、カラー画像信号は、このようにフィルムを透過した光を読み取ることによって入力されるものには限定されず、反射原稿でもよいし、あるいはデジタルカメラによって撮影された画像を用いてもよい。
【0025】
図示例のキャリア28は、24枚取りの135サイズのフィルムや新写真システムのカートリッジ等の、長尺なフィルムF(ストリップス)に対応するものである。
フィルムFは、このキャリア28によって読取位置に位置されて、RGBの3ラインCCDセンサの延在方向である主走査方向と直交する副走査方向に搬送されつつ、読取光を入射される。これにより、結果的に、フィルムFが2次元的にスリット走査され、フィルムFに撮影された各コマの画像が読み取られる。
【0026】
フィルムFの投影光は、結像レンズユニット30によってイメージセンサ32の受光面に結像される。
イメージセンサ32から出力されたR、GおよびBの各出力信号は、アンプ33で増幅されて、A/D変換器34に送られ、A/D変換器34において、それぞれ、例えば12bitのRGBデジタル画像データに変換された後、画像処理装置14に出力される。
【0027】
なお、スキャナ12においては、フィルムFに撮影された画像を読み取るに際し、低解像度で読み取るプレスキャン(第1回目の画像読取)と、出力画像の画像データを得るためのファインスキャン(第2回目の画像読取)との2回の画像読取を行う。
ここで、プレスキャンは、スキャナ12が対象とするフィルムFの全ての画像を、イメージセンサ32が飽和することなく読み取れるように、予め設定されたプレスキャン読取条件で行われる。
一方、ファインスキャンは、プレスキャンデータから、その画像(コマ)の最低濃度よりも若干低い濃度でイメージセンサ32が飽和するように、各コマ毎に設定されたファインスキャンの読取条件で行われる。なお、プレスキャンおよびファインスキャン出力画像信号は、解像度および出力画像信号レベルが異なる以外は、基本的に同様な画像データである。
【0028】
なお、フォトプリンタ10に用いられるスキャナ12は、このようなスリット走査読取を行うものに限定されず、1コマのフィルム画像の全面を一度に読み取る面状読取を行うものであってもよい。
この場合には、例えばエリアCCDセンサなどのエリアセンサを用い、光源22とフィルムFとの間にR、GおよびBの各色フィルタの挿入手段を設け、光源22からの射出光の光路に挿入して、色フィルタを透過した読取光をフィルムF全面に照射して、透過光をエリアCCDセンサに結像させてフィルム全画像を読み取ることを、R、GおよびBの各色フィルタを切り換えて順次行うことで、フィルムFに撮影された画像を3原色に分解して読み取る。
【0029】
前述したように、スキャナ12から出力されるデジタル画像データ信号は、本発明の画像処理方法を実施する画像処理装置14に出力される。
図2に、この画像処理装置(以下、処理装置という。)14のブロック図を示す。
ここで、処理装置14は、スキャナ補正部36、LOG変換器38、プレスキャン(フレーム)メモリ40、ファインスキャン(フレーム)メモリ42、プレスキャンデータ処理部44、本発明の特徴とする電子変倍処理およびその他の各種画像処理を行うファインスキャンデータ処理部46および条件設定部48を有する。
なお、図2は主に画像処理関連の部分を示すものであり、処理装置14には、これ以外にも、処理装置14を含むフォトプリンタ10全体の制御や管理を行うCPU、フォトプリンタ10の作動等に必要な情報を記録するメモリ等が配設され、また、操作系18やモニタ20は、このCPU等(CPUバス)を介して各部分に接続される。
【0030】
スキャナ12から処理装置14に入力されたR、GおよびBの画像信号、例えば12bitのデジタル画像データは、スキャナ補正部36に入力される。
スキャナ補正部36は、スキャナ12のイメージセンサ32のRGB3ラインCCDセンサに起因する、RGBデジタル画像データの画素毎の感度ばらつきや暗電流を補正するためにDCオフセット補正、暗時補正、欠陥画素補正、シェーディング補正等の読取画像データのデータ補正を行うものである。スキャナ補正部36で画素毎の感度ばらつきや暗電流の補正処理等が施されたデジタル画像信号は、LOG変換処理器に出力される。
LOG変換器38は、対数変換処理してデジタル画像データを階調変換してデジタル画像濃度データに変換するものであって、例えば、ルックアップテーブル(LUT)を用いて、スキャナ補正部36で補正された12bitのデジタル画像データを、例えば10bit(0〜1023)のデジタル画像濃度データに変換する。
【0031】
LOG変換器38で変換されたデジタル画像濃度データは、プレスキャン画像データであればプレスキャンメモリ40に、ファインスキャン画像データであればファインスキャンメモリ42に、それぞれ記憶(格納)される。
プレスキャンメモリ40は、スキャナ12によるフィルムFのプレスキャンによって得られ、各種のデータ補正および対数変換処理が施されたフィルムFの1コマ全部の低解像度画像濃度データをRGBの各色毎に格納または記憶するためのフレームメモリである。プレスキャンメモリ40は、少なくともフィルムFの1コマのRGB3色の画像濃度データを格納できる容量が必要であるが、複数コマ分の画像濃度データを格納できる容量を持つものであってもよいし、1コマ分の容量のメモリを多数備えるものであってもよい。
プレスキャンメモリ40に記憶されたプレスキャン画像データは、プレスキャンデータ処理部44に読みだされる。
【0032】
一方、ファインスキャンメモリ42は、スキャナ12によるフィルムFのファインスキャンによって得られ、各種のデータ補正および対数変換処理が施されたフィルムFの1コマ全部の高解像度画像濃度データをRGBの各色毎に格納または記憶するためのフレームメモリである。
ファインスキャンメモリ42に記憶されたファインスキャン画像データは、ファインスキャンデータ処理部46に読みだされる。
【0033】
プレスキャンメモリ40に記憶されたプレスキャン画像データに、モニタ20に表示するのに必要な種々の画像処理を施すプレスキャンデータ処理部44は、画像処理部50と、画像データ変換部52とを有する。
ここで、画像処理部50は、後述する条件設定部48が設定した画像処理条件に従って、スキャナ12によって読み取られ、プレスキャンメモリ40に記憶された画像データに、所望の画質で、後述するモニタ20のCRT表示画面にカラー画像が再生可能なように、ルックアップテーブル(以下、LUTで代表させる)やマトリックス(以下、MTXで代表させる)演算により、階調補正、色変換、濃度変換等の所定の画像処理を施すためのものである。
画像データ変換部52は、画像処理部50によって処理された画像データを、モニタ20の解像度に合わせるために必要に応じて間引いて、同様に、3D(3次元)LUT等を用いて、モニタ20による表示に対応する画像データに変換して、モニタ20に表示させるためのものである。
なお、画像処理部50における処理条件は、後述する条件設定部48で設定される。
【0034】
一方、ファインスキャンメモリ42に記憶されたファインスキャン画像データに、画像記録装置16からカラープリントとして出力するのに必要な種々の画像処理および本発明の画像処理方法を実行するファインスキャンデータ処理部46は、画像処理部54と、画像データ変換部56とを有する。
ここで、画像処理部54は、後述する条件設定部48が設定した画像処理条件に従って、スキャナ12によって読み取られファインスキャンメモリ42に記憶された画像データに所定の画像処理を施し、カラープリントとして所望の濃度、階調および色調で、カラーペーパ上に、最適、高品質な画像を再生可能とするものである。このため画像処理部54は、画像データに対して、LUT,MTX演算器、ローパスフィルタ、加減算器などにより、色バランス調整、階調調整、色調整、濃度調整、彩度調整、電子変倍やシャープネス強調(輪郭強調;鮮鋭化)などの種々の画像処理を施す。なお、その詳細については後述する。
【0035】
画像データ変換部56は、画像処理部54によって処理された画像データを、例えば3DLUT等の標準階調ルックアップテーブルを用いて、画像記録装置16による画像記録に対応する画像データに変換して、画像記録装置16に供給する。
画像記録装置16は、ファインスキャンデータ処理部46から出力される画像データに基づいて、カラー画像が再現された仕上がりプリントとして出力するためのものである。
【0036】
なお、画像処理部54における処理条件は、条件設定部48で設定される。
条件設定部48は、ファインスキャンデータ処理部46における各種の処理条件を設定する。この条件設定部48は、セットアップ部58、キー補正部60およびパラメータ統合部62を有する。
セットアップ部58は、プレスキャン画像データ等を用いて、ファインスキャンの読取条件を設定してスキャナ12に供給し、また、プレスキャンデータ処理部44およびファインスキャンデータ処理部46の画像処理条件を作成(演算)し、パラメータ統合部62に供給する。
【0037】
具体的には、セットアップ部58は、プレスキャンメモリ40からプレスキャン画像データを読み出し、プレスキャン画像データから、濃度ヒストグラムの作成や、平均濃度、LATD(大面積透過濃度)、ハイライト(最低濃度)、シャドー(最高濃度)等の画像特徴量の算出を行う。
算出した画像特徴量から、その画像の最低濃度よりも若干低濃度でイメージセンサ32が飽和するように、ファインスキャンの読取条件、例えば、光源22の光量、可変絞り24の絞り値、イメージセンサ32の(各RGB3ラインCCDセンサの)蓄積時間等を設定する。なお、ファインスキャンの読取条件は、プレスキャンの読取条件に対して、イメージセンサ32の出力レベルに対応する全ての要素を変更してもよく、前記絞り値等のいずれか1つの要素のみを変更するものでもよく、絞り値と蓄積時間等の複数の要素のみを変更するものでもよい。
さらに、セットアップ部58は、濃度ヒストグラムや画像特徴量と、必要に応じて行われるオペレータによる指示等に応じて、前述の色バランス調整や階調調整等の画像処理条件を設定する。
【0038】
キー補正部60は、キーボード18aや操作系18に設けられたキー(図示せず)によって設定された濃度(明るさ)、色、コントラスト、シャープネス、彩度等の調整量やマウス18bで入力された各種の指示等に応じて、画像処理条件の調整量(例えば、LUTの補正量等)を算出し、パラメータを設定し、パラメータ統合部62に供給するものである。
パラメータ統合部62は、セットアップ部58が設定した画像処理条件を受け取り、供給された画像処理条件を、プレスキャンデータ処理部44の画像処理部50およびファインスキャンデータ処理部46の画像処理部54に設定し、さらに、キー補正部60で算出された調整量に応じて、各部分に設定した画像処理条件を補正(調整)し、あるいは画像処理条件を再設定する。
【0039】
続いて、電子変倍処理、シャープネス強調、粒状抑制等の画像処理を行う、ファインスキャンデータ処理部46の画像処理部54について詳細に説明する。
図3は、画像処理部54の一実施例の概略を示すブロック図である。図に示すように、画像処理部54は、画像データの濃度、色および階調を変換する色濃度階調変換手段64、画像データの彩度を変換する彩度変換手段66、補間により画像データの画素数を変換する電子変倍処理手段68、シャープネス強調や粒状抑制等の各種画像処理を行う画像処理手段70を備えている。
【0040】
画像処理部54において、色濃度階調変換手段64は、LUT等に従って、画像データから濃度データ、色データおよび階調データに変換するものである。また、彩度変換手段66は、色濃度階調変換手段64によって得られた画像データの彩度データをMTX演算等に従って変換するものである。また、電子変倍処理手段68は、画像記録装置16においてカラーペーパに出力するカラー画像のサイズに応じて、かつ出力画素密度に合わせて、画像データを補間したり、間引いたりして、画像データの画素データ数を増減するものである。画像処理手段70は、シャープネス強調や粒状抑制等の画像処理を行う。
【0041】
この電子変倍処理手段68および画像処理手段70における処理は、本発明の特徴とするところであり、後で詳述するように、電子変倍処理手段68における補間方法は、絵柄、画像の出力先、画像処理速度、画像の使用用途に応じて最適な補間方法が選択され、どの補間方法が選択されたかにより画像処理手段70における画像処理および画像処理の程度が変更される。
【0042】
本発明に係る画像処理装置およびこれを用いるデジタルフォトプリンタは、基本的に以上のように構成される。以下、本実施形態の作用を説明する。
【0043】
オペレータがフィルムF(読み取り対象コマ)に対応するキャリア28をスキャナ12に装填し、キャリア28の所定位置にフィルムFをセットし、仕上げ情報や作成するプリントサイズ等の必要な指示を入力した後に、プリントの作成開始を指示する。
これにより、スキャナ12の可変絞り24の絞り値やイメージセンサ32の蓄積時間がプレスキャンの読取条件に応じて設定される。その後、キャリア28がフィルムFをプレスキャンに応じた速度で副走査方向に搬送して、プレスキャンが開始され、フィルムFがスリット走査されて投影光がイメージセンサ32に欠像して、フィルムFに撮影された画像がR、G、Bに分解されて光電的に低解像度で読み取られる。
【0044】
プレスキャンによるイメージセンサ32の出力信号は、アンプ33で増幅されて、A/D変換器34に送られ、デジタル画像データとされた後に、本発明の画像処理装置14に出力される。
画像処理装置14に入力されたデジタル画像データは、スキャナ補正部36でイメージセンサ32の暗電流等の所定の補正を施した後、LOG変換器38に送られ、プレスキャンに対応する濃度範囲で、例えば、濃度Dで4の濃度範囲を10bitのデータに割りつけるように、LUTを用いて変換され、プレスキャン画像データとされ、プレスキャン画像データは、プレスキャンメモリ40に記憶される。
【0045】
プレスキャンメモリ40にプレスキャン画像データが記憶されると、条件設定部48のセットアップ部58がこれを読み出し、濃度ヒストグラムの作成、ハイライトやシャドー等の画像特徴量の算出等を行い、ファインスキャンの読取条件を設定して、スキャナ12に供給し、また、階調調整やグレイバランス調整等の各種の画像処理条件を設定し、パラメータ統合部62に供給する。
画像処理条件を受け取ったパラメータ統合部62は、これをプレスキャンデータ処理部44およびファインスキャンデータ処理部46の所定部分(ハードウエアおよびソフトウエア)に設定する。
【0046】
検定を行う場合には、プレスキャン画像データがプレスキャンデータ処理部44によってプレスキャンメモリ40から読みだされ、画像処理部50において設定された画像処理条件で画像処理され、次いで、画像データ変換部52で変換され、シュミレーション画像としてモニタ20に表示される。
オペレータは、モニタ20の表示を見て、画像すなわち処理結果の確認(検定)を行い、必要に応じてキーボード18aに設定された調整キー等を用いて色、濃度、階調等を調整する。
この調整の入力は、キー補正部60に送られ、キー補正部60は調整入力に応じた画像処理条件の補正量を算出し、これをパラメータ統合部62に送る。パラメータ統合部62は、送られた補正量に応じて、画像処理部50および54のLUTやMTX等を補正する。このように、オペレータによる調整入力に応じて、モニタ20に表示される画像が変化し、これを見て最適な画像処理条件が決定される。
【0047】
画像処理条件が確定すると、スキャナ12において可変絞り24の絞り値等が、設定されたファインスキャンの読取条件に応じて設定されると共に、キャリア28がファインスキャンに対応する速度でフィルムFを搬送し、ファインスキャンが開始される。
ファインスキャンは、可変絞り24の絞り値等の読取条件が異なる以外はプレスキャンと同様に行われ、イメージセンサ32からの出力信号はアンプ33で増幅されて、処理装置14のA/D変換器34でデジタル濃度データとされ、スキャナ補正部36で所定の処理を施され、LOG変換器38に送られる。
LOG変換器38において、ファインスキャンデジタル画像データはプレスキャンよりも高い濃度分解能で処理され、例えば、濃度Dで2の濃度範囲を10bitのデータに割りつけるようにLUTで変換され、ファインスキャン画像データとされた後、ファインスキャンメモリ42に送られる。
【0048】
画像処理部54においては、色濃度階調変換手段64により、ルックアップテーブルに従って、ファインスキャン画像データの濃度データ、色データおよび階調データが変換され、彩度変換手段66によって、マトリックス演算にしたがって、画像信号の彩度データが変換される。次いで、カラーペーパに出力するカラー画像のサイズ等に応じて電子変倍処理手段68により、画像データ信号の画素データ数が増減された後、画像信号は画像処理手段70に入力され、シャープネス強調等の画像処理が施される。
【0049】
ここで、実際の電子変倍処理は、例えば、図4に示すように、画像データをファインスキャン(フレーム)メモリ42に格納する前後において、主走査方向および副走査方向それぞれについて一次元処理を施すようにすれば、ハード構成上も簡単に済む。
【0050】
まず、ファインスキャン画像データをファインスキャンメモリ42に書き込む際、一旦電子変倍処理手段68を通し主走査方向について一次元方向の電子変倍処理を行う。例えば図5において、○を原画像データ、×を処理後の補間画像データとし、Xjを補間画像データ×から第j画像データまでの距離とするとき、バイリニヤ補間の場合は、補間画像データ×の両側の画像データk、k+1を用いて、次式により補間画像データfout が算出される。
fout = fk ・C(Xk) + fk+1 ・C(Xk+1)
ここでC(X)は畳み込み関数(convolution function) であり、fk は例えば濃度値である。
また、3次畳み込み(cubic sinc) や3 次スプラインの場合には、補間点×を中心に含む4点k−1、k、k+1、k+2を用いて、次式により補間画像データfout が算出される。
【0051】
このようにして一次元(主走査)方向に拡縮処理された画像データは、図4のファインスキャン(フレーム)メモリ42に、矢印W方向に書き込まれる。
次に、電子変倍処理手段68は、ファインスキャンメモリ42から、図に矢印Rで示される方向(すなわち副走査方向)に画像データを読み出し、同様に一次元処理を行う。その結果、2次元的に画像データの補間処理が行われることとなる。すなわち、バイリニヤの場合には、主方向および副方向それぞれ2点ずつ全部で4点を用いて補間が行われ、3次の場合は、主方向および副方向それぞれ4点ずつ全部で16点を用いて補間が行われる。
【0052】
本実施形態においては、補間方法は、絵柄、画像出力先、画像処理速度、画像の使用用途に応じた最適な補間方法が選択される。ここで、画像出力先とは、画像が出力される銀塩ペーパー等の感光材料といった出力媒体そのものの他、MO、リムーバブル・ハードディスク(Jaz、Zip)あるいはFD等の各種記録媒体等をも含むものとする。
前述したように、補間方法には、(1)ニヤレストネイバー、(2)バイリニヤ、(3)3次畳み込み(cubic sinc) 、(4)3次スプラインおよび(5)3次Bスプラインがあり、これらの比較を図6に示す。
【0053】
図6に示すように、補間に使用するサンプル点の数は、(1)が最も近い一点のみ、(2)が4点、(3)〜(5)はいずれも16点である。ハードウエア構成は、(1)および(2)は規模が小さいが、(3)〜(5)は計算量が増えるため規模が大きくなる。周波数特性は、(2)と(5)が低く、(3)と(4)が高い。折り返しによるビート発生は、(2)においては視認されるが、(3)〜(5)においては視認されない。連続性については、(3)は、ルップルが発生し、問題があるが、他のものについては特に問題はない。
また、(1)にはオリジナルな画像データを壊さないという利点およびアルゴリズムが簡単であるという利点がある。
(2)には、オリジナルなデータが壊されるという欠点があるが、平均化のためにスムージングの効果がでる点で利点がある。
(3)には、オリジナルなデータが壊されるという欠点があるが、画像の平滑化と同時に鮮鋭化の効果がでる利点がある。
(4)は、オリジナルなデータが壊されるという欠点があるが、曲線表示の有効性の面でCG(コンピュータ・グラフィックス)でよく使用される。
(5)は、オリジナルなデータが壊され、また、周波数特性が低く、シャープ感が損なわれる。
【0054】
また、図7に、補間カーネルのフーリエ変換を示す。
補間カーネルの理想形を図に二点鎖線で示し、3次畳み込み(cubic sinc) による補間を破線で、3次スプラインによる補間を実線で、さらにバイリニヤによる補間を一点鎖線で示す。このとき、n/m補間を、n倍の拡大と1/mの間引きの合成として扱うと、n倍拡大の空間周波数特性を図のグラフのように表現することができる。このとき、1/mの間引きのとき、高域に残存する成分が、折り返しとなり、ビート要因となる。
図7からわかるように、この場合、3次スプラインが最もよいことがわかる。
【0055】
これらのことを考慮すると、最適と思われる補間方法は、例えば、次のように例示される。
すなわち、まず絵柄については、風景の場合は、3次畳み込み(cubic sinc) 、人物およびCGの場合は、3次スプラインが適しており、2値画像の場合には、ニヤレストネイバー位で充分である。
また、画像処理速度については、処理速度を優先する場合には、バイリニヤやニヤレストネイバーが、適している。
使用用途については、ホームページ程度であれば、バイリニヤが良く、プリント用あるいはファイル出力用であれば、3次スプラインが適している。
【0056】
これらの絵柄の種類や、銀塩ペーパー等の感光材料や記録媒体の種類といった出力先の違い、画像処理速度、画像の使用用途に応じて補間方法を選択するのは、前記検定時等においてオペレータが選択するようにしてもよいし、予め各場合毎に設定しておいてもよい。すなわち、注文情報(インターネット経由の注文時)等から指定された補間方法を(自動的に)読み取ってもよいし、カメラによる撮影情報(風景モード、ポートレートモード等)等から補間方法を決定してもよい。あるいは、さらに、絵柄を解析(判断)して、補間方法を切り換えるようにしてもよい。
また、どの補間方法を使用するかは、ファインスキャン前までに決定していればよい。例えば、自動で決定する場合においては、プレスキャン前に事前に行っておいてもよいし、また、モニタ等を見てオペレータが決定する場合などにおいては、プレスキャン後に行ってもよい。
【0057】
電子変倍処理後の画像データを受け取った画像処理手段70は、シャープネス強調等の画像処理を行う。
このとき行われる画像処理あるいは画像処理の程度は、前記電子変倍処理手段68における補間演算の方法に応じて変更される。
例えば、補間方法が3次Bスプラインの場合には、シャープネス強調の程度が強められ、補間方法が3次畳み込みの場合には、シャープネス強調の程度は弱められ、補間方法が3次スプラインの場合には、シャープネス強調の程度は中ぐらいとされる。
【0058】
画像処理済の画像データは、画像データ変換部56に入力され、画像出力用画像データに変換された後、画像処理装置14から画像記録装置16に出力される。画像記録装置16は、入力画像データに応じて感光材料(印画紙)を露光して潜像を記録し、露光済の感光材料に所定の処理を施してプリント(写真)として出力する。
【0059】
本実施形態によれば、絵柄、画像出力先、画像処理速度、画像の使用用途等に応じて最適な補間方法を選択するとともに、選択された補間方法に応じて、その後の画像処理および画像処理の程度を変更するようにしたため、最適な出力画像を得ることができるようになった。
以上、本発明の画像処理方法および装置について詳細に説明したが、本発明は、以上の例には限定されず、本発明の要旨を逸脱しない範囲において、各種の改良や変更を行ってもよいのはもちろんである。
【0060】
【発明の効果】
以上、説明した通り、本発明によれば、絵柄、画像出力先、画像処理速度、画像の使用用途等に応じて最適な補間方法を選択するとともに、選択された補間方法に応じて、その後の画像処理および画像処理の程度を変更するようにしたため、最適な出力画像を得ることができるようになった。
【図面の簡単な説明】
【図1】 本発明の画像処理方法を実施する画像処理装置を適用するデジタルフォトプリンタの一実施例を示すブロック図である。
【図2】 図1に示されるデジタルフォトプリンタの画像処理装置の一例を示すブロック図である。
【図3】 図2に示される画像処理装置のファインスキャン画像データ処理部の画像処理部の一例のブロック図である。
【図4】 本実施形態における実際の電子変倍処理の一例を示すブロック線図である。
【図5】 図4の電子変倍処理における一次元処理を示す説明図である。
【図6】 各種補間方法を比較して示す図表である。
【図7】 補間カーネルのフーリエ変換を示す線図である。
【図8】 ニヤレストネイバー補間を示す説明図である。
【図9】 バイリニヤ補間を示す説明図である。
【図10】 3次畳み込み(cubic sinc) 補間を示す説明図である。
【符号の説明】
10 デジタルフォトプリンタ
12 スキャナ
14 (画像)処理装置
16 画像記録装置
18 操作系
18a キーボード
18b マウス
20 モニタ
22 光源
24 可変絞り
26 拡散ボックス
28 キャリア
30 結像レンズユニット
32 イメージセンサ
34 A/D変換器
36 スキャナ補正部
38 LOG変換器
40 プレスキャン(フレーム)メモリ
42 ファインスキャン(フレーム)メモリ
44 プレスキャンデータ処理部
46 ファインスキャンデータ処理部
48 条件設定部
50、54 画像処理部
52、56 画像データ変換部
58 セットアップ部
60 キー補正部
62 パラメータ統合部
64 色濃度階調変換手段
66 彩度変換手段
68 電子変倍処理手段
70 画像処理手段[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method and apparatus, and more particularly to an image processing technique including an electronic scaling process that performs image scaling by image data interpolation.
[0002]
[Prior art]
Conventionally, an image taken on a photographic film original such as a negative film or a reversal film is printed on a photosensitive material such as a photographic paper, so that the image of the film original is projected onto the photosensitive material and the photosensitive material is surface-exposed. It was done by exposure.
[0003]
On the other hand, in recent years, a printing system using digital exposure, that is, image information recorded on a film is photoelectrically read and the read image is converted into a digital signal, and then subjected to various image processing for recording. A digital printing system has been proposed in which a photosensitive material is scanned and exposed by recording light modulated in accordance with the image information, an image (latent image) is recorded, developed and printed. The development of digital photo printers to be carried out is progressing.
[0004]
In the digital printing system, editing layout of printed images such as composition of multiple images, image division, character and image editing, color / density adjustment, electronic scaling, sharpness enhancement (sharpness enhancement) Various kinds of image processing such as the above can be freely performed, and a finished print that has been freely edited and processed according to the application can be output. Also, conventional direct exposure printing systems cannot reproduce all image density information recorded on film etc. in terms of density resolution, spatial resolution, color / density reproducibility, etc. According to this, it is possible to output a print reproducing almost 100% of the image density information recorded on the film.
[0005]
At this time, the image needs to be scaled according to the size of the output image. Or, in particular, a part of the image may be enlarged and reproduced. In such a case, an electronic scaling process is performed. When enlarging an image by electronic scaling, the image data is usually increased by interpolation. For this reason, various interpolation methods have been proposed.
Various interpolation methods are described in "Image Analysis Handbook" (The University of Tokyo Press). For example, Nearest Neighbor interpolation, bi-linear interpolation, cubic convolution (also called cubic convolution or cubic sinc) interpolation, and the like.
[0006]
In the nearest neighbor interpolation method, image data of a sample point closest to a point to be interpolated is used as image data to be obtained. That is, as shown in FIG. 8, with respect to the interpolation point P (u, v), the image data for the lattice point P (i, j) is represented by Pij, and the integer part of the real number x is represented by [x] (Gaussian symbol). When r = [u + 0.5] and s = [v + 0.5], the image data P to be obtained is P = Prs. Assuming that i = [u] and j = [v], r = i and s = j + 1 in the figure.
[0007]
In the bilinear interpolation method, image data to be obtained is calculated by a bilinear equation using image data of four sample points around a point to be interpolated. That is, as shown in FIG. 9, the image data Pij, Pi + 1, j, Pi, j + 1, Pi + 1, j + 1 of the four sample points around the interpolation point P (u, v) are obtained. Using this, the image data P obtained by the following equation is calculated.
P = (1-a). (1-b) .Pij + a. (1-b) .Pi + 1, j
+ (1-a) .b.Pi, j + 1 + a.b.Pi + 1, j + 1
[0008]
The cubic convolution interpolation method (cubic sinc) calculates image data to be obtained by a cubic convolution function using image data of 16 sample points around a point to be interpolated. That is, as shown in FIG. 10, image data P to be obtained is calculated by the following equation using image data Pij (i = 1 to 4, j = 1 to 4) of 16 sample points around the interpolation point. .
[Expression 1]
Here, xi (i = 1 to 4) and yi (i = 1 to 4) are respectively calculated as follows.
x1 = 1 + (u- [u])
x2 = u- [u]
x3 = 1− (u− [u])
x4 = 2− (u− [u])
y1 = 1 + (v− [v])
y2 = v- [v]
y3 = 1- (v- [v])
y4 = 2− (v− [v])
F is a function f (t) defined by the following equation.
[Expression 2]
[0009]
Besides these, cubic spline interpolation, cubic B-spline interpolation, and the like are known.
Cubic spline interpolation uses image data of 16 sample points around the interpolation point, similarly to the cubic convolution interpolation (cubic sinc). For example, when there is an interpolation point P ′ between Pk and Pk + 1 among the four points Pk−1, Pk, Pk + 1, and Pk + 2 in the one-dimensional direction, the following cubic spline interpolation equation is used. The required image data P ′ is calculated.
P '= ak-1 -Pk-1 + ak -Pk + ak + 1 -Pk + 1 + ak + 2 -Pk + 2
Here, the interpolation coefficient a i is given by the following equation, for example.
ak-1 =-(α / 2) · t · (t-1)2
ak = (2-α / 2) · tThree-(3-α / 2) · t2+1
ak + 1 = (α / 2-2) · tThree+ (3-α) · t2+ (Α / 2) · t
ak + 2 = (α / 2) · t2・ (T-1)
Here, α is a parameter for determining the sharpness of the image data calculated based on the interpolated image data, and t (0<t <1) indicates the position of the interpolation point P ′ in the pixel Pk + 1 direction when the grid interval of the original image data is 1, and the pixel Pk is used as a reference.
Since an actual image is formed by arranging pixels in a two-dimensional manner, the parameter t used in the above interpolation formula is replaced with tx in one direction and ty in the other direction. Thus, the calculation is performed by determining the interpolation coefficient for each direction.
In the cubic B-spline interpolation method, the interpolation coefficient ai is changed.
[0010]
In Japanese Patent Laid-Open No. 9-321981, it is determined whether an interpolation point belongs to an edge portion of an image having a sharp change in original image data or a flat portion of an image having a slow change. Is disclosed in which the interpolation method is switched.
[0011]
[Problems to be solved by the invention]
However, the conventional method of switching the interpolation method depending on whether the image data belongs to the edge portion or the flat portion is effective as it is, but it is difficult to determine the direction in which the edge extends, and the detection accuracy of the edge portion is high. If it's not too high, you can't get that much effect. Further, even if the edge portion can be detected accurately, there is a problem that an optimum reproduced image cannot be obtained simply by switching the interpolation method according to the difference between the edge portion and the flat portion.
[0012]
The present invention has been made in view of the above-described conventional problems, and provides an image processing method and apparatus capable of obtaining an optimal reproduced image according to a design, an image output destination, an image processing speed, an image use application, and the like. The task is to do.
[0013]
[Means for Solving the Problems]
In order to solve the above problems, the present invention increases or decreases the number of pixels of the original image data arranged in a grid pattern at predetermined intervals, and after performing an electronic scaling process for scaling the image,Sharpness enhancementThis is an image processing method that performs processing to produce an output image, selects the optimal interpolation method according to the pattern, image output destination, image processing speed, or the intended use of the image, performs electronic scaling, and then SaidSharpness enhancementThe strength of processing, To a level determined by the type of interpolation method selected and performedThere is provided an image processing method characterized by changing.
[0014]
The output destination of the image preferably includes a recording medium on which the image is output.
[0016]
Also,The strength of the sharpness processing is stronger when the interpolation method is a cubic spline method than when the interpolation method is a cubic convolution method.It is preferable.
[0017]
Similarly, in order to solve the above-mentioned problem, the present invention increases or decreases the number of pixels of the original image data arranged in a grid at predetermined intervals,imageAn electronic scaling process means for performing an electronic scaling process for scaling, and after performing the electronic scaling process,Sharpness enhancementAn image processing apparatus including an image processing unit that performs processing and sets an output image, wherein the electronic scaling processing unit includes an optimum interpolation according to a pattern, an image output destination, an image processing speed, or an image use application An electronic scaling process is performed by selecting a method, and the image processing means includes:Electronic scaling processSaid done laterSharpness enhancementThe strength of processing, To a level determined by the type of interpolation method selected and performedThere is provided an image processing apparatus characterized by being changed.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an image processing method and apparatus according to the present invention will be described in detail based on preferred embodiments shown in the accompanying drawings.
[0021]
FIG. 1 is a block diagram showing an outline of a digital photo printer to which an image processing apparatus that performs an image processing method according to an embodiment of the present invention is applied.
A digital photo printer (hereinafter referred to as a photo printer) 10 shown in FIG. 1 includes a scanner (image reading device) 12 that photoelectrically reads an image taken on a film F, and an electronic conversion of image data read by the
The
[0022]
The
[0023]
In the
As is well known, a film of the new photographic system is formed with a magnetic recording medium, and a cartridge ID, film size, ISO sensitivity, etc. are recorded. Various data such as date and time, exposure level, camera and developing machine model can be recorded. The
[0024]
In such a
The color image signal is not limited to that input by reading the light transmitted through the film as described above, and may be a reflection original or an image taken by a digital camera.
[0025]
The
The film F is positioned at the reading position by the
[0026]
The projection light of the film F is imaged on the light receiving surface of the
The R, G, and B output signals output from the
[0027]
In the
Here, the pre-scan is performed under pre-scan reading conditions set in advance so that the
On the other hand, the fine scan is performed under the fine scan reading conditions set for each frame so that the
[0028]
The
In this case, for example, an area sensor such as an area CCD sensor is used, and means for inserting R, G, and B color filters are provided between the
[0029]
As described above, the digital image data signal output from the
FIG. 2 shows a block diagram of the image processing apparatus (hereinafter referred to as a processing apparatus) 14.
Here, the
FIG. 2 mainly shows parts related to image processing. Besides, the
[0030]
R, G, and B image signals input from the
The
The
[0031]
The digital image density data converted by the
The
The prescan image data stored in the
[0032]
On the other hand, the
The fine scan image data stored in the
[0033]
A prescan
Here, the
The image
The processing conditions in the
[0034]
On the other hand, a fine scan
Here, the
[0035]
The image
The
[0036]
The processing conditions in the
The
The
[0037]
Specifically, the
Fine scanning reading conditions, for example, the light amount of the
Further, the
[0038]
The
The
[0039]
Next, the
FIG. 3 is a block diagram showing an outline of an embodiment of the
[0040]
In the
[0041]
The processing in the electronic scaling processing means 68 and the image processing means 70 is a feature of the present invention. As will be described in detail later, the interpolation method in the electronic scaling processing means 68 is an output destination of a pattern and an image. The optimum interpolation method is selected according to the image processing speed and the usage of the image, and the degree of image processing and image processing in the image processing means 70 is changed depending on which interpolation method is selected.
[0042]
The image processing apparatus and the digital photo printer using the same according to the present invention are basically configured as described above. Hereinafter, the operation of the present embodiment will be described.
[0043]
After the operator loads the
Thus, the aperture value of the
[0044]
The output signal of the
The digital image data input to the
[0045]
When pre-scan image data is stored in the
The
[0046]
When the test is performed, the prescan image data is read from the
The operator looks at the display on the
This adjustment input is sent to the
[0047]
When the image processing conditions are determined, the aperture value of the
The fine scan is performed in the same manner as the pre-scan except that the reading conditions such as the aperture value of the
In the
[0048]
In the
[0049]
Here, as shown in FIG. 4, for example, as shown in FIG. 4, the actual electronic scaling process performs one-dimensional processing in each of the main scanning direction and the sub-scanning direction before and after storing the image data in the fine scan (frame)
[0050]
First, when the fine scan image data is written in the
fout = fk * C (Xk) + fk + 1 * C (Xk + 1)
Here, C (X) is a convolution function, and fk is, for example, a density value.
In the case of cubic sinc or cubic spline, the interpolated image data fout is calculated by the following equation using four points k-1, k, k + 1, k + 2 including the interpolation point x as the center. The
[0051]
The image data scaled in the one-dimensional (main scanning) direction in this way is written in the direction of arrow W in the fine scan (frame)
Next, the electronic scaling processing means 68 reads the image data from the
[0052]
In the present embodiment, as the interpolation method, an optimal interpolation method is selected according to the pattern, the image output destination, the image processing speed, and the use application of the image. Here, the image output destination includes not only an output medium such as a photosensitive material such as silver salt paper to which an image is output, but also various recording media such as MO, removable hard disk (Jaz, Zip), or FD. .
As described above, interpolation methods include (1) nearest neighbor, (2) bilinia, (3) cubic sinc, (4) cubic spline, and (5) cubic B spline, These comparisons are shown in FIG.
[0053]
As shown in FIG. 6, the number of sample points used for interpolation is (1) is the closest one point, (2) is 4 points, and (3) to (5) are all 16 points. The hardware configurations (1) and (2) are small in scale, but (3) to (5) are large in scale because the calculation amount increases. The frequency characteristics are low in (2) and (5) and high in (3) and (4). The occurrence of a beat due to folding is visually recognized in (2), but is not visually recognized in (3) to (5). As for continuity, (3) has a problem with the occurrence of ripples, but there is no particular problem with the others.
Further, (1) has the advantage that the original image data is not destroyed and the advantage that the algorithm is simple.
Although (2) has a drawback that the original data is destroyed, there is an advantage in that a smoothing effect can be obtained for averaging.
Although (3) has a disadvantage that the original data is destroyed, there is an advantage that a sharpening effect can be obtained simultaneously with smoothing of the image.
Although (4) has a drawback that the original data is destroyed, it is often used in CG (computer graphics) in terms of the effectiveness of curve display.
In (5), the original data is destroyed, the frequency characteristics are low, and the sharpness is impaired.
[0054]
FIG. 7 shows the Fourier transform of the interpolation kernel.
The ideal shape of the interpolation kernel is indicated by a two-dot chain line in the figure, cubic sinc interpolation is indicated by a broken line, cubic spline interpolation is indicated by a solid line, and bilinar interpolation is indicated by a one-dot chain line. At this time, if n / m interpolation is treated as a combination of n-fold enlargement and 1 / m decimation, the spatial frequency characteristics of n-fold enlargement can be expressed as shown in the graph of FIG. At this time, at the time of 1 / m decimation, the component remaining in the high frequency is turned back and becomes a beat factor.
As can be seen from FIG. 7, in this case, the cubic spline is best.
[0055]
Considering these things, the interpolation method considered to be optimal is exemplified as follows, for example.
That is, for the picture, first, cubic sinc is suitable for landscapes, and cubic spline is suitable for people and CG. Nearest neighbors are sufficient for binary images. is there.
As for the image processing speed, biline and nearest neighbors are suitable when priority is given to the processing speed.
With regard to usage, biline is good for homepages, and cubic splines are suitable for printing or file output.
[0056]
The operator selects the interpolation method according to the difference in the output destination such as the type of these patterns, the type of photosensitive material such as silver salt paper or the recording medium, the image processing speed, and the usage of the image. May be selected, or may be set in advance for each case. In other words, the interpolation method specified from the order information (when ordering via the Internet) may be read (automatically), or the interpolation method is determined from the camera information (landscape mode, portrait mode, etc.) May be. Alternatively, the interpolation method may be switched by analyzing (determining) the pattern.
In addition, which interpolation method is used may be determined before the fine scan. For example, when the automatic determination is performed, the determination may be performed in advance before the pre-scan, or when the operator determines the value by looking at a monitor or the like, the determination may be performed after the pre-scan.
[0057]
The image processing means 70 that has received the image data after the electronic scaling processing performs image processing such as sharpness enhancement.
The degree of image processing or image processing performed at this time is changed according to the interpolation calculation method in the electronic scaling processing means 68.
For example, when the interpolation method is a cubic B-spline, the degree of sharpness enhancement is strengthened. When the interpolation method is a cubic convolution, the degree of sharpness enhancement is weakened, and when the interpolation method is a cubic spline. The degree of sharpness enhancement is moderate.
[0058]
The image data that has undergone image processing is input to the image
[0059]
According to the present embodiment, an optimal interpolation method is selected according to the design, image output destination, image processing speed, use application of the image, and the subsequent image processing and image processing are performed according to the selected interpolation method. As a result, the optimum output image can be obtained.
Although the image processing method and apparatus of the present invention have been described in detail above, the present invention is not limited to the above examples, and various improvements and modifications may be made without departing from the spirit of the present invention. Of course.
[0060]
【The invention's effect】
As described above, according to the present invention, the optimum interpolation method is selected according to the design, the image output destination, the image processing speed, the usage of the image, and the like, and the subsequent interpolation is performed according to the selected interpolation method. Since the image processing and the degree of image processing are changed, an optimum output image can be obtained.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating an embodiment of a digital photo printer to which an image processing apparatus that performs an image processing method of the present invention is applied.
FIG. 2 is a block diagram showing an example of an image processing apparatus of the digital photo printer shown in FIG.
3 is a block diagram of an example of an image processing unit of a fine scan image data processing unit of the image processing apparatus shown in FIG.
FIG. 4 is a block diagram showing an example of actual electronic scaling processing in the present embodiment.
FIG. 5 is an explanatory diagram showing a one-dimensional process in the electronic scaling process of FIG. 4;
FIG. 6 is a chart comparing various interpolation methods.
FIG. 7 is a diagram showing a Fourier transform of an interpolation kernel.
FIG. 8 is an explanatory diagram showing near neighbor interpolation.
FIG. 9 is an explanatory diagram showing bilinear interpolation.
FIG. 10 is an explanatory diagram showing cubic sinc interpolation.
[Explanation of symbols]
10 Digital photo printer
12 Scanner
14 (Image) processing device
16 Image recording device
18 Operation system
18a keyboard
18b mouse
20 Monitor
22 Light source
24 Variable aperture
26 Diffusion box
28 Career
30 Imaging lens unit
32 Image sensor
34 A / D converter
36 Scanner correction unit
38 LOG converter
40 Pre-scan (frame) memory
42 Fine scan (frame) memory
44 Pre-scan data processor
46 Fine Scan Data Processing Unit
48 Condition setting section
50, 54Image processing unit
52, 56 Image data converter
58 Setup section
60 Key correction part
62 Parameter integration unit
64 color density gradation conversion means
66 Saturation conversion means
68 Electronic scaling processing means
70 Image processing means
Claims (4)
絵柄、画像の出力先、画像処理速度または画像の使用用途に応じた最適な補間方法を選択して電子変倍処理を行い、その後に行われる前記シャープネス強調処理の強さを、前記選択され実行された補間方法の種類によって決定されたレベルに変更することを特徴とする画像処理方法。An image processing method that increases or decreases the number of pixels of original image data arranged in a grid pattern at predetermined intervals, performs an electronic scaling process to enlarge or reduce the image, and then performs sharpness enhancement processing to obtain an output image,
Select the optimal interpolation method according to the design, image output destination, image processing speed or image usage and perform electronic scaling, then select and execute the strength of the sharpness enhancement processing to be performed thereafter An image processing method characterized in that the level is changed to a level determined by the type of interpolation method performed .
前記電子変倍処理手段は、絵柄、画像の出力先、画像処理速度または画像の使用用途に応じた最適な補間方法を選択して電子変倍処理を行い、
前記画像処理手段は、前記電子変倍処理後に行われる前記シャープネス強調処理の強さを、前記選択され実行された補間方法の種類によって決定されたレベルに変更することを特徴とする画像処理装置。Electronic scaling processing means for performing electronic scaling processing for increasing / decreasing the number of pixels of the original image data arranged in a grid at predetermined intervals, and scaling the image , and sharpness enhancement processing after performing the electronic scaling processing And an image processing device having an image processing means for making an output image,
The electronic scaling processing means performs an electronic scaling process by selecting an optimal interpolation method according to a pattern, an image output destination, an image processing speed, or an image use application,
The image processing device is characterized in that the strength of the sharpness enhancement processing performed after the electronic scaling processing is changed to a level determined by the type of the selected and executed interpolation method .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26130698A JP4063971B2 (en) | 1998-09-16 | 1998-09-16 | Image processing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26130698A JP4063971B2 (en) | 1998-09-16 | 1998-09-16 | Image processing method and apparatus |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2000090258A JP2000090258A (en) | 2000-03-31 |
JP2000090258A5 JP2000090258A5 (en) | 2005-04-07 |
JP4063971B2 true JP4063971B2 (en) | 2008-03-19 |
Family
ID=17359968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP26130698A Expired - Lifetime JP4063971B2 (en) | 1998-09-16 | 1998-09-16 | Image processing method and apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4063971B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4693649B2 (en) * | 2006-02-17 | 2011-06-01 | シャープ株式会社 | Image processing apparatus and image data interpolation method |
JP4873053B2 (en) * | 2009-07-27 | 2012-02-08 | セイコーエプソン株式会社 | Print control method, print control apparatus, and print control program |
US8922654B2 (en) * | 2012-03-22 | 2014-12-30 | Exelis, Inc. | Algorithm for adaptive downsampling to an irregular grid |
-
1998
- 1998-09-16 JP JP26130698A patent/JP4063971B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2000090258A (en) | 2000-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6697537B2 (en) | Image processing method and apparatus | |
JP3584389B2 (en) | Image processing method and image processing apparatus | |
JP2007096509A (en) | Image processing apparatus and image processing method | |
JP4172663B2 (en) | Image processing method | |
JP2001148780A (en) | Method for setting red-eye correction area and red-eye correction method | |
JP3913356B2 (en) | Image processing method | |
JP2000050080A (en) | Digital photograph finishing system containing digital picture processing of film exposure lacking gamma, scene balance, contrast normalization and picture visualization | |
JP3405266B2 (en) | Image processing method and apparatus | |
JP3408770B2 (en) | Image processing device | |
JP4063971B2 (en) | Image processing method and apparatus | |
JP3783817B2 (en) | Image processing method and image processing apparatus | |
US6608943B1 (en) | Image processing method and apparatus | |
JP2001223891A (en) | Picture processing method | |
JP2000040154A (en) | Method and device for image processing | |
US20050129287A1 (en) | Image processing method | |
JP3939428B2 (en) | Image processing method and apparatus | |
JP2005159387A (en) | Method of determining density characteristic curve and density correction management apparatus for executing this method | |
JP3576812B2 (en) | Image processing apparatus and image processing method | |
JPH1153535A (en) | Method and device for image reproduction | |
JP4667072B2 (en) | Image processing apparatus, image processing method, and program | |
JPH11328388A (en) | Method and device for image reproduction | |
JP2002281296A (en) | Image processor | |
JP2000057336A (en) | Method and device for processing image | |
JP2002209090A (en) | Test print generating method and photo image print method employing it | |
JPH11341275A (en) | Image processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040311 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040428 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061215 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20061218 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070116 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070315 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070417 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20070731 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070926 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20071120 |
|
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: 20071218 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20071226 |
|
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: 20110111 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110111 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120111 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120111 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130111 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130111 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140111 Year of fee payment: 6 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
EXPY | Cancellation because of completion of term |