Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5334265B2 - Chromatic aberration / image distortion correcting apparatus and program therefor - Google Patents
[go: Go Back, main page]

JP5334265B2 - Chromatic aberration / image distortion correcting apparatus and program therefor - Google Patents

Chromatic aberration / image distortion correcting apparatus and program therefor Download PDF

Info

Publication number
JP5334265B2
JP5334265B2 JP2010042332A JP2010042332A JP5334265B2 JP 5334265 B2 JP5334265 B2 JP 5334265B2 JP 2010042332 A JP2010042332 A JP 2010042332A JP 2010042332 A JP2010042332 A JP 2010042332A JP 5334265 B2 JP5334265 B2 JP 5334265B2
Authority
JP
Japan
Prior art keywords
correction data
correction
primary color
chromatic aberration
signal
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.)
Active
Application number
JP2010042332A
Other languages
Japanese (ja)
Other versions
JP2011182071A (en
Inventor
誉行 山下
公二 三谷
良平 船津
裕司 野尻
哲男 吉田
宗光 桑原
忠明 柳
秀夫 小野寺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Japan Broadcasting Corp
Kokusai Denki Electric Inc
Original Assignee
Hitachi Kokusai Electric Inc
Japan Broadcasting Corp
Kokusai Denki Electric Inc
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 Hitachi Kokusai Electric Inc, Japan Broadcasting Corp, Kokusai Denki Electric Inc filed Critical Hitachi Kokusai Electric Inc
Priority to JP2010042332A priority Critical patent/JP5334265B2/en
Publication of JP2011182071A publication Critical patent/JP2011182071A/en
Application granted granted Critical
Publication of JP5334265B2 publication Critical patent/JP5334265B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a magnification chromatic aberration/image distortion correction device and its program which can exactly correct using a simple configuration. <P>SOLUTION: The magnification chromatic aberration/image distortion correction device 1 is provided with: a correction data creation means 2; a correction data memory means 6 which memorizes the correction data; a correction data thinning means 3 which calculates the number of the memory of the correction data based on a memory capacity of the correction data memory means 6 or a predetermined evaluation value, and writes in the correction data memory means 6 after carrying out thinning of input correction data under the number of the memory while a plurality of pieces of the correction data are input; a signal input means 4; a lens parameter input means 5; the correction data memory means 6; a correction data selection means 7; a correction amount calculation means 8; a chromatic difference correction means 9; a signal memory means 10; and a signal output means 11. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、レンズの色収差(倍率色収差)による映像の色のずれ(にじみ)と、映像の歪とを補正する倍率色収差・像歪補正装置およびそのプログラムに関する。   The present invention relates to a lateral chromatic aberration / image distortion correction apparatus for correcting image color shift (bleeding) caused by lens chromatic aberration (magnification chromatic aberration) and image distortion, and a program thereof.

一般に、映像を撮影する撮影装置(カメラ)のレンズは、光の周波数によって屈折率が異なり、波長の長い光と波長の短い光とで結像する位置にずれが生じるため、レンズを介して撮影された映像にはにじみが生じる。そして、赤(R)、緑(G)、青(B)の三原色からなる映像では、緑に比べて波長の長い赤と、波長の短い青とが互いに異なる方向にずれるため、例えば、黒と白との境界においては、赤あるいは青のにじみが発生する。   In general, the lens of an imaging device (camera) that captures an image has a refractive index that differs depending on the frequency of light, and the position where the image is formed between light having a long wavelength and light having a short wavelength is shifted, so the image is taken through the lens. Blurred image is produced. In an image composed of the three primary colors of red (R), green (G), and blue (B), red having a longer wavelength and blue having a shorter wavelength than green are shifted in different directions. Red or blue blurring occurs at the border with white.

そこで、この倍率色収差による、緑に対する赤、青の光の結像位置のずれの量を各画素について予め求めておき、撮影された映像の赤と青の原色信号についてずれを補正することで、倍率色収差による映像のにじみを補正する技術が開示されている(特許文献1参照)。また、輝度信号と色差信号を赤、緑、青の原色信号に変換し、レンズの歪曲収差によるひずみと、倍率色収差によるにじみとを補正する技術が開示されている(特許文献2参照)。   Therefore, the amount of deviation of the imaging position of red and blue light relative to green due to this chromatic aberration of magnification is obtained in advance for each pixel, and by correcting the deviation for the red and blue primary color signals of the captured image, A technique for correcting image blur due to lateral chromatic aberration is disclosed (see Patent Document 1). Also disclosed is a technique for converting luminance signals and color difference signals into primary color signals of red, green, and blue, and correcting distortion due to lens distortion and blur due to lateral chromatic aberration (see Patent Document 2).

これら特許文献1および特許文献2に記載の発明は、ズーム、フォーカスおよびアイリス等のレンズパラメータが一定である場合には実現できる。一方、カメラでテレビ番組等の映像(動画)を撮影する場合には、一般的にレンズパラメータを様々に変化させて行うことが多い。この場合、特許文献1および特許文献2に記載の発明は、レンズパラメータの変化に対応する、結像位置のずれの量を示すデータを予め用意しようとすると、このデータの取得が困難であるうえに、膨大な量のデータを記憶する必要が生じ、現実的ではない。   The inventions described in Patent Document 1 and Patent Document 2 can be realized when lens parameters such as zoom, focus, and iris are constant. On the other hand, when shooting a video (moving image) such as a TV program with a camera, generally, the lens parameter is often changed in various ways. In this case, in the inventions described in Patent Document 1 and Patent Document 2, if data indicating the amount of deviation of the imaging position corresponding to the change of the lens parameter is prepared in advance, it is difficult to acquire this data. In addition, a huge amount of data needs to be stored, which is not realistic.

そこで、この問題点を解決すべく、例えば、特許文献3に記載の発明が提案されている。この特許文献3に記載の発明は、レンズパラメータを様々な値に変化させて撮影した場合でも、このレンズパラメータに基づいて、倍率色収差による映像のにじみを除去するものである。   In order to solve this problem, for example, the invention described in Patent Document 3 has been proposed. The invention described in Patent Document 3 eliminates blurring of an image due to chromatic aberration of magnification based on the lens parameter even when the lens parameter is changed to various values.

特開平6−292207号公報(段落番号0012〜0030、図1〜5)JP-A-6-292207 (paragraph numbers 0012 to 0030, FIGS. 1 to 5) 特開2000−3437号公報(段落番号0033〜0070、図3〜7)JP 2000-3437 (paragraph numbers 0033 to 0070, FIGS. 3 to 7) 特開2006−135805号公報(段落番号0022〜0052、図1〜4)JP 2006-135805 A (paragraph numbers 0022 to 0052, FIGS. 1 to 4)

しかし、特許文献3に記載の発明は、記憶手段に記憶する補正データの数について、適切な基準が示されていない。このため、特許文献3に記載の発明は、補正データの数が多すぎると、大容量の記憶手段が必要になる。その一方、特許文献3に記載の発明は、補正データの数が少なすぎると、適切な補正データの選定が難しく、その補正データを用いて算出した補正量が映像の実際のずれ量と大きく異なるものとなり、補正を正確に行うことができない。   However, the invention described in Patent Document 3 does not indicate an appropriate standard for the number of correction data stored in the storage unit. For this reason, the invention described in Patent Document 3 requires a large-capacity storage unit when the number of correction data is too large. On the other hand, the invention described in Patent Document 3 makes it difficult to select appropriate correction data if the number of correction data is too small, and the correction amount calculated using the correction data is significantly different from the actual shift amount of the video. Therefore, the correction cannot be performed accurately.

そこで、本発明は、前記した問題を解決し、簡易な構成で正確な補正が可能な倍率色収差・像歪補正装置およびそのプログラムを提供することを課題とする。   Accordingly, an object of the present invention is to solve the above-described problems and to provide a magnification chromatic aberration / image distortion correction apparatus and a program thereof capable of performing accurate correction with a simple configuration.

前記した課題を解決するため、本願第1発明に係る倍率色収差・像歪補正装置は、映像を撮影するカメラのレンズパラメータの値と、当該レンズパラメータにおける前記映像の画素ごとの倍率色収差による結像位置のずれの量および前記映像の歪の量の少なくとも一方を示す収差量とを対応させた補正データを用いて、前記倍率色収差による色ずれおよび前記映像の歪の少なくとも一方を補正する倍率色収差・像歪補正装置であって、補正データ記憶手段と、補正データ間引き手段と、信号入力手段と、レンズパラメータ入力手段と、補正データ選定手段と、補正量算出手段と、補正手段と、信号出力手段とを備えることを特徴とする。   In order to solve the above-described problem, the lateral chromatic aberration / image distortion correction apparatus according to the first invention of the present application is based on the value of a lens parameter of a camera that captures an image, and an image formed by the lateral chromatic aberration of each pixel of the image in the lens parameter. A chromatic aberration of magnification that corrects at least one of the color shift caused by the chromatic aberration of magnification and the distortion of the image, using correction data that associates the amount of positional deviation and the aberration amount indicating at least one of the amount of distortion of the image. An image distortion correction apparatus, wherein correction data storage means, correction data thinning means, signal input means, lens parameter input means, correction data selection means, correction amount calculation means, correction means, and signal output means It is characterized by providing.

かかる構成によれば、倍率色収差・像歪補正装置は、補正データ記憶手段によって、色の三原色である第1原色、第2原色および第3原色の前記補正データを記憶する。また、倍率色収差・像歪補正装置は、補正データ間引き手段によって、前記補正データが複数入力されると共に、前記補正データ記憶手段の記憶容量又は所定の評価値に基づいて前記補正データの記憶数を算出し、前記入力された補正データを前記記憶数以下に間引いてから前記補正データ記憶手段に書き込む。
これによって、倍率色収差・像歪補正装置は、補正データ記憶手段に適切な数の補正データを記憶することができる。なお、倍率色収差・像歪補正装置は、映像の補正を行う前に、異なるレンズパラメータの値についての補正データを補正データ記憶手段に記憶しておくことが好ましい。
According to this configuration, the lateral chromatic aberration / image distortion correction device stores the correction data of the first primary color, the second primary color, and the third primary color, which are the three primary colors, by the correction data storage unit. Further, the magnification chromatic aberration / image distortion correction device receives a plurality of the correction data by the correction data thinning-out means, and determines the storage number of the correction data based on the storage capacity of the correction data storage means or a predetermined evaluation value. The calculated correction data is thinned below the stored number, and then written into the correction data storage means.
Thus, the magnification chromatic aberration / image distortion correction apparatus can store an appropriate number of correction data in the correction data storage means. Note that it is preferable that the magnification chromatic aberration / image distortion correction apparatus stores correction data for different lens parameter values in the correction data storage means before correcting the image.

また、倍率色収差・像歪補正装置は、信号入力手段によって、前記画素ごとの、前記第1原色、第2原色および第3原色の明るさを示す第1原色信号、第2原色信号および第3原色信号を入力する。また、倍率色収差・像歪補正装置は、レンズパラメータ入力手段によって、この信号入力手段から入力される第1原色信号、第2原色信号および第3原色信号の各々の前記画素に対応する、前記映像を撮影したときのレンズパラメータである撮影レンズパラメータを入力する。そして、倍率色収差・像歪補正装置は、補正データ選定手段によって、前記レンズパラメータ入力手段から入力された撮影レンズパラメータに基づいて、前記補正データ記憶手段に記憶された、当該撮影レンズパラメータの値を挟む2つのレンズパラメータの補正データを選定する。ここで、倍率色収差・像歪補正装置は、補正データ記憶手段に記憶された補正データのうち、撮影レンズパラメータの値より大きい値を有するレンズパラメータの補正データと、小さい値を有するレンズパラメータの補正データとを選定する。   Further, the magnification chromatic aberration / image distortion correction device uses a signal input means to provide a first primary color signal, a second primary color signal, and a third primary color signal indicating the brightness of the first primary color, the second primary color, and the third primary color for each pixel. Input the primary color signal. Further, the magnification chromatic aberration / image distortion correcting device has the image corresponding to each pixel of the first primary color signal, the second primary color signal, and the third primary color signal input from the signal input unit by the lens parameter input unit. A shooting lens parameter that is a lens parameter when shooting is input. The magnification chromatic aberration / image distortion correction device uses the correction data selection unit to calculate the value of the photographic lens parameter stored in the correction data storage unit based on the photographic lens parameter input from the lens parameter input unit. Select correction data for the two lens parameters to be sandwiched. Here, the magnification chromatic aberration / image distortion correction apparatus corrects lens parameter correction data having a value larger than the photographing lens parameter value and lens parameter having a smaller value among the correction data stored in the correction data storage means. Select data.

また、倍率色収差・像歪補正装置は、補正量算出手段によって、この補正データ選定手段によって選定された補正データに基づいて、前記撮影レンズパラメータにおける前記倍率色収差による色ずれおよび前記映像の歪の少なくとも一方を補正するための補正量を、補間して算出する。そして、倍率色収差・像歪補正装置は、補正手段によって、この補正量算出手段によって算出された補正量に基づいて、前記第1原色信号、第2原色信号および第3原色信号の各画素の明るさを示す画素値を補正する。さらに、倍率色収差・像歪補正装置は、信号出力手段によって、前記補正手段によって画素値が補正された前記第1原色信号、第2原色信号および第3原色信号を出力する。   Further, the magnification chromatic aberration / image distortion correction device is configured to correct at least the color shift due to the magnification chromatic aberration and the distortion of the image in the photographing lens parameter based on the correction data selected by the correction data selection unit by the correction amount calculation unit. A correction amount for correcting one is calculated by interpolation. Then, the magnification chromatic aberration / image distortion correction device uses the correction unit to determine the brightness of each pixel of the first primary color signal, the second primary color signal, and the third primary color signal based on the correction amount calculated by the correction amount calculation unit. The pixel value indicating the height is corrected. Further, the magnification chromatic aberration / image distortion correction apparatus outputs the first primary color signal, the second primary color signal, and the third primary color signal, in which the pixel value is corrected by the correction unit, by the signal output unit.

また、本願第2発明に係る倍率色収差・像歪補正装置は、前記補正データ間引き手段が、前記補正データ記憶手段の記憶容量を前記補正データ1つあたりの容量で除算した値に基づいて、前記記憶数を算出することを特徴とする。
かかる構成によれば、倍率色収差・像歪補正装置は、多量の補正データが入力された場合でも、補正データ記憶手段の記憶容量を超えないように補正データを間引きすることができる。
Further, in the magnification chromatic aberration / image distortion correction device according to the second invention of the present application, the correction data thinning-out means is based on a value obtained by dividing the storage capacity of the correction data storage means by the capacity per correction data. The number of memories is calculated.
According to such a configuration, the magnification chromatic aberration / image distortion correction apparatus can thin out the correction data so as not to exceed the storage capacity of the correction data storage unit even when a large amount of correction data is input.

また、本願第3発明に係る倍率色収差・像歪補正装置は、前記補正データ間引き手段が、前記レンズパラメータの値および前記画素ごとに間引き候補の補正データと当該補正データを補間した補間後補正データとの前記収差量の差分を算出し、前記レンズパラメータの値ごとに前記差分の最大値又は平均値を前記評価値として算出し、前記評価値が予め設定された閾値以下で、かつ、前記間引き候補の補正データの最大数を前記記憶数として算出することを特徴とする。   Further, in the magnification chromatic aberration / image distortion correction device according to the third invention of the present application, the correction data thinning means interpolates the correction data of the lens parameter value and the thinning candidate correction data for each pixel and the correction data. The difference between the aberration amounts is calculated as the evaluation value, and the maximum value or the average value of the differences is calculated as the evaluation value for each value of the lens parameter. The maximum number of candidate correction data is calculated as the stored number.

ここで、補正データの間引き数を多くするほど、補正データ記憶手段の記憶容量を節約できる。その一方、間引きした補正データを補間すると、間引き前の補正データ(つまり、生成した補正データ)に対する誤差が大きくなると考えられる。このため、倍率色収差・像歪補正装置は、補正量算出手段と同様の手法で、間引き候補となるレンズパラメータの補正データから補間後補正データを補間する。そして、倍率色収差・像歪補正装置は、補間後補正データの誤差を示す評価値を、補正データと補間後補正データとの収差量の差分により算出する。さらに、倍率色収差・像歪補正装置は、補間後補正データの誤差(評価値)が許容範囲内で、かつ、補正データ記憶手段の記憶容量を最も節約できるように記憶数を算出する。   Here, as the number of thinning out correction data is increased, the storage capacity of the correction data storage means can be saved. On the other hand, when the thinned correction data is interpolated, it is considered that an error with respect to the correction data before thinning (that is, the generated correction data) increases. For this reason, the lateral chromatic aberration / image distortion correction device interpolates the post-interpolation correction data from the correction data of the lens parameter that is a thinning candidate by the same method as the correction amount calculation means. Then, the magnification chromatic aberration / image distortion correction apparatus calculates an evaluation value indicating an error of the post-interpolation correction data based on a difference in aberration amount between the correction data and the post-interpolation correction data. Further, the magnification chromatic aberration / image distortion correction apparatus calculates the number of memories so that the error (evaluation value) of the correction data after interpolation is within an allowable range and the storage capacity of the correction data storage means can be saved most.

また、前記した課題を解決するため、本願第4発明に係る倍率色収差・像歪補正プログラムは、映像を撮影するカメラのレンズパラメータの値と、当該レンズパラメータにおける前記映像の画素ごとの倍率色収差による結像位置のずれの量および前記映像の歪の量の少なくとも一方を示す収差量とを対応させた補正データを用いて、前記倍率色収差による色ずれおよび前記映像の歪の少なくとも一方を補正するために、色の三原色である第1原色、第2原色および第3原色の前記補正データを記憶する補正データ記憶手段を備えるコンピュータを、補正データ間引き手段、信号入力手段、レンズパラメータ入力手段、補正データ選定手段、補正量算出手段、補正手段、信号出力手段、として機能させることを特徴とする。   In order to solve the above-described problem, the lateral chromatic aberration / image distortion correction program according to the fourth invention of the present application is based on the value of a lens parameter of a camera that captures an image and the lateral chromatic aberration of each pixel of the image in the lens parameter. In order to correct at least one of the color shift due to the chromatic aberration of magnification and the distortion of the image by using correction data in which an amount of deviation of the imaging position and an aberration amount indicating at least one of the distortion amount of the image are associated with each other A correction data storage means for storing the correction data of the first primary color, the second primary color and the third primary color, which are the three primary colors, a correction data thinning means, a signal input means, a lens parameter input means, and correction data; It functions as selection means, correction amount calculation means, correction means, and signal output means.

かかる構成によれば、倍率色収差・像歪補正プログラムは、補正データ間引き手段によって、前記補正データが複数入力されると共に、前記補正データ記憶手段の記憶容量又は所定の評価値に基づいて前記補正データの記憶数を算出し、前記入力された補正データを前記記憶数以下に間引いてから前記補正データ記憶手段に書き込む。
これによって、倍率色収差・像歪補正プログラムは、補正データ記憶手段に適切な数の補正データを記憶することができる。なお、倍率色収差・像歪補正プログラムを実行するコンピュータは、映像の補正を行う前に、異なるレンズパラメータの値についての補正データを補正データ記憶手段に記憶しておくことが好ましい。
According to such a configuration, the magnification chromatic aberration / image distortion correction program receives a plurality of the correction data by the correction data thinning-out means, and the correction data based on the storage capacity of the correction data storage means or a predetermined evaluation value. Is stored in the correction data storage means after the input correction data is thinned below the storage number.
Thus, the magnification chromatic aberration / image distortion correction program can store an appropriate number of correction data in the correction data storage means. Note that the computer executing the magnification chromatic aberration / image distortion correction program preferably stores correction data for different lens parameter values in the correction data storage means before correcting the image.

また、倍率色収差・像歪補正プログラムは、信号入力手段によって、前記画素ごとの、前記第1原色、第2原色および第3原色の明るさを示す第1原色信号、第2原色信号および第3原色信号を入力する。また、倍率色収差・像歪補正プログラムは、レンズパラメータ入力手段によって、この信号入力手段から入力される第1原色信号、第2原色信号および第3原色信号の各々の前記画素に対応する、前記映像を撮影したときのレンズパラメータである撮影レンズパラメータを入力する。そして、倍率色収差・像歪補正プログラムは、補正データ選定手段によって、前記レンズパラメータ入力手段から入力された撮影レンズパラメータに基づいて、前記補正データ記憶手段に記憶された、当該撮影レンズパラメータの値を挟む2つのレンズパラメータの補正データを選定する。ここで、倍率色収差・像歪補正プログラムは、補正データ記憶手段に記憶された補正データのうち、撮影レンズパラメータの値より大きい値を有するレンズパラメータの補正データと、小さい値を有するレンズパラメータの補正データとを選定する。   In addition, the lateral chromatic aberration / image distortion correction program uses a signal input unit to output a first primary color signal, a second primary color signal, and a third primary color signal indicating the brightness of the first primary color, the second primary color, and the third primary color for each pixel. Input the primary color signal. In addition, the magnification chromatic aberration / image distortion correction program stores the image corresponding to each pixel of the first primary color signal, the second primary color signal, and the third primary color signal input from the signal input unit by the lens parameter input unit. A shooting lens parameter that is a lens parameter when shooting is input. The magnification chromatic aberration / image distortion correction program calculates the value of the photographic lens parameter stored in the correction data storage unit based on the photographic lens parameter input from the lens parameter input unit by the correction data selection unit. Select correction data for the two lens parameters to be sandwiched. Here, the lateral chromatic aberration / image distortion correction program is a correction data stored in the correction data storage means for correcting the lens parameter having a value larger than the value of the photographing lens parameter and correcting the lens parameter having a smaller value. Select data.

また、倍率色収差・像歪補正プログラムは、補正量算出手段によって、この補正データ選定手段によって選定された補正データに基づいて、前記撮影レンズパラメータにおける前記倍率色収差による色ずれおよび前記映像の歪の少なくとも一方を補正するための補正量を、補間して算出する。そして、倍率色収差・像歪補正プログラムは、補正手段によって、この補正量算出手段によって算出された補正量に基づいて、前記第1原色信号、第2原色信号および第3原色信号の各画素の明るさを示す画素値を補正する。さらに、倍率色収差・像歪補正プログラムは、信号出力手段によって、前記補正手段によって画素値が補正された前記第1原色信号、第2原色信号および第3原色信号を出力する。   Further, the magnification chromatic aberration / image distortion correction program, based on the correction data selected by the correction data selection means by the correction amount calculation means, at least color shift due to the magnification chromatic aberration and distortion of the image in the photographing lens parameter. A correction amount for correcting one is calculated by interpolation. Then, the magnification chromatic aberration / image distortion correction program causes the brightness of each pixel of the first primary color signal, the second primary color signal, and the third primary color signal to be corrected by the correction unit based on the correction amount calculated by the correction amount calculation unit. The pixel value indicating the height is corrected. Further, the magnification chromatic aberration / image distortion correction program outputs the first primary color signal, the second primary color signal, and the third primary color signal whose pixel values have been corrected by the correction unit by the signal output unit.

本発明は、以下のような優れた効果を奏する。
本願第1,4発明は、補正データ記憶手段に適切な数の補正データを記憶するので、補正データ記憶手段に記憶する補正データの数が多すぎることや少なすぎることがない。これによって、本願第1,4発明は、正確な補正を可能とすると共に、補正データ記憶手段の記憶容量を節約して、倍率色収差・像歪補正装置の構成を簡易にできる。
The present invention has the following excellent effects.
In the first and fourth inventions of the present application, since an appropriate number of correction data is stored in the correction data storage means, the number of correction data stored in the correction data storage means is neither too much nor too little. Thus, the first and fourth inventions of the present application enable accurate correction, save the storage capacity of the correction data storage means, and simplify the configuration of the magnification chromatic aberration / image distortion correction apparatus.

本願第2発明は、多量の補正データが入力された場合でも、補正データ記憶手段の記憶容量を超えないように補正データを間引きすることができ、大規模な補正データ記憶手段を必要とせずに、倍率色収差・像歪補正装置の構成をより簡易にできる。   In the second invention of the present application, even when a large amount of correction data is input, the correction data can be thinned out so as not to exceed the storage capacity of the correction data storage means, and a large-scale correction data storage means is not required. Therefore, the configuration of the magnification chromatic aberration / image distortion correction apparatus can be simplified.

本願第3発明は、補間後補正データの誤差が許容範囲内で、かつ、補正データ記憶手段の記憶容量を最も節約できる記憶数を算出するので、倍率色収差・像歪補正装置の構成を簡易にすると共に、映像の正確な補正を可能とする。   Since the third invention of the present application calculates the number of memories in which the error of the correction data after interpolation is within an allowable range and the storage capacity of the correction data storage means can be saved most, the configuration of the magnification chromatic aberration / image distortion correction apparatus can be simplified. In addition, the video can be corrected accurately.

本発明の実施形態に係る倍率色収差・像歪補正装置の構成を示したブロック図である。1 is a block diagram showing a configuration of a magnification chromatic aberration / image distortion correction apparatus according to an embodiment of the present invention. 図1の補正データ生成手段が生成した補正データの例を説明するための説明図である。It is explanatory drawing for demonstrating the example of the correction data which the correction data production | generation means of FIG. 1 produced | generated. 図1の補正データ間引き手段が間引いた補正データの例を説明するための説明図である。It is explanatory drawing for demonstrating the example of the correction data thinned out by the correction data thinning means of FIG. 図1の補正データ間引き手段による収差量の差分を算出する例を説明するための説明図である。It is explanatory drawing for demonstrating the example which calculates the difference of the amount of aberrations by the correction data thinning-out means of FIG. 図1の収差補正手段が、補正量に基づいてある画素をずらして、画素値を算出する方法を説明するための説明図であり、(a)はシフト処理部の処理を説明する図であり、(b)は2次元フィルタ部の処理を説明する図である。FIG. 2 is an explanatory diagram for explaining a method in which the aberration correction unit in FIG. 1 calculates a pixel value by shifting a certain pixel based on a correction amount, and (a) is a diagram for explaining a process of a shift processing unit. (B) is a figure explaining the process of a two-dimensional filter part. 図1の補正データ生成手段が補正データを生成する動作を示したフローチャートである。2 is a flowchart showing an operation of generating correction data by the correction data generating means of FIG. 図1の補正データ間引き手段が補正データを間引きする動作を示したフローチャートである。2 is a flowchart showing an operation in which correction data thinning means in FIG. 1 thins correction data. 本発明の実施形態において、ズーム、フォーカスおよびアイリスをレンズパラメータとする例を説明するための説明図である。In embodiment of this invention, it is explanatory drawing for demonstrating the example which uses zoom, a focus, and an iris as a lens parameter. 図1の倍率色収差補正装置が映像を補正する動作を示したフローチャートである。2 is a flowchart illustrating an operation of correcting an image by the magnification chromatic aberration correction apparatus of FIG. 1.

(発明の概略)
以下、図1を参照し、本発明の概略について簡単に説明する。
倍率色収差・像歪補正装置1は、後記する補正データを用いて、映像における倍率色収差による色ずれ、および、樽形状、逆樽形状等の映像の歪を補正するものである。ここで、倍率色収差・像歪補正装置1は、図1の破線内の各手段により、映像の補正を行う前に異なるレンズパラメータの値についての補正データを補正データ記憶手段6に記憶しておく必要がある。このため、倍率色収差・像歪補正装置1は、図示を省略したカメラのレンズのレンズパラメータを変化させながら所定のパターンを撮影し、倍率色収差による色のずれおよび映像の歪を測定して補正データを生成する。そして、倍率色収差・像歪補正装置1は、生成した補正データを間引いてから補正データ記憶手段6に記憶する。その後、倍率色収差・像歪補正装置1は、補正データ記憶手段6に記憶した補正データを用いて、入力された映像を実際に補正する。
(Outline of the Invention)
The outline of the present invention will be briefly described below with reference to FIG.
The lateral chromatic aberration / image distortion correcting device 1 corrects color shift due to lateral chromatic aberration in an image and distortion of the image such as a barrel shape or an inverted barrel shape using correction data described later. Here, the lateral chromatic aberration / image distortion correction apparatus 1 stores correction data for different lens parameter values in the correction data storage means 6 before each image is corrected by each means within the broken line in FIG. There is a need. Therefore, the magnification chromatic aberration / image distortion correction apparatus 1 shoots a predetermined pattern while changing lens parameters of a camera lens (not shown), measures color shift and image distortion due to magnification chromatic aberration, and corrects the correction data. Is generated. Then, the magnification chromatic aberration / image distortion correction apparatus 1 thins out the generated correction data, and then stores it in the correction data storage means 6. Thereafter, the magnification chromatic aberration / image distortion correction apparatus 1 actually corrects the input image using the correction data stored in the correction data storage means 6.

カメラは、その種類が特に制限されるものでないが、ここでは、プリズム等の分光手段と、3原色毎の撮影素子とを備える3板式の放送番組撮影カメラとして説明する。つまり、カメラは、放送番組を撮影した映像を倍率色収差・像歪補正装置1(信号入力手段4)に出力する。   Although the type of the camera is not particularly limited, it will be described here as a three-plate broadcast program shooting camera including a spectral means such as a prism and shooting elements for each of the three primary colors. That is, the camera outputs the video of the broadcast program to the magnification chromatic aberration / image distortion correction device 1 (signal input means 4).

(実施形態)
以下、本発明の実施形態について、適宜図面を参照しながら詳細に説明する。なお、各実施形態において、同一の機能を有する手段には同一の符号を付し、説明を省略した。
図1に示すように、倍率色収差・像歪補正装置1は、補正データ生成手段2と、補正データ間引き手段3と、信号入力手段4と、レンズパラメータ入力手段5と、補正データ記憶手段6と、補正データ選定手段7と、補正量算出手段8と、収差補正手段(補正手段)9と、信号記憶手段10と、信号出力手段11とを備える。
(Embodiment)
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate. In each embodiment, means having the same function are denoted by the same reference numerals and description thereof is omitted.
As shown in FIG. 1, the magnification chromatic aberration / image distortion correction apparatus 1 includes a correction data generation unit 2, a correction data thinning unit 3, a signal input unit 4, a lens parameter input unit 5, and a correction data storage unit 6. Correction data selection means 7, correction amount calculation means 8, aberration correction means (correction means) 9, signal storage means 10, and signal output means 11.

補正データ生成手段2(2a、2b、2c)は、例えば、基準信号(G信号、B信号又はR信号)と、比較信号(無歪み理想信号又は処理済G信号)と、レンズパラメータとが入力される。ここで、補正データ生成手段2aは、基準信号としてG信号が入力され、比較信号として無歪み理想信号が入力される。また、補正データ生成手段2bは、基準信号としてB信号が入力され、比較信号として処理済G信号(無歪み化したG信号)が入力される。さらに、補正データ生成手段2cは、基準信号としてR信号が入力され、比較信号として処理済G信号(無歪み化したG信号)が入力される。   The correction data generation means 2 (2a, 2b, 2c) receives, for example, a reference signal (G signal, B signal or R signal), a comparison signal (undistorted ideal signal or processed G signal), and a lens parameter. Is done. Here, the correction data generating means 2a receives the G signal as the reference signal and the undistorted ideal signal as the comparison signal. Further, the correction data generation means 2b receives the B signal as a reference signal and the processed G signal (undistorted G signal) as a comparison signal. Further, the correction data generating means 2c receives the R signal as a reference signal and the processed G signal (undistorted G signal) as a comparison signal.

そして、補正データ生成手段2(2a、2b、2c)は、入力された基準信号と、比較信号と、レンズパラメータとを用いて補正データを生成する。さらに、補正データ生成手段2(2a、2b、2c)は、生成した補正データを、補正データ間引き手段3(3a、3b、3c)に出力する。   Then, the correction data generation means 2 (2a, 2b, 2c) generates correction data using the inputted reference signal, comparison signal, and lens parameter. Further, the correction data generating means 2 (2a, 2b, 2c) outputs the generated correction data to the correction data thinning means 3 (3a, 3b, 3c).

ここで、レンズパラメータとは、カメラのレンズのズーム、フォーカス、アイリス等である。ここで、補正データ生成手段2(2a、2b、2c)は、ズーム、フォーカス、アイリスのうちの1つのレンズパラメータ、例えば、ズームのみを入力することとしてもよいし、複数の種類のレンズパラメータを入力することとしてもよい。ここでは、補正データ生成手段2(2a、2b、2c)は、レンズパラメータとしてズームのみを入力することとした。   Here, the lens parameters are zoom, focus, iris and the like of the camera lens. Here, the correction data generation means 2 (2a, 2b, 2c) may input only one lens parameter of zoom, focus, and iris, for example, zoom, or may select a plurality of types of lens parameters. It is good also as inputting. Here, the correction data generation means 2 (2a, 2b, 2c) inputs only zoom as a lens parameter.

以下、図2を参照し、補正データ生成手段2(2a、2b、2c)が生成した補正データの一例について説明する(適宜図1参照)。
図2では、X軸をズーム(レンズパラメータ)とし、Y軸を画素の収差量(結像位置のずれの量および歪の量)とし、Z軸を画像中心からの距離(画素数)とした。つまり、補正データは、レンズパラメータの値と、G信号、B信号又はR信号の画素ごとの収差量とを対応させたものである。
Hereinafter, an example of correction data generated by the correction data generation means 2 (2a, 2b, 2c) will be described with reference to FIG. 2 (see FIG. 1 as appropriate).
In FIG. 2, the X axis is the zoom (lens parameter), the Y axis is the pixel aberration amount (the amount of image position shift and the amount of distortion), and the Z axis is the distance from the image center (number of pixels). . That is, the correction data is obtained by associating the value of the lens parameter with the aberration amount for each pixel of the G signal, B signal, or R signal.

ここで、補正データ生成手段2(2a、2b、2c)は、ズームが連続的に変化するものの、補正データの生成に要する時間および補正データ記憶手段6(6a、6b、6c)の記憶容量の問題を考慮し、補正データを所定のサンプル間隔で生成する。   Here, although the correction data generating means 2 (2a, 2b, 2c) continuously changes the zoom, the time required for generating the correction data and the storage capacity of the correction data storage means 6 (6a, 6b, 6c) Considering the problem, the correction data is generated at a predetermined sample interval.

以下の説明では、所定のサンプル間隔で生成した補正データの数(測定点数)をFとする。つまり、測定点数Fの値は、2以上となる。
また、サンプルした補正データにおいて、ズームの最小値から数えてm番目のズームをz(m)とする。
また、このズームz(m)に対応する補正データを補正データプレーンab(m)とする。
この補正データプレーンとは、あるズーム(レンズパラメータ)の値に対応する1つの補正データのことである。図2の例では、ズーム値12ミリメートルの補正データが1つの補正データプレーンであり、ズーム値14ミリメートルの補正データも1つの補正データプレーンである。
In the following description, the number of correction data generated at a predetermined sample interval (measurement points) to F 1. That is, the value of the measurement points F 1 is two or more.
In the sampled correction data, the m-th zoom counted from the minimum zoom value is z (m).
Further, correction data corresponding to the zoom z (m) is a correction data plane ab (m).
This correction data plane is one correction data corresponding to a certain zoom (lens parameter) value. In the example of FIG. 2, the correction data with a zoom value of 12 millimeters is one correction data plane, and the correction data with a zoom value of 14 millimeters is also one correction data plane.

以下、図1に戻り、倍率色収差・像歪補正装置1の構成について説明を続ける。
補正データ間引き手段3(3a、3b、3c)は、補正データ生成手段2(2a、2b、2c)から補正データが複数入力されると共に、補正データ記憶手段6(6a、6b、6c)の記憶容量又は後記する評価値に基づいて補正データの記憶数を算出する。そして、補正データ間引き手段3(3a、3b、3c)は、入力された補正データを記憶数以下に間引いてから補正データ記憶手段6(6a、6b、6c)に書き込む。
Hereinafter, returning to FIG. 1, the description of the configuration of the magnification chromatic aberration / image distortion correction apparatus 1 will be continued.
The correction data thinning means 3 (3a, 3b, 3c) receives a plurality of correction data from the correction data generation means 2 (2a, 2b, 2c) and stores the correction data storage means 6 (6a, 6b, 6c). The number of stored correction data is calculated based on the capacity or an evaluation value described later. Then, the correction data thinning means 3 (3a, 3b, 3c) writes the input correction data to the correction data storage means 6 (6a, 6b, 6c) after thinning it below the stored number.

以下、図3および図4を参照し、補正データ記憶手段6(6a、6b、6c)の記憶容量に基づく間引き手法と、評価値に基づく記憶数算出手法との2つの具体例を詳細に説明する(適宜図1参照)。   Hereinafter, with reference to FIG. 3 and FIG. 4, two specific examples of the thinning method based on the storage capacity of the correction data storage means 6 (6a, 6b, 6c) and the storage number calculation method based on the evaluation value will be described in detail. (Refer to FIG. 1 as appropriate).

<第1例:補正データ記憶手段の記憶容量に基づく間引き手法>
この第1例では、補正データ間引き手段3(3a、3b、3c)は、補正データ記憶手段6(6a、6b、6c)の記憶容量を補正データプレーン1つあたりの容量で除算した値に基づいて、補正データ記憶手段6(6a、6b、6c)に記憶可能な記憶数(補正データプレーンの数)を算出する。このとき、補正データ間引き手段3(3a、3b、3c)は、除算した値が小数点を有する場合、四捨五入又は切り捨を行ってもよい。
<First Example: Thinning Method Based on Storage Capacity of Correction Data Storage Unit>
In this first example, the correction data thinning-out means 3 (3a, 3b, 3c) is based on a value obtained by dividing the storage capacity of the correction data storage means 6 (6a, 6b, 6c) by the capacity per correction data plane. Thus, the storage number (number of correction data planes) that can be stored in the correction data storage means 6 (6a, 6b, 6c) is calculated. At this time, the correction data thinning-out means 3 (3a, 3b, 3c) may round off or round off when the divided value has a decimal point.

ここで、例えば、補正データ記憶手段6(6a、6b、6c)の記憶容量は、補正データ記憶手段6(6a、6b、6c)の最大記憶容量を予め設定しておく。また、例えば、補正データプレーン1つあたりの容量は、予め設定してもよく、補正データ間引き手段3(3a、3b、3c)に入力された補正データプレーンの平均データ容量又は最大データ容量としてもよい。   Here, for example, as the storage capacity of the correction data storage means 6 (6a, 6b, 6c), the maximum storage capacity of the correction data storage means 6 (6a, 6b, 6c) is set in advance. Further, for example, the capacity per correction data plane may be set in advance, and may be the average data capacity or the maximum data capacity of the correction data planes input to the correction data thinning means 3 (3a, 3b, 3c). Good.

そして、補正データ間引き手段3(3a、3b、3c)は、算出した記憶数(補正データプレーンの数)の範囲内となるように、補正データを間引けばよい。ここで、補正データ間引き手段3(3a、3b、3c)は、ズームが最小値のとき(m=1)、および、ズームが最大値のとき(m=F)の補正データプレーンを、間引かないこととする。また、補正データ間引き手段3(3a、3b、3c)は、これら最小値および最大値以外の補正データプレーンについて、どれを間引くか特に制限されないが、等間隔に補正データプレーンを間引くことが好ましい。 Then, the correction data thinning-out means 3 (3a, 3b, 3c) may thin out the correction data so as to be within the range of the calculated storage number (number of correction data planes). Here, the correction data thinning-out means 3 (3a, 3b, 3c) skips the correction data plane when the zoom is at the minimum value (m = 1) and when the zoom is at the maximum value (m = F 1 ). Do not draw. Further, the correction data thinning means 3 (3a, 3b, 3c) is not particularly limited as to which thinning out correction data planes other than the minimum value and the maximum value, but it is preferable to thin out the correction data planes at equal intervals.

図3の例では、補正データ間引き手段3(3a、3b、3c)が間引いた補正データプレーンを破線で図示した。つまり、図3の例では、補正データ間引き手段3(3a、3b、3c)は、ズームが14ミリメートルおよび16ミリメートルの補正データプレーンを間引いている。   In the example of FIG. 3, the correction data plane thinned out by the correction data thinning means 3 (3a, 3b, 3c) is indicated by a broken line. That is, in the example of FIG. 3, the correction data thinning means 3 (3a, 3b, 3c) thins out correction data planes with zooms of 14 millimeters and 16 millimeters.

この第1例によれば、倍率色収差・像歪補正装置1は、多量の補正データが入力された場合でも、補正データ記憶手段6(6a、6b、6c)の記憶容量を超えないように補正データを間引きすることができる。従って、倍率色収差・像歪補正装置1は、大規模な補正データ記憶手段6(6a、6b、6c)を必要とせず、その構成を簡易にすることができる。   According to the first example, the lateral chromatic aberration / image distortion correction device 1 corrects so as not to exceed the storage capacity of the correction data storage means 6 (6a, 6b, 6c) even when a large amount of correction data is input. Data can be thinned out. Therefore, the magnification chromatic aberration / image distortion correction apparatus 1 does not require the large-scale correction data storage means 6 (6a, 6b, 6c), and can simplify the configuration.

<第2例:評価値に基づく間引き手法>
第2例では、第1例と同様、補正データ間引き手段3(3a、3b、3c)は、ズームが最小値のとき(m=1)、および、ズームが最大値のとき(m=F)の補正データプレーンを、間引かないこととする。そこで、これら以外の補正データプレーンについて、Fから任意の補正データプレーンを1つ間引く場合について考える。このとき、間引き候補となる補正データプレーン数は、F−2となる。
<Second example: Thinning method based on evaluation value>
In the second example, as in the first example, the correction data thinning-out means 3 (3a, 3b, 3c) has a minimum zoom value (m = 1) and a maximum zoom value (m = F 1). ) Correction data plane is not thinned out. Therefore, consider a case where one correction data plane is thinned out from F 1 for correction data planes other than these. At this time, the number of correction data planes that are candidates for thinning is F 1 -2.

