JP2007142639A - Imaging apparatus and program therefor - Google Patents

Imaging apparatus and program therefor Download PDF

Info

Publication number
JP2007142639A
JP2007142639A JP2005331572A JP2005331572A JP2007142639A JP 2007142639 A JP2007142639 A JP 2007142639A JP 2005331572 A JP2005331572 A JP 2005331572A JP 2005331572 A JP2005331572 A JP 2005331572A JP 2007142639 A JP2007142639 A JP 2007142639A
Authority
JP
Japan
Prior art keywords
image data
correction processing
fading correction
fading
color
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
Application number
JP2005331572A
Other languages
Japanese (ja)
Inventor
Keiichi Imamura
圭一 今村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2005331572A priority Critical patent/JP2007142639A/en
Publication of JP2007142639A publication Critical patent/JP2007142639A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an imaging apparatus in which a faded photography can be restored well easily, and to provide a program therefor. <P>SOLUTION: Based on image data obtained by still image photography processing, a quadrilateral profile, i. e. the profile of photograph, is detected (S8). Image data in the detected quadrilateral profile is extracted (S9) and small image data is generated from the extracted image data (S10). The small image data is subjected to trapezoidal/barrel distortion correction processing and fading correction processing (S11, S12) and the corrected small image data is displayed at an image display section 15. Based on a trimming range specified by a user, trimming image data is generated from image data in the extracted quadrilateral profile and subjected to trapezoidal/barrel distortion correction processing and fading correction processing before being recorded in a flash memory 13. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、撮像装置及びそのプログラムに係り、詳しくは、退色した写真を復元する機能を搭載した撮像装置及びそのプログラムに関する。   The present invention relates to an image pickup apparatus and a program thereof, and more particularly, to an image pickup apparatus having a function of restoring a faded photograph and a program thereof.

時間の経過とともに写真が退色していき、その退色した写真を元の鮮やかな写真に復元する技術が登場してきている。
例えば、パソコンやプリンタで退色した写真の画像データをスキャナで取り込み、ユーザによってン入力された退色要因データに基づいて、該取り込んだ画像データに退色補正処理を施すことにより退色した画像を復元するというものである(特許文献1)。
また、スキャナの替わりにデジタルカメラで退色した写真を撮影し、該得られた撮影画像データをパソコン等に取り込ませ、退色補正処理を行なわせるという方法もある。
With the passage of time, photos fade, and technology to restore the faded photos to their original vivid photos has appeared.
For example, image data of a photo faded by a personal computer or a printer is captured by a scanner, and the faded image is restored by applying a color fading correction process to the captured image data based on the color fading factor data input by the user. (Patent Document 1).
There is also a method of taking a photo fading with a digital camera instead of a scanner, taking the obtained image data into a personal computer or the like, and performing a fading correction process.

公開特許公報 特開2005−123790JP Patent Publication No. 2005-123790

しかしながら、上記特許文献1記載の技術によれば、以下のような工程を1枚ごとに経なければならず面倒で、手間がかかり、時間がかかりすぎるという問題点があった。
(特許文献1による工程)
まず、アルバムのカラーフィルムを剥がして退色補正したい写真を取り出し、該取り出した写真をスキャナに読み込ませることにより写真の画像データを得る。そして、写真の有効領域を切り出し、該切り出した範囲の画像データに基づいて退色補正処理を施し、退色補正処理後の画像データを記録する。
However, according to the technique described in Patent Document 1, there is a problem in that the following steps must be performed for each sheet, which is troublesome, takes time, and takes too much time.
(Process according to Patent Document 1)
First, the album color film is peeled off to take out a photo to be subjected to fading correction, and the taken photo is read by a scanner to obtain photo image data. Then, an effective area of the photograph is cut out, a fading correction process is performed based on the image data in the cut out area, and the image data after the fading correction process is recorded.

また、カメラで退色した写真を撮影した場合にも、以下のような工程を1枚ごとに経なければならず面倒で、手間がかかり、時間がかかりすぎるという問題点があった。
(カメラを用いた場合の工程)
まず、カメラで退色した写真を撮影する。その際、写真表面の光反射を抑えるために斜めから撮る必要があり、撮影された画像は台形の形をした写真となる。そして、該撮影した撮影画像データをパソコン等に取り込ませ、その後、写真領域の範囲(範囲は台形)を指定し、該範囲の画像データを切り出す。そして、該切り出した台形状の画像を台形補正処理を施すことにより長方形状の画像に変換し、該変換後の画像データに退色補正処理を施し、退色補正処理後の画像データを記録する。
In addition, even when a photograph fading with a camera is taken, there is a problem that the following steps must be performed for each sheet, which is cumbersome, time-consuming, and takes too much time.
(Process when using a camera)
First, take a photo that has faded with the camera. At that time, in order to suppress light reflection on the surface of the photograph, it is necessary to take it from an angle, and the photographed image becomes a trapezoidal photograph. Then, the photographed image data is taken into a personal computer or the like, and then the range of the photographic area (the range is a trapezoid) is designated, and the image data in the range is cut out. Then, the extracted trapezoidal image is converted into a rectangular image by performing a trapezoidal correction process, the color fading correction process is performed on the converted image data, and the image data after the fading correction process is recorded.

また、上述したスキャナやカメラの何れの場合も、写真領域をトリミングする前に退色補正を行なってしまうと、写真領域以外の背景映像のカラースペクトルが退色補正の誤判定を生み、良好な退色補正を行なうことができないという問題点もあった。   Also, in any of the above-described scanners and cameras, if fading correction is performed before trimming the photographic area, the color spectrum of the background image outside the photographic area will cause an erroneous determination of fading correction, and good fading correction. There was also a problem that it was not possible to carry out.

そこで本発明は、かかる従来の問題点に鑑みてなされたものであり、簡易且つ良好に退色した写真を復元することができる撮像装置及びそのプログラムを提供することを目的とする。   Therefore, the present invention has been made in view of such conventional problems, and an object thereof is to provide an imaging apparatus capable of easily and satisfactorily restoring a fading photo and a program thereof.

上記目的達成のため、請求項1記載の発明による撮像装置は、写真を撮影し、該撮影された写真の画像データを用いて、写真の画像の復元を行なう機能を備えた撮像装置であって、
画像データを取得する取得手段と、
前記取得手段により取得された画像データのカラースペクトルに基づいて色度合いを判定する第1の判定手段と、
前記第1の判定手段により判定された色度合いに応じて退色補正処理を、前記取得手段により取得された画像データに施す第1の退色補正処理手段と、
前記第1の退色補正処理手段により退色補正処理が施された画像データを記録手段に記録する記録制御手段と、
を備えたことを特徴とする。
In order to achieve the above object, an imaging apparatus according to a first aspect of the present invention is an imaging apparatus having a function of taking a photograph and restoring the image of the photograph using image data of the photographed photograph. ,
Acquisition means for acquiring image data;
First determination means for determining a color degree based on a color spectrum of the image data acquired by the acquisition means;
First fading correction processing means for applying a fading correction process to the image data acquired by the acquisition means in accordance with the color degree determined by the first determination means;
A recording control means for recording the image data subjected to the fading correction processing by the first fading correction processing means on the recording means;
It is provided with.

また、例えば、請求項2に記載されているように、前記取得手段により取得された画像データに基づいて、写真の輪郭を検出し、該検出した輪郭内の画像データを抽出することにより写真部分の画像データを抽出する抽出手段を備え、
前記第1の判定手段は、
前記抽出手段により抽出された画像データのカラースペクトルに基づいて色度合いを判定し、
前記第1の退色補正処理手段は、前記第1の判定手段により判定された色度合いに応じて退色補正処理を、前記抽出手段により抽出された画像データに施すようにしてもよい。
In addition, for example, as described in claim 2, a photograph portion is detected by detecting a contour of a photograph based on the image data acquired by the acquisition unit and extracting image data in the detected contour. An extraction means for extracting the image data of
The first determination means includes
Determining the degree of color based on the color spectrum of the image data extracted by the extraction means;
The first fading correction processing means may perform a fading correction process on the image data extracted by the extraction means in accordance with the color degree determined by the first determination means.

また、例えば、請求項3に記載されているように、前記抽出手段により抽出された画像データに台形補正処理を施す第1の台形補正処理手段を備え、
前記記録制御手段は、
前記第1の退色補正処理手段により退色補正処理が施され、且つ、前記第1の台形補正処理手段により台形補正処理が施された画像データを前記記録手段に記録するようにしてもよい。
Further, for example, as described in claim 3, the image processing apparatus includes a first trapezoid correction processing unit that performs a keystone correction process on the image data extracted by the extraction unit,
The recording control means includes
Image data that has been subjected to fading correction processing by the first fading correction processing means and has been subjected to trapezoid correction processing by the first trapezoid correction processing means may be recorded in the recording means.

また、例えば、請求項4に記載されているように、前記抽出手段により抽出された画像データに樽型歪補正処理を施す第1の樽型歪補正処理手段を備え、
前記記録制御手段は、
前記第1の退色補正処理手段により退色補正処理が施され、且つ、前記第1の樽型歪補正処理手段により樽型歪補正処理が施された画像データを前記記録手段に記録するようにしてもよい。
Further, for example, as described in claim 4, the image processing apparatus includes first barrel distortion correction processing means for performing barrel distortion correction processing on the image data extracted by the extraction means,
The recording control means includes
Image data that has been subjected to fading correction processing by the first fading correction processing means and that has been subjected to barrel distortion correction processing by the first barrel distortion correction processing means is recorded in the recording means. Also good.

また、例えば、請求項5に記載されているように、画像データからトリミング画像データを生成する生成手段を備え、
前記生成手段は、
前記抽出手段により抽出された画像データからトリミング画像データを生成し、
前記第1の判定手段は、
前記生成手段により生成されたトリミング画像データのカラースペクトルに基づいて色度合いを判定し、
前記第1の退色補正処理手段は、前記第1の判定手段により判定された色度合いに応じて退色補正処理を、前記生成手段により生成されたトリミング画像データに施すようにしてもよい。
Further, for example, as described in claim 5, the image forming apparatus includes a generation unit that generates trimming image data from image data,
The generating means includes
Generating trimmed image data from the image data extracted by the extracting means;
The first determination means includes
Determining the color degree based on the color spectrum of the trimmed image data generated by the generating means;
The first fading correction processing unit may perform a fading correction process on the trimmed image data generated by the generation unit according to the color degree determined by the first determination unit.

