patents.google.com

JP3434716B2 - Image processing method and image processing apparatus - Google Patents

  • ️Mon Aug 11 2003
【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、フィルムに撮影さ
れた画像を光電的に読み取り、この画像が再現されたプ
リント(写真)を得るデジタルフォトプリンタ等におい
て、レンズ付きフィルム、安価なコンパクトカメラやデ
ジタルカメラ等で撮影された画像で発生する歪曲収差を
補正する画像処理方法、およびこの画像処理方法を利用
する画像処理装置の技術分野に属する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a film with a lens, an inexpensive compact camera and The present invention belongs to the technical field of an image processing method for correcting distortion aberration generated in an image captured by a digital camera or the like, and an image processing apparatus using this image processing method.

【0002】[0002]

【従来の技術】現在、ネガフィルム、リバーサルフィル
ム等の写真フィルム(以下、フィルムとする)に撮影さ
れた画像の感光材料(印画紙)への焼き付けは、フィル
ムの画像を感光材料に投影して感光材料を面露光する、
いわゆる直接露光(アナログ露光)によって行われてい
る。
2. Description of the Related Art Currently, when printing an image taken on a photographic film (hereinafter referred to as a film) such as a negative film or a reversal film onto a photosensitive material (photographic paper), the image of the film is projected onto the photosensitive material. Surface exposure of photosensitive material,
It is performed by so-called direct exposure (analog exposure).

【0003】これに対し、近年では、デジタル露光を利
用する焼付装置、すなわち、フィルムに記録された画像
を光電的に読み取って、読み取った画像をデジタル信号
とした後、種々の画像処理を施して記録用の画像データ
とし、この画像データに応じて変調した記録光によって
感光材料を走査露光して画像(潜像)を記録し、(仕上
り)プリントとするデジタルフォトプリンタが実用化さ
れた。
On the other hand, in recent years, a printing apparatus utilizing digital exposure, that is, an image recorded on a film is photoelectrically read, the read image is converted into a digital signal, and then various image processes are performed. A digital photo printer has been put into practical use in which image data for recording is recorded, an image (latent image) is recorded by scanning exposure of a photosensitive material with recording light modulated according to the image data, and an image (latent image) is recorded.

【0004】デジタルフォトプリンタでは、画像をデジ
タルの画像データとして、画像データ処理によって焼付
時の露光条件を決定することができるので、逆光やスト
ロボ撮影等に起因する画像の飛びやツブレの補正、シャ
ープネス(鮮鋭化)処理、カラーフェリアや濃度フェリ
アの補正、アンダー露光やオーバー露光の補正、周辺光
量不足の補正等を好適に行って、従来の直接露光では得
られなかった高品位なプリントを得ることができる。し
かも、複数画像の合成や画像分割、さらには文字の合成
等も画像データ処理によって行うことができ、用途に応
じて自由に編集/処理したプリントも出力可能である。
しかも、デジタルフォトプリンタによれば、デジタルカ
メラ等の撮像デバイスで撮影された画像(画像データ)
からもプリントを作成することができ、また、画像をプ
リント(写真)として出力するのみならず、画像データ
をコンピュータ等に供給したり、フロッピーディスク等
の記録媒体に保存しておくこともできるので、画像デー
タを、写真以外の様々な用途に利用することができる。
In a digital photo printer, since an image is processed as digital image data and an exposure condition at the time of printing can be determined by image data processing, image jump and blurring caused by backlight or stroboscopic photography are corrected, and sharpness is corrected. (Sharpening) processing, correction of color and density ferria, correction of under-exposure and over-exposure, correction of insufficient peripheral light amount, etc., to obtain high-quality prints that cannot be obtained by conventional direct exposure. You can Moreover, image data processing can be used to combine a plurality of images, divide an image, combine characters, and the like, and it is possible to output a print that is freely edited / processed according to the purpose.
Moreover, according to the digital photo printer, an image (image data) taken by an imaging device such as a digital camera
It is possible to create a print from the computer, output the image as a print (photograph), supply the image data to a computer, and save it in a recording medium such as a floppy disk. The image data can be used for various purposes other than photography.

【0005】このようなデジタルフォトプリンタは、基
本的に、フィルムに記録された画像を光電的に読み取る
スキャナ(画像読取装置)、読み取った画像を画像処理
して記録用の画像データ(露光条件)とする画像処理装
置、および、この画像データに応じて感光材料を走査露
光して現像処理を施してプリントとするプリンタ(画像
記録装置)より構成される。
Such a digital photo printer is basically a scanner (image reading device) for photoelectrically reading an image recorded on a film, image processing of the read image and recording image data (exposure condition). And a printer (image recording device) that scans and exposes a photosensitive material in accordance with the image data to develop the photosensitive material for printing.

【0006】スキャナでは、光源から射出された読取光
をフィルムに入射して、フィルムに撮影された画像を担
持する投影光を得て、この投影光を結像レンズによって
CCDセンサ等のイメージセンサに結像して光電変換す
ることにより画像を読み取り、必要に応じて各種の画像
処理を施した後に、フィルムの画像データ(画像データ
信号)として画像処理装置に送る。画像処理装置は、ス
キャナによって読み取られた画像データから画像処理条
件を設定して、設定した条件に応じた画像処理を画像デ
ータに施し、画像記録のための出力画像データ(露光条
件)としてプリンタに送る。プリンタでは、例えば、光
ビーム走査露光を利用する装置であれば、画像処理装置
から送られた画像データに応じて光ビームを変調して、
感光材料を二次元的に走査露光(焼付け)して潜像を形
成し、次いで、所定の現像処理等を施して、フィルムに
撮影された画像が再生されたプリント(写真)とする。
In a scanner, reading light emitted from a light source is incident on a film to obtain projection light carrying an image photographed on the film, and the projection light is passed through an imaging lens to an image sensor such as a CCD sensor. An image is read by forming an image and photoelectrically converting it, and after performing various kinds of image processing as necessary, it is sent to the image processing apparatus as image data (image data signal) of the film. The image processing apparatus sets image processing conditions from the image data read by the scanner, performs image processing according to the set conditions on the image data, and outputs the image data to the printer as output image data (exposure condition) for image recording. send. In the printer, for example, in the case of a device that uses light beam scanning exposure, the light beam is modulated according to the image data sent from the image processing device,
The photosensitive material is two-dimensionally scanned and exposed (printed) to form a latent image, and then subjected to a predetermined development process or the like to obtain a reproduced print of the image photographed on the film.

【0007】[0007]

【発明が解決しようとする課題】ところで、フィルムに
撮影された画像やデジタルカメラ等で撮影された画像を
プリントに再生した際の画質劣化の原因として、画像を
撮影したカメラに装着されるレンズの性能に起因する歪
曲収差が挙げられる。すなわち、適正な撮影画像を得る
ためには、光軸に対して垂直な平面は、結像面でそれに
対応して結像される必要があるが、通常のレンズでは、
結像面が光軸方向にずれを生じ、結像画像に歪(ディス
トーション)すなわち歪曲収差を生じる。そのため、フ
ィルムに撮影された画像を再生すると、得られた画像が
歪んだものとなってしまう。
By the way, as a cause of image quality deterioration when an image taken on a film or an image taken by a digital camera or the like is reproduced as a print, a lens attached to the camera which took the image is Distortion aberration caused by performance is included. That is, in order to obtain a proper captured image, a plane perpendicular to the optical axis needs to be imaged correspondingly on the image plane, but with a normal lens,
The image forming surface is displaced in the optical axis direction, and distortion (distortion), that is, distortion aberration occurs in the formed image. Therefore, when the image shot on the film is reproduced, the obtained image becomes distorted.

【0008】一眼レフ等のように、ある程度のコストを
掛けられるカメラであれば、精度の高いレンズを用い、
さらに複数のレンズを組み合わせることにより、歪曲収
差等の各種の収差を補正して、フィルムに適正画像を撮
影することができる。しかしながら、レンズ付きフィル
ムや安価なコンパクトカメラ、安価なデジタルカメラで
は、レンズにコストを掛けることができないため、フィ
ルムに撮影された画像に歪曲収差が生じてしまう。その
結果、プリントとして再生された画像が、歪を有するも
のとなってしまう。
For a camera such as a single-lens reflex camera which can be costly to some extent, a highly accurate lens is used,
Further, by combining a plurality of lenses, various aberrations such as distortion can be corrected and a proper image can be taken on the film. However, with a lens-equipped film, an inexpensive compact camera, or an inexpensive digital camera, it is not possible to increase the cost of the lens, and therefore distortion images occur in the image captured on the film. As a result, the image reproduced as a print has distortion.

【0009】本発明の目的は、レンズ付きフィルム、安
価なコンパクトカメラやデジタルカメラ等によって撮影
された画像であっても、画像処理によって歪曲収差を補
正して、歪のない高画質な画像を出力することを可能に
する画像処理方法、およびこの画像処理方法を利用する
画像処理装置を提供することにある。
An object of the present invention is to correct distortion aberration by image processing and output a high-quality image without distortion even for an image taken by a film with lens, an inexpensive compact camera or a digital camera. It is an object of the present invention to provide an image processing method that enables the above, and an image processing apparatus that uses this image processing method.

【0010】[0010]

【課題を解決するための手段】前記目的を目的を達成す
るために、本発明の画像処理方法は、光学的に撮影され
た画像から画像データを得る画像処理方法であって、
記画像を撮影したレンズ種を判別して、この判別結果を
用いて歪曲収差補正の要・不要を判定し、歪曲収差補正
が必要な場合には、複数のレンズ種のレンズ特性を記憶
する記憶手段から対応するレンズ特性を読み出し、この
レンズ特性と前記画像の位置情報とを用いて、この画像
の歪曲収差を補正すると共に、前記歪曲収差の補正によ
って生じる画欠けを相殺できる、出力画像に応じた所定
倍率よりも大きな変倍率で電子変倍処理を行うことを特
徴とする画像処理方法を提供する。
To SUMMARY OF THE INVENTION To achieve the object of the object, an image processing method of the present invention is an image processing method for obtaining image data from an optically captured image, before
The type of lens that captured the image is determined and the result of this determination is displayed.
Use to determine whether distortion aberration correction is necessary or not, and correct distortion aberration
Memorize lens characteristics of multiple lens types when required
Read the corresponding lens characteristics from the storage means
By using the lens characteristics and the position information of the image, the distortion aberration of the image is corrected and the distortion aberration is corrected.
Predetermined according to the output image that can cancel the image loss caused by
There is provided an image processing method characterized by performing electronic scaling processing at a scaling ratio larger than the scaling ratio .