この場合、補正データ間引き手段3(3a、3b、3c)は、線形補間、スプライン補間等、後記する補正量算出手段8(8a、8b、8c)と同じ補間手法で、間引き候補の補正データについて、補間値βを算出する。例えば、補正データ間引き手段3(3a、3b、3c)は、補正データプレーンab(2)を間引きする場合、補正データプレーンab(1)および補正データプレーンab(3)の収差量から、間引き候補の補正データプレーンab(2)´の収差量を補間して算出する。   In this case, the correction data thinning-out means 3 (3a, 3b, 3c) uses the same interpolation method as the correction amount calculation means 8 (8a, 8b, 8c) described later, such as linear interpolation and spline interpolation, and the correction data of the thinning candidates. The interpolation value β is calculated. For example, when thinning out the correction data plane ab (2), the correction data thinning-out means 3 (3a, 3b, 3c) determines a thinning candidate from the aberration amounts of the correction data plane ab (1) and the correction data plane ab (3). Is calculated by interpolating the aberration amount of the correction data plane ab (2) ′.

例えば、図3において、ズームが14ミリメートルの補正データプレーンab(2)、および、ズームが16ミリメートルの補正データプレーンab(3)が間引き候補であるとする。この場合、補正データ間引き手段3(3a、3b、3c)は、図4に示すように、補正データプレーンab(2)の収差量の測定値β2と、間引き候補の補正データプレーンab(2)´の収差量の補間値β´2との差分を算出する。また、同様に、補正データ間引き手段3(3a、3b、3c)は、補正データプレーンab(3)の収差量の測定値β3と、間引き候補の補正データプレーンab(3)´の収差量の補間値β´3との差分を算出する。   For example, in FIG. 3, a correction data plane ab (2) with a zoom of 14 millimeters and a correction data plane ab (3) with a zoom of 16 millimeters are thinning candidates. In this case, the correction data thinning-out means 3 (3a, 3b, 3c), as shown in FIG. 4, measures the aberration amount measurement value β2 of the correction data plane ab (2) and the thinning candidate correction data plane ab (2). The difference between the aberration amount of ′ and the interpolation value β′2 is calculated. Similarly, the correction data thinning-out means 3 (3a, 3b, 3c) determines the aberration amount measurement value β3 of the correction data plane ab (3) and the aberration amount of the thinning candidate correction data plane ab (3) ′. The difference from the interpolation value β′3 is calculated.