また、例えば、請求項6に記載されているように、前記抽出手段により抽出された画像データから画像サイズの小さい小画像データを生成する小画像生成手段と、
前記小画像生成手段により生成された小画像データのカラースペクトルに基づいて色度合いを判定する第2の判定手段と、
前記第2の判定手段により判定された色度合いに応じて退色補正処理を、前記
小画像生成手段により生成された小画像データに施す第2の退色補正処理手段と、
を備えるようにしてもよい。
Further, for example, as described in claim 6, small image generation means for generating small image data having a small image size from the image data extracted by the extraction means;
Second determination means for determining a color degree based on a color spectrum of the small image data generated by the small image generation means;
Second fading correction processing means for performing fading correction processing on the small image data generated by the small image generation means according to the color degree determined by the second determination means;
You may make it provide.

また、例えば、請求項7に記載されているように、前記小画像生成手段により生成された小画像データに台形補正処理を施す第2の台形補正処理手段を備えるようにしてもよい。   Further, for example, as described in claim 7, a second trapezoid correction processing unit that performs trapezoid correction processing on the small image data generated by the small image generation unit may be provided.

また、例えば、請求項8に記載されているように、前記小画像生成手段により生成された小画像データに樽型歪補正処理を施す第2の樽型歪補正処理手段を備えるようにしてもよい。   Further, for example, as described in claim 8, a second barrel distortion correction processing unit that performs barrel distortion correction processing on the small image data generated by the small image generation unit may be provided. Good.

また、例えば、請求項9に記載されているように、前記第2の退色補正処理手段により退色補正処理が施された小画像データを表示手段に表示させる表示制御手段を備えるようにしてもよい。   Further, for example, as described in claim 9, display control means for displaying small image data subjected to fading correction processing by the second fading correction processing means on the display means may be provided. .

また、例えば、請求項10に記載されているように、前記記録制御手段は、
前記第1の退色補正処理手段により退色補正処理が施された画像データを前記記録手段に記録するとともに、該画像データに退色補正処理が施された旨を示す情報を付するようにしてもよい。
For example, as described in claim 10, the recording control unit includes:
Image data that has been subjected to fading correction processing by the first fading correction processing means may be recorded in the recording means, and information indicating that the fading correction processing has been performed may be attached to the image data. .

また、例えば、請求項11に記載されているように、被写体を撮像する撮像手段を備え、
前記取得手段は、
前記撮像手段により得られた画像データを取得するようにしてもよい。
Further, for example, as described in claim 11, an imaging unit that images a subject is provided,
The acquisition means includes
You may make it acquire the image data obtained by the said imaging means.

また、例えば、請求項12に記載されているように、前前記取得手段により取得された画像データに退色補正処理が施された旨を示す情報が付されているか否かを判断する判断手段と、
前記判断手段により退色補正処理が施された旨を示す情報が付されていると判断された場合に、前記取得手段により取得された画像データに対する前記第1の退色補正処理手段による退色補正処理の実行を禁止する禁止手段とを備えるようにしてもよい。
Further, for example, as described in claim 12, a determination unit that determines whether or not information indicating that the color fading correction process has been applied to the image data acquired by the previous acquisition unit ,
When it is determined that the information indicating that the color fading correction processing has been performed by the determination means, the color fading correction processing by the first color fading correction processing means for the image data acquired by the acquisition means. Prohibiting means for prohibiting execution may be provided.

また、例えば、請求項13に記載されているように、前記取得手段は、
前記記録手段に記録されている画像データを取得するようにしてもよい。
For example, as described in claim 13, the acquisition unit includes:
You may make it acquire the image data currently recorded on the said recording means.

また、例えば、請求項14に記載されているように、前記記録制御手段は、
前記取得手段により取得された、前記第1の退色補正処理手段による退色補正処理が施されていない画像データを記録手段に記録する手段を含むようにしてもよい。
For example, as described in claim 14, the recording control unit includes:
The image processing apparatus may include a unit that records the image data acquired by the acquisition unit that has not been subjected to the color fading correction process by the first color fading correction processing unit.

上記目的達成のため、請求項15記載の発明によるプログラムは、写真を撮影し、該撮影された写真の画像データを用いて、写真の画像の復元を行なう機能を備えた撮像装置を実行させるためのプログラムであって、
画像データを取得する取得処理と、
前記取得処理により取得された画像データのカラースペクトルに基づいて色度合いを判定する判定処理と、
前記判定処理により判定された色度合いに応じて退色補正を、前記取得処理により取得された画像データに行なう退色補正処理と、
前記退色補正処理により退色補正が行なわれた画像データを記録媒体に記録する記録処理と、
を含むことを特徴とする。
In order to achieve the above object, a program according to a fifteenth aspect of the present invention is to execute an imaging apparatus having a function of taking a photograph and using the image data of the photographed photograph to restore the photograph image. The program of
Acquisition processing to acquire image data;
A determination process for determining a color degree based on a color spectrum of the image data acquired by the acquisition process;
Fading correction processing for performing fading correction on the image data acquired by the acquisition processing according to the color degree determined by the determination processing;
A recording process for recording the image data subjected to the fading correction by the fading correction process on a recording medium;
It is characterized by including.

請求項1記載の発明によれば、写真を撮影し、該撮影された写真の画像データを用いて、写真の画像の復元を行なう機能を備えた撮像装置であって、画像データを取得する取得手段と、前記取得手段により取得された画像データのカラースペクトルに基づいて色度合いを判定する第1の判定手段と、前記第1の判定手段により判定された色度合いに応じて退色補正処理を、前記取得手段により取得された画像データに施す第1の退色補正処理手段と、前記第1の退色補正処理手段により退色補正処理が施された画像データを記録手段に記録する記録制御手段と、を備えるようにしたので、簡易に退色した写真を復元した画像データを得ることができる。   According to the first aspect of the present invention, there is provided an imaging apparatus having a function of taking a photograph and using the image data of the photographed photograph to restore the photograph image, and acquiring the image data Means, a first determination unit that determines a color degree based on a color spectrum of the image data acquired by the acquisition unit, and a fading correction process according to the color degree determined by the first determination unit. First fading correction processing means applied to the image data obtained by the obtaining means; and recording control means for recording the image data subjected to fading correction processing by the first fading correction processing means on the recording means. Since it is provided, it is possible to obtain image data obtained by restoring a fading photo easily.

請求項2記載の発明によれば、前記取得手段により取得された画像データに基づいて、写真の輪郭を検出し、該検出した輪郭内の画像データを抽出することにより写真部分の画像データを抽出する抽出手段を備え、前記第1の判定手段は、前記抽出手段により抽出された画像データのカラースペクトルに基づいて色度合いを判定し、前記第1の退色補正処理手段は、前記第1の判定手段により判定された色度合いに応じて退色補正処理を、前記抽出手段により抽出された画像データに施すようにしたので、良好に退色した写真を復元した画像データを得ることができる。   According to the invention described in claim 2, based on the image data acquired by the acquisition means, the contour of the photograph is detected, and the image data within the detected contour is extracted, thereby extracting the image data of the photograph portion. Extracting means for determining the color degree based on the color spectrum of the image data extracted by the extracting means, and the first fading correction processing means for determining the first color. Since the color fading correction process is performed on the image data extracted by the extracting means according to the color degree determined by the means, it is possible to obtain image data obtained by restoring a photo fading.

請求項3記載の発明によれば、前記抽出手段により抽出された画像データに台形補正処理を施す第1の台形補正処理手段を備え、前記記録制御手段は、前記第1の退色補正処理手段により退色補正処理が施され、且つ、前記第1の台形補正処理手段により台形補正処理が施された画像データを前記記録手段に記録するようにしたので、写真表面の光反射を抑えるために斜めから撮影した場合であっても、真正面から写真を撮影したような画像(まっすぐな画像)を得ることができる。また、写真表面の光反射を写さなくてすむので、良好な復元画像を得ることができる。   According to a third aspect of the invention, there is provided first trapezoid correction processing means for performing trapezoid correction processing on the image data extracted by the extraction means, and the recording control means is controlled by the first fading correction processing means. Since the image data subjected to the fading correction process and the keystone correction process by the first trapezoid correction process unit is recorded in the recording unit, the image data is obliquely applied to suppress the light reflection on the photographic surface. Even in the case of shooting, it is possible to obtain an image (straight image) as if a photograph was taken from the front. In addition, since it is not necessary to reflect the light reflection on the surface of the photograph, a good restored image can be obtained.

請求項4記載の発明によれば、前記抽出手段により抽出された画像データに樽型歪補正処理を施す第1の樽型歪補正処理手段を備え、前記記録制御手段は、前記第1の退色補正処理手段により退色補正処理が施され、且つ、前記第1の樽型歪補正処理手段により樽型歪補正処理が施された画像データを前記記録手段に記録するようにしたので、レンズによる樽型歪がない良好な復元画像を得ることができる。   According to a fourth aspect of the present invention, the image processing apparatus includes a first barrel distortion correction processing unit that performs barrel distortion correction processing on the image data extracted by the extraction unit, and the recording control unit includes the first color fading. Since the image data subjected to the fading correction processing by the correction processing means and the barrel distortion correction processing by the first barrel distortion correction processing means is recorded in the recording means, the barrel by the lens is used. A good restored image without mold distortion can be obtained.