【0011】また、本発明の画像処理装置は、光学的に
撮影された画像から得られた画像データに画像処理を施
す画像処理装置であって、前記画像を撮影した撮影レン
ズの判別情報を取得する取得手段、複数の撮影レンズ種
に応じたレンズ特性を記憶する記憶手段、および、前記
取得手段が取得した判別情報に応じて、画像の歪曲収差
補正の要・不要を判定し、歪曲収差補正が不要と判定し
た場合には、出力画像に応じた所定倍率での電子変倍処
理を行い、歪曲収差補正が必要と判定した場合には、対
応する撮影レンズのレンズ特性を前記記憶手段から受け
取り、前記画像の位置情報とレンズ特性とから画像の歪
曲収差を補正すると共に、前記歪曲収差の補正によって
生じる画欠けを相殺できる、出力画像に応じた所定倍率
よりも大きな変倍率で電子変倍処理を行う、補正手段を
有することを特徴とする画像処理装置を提供する。
Further, the image processing apparatus of the present invention is an image processing apparatus for performing image processing on image data obtained from an optically photographed image, and obtains discrimination information of a photographing lens that photographed the image. Acquisition means, storage means for storing lens characteristics corresponding to a plurality of photographing lens types, and whether distortion correction of an image is necessary or not is determined according to the discrimination information acquired by the acquisition means, and the distortion correction is performed. If it is determined that is not necessary , the electronic scaling processing at a predetermined magnification according to the output image is performed.
Performs management, if the distortion correction is determined necessary, receives the lens characteristics of the corresponding photographing lens from said storage means and for correcting distortion of the image from the position information and the lens characteristic of the image, the By correcting distortion
Predetermined magnification according to the output image that can cancel out the image loss that occurs
Provided is an image processing apparatus including a correction unit that performs electronic scaling processing with a larger scaling ratio .

【0012】このような本発明において、前記歪曲収差
補正を行う場合に、撮影レンズ種に応じて電子変倍率を
調整するのが好ましく、また、前記歪曲収差補正を行う
場合に、撮影レンズ種によらず所定の電子変倍率で電子
変倍処理を行うのが好ましく、また、前記補正手段が、
歪曲収差に起因する画像位置のずれ量から各画像の適正
な位置を算出して歪曲収差を補正するものであるのが前
記補正手段が、歪曲収差に起因する画像位置のずれ量か
ら各画像の適正な位置を算出し、この適正な位置の情報
を用いて画像の電子変倍処理を行うものであるのが好ま
しく、また、前記補正手段が、前記各画像の適正な位置
の算出に先立ち、倍率色収差に起因する3原色の基準と
なる色に対する他の色の画像位置のずれ量を算出し、こ
の倍率色収差に起因するずれ量と、歪曲収差に起因する
前記基準となる色の画像位置のずれ量とを用いて、歪曲
収差に加え倍率色収差も補正した各画像の適正な位置を
算出するのが好ましく、さらに、前記電子変倍処理の変
倍率が、画像の縦と横とで異なるのが好ましい。
In the present invention as described above, the distortion aberration
When performing the correction , it is preferable to adjust the electronic scaling ratio according to the taking lens type. Further, when performing the distortion correction , the electronic scaling process is performed at a predetermined electronic scaling ratio regardless of the taking lens type. Preferably, the correction means
The correction means is to correct the distortion aberration by calculating an appropriate position of each image from the displacement amount of the image position caused by the distortion aberration. It is preferable to calculate an appropriate position and perform electronic scaling processing of the image using the information of the appropriate position, and the correction means, prior to the calculation of the appropriate position of each image, The shift amount of the image position of the other color with respect to the reference color of the three primary colors caused by the chromatic aberration of magnification is calculated, and the shift amount caused by the chromatic aberration of magnification and the image position of the reference color caused by the distortion aberration are calculated. It is preferable to calculate an appropriate position of each image in which not only the distortion aberration but also the chromatic aberration of magnification is corrected by using the shift amount. Further, the scaling ratio of the electronic scaling process is different between the vertical and horizontal directions of the image. Is preferred.

【0013】また、本発明においては、前記取得手段
は、フィルムに光学的もしくは磁気的に記録されている
レンズに関する情報を判別情報として取得するのが好ま
しく、さらに、画像処理を施した出力用の画像データ
を、可視像として再現したプリントを出力する装置に接
続されるのが好ましい。また、出力用の画像データを、
通信ネットワークや各種の記録媒体に出力してもよい。
Further, in the present invention, it is preferable that the acquisition means acquires information about the lens optically or magnetically recorded on the film as the discrimination information, and further, the information for image-processed output is obtained. It is preferable that the image data is connected to a device that outputs a print in which a visible image is reproduced. In addition, image data for output,
It may be output to a communication network or various recording media.

【0014】[0014]

【発明の実施の形態】以下、本発明の画像処理方法およ
び画像処理装置について、添付の図面に示される好適実
施例を基に詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION The image processing method and image processing apparatus of the present invention will now be described in detail with reference to the preferred embodiments shown in the accompanying drawings.