なお、図4は、図3においてZ軸の値(画像中心からの距離)=αのとき、ズームが12ミリメートルから18ミリメートルまでの補正データプレーンを拡大し、Z軸方向から見たときの部分拡大図である。また、測定値とは、補正データ生成手段2(2a、2b、2c)が生成した補正データプレーンの収差量のことである。   4 is an enlarged view of the correction data plane from 12 millimeters to 18 millimeters when the Z-axis value (distance from the image center) = α in FIG. 3 and viewed from the Z-axis direction. It is an enlarged view. The measured value is the aberration amount of the correction data plane generated by the correction data generation unit 2 (2a, 2b, 2c).

このとき、補正データ間引き手段3(3a、3b、3c)は、Z軸の値≠αを含めた全画素について、補正データプレーンと間引き候補の後補正データプレーンとの収差量の差分を算出する。そして、補正データ間引き手段3(3a、3b、3c)は、全画素のうち、この収差量の差分が最大となるものを評価値候補とする。また、補正データ間引き手段3(3a、3b、3c)は、全画素について、この収差量の差分の平均値を評価値候補としてもよい。ここで、補正データプレーン数F−1で2番目の補正データプレーン(m=2)を間引いた場合の評価値候補をEv_temp(F−1,2)と表す。 At this time, the correction data thinning-out means 3 (3a, 3b, 3c) calculates the aberration amount difference between the correction data plane and the post-decimation candidate post-correction data plane for all pixels including the Z-axis value ≠ α. . Then, the correction data thinning-out means 3 (3a, 3b, 3c) sets, as an evaluation value candidate, a pixel having the maximum difference in aberration amount among all the pixels. Further, the correction data thinning-out means 3 (3a, 3b, 3c) may use an average value of the aberration amount differences as evaluation value candidates for all the pixels. Here, representing the evaluation value candidates in the case of thinning out the correction data plane number F 1 -1 in the second correction data plane (m = 2) Ev_temp (F 1 -1,2).