請求項5記載の発明によれば、画像データからトリミング画像データを生成する生成手段を備え、前記生成手段は、前記抽出手段により抽出された画像データからトリミング画像データを生成し、前記第1の判定手段は、前記生成手段により生成されたトリミング画像データのカラースペクトルに基づいて色度合いを判定し、前記第1の退色補正処理手段は、前記第1の判定手段により判定された色度合いに応じて退色補正処理を、前記生成手段により生成されたトリミング画像データに施すようにしたので、抽出された画像データのうち、必要のない画像データに対して、退色補正処理などの補正処理を施す必要がなく、処理の負担を軽減することができる。   According to a fifth aspect of the present invention, the image forming apparatus includes a generation unit that generates trimming image data from image data, the generation unit generates trimming image data from the image data extracted by the extraction unit, and the first data The determining means determines the color degree based on the color spectrum of the trimmed image data generated by the generating means, and the first fading correction processing means is in accordance with the color degree determined by the first determining means. Since the fading correction processing is performed on the trimmed image data generated by the generating means, it is necessary to perform correction processing such as fading correction processing on unnecessary image data among the extracted image data. The burden of processing can be reduced.

請求項6記載の発明によれば、前記抽出手段により抽出された画像データから画像サイズの小さい小画像データを生成する小画像生成手段と、前記小画像生成手段により生成された小画像データのカラースペクトルに基づいて色度合いを判定する第2の判定手段と、前記第2の判定手段により判定された色度合いに応じて退色補正処理を、前記小画像生成手段により生成された小画像データに施す第2の退色補正処理手段と、を備えるようにしたので、処理負担が少なく、簡易、且つ、迅速に退色した写真を復元した画像データを得ることができる。
また、
According to the sixth aspect of the present invention, a small image generating unit that generates small image data having a small image size from the image data extracted by the extracting unit, and a color of the small image data generated by the small image generating unit. Second determination means for determining the color degree based on the spectrum, and fading correction processing according to the color degree determined by the second determination means are performed on the small image data generated by the small image generation means. Since the second fading correction processing means is provided, it is possible to obtain image data obtained by restoring a fading photograph with a small processing load and with ease and speed.
Also,

請求項7記載の発明によれば、前記小画像生成手段により生成された小画像データに台形補正処理を施す第2の台形補正処理手段を備えるようにしたので、迅速に写真表面の光反射のないまっすぐな復元画像を得ることができる。   According to the seventh aspect of the invention, since the second trapezoid correction processing means for performing the trapezoid correction processing on the small image data generated by the small image generation means is provided, the light reflection of the photographic surface can be promptly reflected. No straight restored image can be obtained.

請求項8記載の発明によれば、前記小画像生成手段により生成された小画像データに樽型歪補正処理を施す第2の樽型歪補正処理手段を備えるようにしたので、迅速にレンズによる樽型歪がない良好な復元画像を得ることができる。   According to the eighth aspect of the present invention, since the second barrel distortion correction processing unit that performs barrel distortion correction processing on the small image data generated by the small image generation unit is provided, the lens can be quickly used. A good restored image without barrel distortion can be obtained.

請求項9記載の発明によれば、前記第2の退色補正処理手段により退色補正処理が施された小画像データを表示手段に表示させる表示制御手段を備えるようにしたので、退色補正処理が施された小画像データの画像をユーザは認識することができる。   According to the ninth aspect of the invention, since the display control means for displaying the small image data subjected to the fading correction process by the second fading correction processing means on the display means is provided, the fading correction process is performed. The user can recognize the image of the small image data.

請求項10記載の発明によれば、前記記録制御手段は、前記第1の退色補正処理手段により退色補正処理が施された画像データを前記記録手段に記録するとともに、該画像データに退色補正処理が施された旨を示す情報を付するようにしたので、記録された画像データが退色補正処理が施された画像データであるか否かを認識することができる。   According to a tenth aspect of the present invention, the recording control unit records the image data subjected to the fading correction process by the first fading correction processing unit on the recording unit, and the color fading correction process on the image data. Since the information indicating that the process has been performed is added, it is possible to recognize whether or not the recorded image data has been subjected to the fading correction process.

請求項11記載の発明によれば、被写体を撮像する撮像手段を備え、前記取得手段は、前記撮像手段により得られた画像データを取得するようにしたので、本発明の撮像装置で撮像された画像データに退色補正処理を施して記録することができ、簡易に退色した写真を復元した画像データを得ることができる。   According to the eleventh aspect of the present invention, the image pickup device for picking up an image of the subject is provided, and the acquisition device acquires the image data obtained by the image pickup device. The image data can be recorded after being subjected to a fading correction process, and image data obtained by easily restoring a fading photo can be obtained.

請求項12記載の発明によれば、前記取得手段により取得された画像データに退色補正処理が施された旨を示す情報が付されているか否かを判断する判断手段と、前記判断手段により退色補正処理が施された旨を示す情報が付されていると判断された場合に、前記取得手段により取得された画像データに対する前記第1の退色補正処理手段による退色補正処理の実行を禁止する禁止手段とを備えるようにしたので、退色補正処理が施されていない画像データに対してのみ退色補正処理を施すことができる。また、退色補正処理が施された画像データに対しては退色補正処理を施さないので、不必要な処理を行わなくてすむ。   According to a twelfth aspect of the present invention, a determination unit that determines whether or not information indicating that the color fading correction process has been performed is attached to the image data acquired by the acquisition unit; and the color fading by the determination unit Prohibition of prohibiting execution of fading correction processing by the first fading correction processing means on the image data acquired by the acquisition means when it is determined that information indicating that correction processing has been performed is attached The fading correction process can be performed only on the image data that has not been subjected to the fading correction process. Further, since the fading correction processing is not performed on the image data that has been subjected to the fading correction processing, unnecessary processing is not required.

請求項13記載の発明によれば、前記取得手段は、前記記録手段に記録されている画像データを取得するようにしたので、記録手段に記録されている画像データに対して退色補正処理を施すことができ、簡易に退色した写真を復元した画像データを得ることができる。   According to a thirteenth aspect of the present invention, since the acquisition unit acquires the image data recorded in the recording unit, the image data recorded in the recording unit is subjected to a fading correction process. Image data obtained by restoring a fading photo can be obtained.

請求項14記載の発明によれば、前記記録制御手段は、前記取得手段により取得された、前記第1の退色補正処理手段による退色補正処理が施されていない画像データを記録手段に記録する手段を含むようにしたので、退色処理が施されていない元の画像データを記録することができる。   According to a fourteenth aspect of the present invention, the recording control means records on the recording means the image data obtained by the obtaining means and not subjected to the fading correction processing by the first fading correction processing means. The original image data that has not been subjected to the fading process can be recorded.

請求項15記載の発明によれば、デジタルカメラ、パソコン等に読み込ませることにより、本発明の撮像装置を実現することができる。   According to the fifteenth aspect of the present invention, the image pickup apparatus of the present invention can be realized by being read by a digital camera, a personal computer or the like.

以下、本実施の形態について、本発明の撮像装置をデジタルカメラに適用した一例として図面を参照して詳細に説明する。
[第1の実施の形態]
A.デジタルカメラの構成
図1は、本発明の撮像装置を実現するデジタルカメラ1の電気的な概略構成を示すブロック図である。
デジタルカメラ1は、フォーカスレンズ2、ズームレンズ3、レンズ駆動回路4、CCD5、垂直ドライバ6、TG(timing generator)7、ユニット回路8、信号処理部9、CPU10、DRAM11、メモリ12、フラッシュメモリ13、キー入力部14、画像表示部15、台形・樽型歪補正部16、退色補正部17を備えている。
Hereinafter, the present embodiment will be described in detail with reference to the drawings as an example in which the imaging apparatus of the present invention is applied to a digital camera.
[First embodiment]
A. Configuration of Digital Camera FIG. 1 is a block diagram showing a schematic electrical configuration of a digital camera 1 that implements the imaging apparatus of the present invention.
The digital camera 1 includes a focus lens 2, a zoom lens 3, a lens driving circuit 4, a CCD 5, a vertical driver 6, a TG (timing generator) 7, a unit circuit 8, a signal processing unit 9, a CPU 10, a DRAM 11, a memory 12, and a flash memory 13. A key input unit 14, an image display unit 15, a trapezoid / barrel distortion correction unit 16, and a fading correction unit 17.

フォーカスレンズ2及びズームレンズ3は、図示しない複数のレンズ群からなり、フォーカスレンズ2及びズームレンズ3には、レンズ駆動回路4が接続されている。
レンズ駆動回路4は、フォーカスレンズ2及びズームレンズ3を光軸方向にそれぞれ移動させるモータ(図示略)と、CPU10から送られてくる制御信号にしたがってフォーカスモータ及びズームモータをそれぞれ駆動させるモータドライバ(図示略)とから構成されている。
The focus lens 2 and the zoom lens 3 are composed of a plurality of lens groups (not shown), and a lens driving circuit 4 is connected to the focus lens 2 and the zoom lens 3.
The lens driving circuit 4 includes a motor (not shown) that moves the focus lens 2 and the zoom lens 3 in the optical axis direction, and a motor driver that drives the focus motor and the zoom motor in accordance with a control signal sent from the CPU 10, respectively. (Not shown).

CCD5は、垂直ドライバ6によって走査駆動され、一定周期毎に被写体像のRGB値の各色の光の強さを光電変換して撮像信号としてユニット回路8に出力する。この垂直ドライバ6、ユニット回路8の動作タイミングはTG7を介してCPU10により制御される。   The CCD 5 is scanned and driven by the vertical driver 6, photoelectrically converts the intensity of light of each color of the RGB value of the subject image at a constant period, and outputs it to the unit circuit 8 as an imaging signal. The operation timings of the vertical driver 6 and unit circuit 8 are controlled by the CPU 10 via the TG 7.

ユニット回路8にはTG7が接続されており、CCD5から出力される撮像信号を相関二重サンプリングして保持するCDS(Correlated Double Sampling)回路、そのサンプリング後の撮像信号の自動利得調整を行うAGC(Automatic Gain Control)回路、その自動利得調整後のアナログの撮像信号をデジタル信号に変換するA/D変換器から構成されており、CCD5の撮像信号は、ユニット回路8を経てデジタル信号として信号処理部9に送られる。   A TG 7 is connected to the unit circuit 8, a CDS (Correlated Double Sampling) circuit that holds the imaging signal output from the CCD 5 by correlated double sampling, and an AGC (Automatic Gain Adjustment of the imaging signal after the sampling) Automatic gain control) circuit, and an A / D converter that converts the analog image pickup signal after the automatic gain adjustment into a digital signal. The image pickup signal of the CCD 5 passes through the unit circuit 8 as a digital signal and is a signal processing unit. Sent to 9.