【0015】図1に、本発明の画像処理方法を実施する
本発明の画像処理装置を利用するデジタルフォトプリン
タの一例のブロック図が示される。図1に示されるデジ
タルフォトプリンタ(以下、フォトプリンタ10とす
る)は、基本的に、フィルムFに撮影された画像を光電
的に読み取るスキャナ(画像読取装置)12と、読み取
られた画像データ(画像情報)の画像処理やフォトプリ
ンタ10全体の操作および制御等を行う画像処理装置1
4と、画像処理装置14から出力された画像データに応
じて変調した光ビームで感光材料を画像露光し、現像処
理して(仕上り)プリントとして出力するプリンタ16
とを有して構成される。また、画像処理装置14には、
様々な条件の入力(設定)、処理の選択や指示、色/濃
度補正などの指示等を入力するためのキーボード18a
およびマウス18bを有する操作系18と、スキャナ1
2で読み取られた画像、各種の操作指示、様々な条件の
設定/登録画面等を表示するディスプレイ20が接続さ
れる。
FIG. 1 is a block diagram showing an example of a digital photo printer using the image processing apparatus of the present invention for carrying out the image processing method of the present invention. A digital photo printer (hereinafter, referred to as a photo printer 10) shown in FIG. 1 basically includes a scanner (image reading device) 12 that photoelectrically reads an image captured on a film F, and read image data ( Image processing apparatus 1 for performing image processing of (image information) and operation and control of the entire photo printer 10
4 and a printer 16 for image-exposing the photosensitive material with a light beam modulated according to the image data output from the image processing device 14, developing the image, and outputting it as a (finished) print.
And is configured. Further, the image processing device 14 includes
A keyboard 18a for inputting (setting) various conditions, selecting and instructing processing, and instructing color / density correction, etc.
And an operating system 18 having a mouse 18b and a scanner 1
A display 20 that displays the image read in 2, various operation instructions, various condition setting / registration screens, and the like is connected.

【0016】スキャナ12は、フィルムF等に撮影され
た画像を1コマずつ光電的に読み取る装置で、光源22
と、可変絞り24と、画像をR(赤)、G(緑)および
B(青)の三原色に分解するためのR、GおよびBの3
枚の色フィルタを有し、回転して任意の色フィルタを光
路に作用する色フィルタ板26と、フィルムFに入射す
る読取光をフィルムFの面方向で均一にする拡散ボック
ス28と、結像レンズユニット32と、フィルムの1コ
マの画像を読み取るエリアセンサであるCCDセンサ3
4と、アンプ(増幅器)36とを有して構成される。
The scanner 12 is a device for photoelectrically reading the images photographed on the film F or the like frame by frame.
And variable aperture 24, and R, G and B for separating the image into three primary colors of R (red), G (green) and B (blue).
A color filter plate 26 which has a number of color filters and rotates and acts an arbitrary color filter on the optical path, a diffusion box 28 which makes the reading light incident on the film F uniform in the plane direction of the film F, and an image formation. The lens unit 32 and the CCD sensor 3 which is an area sensor for reading an image of one frame of film
4 and an amplifier (amplifier) 36.

【0017】なお、図示例のフォトプリンタ10におい
ては、新写真システム(Advanced Photo System)や13
5サイズのネガ(あるいはリバーサル)フィルム等のフ
ィルムの種類やサイズ、ストリップスやスライド等のフ
ィルムの形態、トリミング等の処理の種類等に応じて、
スキャナ12の本体に装着自在な専用のキャリアが用意
されており、キャリアを交換することにより、各種のフ
ィルムや処理に対応することができる。フィルムに撮影
され、プリント作成に供される画像(コマ)は、このキ
ャリアによって所定の読取位置に搬送、保持される。ま
た、周知のように、新写真システムのフィルムには、磁
気記録媒体が形成され、カートリッジIDやフィルム種
等が記録されており、また、撮影時や現像時等に、撮影
日時、撮影に使用したカメラ、現像機の種類等の各種の
データが記録可能である。新写真システムのフィルム
(カートリッジ)に対応するキャリアには、この磁気情
報の読取手段が配置されており、フィルムを読取位置に
搬送する際に磁気情報を読み取り、前記各種の情報が画
像処理装置14に送られる。
In the illustrated photo printer 10, a new photo system (Advanced Photo System) 13
Depending on the type and size of the film such as 5 size negative (or reversal) film, the form of the film such as strips and slides, the type of processing such as trimming, etc.
A dedicated carrier that can be attached to the main body of the scanner 12 is prepared, and by changing the carrier, it is possible to handle various films and processes. An image (frame) photographed on a film and used for print production is conveyed and held at a predetermined reading position by this carrier. Also, as is well known, the film of the new photographic system is formed with a magnetic recording medium, and the cartridge ID, the film type, etc. are recorded, and the filming date and time are used for shooting and developing. It is possible to record various types of data such as the type of camera and developing machine. This magnetic information reading means is arranged on a carrier corresponding to a film (cartridge) of the new photographic system. When the film is conveyed to the reading position, the magnetic information is read, and the various information is read by the image processing device 14. Sent to.

【0018】このようなスキャナ12においては、光源
22から射出され、可変絞り24によって光量調整さ
れ、色フィルタ板26を通過して色調整され、拡散ボッ
クス28で拡散された読取光が、キャリアによって所定
の読取位置に保持されたフィルムFの1コマに入射し
て、透過することにより、フィルムFに撮影されたこの
コマの画像を担持する投影光を得る。フィルムFの投影
光は、結像レンズユニット32によってCCDセンサ3
4の受光面に結像され、CCDセンサ34によって光電
的に読み取られ、その出力信号がアンプ36で増幅され
て、画像処理装置14に送られる。CCDセンサ34
は、例えば、1380×920画素のエリアCCDセン
サである。
In such a scanner 12, the read light emitted from the light source 22, the light amount is adjusted by the variable diaphragm 24, the color is adjusted by passing through the color filter plate 26, and the diffused box 28 diffuses the read light. The projection light carrying the image of this frame photographed on the film F is obtained by being incident on and passing through one frame of the film F held at a predetermined reading position. The projection light of the film F is transmitted by the imaging lens unit 32 to the CCD sensor 3
An image is formed on the light receiving surface of No. 4, is photoelectrically read by the CCD sensor 34, and the output signal is amplified by the amplifier 36 and sent to the image processing device 14. CCD sensor 34
Is, for example, an area CCD sensor of 1380 × 920 pixels.

【0019】スキャナ12においては、このような画像
読取を、色フィルタ板26の各色フィルタを順次挿入し
て3回行うことにより、1コマの画像をR,GおよびB
の3原色に分解して読み取る。ここで、フォトプリンタ
10においては、プリントを出力するための画像読み取
り(本スキャン)に先立ち、画像処理条件等を決定する
ために、画像を低解像度で読み取るプレスキャンを行
う。従って、1コマで、合計6回の画像読み取りが行わ
れる。
In the scanner 12, such image reading is performed three times by sequentially inserting the respective color filters of the color filter plate 26 so that an image of one frame is R, G and B.
Read it after separating it into the three primary colors. Here, in the photo printer 10, prior to the image reading (main scanning) for outputting a print, a pre-scan for reading an image at low resolution is performed in order to determine image processing conditions and the like. Therefore, image reading is performed a total of 6 times in one frame.

【0020】スキャナ12は、エリアCCDセンサを用
い、色フィルタ板26によって投影光を3原色に分解し
て画像を読み取っているが、本発明に利用されるスキャ
ナとしては、R,GおよびBの3原色のそれぞれの読み
取りに対応する3つのラインCCDセンサを用い、フィ
ルムFをキャリアで走査搬送しつつ画像を読み取るスリ
ット走査によって画像読み取りを行うものであってもよ
い。
The scanner 12 uses an area CCD sensor and separates the projected light into three primary colors by a color filter plate 26 to read an image. The scanners used in the present invention are R, G and B. It is also possible to use three line CCD sensors corresponding to the reading of each of the three primary colors and perform image reading by slit scanning for reading an image while the film F is being scanned and conveyed by a carrier.

【0021】図示例のフォトプリンタ10は、ネガやリ
バーサル等のフィルムに撮影された画像を光電的に読み
取るスキャナ12を画像処理装置14の画像データ供給
源としているが、画像処理装置14に画像データを供給
する画像データ供給源としては、スキャナ12以外に
も、反射原稿の画像を読み取る画像読取装置、デジタル
カメラやデジタルビデオカメラ等の撮像デバイス、LA
N(Local Area Network)やコンピュータ通信ネットワー
ク等の通信手段、メモリカードやMO(光磁気記録媒
体)等のメディア(記録媒体)等の、各種の画像読取手
段や撮像手段、画像データの記憶手段等が各種使用可能
である。すなわち、本発明は、デジタルカメラ等の撮像
デバイスで光学的に撮影された画像(画像データ)にも
好適に利用可能である。
The photo printer 10 in the illustrated example uses a scanner 12 that photoelectrically reads an image taken on a film such as negative or reversal as an image data supply source of the image processing device 14, but the image processing device 14 receives the image data. As the image data supply source for supplying the image data, in addition to the scanner 12, an image reading device for reading an image of a reflection original, an image pickup device such as a digital camera or a digital video camera, and LA
Communication means such as N (Local Area Network) and computer communication network, various image reading means and image pickup means such as memory cards and media (recording media) such as MO (magneto-optical recording medium), storage means for image data, etc. Can be used in various ways. That is, the present invention can be suitably used for an image (image data) optically captured by an imaging device such as a digital camera.

【0022】前述のように、スキャナ12からの出力信
号(画像データ)は、画像処理装置14に出力される。
図2に画像処理装置(以下、処理装置14とする)のブ
ロック図を示す。処理装置14は、データ処理部38、
プレスキャン(フレーム)メモリ40、本スキャン(フ
レーム)メモリ42、プレスキャン画像処理部44、本
スキャン画像処理部46、および条件設定部48を有し
て構成される。なお、図2は、主に画像処理関連の部位
を示すものであり、処理装置14には、これ以外にも、
処理装置14を含むフォトプリンタ10全体の制御や管
理を行うCPU、フォトプリンタ10の作動等に必要な
情報を記憶するメモリ、本スキャンの際の可変絞り24
の絞り値やCCDセンサ34の蓄積時間を決定する手段
等が配置され、また、操作系18やディスプレイ20
は、このCPU等(CPUバス)を介して各部位に接続
される。
As described above, the output signal (image data) from the scanner 12 is output to the image processing device 14.
FIG. 2 shows a block diagram of the image processing apparatus (hereinafter referred to as the processing apparatus 14). The processing device 14 includes a data processing unit 38,
A prescan (frame) memory 40, a main scan (frame) memory 42, a prescan image processing unit 44, a main scan image processing unit 46, and a condition setting unit 48 are included. Note that FIG. 2 mainly shows parts related to image processing, and the processing device 14 includes
A CPU that controls and manages the entire photo printer 10 including the processing device 14, a memory that stores information necessary for the operation of the photo printer 10, and a variable aperture 24 during the main scan.
Means for determining the aperture value of the camera and the storage time of the CCD sensor 34 are arranged, and the operation system 18 and the display 20 are arranged.
Is connected to each part via this CPU or the like (CPU bus).

【0023】スキャナ12から出力されたR,Gおよび
Bの各出力信号は、A/D(アナログ/デジタル)変
換、Log変換、DCオフセット補正、暗時補正、シェ
ーディング補正等を行うデータ処理部38で処理されて
デジタルの画像データとされ、プレスキャン(画像)デ
ータはプレスキャンメモリ40に、本スキャン(画像)
データは本スキャンメモリ42に、それぞれ記憶(格
納)される。なお、プレスキャンデータと本スキャンデ
ータは、解像度(画素密度)と信号レベルが異なる以外
は、基本的に同じデータである。
The R, G, and B output signals output from the scanner 12 are subjected to A / D (analog / digital) conversion, Log conversion, DC offset correction, dark correction, shading correction, and the like. Is processed into digital image data, and the pre-scan (image) data is stored in the pre-scan memory 40 in the main scan (image).
The data is stored (stored) in the main scan memory 42, respectively. The pre-scan data and the main scan data are basically the same data except that the resolution (pixel density) and the signal level are different.

【0024】プレスキャンメモリ40に記憶されたプレ
スキャンデータはプレスキャン画像処理部44におい
て、本スキャンメモリ42に記憶された本スキャンデー
タは本スキャン画像処理部46において、それぞれ処理
される。プレスキャン画像処理部44は、画像処理部5
0および画像データ変換部52を有して構成される。他
方、本スキャン画像処理部46は、画像処理部54、画
像データ変換部58およびレンズ特性データ供給部60
を有して構成される。
The prescan data stored in the prescan memory 40 is processed in the prescan image processing unit 44, and the main scan data stored in the main scan memory 42 is processed in the main scan image processing unit 46. The prescan image processing unit 44 includes the image processing unit 5
0 and the image data conversion unit 52. On the other hand, the main scan image processing unit 46 includes an image processing unit 54, an image data conversion unit 58, and a lens characteristic data supply unit 60.
Is configured.

【0025】プレスキャン画像処理部44の画像処理部
50(以下、処理部50とする)と、本スキャン画像処
理部46の画像処理部54(以下、処理部54とする)
は、共に、後述する条件設定部48が設定した画像処理
条件に応じて、スキャナ12によって読み取られた画像
(画像データ)に所定の画像処理を施す部位である。両
者は、処理する画像データの画素密度が異なり、また、
プレスキャン画像処理部44の処理部50が収差補正部
を有さない以外は、基本的に、同様の処理を行う。処理
部50および処理部54における画像処理としては、色
バランス調整、コントラスト補正(階調処理)、明るさ
補正、覆い焼き処理(濃度ダイナミックレンジの圧縮/
伸長)、彩度補正、シャープネス(鮮鋭化)処理等が例
示される。これらは、演算、LUT(ルックアップテー
ブル)による処理、マトリクス(MTX)演算、フィル
タによる処理等を適宜組み合わせた、公知の方法で行わ
れるものであり、図示例においては、色バランス調整、
明るさ補正およびコントラスト補正がLUTで行われ、
彩度補正がMTXで行われる。また、これ以外のシャー
プネス処理や覆い焼き処理等は、オペレータによる指示
や画像データ等に応じて、ブロック50Aおよびブロッ
ク54Aで行われる。
The image processing unit 50 of the pre-scan image processing unit 44 (hereinafter referred to as the processing unit 50) and the image processing unit 54 of the main scan image processing unit 46 (hereinafter referred to as the processing unit 54).
Is a part that performs predetermined image processing on the image (image data) read by the scanner 12 according to the image processing conditions set by the condition setting unit 48 described later. The two have different pixel densities of the image data to be processed, and
Basically, the same processing is performed except that the processing unit 50 of the pre-scan image processing unit 44 does not have an aberration correction unit. Image processing in the processing units 50 and 54 includes color balance adjustment, contrast correction (gradation processing), brightness correction, dodging processing (density dynamic range compression / compression).
(Expansion), saturation correction, sharpness (sharpening) processing, and the like. These are performed by a known method that appropriately combines operations, processing by LUT (look-up table), matrix (MTX) operation, processing by filters, etc. In the illustrated example, color balance adjustment,
Brightness correction and contrast correction are performed by the LUT,
The saturation correction is performed by MTX. Further, other sharpness processing, dodging processing, etc. are performed in the blocks 50A and 54A in accordance with instructions from the operator, image data, and the like.

【0026】ここで、本スキャンデータを処理する処理
部54のMTXとブロック54Aとの間には、歪曲収差
および倍率色収差の補正、ならびに電子変倍処理を行
う、収差補正部56が配置される。また、収差補正部5
6には、レンズ特性データ供給部60が接続される。図
示例の処理装置14においては、必要に応じて、この収
差補正部56において、レンズ特性および画像データの
画素位置(その画像の中心からの距離)とを用いて、画
像処理によってフィルムFに撮影された画像の歪曲色収
差および倍率色収差を補正しており、これにより歪や色
ズレのない、高画質な画像が再現されたプリントを安定
して出力することを実現している。
Here, between the MTX of the processing unit 54 that processes the main scan data and the block 54A, an aberration correction unit 56 that corrects distortion and chromatic aberration of magnification and performs electronic magnification processing is arranged. . Also, the aberration correction unit 5
A lens characteristic data supply unit 60 is connected to 6. In the processing device 14 of the illustrated example, the aberration correction unit 56 uses the lens characteristic and the pixel position of the image data (distance from the center of the image) to photograph the film F by image processing, if necessary. The distorted chromatic aberration and the chromatic aberration of magnification of the captured image are corrected, thereby realizing stable output of a print in which a high-quality image without distortion or color misregistration is reproduced.

【0027】なお、本発明においては、プレスキャン処
理部44の処理部50にも収差補正部を配置し、ディス
プレイ20に表示する画像にも、歪曲収差あるいはさら
に倍率色収差の補正を行ってもよいのはもちろんであ
る。
In the present invention, the processing section 50 of the prescan processing section 44 may also be provided with an aberration correction section so that the image displayed on the display 20 is also corrected for distortion or lateral chromatic aberration. Of course.

【0028】レンズ特性データ供給部60(以下、特性
データ供給部60とする)は、フィルムFを撮影したカ
メラを判別する判別情報を取得し、得られた判別情報に
対応する撮影カメラのレンズ特性の情報を収差補正部5
6に供給する部位である。
The lens characteristic data supply unit 60 (hereinafter referred to as the characteristic data supply unit 60) acquires the discrimination information for discriminating the camera that has photographed the film F, and the lens characteristic of the photographing camera corresponding to the obtained discrimination information. Information of the aberration correction unit 5
6 is a part to be supplied.

【0029】カメラ(すなわち撮影レンズ)を判別する
判別情報、およびその取得手段には特に限定はなく、各
種の方法が利用可能である。例えば、フィルムFが前述
の新写真システムのレンズ付きフィルムである場合に
は、フィルムFに記録された磁気情報をスキャナ12の
キャリアで読み取り、磁気記録されたカートリッジID
および/またはフィルム種をレンズ付きフィルムの機種
すなわちカメラの判別に利用してもよく、また、拡張D
Xコードの「SSU INDICATOR 」 を利用してもよい。ま
た、新写真システムに対応するカメラには、フィルムF
にカメラの機種を磁気記録する機能を有する機種もある
ので、これを利用してフィルムFを撮影したカメラを判
別してもよい。また、受け付け時に、レンズ付きフィル
ムの機種、撮影カメラの機種を顧客から聞いて、あるい
は見て判断して、カメラの機種をメモ、パトローネ、カ
ートリッジ、パッケージ等に記録しておき、プリント作
成時にオペレータがこれらを見てキーボード18aでカ
メラの機種を入力してもよい。あるいは、ファンクショ
ンキー等とカメラとの対応を決定しておき、これを用い
てカメラの機種を入力してもよい。さらに、撮影時にフ
ィルムにカメラの機種を光学的に焼き付け、これを読み
取ってもよく、カメラの機種を判別してもよい。レンズ
付きフィルムであれば、製造時等にレンズ付きフィルム
の機種をDXコードのように光学的に焼き付け、あるい
は新写真システムであれば磁気記録しておき、これを利
用して機種を判別してもよい。
There is no particular limitation on the discrimination information for discriminating the camera (that is, the photographing lens) and the obtaining means thereof, and various methods can be used. For example, when the film F is a lens-equipped film of the new photographic system described above, the magnetic information recorded on the film F is read by the carrier of the scanner 12, and the magnetically recorded cartridge ID is read.
The film type and / or the film type may be used to identify the model of the film with lens, that is, the camera, and the extended D
You may also use the X code "SSU INDICATOR". In addition, the camera compatible with the new photographic system is equipped with film F
Since there is also a model having a function of magnetically recording the model of the camera, it may be used to identify the camera that has photographed the film F. Also, at the time of acceptance, ask the customer about the model of the lens-equipped film or the model of the photographic camera, or judge it, and record the model of the camera on a memo, cartridge, cartridge, package, etc. Alternatively, the user may enter the model of the camera with the keyboard 18a by looking at them. Alternatively, the correspondence between the function key and the like and the camera may be determined in advance, and the model of the camera may be input using this. Further, the camera model may be optically printed on the film at the time of shooting and read, or the camera model may be discriminated. If it is a film with a lens, the model of the film with a lens is optically printed like a DX code at the time of manufacturing, or magnetically recorded if it is a new photographic system, and this can be used to determine the model. Good.

【0030】特性データ供給部60はメモリを有し、こ
のメモリには、各種のカメラの機種に応じたレンズ特性
の情報、具体的には、各種のレンズの歪曲収差および倍
率色収差の特性の情報、および、歪曲収差等の情報が記
憶されているレンズに対応する電子変倍率に関する情報
が記憶されている。特性データ供給部60は、取得した
カメラの判別情報から、それに応じたレンズ特性の情報
をメモリから読み出し、これを収差補正部56に供給す
る。なお、レンズ特性は特性データ供給部60が有する
メモリに記憶されるのに限定はされず、例えば、プリン
タ10に接続されるデータベースに記憶しておき、此所
にアクセスして読み出してもよく、あるいは、フィルム
Fの読み取り時にフィルムに対応するレンズの情報とし
て外部から入力されてもよい。
The characteristic data supply unit 60 has a memory, and this memory has information on lens characteristics according to various camera models, specifically, information on characteristics of distortion and lateral chromatic aberration of various lenses. , And information about electronic magnification corresponding to the lens in which information such as distortion aberration is stored. The characteristic data supply unit 60 reads out the information on the lens characteristic corresponding to the acquired discrimination information of the camera from the memory, and supplies this to the aberration correction unit 56. The lens characteristics are not limited to being stored in the memory included in the characteristic data supply unit 60, and may be stored in a database connected to the printer 10 and accessed and read out, for example. Alternatively, it may be input from the outside as the information of the lens corresponding to the film when the film F is read.

【0031】レンズの歪曲収差および倍率色収差の特性
の情報としては、特に限定はないが、倍率色収差や歪曲
収差を行うための補正関数や補正係数であってもよい。
あるいは、複数のレンズ種、好ましくは、プリンタ10
で処理する主たるレンズ種に対応する、倍率色収差や歪
曲収差補正の補正関数(基本補正式)を記憶しておき、
各レンズ毎に、この基本補正式に係る(補正する)補正
関数や補正係数を設定して、これを各レンズ毎の収差の
特性の情報として記憶してもよい。また、一般的に、レ
ンズの歪曲収差の特性や倍率色収差の特性は、レンズの
光軸すなわちフィルムFに撮影された画像の中心からの
距離(例えば、x−yで示される)をパラメータとする
3次関数で、ある程度まで近似することができるので、
歪曲収差や倍率色収差の補正が必要な各種のカメラに対
応して、それに応じた歪曲収差の特性を示す関数および
倍率色収差の特性を示す関数を、収差に関する特性の情
報として記憶してもよい。
The information on the characteristics of the distortion aberration and the chromatic aberration of magnification of the lens is not particularly limited, but may be a correction function or a correction coefficient for performing the chromatic aberration of magnification or the distortion aberration.
Alternatively, a plurality of lens types, preferably the printer 10
The correction function (basic correction formula) for chromatic aberration of magnification and distortion correction corresponding to the main lens type processed in
A correction function or a correction coefficient related to (correcting) this basic correction equation may be set for each lens, and this may be stored as information of the aberration characteristic for each lens. Further, generally, the characteristic of the distortion aberration and the characteristic of the chromatic aberration of magnification of the lens have the parameter as the parameter (for example, indicated by xy) from the optical axis of the lens, that is, the center of the image photographed on the film F. Since it can be approximated to some extent with a cubic function,
Corresponding to various cameras that require correction of distortion and lateral chromatic aberration, a function indicating the characteristic of the distortion aberration and a function indicating the characteristic of lateral chromatic aberration corresponding thereto may be stored as information on the characteristic regarding the aberration.

【0032】さらに、歪曲収差の補正に対応する各レン
ズの電子変倍率に関する情報は、通常の電子変倍率に乗
算や加算する補正係数を各レンズ毎に算出しておき、こ
の補正係数をレンズ特性として記憶おけばよい。この歪
曲収差の補正に対応する電子変倍率については、後に詳
述する。
Further, regarding the information regarding the electronic magnification of each lens corresponding to the correction of the distortion aberration, a correction coefficient for multiplying or adding to the normal electronic magnification is calculated for each lens, and this correction coefficient is used for the lens characteristics. You can remember as. The electronic magnification corresponding to the correction of this distortion will be described in detail later.

【0033】収差補正部56は、特性データ供給部60
から供給されたフィルムFの撮影レンズ特性と、画像デ
ータ(画素)の位置情報、例えば、画像中心(撮影レン
ズの光軸の中心)からの座標位置(中心の画素から何画
素目か)とを用いて、歪曲収差および倍率色収差の補
正、ならびに電子変倍処理を行う。この際において、マ
スク等によって切り出された画像の中心が、ほぼ撮影時
のレンズの光軸の中心と考えられる場合には、切り出さ
れた画像の中心の画素をレンズの光軸の中心として、歪
曲収差や倍率色収差等の補正を行ってもよい。
The aberration correction unit 56 includes a characteristic data supply unit 60.
And the position information of the image data (pixels), such as the coordinate position from the image center (center of the optical axis of the shooting lens) (the number of pixels from the center pixel). By using this, distortion and chromatic aberration of magnification are corrected, and electronic scaling processing is performed. At this time, if the center of the image cut out by a mask or the like is considered to be the center of the optical axis of the lens at the time of shooting, the pixel at the center of the cut out image is used as the center of the optical axis of the lens to distort the image. Aberrations and lateral chromatic aberrations may be corrected.

【0034】この場合の座標は、x−y座標でも極座標
でもよい。また、画像データの位置情報は、画像の中心
を基準とするのに限定はされず、各種のものが利用可能
であり、例えば、画像の角部(左上角等)や、ある画素
(例えば、画素番号1の画素)等を基準にしてもよく、
さらに、画像の外部、例えば、フィルムFのパーフォレ
ーション等を基準としてもよい。すなわち、本発明で
は、画像(画素)の位置が相対的に検出できれば、各種
の位置情報が利用可能である。
The coordinates in this case may be xy coordinates or polar coordinates. Further, the position information of the image data is not limited to the center of the image as a reference, and various kinds of information can be used, for example, a corner portion (upper left corner or the like) of the image or a certain pixel (for example, Pixel number 1) or the like may be used as a reference,
Further, the outside of the image, for example, the perforation of the film F may be used as a reference. That is, in the present invention, various position information can be used as long as the position of the image (pixel) can be relatively detected.

【0035】ここで、レンズ特性と画像の位置情報(以
下、画素位置とする)とを用いた倍率色収差および歪曲
収差の補正を別々に行うと、演算に時間がかかり、ま
た、補間演算も複数回行う必要が生じるため、画質が劣
化するという問題がある。そのため、好ましくは、R、
GおよびBの3原色の基準となる色、通常はGを基準と
して、RおよびBの像倍率を変換して、RおよびBの画
像をG画像に合わせることで倍率色収差を補正し、その
後、歪曲収差を補正する。これにより、各画素の適正位
置を算出し、これを用いて、各画素の画像データを補間
演算することによって、フィルムに撮影された画像の倍
率色収差および歪曲収差を補正した画像データを得るこ
とができる。従って、歪曲収差についてはG画像に対す
る演算のみを行えばよいので、演算量や補間演算を減ら
して、より好適な倍率色収差および歪曲収差の補正を行
うことができる。
Here, if the chromatic aberration of magnification and the distortion aberration are separately corrected using the lens characteristics and the positional information of the image (hereinafter referred to as pixel position), the calculation takes time and a plurality of interpolation calculations are required. There is a problem that the image quality is deteriorated because it has to be performed once. Therefore, preferably R,
With reference to the colors of the three primary colors of G and B, usually G as a reference, the image magnifications of R and B are converted, and the chromatic aberration of magnification is corrected by matching the R and B images with the G image. Corrects distortion. Thereby, the proper position of each pixel is calculated, and by using this, the image data of each pixel is interpolated to obtain image data in which the chromatic aberration of magnification and the distortion of the image captured on the film are corrected. it can. Therefore, since only the G image needs to be calculated for the distortion aberration, it is possible to reduce the amount of calculation and the interpolation operation and perform more preferable correction of the lateral chromatic aberration and the distortion aberration.

【0036】また、画像処理装置では、通常、画像デー
タ処理による画像の拡大もしくは縮小、すなわち、画像
の電子変倍を行って、画像(画像データ)を出力画像に
応じたサイズにして出力する。この電子変倍処理は、通
常、画像データを補間演算することにより行われる。と
ころが、前記倍率色収差および歪曲収差の補正でも補間
演算が行われているため、結果的に、2回の補間が行わ
れる結果となり、画質が劣化してしまう場合もある。
The image processing apparatus usually enlarges or reduces the image by image data processing, that is, electronically magnifies the image, and outputs the image (image data) in a size corresponding to the output image. This electronic scaling process is usually performed by performing interpolation calculation on image data. However, since the interpolation calculation is performed even in the correction of the chromatic aberration of magnification and the distortion, as a result, the interpolation is performed twice, and the image quality may be deteriorated.

【0037】そのため、本発明においては、より好まし
くは、前記レンズ特性と画像データの画素位置とを用い
て、倍率色収差に起因する基準色(G)に対するRおよ
びBの画素位置のずれ量と、歪曲収差に起因する基準色
の画素位置のずれ量とから、各画素毎の適正位置を算出
し、算出された各画素の適正位置の情報を用いて、画像
データを補間して画像の電子変倍処理を行う。言い換え
れば、倍率色収差および歪曲収差による画素位置のずれ
量を算出することにより、各画素が本来どの位置にある
べきであるかを知見し、この適正な位置に応じて画像デ
ータの補間演算を行って電子変倍処理を行う。これによ
り、1回の補間演算で、歪曲収差および倍率色収差の補
正と、電子変倍処理とを行うことができる。
Therefore, in the present invention, more preferably, by using the lens characteristic and the pixel position of the image data, the shift amount of the R and B pixel positions with respect to the reference color (G) due to the lateral chromatic aberration, The proper position for each pixel is calculated from the amount of deviation of the pixel position of the reference color due to distortion, and the information on the calculated proper position of each pixel is used to interpolate the image data and electronically transform the image. Do double processing. In other words, by calculating the shift amount of the pixel position due to the chromatic aberration of magnification and the distortion aberration, it is possible to find out which position each pixel should originally be, and perform the interpolation calculation of the image data according to this proper position. Electronic scaling processing. As a result, it is possible to correct distortion and chromatic aberration of magnification and perform electronic scaling processing with a single interpolation calculation.

【0038】図示例の収差補正部56は、上記方法を用
いて、倍率色収差および歪曲収差の補正と、電子変倍処
理とを行う部位であり、図3の概念図に示されるよう
に、座標変換処理部56Aと、拡大縮小処理部56Bと
を有して構成される。なお、図3において、ir,ig
およびibは、それぞれMTXから供給された画像デー
タ(入力画像データ)の画素位置(アドレス)を;I
r,IgおよびIbは、倍率色収差および歪曲収差を補
正された画像データの画素位置を;ΔrおよびΔbは、
それぞれ倍率色収差によるGの画素位置に対するRおよ
びBの画素位置のずれ量(すなわち補正量)を;Dは、
歪曲収差によるGの画素位置のずれ量を; それぞれ示
す。
The aberration correction unit 56 in the illustrated example is a portion for performing correction of lateral chromatic aberration and distortion and electronic magnification processing using the above method, and as shown in the conceptual diagram of FIG. The conversion processing unit 56A and the scaling processing unit 56B are included. In FIG. 3, ir, ig
And ib are pixel positions (addresses) of image data (input image data) supplied from MTX; I
r, Ig, and Ib are pixel positions of the image data whose chromatic aberration of magnification and distortion have been corrected; Δr and Δb are
The shift amount (that is, the correction amount) of the R and B pixel positions with respect to the G pixel position due to the chromatic aberration of magnification, respectively, is D;
The amount of deviation of the pixel position of G due to the distortion aberration is shown respectively.

【0039】収差補正部56においては、MTXから画
像データが供給されると、座標変換処理部56Aにおい
て、特性データ供給部60から供給されたレンズ特性を
用いて、RおよびBの画像データの各画素位置irおよ
びibにおける、Gの画像データigに対する倍率色収
差によるずれ量ΔrおよびΔbを算出し、さらに、Gの
入力画像データigの歪曲収差によるずれ量Dを算出す
る。
In the aberration correction section 56, when the image data is supplied from the MTX, the coordinate conversion processing section 56A uses the lens characteristics supplied from the characteristic data supply section 60 to calculate the R and B image data. The shift amounts Δr and Δb due to the chromatic aberration of magnification with respect to the G image data ig at the pixel positions ir and ib are calculated, and further the shift amount D due to the distortion aberration of the G input image data ig is calculated.

【0040】次いで、図3に示されるように、Rの入力
画像データの各画素位置irに前記ΔrとDを加えて、
倍率色収差および歪曲収差を補正されたRの画像データ
の画素位置Irを算出し、Bの入力画像データの各画素
位置ibに前記ΔbとDを加えて、倍率色収差および歪
曲収差を補正されたBの画像データの画素位置Ibを算
出し、Gの入力画像データの各画素位置igに前記Dを
加えて、倍率色収差および歪曲収差を補正されたBの画
像データの画素位置Ibを算出する。すなわち、この計
算では、G画像を基準として、R画像およびB画像の倍
率色収差を補正して、全画像をG画像に位置合わせし
て、G画像の歪曲収差によるずれ量Dを用いて、全体の
歪曲収差を補正して、R,GおよびBの各画像の倍率色
収差および歪曲収差を補正された画素位置を算出してい
る。
Next, as shown in FIG. 3, the above Δr and D are added to each pixel position ir of the R input image data,
The pixel position Ir of the R image data in which the chromatic aberration of magnification and the distortion are corrected is calculated, and the Δb and D are added to each pixel position ib of the input image data of the B to correct the chromatic aberration of magnification and the B in which the distortion aberration is corrected. The pixel position Ib of the image data of 1 is calculated, and the pixel position ig of the input image data of G is added to the pixel position ig to calculate the pixel position Ib of the image data of B whose chromatic aberration of magnification and distortion are corrected. That is, in this calculation, the chromatic aberration of magnification of the R and B images is corrected with the G image as a reference, all the images are aligned with the G image, and the shift amount D due to the distortion aberration of the G image is used to Is corrected to calculate the pixel position in which the chromatic aberration of magnification and the distortion of each of the R, G, and B images are corrected.

【0041】次いで、拡大縮小処理部56Bにおいて、
この倍率色収差および歪曲収差を補正された画素位置I
r,IgおよびIbを用いて、拡大/縮小倍率に応じた
画像データの補間処理(N倍補間)を行うことにより画
像の変倍を行い、倍率色収差および歪曲収差を補正さ
れ、かつ電子変倍処理を行われた画像データとして、ブ
ロック54Aに出力する。電子変倍処理の方法には特に
限定はなく、公知の方法が各種利用可能であり、例え
ば、バイリニア補間を用いる方法、スプライン補間を用
いる方法等が例示される。
Then, in the enlargement / reduction processing unit 56B,
Pixel position I in which the chromatic aberration of magnification and the distortion are corrected
Using r, Ig, and Ib, image data is scaled by performing image data interpolation processing (N-fold interpolation) according to the magnification / reduction magnification, and chromatic aberration of magnification and distortion are corrected, and electronic magnification is changed. The processed image data is output to the block 54A. The method of electronic scaling processing is not particularly limited, and various known methods can be used, and examples thereof include a method using bilinear interpolation and a method using spline interpolation.

【0042】ここで、図示例の装置においては、歪曲収
差の補正を行わない場合には、出力する画像のサイズに
応じた通常の変倍率で電子変倍処理を行い、歪曲収差の
補正を行う場合には、通常よりも高い変倍率で電子変倍
処理を行う。
Here, in the apparatus of the illustrated example, when the distortion aberration is not corrected, the electronic magnification processing is performed at the normal scaling ratio according to the size of the output image to correct the distortion aberration. In this case, the electronic scaling process is performed at a scaling ratio higher than usual.

【0043】すなわち、図示例の画像処理装置14にお
いては、特性データ供給部60がカメラの判別情報を取
得しなかった場合、および特性データ供給部60が取得
したカメラの判別情報に対応するレンズ特性が無かった
場合、さらに、倍率色収差および歪曲収差補正のキャン
セルが指示された場合には、収差補正部56は、歪曲収
差の補正は不要と判断して、座標変換処理部56Aでは
何の処理も行わず画像データを通過させて(あるいは、
バイパスを設けてもよい)、拡大縮小処理部56Bでの
電子変倍処理のみを行って画像データをブロック54A
に供給する。この際には、拡大縮小処理部56Bにおい
ては、出力する画像(プリント)のサイズに応じて設定
された、通常の変倍率で電子変倍処理を行う。
That is, in the image processing apparatus 14 of the illustrated example, the lens characteristic corresponding to the case where the characteristic data supply unit 60 has not acquired the discrimination information of the camera and the case where the characteristic data supply unit 60 has acquired the discrimination information of the camera. If there is no error, or if cancellation of lateral chromatic aberration and distortion aberration correction is instructed, the aberration correction unit 56 determines that correction of distortion aberration is unnecessary, and the coordinate conversion processing unit 56A does not perform any processing. Pass image data without (or
A bypass may be provided), and only the electronic scaling processing is performed in the enlargement / reduction processing unit 56B to display the image data in the block 54A.
Supply to. At this time, the enlargement / reduction processing unit 56B performs the electronic scaling process at the normal scaling ratio set according to the size of the image (print) to be output.

【0044】これに対し、上記以外の場合には、収差補
正部56は歪曲収差の補正が必要であると判断して、前
述の収差補正の処理を行う。ここで、レンズ特性として
は、前述のように、歪曲収差および倍率色収差の特性の
情報に加え、拡大縮小処理部56Bに、レンズ種に応じ
た電子変倍率の補正係数が送られ、画像サイズに応じた
通常の変倍率をこの補正係数で補正して、通常よりも大
きな変倍率で電子変倍処理を行う(画像を通常よりも大
きくする)。
On the other hand, in cases other than the above, the aberration correction unit 56 determines that the correction of distortion is necessary and performs the above-described aberration correction processing. Here, as the lens characteristic, as described above, in addition to the information on the characteristic of the distortion aberration and the chromatic aberration of magnification, the correction coefficient of the electronic scaling factor according to the lens type is sent to the enlargement / reduction processing unit 56B, and the image size is changed. The corresponding normal scaling ratio is corrected by this correction coefficient, and electronic scaling processing is performed at a scaling ratio larger than usual (the image is made larger than usual).

【0045】図4に、収差補正部56での処理における
画像(形状およびサイズ)のイメージを示す。スキャナ
12から出力されるフィルムFに撮影された画像の画像
データは、図4(a)に示されるように、画像読取のマ
クスサイズや出力画像に対応する画像の切り出しに応じ
た矩形画像の画像データとなっている。これに対し、座
標変換処理部56Aで歪曲収差を補正された(すなわ
ち、各画素の位置を適正位置とされた)画像データは、
図4(b)に示されるように、歪曲収差に応じて変形
し、図中に斜線で示される領域は、画像データの無い画
欠け、いわゆるケラレを生じた状態となってしまう。従
って、このまま通常の変倍率(例えば、拡大k1 倍,縮
小k2 倍)で電子変倍を掛けると、図4(d)に示され
るように、出力される画像(プリント)Pは、斜線で示
される領域がシロ抜けした画像となる。
FIG. 4 shows an image of an image (shape and size) in the processing in the aberration correction unit 56. As shown in FIG. 4A, the image data of the image photographed on the film F output from the scanner 12 is a rectangular image image corresponding to the image reading max size or the image cutout corresponding to the output image. It is data. On the other hand, the image data whose distortion is corrected by the coordinate conversion processing unit 56A (that is, the position of each pixel is set to the proper position) is
As shown in FIG. 4B, the image is deformed in accordance with the distortion aberration, and the region shown by the diagonal lines in the drawing is in a state where image loss without image data, so-called vignetting occurs. Therefore, if the electronic scaling is applied with the normal scaling ratio (enlargement k 1 times, reduction k 2 times) as it is, the output image (print) P is shaded as shown in FIG. The area indicated by is an image with missing dots.

【0046】通常から大きな電子変倍率を設定してある
装置であれば、画像データが歪曲収差に対して十分なサ
イズを持つので、このような不都合は起きない。しかし
ながら、フィルムに撮影された画像は可能な限りプリン
トに再生するのが好ましいので、より高品位なプリント
を目的とするフォトプリンタでは、スキャナで読み取る
画像のサイズと出力画像のサイズとに応じてギリギリの
電子変倍率を設定してあるので、上記歪曲収差の補正を
行うと、収差の程度によっては周囲にケラレが生じてし
まう。
In the case of an apparatus in which a large electronic scaling ratio is set from the normal, since the image data has a sufficient size with respect to the distortion aberration, such inconvenience does not occur. However, it is preferable to reproduce the image shot on the film as much as possible in the print.Therefore, in a photo printer for the purpose of higher quality printing, the limit is set according to the size of the image read by the scanner and the size of the output image. Since the electronic scaling ratio is set, if the above distortion aberration is corrected, vignetting may occur in the surroundings depending on the degree of the aberration.

【0047】これに対し、本発明においては、歪曲収差
を補正した場合には、歪曲収差の補正によるケラレが画
像出力用の画像データに生じないように前記ケラレの分
だけ電子変倍処理の変倍率を大きくして、すなわち収差
補正によるケラレを相殺する電子変倍率として(例え
ば、拡大n1 倍、縮小n2 倍 但し、k1 <n1 ,k2
<n2 )、図4(c)に示されるように、歪曲収差の補
正によってケラレを生じた部分より内側の画像領域、好
ましくは内接する画像領域が、出力画像のサイズとなる
ように電子変倍処理を行う。図示例においては、レンズ
特性として、歪曲収差を行うレンズ毎に、変倍率の補正
係数を決めて記憶しておき、歪曲収差補正を行った場合
には、通常の変倍率にこの補正係数を乗算もしくは加算
することにより、通常よりも大きな変倍率で電子変倍処
理を行う。これにより、通常はフィルムに撮影された画
像を可能な限り再生するように変倍率が設定された装置
であっても、歪曲収差がある場合にはこれを補正して、
しかもケラレの無い高画質な画像を出力でき、歪曲収差
の補正と、顧客が撮影した画像の好適な再生とを両立す
ることができる。
On the other hand, in the present invention, when the distortion aberration is corrected, the electronic scaling processing is changed by the amount of the vignetting so that the vignetting due to the correction of the distortion does not occur in the image data for image output. The magnification is increased, that is, as an electronic variable magnification that cancels out vignetting due to aberration correction (for example, enlargement n 1 times, reduction n 2 times, where k 1 <n 1 , k 2
<N 2 ), as shown in FIG. 4 (c), electronic conversion is performed so that the image area inside the portion where vignetting has occurred due to the correction of the distortion aberration, preferably the inscribed image area, has the size of the output image. Do double processing. In the illustrated example, as a lens characteristic, a correction coefficient for a variable magnification is determined and stored for each lens that performs distortion, and when the distortion is corrected, the normal magnification is multiplied by this correction coefficient. Alternatively, by adding, the electronic scaling process is performed with a scaling ratio larger than usual. As a result, even with a device in which the scaling factor is normally set to reproduce the image shot on film as much as possible, if there is distortion aberration, correct it,
Moreover, it is possible to output a high-quality image without vignetting, and it is possible to both correct distortion and appropriately reproduce the image captured by the customer.

【0048】このような補正係数の決定方法には特に限
定はなく、例えば、実験的に決定する方法、レンズ設計
に基づくシュミレーションで決定する方法、画像データ
の解像度(サイズ)とレンズ特性、電子変倍率から計算
によって求める方法等が例示される。なお、歪曲収差の
量は、画像の縦、横で異なる場合があるので、その際に
は、それに応じて、縦と横で電子変倍率(補正係数)を
変えるのが好ましい。
The method of determining such a correction coefficient is not particularly limited, and examples thereof include a method of determining experimentally, a method of determining by a simulation based on lens design, the resolution (size) of image data and lens characteristics, and electronic variation. An example is a method of calculating from the magnification. Note that the amount of distortion may be different in the vertical and horizontal directions of the image, and in that case, it is preferable to change the electronic scaling factor (correction coefficient) in the vertical and horizontal directions accordingly.

【0049】なお、本発明においては、電子変倍率の補
正係数は、レンズ毎に算出するのに限定はされず、歪曲
収差を補正する全レンズに共通な補正係数を一つだけ記
憶してもよい。なお、この場合は、通常に比して、0.
1%〜5%程度大きくすればよい。あるいは、補正係数
ではなく、歪曲収差を行った場合の変倍率を、プリント
サイズ毎に算出(各レンズ毎もしくは全レンズ共通)し
て記憶してもよい。この場合にも、縦と横とで歪曲収差
が異なる場合には、変倍率を変えるのが好ましいのはも
ちろんである。
In the present invention, the correction coefficient for the electronic scaling factor is not limited to being calculated for each lens, and even if only one correction coefficient common to all the lenses for correcting distortion is stored. Good. In this case, compared with the normal case, the value of 0.
It may be increased by about 1% to 5%. Alternatively, instead of the correction coefficient, the scaling factor when distortion is performed may be calculated for each print size (for each lens or common to all lenses) and stored. Also in this case, it is of course preferable to change the magnification when the vertical and horizontal distortions are different.

【0050】図示例の装置においては、好ましい態様と
して、収差補正部56において歪曲収差および倍率色収
差の両者を補正しているが、本発明はこれに限定はされ
ず、レンズ特性として歪曲収差の特性のみを記憶してお
き、これと画素位置とを用いて、歪曲収差のみを補正し
てもよい。この場合は、例えば、歪曲収差に起因するズ
レ量を補正した適正位置を算出し、これを用いて歪曲収
差を補正した後に、公知の方法で電子変倍処理を行って
もよいが、好ましくは、前述の方法と同様に、歪曲収差
に起因するズレ量を補正した適正位置を算出し、この適
正位置の情報を用いて画像データの補間を行って電子変
倍処理を行い、歪曲収差の補正と電子変倍とを行うのが
好ましい。これにより、同様に、補間演算を減らし、補
間に起因する画質の劣化を低減できる。
In the apparatus shown in the figure, as a preferable mode, both the aberration and the lateral chromatic aberration are corrected by the aberration corrector 56, but the present invention is not limited to this, and the characteristic of the distortion is the lens characteristic. Only the distortion may be stored, and only this distortion may be corrected using this and the pixel position. In this case, for example, an appropriate position in which the amount of deviation caused by the distortion aberration is corrected is calculated, and after correcting the distortion aberration using this, electronic scaling processing may be performed by a known method, but it is preferable. , Similar to the method described above, calculate the proper position by correcting the amount of deviation caused by the distortion aberration, use the information of this proper position to interpolate the image data, perform electronic scaling processing, and correct the distortion aberration. And electronic scaling are preferably performed. Thereby, similarly, the interpolation calculation can be reduced, and the deterioration of the image quality due to the interpolation can be reduced.

【0051】さらに、歪曲収差や倍率色収差のみなら
ず、レンズに起因するピントボケ(PSF:Point Sprea
d Function)や周辺光量低下の情報も記憶しておき、歪
曲収差、あるいはさらに倍率色収差の補正に加え、ピン
トボケ補正や周辺光量補正も行うようにしてもよい。
Furthermore, not only distortion and chromatic aberration of magnification but also focus blur (PSF: Point Sprea) caused by the lens
d Function) and information on the reduction of the peripheral light amount may be stored, and in addition to the correction of the distortion aberration or the chromatic aberration of magnification, the focus blur correction and the peripheral light amount correction may be performed.