また、同様に、補正データ間引き手段3(3a、3b、3c)は、補正データプレーン数F−1で3番目の補正データプレーン(m=3)を間引いた場合の評価値候補Ev_temp(F−1,3)を算出する。そして、補正データ間引き手段3(3a、3b、3c)は、順次、補正データプレーン数F−1でF−1番目の補正データプレーン(m=F−1)を間引いた場合の評価値候補Ev_temp(F−1,F−1)までを算出する。さらに、補正データ間引き手段3(3a、3b、3c)は、下記の式(1)に示すように、評価値候補Ev_temp(F−1,2)〜Ev_temp(F−1,F−1)のなかで最小のものを、補正データプレーン数F−1の評価値EV(F−1)として算出する。さらに、補正データ間引き手段3(3a、3b、3c)は、このときの補正データプレーンの番号を減プレーン番号DP(F−1)として算出する。 Similarly, the correction data thinning-out means 3 (3a, 3b, 3c) evaluates the evaluation value candidate Ev_temp (F) when the third correction data plane (m = 3) is thinned out by the number of correction data planes F 1 −1. 1 1,3) is calculated. Then, correction data thinning means 3 (3a, 3b, 3c) are sequentially evaluated when the correction data plane number F 1 -1 thinned out F 1 -1-th correction data plane (m = F 1 -1) Up to value candidates Ev_temp (F 1 −1, F 1 −1) are calculated. Furthermore, correction data thinning means 3 (3a, 3b, 3c), as shown in the following equation (1), the evaluation value candidate Ev_temp (F 1 -1,2) ~Ev_temp ( F 1 -1, F 1 - The smallest of 1) is calculated as the evaluation value EV (F 1 −1) of the number of correction data planes F 1 −1. Furthermore, the correction data thinning-out means 3 (3a, 3b, 3c) calculates the correction data plane number at this time as a reduced plane number DP (F 1 -1).

EV(F−1)=min(Ev_temp(F−1、t))・・・式(1)
なお、式(1)において、2<t<F−1とする。また、式(1)において、minは、最小値を求める関数である。
EV (F 1 −1) = min (Ev_temp (F 1 −1, t)) Equation (1)
In the formula (1), 2 <t <F 1 −1. In the formula (1), min is a function for obtaining a minimum value.

さらに、補正データ間引き手段3(3a、3b、3c)は、補正データプレーンを2つ、3つ、・・・、F−2個の補正データプレーンを間引いた場合まで、順次、評価値EV(F−2)〜EV(2)と、減プレーン番号DP(F−2)〜DP(2)とを算出する。 Furthermore, the correction data thinning-out means 3 (3a, 3b, 3c) sequentially evaluates the evaluation value EV until two correction data planes are thinned out until F 1-2 correction data planes are thinned out. (F 1 -2) to EV (2) and reduced plane numbers DP (F 1 -2) to DP (2) are calculated.

さらに、補正データ間引き手段3(3a、3b、3c)は、評価値EV(F−2)〜EV(2)が最大色ずれ量の許容値以下で、かつ、間引きする補正データプレーンの数が最大となるように記憶数(補正データプレーンの数)を算出する。なお、最大色ずれ量の許容値は、予め設定される閾値であり、例えば、文献「M.Kanazawa,et al.,“Color error from an RGB-stripe pixel structure,”Journal of the Society for Information Display Tenth Color Imaging Conference:Color Science and Engineering Systems,Technologies,Applications,vol.11,no.2,pp.387-393,2003」に記載されている。 Further, the correction data thinning-out means 3 (3a, 3b, 3c) has the evaluation values EV (F 1 -2) to EV (2) equal to or less than the maximum allowable color misregistration amount and the number of correction data planes to be thinned out. The number of memories (the number of correction data planes) is calculated so that becomes the maximum. The allowable value of the maximum color misregistration amount is a preset threshold value. For example, the document “M. Kanazawa, et al.,“ Color error from an RGB-stripe pixel structure, ”Journal of the Society for Information Display Tenth Color Imaging Conference: Color Science and Engineering Systems, Technologies, Applications, vol. 11, no. 2, pp. 387-393, 2003 ”.

その後、補正データ間引き手段3(3a、3b、3c)は、算出した記憶数の範囲内で補正データプレーンを間引けばよい。なお、補正データ間引き手段3(3a、3b、3c)は、第1例と同様にどの補正データプレーンを間引くか特に制限されないが、等間隔に補正データプレーンを間引くことが好ましい。   Thereafter, the correction data thinning-out means 3 (3a, 3b, 3c) may thin out the correction data plane within the range of the calculated storage number. The correction data thinning means 3 (3a, 3b, 3c) is not particularly limited as to which correction data plane is thinned out as in the first example, but it is preferable to thin out the correction data planes at equal intervals.

この第2例によれば、倍率色収差・像歪補正装置1は、補間後補正データの誤差(評価値)が許容範囲内で、かつ、補正データ記憶手段6(6a、6b、6c)の記憶容量を最も節約できる記憶数を算出する。従って、倍率色収差・像歪補正装置1は、補正データ記憶手段6(6a、6b、6c)の記憶容量の増加を抑えつつ、映像のずれを正確に補正することができる。   According to the second example, the magnification chromatic aberration / image distortion correction apparatus 1 has an error (evaluation value) of the correction data after interpolation within an allowable range, and is stored in the correction data storage means 6 (6a, 6b, 6c). Calculate the number of memories that can save the most capacity. Therefore, the lateral chromatic aberration / image distortion correction apparatus 1 can accurately correct the image shift while suppressing an increase in the storage capacity of the correction data storage means 6 (6a, 6b, 6c).

ここで、倍率色収差・像歪補正装置1は、前記した第1例又は第2例の何れを用いるか、予め設定してもよい。例えば、補正データ記憶手段6(6a、6b、6c)を増設できない場合、又は、倍率色収差・像歪補正装置1を低コスト化したい場合、第1例の手法が好ましい。一方、映像の補正の正確性、つまり、映像の品質(画質)を重視する場合、第2例の手法が好ましい。   Here, the magnification chromatic aberration / image distortion correction apparatus 1 may set in advance which of the first example and the second example is used. For example, when the correction data storage means 6 (6a, 6b, 6c) cannot be added, or when it is desired to reduce the cost of the magnification chromatic aberration / image distortion correction apparatus 1, the method of the first example is preferable. On the other hand, when importance is attached to the accuracy of video correction, that is, video quality (image quality), the method of the second example is preferable.

以下、図1に戻り、倍率色収差・像歪補正装置1の構成について説明を続ける。
信号入力手段4(4a、4b、4c)は、3つの原色信号(G信号、B信号およびR信号)を外部から入力するものである。ここで、信号入力手段4aは、緑色画素(G画素)の明るさを示すG信号を入力して、収差補正手段9aに出力する。また、信号入力手段4bは、青色画素(B画素)の明るさを示すB信号を入力して、収差補正手段9bに出力する。さらに、信号入力手段4cは、赤色画素(R画素)の明るさを示すR信号を入力して、収差補正手段9cに出力する。
Hereinafter, returning to FIG. 1, the description of the configuration of the magnification chromatic aberration / image distortion correction apparatus 1 will be continued.
The signal input means 4 (4a, 4b, 4c) inputs three primary color signals (G signal, B signal and R signal) from the outside. Here, the signal input means 4a inputs a G signal indicating the brightness of the green pixel (G pixel) and outputs it to the aberration correction means 9a. The signal input unit 4b receives a B signal indicating the brightness of the blue pixel (B pixel) and outputs the B signal to the aberration correction unit 9b. Further, the signal input means 4c inputs an R signal indicating the brightness of the red pixel (R pixel) and outputs it to the aberration correction means 9c.

レンズパラメータ入力手段5は、映像を撮影したカメラのレンズパラメータを外部から入力するものである。ここで、このレンズパラメータ入力手段5には、信号入力手段4(4a、4b、4c)に入力される映像信号の画素に対応するレンズパラメータ(撮影レンズパラメータ)が入力される。また、レンズパラメータ入力手段5は、入力された撮影レンズパラメータを、補正データ選定手段7(7a、7b、7c)と、補正量算出手段8(8a、8b、8c)とに出力する。なお、レンズパラメータ入力手段5は、補正データ生成手段2(2a、2b、2c)と同種のレンズパラメータを用いることとする。   The lens parameter input means 5 inputs lens parameters of the camera that has captured the image from the outside. Here, the lens parameter input means 5 receives lens parameters (photographing lens parameters) corresponding to the pixels of the video signal input to the signal input means 4 (4a, 4b, 4c). The lens parameter input means 5 outputs the input photographic lens parameters to the correction data selection means 7 (7a, 7b, 7c) and the correction amount calculation means 8 (8a, 8b, 8c). The lens parameter input means 5 uses the same type of lens parameters as the correction data generation means 2 (2a, 2b, 2c).

補正データ記憶手段6(6a、6b、6c)は、補正データ間引き手段3(3a、3b、3c)から補正データが書き込まれるものである。例えば、補正データ記憶手段6(6a、6b、6c)は、半導体メモリ、ハードディスク等の一般的な記憶手段である。   In the correction data storage means 6 (6a, 6b, 6c), correction data is written from the correction data thinning means 3 (3a, 3b, 3c). For example, the correction data storage means 6 (6a, 6b, 6c) is a general storage means such as a semiconductor memory or a hard disk.