信号処理部9は、ユニット回路8から送られてきた画像データに対してγ補正処理、ホワイトバランス処理などの処理を施すとともに、輝度色差信号(YUVデータ)を生成し、該生成された輝度色差信号の画像データはCPU10に送られる。   The signal processing unit 9 performs processing such as γ correction processing and white balance processing on the image data sent from the unit circuit 8, generates a luminance color difference signal (YUV data), and generates the generated luminance color difference. The image data of the signal is sent to the CPU 10.

CPU10は、スルー画像表示処理、静止画撮影処理などの処理、画像データの圧縮・伸張処理などを行う機能を有するとともに、デジタルカメラ1の各部を制御するワンチップマイコンである。
特に、本実施の形態では、CPU10は、四辺形輪郭検出処理、小画像データを生成する処理、トリミング処理を行なう機能を有する。
メモリ12には、CPU10の各部の制御に必要な制御プログラム、及び必要なデータが格納されており、CPU10は、該プログラムに従って動作する。
The CPU 10 is a one-chip microcomputer that controls functions of the digital camera 1 as well as functions such as through image display processing, still image shooting processing, and image data compression / expansion processing.
In particular, in the present embodiment, the CPU 10 has a function of performing quadrilateral contour detection processing, processing for generating small image data, and trimming processing.
The memory 12 stores a control program and necessary data necessary for controlling each part of the CPU 10, and the CPU 10 operates according to the program.

DRAM11は、CCD5によってそれぞれ撮像された後、CPU10に送られてきた画像データを一時記憶するバッファメモリとして使用されるとともに、CPU10のワーキングメモリとして使用される。
フラッシュメモリ13は、CCD5によって撮像された画像データなどを保存しておく記録媒体である。
The DRAM 11 is used as a buffer memory for temporarily storing image data sent to the CPU 10 after being imaged by the CCD 5 and also as a working memory for the CPU 10.
The flash memory 13 is a recording medium that stores image data captured by the CCD 5.

キー入力部14は、シャッタボタン、モード切替キー、十字キー、SETキーズームキー(「W」キー、「T」キー)等の複数の操作キーを含み、ユーザのキー操作に応じた操作信号をCPU10に出力する。
画像表示部15は、カラーLCDとその駆動回路を含み、撮影待機状態にあるときには、CCD5によって撮像された被写体をスルー画像として表示し、記録画像の再生時には、フラッシュメモリ13から読み出され、伸張された記録画像を表示させる。
The key input unit 14 includes a plurality of operation keys such as a shutter button, a mode switching key, a cross key, a SET key zoom key (“W” key, “T” key), and an operation signal corresponding to a user's key operation. It outputs to CPU10.
The image display unit 15 includes a color LCD and its drive circuit, and displays the subject imaged by the CCD 5 as a through image when in a shooting standby state, and is read out from the flash memory 13 and decompressed when a recorded image is reproduced. The recorded image is displayed.

台形・樽型歪補正部16は、画像データに台形補正処理・樽型歪補正を施す機能を有する。
台形補正処理とは、台形に歪んだ画像を長方形の画像(まっすぐな画像)に補正することをいう。
例えば、斜めから写真を撮影すると、撮影された写真は台形に歪んでしまう。そのため、この台形補正処理を施すことにより、あたかも写真を正面から撮影したような歪みのないまっすぐな(長方形の)画像を得ることができる。
また、樽型歪補正処理とは、ズームレンズ等の撮影レンズにより撮影される画像データの画像は歪んでしまうため(樽型歪が起こるため)、樽型歪のない画像となるように、補正することをいう。
The trapezoidal / barrel distortion correction unit 16 has a function of performing trapezoidal correction processing / barrel distortion correction on image data.
The trapezoid correction process is to correct an image distorted into a trapezoid into a rectangular image (straight image).
For example, when a photograph is taken from an oblique direction, the photographed picture is distorted into a trapezoid. Therefore, by performing this trapezoidal correction process, it is possible to obtain a straight (rectangular) image without distortion as if the photograph was taken from the front.
In addition, barrel distortion correction processing is performed so that the image of the image data shot by a photographing lens such as a zoom lens is distorted (causes barrel distortion), so that the image does not have barrel distortion. To do.

退色補正部17は、画像データに退色補正処理を施す機能を有する。
この退色補正の技術は、既に周知であり、ここでは詳しくは説明しないが、ここでは、退色補正処理を行なう画像データに基づいて判定されたカラースペクトルを用いて退色度合いを判定し、該判定された退色度合いに応じて退色補正処理を施すことにより行う。
なお、台形・樽型歪補正部16と退色補正部17は、それぞれハード回路として実装するようにしてもいいし、台形・樽型歪補正プログラムと退色補正プログラムとをメモリ12に格納しておき、CPU10が台形・樽型歪補正と退色補正を実行するようにしてもよい。
The fading correction unit 17 has a function of performing a fading correction process on image data.
Although this fading correction technique is already well known and will not be described in detail here, here, the fading degree is determined by using the color spectrum determined based on the image data to be subjected to the fading correction processing. The color fading correction process is performed according to the degree of color fading.
The trapezoid / barrel distortion correction unit 16 and the fading correction unit 17 may be implemented as hardware circuits, respectively, and the trapezoid / barrel distortion correction program and the fading correction program are stored in the memory 12. The CPU 10 may execute trapezoid / barrel distortion correction and fading correction.

B.デジタルカメラ1の動作
実施の形態におけるデジタルカメラ1の動作を図2乃至図3のフローチャートにしたがって説明する。
B. Operation of Digital Camera 1 The operation of the digital camera 1 according to the embodiment will be described with reference to the flowcharts of FIGS.

ユーザのキー入力部14のモード切替キーの操作によりベストショットモードに設定されると、CPU10は、ユーザによって指定されたベストショットシーンを選択する(ステップS1)。ベストショットモードが設定されると画像表示部15には、ベストショットシーンが一覧(又は切替)表示され、その中からユーザがこれから撮影したい撮影シーンに最も適切なベストショットシーンを、十字キー、セットキーを操作することにより選択することができる。ベストショットシーンとしては、例えば、「退色補正シーン」、「花火シーン」などがある。   When the best shot mode is set by operating the mode switching key of the user key input unit 14, the CPU 10 selects the best shot scene designated by the user (step S1). When the best shot mode is set, a list (or switching) of best shot scenes is displayed on the image display unit 15, and the best shot scene most suitable for the shooting scene that the user wants to shoot is selected from the list. It can be selected by operating a key. Examples of the best shot scene include a “fading correction scene” and a “fireworks scene”.

ベストショットシーンが選択されると、CPU10は、該選択されたベストショットシーンが退色補正シーンであるか否かの判断を行う(ステップS2)。この退色補正シーンとは、古い色あせた写真を撮影して、色鮮やかな写真に復元することをいう。
ステップS2で、選択されたベストショットシーンが退色補正シーンでないと判断すると、他の処理を行い、ステップS2で、選択されたベストショットシーンが退色補正シーンであると判断すると、CPU10は、CCD5による被写体の撮像を開始させ、信号処理部9によって生成された輝度色差信号の画像データをバッファメモリ(DRAM11)に記憶させ、該記憶された被写体の画像データを画像表示部15に表示させるというスルー画像表示を開始させる(ステップS3)。
When the best shot scene is selected, the CPU 10 determines whether or not the selected best shot scene is a fading correction scene (step S2). This fading correction scene refers to taking an old faded photo and restoring it to a colorful photo.
If it is determined in step S2 that the selected best shot scene is not a fading correction scene, another process is performed. If it is determined in step S2 that the selected best shot scene is a fading correction scene, the CPU 10 uses the CCD 5 A through image in which imaging of a subject is started, the image data of the luminance color difference signal generated by the signal processing unit 9 is stored in the buffer memory (DRAM 11), and the stored image data of the subject is displayed on the image display unit 15. Display is started (step S3).

次いで、CPU10は、ユーザによってズーム操作が行なわれたか否かの判断を行う(ステップS4)。この判断は、ズームキーの操作に対応する操作信号がキー入力部14から送られてきたか否かにより判断を行う。
ステップS4でズーム操作が行われたと判断すると、CPU10はユーザのズーム操作にしたがって(キー入力部14から送られてくる操作信号にしたがって)、レンズ駆動回路4に制御信号を送ることによりズームレンズ3を移動させて(ステップS5)、ステップS6に進み、ステップS4でズーム操作が行われていないと判断するとそのままステップS6に進む。
Next, the CPU 10 determines whether or not a zoom operation has been performed by the user (step S4). This determination is made based on whether or not an operation signal corresponding to the operation of the zoom key has been sent from the key input unit 14.
If it is determined in step S4 that the zoom operation has been performed, the CPU 10 sends a control signal to the lens drive circuit 4 in accordance with the user's zoom operation (in accordance with an operation signal sent from the key input unit 14), thereby zooming in the zoom lens 3. (Step S5), the process proceeds to step S6. If it is determined in step S4 that the zoom operation is not performed, the process proceeds to step S6.

ステップS6に進むと、CPU10は、シャッタボタンが押下されたか否かの判断を行う。この判断は、キー入力部14からシャッタボタン押下に対応する操作信号が送られてきたか否かにより判断を行う。
ステップS6で、シャッタボタンが押下されていないと判断するとステップS4に戻り、ステップS6でシャッタボタンが押下されたと判断すると、CPU10は、静止画撮影処理を行う(ステップS7)。
このとき、ユーザは、復元したい写真が撮影できるような位置にカメラをあわせてからシャッタボタンを押下する。ここで、写真を正面から撮影してしまうと、写真の表面に映った反射光も一緒に撮影してしまう畏れがあるので、写真を斜め方向から撮影した方が好ましい。ここでは、ユーザは、写真を斜め方向から撮影したものとする。
In step S6, the CPU 10 determines whether or not the shutter button has been pressed. This determination is made based on whether or not an operation signal corresponding to pressing of the shutter button is sent from the key input unit 14.
If it is determined in step S6 that the shutter button has not been pressed, the process returns to step S4. If it is determined in step S6 that the shutter button has been pressed, the CPU 10 performs still image shooting processing (step S7).
At this time, the user presses the shutter button after setting the camera at a position where the photograph to be restored can be taken. Here, if the photograph is taken from the front, the reflected light reflected on the surface of the photograph may be taken together, so it is preferable to take the photograph from an oblique direction. Here, it is assumed that the user has taken a photograph from an oblique direction.