【0052】処理部50および54で処理された画像デ
ータは、画像データ変換部52および58に送られる。
プレスキャン画像処理部44の画像データ変換部52
は、処理部50によって処理された画像データを、3D
(三次元)−LUT等を用いて変換して、ディスプレイ
20による表示に対応する画像データにする。他方、本
スキャン画像処理部46の画像データ変換部58は、同
様に、処理部54によって処理された画像データを3D
−LUTを用いて変換し、プリンタ16による画像記録
に対応する画像データとしてプリンタ16に供給する部
位である。
The image data processed by the processing units 50 and 54 are sent to the image data conversion units 52 and 58.
Image data conversion unit 52 of the prescan image processing unit 44
Is a 3D image data processed by the processing unit 50.
The image data corresponding to the display by the display 20 is converted by using (3D) -LUT or the like. On the other hand, the image data conversion unit 58 of the main scan image processing unit 46 similarly performs 3D processing on the image data processed by the processing unit 54.
A part that is converted using the LUT and is supplied to the printer 16 as image data corresponding to image recording by the printer 16.

【0053】なお、本発明においては、画像処理を施し
た画像データを、プリンタ16以外にも、フロッピーデ
ィスクやMO等の記録媒体、コンピュータ、通信ネット
ワーク等に出力することも可能である。また、プレスキ
ャン画像処理部44にも収差補正部を設け、収差補正を
施した画像をディスプレイ20に表示してもよいのは前
述のとおりであり、あるいは、本スキャン画像処理部4
6で処理した収差補正を施した画像データを、必要に応
じて間引いてディスプレイ20あるいは他の表示手段に
表示してもよい。
In the present invention, the image data subjected to the image processing can be output to a recording medium such as a floppy disk or MO, a computer, a communication network, etc., in addition to the printer 16. As described above, the prescan image processing unit 44 may also be provided with an aberration correction unit and the image on which the aberration correction has been performed may be displayed on the display 20. Alternatively, the main scan image processing unit 4 may be used.
The aberration-corrected image data processed in 6 may be thinned out and displayed on the display 20 or other display means as needed.