補正データ選定手段7(7a、7b、7c)は、レンズパラメータ入力手段5から入力されたレンズパラメータに基づいて、補正データ記憶手段6(6a、6b、6c)に記憶された、当該レンズパラメータの値に近いレンズパラメータの補正データを選定するものである。具体的には、補正データ選定手段7(7a、7b、7c)は、レンズパラメータ入力手段5から入力されたズームの値より大きく、かつ、最も近い値の補正データと、入力されたズームの値より小さく、かつ、最も近い値の補正データの2つの補正データを選定する。そして、補正データ選定手段7(7a、7b、7c)は、選定した補正データを、補正量算出手段8(8a、8b、8c)に出力する。なお、レンズパラメータが2種類以上ある場合には、入力された各々のレンズパラメータの値を挟む補正データを選定することで、後記する補正量算出手段8において、補間によって補正量を算出することができる。   Based on the lens parameters input from the lens parameter input unit 5, the correction data selection unit 7 (7a, 7b, 7c) stores the lens parameters stored in the correction data storage unit 6 (6a, 6b, 6c). The lens parameter correction data close to the value is selected. Specifically, the correction data selection means 7 (7a, 7b, 7c) has the closest correction data larger than the zoom value input from the lens parameter input means 5 and the input zoom value. Two correction data of smaller and closest correction data are selected. Then, the correction data selection means 7 (7a, 7b, 7c) outputs the selected correction data to the correction amount calculation means 8 (8a, 8b, 8c). When there are two or more types of lens parameters, the correction amount can be calculated by interpolation in the correction amount calculation means 8 to be described later by selecting correction data that sandwiches the input lens parameter values. it can.

補正量算出手段8(8a、8b、8c)は、レンズパラメータ入力手段5から入力されたレンズパラメータに基づいて、信号入力手段4(4a、4b、4c)から入力された原色信号の各々の画素について、倍率色収差による色ずれ量および映像の歪の量を示す補正量を算出するものである。そして、補正量算出手段8(8a、8b、8c)は、算出した補正量を、収差補正手段9(9a、9b、9c)に出力する。   The correction amount calculation means 8 (8a, 8b, 8c) is based on the lens parameters input from the lens parameter input means 5, and each pixel of the primary color signal input from the signal input means 4 (4a, 4b, 4c). The correction amount indicating the amount of color misregistration due to lateral chromatic aberration and the amount of image distortion is calculated. Then, the correction amount calculation unit 8 (8a, 8b, 8c) outputs the calculated correction amount to the aberration correction unit 9 (9a, 9b, 9c).

具体的には、補正量算出手段8(8a、8b、8c)は、補正データ選定手段7(7a、7b、7c)から1つ以上の補正データが入力され、この補正データに基づいて、レンズパラメータ入力手段5から入力された撮影レンズパラメータにおける補正量を補間によって算出する。ここでは、補正量算出手段8は、補正データ選定手段7(7a、7b、7c)から2つの補正データが入力され、線形補間によって補正量を算出することとした。このとき、水平方向の補正量Xと垂直方向の補正量Yは、以下の式(2)によって求められる。 Specifically, the correction amount calculation means 8 (8a, 8b, 8c) receives one or more correction data from the correction data selection means 7 (7a, 7b, 7c), and based on this correction data, the lens A correction amount for the photographic lens parameter input from the parameter input means 5 is calculated by interpolation. Here, the correction amount calculation means 8 receives two correction data from the correction data selection means 7 (7a, 7b, 7c) and calculates the correction amount by linear interpolation. In this case, the correction amount Y 0 of the horizontal direction of the correction amount X 0 vertical direction is determined by the following formula (2).

=X+(X−X)(Z―Z)/(Z−Z
=Y+(Y−Y)(Z―Z)/(Z−Z)・・・式(2)
式(2)において、レンズパラメータ入力手段5から入力されたズーム(撮影レンズパラメータ)の値をZ、補正データ選定手段7から入力された2つの補正データのズーム、水平移動量、垂直移動量をそれぞれZ、Z、X、X、Y、Yとする。
X 0 = X A + (X B -X A) (Z 0 -Z A) / (Z B -Z A)
Y 0 = Y A + (Y B -Y A) (Z 0 -Z A) / (Z B -Z A) ··· Equation (2)
In Expression (2), the zoom (photographing lens parameter) value input from the lens parameter input unit 5 is Z 0 , and the zoom, horizontal movement amount, and vertical movement amount of the two correction data input from the correction data selection unit 7. Are Z A , Z B , X A , X B , Y A and Y B , respectively.

ここでは、撮影レンズパラメータとしてズームのみが入力される場合について説明したが、これに限定されない。つまり、補正量算出手段8(8a、8b、8c)は、2種類以上の撮影レンズパラメータが入力される場合についても同様に、補正データ選定手段7(7a、7b、7c)から入力されたレンズパラメータの補正データに基づいて、線形補間、スプライン補間等の補間処理によって補正量を算出することができる。   Here, the case where only the zoom is input as the photographing lens parameter has been described, but the present invention is not limited to this. That is, the correction amount calculation means 8 (8a, 8b, 8c) similarly applies the lens input from the correction data selection means 7 (7a, 7b, 7c) when two or more types of photographing lens parameters are input. Based on the parameter correction data, the correction amount can be calculated by interpolation processing such as linear interpolation and spline interpolation.

収差補正手段9(9a、9b、9c)は、補正量算出手段8(8a、8b、8c)から入力される補正量に基づいて、信号入力手段4(4a、4b、4c)から入力されたG信号、B信号およびR信号における、倍率色収差による色ずれおよび映像の歪を補正するものである。ここで、収差補正手段9aは、信号入力手段4aから入力されたG信号を補正して、補正したG信号の画素値を、信号記憶手段10aの補正された画素の位置を示すアドレスに書き込む。また、収差補正手段9bは、信号入力手段4bから入力されたB信号を補正して、補正したB信号の画素値を、信号記憶手段10bの補正された画素の位置を示すアドレスに書き込む。さらに、収差補正手段9cは、信号入力手段4cから入力されたR信号を補正して、補正したR信号の画素値を、信号記憶手段10cの補正された画素の位置を示すアドレスに書き込む。このため、収差補正手段9(9a、9b、9c)は、シフト処理部91(91a、91b、91c)と、2次元フィルタ部92(92a、92b、92c)とを備える。   The aberration correction unit 9 (9a, 9b, 9c) is input from the signal input unit 4 (4a, 4b, 4c) based on the correction amount input from the correction amount calculation unit 8 (8a, 8b, 8c). It corrects color shift and image distortion due to lateral chromatic aberration in the G signal, B signal, and R signal. Here, the aberration correction unit 9a corrects the G signal input from the signal input unit 4a, and writes the corrected pixel value of the G signal to the address indicating the corrected pixel position of the signal storage unit 10a. The aberration correction unit 9b corrects the B signal input from the signal input unit 4b, and writes the corrected pixel value of the B signal at an address indicating the corrected pixel position of the signal storage unit 10b. Further, the aberration correction unit 9c corrects the R signal input from the signal input unit 4c, and writes the corrected pixel value of the R signal to the address indicating the corrected pixel position of the signal storage unit 10c. Therefore, the aberration correction unit 9 (9a, 9b, 9c) includes a shift processing unit 91 (91a, 91b, 91c) and a two-dimensional filter unit 92 (92a, 92b, 92c).

ここで、図5を参照して、収差補正手段9(9a、9b、9c)によって、色ずれおよび映像の歪を補正した各画素の画素値を算出する方法について説明する。
シフト処理部91(91a、91b、91c)は、補正量算出手段8(8a、8b、8c)から入力される補正量の整数成分を抽出し、この整数成分の値に基づいて信号入力手段4(4a、4b、4c)から入力されたG信号、B信号およびR信号をシフト処理するものである。具体的には、シフト処理部91(91a、91b、91c)は、各々の画素について、補正量算出手段8(8a、8b、8c)から入力された水平方向の補正量と垂直方向の補正量から整数成分を抽出する。そして、シフト処理部91(91a、91b、91c)は、図5(a)に示すように、対象となる画素をこの整数成分の量だけ移動させた画素を特定する。ここで、水平方向にx画素、垂直方向にyラインの位置にある画素Pの水平方向の補正量の整数成分をΔX、垂直方向の補正量の整数成分をΔYとすると、この整数成分ΔX、ΔYによって示される画素P','の位置は、(x’,y’)=(x+ΔX、y+ΔY)となる。
Here, with reference to FIG. 5, a method of calculating the pixel value of each pixel in which the color misregistration and the image distortion are corrected by the aberration correcting means 9 (9a, 9b, 9c) will be described.
The shift processing unit 91 (91a, 91b, 91c) extracts an integer component of the correction amount input from the correction amount calculation unit 8 (8a, 8b, 8c), and the signal input unit 4 based on the value of the integer component. The G signal, B signal and R signal input from (4a, 4b, 4c) are shifted. Specifically, the shift processing unit 91 (91a, 91b, 91c), for each pixel, the horizontal correction amount and the vertical correction amount input from the correction amount calculation means 8 (8a, 8b, 8c). Extract integer components from. Then, as shown in FIG. 5A, the shift processing unit 91 (91a, 91b, 91c) specifies a pixel obtained by moving the target pixel by the amount of the integer component. Here, if the integer component of the horizontal correction amount of the pixel P x , y at the y line position in the horizontal direction is ΔX and the integer component of the vertical correction amount is ΔY, this integer The positions of the pixels P x ′, y ′ indicated by the components ΔX, ΔY are (x ′, y ′) = (x + ΔX, y + ΔY).

2次元フィルタ部92(92a、92b、92c)は、補正量算出手段8(8a、8b、8c)から入力される補正量の小数成分を抽出し、この小数成分の値に基づいてシフト処理部91(91a、91b、91c)によってシフト処理された画素の画素値を算出するものである。具体的には、2次元フィルタ部92(92a、92b、92c)は、シフト処理部91(91a、91b、91c)によって整数成分の量だけシフト処理された画素P','の画素値を算出する。つまり、2次元フィルタ部92(92a、92b、92c)は、補正量の小数成分を抽出し、補正量の整数成分の量だけシフト処理された画素を、この小数成分の量だけ更に移動させた際の、当該画素の画素値を算出する。ここで、図5(b)に示すように、2次元フィルタ部92(92a、92b、92c)によって抽出された水平方向および垂直方向の補正量の小数成分をそれぞれf1、f2(1画素の横および縦の大きさを1とする)とし、当該画素とこの画素の上、左、左上に隣接する画素の画素値をそれぞれGa、Gb、Gc、Gdとする。この場合、2次元フィルタ部92(92a、92b、92c)は、画素P','の画素値G','を、以下の式(3)によって算出する。 The two-dimensional filter unit 92 (92a, 92b, 92c) extracts the decimal component of the correction amount input from the correction amount calculation means 8 (8a, 8b, 8c), and shift processing unit based on the value of the decimal component The pixel value of the pixel shifted by 91 (91a, 91b, 91c) is calculated. Specifically, the two-dimensional filter unit 92 (92a, 92b, 92c) has the pixel values of the pixels P x ′, y ′ shifted by the amount of the integer component by the shift processing unit 91 (91a, 91b, 91c). Is calculated. That is, the two-dimensional filter unit 92 (92a, 92b, 92c) extracts the decimal component of the correction amount, and further shifts the pixel shifted by the amount of the integer component of the correction amount by the amount of the decimal component. At this time, the pixel value of the pixel is calculated. Here, as shown in FIG. 5B, the fractional components of the horizontal and vertical correction amounts extracted by the two-dimensional filter unit 92 (92a, 92b, 92c) are respectively represented by f1, f2 (horizontal of one pixel). And the vertical size is 1), and the pixel values of the pixel and the pixels adjacent to the upper, left, and upper left of the pixel are Ga, Gb, Gc, and Gd, respectively. In this case, two-dimensional filter portion 92 (92a, 92b, 92c), the pixel P x ', y' pixel values G x of ', y' and is calculated by the following equation (3).

','=a・Ga+b・Gb+c・Gc+d・Gd ・・・式(3)
a=(1−f1)・(1−f2)
b=(1−f1)・f2
c=f1・(1−f2)
d=f1・f2
Gx ', y ' = a * Ga + b * Gb + c * Gc + d * Gd ... Formula (3)
a = (1-f1). (1-f2)
b = (1-f1) · f2
c = f1 · (1-f2)
d = f1 · f2

そして、2次元フィルタ部92(92a、92b、92c)は、この画素値G','を、信号記憶手段10(10a、10b、10c)における、シフト処理部91(91a、91b、91c)によってシフト処理された画素の位置を示すアドレスに書き込む。 Then, the two-dimensional filter unit 92 (92a, 92b, 92c) converts the pixel values G x ′, y ′ into the shift processing units 91 (91a, 91b, 91c) in the signal storage means 10 (10a, 10b, 10c). ) Is written in the address indicating the position of the pixel subjected to the shift processing.

図1に戻って説明を続ける。
信号記憶手段10(10a、10b,10c)は、倍率色収差による色ずれおよび映像の歪を補正した映像信号の画素値を記憶するものであり、半導体メモリ等の一般的な記憶手段である。ここでは、信号記憶手段10aは、収差補正手段9aによって補正されたG信号の画素値を記憶する。また、信号記憶手段10bは、収差補正手段9bによって補正されたB信号の画素値を記憶する。さらに、信号記憶手段10cは、収差補正手段9cによって補正されたR信号の画素値を記憶する。
Returning to FIG. 1, the description will be continued.
The signal storage means 10 (10a, 10b, 10c) is a general storage means such as a semiconductor memory for storing pixel values of a video signal in which color shift due to lateral chromatic aberration and image distortion are corrected. Here, the signal storage means 10a stores the pixel value of the G signal corrected by the aberration correction means 9a. The signal storage unit 10b stores the pixel value of the B signal corrected by the aberration correction unit 9b. Further, the signal storage unit 10c stores the pixel value of the R signal corrected by the aberration correction unit 9c.