静止画撮影処理を行うと、CPU10は、該撮影処理により得られた撮影画像データ(輝度色差信号)に基づいて四辺形輪郭検出処理を行う(ステップS8)。この四辺形輪郭検出処理とは、撮影画像データに基づいて、写真の輪郭線を自動検出、つまり、写真部分と写真でない部分との境界線を自動検出することをいう。
図4(a)は、撮影処理により得られた画像データに基づいて四辺形輪郭検出処理により検出された四辺形輪郭の様子を示す図であり、線21が検出された四辺形輪郭である。図4を見ると、写真部分(シャドー部分)とそれ以外の部分が四辺形輪郭によって区画されていることがわかる。
When the still image shooting process is performed, the CPU 10 performs a quadrilateral contour detection process based on the shot image data (luminance color difference signal) obtained by the shooting process (step S8). This quadrilateral contour detection process refers to automatically detecting a contour line of a photograph based on photographed image data, that is, automatically detecting a boundary line between a photograph part and a non-photo part.
FIG. 4A is a diagram showing a quadrilateral outline detected by the quadrilateral outline detection process based on the image data obtained by the photographing process, and is a quadrilateral outline in which the line 21 is detected. Referring to FIG. 4, it can be seen that the photograph part (shadow part) and the other part are partitioned by a quadrilateral outline.

次いで、CPU10は、該検出した四辺形輪郭21内の画像データを抽出する処理を行なう(ステップS9)。これにより、写真に対応する画像部分の画像データが撮影画像データから抽出されることとなる。この抽出された画像データは、バッファメモリに記憶される。
図4(b)は、抽出された画像データの様子を示すものであり、撮影画像データのうち検出された四辺形輪郭21内の画像データが抽出されていることがわかる。
次いで、CPU10は、該抽出した四辺形輪郭21内の画像データ、つまり、写真部分に対応する画像データに基づいて画像サイズの小さい小画像データを生成する(ステップS10)。ここでは、生成される小画像データの画像サイズはQVGA(320×240ドット(ピクセル))とする。
Next, the CPU 10 performs a process of extracting image data in the detected quadrilateral contour 21 (step S9). As a result, the image data of the image portion corresponding to the photograph is extracted from the captured image data. The extracted image data is stored in the buffer memory.
FIG. 4B shows the state of the extracted image data, and it can be seen that the image data within the detected quadrilateral contour 21 is extracted from the photographed image data.
Next, the CPU 10 generates small image data having a small image size based on the extracted image data in the quadrilateral outline 21, that is, image data corresponding to the photograph portion (step S10). Here, the image size of the generated small image data is QVGA (320 × 240 dots (pixels)).

次いで、CPU10は、台形・樽型歪補正部16に、該生成した小画像データに対して台形・樽型歪補正を施す処理を実行させる(ステップS11)。
台形補正処理とは、台形に歪んだ画像を長方形に補正する処理のことをいう。
ユーザは写真に反射した光を撮影するのを防ぐため、斜めから写真を撮影するので、撮影された写真は台形に歪んでしまう。そのため、この台形補正処理を施すことにより、あたかも写真を正面から撮影したような歪みのないまっすぐな(長方形の)画像を得ることができる。
また、樽型歪補正処理とは、ズームレンズ等の撮影レンズにより撮影される画像データの画像は歪んでしまうため(樽型歪が起こるため)、樽型歪のない画像となるように、補正することをいう。この樽型歪は、ズーム倍率(ズームレンズの位置)に応じて歪曲率も変わってくるので、CPU10は、撮影画像が得られたときのズームレンズ3のレンズ位置に応じた樽型歪補正処理を行う。
Next, the CPU 10 causes the trapezoid / barrel distortion correction unit 16 to perform a process of performing trapezoid / barrel distortion correction on the generated small image data (step S11).
The trapezoid correction process is a process for correcting an image distorted into a trapezoid into a rectangle.
In order to prevent the user from taking the light reflected on the photograph, the photograph is taken from an oblique direction, so that the photographed picture is distorted into a trapezoid. Therefore, by performing this trapezoidal correction process, it is possible to obtain a straight (rectangular) image without distortion as if the photograph was taken from the front.
In addition, barrel distortion correction processing is performed so that the image of the image data shot by a photographing lens such as a zoom lens is distorted (causes barrel distortion), so that the image does not have barrel distortion. To do. Since this barrel distortion also changes the distortion rate according to the zoom magnification (the position of the zoom lens), the CPU 10 performs barrel distortion correction processing according to the lens position of the zoom lens 3 when the captured image is obtained. I do.

図5は、樽型歪補正処理を説明するための図である。
図5に示すように、撮影レンズのより樽型に歪んだ画像に対して、ズームレンズ位置に応じた逆歪補正処理を施すことにより、樽型歪のない画像を得ることができる。
なお、この台形補正処理と樽型歪補正処理は別々にそれぞれ行なうようにしてもよいし、合成して一括して行なうようにしてもよい。
FIG. 5 is a diagram for explaining barrel distortion correction processing.
As shown in FIG. 5, an image without barrel distortion can be obtained by performing reverse distortion correction processing according to the zoom lens position on an image distorted into a barrel shape of the photographing lens.
The trapezoid correction process and the barrel distortion correction process may be performed separately or may be combined and performed collectively.

次いで、CPU10は、退色補正部17に、台形・樽型歪補正処理が施された小画像データに対して退色補正を施す処理を実行させる(ステップS12)。
この退色補正の技術は、既に周知であり、ここでは詳しくは説明しないが、ここでは、退色補正処理を行なう画像データに基づいて判定されたカラースペクトルを用いて退色度合いを判定し、該判定された退色度合いに応じて退色補正処理を施すことにより行なわれる。
Next, the CPU 10 causes the fading correction unit 17 to execute processing for performing fading correction on the small image data on which the trapezoid / barrel distortion correction processing has been performed (step S12).
Although this fading correction technique is already well known and will not be described in detail here, here, the fading degree is determined by using the color spectrum determined based on the image data to be subjected to the fading correction processing. The color fading correction process is performed according to the degree of fading.

次いで、CPU10は、該補正された小画像データを画像表示部15に表示させる(ステップS13)。
次いで、CPU10は、ユーザによってトリミング操作が行なわれたか否かの判断を行う(ステップS14)。この判断は、十字キーに対応する操作信号がキー入力部14から送られてきたか否かにより判断する。
Next, the CPU 10 displays the corrected small image data on the image display unit 15 (step S13).
Next, the CPU 10 determines whether or not a trimming operation has been performed by the user (step S14). This determination is made based on whether or not an operation signal corresponding to the cross key is sent from the key input unit 14.

ステップS14でトリミング操作が行われたと判断すると、CPU10は該操作にしたがってトリミング位置、トリミングサイズを変更して(ステップS15)、ステップS16に進み、ステップS14でトリミング操作が行われていないと判断するとそのままステップS16に進む。
この変更されたトリミング位置、トリミングサイズは、メモリ12のトリミング情報記憶領域に記憶される。
If it is determined in step S14 that the trimming operation has been performed, the CPU 10 changes the trimming position and trimming size in accordance with the operation (step S15), proceeds to step S16, and determines that the trimming operation has not been performed in step S14. The process proceeds to step S16 as it is.
The changed trimming position and trimming size are stored in the trimming information storage area of the memory 12.

ステップS16に進むと、ユーザによってSETキーの操作が行なわれたか否かの判断を行う。この判断は、SETキーの操作に対応する操作信号がキー入力部14から送られてきたか否かにより判断する。
ステップS16でSETキーの操作が行なわれていない場合には、ステップS14に戻り、ステップS16でSETキーの操作が行なわれた場合はステップS17に進む。
In step S16, it is determined whether or not the user has operated the SET key. This determination is made based on whether or not an operation signal corresponding to the operation of the SET key is sent from the key input unit 14.
If the SET key is not operated in step S16, the process returns to step S14. If the SET key is operated in step S16, the process proceeds to step S17.

ステップS17に進むと、該トリミング情報記憶領域に記憶されているトリミング情報(トリミング位置、トリミングサイズ)に基づいて、該バッファメモリに記憶されている四辺形輪郭内の画像データ、つまり、ステップS9で撮影画像データから抽出された画像データを用いてトリミング画像データを生成する(ステップS17)。このとき、ステップS9で抽出されたトリミング画像データは台形・樽型歪補正処理前の画像データなので、トリミング情報記憶領域に記憶されているトリミング位置、トリミングサイズをそのまま使用することはできず、該抽出された画像データに台形・樽型歪補正処理が施されたときに、ユーザが指定した範囲の画像がトリミングされるようなトリミング位置、トリミングサイズを算出して、トリミング画像データを生成する。   Proceeding to step S17, based on the trimming information (trimming position, trimming size) stored in the trimming information storage area, the image data in the quadrilateral contour stored in the buffer memory, that is, in step S9. Trimming image data is generated using the image data extracted from the captured image data (step S17). At this time, since the trimmed image data extracted in step S9 is image data before the trapezoidal / barrel distortion correction processing, the trimming position and trimming size stored in the trimming information storage area cannot be used as they are. When the extracted image data is subjected to trapezoidal / barrel distortion correction processing, a trimming position and a trimming size at which an image in a range specified by the user is trimmed are calculated to generate trimmed image data.