【0054】プレスキャン画像処理部44および本スキ
ャン画像処理部46による各種の処理条件は、条件設定
部48によって設定される。この条件設定部48は、画
像処理条件設定部72、キー補正部74およびパラメー
タ統合部76を有して構成される。
Various processing conditions by the prescan image processing unit 44 and the main scan image processing unit 46 are set by the condition setting unit 48. The condition setting unit 48 includes an image processing condition setting unit 72, a key correction unit 74, and a parameter integration unit 76.

【0055】画像処理条件設定部72(以下、設定部7
2とする)は、施す画像処理を選択すると共に、プレス
キャンデータを用いて、処理部50および54における
画像処理条件を設定し、パラメータ統合部76に供給す
る。具体的には、設定部72は、プレスキャンデータか
ら、濃度ヒストグラムの作成や、平均濃度、LATD
(大面積透過濃度)、ハイライト(最低濃度)、シャド
ー(最高濃度)等の画像特徴量の算出等を行い、加え
て、必要に応じて行われるオペレータによる指示に応じ
て、前述のグレイバランス調整等のテーブル(LUT)
や彩度補正を行うマトリクス演算の作成等の画像処理条
件を決定する。なお、歪曲収差を補正する場合には、電
子変倍処理の変倍率が通常と異なるので、それに応じて
各種の画像処理条件、例えば、シャープネス処理の係数
や各種のフィルタに掛ける係数、各種の補正係数等を変
更してもよい。
The image processing condition setting unit 72 (hereinafter, the setting unit 7
2) sets the image processing conditions in the processing units 50 and 54 by using the prescan data and supplies the parameter processing unit 76 with the parameter integration unit 76. Specifically, the setting unit 72 creates a density histogram from the prescan data, average density, and LATD.
(Large area transmission density), highlight (minimum density), shadow (maximum density), etc. are calculated, and in addition to the above-mentioned gray balance according to the operator's instructions that are performed as necessary. Adjustment table (LUT)
And image processing conditions such as creation of matrix calculation for saturation correction are determined. Note that when correcting distortion, the magnification of the electronic variable magnification process is different from usual, and accordingly various image processing conditions, for example, coefficients for sharpness processing and coefficients for various filters, various corrections are performed. You may change a coefficient etc.