信号出力手段11(11a、11b、11c)は、信号記憶手段10(10a、10b,10c)に記憶された画素値を読み出し、倍率色収差を補正した映像信号として出力するものである。ここで、信号出力手段11aは、信号記憶手段10aに記憶されたG信号の画素値を読み出して、補正G信号として出力する。また、信号出力手段11bは、信号記憶手段10bに記憶されたB信号の画素値を読み出して、補正B信号として出力する。さらに、信号出力手段11cは、信号記憶手段10cに記憶されたR信号の画素値を読み出して、補正R信号として出力する。   The signal output means 11 (11a, 11b, 11c) reads out the pixel value stored in the signal storage means 10 (10a, 10b, 10c) and outputs it as a video signal with corrected magnification chromatic aberration. Here, the signal output means 11a reads the pixel value of the G signal stored in the signal storage means 10a and outputs it as a corrected G signal. The signal output unit 11b reads out the pixel value of the B signal stored in the signal storage unit 10b and outputs it as a corrected B signal. Further, the signal output means 11c reads out the pixel value of the R signal stored in the signal storage means 10c and outputs it as a corrected R signal.

[倍率色収差補正装置の動作]
図6〜図9を参照して、倍率色収差・像歪補正装置1が補正データを生成する動作、補正データを間引く動作、および、映像を補正する動作を順に説明する(適宜図1参照)。
[Operation of magnification chromatic aberration correction device]
With reference to FIGS. 6 to 9, the operation of the correction chromatic aberration / image distortion correction device 1 for generating correction data, the operation for thinning out correction data, and the operation for correcting video will be described in order (see FIG. 1 as appropriate).

<補正データの生成動作>
図6に示すように、倍率色収差・像歪補正装置1は、補正データ生成手段2によって、入力された基準信号(G信号、B信号又はR信号)が示す映像から、特徴点を抽出する(ステップS1)。そして、倍率色収差・像歪補正装置1は、補正データ生成手段2によって、入力された比較信号(無歪み理想信号又は処理済G信号)が示す映像から、特徴点を抽出する(ステップS2)。
<Correction data generation operation>
As shown in FIG. 6, the lateral chromatic aberration / image distortion correction device 1 extracts feature points from the video indicated by the input reference signal (G signal, B signal, or R signal) by the correction data generation means 2 ( Step S1). Then, the magnification chromatic aberration / image distortion correction apparatus 1 extracts feature points from the video indicated by the input comparison signal (undistorted ideal signal or processed G signal) by the correction data generation means 2 (step S2).

また、倍率色収差・像歪補正装置1は、補正データ生成手段2によって、基準信号の特徴点と比較信号の特徴点との間で対応点を探索する(ステップS3)。そして、倍率色収差・像歪補正装置1は、補正データ生成手段2によって、この対応点に基づいて収差量を算出する(ステップS4)。   Further, the magnification chromatic aberration / image distortion correction device 1 searches the corresponding point between the feature point of the reference signal and the feature point of the comparison signal by the correction data generation means 2 (step S3). Then, the magnification chromatic aberration / image distortion correction apparatus 1 calculates an aberration amount based on the corresponding points by the correction data generation unit 2 (step S4).

また、倍率色収差・像歪補正装置1は、補正データ生成手段2によって、この収差量を全画面分算出したか否かを判定する(ステップS5)。ここで、収差量を全画面分算出した場合(ステップS5でYes)、倍率色収差・像歪補正装置1は、ステップS6の処理に進む。一方、収差量を全画面分算出していない場合(ステップS5でNo)、倍率色収差・像歪補正装置1は、ステップS3の処理に戻る。   Further, the magnification chromatic aberration / image distortion correction device 1 determines whether or not the correction data generation means 2 has calculated this aberration amount for the entire screen (step S5). Here, when the aberration amount is calculated for the entire screen (Yes in step S5), the lateral chromatic aberration / image distortion correction apparatus 1 proceeds to the process of step S6. On the other hand, if the aberration amount has not been calculated for the entire screen (No in step S5), the lateral chromatic aberration / image distortion correction apparatus 1 returns to the process of step S3.

また、倍率色収差・像歪補正装置1は、補正データ生成手段2によって、入力されたレンズパラメータに収差量を対応付けて補正データを生成し、この補正データを補正データ間引き手段3(3a、3b、3c)に出力する(ステップS6)。
なお、図6では、ステップS1、S2は、並列処理としたが、ステップS1、S2の順又はその逆順で直列処理としてもよい。
Further, the magnification chromatic aberration / image distortion correction apparatus 1 generates correction data by associating an aberration amount with the input lens parameter by the correction data generation means 2 and uses the correction data as the correction data thinning means 3 (3a, 3b). 3c) (step S6).
In FIG. 6, steps S1 and S2 are parallel processing. However, serial processing may be performed in the order of steps S1 and S2 or in the reverse order.

<補正データの間引き動作>
以下、レンズパラメータがd種類、つまり、レンズパラメータが第1軸〜第d軸であることとして説明する。また、第d軸のレンズパラメータにおいて、測定点数をFとする。
<Correction data thinning operation>
In the following description, it is assumed that the lens parameters are d types, that is, the lens parameters are the first axis to the d-th axis. In the d-axis lens parameter, the number of measurement points is F d .

図7に示すように、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、レンズパラメータの第1軸について測定点数Fをカウントする(ステップS11)。 As shown in FIG. 7, the chromatic aberration of magnification-image distortion correction apparatus 1, the correction data thinning means 3 counts the number of measurement points F 1 for the first axis of the lens parameters (step S11).

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、レンズパラメータの第1軸について間引きする補正データプレーンを設定する(ステップS12)。つまり、補正データ間引き手段3は、レンズパラメータの第1軸について、ステップS12の処理を行う毎に、順次、補正データプレーンを1個間引く場合、2個間引く場合、3個間引く場合、・・・、F−2個間引く場合というように、間引きする補正データプレーンの数を設定する。ここで、補正データプレーンを2個以上間引く場合、補正データ間引き手段3は、レンズパラメータの第1軸全体から、間引する2個以上の補正データプレーンの全組合せも設定する。さらに、補正データ間引き手段3は、どの補正データプレーンを間引くかも設定する。 Further, the lateral chromatic aberration / image distortion correction device 1 sets a correction data plane to be thinned out for the first axis of the lens parameter by the correction data thinning means 3 (step S12). That is, the correction data decimation means 3 sequentially decimates one correction data plane, two decimations, three decimations each time the process of step S12 is performed for the first axis of the lens parameter,... , F 1 -2, for example, the number of correction data planes to be thinned is set. Here, when two or more correction data planes are thinned out, the correction data thinning means 3 also sets all combinations of two or more correction data planes to be thinned out from the entire first axis of lens parameters. Further, the correction data thinning means 3 also sets which correction data plane is thinned.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、レンズパラメータの第d−1軸について測定点数Fd-1をカウントする(ステップS13)。 Further, the lateral chromatic aberration / image distortion correction apparatus 1 counts the number of measurement points F d-1 for the d−1 axis of the lens parameter by the correction data thinning means 3 (step S13).

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、レンズパラメータの第d−1軸について間引きする補正データプレーンを設定する(ステップS14)。つまり、補正データ間引き手段3は、レンズパラメータの第d−1軸について、ステップS14の処理を行う毎に、順次、補正データプレーンを1個間引く場合、2個間引く場合、3個間引く場合、・・・、Fd-1−2個間引く場合というように、間引きする補正データプレーンの数を設定する。ここで、補正データプレーンを2個以上間引く場合、補正データ間引き手段3は、レンズパラメータの第d−1軸全体から、間引する2個以上の補正データプレーンの全組合せも設定する。さらに、補正データ間引き手段3は、どの補正データプレーンを間引くかも設定する。 Further, the lateral chromatic aberration / image distortion correction device 1 sets a correction data plane to be thinned out about the d-1 axis of the lens parameter by the correction data thinning means 3 (step S14). That is, the correction data decimation means 3 sequentially decimates one correction data plane, two decimations, three decimations each time the process of step S14 is performed for the d-1 axis of the lens parameter. ..., F d−1 −2 The number of correction data planes to be thinned out is set as in the case of thinning out. Here, when two or more correction data planes are thinned out, the correction data thinning means 3 also sets all combinations of two or more correction data planes to be thinned out from the entire lens parameter d-1 axis. Further, the correction data thinning means 3 also sets which correction data plane is thinned.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、レンズパラメータの第d軸について測定点数Fをカウントする(ステップS15)。 Further, lateral chromatic aberration, image distortion correction apparatus 1, the correction data thinning means 3 counts the number of measurement points F d About d-axis of the lens parameters (step S15).

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、レンズパラメータの第d軸について補正データプレーンを設定する(ステップS16)。つまり、補正データ間引き手段3は、レンズパラメータの第d軸について、ステップS16の処理を行う毎に、順次、補正データプレーンを1個間引く場合、2個間引く場合、3個間引く場合、・・・、F−2個間引く場合というように、間引きする補正データプレーンの数を設定する。ここで、補正データプレーンを2個以上間引く場合、補正データ間引き手段3は、レンズパラメータの第d軸全体から、間引する2個以上の補正データプレーンの全組合せも設定する。さらに、補正データ間引き手段3は、どの補正データプレーンを間引くかも設定する。 Further, the magnification chromatic aberration / image distortion correction device 1 sets a correction data plane for the d-th axis of the lens parameter by the correction data thinning means 3 (step S16). That is, the correction data thinning unit 3 sequentially thins out one correction data plane, thins out two, thins out three, and so on each time the process of step S16 is performed for the d-th axis of the lens parameter. , F d -2 is set, the number of correction data planes to be thinned is set. Here, when two or more correction data planes are thinned out, the correction data thinning means 3 also sets all combinations of two or more correction data planes to be thinned out from the entire lens parameter d-axis. Further, the correction data thinning means 3 also sets which correction data plane is thinned.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、ステップS12、ステップS14およびステップS16で設定した補正データプレーンから、間引き候補となる補正データプレーンを選択する(ステップS17)。ここで、補正データプレーンを1個間引く場合、補正データ間引き手段3は、ステップS17の処理を行う毎に、レンズパラメータの第d軸、第d−1軸、・・・、第1軸の順で、mの値をインクリメントする。また、補正データプレーンを2個以上間引く場合、補正データ間引き手段3は、レンズパラメータの第d軸、第d−1軸、・・・、第1軸の順で、ステップS12、ステップS14およびステップS16で設定した補正データプレーンの組合せごとに選択する。   Further, the magnification chromatic aberration / image distortion correction apparatus 1 selects a correction data plane to be a thinning candidate from the correction data planes set in step S12, step S14 and step S16 by the correction data thinning means 3 (step S17). Here, when one correction data plane is thinned out, the correction data thinning means 3 performs the lens parameter in the order of the d-th axis, d-1th axis,..., First axis every time the process of step S17 is performed. Then, the value of m is incremented. Further, when two or more correction data planes are thinned out, the correction data thinning means 3 performs steps S12, S14 and step in order of the lens parameter d-axis, d-1 axis,. A selection is made for each combination of correction data planes set in S16.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、間引き候補となる補正データプレーンの評価値候補Ev_tempを算出する(ステップS18)。つまり、補正データ間引き手段3は、間引き候補となる補正データプレーンを補正量算出手段8と同じ補間手法で補間し、補間後補正データプレーンとする。そして、補正データ間引き手段3は、全ての画素について、補正データプレーンと間引き候補の補正データプレーンとの収差量の差分を算出する。さらに、補正データ間引き手段3は、全ての画素のうち、この差分が最大となるものを評価値候補Ev_tempとして算出する。   Further, the lateral chromatic aberration / image distortion correction device 1 calculates the evaluation value candidate Ev_temp of the correction data plane as a thinning candidate by the correction data thinning means 3 (step S18). That is, the correction data thinning unit 3 interpolates correction data planes that are thinning candidates by the same interpolation method as the correction amount calculation unit 8 to obtain post-interpolation correction data planes. Then, the correction data thinning means 3 calculates the aberration amount difference between the correction data plane and the thinning candidate correction data plane for all pixels. Further, the correction data thinning-out means 3 calculates the evaluation value candidate Ev_temp from among all the pixels that has the maximum difference.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、全ての補正データプレーンを評価したか否か、つまり、全ての補正データプレーンについて、評価値候補Ev_tempを算出したか否かを判定する(ステップS19)。ここで、全ての評価した場合(ステップS19でYes)、倍率色収差・像歪補正装置1は、ステップS20の処理に進む。一方、全て評価していない場合(ステップS19でNo)、倍率色収差・像歪補正装置1は、ステップS17の処理に戻る。   Further, the magnification chromatic aberration / image distortion correction device 1 has evaluated all the correction data planes by the correction data thinning means 3, that is, has calculated the evaluation value candidate Ev_temp for all the correction data planes. Is determined (step S19). Here, when all the evaluations are made (Yes in step S19), the lateral chromatic aberration / image distortion correction apparatus 1 proceeds to the process of step S20. On the other hand, when not evaluating all (No in step S19), the lateral chromatic aberration / image distortion correction apparatus 1 returns to the process of step S17.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、評価値EVと、総プレーン数=F*F・・・*Fと、減プレーン番号DP(F1、2、・・・)とを算出する(ステップS20)。このとき、補正データ間引き手段3は、評価値候補Ev_tempの最小値を評価値EVとして算出する。また、補正データ間引き手段3は、評価値候補Ev_tempの平均値を評価値EVとして算出してもよい。 Further, the lateral chromatic aberration / image distortion correction device 1 uses the correction data thinning means 3 to evaluate the evaluation value EV, the total number of planes = F 1 * F 2 * ... * F d, and the reduced plane number DP (F 1, F2 ,... Fd ) are calculated (step S20). At this time, the correction data thinning-out means 3 calculates the minimum value of the evaluation value candidate Ev_temp as the evaluation value EV. Further, the correction data thinning-out means 3 may calculate the average value of the evaluation value candidates Ev_temp as the evaluation value EV.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、測定点数Fを「1」減算する(ステップS21)。 Further, lateral chromatic aberration, image distortion correction apparatus 1, the correction data thinning means 3, the measurement points F d to subtract "1" (step S21).

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、測定点数Fが「2」未満であるか否かを判定する(ステップS22)。ここで、測定点数Fが「2」未満である場合(ステップS22でYes)、倍率色収差・像歪補正装置1は、ステップS23の処理に進む。一方、測定点数Fが「2」未満でない場合(ステップS22でNo)、倍率色収差・像歪補正装置1は、ステップS16の処理に戻る。 Further, lateral chromatic aberration, image distortion correction apparatus 1 is checked by the correction data thinning means 3, the measurement points F d is whether it is smaller than "2" (step S22). Here, if the number of measurement points F d is less than "2" (Yes in step S22), and lateral chromatic aberration, image distortion correction apparatus 1, the process proceeds to step S23. On the other hand, if the number of measurement points F d is not less than "2" (No in step S22), and lateral chromatic aberration, image distortion correction apparatus 1 returns to the process of step S16.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、測定点数Fd-1を「1」減算する(ステップS23)。 Further, the magnification chromatic aberration / image distortion correction apparatus 1 subtracts “1” from the number of measurement points F d−1 by the correction data thinning-out means 3 (step S23).

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、測定点数Fd-1が「2」未満であるか否かを判定する(ステップS24)。ここで、測定点数Fd-1が「2」未満である場合(ステップS24でYes)、倍率色収差・像歪補正装置1は、ステップS25の処理に進む。一方、測定点数Fd-1が「2」未満でない場合(ステップS24でNo)、倍率色収差・像歪補正装置1は、ステップS14の処理に戻る。 Further, the magnification chromatic aberration / image distortion correction device 1 determines whether or not the number of measurement points F d-1 is less than “2” by the correction data thinning means 3 (step S24). Here, when the number of measurement points F d-1 is less than “2” (Yes in step S24), the magnification chromatic aberration / image distortion correction apparatus 1 proceeds to the process of step S25. On the other hand, when the number of measurement points F d-1 is not less than “2” (No in step S24), the lateral chromatic aberration / image distortion correction apparatus 1 returns to the process of step S14.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、測定点数Fを「1」減算する(ステップS25)。 The magnification chromatic aberration / image distortion correction apparatus 1 subtracts “1” from the number of measurement points F 1 by the correction data thinning-out means 3 (step S25).

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、測定点数Fが「2」未満であるか否かを判定する(ステップS26)。ここで、測定点数Fが「2」未満である場合(ステップS26でYes)、倍率色収差・像歪補正装置1は、ステップS23の処理に進む。一方、測定点数Fが「2」未満でない場合(ステップS26でNo)、倍率色収差・像歪補正装置1は、ステップS12の処理に戻る。 Further, lateral chromatic aberration, image distortion correction apparatus 1, the correction data thinning means 3 determines the number of measurement points F 1 is whether it is smaller than "2" (step S26). Here, if the number of measurement points F 1 is smaller than "2" (Yes in step S26), the chromatic aberration of magnification-image distortion correction apparatus 1, the process proceeds to step S23. On the other hand, if the number of measurement points F 1 is not less than "2" (No in step S26), the chromatic aberration of magnification-image distortion correction apparatus 1 returns to the process of step S12.