次いで、CPU10は、台形・樽型歪補正部16に、該生成したトリミング画像データに対して台形・樽型歪補正を施す処理を実行させる(ステップS18)。この台形・樽型歪補正処理は、ステップS11で説明した処理と同様の処理で実行する。
次いで、CPU10は、退色補正部17に、台形・樽型歪補正処理後のトリミング画像データに対して退色補正を施す処理を実行させる(ステップS19)。
なお、ステップS17のトリミング画像生成処理を、ステップS18の台形・樽型歪補正処理およびステップS19の退色補正処理の後に行なうようにしてもよい。
そして、CPU10は、該退色補正後の画像データの画像サイズを撮影画像サイズとなるように補間処理を行う(ステップS20)。つまり、退色補正後の画像データの画像サイズを拡大又は縮小させる。
Next, the CPU 10 causes the trapezoid / barrel distortion correction unit 16 to execute a process of performing trapezoid / barrel distortion correction on the generated trimmed image data (step S18). This trapezoid / barrel distortion correction processing is executed by the same processing as that described in step S11.
Next, the CPU 10 causes the fading correction unit 17 to perform processing for performing fading correction on the trimmed image data after the trapezoid / barrel distortion correction processing (step S19).
Note that the trimmed image generation process in step S17 may be performed after the trapezoid / barrel distortion correction process in step S18 and the fading correction process in step S19.
Then, the CPU 10 performs an interpolation process so that the image size of the image data after the color fading correction becomes the captured image size (step S20). That is, the image size of the image data after the color fading correction is enlarged or reduced.

次いで、CPU10は、該補間処理を行った画像データを圧縮し(例えば、JPEG圧縮し)、静止画ファイル(ファイル形式は、例えば、Exif形式)の生成を行なう(ステップS21)。このとき、静止画ファイルのヘッダに、退色補正シーンで撮影したことを示す情報や退色補正処理を行った旨を示す情報などを記録させる。
なお、画像ファイルのヘッダに退色補正を行なった旨などを示す情報を記録させず、画像ファイルに関連付けて退色補正処理を行った旨などを示す情報を記録させるようにしてもよい。要は、画像ファイルに退色補正処理を行った旨などを示す情報を付するものであればなんでもよい。
次いで、CPU10は、該生成した静止画ファイルをフラッシュメモリ13に記録し(ステップS22)、該記録した画像データをプレビュー表示させる(ステップS23)。
Next, the CPU 10 compresses the image data subjected to the interpolation processing (for example, JPEG compression), and generates a still image file (for example, the Exif format) (step S21). At this time, information indicating that the photograph was taken in the fading correction scene, information indicating that the fading correction processing was performed, and the like are recorded in the header of the still image file.
In addition, information indicating that the color fading correction has been performed may not be recorded in the header of the image file, but information indicating that the color fading correction processing has been performed in association with the image file may be recorded. In short, any information may be used as long as information indicating that the color fading correction processing has been performed on the image file.
Next, the CPU 10 records the generated still image file in the flash memory 13 (step S22), and displays the recorded image data as a preview (step S23).

C.以上のように、第1の実施の形態においては、静止画撮影処理により得られた撮影画像データに基づいて、四辺形輪郭を検出して四辺形輪郭内の画像データを抽出し、該抽出した画像データ(ユーザによってトリミング範囲が指定された場合には、該抽出した画像データから切り出されたトリミング画像データ)に対して台形・樽型歪補正処理、退色補正処理を施し、該処理後の画像データを静止画ファイルとして記録するので、簡易、且つ、良好に退色した写真を復元した画像データを得ることができる。 C. As described above, in the first embodiment, based on the captured image data obtained by the still image capturing process, the quadrilateral contour is detected, the image data in the quadrilateral contour is extracted, and the extracted The image data (trimmed image data cut out from the extracted image data when the trimming range is designated by the user) is subjected to trapezoidal / barrel distortion correction processing and fading correction processing, and the processed image Since the data is recorded as a still image file, it is possible to obtain image data obtained by restoring a fading photo easily and satisfactorily.

また、抽出した四辺形輪郭内の画像データに基づいて、処理に負担がかからない画像サイズの小さい小画像データを生成し、該生成した小画像データに対して台形・樽型歪補正処理、退色補正処理を施し、処理後の小画像データの画像を画像表示部15に表示させることにより、台形・樽型歪補正処理、退色補正処理を施した後の画像を迅速に画像表示部15に表示させることができる。
また、台形・樽型歪補正処理、退色補正処理を施した後の画像が画像表示部15に表示されている状態でトリミング範囲をユーザが指定し、該指定したトリミング範囲に基づいて、台形・樽型歪補正処理および退色補正処理を施す前に四辺形輪郭内の画像データをトリミングするので、四辺形輪郭内の画像データのうち、必要のない画像データに対して台形・樽型歪補正処理、退色補正処理を施す必要がなく、処理の負担を軽減することができる。
また、退色補正処理が行なわれた画像データの画像ファイルを記録する場合には、画像ファイルのヘッダにその旨を示す情報を記録させるので、退色補正処理が施された画像ファイルであるか否かを判断することができる。
Also, based on the image data in the extracted quadrilateral outline, small image data with a small image size that does not burden the processing is generated, and trapezoidal / barrel distortion correction processing and fading correction are performed on the generated small image data. By performing processing and displaying the image of the small image data after processing on the image display unit 15, the image after performing the trapezoid / barrel distortion correction processing and the fading correction processing is quickly displayed on the image display unit 15. be able to.
In addition, the user designates a trimming range in a state where the image after the trapezoid / barrel distortion correction processing and the fading correction processing are displayed on the image display unit 15, and based on the designated trimming range, Since the image data in the quadrilateral outline is trimmed before the barrel distortion correction process and the fading correction process, the trapezoid / barrel distortion correction process is performed on unnecessary image data in the quadrilateral outline. Therefore, it is not necessary to perform a fading correction process, and the processing load can be reduced.
In addition, when recording an image file of image data that has undergone fading correction processing, information indicating that fact is recorded in the header of the image file, so whether or not the image file has been subjected to fading correction processing. Can be judged.

[第2の実施の形態]
次に第2の実施の形態について説明する。
第1の実施の形態においては、静止画撮影時に退色補正を施すというものであるが、第2の実施の形態においては、再生時に退色補正を施すというものである。
なお、第1、2の実施の形態のうちいずれか一方のみを実施するようにしてもよいし、第1、2の実施の形態を合わせて実施するようにしてもよい。
[Second Embodiment]
Next, a second embodiment will be described.
In the first embodiment, fading correction is performed during still image shooting. In the second embodiment, fading correction is performed during reproduction.
Note that only one of the first and second embodiments may be implemented, or the first and second embodiments may be implemented together.

D.デジタルカメラ1の動作
第2の実施の形態も、図1に示したものと同様の構成を有するデジタルカメラ1を用いることにより本発明の撮像装置を実現する。
以下、第2の実施の形態のデジタルカメラ1の動作を図6のフローチャートにしたがって説明する。
D. Operation of Digital Camera 1 In the second embodiment, the imaging apparatus of the present invention is realized by using the digital camera 1 having the same configuration as that shown in FIG.
The operation of the digital camera 1 according to the second embodiment will be described below with reference to the flowchart of FIG.

ユーザのキー入力部14のモード切替キーの操作により再生モードに設定されると、CPU10は、フラッシュメモリ13に記録されている画像ファイルの一覧(又は切替)表示を行う(ステップS51)。この一覧表示の方法としては、画像ファイルに記録されている静止画像データの画像(サムネイル画像など)を表示させる。なお、フラッシュメモリ13に記録されている画像ファイルのファイル名を一覧表示させるようにしてもよい。   When the playback mode is set by the user operating the mode switching key of the key input unit 14, the CPU 10 displays a list (or switching) of image files recorded in the flash memory 13 (step S51). As a list display method, still image data images (thumbnail images, etc.) recorded in an image file are displayed. The file names of image files recorded in the flash memory 13 may be displayed as a list.

次いで、CPU10は、ユーザによって画像の指定が行なわれたか否かを判断する。この判断は、キー入力部14の十字キー、SETキーの操作により画像を指定する旨の操作信号が送られてきたか否かにより判断する(ステップS52)。
このとき、ユーザは、十字キー、SETキーを操作することにより画像表示部15に一覧表示された画像を指定することができる。
ステップS52で、ユーザによって画像の指定が行なわれていないと判断すると画像の指定が行なわれるまでステップS52に留まり、ステップS52で、ユーザによって画像の指定が行なわれたと判断すると、CPU10は、該ユーザによって指定された画像に対応する画像ファイルを選択し、(ステップS53)、該選択した画像ファイルの静止画像データを再生させる(ステップS54)。つまり、画像表示部15に表示させる。
Next, the CPU 10 determines whether an image has been designated by the user. This determination is made based on whether or not an operation signal for designating an image has been sent by operating the cross key and the SET key of the key input unit 14 (step S52).
At this time, the user can designate the images displayed as a list on the image display unit 15 by operating the cross key and the SET key.
If it is determined in step S52 that the user has not designated an image, the process remains in step S52 until the image is designated. If it is determined in step S52 that the user has designated an image, the CPU 10 The image file corresponding to the image specified by is selected (step S53), and the still image data of the selected image file is reproduced (step S54). That is, it is displayed on the image display unit 15.

次いで、CPU10は、ユーザによってメニュー表示を行う旨の指示が行われた否かを判断する(ステップS55)。この判断は、キー入力部14からメニュー表示を行う旨の操作に対応する操作信号が送られてきたか否かにより判断する。
ステップS55で、メニュー表示を行う旨の指示が行われていないと判断するとCPU10は他の処理へ移行し、ステップS55で、メニュー表示を行う旨の指示が行われたと判断すると、CPU10は、該表示している静止画像データに重ねてメニューの一覧を画像表示部15に表示させる。一覧表示されるメニューとしては、「退色補正モード」、や、「トリミングモード」などがある。
Next, the CPU 10 determines whether or not an instruction to perform menu display is given by the user (step S55). This determination is made based on whether or not an operation signal corresponding to an operation for displaying a menu is sent from the key input unit 14.
If it is determined in step S55 that an instruction to perform menu display has not been issued, the CPU 10 proceeds to another process. If it is determined in step S55 that an instruction to perform menu display has been performed, the CPU 10 A list of menus is displayed on the image display unit 15 so as to be superimposed on the displayed still image data. Listed menus include “fading correction mode” and “trimming mode”.