【0056】キー補正部74は、キーボード18aに設
定された明るさ、色、コントラスト、シャープネス、彩
度調等を調整するキーやマウス18bで入力された各種
の指示等に応じて、画像処理条件の調整量(例えば、L
UTの補正量等)を算出し、パラメータ統合部76に供
給するものである。パラメータ統合部76は、設定部7
2が設定した画像処理条件を受け取り、供給された画像
処理条件をプレスキャン画像処理部44の処理部50お
よび本スキャン画像処理部46の処理部54に設定し、
さらに、キー補正部74で算出された調整量に応じて、
各部位に設定した画像処理条件を補正(調整)し、ある
いは画像処理条件を再設定する。
The key correction section 74 operates in accordance with image processing conditions according to the keys set on the keyboard 18a for adjusting the brightness, color, contrast, sharpness, saturation and the like, and various instructions input with the mouse 18b. Adjustment amount (for example, L
The UT correction amount, etc.) is calculated and supplied to the parameter integration section 76. The parameter integration unit 76 is configured by the setting unit 7
2 receives the image processing conditions set and sets the supplied image processing conditions in the processing unit 50 of the pre-scan image processing unit 44 and the processing unit 54 of the main scan image processing unit 46,
Further, according to the adjustment amount calculated by the key correction unit 74,
The image processing condition set for each part is corrected (adjusted) or the image processing condition is reset.