また、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、評価値EVと、減プレーン番号DPと、総プレーン数とを出力する(ステップS27)。
また、補正データ間引き手段3は、例えば、補正データ記憶手段6の記憶容量を補正データプレーン1つあたりの容量で除算した値に基づいて記憶数を算出し、この総プレーン数が記憶数以下となるように間引きする(ステップS28)。このとき、補正データ間引き手段3は、この評価値EVが最大色ずれ量の許容値以下で、かつ、間引きする補正データプレーンの数が最大となるように記憶数を算出し、この記憶数以下となるように間引きしてもよい。
Further, the magnification chromatic aberration / image distortion correction device 1 outputs the evaluation value EV, the reduced plane number DP, and the total number of planes by the correction data thinning means 3 (step S27).
Further, the correction data thinning-out means 3 calculates the number of memories based on, for example, a value obtained by dividing the storage capacity of the correction data storage means 6 by the capacity per correction data plane, and the total number of planes is equal to or less than the number of memories. This is thinned out (step S28). At this time, the correction data thinning-out means 3 calculates the storage number so that the evaluation value EV is not more than the allowable value of the maximum color misregistration amount and the number of correction data planes to be thinned out is the maximum, and this correction number EV or less. It may be thinned out so that

以上のように、倍率色収差・像歪補正装置1は、補正データ間引き手段3によって、レンズパラメータを複数の種類としたときでも補正データを間引きすることができる。例えば、図8に示すように、第1軸(奥行き方向)のレンズパラメータをズームとし、第2軸(水平方向)のレンズパラメータをアイリスとし、第3軸(垂直方向)のレンズパラメータをフォーカスとした場合でも、倍率色収差・像歪補正装置1は、この補正データを間引きすることができる。   As described above, the magnification chromatic aberration / image distortion correction apparatus 1 can thin out correction data by the correction data thinning means 3 even when the lens parameters are of a plurality of types. For example, as shown in FIG. 8, the lens parameter of the first axis (depth direction) is zoom, the lens parameter of the second axis (horizontal direction) is iris, and the lens parameter of the third axis (vertical direction) is focus. Even in this case, the lateral chromatic aberration / image distortion correction apparatus 1 can thin out the correction data.

<映像の補正動作>
図9に示すように、倍率色収差・像歪補正装置1は、信号入力手段4によって、G信号、R信号およびB信号を入力する。また、倍率色収差・像歪補正装置1は、レンズパラメータ入力手段5によって、撮影レンズパラメータを入力する(信号・レンズパラメータ入力ステップ:ステップS101)。
<Image correction operation>
As shown in FIG. 9, the lateral chromatic aberration / image distortion correction apparatus 1 inputs a G signal, an R signal, and a B signal by a signal input unit 4. The magnification chromatic aberration / image distortion correction apparatus 1 inputs photographing lens parameters by the lens parameter input means 5 (signal / lens parameter input step: step S101).

また、倍率色収差・像歪補正装置1は、補正データ選定手段7によって、レンズパラメータ入力手段5に入力されたレンズパラメータに基づいて、補正データ記憶手段6に記憶された補正データを選定する(補正データ選定ステップ:ステップS102)。ここで、補正データ選定手段7は、補正データ記憶手段6に記憶された補正データのうち、入力されたレンズパラメータの値を挟むレンズパラメータの補正データを選定する。   Further, the magnification chromatic aberration / image distortion correction apparatus 1 selects correction data stored in the correction data storage unit 6 based on the lens parameter input to the lens parameter input unit 5 by the correction data selection unit 7 (correction). Data selection step: Step S102). Here, the correction data selection means 7 selects the correction data of the lens parameter that sandwiches the input lens parameter value among the correction data stored in the correction data storage means 6.

また、倍率色収差・像歪補正装置1は、補正量算出手段8によって、補正データ選定手段7が選定した補正データに基づいて、G信号、R信号およびB信号の画素の補正量を算出する(補正量算出ステップ:ステップS103)。ここで、補正量算出手段8は、複数の補正データの各々から当該画素に対応する収差量から、入力されたレンズパラメータにおける補正量を線形補間又はスプライン補間によって算出する。   Further, the magnification chromatic aberration / image distortion correction apparatus 1 calculates the correction amounts of the pixels of the G signal, the R signal, and the B signal by the correction amount calculation unit 8 based on the correction data selected by the correction data selection unit 7 ( Correction amount calculating step: Step S103). Here, the correction amount calculation means 8 calculates the correction amount in the input lens parameter from the aberration amount corresponding to the pixel from each of the plurality of correction data by linear interpolation or spline interpolation.

また、倍率色収差・像歪補正装置1は、収差補正手段9によって、補正量算出手段8が算出した補正量に基づいて、レンズパラメータ入力手段5に入力されたG信号、B信号およびR信号の倍率色収差による色ずれおよび映像の歪を補正し、信号記憶手段10に記憶する(収差補正ステップ:ステップS104)。ここでは、倍率色収差・像歪補正装置1は、シフト処理部71によって、補正量算出手段8が算出した補正量から整数成分を抽出して、この整数成分に基づいてシフト処理を行う。また、倍率色収差・像歪補正装置1は、2次元フィルタ部72によって、補正量算出手段8が算出した補正量から小数成分を抽出して、補正量の整数成分によってシフト処理された画素の画素値を算出する。そして、倍率色収差・像歪補正装置1は、2次元フィルタ部72によって、信号記憶手段10に、シフト処理された画素を示すアドレスに画素値を書き込む。以上のように、倍率色収差・像歪補正装置1は、G信号、B信号およびR信号について、画素ごとに画素値を補正することができる。   Further, the lateral chromatic aberration / image distortion correction device 1 is configured to output the G signal, the B signal, and the R signal input to the lens parameter input unit 5 based on the correction amount calculated by the correction amount calculation unit 8 by the aberration correction unit 9. The color shift and image distortion due to lateral chromatic aberration are corrected and stored in the signal storage means 10 (aberration correction step: step S104). Here, the lateral chromatic aberration / image distortion correction apparatus 1 extracts an integer component from the correction amount calculated by the correction amount calculation means 8 by the shift processing unit 71 and performs a shift process based on the integer component. Further, the lateral chromatic aberration / image distortion correction apparatus 1 extracts a decimal component from the correction amount calculated by the correction amount calculation means 8 by the two-dimensional filter unit 72, and the pixel of the pixel shifted by the integer component of the correction amount Calculate the value. Then, the magnification chromatic aberration / image distortion correction apparatus 1 writes the pixel value to the address indicating the pixel subjected to the shift process in the signal storage unit 10 by the two-dimensional filter unit 72. As described above, the lateral chromatic aberration / image distortion correction apparatus 1 can correct the pixel value for each pixel for the G signal, the B signal, and the R signal.

そして、ステップS101に戻り、倍率色収差・像歪補正装置1は、G信号、B信号およびB信号の次の画素の画素値を入力するとともに、この画素に対応するレンズパラメータを入力するステップS101の処理を繰り返し行う。   Then, returning to step S101, the magnification chromatic aberration / image distortion correcting apparatus 1 inputs the pixel value of the pixel next to the G signal, the B signal, and the B signal, and inputs the lens parameter corresponding to this pixel in step S101. Repeat the process.

さらに、倍率色収差・像歪補正装置1は、信号出力手段11によって、信号記憶手段10に記憶されたG信号、B信号およびR信号の画素値を各々読み出して補正G信号、補正R信号および補正B信号として出力する(信号出力ステップ、不図示)。   Further, the lateral chromatic aberration / image distortion correction apparatus 1 reads out the pixel values of the G signal, B signal, and R signal stored in the signal storage means 10 by the signal output means 11 to correct the corrected G signal, the corrected R signal, and the correction. Output as a B signal (signal output step, not shown).

以上のように、本実施形態に係る倍率色収差・像歪補正装置1は、補正データ記憶手段6に倍率色収差による色ずれおよび映像の歪を考慮した補正データを記憶するため、カメラが撮影した映像において、倍率色収差による色ずれおよび映像の歪を補正することができる。倍率色収差・像歪補正装置1は、補正データ記憶手段6に適切な数の補正データを記憶するので、補正データ記憶手段6に記憶する補正データの数が多すぎることや少なすぎることがない。これによって、倍率色収差・像歪補正装置1は、その補正データを用いて算出した補正量が映像の実際のずれ量と近いものとなり、正確な補正を可能とすると共に、補正データ記憶手段6の記憶容量を節約して、倍率色収差・像歪補正装置1の構成を簡易にできる。   As described above, the magnification chromatic aberration / image distortion correction apparatus 1 according to the present embodiment stores correction data in consideration of the color shift and image distortion due to the magnification chromatic aberration in the correction data storage unit 6, and thus the image captured by the camera. The color shift due to the chromatic aberration of magnification and the image distortion can be corrected. The lateral chromatic aberration / image distortion correction apparatus 1 stores an appropriate number of correction data in the correction data storage unit 6, so that the number of correction data stored in the correction data storage unit 6 is neither too much nor too small. As a result, the magnification chromatic aberration / image distortion correction apparatus 1 makes the correction amount calculated using the correction data close to the actual shift amount of the video image, enabling accurate correction, and correcting the data stored in the correction data storage means 6. The storage capacity can be saved and the configuration of the magnification chromatic aberration / image distortion correction apparatus 1 can be simplified.

なお、倍率色収差・像歪補正装置1は、一般的なコンピュータにおいて各手段を各機能プログラムとして実現することも可能であり、各機能プログラムを結合して、倍率色収差・像歪補正プログラムとして動作させることも可能である。   Note that the magnification chromatic aberration / image distortion correction apparatus 1 can also implement each unit as a function program in a general computer, and combine the function programs to operate as a magnification chromatic aberration / image distortion correction program. It is also possible.

なお、倍率色収差による色ずれおよび映像の歪の両方を補正することとして説明したが、倍率色収差・像歪補正装置1は、倍率色収差による色ずれおよび映像の歪の何れか一方だけを補正することもできる。
例えば、緑色(第1原色)と、赤色および青色(第2原色および第3原色)とを一致させる処理として考える。この場合、補正データを、緑色(第1原色)について“0”(つまり、補正なし)とし、赤色および青色(第2原色および第3原色)については、緑色(第1原色)の光に対する収差量を示すものとして補正データ記憶手段6(6a、6b、6c)に記憶する。これによって、倍率色収差・像歪補正装置1は、倍率色収差による色ずれのみを補正することができる。各原色の撮影素子を備えない単板式のカメラは、撮影素子の回転およびあおりが発生しないために映像の歪の影響が少ない。従って、倍率色収差・像歪補正装置1は、単板式のカメラに適用することが好ましい。
また、例えば、倍率色収差・像歪補正装置1は、映像の歪みだけを考慮した補正データを補正データ記憶手段6(6a、6b、6c)に記憶することにより、映像の歪だけを補正することもできる。
In addition, although it demonstrated as correcting both the color shift and image distortion by magnification chromatic aberration, the magnification chromatic aberration and image distortion correction apparatus 1 corrects only one of the color shift and image distortion by magnification chromatic aberration. You can also.
For example, a process of matching green (first primary color) with red and blue (second primary color and third primary color) is considered. In this case, the correction data is set to “0” (that is, no correction) for green (first primary color), and for red and blue (second primary color and third primary color), aberration with respect to green (first primary color) light. It is stored in the correction data storage means 6 (6a, 6b, 6c) as an amount. Thereby, the lateral chromatic aberration / image distortion correction apparatus 1 can correct only the color shift caused by the lateral chromatic aberration. A single-plate camera that does not include an imaging element for each primary color is less affected by image distortion because the imaging element does not rotate and tilt. Therefore, the lateral chromatic aberration / image distortion correction apparatus 1 is preferably applied to a single-plate camera.
Further, for example, the magnification chromatic aberration / image distortion correction apparatus 1 stores correction data in consideration of only image distortion in the correction data storage means 6 (6a, 6b, 6c), thereby correcting only image distortion. You can also.