CPU10は、メニューの一覧表示をさせると、ユーザによって退色補正モードが選択されたか否かの判断を行う(ステップS57)。
ステップS57で、退色補正モードが選択されていないと判断するとCPU10は他の処理へと移行し、ステップS57で、退色補正モードが選択されたと判断するとCPU10は、該選択した画像ファイルの静止画像データは退色補正済みか否かの判断を行う(ステップS58)。この判断は、該選択した静止画ファイルのヘッダに退色補正シーンで撮影したことを示す情報や退色補正処理を行った旨を示す情報が記録されているか否かにより判断する。
When displaying the menu list, the CPU 10 determines whether or not the fading correction mode has been selected by the user (step S57).
If it is determined in step S57 that the fading correction mode is not selected, the CPU 10 proceeds to another process. If it is determined in step S57 that the fading correction mode is selected, the CPU 10 determines still image data of the selected image file. Determines whether the color fading correction has been completed (step S58). This determination is made based on whether or not information indicating that the photograph was taken in the fading correction scene or information indicating that the fading correction processing has been performed is recorded in the header of the selected still image file.

ステップS58で、退色補正済みでないと判断すると、該選択した静止画像データに対して退色補正処理等の実行を行なう(ステップS59)。この退色補正処理等の実行を具体的に説明すると、上述した図2及び図3のステップS8〜ステップS23と同様の処理を行う。
但し、図2及び図3の処理では撮影画像データを用いて退色補正処理等を行なうようにしたが、第2の実施の形態においては、伸張された画像ファイルの静止画像データ(輝度色差信号)を用いて行なうこととなる。
一方、ステップS58で、退色補正済みであると判断すると、ステップS59の処理を実行することなく(処理の実行を禁止して)画像表示部15に退色補正済みである旨を画像表示部15に表示させる(ステップS60)。補正済みなので、再び退色補正処理を行う必要がないからである。
If it is determined in step S58 that the fading correction has not been completed, a fading correction process or the like is performed on the selected still image data (step S59). The execution of the fading correction process and the like will be specifically described. The same processes as those in steps S8 to S23 in FIGS. 2 and 3 described above are performed.
However, in the processing of FIG. 2 and FIG. 3, the fading correction processing or the like is performed using the photographed image data. However, in the second embodiment, still image data (luminance color difference signal) of the expanded image file. Will be used.
On the other hand, if it is determined in step S58 that the color fading correction has been completed, the image display unit 15 is informed that the color fading correction has been performed on the image display unit 15 without executing the processing in step S59 (prohibiting the execution of the processing). It is displayed (step S60). This is because it is not necessary to perform the fading correction process again because it has been corrected.

E.以上のように、第2の実施の形態においては、静止画像データの再生時に、台形・樽型歪補正及び退色補正を行なうことができるので、通常の撮影モードで撮影した静止画像データに対しても、簡単、且つ、良好に退色した写真を復元した画像データを得ることができる。
また、他のデジタルカメラで撮影された画像データや、インターネットでダウンロードした画像データに対しても、簡単、且つ、良好に退色した画像を復元することができる。
E. As described above, in the second embodiment, since the trapezoid / barrel distortion correction and the fading correction can be performed at the time of reproducing the still image data, the still image data captured in the normal shooting mode is used. However, it is possible to obtain image data obtained by restoring a fading photo easily and satisfactorily.
Further, it is possible to restore a fading image easily and satisfactorily with respect to image data taken with another digital camera or image data downloaded over the Internet.

なお、上記各実施の形態においては、台形・樽型歪補正処理を実行してから、退色補正処理を施すようにしたが、退色補正処理を実行してから台形・樽型歪補正処理を行うようにしてもよい。
また、上記各実施の形態においては、台形補正処理や樽型歪補正処理を行うようにしたが、行なわないようにしてもよい。台形補正処理を行わない場合には、ユーザは写真を斜めから撮るのではなく、正面から写真を撮る必要がある。
In each of the above embodiments, the trapezoidal / barrel distortion correction process is performed and then the fading correction process is performed. However, the trapezoidal / barrel distortion correction process is performed after the fading correction process is performed. You may do it.
In each of the above embodiments, trapezoidal correction processing and barrel distortion correction processing are performed, but they may not be performed. When the keystone correction process is not performed, the user needs to take a picture from the front instead of taking a picture from an oblique direction.

また、上記各実施の形態においては、小画像データを生成するようにしたが、抽出した四辺形輪郭内の画像データに対して、小画像データを生成することなく、台形・樽型歪補正処理、退色補正処理を行なうようにしてもよい。この場合には、台形・樽型歪補正処理、退色補正処理を行なってから、該画像データを表示させ、ユーザにトリミングする範囲を指定させるようにしてもよい。   In each of the above embodiments, small image data is generated. However, trapezoidal / barrel distortion correction processing is not performed on the extracted image data in the quadrilateral contour without generating small image data. The fading correction process may be performed. In this case, after performing the trapezoid / barrel distortion correction process and the fading correction process, the image data may be displayed, and the user may designate a range to be trimmed.

また、上記各実施の形態において、画像データに基づいて検出された四辺形輪郭が複数ある場合には、該検出された複数の四辺形輪郭のうち、ユーザに最適な四辺形輪郭を指定させ、該指定された四辺形輪郭内の画像データを抽出するようにしてもよい。また、ユーザが四辺形輪郭を任意に指定することができるようにしてもよい。   Further, in each of the above embodiments, when there are a plurality of quadrilateral contours detected based on the image data, the user can specify an optimal quadrilateral contour among the detected quadrilateral contours, You may make it extract the image data in this designated quadrilateral outline. Further, the user may arbitrarily specify the quadrilateral contour.

また、上記実施の形態におけるデジタルカメラ1は、上記の実施の形態に限定されるものではなく、カメラ付き携帯電話、カメラ付きPDA、カメラ付きパソコン、カメラ付きICレコーダ、又はデジタルビデオカメラ等でもよく、要は被写体を撮影することができる機器であれば何でもよい。   The digital camera 1 in the above embodiment is not limited to the above embodiment, and may be a mobile phone with a camera, a PDA with a camera, a personal computer with a camera, an IC recorder with a camera, a digital video camera, or the like. In short, any device capable of photographing a subject may be used.

本発明の実施の形態のデジタルカメラのブロック図である。1 is a block diagram of a digital camera according to an embodiment of the present invention. 第1の実施の形態のデジタルカメラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the digital camera of 1st Embodiment. 第1の実施の形態のデジタルカメラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the digital camera of 1st Embodiment. 四辺形輪郭検出処理により検出された四辺形輪郭の様子、及び、抽出された該四辺形輪郭内の画像の様子を示すものである。The state of the quadrilateral outline detected by the quadrilateral outline detection process and the state of the image in the extracted quadrilateral outline are shown. 樽型歪補正処理を説明するための図である。It is a figure for demonstrating barrel type distortion correction processing. 第2の実施の形態のデジタルカメラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the digital camera of 2nd Embodiment.

符号の説明Explanation of symbols

1 デジタルカメラ
2 フォーカスレンズ
3 ズームレンズ
4 レンズ駆動回路
5 CCD
6 垂直ドライバ
7 TG
8 ユニット回路
9 信号処理部
10 CPU
11 DRAM
12 メモリ
13 フラッシュメモリ
14 キー入力部
15 画像表示部
16 台形・樽型歪補正部
17 退色補正部
1 Digital Camera 2 Focus Lens 3 Zoom Lens 4 Lens Drive Circuit 5 CCD
6 Vertical driver 7 TG
8 Unit circuit 9 Signal processor 10 CPU
11 DRAM
12 memory 13 flash memory 14 key input unit 15 image display unit 16 trapezoidal / barrel distortion correction unit 17 fading correction unit

Claims (15)