【0057】以下、処理装置14の作用を説明する。前
述のように、プレスキャンメモリ40にプレスキャンデ
ータが記憶されると、設定部72がこれを読み出し、濃
度ヒストグラムの作成や画像特徴量の算出等を行い、こ
れを用いて、画像処理条件を設定(LUTやMTXの作
成)してパラメータ統合部76に送る。これと平行し
て、可変絞り24の絞り値決定等の本スキャンの読取条
件が設定されてスキャナ12が調整され、次いで、スキ
ャナ12では本スキャンが行われ、本スキャンデータ
が、順次、本スキャンメモリ40に転送・記憶される。
The operation of the processing device 14 will be described below. As described above, when the prescan data is stored in the prescan memory 40, the setting unit 72 reads the prescan data, creates the density histogram, calculates the image feature amount, and the like, and uses the image data to set the image processing conditions. The setting (creating LUT or MTX) is performed and the result is sent to the parameter integration unit 76. In parallel with this, the reading conditions of the main scan such as the determination of the aperture value of the variable diaphragm 24 are set and the scanner 12 is adjusted. Then, the scanner 12 performs the main scan, and the main scan data is sequentially scanned. It is transferred and stored in the memory 40.

【0058】また、処理装置14には、キーボード18
aやマウス18bによって入力された各種の指示や情
報、スキャナ12(キャリア)で読み取られたフィルム
Fの磁気情報が送られており、前述のようにしてカメラ
の判別情報が入力された場合には、これが特性データ供
給部60に送られる。
Further, the processing unit 14 includes a keyboard 18
In the case where various instructions and information input by a or the mouse 18b and magnetic information of the film F read by the scanner 12 (carrier) are sent, and the discrimination information of the camera is input as described above, , Which is sent to the characteristic data supply unit 60.

【0059】画像処理条件を受け取ったパラメータ統合
部76は、これを、プレスキャン画像処理部44の処理
部50、および本スキャン画像処理部46の処理部54
の所定部位(ハードウエア)に設定する。次いで、プレ
スキャンメモリ40からプレスキャンデータが読み出さ
れ、処理部50において設定された画像処理条件で処理
されて、画像データ変換部52で変換されて、所定の処
理を施されたプレスキャン画像が、ディスプレイ20に
表示される。なお、この際、ディスプレイ20に表示す
る画像も前述と同様に歪曲収差や倍率色収差の補正を施
してもよい。
The parameter unifying unit 76 which has received the image processing conditions sends the image processing conditions to the processing unit 50 of the prescan image processing unit 44 and the processing unit 54 of the main scan image processing unit 46.
Set to the specified part (hardware) of. Next, prescan data is read from the prescan memory 40, processed by the image processing conditions set in the processing unit 50, converted by the image data conversion unit 52, and subjected to predetermined processing. Is displayed on the display 20. At this time, the image displayed on the display 20 may be corrected for distortion and lateral chromatic aberration in the same manner as described above.