1 倍率色収差・像歪補正装置
2 補正データ生成手段
3 補正データ間引き手段
4 信号入力手段
5 レンズパラメータ入力手段
6 補正データ記憶手段
7 補正データ選定手段
8 補正量算出手段
9 収差補正手段(補正手段)
10 信号記憶手段
11 信号出力手段
DESCRIPTION OF SYMBOLS 1 Correction | amendment chromatic aberration / image distortion correction device 2 Correction data generation means 3 Correction data thinning means 4 Signal input means 5 Lens parameter input means 6 Correction data storage means 7 Correction data selection means 8 Correction amount calculation means 9 Aberration correction means (correction means)
10 signal storage means 11 signal output means

Claims (4)

映像を撮影するカメラのレンズパラメータの値と、当該レンズパラメータにおける前記映像の画素ごとの倍率色収差による結像位置のずれの量および前記映像の歪の量の少なくとも一方を示す収差量とを対応させた補正データを用いて、前記倍率色収差による色ずれおよび前記映像の歪の少なくとも一方を補正する倍率色収差・像歪補正装置であって、
色の三原色である第1原色、第2原色および第3原色の前記補正データを記憶する補正データ記憶手段と、
前記補正データが複数入力されると共に、前記補正データ記憶手段の記憶容量又は所定の評価値に基づいて前記補正データの記憶数を算出し、前記入力された補正データを前記記憶数以下に間引いてから前記補正データ記憶手段に書き込む補正データ間引き手段と、
前記画素ごとの、前記第1原色、第2原色および第3原色の明るさを示す第1原色信号、第2原色信号および第3原色信号を入力する信号入力手段と、
この信号入力手段から入力される第1原色信号、第2原色信号および第3原色信号の各々の前記画素に対応する、前記映像を撮影したときのレンズパラメータである撮影レンズパラメータを入力するレンズパラメータ入力手段と、
前記レンズパラメータ入力手段から入力された撮影レンズパラメータに基づいて、前記補正データ記憶手段に記憶された、当該撮影レンズパラメータの値を挟む2つのレンズパラメータの補正データを選定する補正データ選定手段と、
この補正データ選定手段によって選定された補正データに基づいて、前記撮影レンズパラメータにおける前記倍率色収差による色ずれおよび前記映像の歪の少なくとも一方を補正するための補正量を、補間して算出する補正量算出手段と、
この補正量算出手段によって算出された補正量に基づいて、前記第1原色信号、第2原色信号および第3原色信号の各画素の明るさを示す画素値を補正する補正手段と、
前記補正手段によって画素値が補正された前記第1原色信号、第2原色信号および第3原色信号を出力する信号出力手段と、
を備えることを特徴とする倍率色収差・像歪補正装置。
The lens parameter value of the camera that shoots the image is associated with the aberration amount indicating at least one of the image position displacement amount and the image distortion amount due to the chromatic aberration of magnification for each pixel of the image in the lens parameter. The correction chromatic aberration / image distortion correction device for correcting at least one of color shift caused by the chromatic aberration of magnification and distortion of the image using the correction data,
Correction data storage means for storing the correction data of the first primary color, the second primary color and the third primary color which are the three primary colors;
A plurality of the correction data are input, and the number of correction data stored is calculated based on the storage capacity of the correction data storage means or a predetermined evaluation value, and the input correction data is thinned below the storage number. Correction data thinning means to be written to the correction data storage means from
Signal input means for inputting a first primary color signal, a second primary color signal, and a third primary color signal indicating the brightness of the first primary color, the second primary color, and the third primary color for each pixel;
Lens parameters for inputting photographing lens parameters corresponding to the pixels of the first primary color signal, the second primary color signal, and the third primary color signal input from the signal input means, which are lens parameters when the video is captured. Input means;
Correction data selection means for selecting correction data for two lens parameters sandwiching the value of the photographing lens parameter stored in the correction data storage means based on the photographing lens parameter input from the lens parameter input means;
Based on the correction data selected by the correction data selecting means, a correction amount for interpolating and calculating a correction amount for correcting at least one of the color shift due to the magnification chromatic aberration and the distortion of the image in the photographing lens parameter A calculation means;
Correction means for correcting a pixel value indicating the brightness of each pixel of the first primary color signal, the second primary color signal, and the third primary color signal based on the correction amount calculated by the correction amount calculation means;
Signal output means for outputting the first primary color signal, the second primary color signal, and the third primary color signal whose pixel values are corrected by the correction means;
A chromatic aberration magnification / image distortion correction apparatus comprising:
前記補正データ間引き手段は、前記補正データ記憶手段の記憶容量を前記補正データ1つあたりの容量で除算した値に基づいて、前記記憶数を算出することを特徴とする請求項1に記載の倍率色収差・像歪補正装置。   2. The magnification according to claim 1, wherein the correction data thinning-out means calculates the storage number based on a value obtained by dividing the storage capacity of the correction data storage means by the capacity per one piece of the correction data. Chromatic aberration / image distortion correction device. 前記補正データ間引き手段は、前記レンズパラメータの値および前記画素ごとに間引き候補の補正データと当該補正データを補間した補間後補正データとの前記収差量の差分を算出し、前記レンズパラメータの値ごとに前記差分の最大値又は平均値を前記評価値として算出し、前記評価値が予め設定された閾値以下で、かつ、前記間引き候補の補正データの最大数を前記記憶数として算出することを特徴とする請求項1に記載の倍率色収差・像歪補正装置。   The correction data thinning means calculates the aberration amount difference between the lens parameter value and the correction data of the thinning candidate for each pixel and the post-interpolation correction data obtained by interpolating the correction data, and for each lens parameter value. The maximum value or average value of the differences is calculated as the evaluation value, the evaluation value is equal to or less than a preset threshold value, and the maximum number of correction data of the thinning candidates is calculated as the storage number. The lateral chromatic aberration / image distortion correcting apparatus according to claim 1. 映像を撮影するカメラのレンズパラメータの値と、当該レンズパラメータにおける前記映像の画素ごとの倍率色収差による結像位置のずれの量および前記映像の歪の量の少なくとも一方を示す収差量とを対応させた補正データを用いて、前記倍率色収差による色ずれおよび前記映像の歪の少なくとも一方を補正するために、色の三原色である第1原色、第2原色および第3原色の前記補正データを記憶する補正データ記憶手段を備えるコンピュータを、
前記補正データが複数入力されると共に、前記補正データ記憶手段の記憶容量又は所定の評価値に基づいて前記補正データの記憶数を算出し、前記入力された補正データを前記記憶数以下に間引いてから前記補正データ記憶手段に書き込む補正データ間引き手段、
前記画素ごとの、前記第1原色、第2原色および第3原色の明るさを示す第1原色信号、第2原色信号および第3原色信号を入力する信号入力手段、
この信号入力手段から入力される第1原色信号、第2原色信号および第3原色信号の各々の前記画素に対応する、前記映像を撮影したときのレンズパラメータである撮影レンズパラメータを入力するレンズパラメータ入力手段、
前記レンズパラメータ入力手段から入力された撮影レンズパラメータに基づいて、前記補正データ記憶手段に記憶された、当該撮影レンズパラメータの値を挟む2つのレンズパラメータの補正データを選定する補正データ選定手段、
この補正データ選定手段によって選定された補正データに基づいて、前記撮影レンズパラメータにおける前記倍率色収差による色ずれおよび前記映像の歪の少なくとも一方を補正するための補正量を、補間して算出する補正量算出手段、
この補正量算出手段によって算出された補正量に基づいて、前記第1原色信号、第2原色信号および第3原色信号の各画素の明るさを示す画素値を補正する補正手段、
前記補正手段によって画素値が補正された前記第1原色信号、第2原色信号および第3原色信号を出力する信号出力手段、
として機能させることを特徴とする倍率色収差・像歪補正プログラム。
The lens parameter value of the camera that shoots the image is associated with the aberration amount indicating at least one of the image position displacement amount and the image distortion amount due to the chromatic aberration of magnification for each pixel of the image in the lens parameter. The correction data of the first primary color, the second primary color, and the third primary color, which are the three primary colors, are stored in order to correct at least one of the color shift due to the chromatic aberration of magnification and the distortion of the image using the correction data. A computer comprising correction data storage means;
A plurality of the correction data are input, and the number of correction data stored is calculated based on the storage capacity of the correction data storage means or a predetermined evaluation value, and the input correction data is thinned below the storage number. Correction data thinning means for writing to the correction data storage means from
A signal input means for inputting a first primary color signal, a second primary color signal, and a third primary color signal indicating brightness of the first primary color, the second primary color, and the third primary color for each pixel;
Lens parameters for inputting photographing lens parameters corresponding to the pixels of the first primary color signal, the second primary color signal, and the third primary color signal input from the signal input means, which are lens parameters when the video is captured. Input means,
Correction data selection means for selecting correction data for two lens parameters sandwiching the value of the photographing lens parameter stored in the correction data storage means based on the photographing lens parameter input from the lens parameter input means;
Based on the correction data selected by the correction data selecting means, a correction amount for interpolating and calculating a correction amount for correcting at least one of the color shift due to the magnification chromatic aberration and the distortion of the image in the photographing lens parameter Calculation means,
Correction means for correcting a pixel value indicating the brightness of each pixel of the first primary color signal, the second primary color signal, and the third primary color signal based on the correction amount calculated by the correction amount calculation means;
Signal output means for outputting the first primary color signal, the second primary color signal and the third primary color signal whose pixel values have been corrected by the correction means;
A chromatic aberration / image distortion correction program for magnification characterized by functioning as
JP2010042332A 2010-02-26 2010-02-26 Chromatic aberration / image distortion correcting apparatus and program therefor Active JP5334265B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010042332A JP5334265B2 (en) 2010-02-26 2010-02-26 Chromatic aberration / image distortion correcting apparatus and program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010042332A JP5334265B2 (en) 2010-02-26 2010-02-26 Chromatic aberration / image distortion correcting apparatus and program therefor

Publications (2)

Publication Number Publication Date
JP2011182071A JP2011182071A (en) 2011-09-15
JP5334265B2 true JP5334265B2 (en) 2013-11-06

Family

ID=44693148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010042332A Active JP5334265B2 (en) 2010-02-26 2010-02-26 Chromatic aberration / image distortion correcting apparatus and program therefor

Country Status (1)

Country Link
JP (1) JP5334265B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016076396A1 (en) * 2014-11-14 2016-05-19 株式会社日立国際電気 Image-capturing device and image-capture method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4724933B2 (en) * 2001-03-22 2011-07-13 ソニー株式会社 Still image photographing apparatus and display method of remaining number of recorded images
JP4337463B2 (en) * 2003-08-06 2009-09-30 ソニー株式会社 Image processing apparatus, image processing system, imaging apparatus, and image processing method
JP2007189361A (en) * 2006-01-12 2007-07-26 Fujitsu General Ltd Image sensor and camera using the same
JP5036524B2 (en) * 2007-06-25 2012-09-26 シリコン ヒフェ ベー.フェー. Image processing apparatus, image processing method, program, and imaging apparatus

Also Published As

Publication number Publication date
JP2011182071A (en) 2011-09-15

Similar Documents

Publication Publication Date Title
US8659672B2 (en) Image processing apparatus and image pickup apparatus using same
JP6164564B1 (en) Image processing apparatus, image processing method, recording medium, program, and imaging apparatus
JP2004241991A (en) Imaging apparatus, image processor, and image processing program
JP4649171B2 (en) Magnification Chromatic Aberration Correction Device, Magnification Chromatic Aberration Correction Method, and Magnification Chromatic Aberration Correction Program
JP5984493B2 (en) Image processing apparatus, image processing method, imaging apparatus, and program
US8031232B2 (en) Image pickup apparatus including a first image formation system and a second image formation system, method for capturing image, and method for designing image pickup apparatus
JP2015088833A (en) Image processing device, imaging device, and image processing method
JP5344648B2 (en) Image processing method, image processing apparatus, imaging apparatus, and image processing program
TWI492187B (en) Method and device for processing a super-resolution image
JP5479187B2 (en) Image processing apparatus and imaging apparatus using the same
JP5528139B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP2015115733A (en) Image processing method, image processing apparatus, imaging apparatus, and image processing program
US20150042782A1 (en) Image processing apparatus, imaging apparatus, microscope system, image processing method, and computer readable recording medium
JP5353945B2 (en) Image processing apparatus, image processing program, and electronic camera
WO2013175816A1 (en) Distance measurement apparatus
JP5334265B2 (en) Chromatic aberration / image distortion correcting apparatus and program therefor
JP5645981B2 (en) Imaging apparatus, image processing apparatus, image processing method, image processing program, and storage medium
JP5425135B2 (en) Image processing method, image processing apparatus, imaging apparatus, and image processing program
JP2014110507A (en) Image processing device and image processing method
JP5503497B2 (en) Image signal processing apparatus, image signal processing method and program
JP5425136B2 (en) Image processing method, image processing apparatus, imaging apparatus, and image processing program
JP6105960B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP5359814B2 (en) Image processing device
JP6051592B2 (en) Image processing apparatus and imaging apparatus
JP6694626B1 (en) Image processing device, image processing method, program, and imaging device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120824

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130617

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130702

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130726

R150 Certificate of patent or registration of utility model

Ref document number: 5334265

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250