JP2004072234A - Image processing apparatus, image processing method, image processing program, and recording medium storing image processing program - Google Patents
Image processing apparatus, image processing method, image processing program, and recording medium storing image processing program Download PDFInfo
- Publication number
- JP2004072234A JP2004072234A JP2002225936A JP2002225936A JP2004072234A JP 2004072234 A JP2004072234 A JP 2004072234A JP 2002225936 A JP2002225936 A JP 2002225936A JP 2002225936 A JP2002225936 A JP 2002225936A JP 2004072234 A JP2004072234 A JP 2004072234A
- Authority
- JP
- Japan
- Prior art keywords
- image processing
- image
- correction
- pixel
- image data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Color, Gradation (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
【課題】デジタル画像データにおける各画素の画素値に応じた画像処理を行うことのできる画像処理装置を得る。
【解決手段】各画素の画素値に応じて、各画素の画素値に対する補正強度が設定されている、色および濃度別補正強度設定部4を備える。前記補正強度を用いて、各画素の画素値を補正する画像処理部7を備える。
【選択図】 図1An image processing apparatus capable of performing image processing according to a pixel value of each pixel in digital image data.
A color and density-specific correction intensity setting unit (4), in which correction intensity for each pixel value is set according to the pixel value of each pixel. An image processing unit 7 that corrects the pixel value of each pixel using the correction intensity is provided.
[Selection diagram] Fig. 1
Description
【0001】
【発明の属する技術分野】
本発明は、原画像をデジタル画像データとして読み取り、デジタル露光方式で印画紙に対して露光を行う際に、原画像の画像データに対して各画素の画素値を補正する画像処理方法に関するものである。
【0002】
【従来の技術】
従来より、写真フィルム上の画像をスキャナ等によって読み取ることによって得られるデジタル画像データや、デジタルカメラによる撮影によって得られるデジタル画像データなどに基づいて、赤、青、緑の単色光を各画素毎に印画紙上に照射することによって焼付を行うデジタル露光が行われるようになっている。また、上記デジタル露光を行う前に、デジタル画像データに対して、例えば、色補正処理、濃度補正処理、粒状抑制処理、あるいは鮮鋭化処理等の画像処理を行うことにより、ユーザの要望に応じた画像を容易に提供することができるようにもなっている。
【0003】
上記の画像処理のうち、例えば、鮮鋭化処理としては、特開平5−167852号公報、特開平6−68252号公報、特開2000−278532号公報、および、特開2002−77668号公報に様々な技術が開示されている。
【0004】
具体的には、上記特開平5−167852号公報には、濃度の平坦部のざらつきをなくし、輪郭部を所望に応じ強調させる技術が開示されている。また、上記特開平6−68252号公報には、ぼけの程度が異なる不特定多数の画像に対して、各画像に応じた最適で高画質な鮮鋭化を自動的に行う技術が開示されている。さらに、上記特開2000−278532号公報に記載の発明は、本願発明者が成した発明であって、上記公報には、所定の画像が線画像を構成しているか否かを検出し、その検出結果に基づいて線画像に対応する画像データに対してのみ鮮鋭化を行う技術が開示されている。そして、特開2002−77668号公報には、画像のエッジ部にぎらつきのない自然な輪郭補正を行うことができる技術が開示されている。
【0005】
また、上記粒状抑制処理と鮮鋭化処理と同時に行う画像処理としては、特開平11−289468号公報、特開平11−298738号公報、および、特開2001−218015号公報に様々な技術が開示されている。
【0006】
具体的には、上記特開平11−289468号公報には、平坦部分の粒状性を抑えたり、特定濃度領域の粒状性を抑えたり、エッジのみの鮮鋭度を強調する技術が開示されている。また、上記特開平11−298738号公報には、粒状抑制と鮮鋭強度とを効果的に両立し、かつ、粒状抑制されるべきでない部分が誤って粒状抑制されるのを防止する技術が開示されている。さらに、上記特開2001−218015号公報には、撮影シーンを判別し、この判別結果に基づいて、最適な粒状抑制処理・鮮鋭化強調処理を施す技術が開示されている。
【0007】
【発明が解決しようとする課題】
ところで、上記各公報に記載された画像処理を含め、デジタル画像データに対して施される画像処理は、一般に、デジタル画像の全領域あるいはデジタル画像の一部の領域に対して行われている。また、上記デジタル画像データに各種の画像処理を行う場合、いわゆるフィルタを用いて、上記全領域または一部の領域に対して画像処理が行なわれている。つまり、全領域または一部の領域におけるデジタル画像データに対しては、一般に、デジタル画像データの各データ情報に関わらず、同一内容の画像処理が行われている。また、上記特開平11−289468号に記載のように、特定の濃度領域に対してのみ画像処理が行われるように設定されている場合もあるが、この場合にも、特定濃度領域内の画像データに対しては、同一内容の画像処理が行われている。
【0008】
言い換えれば、上記従来の画像処理では、一画像処理の対象となる各デジタル画像データに対し、それぞれ同じ強度で画像処理が行われている。つまり、隣接し、かつ、異なる画像データを有する画像データ、例えばdat1(R1,G1,B1)およびdat2(R2,G2,B2)に対しても、同一強度で画像処理が行われる。
【0009】
このため、例えば、上記の粒状抑制処理および/または鮮鋭化処理が行われても、デジタル画像データにおける各画素の画素値に応じた画像処理が行われているわけではないため、最良な画像処理後の画像が得られないという問題点がある。つまり、粒状抑制処理を例に挙げれば、粒状が目立たない画像データを有する画素に対しても、粒状が目立つ画像データを有する画素と同じ強度で粒状抑制が行われる。これにより、画像全体がぼけた状態となってしまう。
【0010】
また、上記のように画像全体がぼけた状態となるのを避けるため、一部の領域を選択してそれぞれの領域に処理を行う方法では、その都度、領域指定を行わなければならず手間がかかる。とりわけ、領域毎に異なる強度で処理を行う場合には、さらに面倒な作業となる。
【0011】
本発明は、上記従来の問題点に鑑みなされたものであって、その目的は、デジタル画像データにおける各画素の画素値に応じた画像処理を行うことのできる画像処理装置、画像処理方法、画像処理プログラム、および、画像処理プログラムを記録した記録媒体を提供することにある。
【0012】
【課題を解決するための手段】
本発明の画像処理装置は、上記の課題を解決するために、原画像の画像データに対して、各画素の画素値を補正する画像処理装置において、前記各画素の画素値に応じて、前記各画素の画素値に対する補正強度が設定されている補正強度設定部と、前記補正強度を用いて、前記各画素の画素値を補正する画像補正部とを備えることを特徴としている。
【0013】
上記の発明によれば、まず、補正強度設定部において、各画素の画素値に応じた補正強度が設定される。つまり、画素値毎に、それぞれ補正強度が設定される。そして、画像補正部においては、上記補正強度を用いて、各画素の画素値が補正される。すなわち、それぞれの画素値に対応した補正強度により、画素値の補正が行われる。
【0014】
したがって、補正強度を、補正の内容、つまり画像処理の内容に応じて適宜設定しておくことにより、原画像の画像データにおける個々の画素値に則した画像処理を行うことができる画像処理装置を提供することが可能となる。
【0015】
また、本発明の画像処理装置は、上記の画像処理装置において、前記各画素の画素値は、輝度および色から構成される表色系で表される画素値であることを特徴としている。
【0016】
上記の発明によれば、画素値は、輝度および色から構成される表色系で表される。
【0017】
したがって、輝度および色に応じて、補正強度を設定することが可能となる。
【0018】
また、本発明の画像処理装置は、上記の画像処理装置において、前記表色系は、輝度および色差によるYC1C2色度座標系であることを特徴としている。
【0019】
上記の発明によれば、前記表色系が、YC1C2色度座標系である。すなわち、画素値は、輝度および色差で表される。
【0020】
したがって、輝度および色差に応じて、補正強度を設定することが可能になる。
【0021】
また、本発明の画像処理装置は、上記の画像処理装置において、前記補正強度を変更するための補正強度変更部をさらに備えることを特徴としている。
【0022】
上記の発明によれば、補正強度変更部によって、一旦設定された補正強度を変更することができる。
【0023】
したがって、ユーザが、適宜、上記補正強度を変更することにより、ユーザの好みに応じた画像処理が可能となる。
【0024】
また、本発明の画像処理装置は、上記の画像処理装置において、前記画像補正部で行われる補正が、粒状抑制を行うための補正であることを特徴としている。
【0025】
上記の発明によれば、前記画像補正部において、粒状抑制を行う補正がなされる。
【0026】
したがって、原画像において粒状が目立つ画素値を有する画素に対しては強い強度で粒状抑制処理を行い、粒状が目立たない画素値を有する画素に対しては弱い強度で粒状抑制処理を行うことができる。その結果、画像全体としての鮮鋭度を保った状態のまま、画像全体の粒状抑制が可能となる。
【0027】
また、本発明の画像処理装置は、上記の画像処理装置において、前記画像補正部で行われる補正が、鮮鋭化を行うための補正であることを特徴としている。
【0028】
上記の発明によれば、前記画像補正部において、鮮鋭化処理を行う補正がなされる。
【0029】
したがって、鮮鋭化処理を行うことによりざらつき感が目立たない画素値を有する画素に対しては強い強度で鮮鋭化処理を行い、ざらつき感の目立つ画素値を有する画素に対しては弱い強度で鮮鋭化処理を行うことができる。その結果、画像全体として、ざらつき感を抑えた状態のまま、画像全体の鮮鋭度を向上させることが可能となる。
【0030】
本発明の画像処理方法は、上記の課題を解決するために、原画像の画像データに対して、各画素の画素値を補正する画像処理方法において、前記各画素の画素値に応じて、前記各画素の画素値に対する補正強度を設定する補正強度設定ステップと、前記補正強度を用いて、前記各画素の画素値を補正する画像処理ステップとを備えることを特徴としている。
【0031】
上記の方法によれば、まず、補正強度設定ステップにおいて、各画素の画素値に応じた補正強度が設定される。つまり、画素値毎に、それぞれ補正強度が設定される。そして、画像補正ステップにおいては、上記補正強度を用いて、各画素の画素値が補正される。すなわち、それぞれの画素値に対応した補正強度により、画素値の補正が行われる。
【0032】
したがって、補正強度を、補正の内容、つまり画像処理の内容に応じて適宜設定することにより、画像データの画素値に則した画像処理方法を提供することが可能となる。
【0033】
また、本発明に係る画像処理プログラムは、上記画像処理装置の各部としてコンピュータを機能させるためのものである。
【0034】
上記プログラムをコンピュータシステムにロードすることによって、上記画像処理装置をユーザに提供することが可能となる。
【0035】
また、本発明に係る画像処理プログラムは、上記の画像処理方法をコンピュータに実行させるためのものである。
【0036】
上記プログラムをコンピュータシステムにロードすることによって、上記画像処理方法をユーザに提供することが可能となる。
【0037】
また、本発明に係る画像処理プログラムを記録した記録媒体は、上記画像処理プログラムを記録しているものである。
【0038】
上記記録媒体に記録されている画像処理プログラムをコンピュータシステムにロードすることによって、上記画像処理装置または画像処理方法をユーザに提供することが可能となる。
【0039】
【発明の実施の形態】
本発明の実施の一形態について図1ないし図9に基づいて説明すれば、以下の通りである。
【0040】
図1は、本実施形態の画像出力システムの概略構成を示すブロック図である。上記画像出力システムは、画像入力部1、画像処理装置2、および画像出力部3を備えた構成となっている。また、上記画像処理装置2は、PC(Personal Computer)などによって構成されており、色および濃度別補正強度設定テーブル部4、テーブル作成部5、入力指示部6、および、画像処理部7(画像補正部)を備えている。ここで、テーブル作成部5と入力指示部6とあわせて、補正強度設定部という。
【0041】
上記画像入力部1は、フィルムスキャナを備えており、このフィルムスキャナにより写真フィルムに記録された画像を読み取るブロックである。ここで、上記フィルムスキャナは、光源からの光を、写真フィルムに照射し、その透過光をCCD等で受光することにより、写真フィルムに記録された画像を読み取る。そして、フィルムスキャナは、読み取った画像データを赤色成分、緑色成分、および青色成分ごとに出力、つまり画像データをRGB値で出力する。そして、上記画像入力部1から出力された各画素のRGB値は、上記画像処理部7に送られ、この画像処理部7において画素毎にYC1C2値に変換される。ここで、上記Yは輝度を、上記C1およびC2は色差を表している。このRGB値からYC1C2値への変換は、従来から知られている方法であるため、詳細については省略する。なお、輝度および色差により表される表色系を、YC1C2色度座標系と称する。
【0042】
上記色および濃度別補正強度設定テーブル部4(以下、強度設定テーブル部と称する)は、詳細については後述するが、上記の各YC1C2の値に応じて、それぞれの補正強度の値を有しているテーブルである。また、上記テーブル作成部5は、入力指示部6の指示に応じて、上記色および濃度別補正強度設定テーブル内の各補正強度を作成および/または変更するためのブロックである。さらに、上記テーブル作成部5は、グラフィカル・ユーザ・インタフェイス(GUI)の構成をとっている。
【0043】
また、上記画像処理部7は、詳細については後述するが、上記画像入力部1からの各画素の画像データ(YC1C2値)に対して、補正強度テーブル部4を参照して補正強度を設定し、画像処理を行った後、各画素のYC1C2値をふたたびRGB値に戻すブロックである。
【0044】
上記画像出力部3は、上記画像処理部7において処理された画像データを出力するためのブロックである。より具体的には、上記画像処理部7において処理された画像データに基づいて、感光材料である印画紙を露光することにより、印画紙上に画像を焼き付けるためのブロックである。画像データに応じた光を印画紙に照射するヘッドとしては、画像データに応じて画素ごとに印画紙への照射光を変調できる光変調素子が用いられる。このような光変調素子としては、例えばPLZT露光ヘッド、DMD(デジタル・マイクロミラー・デバイス)、LCD(液晶表示装置)、LED(Light Emitting Diode)パネル、レーザー、FOCRT(Fiber Optic Cathode Ray Tube)、CRT(Cathode Ray Tube)等が挙げられる。
【0045】
なお、画像出力部3は、写真フィルムのスキャニングと印画紙の露光とを両方行うことができるオートプリンタとして構成してもよい。この場合、画像出力システムを、画像の読み取りから焼付けまでを行うオートプリンタと、画像処理装置2とを接続した構成とすることにより、システムの簡素化を図ることができる。
【0046】
次に、上記画像処理装置2において行われる画像処理について説明する。
【0047】
まず、上記画像処理部7で行われる画像処理が粒状抑制処理であるとして、以下説明する。なお、上記画像処理部7で行われる画像処理は、上記の粒状抑制処理に限定されることはなく、後述する鮮鋭化処理であってもよいし、さらに、他の画像処理であってもよい。
【0048】
画像入力部1から出力された各画素の画像データ(画素値)は、上述したとおり、画像処理部7において、YC1C2値で示される画像データ(画素値)に変換される。ここで、原画像を形成する個々の画素の画像データは、通常、様々に異なったYC1C2値を有している。例えば、図2に示すとおり、画素Pにおいては(YP,C1P,C2P)を、画素Qにおいては(YQ,C1Q,C2Q)を有している。
【0049】
本実施の形態においては、各画素の有するYC1C2値に応じて、粒状抑制処理を行う際の強度を変更する。以下に、上記の粒状抑制処理の例を示す。
【0050】
粒状抑制処理を行う場合、例えば、図3に示すような移動平均フィルタといわれるフィルタが、一般的に用いられている。ここで、上記移動平均フィルタを用いて任意の画素である画素Eの粒状抑制処理を行う場合、図4に示すとおり、上記画素Eの画像データ(YE,C1E,C2E)と、画素Eの周囲に存在する画素A,B,C,D,F,G,H,および,Iの各画像データとを用いて粒状抑制が行われる。
【0051】
つまり、粒状抑制処理された後の画素Eの画像データE’(YE’,C1E’,C2E’)は、例えば、以下の式(1)で示される値となる。ただし、式(1)において、(YA,C1A,C2A)は画素Aの画像データを示し、他の画素についても同様な表記とする。また、上記式(1)における係数aを、ここでは補正強度と称する。
【0052】
【数1】
【0053】
ここで、本実施の形態における画像処理装置2では、上記補正強度aの値が、上記画像データ(YE,C1E,C2E)により決定される。すなわち、画像データの色および濃度別に上記補正強度aが与えられることになる。これにより、各画素の画像データの情報(色および濃度情報)に応じた画像処理が可能になる。以下、上記の色および濃度別の画像処理について、具体的に説明する。
【0054】
上述したように、画像データ(Y,C1,C2)の値に応じて、上記補正強度aが決定される。この画像データと補正強度aとの対応関係は、上記補正強度設定テーブル部4で設定されている。また、上記補正強度設定テーブル部4は、例えば、図5に示すとおり、横方向(x方向)に33分割、縦方向(y方向)に33分割、高さ方向(z方向)に9分割された立体形状のテーブル部であって、合計9801個のセルからなっている。ただし、図5に示した補正強度設定テーブル部4は、一例であって、かつ、概略を示したものであり、これに限定されるものではない。なお、実際には、上記セルは、例えば記憶装置であるメモリのメモリ領域に対応するものである。
【0055】
また、補正強度設定テーブル部4の各セルには、強度を示すデータが格納されている。さらに、上記各セルは、各画像データ(Y,C1,C2)と1対1で対応付けされている。つまり、1つの(Y,C1,C2)の値に対して、1つのセルが対応付けされている。
【0056】
さらに、上記z方向に平行であって、かつ、上記補正強度設定テーブル部4の中心を通る軸をZ軸とすると、上記補正強度設定テーブル部4には、図6に示すとおり、Z軸プラス方向ほど輝度(Y)が高い画像データに対応するセルが、Z軸から離れるにつれ彩度が高い画像データに対応するセルが備えられている。
【0057】
ここで、粒状抑制処理を行う場合、写真を見る者の視線が人物に向くため、肌色に近い色に対して、粒状抑制の強度を強くすることが好ましい。また、輝度に関しては、輝度に応じて粒状抑制の強度を設定することが好ましい。一方、全ての色に対して、同様な強度で粒状抑制処理を行うと、粒状抑制の効果により、画像の鮮鋭度が低下してしまう。つまり、上記補正強度設定テーブル部4において、肌色に近い色から離れるほど、粒状抑制の強度を小さくすることが望ましい。
【0058】
したがって、肌色に近い色(図6の領域T部分)に対しては、上記補正強度aの値を大きな値に設定しておく。例えば、式(1)を用いて粒状抑制処理を行う場合には、補正強度aの値を1としておく。ここで、上記画素Eの画像データが肌色に近い色とした場合、補正強度aを1とすることにより、粒状抑制処理後の画素Eの画像データE’(YE’,C1E’,C2E’)は、以下の式(2)で示される値となり、画素Eは、周囲の画像データが混ざり込んだ画像、つまりぼけた画像となる。つまり、この画素E部分の粒状抑制処理が効果的に行われることになる。
【0059】
【数2】
【0060】
一方、肌色に近い色から離れた色(例えば、図6のセルU)については、上記補正強度aの値を小さな値に設定しておく。例えば、式(1)を用いて粒状抑制処理を行う場合には、補正強度aの値を0.1とする。ここで、上記画素Eの画像データが肌色に近い色から離れた色とした場合、補正強度aを0.1とすることにより、粒状抑制処理後の画素Eの画像データE’(YE’,C1E’,C2E’)は、粒状抑制処理前の画素Eの画像データE(YE,C1E,C2E)の寄与率の大きな画像データとなる。つまり、画素Eは、ほとんどぼけのない画像となる。
【0061】
以上のように、上記補正強度aの値を大きくすれば、画像のぼけ度合が増し、反対に上記補正強度aの値を小さくすれば、画像のぼけ度合が減少する。なお、上記補正強度aの値を0とすれば、もとの画像データがそのまま処理後の画像データとなる。
【0062】
つまり、図1に基づいて説明すると、まず、画像入力部1から出力された画像データは、画像処理装置2内の画像処理部7に送られる。次に、上記画像処理部7は、画像入力部1から送られてきた個々の画像データに対応した粒状抑制強度の情報を得るために、色および濃度別強度テーブル部4から個々の画像データに対応したセル内の情報を取得する。そして、上記画像処理部7は、この個々の画像データに対応した補正強度でもって、式(1)に示すような粒状抑制処理を実施する。
【0063】
このように、色および濃度毎に上記補正強度aを変化させることにより、画像データのデータ特性(色および濃度)に則した画像処理を行うことが可能となる。つまり、粒状が目立つ画像データに対しては強い強度で粒状抑制処理を行い、粒状が目立たない画像データに対しては弱い強度で粒状抑制処理を行うことができる。その結果、画像全体としての鮮鋭度を保った状態のまま、画像全体の粒状抑制が可能となる。
【0064】
なお、上記セル内の強度の情報は、予め設定された値であるが、これに限定されるものではなく、ユーザが上記強度を設定しなおすことも可能である。この場合には、上記テーブル作成部5および入力指示部6を利用する。具体的には、ユーザが、表示装置等(図示せず)にテーブル作成部5の作成画面を表示させ、この作成画面を用いて各セルの値を変更する。これにより、ユーザの好みに応じた粒状抑制処理が可能となる。
【0065】
また、上記の粒状抑制処理においては、図3に示すような移動平均フィルタを用いたが、これに限定されるものではなく、フィルタとしては、粒状抑制処理に適したものであればよい。
【0066】
以上においては、上記画像処理部7で行われる画像処理が粒状抑制処理であるとして説明をおこなった。そこで、以下においては、上記画像処理部7で行われる画像処理が鮮鋭化処理であるとして説明をおこなう。また、本実施の形態の鮮鋭化処理は、処理に用いるフィルタ、このフィルタによる処理(演算)方法、および、色および濃度別強度設定テーブルの各セルに与えられる補正強度がそれぞれに異なる点を除けば、上記粒状抑制処理と同じであるため、粒状抑制処理と重複する箇所については、その説明を省略する。
【0067】
鮮鋭化処理を行う場合、例えば、図7に示すようなラプラシアンフィルタといわれるフィルタが、一般的に用いられている。ここで、上記ラプラシアンフィルタを用いて任意の画素である画素Eの鮮鋭化処理を行う場合は、粒状抑制処理の場合と同様に、上記画素Eの画像データ(YE,C1E,C2E)と、画素Eの周囲に存在する画素A,B,C,D,F,G,H,および,Iの各画像データとを用いて鮮鋭化処理が行われる。
【0068】
つまり、鮮鋭化処理された後の画素Eの画像データE’(YE’,C1E’,C2E’)は、例えば、以下の式(3)で示される値となる。
【0069】
【数3】
【0070】
鮮鋭化処理の場合も上記粒状抑制処理の場合と同様に、画像処理装置2では、上記補正強度aの値が、上記画像データ(YE,C1E,C2E)により決定される。すなわち、画像データの色・濃度別に上記強度aが与えられることになる。これにより、各画素の画像データの情報(色・濃度情報)に応じた画像処理が可能になる。
【0071】
ここで、鮮鋭化処理で用いる場合における、上記補正強度設定テーブル部4について説明する。なお、説明の便宜上、鮮鋭化処理を行う場合の補正強度設定テーブル部4を、補正強度設定テーブル部4’と称する。この色および濃度設定テーブル部4’は、上記色および濃度設定テーブル部4と同様に合計9801個のセルからなっており、この各セルには、上記粒状抑制処理における強度とは異なる強度を示すデータが格納されている。その他の構成は、上記色および濃度設定テーブル部4と同じであるため、記載を省略する。
【0072】
また、画像処理装置2についても、粒状抑制処理における上記補正強度設定テーブル部4が色および濃度設定テーブル部4’に置き換わるだけであり、言い換えれば、上記各セルに格納されている補正強度を示すデータが異なるだけであり、画像処理装置2自体の構成に変化はない。それゆえ、上記画像処理装置2内における、各構成要素間の関連についての説明は省略する。
【0073】
さらに、上記各セルに格納されている補正強度について説明すると、以下のとおりである。鮮鋭化処理を行う場合には、彩度が高い色に対して、粒状抑制の強度を強くすることが好ましい。また、輝度に関しては、輝度の低い色ほど鮮鋭化の強度を強くすることが好ましい。つまり、彩度が高く、かつ、輝度が低い色(例えば、図6の領域V部分)に対して、鮮鋭化の強度を強くすることが望ましい。
【0074】
一方、全ての色に対して、上記彩度が高くて輝度が低い色と同様な強度で鮮鋭化処理を行うと、鮮鋭化の効果により、彩度が低くて輝度が高い色の部分にはざらつき感が生じ、かえって違和感のある画像となってしまうことがある。とりわけ、彩度が低くて輝度が高い色の部分が、原画像の平坦な部分(例えば、壁、空)に該当する場合には、上記ざらつき感が特に目立つようになる。そこで、上記補正強度設定テーブル部4’においては、彩度が高くて輝度が低い色からはなれる色(例えば、図6の領域W部分)ほど、鮮鋭化の強度を小さくすることとする。
【0075】
つまり、彩度が高くて輝度が低い色に対しては、上記補正強度aの値を大きな値に設定しておく。例えば、式(3)を用いて鮮鋭化処理を行う場合には、補正強度aの値を1としておく。ここで、上記画素Eの画像データの彩度が高く、かつ、輝度が低い色の場合、補正強度aを1とすることにより、鮮鋭化処理後の画素Eの画像データE’(YE’,C1E’,C2E’)は、以下の式(4)で示される値となる。
【0076】
【数4】
【0077】
つまり、画素Eと、画素Eの周りの画素とに色の差(画像データの差)があり、かつ、周りの画素が明るい色を多く含む場合には、上記画素Eは一層明るくなる。また、画素Eと、画素Eの周りの画素とに色の差(画像データの差)があり、かつ、周りの画素が暗い色を多く含む場合には、上記画素Eは一層暗くなる。したがって、この画素E部分の鮮鋭化処理が効果的に行われることになる。
【0078】
一方、彩度が低くて輝度が高い色については、上記補正強度aの値を小さな値に設定しておく。例えば、式(3)を用いて鮮鋭化処理を行う場合には、補正強度aの値を0.1とする。ここで、上記画素Eの画像データの彩度が低くて輝度が高い場合に、上記補正強度aを0.1とすることにより、鮮鋭化処理後の画素Eの画像データE’(YE’,C1E’,C2E’)は、鮮鋭化処理前の画素Eの画像データE(YE,C1E,C2E)の寄与率の大きな画像データとなる。つまり、画素Eは、ほとんど鮮鋭化されていない画像となる。
【0079】
以上のように、上記補正強度aの値を大きくすれば、画像の鮮鋭度合が増し、反対に上記補正強度aの値を小さくすれば、画像の鮮鋭度合が減少する。なお、上記補正強度aの値を0とすれば、もとの画像データがそのまま処理後の画像データとなる。
【0080】
以上のように、色および濃度毎に上記補正強度aを変化させることにより、画像データのデータ特性(色および濃度)に則した画像処理を行うことが可能となる。つまり、ざらつき感が目立たない画像データに対しては強い強度で鮮鋭化処理を行い、ざらつき感の目立つ画像データに対しては弱い強度で鮮鋭化処理を行うことができる。その結果、画像全体として、ざらつき感を抑えた状態のまま、画像全体の鮮鋭度を向上させることが可能となる。
【0081】
なお、補正強度設定テーブル部4’は、一例であって、これに限定されるものではない。また、上記の説明においては、フィルタとしてラプラシアンフィルタを用いているが、これに限定されるものではなく、上記フィルタとしては、鮮鋭化処理に適したものであればよい。
【0082】
以上の説明では、粒状抑制処理と鮮鋭化処理とにおいて、それぞれ異なる補正強度設定テーブル部4と補正強度設定テーブル部4’とを用いた。しかしながら、必ずしもこれに限定されるものではない。
【0083】
強い強度で粒状抑制処理を行うことが好ましい画像データと、弱い強度で鮮鋭化処理を行うことが好ましい画像データとは、同じような情報を有する画像データ(以下、同種画像データ)である。つまり、比較的に彩度の低い画像データが、この同種画像データに該当する。
【0084】
また、弱い強度で粒状抑制処理を行うことが好ましい画像データと、強い強度で鮮鋭化処理を行うことが好ましい画像データとは、同じような情報を有する画像データ(同種画像データ)である。つまり、彩度の高い画像データが、同種画像データに該当する。したがって、以下に説明するように、粒状抑制処理用の補正強度設定テーブル部4と鮮鋭化処理用の補正強度設定テーブル部4’とを、一つの補正強度設定テーブル部4”にまとめることができる。
【0085】
まず、上記補正強度設定テーブル部4”の各セルに格納される補正強度aにプラスマイナスの符号を持たせる。すなわち、図8に示すとおり、補正強度aがマイナスの場合には粒状抑制処理が行われ、補正強度aがプラスの場合には、鮮鋭化処理が行われるように設定する。また、マイナスの値が大きくなるほど、粒状抑制の強度が強くなるように設定し、プラスの値が大きくなるほど、鮮鋭化の強度を強めるように設定しておく。ただし、上記粒状抑制処理の場合において、例えば上記式(1)を用いるのであれば、上記補正強度aの絶対値を式(1)の補正強度aとする。
【0086】
以上のように、粒状抑制処理と鮮鋭化処理とが互いに相反する処理であるという点を考慮し、補正強度aにプラスマイナスの符号を持たせることによって、一つの補正強度設定テーブル部4”により、粒状抑制処理と鮮鋭化処理とを同時に実行することが可能となる。
【0087】
次に、図1に示す画像出力システムの処理の流れについて、図9に示すフローチャートに基づきながら以下に説明する。
【0088】
まず、写真フィルム上に記録されている原画像が読み取られ、原画像の画像データが取得される(ステップ1、以降、S1のように称する)。つぎに、S1において読み取った画像の各画素について、各画素の画像データ(画素値)に対応した補正強度が設定される(S2)。そして、上記S2において設定された補正強度に応じて、各画素の画像データの補正、つまり画像処理が実行される(S3)。S3の後は、上記画像処理された画像データが出力、つまり、写真焼付装置等によって、写真としてプリントアウトされる(S4)。
【0089】
本実施の形態においては、画像処理の一例として、粒状抑制処理と鮮鋭化処理とについて説明したが、上述したとおり、これらの処理に限定されるものではない。すなわち、本実施の形態の画像処理装置2は、各画素を、その画素の有する色および濃度別に応じて処理するものであり、さまざまな画像処理に適用可能である。
【0090】
また、上記においては、各画素の画像データであるRGB値を、一旦YC1C2値に変換した後、このYC1C2値に基づく強度により画像処理を行った。しかしながら、必ずしもこれに限定されるものでない。
【0091】
例えば、各RGB値に対応した補正強度を設定しておき、このRGB値に基づく補正強度により画像処理を行ってもよい。あるいは、RGB値を、例えば、一旦、L*a*b*表色系、L*C*h表色系、または、XYZ表色系で示される値に変換し、一方で各変換値に対応した補正強度を別途設定しておき、この設定された強度により画像処理を行ってもよい。また、RGB値を、色相値、彩度値、および、濃度値で表される値に変換し、一方で変換値に対応した補正強度を別途設定しておき、この設定された強度により画像処理を行ってもよい。
【0092】
また、各画素の画像データ(画素値)が、輝度および色から構成される表色系で表されるものであれば、上記補正強度を用いた画像処理の対象となる画像データの形式は特に限定されない。なお、詳細については省略するが、上記の場合においては、それぞれの形態に則した色および濃度別補正強度設定テーブル部を別途設けておく。
【0093】
ところで、以上の実施の形態で説明した処理は、プログラムで実現することが可能である。このプログラムはコンピュータで読み取り可能な記録媒体に格納されている。本発明では、この記録媒体として、画像処理装置2で処理が行われるために必要な図示していないメモリ(例えばROMそのもの)であってもよいし、また図示していないが外部記憶装置としてプログラム読み取り装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであっても構わない。
【0094】
上記いずれの場合においても、格納されているプログラムはマイクロプロセッサ(図示せず)のアクセスにより実行される構成であってもよいし、格納されているプログラムを読み出し、読み出したプログラムを図示されていないプログラム記憶エリアにダウンロードすることにより、そのプログラムが実行される構成であってもよい。この場合、ダウンロード用のプログラムは予め本体装置に格納されているものとする。
【0095】
ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フロッピー(登録商標)ディスクやハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリーカードを含む)/光カードのカード系、あるいはマスクROM、EPROM、フラッシュROM等による半導体メモリを含めた固定的にプログラムを担持する媒体であってもよい。
【0096】
【発明の効果】
本発明の画像処理装置は、以上のように、前記各画素の画素値に応じて、前記各画素の画素値に対する補正強度が設定されている補正強度設定部と、前記補正強度を用いて、前記各画素の画素値を補正する画像補正部とを備えることを特徴とするものである。
【0097】
それゆえ、補正強度を、補正の内容、つまり画像処理の内容に応じて適宜設定することにより、原画像の画像データにおける個々の画素値に則した画像処理を行うことができる画像処理装置を提供することが可能となるという効果を奏する。
【0098】
また、本発明の画像処理装置は、上記の画像処理装置において、前記各画素の画素値は、輝度および色から構成される表色系で表される画素値であるものである。
【0099】
それゆえ、輝度および色に応じて、補正強度を設定することが可能となるという効果を奏する。
【0100】
また、本発明の画像処理装置は、上記の画像処理装置において、前記表色系は、輝度および色差によるYC1C2色度座標系であるものである。
【0101】
それゆえ、輝度および色差に応じて、補正強度を設定することが可能になるという効果を奏する。
【0102】
また、本発明の画像処理装置は、上記の画像処理装置において、前記補正強度を変更するための補正強度変更部をさらに備えるものである。
【0103】
それゆえ、ユーザが、適宜、上記補正強度を変更することにより、ユーザの好みに応じた画像処理が可能となるという効果を奏する。
【0104】
また、本発明の画像処理装置は、上記の画像処理装置において、前記画像補正部で行われる補正が、粒状抑制を行うための補正であるものである。
【0105】
それゆえ、原画像において粒状が目立つ画素値を有する画素に対しては強い強度で粒状抑制処理を行い、粒状が目立たない画素値を有する画素に対しては弱い強度で粒状抑制処理を行うことができる。その結果、画像全体としての鮮鋭度を保った状態のまま、画像全体の粒状抑制が可能となるという効果を奏する。
【0106】
また、本発明の画像処理装置は、上記の画像処理装置において、前記画像補正部で行われる補正が、鮮鋭化を行うための補正であるものである。
【0107】
それゆえ、鮮鋭化処理を行うことによりざらつき感が目立たない画素値を有する画素に対しては強い強度で鮮鋭化処理を行い、ざらつき感の目立つ画素値を有する画素に対しては弱い強度で鮮鋭化処理を行うことができる。その結果、画像全体として、ざらつき感を抑え状態のまま、画像全体の鮮鋭度を向上させることが可能となるという効果を奏する。
【0108】
本発明の画像処理方法は、以上のように、前記各画素の画素値に応じて、前記各画素の画素値に対する補正強度を設定する補正強度設定ステップと、前記補正強度を用いて、前記各画素の画素値を補正する画像処理ステップとを備える方法である。
【0109】
それゆえ、補正強度を、補正の内容、つまり画像処理の内容に応じて適宜設定することにより、画像データの画素値に則した画像処理方法を提供することが可能となるという効果を奏する。
【0110】
また、本発明に係る画像処理プログラムは、上記画像処理装置の各部としてコンピュータを機能させるためのものである。
【0111】
それゆえ、上記プログラムをコンピュータシステムにロードすることによって、上記画像処理装置をユーザに提供することが可能となるという効果を奏する。
【0112】
また、本発明に係る画像処理プログラムは、上記の画像処理方法をコンピュータに実行させるためのものである。
【0113】
それゆえ、上記プログラムをコンピュータシステムにロードすることによって、上記画像処理方法をユーザに提供することが可能となるという効果を奏する。
【0114】
また、本発明に係る画像処理プログラムを記録した記録媒体は、上記画像処理プログラムを記録しているものである。
【0115】
それゆえ、上記記録媒体に記録されている画像処理プログラムをコンピュータシステムにロードすることによって、上記画像処理装置または画像処理方法をユーザに提供することが可能となるという効果を奏する。
【図面の簡単な説明】
【図1】本発明の一実施形態に係る、画像出力システムの概略構成を示すブロック図である。
【図2】YC1C2変換した後の画素値を示す説明図である。
【図3】粒状抑制処理に用いられるフィルタを示した説明図である。
【図4】フィルタ処理を説明するための説明図である。
【図5】色および濃度別補正強度設定テーブル部をあらわす概念図である。
【図6】上記色および濃度別補正強度設定テーブル部を説明する説明図である。
【図7】鮮鋭化処理に用いられるフィルタを示した説明図である。
【図8】補正強度に対する、処理内容および処理の強弱を示す説明図である。
【図9】上記画像出力システムにおける処理の流れを示すフローチャートである。
【符号の説明】
1 画像入力部
2 画像処理装置
3 画像出力部
4 色および濃度別補正強度設定テーブル部(補正強度設定部)
5 テーブル作成部(補正強度変更部)
6 入力指示部(補正強度変更部)
7 画像処理部(画像補正部)[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing method for reading an original image as digital image data and correcting the pixel value of each pixel with respect to the image data of the original image when exposing photographic paper by a digital exposure method. is there.
[0002]
[Prior art]
Conventionally, based on digital image data obtained by reading an image on a photographic film with a scanner or digital image data obtained by photographing with a digital camera, monochromatic light of red, blue, green is applied to each pixel. Digital exposure for printing by irradiating onto photographic paper is performed. In addition, before performing the digital exposure, the digital image data is subjected to image processing such as color correction processing, density correction processing, graininess suppression processing, or sharpening processing to meet the user's request. Images can also be provided easily.
[0003]
Among the image processing described above, for example, various sharpening processes are described in JP-A-5-167852, JP-A-6-68252, JP-A-2000-278532, and JP-A-2002-77668. Technology is disclosed.
[0004]
Specifically, Japanese Patent Application Laid-Open No. 5-167852 discloses a technique for eliminating roughness of a flat portion of density and enhancing a contour portion as desired. Also, Japanese Patent Application Laid-Open No. 6-68252 discloses a technique for automatically performing sharpening with optimum and high image quality according to each image for an unspecified number of images having different degrees of blur. . Furthermore, the invention described in Japanese Patent Application Laid-Open No. 2000-278532 is an invention made by the inventor of the present application. In the above-mentioned publication, it is detected whether or not a predetermined image constitutes a line image. There is disclosed a technique for sharpening only image data corresponding to a line image based on a detection result. Japanese Patent Application Laid-Open No. 2002-77668 discloses a technique capable of performing natural contour correction without glare at an edge portion of an image.
[0005]
Various techniques are disclosed in JP-A-11-289468, JP-A-11-298838, and JP-A-2001-218015 as image processing performed simultaneously with the graininess suppression processing and the sharpening processing. ing.
[0006]
Specifically, Japanese Patent Application Laid-Open No. 11-289468 discloses a technique for suppressing the graininess of a flat portion, suppressing the graininess of a specific density region, and enhancing the sharpness of only edges. Also, Japanese Patent Application Laid-Open No. 11-298838 discloses a technique for effectively satisfying both graininess suppression and sharpness strength, and for preventing portions that should not be grained from being mistakenly grained. ing. Further, Japanese Patent Application Laid-Open No. 2001-218015 discloses a technique in which a photographic scene is determined and optimal grain suppression processing and sharpening enhancement processing are performed based on the determination result.
[0007]
[Problems to be solved by the invention]
By the way, image processing performed on digital image data, including the image processing described in each of the above publications, is generally performed on the entire area of the digital image or a part of the digital image. When performing various types of image processing on the digital image data, image processing is performed on the entire area or a part of the area using a so-called filter. In other words, image processing of the same content is generally performed on digital image data in the entire area or a part of the area regardless of each data information of the digital image data. Further, as described in JP-A-11-289468, there is a case where image processing is performed only on a specific density area. Image processing of the same content is performed on the data.
[0008]
In other words, in the conventional image processing, each digital image data to be subjected to one image processing is subjected to the image processing with the same intensity. That is, adjacent image data having different image data, for example, dat 1 (R 1 , G 1 , B 1 ) And dat 2 (R 2 , G 2 , B 2 ), Image processing is performed with the same intensity.
[0009]
For this reason, for example, even if the above-described graininess suppression processing and / or sharpening processing is performed, the image processing according to the pixel value of each pixel in the digital image data is not performed. There is a problem that a subsequent image cannot be obtained. That is, if the graininess suppression process is taken as an example, graininess suppression is performed on pixels having image data with less noticeable graininess at the same intensity as pixels having image data with less noticeable graininess. As a result, the entire image is blurred.
[0010]
In addition, in order to avoid the entire image being blurred as described above, in the method of selecting a part of the area and performing processing on each area, it is necessary to specify the area each time, which is troublesome. Take it. In particular, when processing is performed at different intensities for each region, the operation becomes more troublesome.
[0011]
The present invention has been made in view of the above conventional problems, and has as its object to provide an image processing apparatus, an image processing method, and an image processing method capable of performing image processing according to the pixel value of each pixel in digital image data. It is an object of the present invention to provide a processing program and a recording medium storing an image processing program.
[0012]
[Means for Solving the Problems]
The image processing apparatus of the present invention, in order to solve the above-described problem, in an image processing apparatus that corrects a pixel value of each pixel with respect to image data of an original image, according to a pixel value of each pixel, The image processing apparatus further includes a correction intensity setting unit that sets a correction intensity for a pixel value of each pixel, and an image correction unit that corrects a pixel value of each pixel using the correction intensity.
[0013]
According to the above invention, first, the correction intensity setting unit sets the correction intensity according to the pixel value of each pixel. That is, the correction strength is set for each pixel value. Then, the image correction unit corrects the pixel value of each pixel using the correction intensity. That is, the pixel value is corrected by the correction intensity corresponding to each pixel value.
[0014]
Therefore, by appropriately setting the correction strength according to the content of the correction, that is, the content of the image processing, an image processing apparatus capable of performing image processing in accordance with individual pixel values in the image data of the original image is provided. Can be provided.
[0015]
The image processing apparatus of the present invention is characterized in that, in the above-described image processing apparatus, the pixel value of each pixel is a pixel value represented by a color system composed of luminance and color.
[0016]
According to the above invention, the pixel value is represented by a color system composed of luminance and color.
[0017]
Therefore, it is possible to set the correction strength according to the luminance and the color.
[0018]
Further, according to the image processing apparatus of the present invention, in the above-described image processing apparatus, the color system is YC based on luminance and color difference. 1 C 2 It is characterized by a chromaticity coordinate system.
[0019]
According to the above invention, the color system is YC 1 C 2 It is a chromaticity coordinate system. That is, the pixel value is represented by luminance and color difference.
[0020]
Therefore, it is possible to set the correction strength according to the luminance and the color difference.
[0021]
Further, the image processing apparatus according to the present invention is characterized in that, in the above-described image processing apparatus, a correction intensity changing unit for changing the correction intensity is further provided.
[0022]
According to the above invention, the correction intensity once set can be changed by the correction intensity changing unit.
[0023]
Therefore, by appropriately changing the correction intensity, the user can perform image processing according to the user's preference.
[0024]
Further, in the image processing apparatus according to the present invention, in the above-described image processing apparatus, the correction performed by the image correction unit is a correction for suppressing graininess.
[0025]
According to the above invention, the image correction section performs correction for suppressing graininess.
[0026]
Therefore, it is possible to perform the granular suppression processing with high intensity on the pixels having the pixel values in which the granularity is conspicuous in the original image, and perform the granular suppression processing with the weak intensity on the pixels having the pixel values in which the granularity is not conspicuous. . As a result, it is possible to suppress graininess of the entire image while maintaining the sharpness of the entire image.
[0027]
Further, the image processing apparatus of the present invention is characterized in that, in the above image processing apparatus, the correction performed by the image correction unit is a correction for performing sharpening.
[0028]
According to the above invention, the image correction section performs a correction for performing a sharpening process.
[0029]
Therefore, sharpening processing is performed with high intensity on pixels having pixel values with less noticeable roughness by performing sharpening processing, and sharpening with weak intensity is performed on pixels having pixel values with noticeable roughness. Processing can be performed. As a result, it is possible to improve the sharpness of the entire image while keeping the roughness of the entire image.
[0030]
The image processing method of the present invention, in order to solve the above-described problem, in an image processing method of correcting the pixel value of each pixel with respect to the image data of the original image, according to the pixel value of each pixel, It is characterized by comprising a correction intensity setting step of setting a correction intensity for a pixel value of each pixel, and an image processing step of correcting a pixel value of each pixel using the correction intensity.
[0031]
According to the above method, first, in the correction intensity setting step, the correction intensity according to the pixel value of each pixel is set. That is, the correction strength is set for each pixel value. Then, in the image correction step, the pixel value of each pixel is corrected using the correction intensity. That is, the pixel value is corrected by the correction intensity corresponding to each pixel value.
[0032]
Therefore, by appropriately setting the correction strength according to the content of the correction, that is, the content of the image processing, it is possible to provide an image processing method based on the pixel value of the image data.
[0033]
An image processing program according to the present invention causes a computer to function as each section of the image processing apparatus.
[0034]
By loading the program into a computer system, the image processing apparatus can be provided to a user.
[0035]
Further, an image processing program according to the present invention causes a computer to execute the above image processing method.
[0036]
By loading the program into a computer system, the image processing method can be provided to a user.
[0037]
In addition, a recording medium on which the image processing program according to the present invention is recorded stores the above-mentioned image processing program.
[0038]
By loading the image processing program recorded on the recording medium into a computer system, the user can be provided with the image processing apparatus or the image processing method.
[0039]
BEST MODE FOR CARRYING OUT THE INVENTION
An embodiment of the present invention will be described below with reference to FIGS.
[0040]
FIG. 1 is a block diagram illustrating a schematic configuration of the image output system according to the present embodiment. The image output system includes an
[0041]
The
[0042]
The color and density-dependent correction intensity setting table unit 4 (hereinafter, referred to as an intensity setting table unit) will be described in detail later. 1 C 2 Is a table having values of the respective correction intensities according to the values of. The table creation unit 5 is a block for creating and / or changing each correction intensity in the color and density-specific correction intensity setting table in accordance with an instruction from the
[0043]
Further, the image processing unit 7 outputs image data (YC) of each pixel from the
[0044]
The
[0045]
The
[0046]
Next, image processing performed in the
[0047]
First, a description will be given below assuming that the image processing performed by the image processing unit 7 is a graininess suppression process. Note that the image processing performed by the image processing unit 7 is not limited to the above-described graininess suppression processing, but may be a sharpening processing described later, or may be another image processing. .
[0048]
As described above, the image data (pixel value) of each pixel output from the
[0049]
In the present embodiment, YC of each pixel 1 C 2 The intensity at the time of performing the graininess suppression processing is changed according to the value. Hereinafter, an example of the above-described graininess suppression processing will be described.
[0050]
When performing the graininess suppression process, for example, a filter called a moving average filter as shown in FIG. 3 is generally used. Here, when the granularity suppression processing of the pixel E which is an arbitrary pixel is performed using the moving average filter, as shown in FIG. 4, the image data (Y E , C 1E , C 2E ) And the image data of the pixels A, B, C, D, F, G, H, and I existing around the pixel E, thereby suppressing the granularity.
[0051]
That is, the image data E ′ (Y E ' , C 1E ' , C 2E ' ) Is, for example, a value represented by the following equation (1). However, in equation (1), (Y A , C 1A , C 2A ) Indicates the image data of the pixel A, and the other pixels have the same notation. Further, the coefficient a in the above equation (1) is referred to as a correction intensity here.
[0052]
(Equation 1)
[0053]
Here, in the
[0054]
As described above, the image data (Y, C 1 , C 2 The correction intensity a is determined according to the value of ()). The correspondence between the image data and the correction strength a is set in the correction strength setting
[0055]
In each cell of the correction strength setting
[0056]
Further, assuming that an axis that is parallel to the z direction and passes through the center of the correction intensity setting
[0057]
Here, in the case of performing the graininess suppression processing, since the line of sight of a person who views a photograph is directed to a person, it is preferable to increase the strength of graininess suppression for a color close to skin color. Further, regarding the luminance, it is preferable to set the strength of the granularity suppression according to the luminance. On the other hand, if the graininess suppression process is performed with the same intensity for all colors, the sharpness of the image is reduced due to the graininess suppression effect. That is, in the correction strength setting
[0058]
Therefore, the value of the correction intensity a is set to a large value for a color close to the flesh color (region T in FIG. 6). For example, when the graininess suppression process is performed using Expression (1), the value of the correction strength a is set to 1. Here, when the image data of the pixel E is a color close to the flesh color, the correction intensity a is set to 1 so that the image data E ′ (Y E ' , C 1E ' , C 2E ' ) Is a value represented by the following equation (2), and the pixel E is an image in which surrounding image data is mixed, that is, a blurred image. That is, the graininess suppression processing of the pixel E portion is effectively performed.
[0059]
(Equation 2)
[0060]
On the other hand, for a color (for example, cell U in FIG. 6) far from the color close to the flesh color, the value of the correction intensity a is set to a small value. For example, when the graininess suppression process is performed using Expression (1), the value of the correction strength a is set to 0.1. Here, when the image data of the pixel E is a color distant from the color close to the flesh color, by setting the correction intensity a to 0.1, the image data E ′ (Y E ' , C 1E ' , C 2E ' ) Is the image data E (Y) of the pixel E before the granularity suppression processing. E , C 1E , C 2E ) Is image data having a large contribution ratio. That is, the pixel E becomes an image with almost no blur.
[0061]
As described above, increasing the value of the correction strength a increases the degree of blur of the image, and conversely, decreasing the value of the correction strength a decreases the degree of blur of the image. If the value of the correction strength a is set to 0, the original image data becomes the processed image data as it is.
[0062]
That is, to explain with reference to FIG. 1, first, the image data output from the
[0063]
As described above, by changing the correction intensity a for each color and density, it becomes possible to perform image processing in accordance with the data characteristics (color and density) of the image data. In other words, it is possible to perform the graininess suppression process with high intensity on image data with noticeable graininess, and to perform the graininess suppression process with weak intensity on image data with less noticeable graininess. As a result, it is possible to suppress graininess of the entire image while maintaining the sharpness of the entire image.
[0064]
Note that the information on the strength in the cell is a value set in advance, but is not limited to this, and the user can reset the strength. In this case, the table creation unit 5 and the
[0065]
Further, in the above-described graininess suppression processing, a moving average filter as shown in FIG. 3 is used. However, the present invention is not limited to this, and any filter may be used as long as it is suitable for the graininess suppression processing.
[0066]
In the above description, the image processing performed by the image processing unit 7 has been described as the graininess suppression processing. Therefore, hereinafter, the image processing performed by the image processing unit 7 will be described as a sharpening process. Further, the sharpening processing of the present embodiment is different from the sharpening processing except that a filter used for the processing, a processing (operation) method by the filter, and a correction intensity given to each cell of the intensity setting table for each color and density are different from each other. For example, since the process is the same as the above-described graininess suppression process, the description of the same portion as the graininess suppression process will be omitted.
[0067]
When performing the sharpening process, for example, a filter called a Laplacian filter as shown in FIG. 7 is generally used. Here, when the sharpening process of the pixel E, which is an arbitrary pixel, is performed using the Laplacian filter, the image data of the pixel E (Y E , C 1E , C 2E ) And image data of pixels A, B, C, D, F, G, H, and I existing around the pixel E, and a sharpening process is performed.
[0068]
That is, the image data E ′ (Y E ' , C 1E ' , C 2E ' ) Is, for example, a value represented by the following equation (3).
[0069]
[Equation 3]
[0070]
In the case of the sharpening process, similarly to the case of the graininess suppression process, in the
[0071]
Here, the correction strength setting
[0072]
Also, in the
[0073]
Further, the correction intensity stored in each of the above cells will be described as follows. In the case of performing the sharpening process, it is preferable to increase the strength of graininess suppression for a color having high saturation. Further, as for the luminance, it is preferable that the sharpening strength is increased for a color having a lower luminance. That is, it is desirable to increase the sharpening strength for a color having a high saturation and a low luminance (for example, the region V in FIG. 6).
[0074]
On the other hand, when the sharpening process is performed on all the colors at the same intensity as the color having the high saturation and the low luminance, the portion of the color having the low saturation and the high luminance due to the sharpening effect is obtained. Roughness may occur, and the image may have an uncomfortable feeling. In particular, when the color portion having low saturation and high luminance corresponds to a flat portion (for example, a wall or the sky) of the original image, the roughness is particularly conspicuous. Therefore, in the correction intensity setting table section 4 ', the intensity of the sharpening is set to be smaller for a color (for example, the area W in FIG. 6) which is separated from a color having a high saturation and a low luminance.
[0075]
In other words, for a color with high saturation and low luminance, the value of the correction intensity a is set to a large value. For example, when performing the sharpening process using Expression (3), the value of the correction intensity a is set to 1. Here, when the color of the image data of the pixel E is high in color and low in luminance, the correction intensity a is set to 1 so that the image data E ′ (Y E ' , C 1E ' , C 2E ' ) Is a value represented by the following equation (4).
[0076]
(Equation 4)
[0077]
That is, when there is a color difference (difference in image data) between the pixel E and the pixels around the pixel E, and the surrounding pixels include many bright colors, the pixel E becomes brighter. Further, when there is a color difference (difference in image data) between the pixel E and the pixels surrounding the pixel E, and the surrounding pixels include many dark colors, the pixel E becomes darker. Therefore, the sharpening process of the pixel E portion is effectively performed.
[0078]
On the other hand, for a color having low saturation and high luminance, the value of the correction intensity a is set to a small value. For example, when performing the sharpening process using Expression (3), the value of the correction intensity a is set to 0.1. Here, when the saturation of the image data of the pixel E is low and the luminance is high, the correction intensity a is set to 0.1, so that the image data E ′ (Y E ' , C 1E ' , C 2E ' ) Indicates image data E (Y) of the pixel E before the sharpening process. E , C 1E , C 2E ) Is image data having a large contribution ratio. That is, the pixel E is an image that is hardly sharpened.
[0079]
As described above, increasing the value of the correction intensity a increases the sharpness of the image, and conversely, decreasing the value of the correction intensity a decreases the sharpness of the image. If the value of the correction strength a is set to 0, the original image data becomes the processed image data as it is.
[0080]
As described above, by changing the correction intensity a for each color and density, it becomes possible to perform image processing in accordance with the data characteristics (color and density) of the image data. That is, it is possible to perform sharpening processing with high intensity on image data in which roughness is not conspicuous, and perform sharpening processing with low intensity on image data in which roughness is conspicuous. As a result, it is possible to improve the sharpness of the entire image while keeping the roughness of the entire image.
[0081]
Note that the correction strength setting table section 4 'is an example, and the present invention is not limited to this. In the above description, a Laplacian filter is used as a filter. However, the filter is not limited to this, and any filter may be used as long as it is suitable for sharpening processing.
[0082]
In the above description, the correction intensity setting
[0083]
Image data for which it is preferable to perform the graininess suppression process at a high intensity and image data for which it is preferable to perform a sharpening process at a low intensity are image data having similar information (hereinafter, the same type of image data). That is, image data having relatively low saturation corresponds to the same type of image data.
[0084]
Further, image data for which it is preferable to perform the graininess suppression process at a low intensity and image data for which it is preferable to perform a sharpening process at a high intensity are image data (same type image data) having similar information. That is, image data with high saturation corresponds to the same type of image data. Therefore, as described below, the correction intensity setting
[0085]
First, the correction strength a stored in each cell of the correction strength setting
[0086]
As described above, considering that the graininess suppression processing and the sharpening processing are mutually contradictory processings, by giving the correction strength a a plus or minus sign, one correction strength setting
[0087]
Next, the flow of processing of the image output system shown in FIG. 1 will be described below with reference to the flowchart shown in FIG.
[0088]
First, an original image recorded on a photographic film is read, and image data of the original image is obtained (
[0089]
In the present embodiment, the graininess suppression processing and the sharpening processing have been described as examples of the image processing. However, as described above, the processing is not limited to these processings. That is, the
[0090]
In the above description, the RGB values as the image data of each pixel are once converted to YC values. 1 C 2 After converting to a value, 1 C 2 Image processing was performed by intensity based on the value. However, it is not necessarily limited to this.
[0091]
For example, a correction intensity corresponding to each RGB value may be set, and image processing may be performed using the correction intensity based on the RGB values. Alternatively, the RGB values are temporarily converted to values represented by, for example, an L * a * b * color system, an L * C * h color system, or an XYZ color system, while corresponding to each converted value. The corrected intensity may be set separately, and the image processing may be performed using the set intensity. In addition, the RGB values are converted into values represented by hue values, saturation values, and density values, while a correction intensity corresponding to the converted values is separately set, and image processing is performed using the set intensity. May be performed.
[0092]
If the image data (pixel value) of each pixel is represented by a color system composed of luminance and color, the format of the image data to be subjected to the image processing using the correction intensity is particularly Not limited. Although detailed description is omitted, in the above case, a correction intensity setting table for each color and density according to each mode is separately provided.
[0093]
By the way, the processing described in the above embodiment can be realized by a program. This program is stored in a computer-readable recording medium. In the present invention, the recording medium may be a memory (for example, ROM itself) (not shown) necessary for processing by the
[0094]
In any of the above cases, the stored program may be configured to be executed by accessing a microprocessor (not shown), or the stored program may be read and the read program may not be shown. The program may be executed by downloading the program to the program storage area. In this case, it is assumed that the download program is stored in the main device in advance.
[0095]
Here, the program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a floppy (registered trademark) disk or a hard disk, or a CD-ROM / MO / It is a disk system of an optical disk such as an MD / DVD, a card system of an IC card (including a memory card) / optical card, or a medium that carries a fixed program including a semiconductor memory such as a mask ROM, EPROM, flash ROM, or the like. You may.
[0096]
【The invention's effect】
The image processing device of the present invention, as described above, according to the pixel value of each pixel, a correction intensity setting unit in which a correction intensity for the pixel value of each pixel is set, using the correction intensity, An image correction unit that corrects a pixel value of each pixel.
[0097]
Therefore, there is provided an image processing apparatus capable of performing image processing in accordance with individual pixel values in image data of an original image by appropriately setting the correction strength according to the content of correction, that is, the content of image processing. This has the effect of making it possible to perform
[0098]
Further, according to the image processing apparatus of the present invention, in the above-described image processing apparatus, the pixel value of each pixel is a pixel value represented by a color system composed of luminance and color.
[0099]
Therefore, there is an effect that the correction intensity can be set according to the luminance and the color.
[0100]
Further, according to the image processing apparatus of the present invention, in the above-described image processing apparatus, the color system is YC based on luminance and color difference. 1 C 2 It is a chromaticity coordinate system.
[0101]
Therefore, there is an effect that the correction intensity can be set according to the luminance and the color difference.
[0102]
Further, the image processing apparatus of the present invention, in the above-described image processing apparatus, further includes a correction intensity changing unit for changing the correction intensity.
[0103]
Therefore, there is an effect that the user can change the correction intensity as appropriate to perform image processing according to the user's preference.
[0104]
Further, according to the image processing apparatus of the present invention, in the above-described image processing apparatus, the correction performed by the image correction unit is a correction for suppressing graininess.
[0105]
Therefore, it is possible to perform the granular suppression processing with a strong intensity on the pixels having the pixel values in which the granularity is conspicuous in the original image, and perform the granular suppression processing with the weak intensity on the pixels having the pixel values in which the granularity is not conspicuous. it can. As a result, it is possible to suppress the graininess of the entire image while maintaining the sharpness of the entire image.
[0106]
In the image processing apparatus according to the present invention, in the above-described image processing apparatus, the correction performed by the image correction unit is a correction for performing sharpening.
[0107]
Therefore, by performing the sharpening process, a sharpening process is performed with a strong intensity on a pixel having a pixel value with which the roughness is not noticeable, and a sharpness is performed with a weak intensity on a pixel having a pixel value with a noticeable roughness. Can be performed. As a result, there is an effect that the sharpness of the entire image can be improved while the roughness of the entire image is suppressed.
[0108]
As described above, the image processing method of the present invention, according to the pixel value of each pixel, a correction intensity setting step of setting a correction intensity for the pixel value of each pixel, using the correction intensity, Image processing step of correcting the pixel value of the pixel.
[0109]
Therefore, by appropriately setting the correction strength according to the content of the correction, that is, the content of the image processing, it is possible to provide an image processing method based on the pixel value of the image data.
[0110]
An image processing program according to the present invention causes a computer to function as each section of the image processing apparatus.
[0111]
Therefore, there is an effect that the image processing apparatus can be provided to the user by loading the program into the computer system.
[0112]
Further, an image processing program according to the present invention causes a computer to execute the above image processing method.
[0113]
Therefore, there is an effect that the image processing method can be provided to the user by loading the program into the computer system.
[0114]
In addition, a recording medium on which the image processing program according to the present invention is recorded stores the above-mentioned image processing program.
[0115]
Therefore, by loading the image processing program recorded on the recording medium into a computer system, it is possible to provide the image processing apparatus or the image processing method to a user.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a schematic configuration of an image output system according to an embodiment of the present invention.
FIG. 2 YC 1 C 2 FIG. 9 is an explanatory diagram showing pixel values after conversion.
FIG. 3 is an explanatory diagram showing a filter used in the granularity suppression processing.
FIG. 4 is an explanatory diagram for describing a filtering process.
FIG. 5 is a conceptual diagram showing a correction intensity setting table for each color and density.
FIG. 6 is an explanatory diagram for explaining the correction intensity setting table for each color and density.
FIG. 7 is an explanatory diagram showing a filter used for a sharpening process.
FIG. 8 is an explanatory diagram showing processing contents and processing strength with respect to correction intensity.
FIG. 9 is a flowchart showing a flow of processing in the image output system.
[Explanation of symbols]
1 Image input section
2 Image processing device
3 Image output section
4 Color and density correction intensity setting table section (correction intensity setting section)
5 Table creation unit (correction intensity change unit)
6 Input instruction part (correction intensity change part)
7 Image processing unit (image correction unit)
Claims (10)
前記各画素の画素値に応じて、前記各画素の画素値に対する補正強度が設定されている補正強度設定部と、
前記補正強度を用いて、前記各画素の画素値を補正する画像補正部とを備えることを特徴とする画像処理装置。In an image processing device that corrects a pixel value of each pixel with respect to image data of an original image,
A correction intensity setting unit in which a correction intensity for the pixel value of each pixel is set according to the pixel value of each pixel;
An image processing apparatus comprising: an image correction unit that corrects a pixel value of each of the pixels using the correction intensity.
前記各画素の画素値に応じて、前記各画素の画素値に対する補正強度を設定する補正強度設定ステップと、
前記補正強度を用いて、前記各画素の画素値を補正する画像補正ステップとを備えることを特徴とする画像処理方法。In an image processing method for correcting the pixel value of each pixel with respect to image data of an original image,
A correction intensity setting step of setting a correction intensity for the pixel value of each pixel according to a pixel value of each pixel;
An image correction step of correcting a pixel value of each pixel using the correction intensity.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002225936A JP2004072234A (en) | 2002-08-02 | 2002-08-02 | Image processing apparatus, image processing method, image processing program, and recording medium storing image processing program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002225936A JP2004072234A (en) | 2002-08-02 | 2002-08-02 | Image processing apparatus, image processing method, image processing program, and recording medium storing image processing program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2004072234A true JP2004072234A (en) | 2004-03-04 |
Family
ID=32013433
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002225936A Pending JP2004072234A (en) | 2002-08-02 | 2002-08-02 | Image processing apparatus, image processing method, image processing program, and recording medium storing image processing program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2004072234A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006142004A (en) * | 2004-10-20 | 2006-06-08 | Fuji Photo Film Co Ltd | Sharpness adjustment method, program and electronic endoscope apparatus |
-
2002
- 2002-08-02 JP JP2002225936A patent/JP2004072234A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006142004A (en) * | 2004-10-20 | 2006-06-08 | Fuji Photo Film Co Ltd | Sharpness adjustment method, program and electronic endoscope apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4081219B2 (en) | Image processing method and image processing apparatus | |
| JP2002262094A (en) | Image processing method and image processor | |
| EP1139284B1 (en) | Method and apparatus for performing local color correction | |
| JPH09121361A (en) | Digital color processing method | |
| JP2003204459A (en) | Digital camera and image reproducing apparatus | |
| JP2002125130A (en) | Image processing apparatus, image processing method, and recording medium recording image processing program | |
| US20040184672A1 (en) | Image processing method and apparatus for correcting photographic images | |
| JP2004030370A (en) | Image processing method, image processing program, and recording medium storing image processing program | |
| JPH10111928A (en) | Method and device for image processing | |
| JP3581270B2 (en) | Image processing apparatus, image processing method, and recording medium recording image processing program | |
| JPH11266358A (en) | Image processing method | |
| JP2000156785A (en) | Image processing method and image processor | |
| US7515181B2 (en) | Method, apparatus, and program for image processing on image data that have already been subjected to image processing | |
| JP4123900B2 (en) | Image processing method, image processing apparatus, image processing program, and recording medium on which image processing program is recorded | |
| JP2002044469A (en) | Image processing method and recording medium recording image processing program | |
| JP3823865B2 (en) | Image processing method, image processing program, and recording medium on which image processing program is recorded | |
| JPH11317863A (en) | Image processing unit | |
| JP2000224418A (en) | Mask for changing lightness profile of photo copying | |
| JP2004072234A (en) | Image processing apparatus, image processing method, image processing program, and recording medium storing image processing program | |
| JP3823883B2 (en) | Image processing apparatus, image processing method, image processing program, recording medium recording image processing program, and photo printing apparatus | |
| US6037109A (en) | Device and method for reproducing originals onto light-sensitive material | |
| JP4091220B2 (en) | Image processing method and apparatus, and recording medium | |
| JP2001245153A (en) | Image processing method and apparatus | |
| JP2003263634A (en) | Image processing method, image processing program, and recording medium storing image processing program | |
| JP2000261719A (en) | Image processing method, its system and recording medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050615 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070813 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070911 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071109 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080311 |