写真を撮影し、該撮影された写真の画像データを用いて、写真の画像の復元を行なう機能を備えた撮像装置であって、
画像データを取得する取得手段と、
前記取得手段により取得された画像データのカラースペクトルに基づいて色度合いを判定する第1の判定手段と、
前記第1の判定手段により判定された色度合いに応じて退色補正処理を、前記取得手段により取得された画像データに施す第1の退色補正処理手段と、
前記第1の退色補正処理手段により退色補正処理が施された画像データを記録手段に記録する記録制御手段と、
を備えたことを特徴とする撮像装置。
An imaging device having a function of taking a photograph and using the image data of the photographed photograph to restore the photograph image,
Acquisition means for acquiring image data;
First determination means for determining a color degree based on a color spectrum of the image data acquired by the acquisition means;
First fading correction processing means for applying a fading correction process to the image data acquired by the acquisition means in accordance with the color degree determined by the first determination means;
A recording control means for recording the image data subjected to the fading correction processing by the first fading correction processing means on the recording means;
An imaging apparatus comprising:
前記取得手段により取得された画像データに基づいて、写真の輪郭を検出し、該検出した輪郭内の画像データを抽出することにより写真部分の画像データを抽出する抽出手段を備え、
前記第1の判定手段は、
前記抽出手段により抽出された画像データのカラースペクトルに基づいて色度合いを判定し、
前記第1の退色補正処理手段は、前記第1の判定手段により判定された色度合いに応じて退色補正処理を、前記抽出手段により抽出された画像データに施すことを特徴とする請求項1記載の撮像装置。
Based on the image data acquired by the acquisition means, comprising an extraction means for detecting the outline of a photograph and extracting the image data of the photograph part by extracting the image data in the detected outline,
The first determination means includes
Determining the degree of color based on the color spectrum of the image data extracted by the extraction means;
2. The first fading correction processing means performs fading correction processing on the image data extracted by the extraction means according to the color degree determined by the first determination means. Imaging device.
前記抽出手段により抽出された画像データに台形補正処理を施す第1の台形補正処理手段を備え、
前記記録制御手段は、
前記第1の退色補正処理手段により退色補正処理が施され、且つ、前記第1の台形補正処理手段により台形補正処理が施された画像データを前記記録手段に記録することを特徴とする請求項2記載の撮像装置。
First trapezoid correction processing means for performing trapezoid correction processing on the image data extracted by the extraction means;
The recording control means includes
The image data that has been subjected to fading correction processing by the first fading correction processing means and that has been subjected to trapezoid correction processing by the first trapezoid correction processing means is recorded in the recording means. 2. The imaging device according to 2.
前記抽出手段により抽出された画像データに樽型歪補正処理を施す第1の樽型歪補正処理手段を備え、
前記記録制御手段は、
前記第1の退色補正処理手段により退色補正処理が施され、且つ、前記第1の樽型歪補正処理手段により樽型歪補正処理が施された画像データを前記記録手段に記録することを特徴とする請求項2又は3に記載の撮像装置。
First barrel distortion correction processing means for performing barrel distortion correction processing on the image data extracted by the extraction means;
The recording control means includes
Image data that has been subjected to fading correction processing by the first fading correction processing means and has been subjected to barrel distortion correction processing by the first barrel distortion correction processing means is recorded in the recording means. The imaging apparatus according to claim 2 or 3.
画像データからトリミング画像データを生成する生成手段を備え、
前記生成手段は、
前記抽出手段により抽出された画像データからトリミング画像データを生成し、
前記第1の判定手段は、
前記生成手段により生成されたトリミング画像データのカラースペクトルに基づいて色度合いを判定し、
前記第1の退色補正処理手段は、前記第1の判定手段により判定された色度合いに応じて退色補正処理を、前記生成手段により生成されたトリミング画像データに施すことを特徴とする請求項2乃至4の何れかに記載の撮像装置。
A generating means for generating trimmed image data from the image data;
The generating means includes
Generating trimmed image data from the image data extracted by the extracting means;
The first determination means includes
Determining the color degree based on the color spectrum of the trimmed image data generated by the generating means;
The first fading correction processing means performs a fading correction process on the trimmed image data generated by the generation means according to the color degree determined by the first determination means. 5. The imaging device according to any one of 4 to 4.
前記抽出手段により抽出された画像データから画像サイズの小さい小画像データを生成する小画像生成手段と、
前記小画像生成手段により生成された小画像データのカラースペクトルに基づいて色度合いを判定する第2の判定手段と、
前記第2の判定手段により判定された色度合いに応じて退色補正処理を、前記
小画像生成手段により生成された小画像データに施す第2の退色補正処理手段と、
を備えたことを特徴とする請求項2乃至5の何れかに記載の撮像装置。
Small image generation means for generating small image data having a small image size from the image data extracted by the extraction means;
Second determination means for determining a color degree based on a color spectrum of the small image data generated by the small image generation means;
Second fading correction processing means for performing fading correction processing on the small image data generated by the small image generation means according to the color degree determined by the second determination means;
The imaging apparatus according to claim 2, further comprising:
前記小画像生成手段により生成された小画像データに台形補正処理を施す第2の台形補正処理手段を備えたことを特徴とする請求項6記載の撮像装置。 The imaging apparatus according to claim 6, further comprising second trapezoid correction processing means for performing trapezoid correction processing on the small image data generated by the small image generation means. 前記小画像生成手段により生成された小画像データに樽型歪補正処理を施す第2の樽型歪補正処理手段を備えたことを特徴とする請求項6又は7記載の撮像装置。 8. The imaging apparatus according to claim 6, further comprising second barrel distortion correction processing means for performing barrel distortion correction processing on the small image data generated by the small image generation means. 前記第2の退色補正処理手段により退色補正処理が施された小画像データを表示手段に表示させる表示制御手段を備えたことを特徴とする請求項6乃至8の何れかに記載の撮像装置。 9. The image pickup apparatus according to claim 6, further comprising display control means for causing the display means to display small image data that has been subjected to color fading correction processing by the second color fading correction processing means. 前記記録制御手段は、
前記第1の退色補正処理手段により退色補正処理が施された画像データを前記記録手段に記録するとともに、該画像データに退色補正処理が施された旨を示す情報を付することを特徴とする請求項1乃至9の何れかに記載の撮像装置。
The recording control means includes
The image data subjected to the color fading correction process by the first color fading correction processing unit is recorded in the recording unit, and information indicating that the color fading correction processing has been performed is attached to the image data. The imaging device according to claim 1.
被写体を撮像する撮像手段を備え、
前記取得手段は、
前記撮像手段により得られた画像データを取得することを特徴とする請求項1乃至10の何れかに記載の撮像装置。
Comprising imaging means for imaging a subject;
The acquisition means includes
The image pickup apparatus according to claim 1, wherein the image data obtained by the image pickup unit is acquired.
前記取得手段により取得された画像データに退色補正処理が施された旨を示す情報が付されているか否かを判断する判断手段と、
前記判断手段により退色補正処理が施された旨を示す情報が付されていると判断された場合に、前記取得手段により取得された画像データに対する前記第1の退色補正処理手段による退色補正処理の実行を禁止する禁止手段とを備えたことを特徴とする請求項1乃至11の何れかに記載の撮像装置。
Determining means for determining whether or not the image data acquired by the acquiring means is attached with information indicating that the fading correction processing has been performed;
When it is determined that the information indicating that the color fading correction processing has been performed by the determination means, the color fading correction processing by the first color fading correction processing means for the image data acquired by the acquisition means. The imaging apparatus according to claim 1, further comprising a prohibiting unit that prohibits execution.
前記取得手段は、
前記記録手段に記録されている画像データを取得することを特徴とする請求項1乃至12の何れかに記載の撮像装置。
The acquisition means includes
The image pickup apparatus according to claim 1, wherein the image data recorded in the recording unit is acquired.
前記記録制御手段は、
前記取得手段により取得された、前記第1の退色補正処理手段による退色補正処理が施されていない画像データを記録手段に記録する手段を含むことを特徴とする請求項1乃至13の何れかに記載の撮像装置。
The recording control means includes
14. The image processing apparatus according to claim 1, further comprising a recording unit that records image data acquired by the acquiring unit and not subjected to the fading correction process by the first fading correction processing unit. The imaging device described.
写真を撮影し、該撮影された写真の画像データを用いて、写真の画像の復元を行なう機能を備えた撮像装置を実行させるためのプログラムであって、
画像データを取得する取得処理と、
前記取得処理により取得された画像データのカラースペクトルに基づいて色度合いを判定する判定処理と、
前記判定処理により判定された色度合いに応じて退色補正を、前記取得処理により取得された画像データに行なう退色補正処理と、
前記退色補正処理により退色補正が行なわれた画像データを記録媒体に記録する記録処理と、
を含むことを特徴とするプログラム。


A program for executing an imaging device having a function of taking a photograph and using the image data of the photographed photograph to restore the photograph image,
Acquisition processing to acquire image data;
A determination process for determining a color degree based on a color spectrum of the image data acquired by the acquisition process;
Fading correction processing for performing fading correction on the image data acquired by the acquisition processing according to the color degree determined by the determination processing;
A recording process for recording the image data subjected to the fading correction by the fading correction process on a recording medium;
The program characterized by including.


JP2005331572A 2005-11-16 2005-11-16 Imaging apparatus and program therefor Pending JP2007142639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005331572A JP2007142639A (en) 2005-11-16 2005-11-16 Imaging apparatus and program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005331572A JP2007142639A (en) 2005-11-16 2005-11-16 Imaging apparatus and program therefor

Publications (1)

Publication Number Publication Date
JP2007142639A true JP2007142639A (en) 2007-06-07

Family

ID=38205006

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005331572A Pending JP2007142639A (en) 2005-11-16 2005-11-16 Imaging apparatus and program therefor

Country Status (1)

Country Link
JP (1) JP2007142639A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009038646A (en) * 2007-08-02 2009-02-19 Canon Inc Image processing device, method, and program
JP2011199479A (en) * 2010-03-18 2011-10-06 Toshiba Corp Device, program, and method for processing information
JP2012119772A (en) * 2010-11-29 2012-06-21 Nippon Telegr & Teleph Corp <Ntt> Video quality objective evaluation device and program
CN101771796B (en) * 2008-12-29 2013-01-30 比亚迪股份有限公司 Method for correcting barrel distortion image and device thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009038646A (en) * 2007-08-02 2009-02-19 Canon Inc Image processing device, method, and program
CN101771796B (en) * 2008-12-29 2013-01-30 比亚迪股份有限公司 Method for correcting barrel distortion image and device thereof
JP2011199479A (en) * 2010-03-18 2011-10-06 Toshiba Corp Device, program, and method for processing information
JP2012119772A (en) * 2010-11-29 2012-06-21 Nippon Telegr & Teleph Corp <Ntt> Video quality objective evaluation device and program

Similar Documents

Publication Publication Date Title
US7634186B2 (en) Imaging apparatus, image storage apparatus, imaging method, storage method, recording medium recording imaging program, and recording medium recording storage program
JP4761146B2 (en) Imaging apparatus and program thereof
JP5025532B2 (en) Imaging apparatus, imaging apparatus control method, and imaging apparatus control program
KR100942634B1 (en) Image correction device, image correction method, and computer readable medium
JP4507392B2 (en) Electronic camera
JP5782813B2 (en) Imaging apparatus and image display method
JP2006259688A (en) Image capture device and program
JP2007215091A (en) Imaging apparatus and program therefor
JP5578442B2 (en) Imaging apparatus, image composition method, and program
JP2006025238A (en) Imaging device
JP5494744B2 (en) Imaging apparatus, control method, and program
JP4977569B2 (en) Imaging control apparatus, imaging control method, imaging control program, and imaging apparatus
JP5013282B2 (en) Imaging apparatus and program
JP5310076B2 (en) Image processing apparatus and image processing program
JP2008085671A (en) Apparatus and method for displaying image
JP2007142639A (en) Imaging apparatus and program therefor
JP4788172B2 (en) Imaging apparatus and program
JP2002040321A (en) Electronic camera
JP4553134B2 (en) Image generating apparatus and program thereof
JP4379921B2 (en) Imaging apparatus and program thereof
JP2009253925A (en) Imaging apparatus and imaging method, and imaging control program
JP2002044510A (en) Electronic camera
JP2002044516A (en) Electronic camera
JP5157528B2 (en) Imaging device
JP2006295708A (en) Imaging apparatus and control method therefor