【0060】オペレータは、ディスプレイ20の表示を
見て、画像すなわち処理結果の確認(検定)を行い、必
要に応じて、キーボード18aに設定された前記各キー
等を用いて色/濃度、階調等を調整する。この調整の入
力は、キー補正部74に送られ、キー補正部74は調整
入力に応じた画像処理条件の補正量を算出し、これをパ
ラメータ統合部76に送る。パラメータ統合部76は、
送られた補正量に応じて、前述のように、処理部50お
よび処理部54のLUTやMTXを補正し、この補正す
なわちオペレータによる調整入力に応じて、ディスプレ
イ20に表示される画像も変化する。
The operator confirms (verifies) the image, that is, the processing result by looking at the display on the display 20, and if necessary, uses the respective keys set on the keyboard 18a, etc., for the color / density and gradation. And so on. The input of this adjustment is sent to the key correction unit 74, the key correction unit 74 calculates the correction amount of the image processing condition according to the adjustment input, and sends it to the parameter integration unit 76. The parameter integration unit 76
As described above, the LUT and MTX of the processing unit 50 and the processing unit 54 are corrected according to the correction amount sent, and the image displayed on the display 20 also changes according to this correction, that is, the adjustment input by the operator. .

【0061】オペレータは、ディスプレイ20に表示さ
れる画像が適正である判定(検定OK)すると、キーボ
ード18a等を用いてプリント開始を指示する。これに
より、画像処理条件が確定し、本スキャンメモリ42か
ら本スキャンデータが読み出され、本スキャン画像処理
部46の処理部54送られる。
When the operator determines that the image displayed on the display 20 is proper (verification OK), the operator gives an instruction to start printing by using the keyboard 18a or the like. As a result, the image processing conditions are determined, the main scan data is read from the main scan memory 42, and is sent to the processing unit 54 of the main scan image processing unit 46.

【0062】処理部54において、画像データは、LU
TおよびMTXで処理された後、収差補正部56に送ら
れる。一方、特性データ供給部60は、取得したカメラ
の判別情報から、対応するレンズ特性を読み出し、これ
を収差補正部56に送る。収差補正部56は、レンズ特
性と画像データの画素位置とから、前述のようにして、
座標変換処理部56Aにおいて、倍率色収差および歪曲
収差を補正した画素位置Ir,IgおよびIbを算出し
て、拡大縮小処理部56Bにおくる。拡大縮小処理部5
6Bでは、送られたレンズ特性すなわち変倍率の補正係
数を用いて、出力画像のサイズに応じた通常の変倍率を
補正し、画素位置Ir,IgおよびIbを用いて、補正
した拡大/縮小率に応じた画像データのN倍補間を行っ
て画像の電子変倍を行い、倍率色収差および歪曲収差の
補正、ならびに電子変倍処理を施された画像データとし
てブロック54Aに出力する。なお、座標変換処理部5
6Aでの画素位置Ir,IgおよびIbの算出、ならび
に電子変倍率の算出は、画像データの供給に先立ち、特
性データ供給部60からレンズ特性の情報を受けた時点
で行ってもよい。
In the processing unit 54, the image data is LU
After being processed by T and MTX, they are sent to the aberration correction unit 56. On the other hand, the characteristic data supply unit 60 reads out the corresponding lens characteristic from the acquired discrimination information of the camera and sends it to the aberration correction unit 56. The aberration corrector 56 uses the lens characteristics and the pixel position of the image data to determine
The coordinate conversion processing unit 56A calculates the pixel positions Ir, Ig, and Ib in which the chromatic aberration of magnification and the distortion aberration are corrected, and the calculated position is sent to the scaling processing unit 56B. Enlargement / reduction processing unit 5
In 6B, the sent lens characteristic, that is, the correction coefficient of the scaling factor is used to correct the normal scaling factor according to the size of the output image, and the pixel positions Ir, Ig, and Ib are used to correct the scaling ratio. The image data is subjected to N-fold interpolation in accordance with the above, electronic scaling of the image is performed, and correction of chromatic aberration of magnification and distortion and electronic scaling processing are performed, and the image data is output to the block 54A. The coordinate conversion processing unit 5
The calculation of the pixel positions Ir, Ig and Ib in 6A and the calculation of the electronic scaling factor may be performed at the time when the lens characteristic information is received from the characteristic data supply unit 60 before the image data is supplied.

【0063】また、前述のようにして、収差補正部56
が歪曲収差の補正が不要であると判断した場合には、座
標変換処理部56Aでは何の処理も行われず、拡大縮小
処理部56Bにおいて出力画像のサイズに応じた、通常
の変倍率での電子変倍処理が行われる。
Further, as described above, the aberration correction unit 56
If it is determined that the correction of the distortion aberration is unnecessary, the coordinate conversion processing unit 56A does not perform any processing, and the scaling processing unit 56B performs electronic processing at a normal scaling ratio according to the size of the output image. Magnification processing is performed.

【0064】画像データは、さらに、ブロック54Aに
おいてシャープネス処理や覆い焼き処理等の必要な画像
処理を施され、画像データ変換部58に送られ、画像デ
ータ変換部58においてプリンタ16による画像記録に
応じた画像データに変換され、プリンタ16に送られ
る。なお、検定を行わない場合には、パラメータ統合部
76による本スキャン画像処理部46の処理部54への
画像処理条件の設定を終了した時点で画像処理条件が確
定し、自動的に本スキャンデータの処理を行って、プリ
ンタ16に送る。これらは、作業モード等で選択できる
ようにするのが好ましい。
The image data is further subjected to necessary image processing such as sharpness processing and dodging processing in a block 54A, and is sent to an image data converting section 58, where the image data converting section 58 responds to image recording by the printer 16. The converted image data is sent to the printer 16. If the verification is not performed, the image processing conditions are determined when the parameter integration unit 76 finishes setting the image processing conditions in the processing unit 54 of the main scan image processing unit 46, and the main scan data is automatically acquired. Is processed and sent to the printer 16. It is preferable that these can be selected in the work mode or the like.

【0065】前述のように、処理装置14で処理された
画像データは、プリンタ16に送られる。プリンタ16
は、感光材料(印画紙)を画像データに応じて露光して
潜像を記録し、感光材料に応じた現像処理を施して(仕
上り)プリントとして出力するものである。例えば、感
光材料をプリントに応じた所定長に切断した後に、バッ
クプリントの記録、感光材料(印画紙)の分光感度特性
に応じた、赤(R)露光、緑(G)露光および青(B)
露光Gの3種の光ビームを画像データ(記録画像)に応
じて変調すると共に、主走査方向に偏向し、主走査方向
と直交する副走査方向に感光材料を搬送することによる
潜像の記録等を行い、潜像を記録した感光材料に、発色
現像、漂白定着、水洗等の所定の湿式現像処理を行い、
乾燥してプリントとした後に、仕分けして集積する。
As described above, the image data processed by the processing device 14 is sent to the printer 16. Printer 16
Is a method for exposing a photosensitive material (photographic paper) according to image data to record a latent image, performing a developing process according to the photosensitive material (finished), and outputting it as a print. For example, after cutting the photosensitive material into a predetermined length according to the print, recording of back print, red (R) exposure, green (G) exposure and blue (B) according to the spectral sensitivity characteristic of the photosensitive material (printing paper). )
Recording of a latent image by modulating the three types of light beams of the exposure G according to image data (recording image), deflecting the light beams in the main scanning direction, and conveying the photosensitive material in the sub scanning direction orthogonal to the main scanning direction. Etc., the photosensitive material on which the latent image is recorded is subjected to predetermined wet development processing such as color development, bleach-fixing, washing with water,
After dried and printed, it is sorted and collected.

【0066】以上、本発明の画像処理方法および画像処
理装置について詳細に説明したが、本発明は上記実施例
に限定はされず、本発明の要旨を逸脱しない範囲におい
て、各種の改良および変更を行ってもよいのはもちろん
である。
Although the image processing method and the image processing apparatus of the present invention have been described above in detail, the present invention is not limited to the above-described embodiments, and various improvements and changes can be made without departing from the gist of the present invention. Of course you can go.

【0067】[0067]

【発明の効果】以上、詳細に説明したように、本発明に
よれば、レンズ付きフィルム、安価なコンパクトカメラ
やデジタルカメラ等で撮影された画像であっても、画像
処理によって撮影画像の歪曲収差を補正することができ
るので、歪のない高画質な画像を安定して出力すること
ができる。
As described above in detail, according to the present invention, even an image taken by a lens-equipped film, an inexpensive compact camera, a digital camera, or the like is distorted by the image processing. Can be corrected, so that a high-quality image without distortion can be stably output.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明の画像処理装置を利用するデジタルフ
ォトプリンタの一例のブロック図である。
FIG. 1 is a block diagram of an example of a digital photo printer that uses an image processing apparatus of the present invention.

【図2】 図1に示されるデジタルフォトプリンタの画
像処理装置の一例のブロック図である。
FIG. 2 is a block diagram of an example of an image processing apparatus of the digital photo printer shown in FIG.

【図3】 図2に示される画像処理装置の収差補正部の
概念図である。
FIG. 3 is a conceptual diagram of an aberration correction unit of the image processing apparatus shown in FIG.

【図4】 (a),(b),(c)および(d)は、本
発明における歪曲収差の補正および電子変倍処理を説明
するための概念図である。
4 (a), (b), (c) and (d) are conceptual diagrams for explaining the correction of distortion aberration and the electronic scaling process in the present invention.

【符号の説明】[Explanation of symbols]

10 (デジタル)フォトプリンタ 12 スキャナ 14 (画像)処理装置 16 プリンタ 18 操作系 18a キーボード 18b マウス 20 ディスプレイ 22 光源 24 可変絞り 26 色フィルタ板 28 拡散ボックス 32 結像レンズユニット 34 CCDセンサ 36 アンプ 38 データ処理部 40 プレスキャン(フレーム)メモリ 42 本スキャン(フレーム)メモリ 44 プレスキャン画像処理部 46 本スキャン画像処理部 48 条件設定部 50,54 (画像)処理部 52,58 画像データ変換部 56 収差補正部 56A 座標変換処理部 56B 拡大縮小処理部 60 (レンズ)特性データ供給部 72 (画像処理条件)設定部 74 キー補正部 76 パラメータ統合部 10 (Digital) Photo Printer 12 scanner 14 (Image) processing device 16 Printer 18 Operation system 18a keyboard 18b mouse 20 display 22 Light source 24 variable aperture 26 color filter plate 28 diffusion box 32 Imaging lens unit 34 CCD sensor 36 amplifier 38 Data processing unit 40 prescan (frame) memory 42 main scan (frame) memory 44 Prescan image processing unit 46 main scan image processing unit 48 Condition setting section 50, 54 (image) processing unit 52,58 Image data conversion unit 56 Aberration correction unit 56A Coordinate conversion processing unit 56B Enlargement / reduction processing unit 60 (lens) characteristic data supply unit 72 (Image processing condition) setting section 74 Key correction section 76 Parameter integration unit