JP2017215941A - Image processor and control method thereof - Google Patents
Image processor and control method thereof Download PDFInfo
- Publication number
- JP2017215941A JP2017215941A JP2017061882A JP2017061882A JP2017215941A JP 2017215941 A JP2017215941 A JP 2017215941A JP 2017061882 A JP2017061882 A JP 2017061882A JP 2017061882 A JP2017061882 A JP 2017061882A JP 2017215941 A JP2017215941 A JP 2017215941A
- Authority
- JP
- Japan
- Prior art keywords
- interpolation
- pixels
- linear interpolation
- pixel
- values
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 24
- 238000004364 calculation method Methods 0.000 claims abstract description 66
- 238000012545 processing Methods 0.000 claims abstract description 33
- 238000012937 correction Methods 0.000 claims abstract description 27
- 230000006870 function Effects 0.000 description 9
- 230000014509 gene expression Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 238000003384 imaging method Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Transforming Electric Information Into Light Information (AREA)
Abstract
Description
本発明は、周辺離散座標の画素値から中間座標の画素値を補間演算する技術に関するものである。 The present invention relates to a technique for interpolating a pixel value of an intermediate coordinate from a pixel value of peripheral discrete coordinates.
撮像装置は、被写体からの光を光学レンズを用いてイメージセンサ上に結像させ、イメージセンサにて電気信号に変換する。しかし、レンズの設計時の許容精度や製造時のばらつき精度といった要因により、得られた画像の周辺部において幾何学的な歪み(以下、幾何歪みと省略する)発生しやすい。そして、撮像画素数が数千万画素へ増加することにより、この歪みが無視できないものになってきている。 The imaging apparatus forms an image of light from a subject on an image sensor using an optical lens, and converts the light into an electrical signal using the image sensor. However, geometric distortion (hereinafter abbreviated as “geometric distortion”) tends to occur in the peripheral portion of the obtained image due to factors such as allowable accuracy at the time of designing the lens and variation accuracy at the time of manufacturing. As the number of imaging pixels increases to tens of millions, this distortion cannot be ignored.
一方、撮像した画像を処理・編集して観賞する時に、テレビなどのディスプレイに表示する際には特に問題にならないが、プロジェクタでスクリーンへ投影する際には、次の要因により、またもや幾何学的な歪みが発生することがある。 On the other hand, when processing and editing captured images for viewing on a display such as a television, there is no particular problem. However, when projecting onto a screen with a projector, the following factors can cause geometric problems. Distortion may occur.
ディスプレイとスクリーンとが厳密に正対していないと、長方形が台形や不等辺四角形に変形されて投影されたりする。また、ディスプレイの光学系には、取り付け時の機械精度や、前述の光学レンズに関する精度があり、該精度に起因する画像歪みが発生する。このように、撮像時や投射時における種々の要因で、画像に様々な幾何歪みが重畳していく。 If the display and the screen are not strictly facing each other, the rectangle is transformed into a trapezoid or an unequal square and projected. In addition, the optical system of the display has a mechanical accuracy at the time of attachment and an accuracy related to the optical lens described above, and image distortion due to the accuracy occurs. As described above, various geometric distortions are superimposed on an image due to various factors during imaging and projection.
画像はディスプレイで見る場合とプロジェクタで見る場合の両方が想定されるため、撮像時の幾何歪みは撮像時に補正し、プロジェクタ投影時の幾何歪みは投影時に補正する必要がある。各々の幾何歪みは、デジタル的な画像処理によって軽減することが可能である。 Since an image is assumed to be viewed on both a display and a projector, the geometric distortion at the time of imaging needs to be corrected at the time of imaging, and the geometric distortion at the time of projector projection needs to be corrected at the time of projection. Each geometric distortion can be reduced by digital image processing.
幾何歪みの補正に必要なデータやパラメータの一部は、設計段階のシミュレーションなどから得ることが出来るが、一般的にはキャリブレーションと称する工程から得る。キャリブレーションには様々な手法があり、一つの技術領域となっている。例えば、プロジェクタ投影時の台形歪み補正は、オリジナルの矩形画像を補正無しで投影した時の歪んだ四角形の4つの頂点(四隅)座標を獲得し、該情報から、補正用のホモグラフィ行列を計算することによって、幾何補正に必要なパラメータを得る。 Some of the data and parameters necessary for geometric distortion correction can be obtained from simulation at the design stage, but generally obtained from a process called calibration. There are various methods for calibration, which is one technical area. For example, trapezoidal distortion correction during projector projection obtains the four vertex (four corners) coordinates of a distorted rectangle when the original rectangular image is projected without correction, and calculates a correction homography matrix from this information By doing so, parameters necessary for geometric correction are obtained.
本明細書は、幾何歪み補正に必要なデータやパラメータが、キャリブレーション等によって、既に得られていることを前提とする。つまり、先に説明したようにキャリブレーションには様々な手法があり、そのいずれであるかについては問わない。 This specification is based on the premise that data and parameters necessary for geometric distortion correction have already been obtained by calibration or the like. That is, as described above, there are various methods for calibration, and it does not matter which one is used.
図1に示す幾何歪み補正処理のブロック図において、補正に必要なデータやパラメータは、キャリブレーションにより既に得られており、変換パラメータ保持部101に格納されているものとする。
In the block diagram of the geometric distortion correction process shown in FIG. 1, it is assumed that data and parameters necessary for correction have already been obtained by calibration and stored in the conversion
キャリブレーションがどのような手法であるにせよ、それによる幾何歪み補正は2つの主要な要素で構成される。1つは画像を幾何学的に変形するための座標変換に係る構成要素、もう1つは該構成で発生した小数点以下の座標位置の画素値を補間によって計算するための、座標補間に係る構成要素である。各々は図1の座標変換部103と画素補間部112にて行われる。そして、幾何歪みの補正は図1のブロック図において概略以下のように処理される。
(A1)画像を規則的にスキャンした際の整数座標102を座標変換部103にて変換し、変換座標104を計算する。
(A2)該変換座標に対する補間画素値を画素補間部112にて生成する。
(A3)生成した補間画素値を、前記整数座標102の画素値として画像メモリ113へ格納する。
Whatever the calibration is, the resulting geometric distortion correction is composed of two main elements. One is a component related to coordinate transformation for geometrically deforming an image, and the other is a configuration related to coordinate interpolation for calculating a pixel value at a coordinate position below the decimal point generated by the configuration by interpolation. Is an element. Each is performed by the
(A1) The
(A2) The
(A3) The generated interpolation pixel value is stored in the
変換座標104は一般的に小数部を有する座標データになるため、周辺の整数座標の画素値を画像メモリ111から読み出して参照し補間処理で生成する必要がある。
Since the
代表的な補間方法として、ニアレストネイバー、バイリニア補間、バイキュービック補間などがある。これらを多項式補間の次数という観点で見ると各々、0次補間、1次補間、3次補間に分類される。次数が高いほど補間精度がよくなり画質が向上する。 Typical interpolation methods include nearest neighbor, bilinear interpolation, and bicubic interpolation. From the viewpoint of the degree of polynomial interpolation, these are classified into 0th order interpolation, 1st order interpolation, and 3rd order interpolation, respectively. The higher the order, the better the interpolation accuracy and the better the image quality.
3次補間に分類される他の補間方法として、キュービック・スプライン補間と称する方法があるが、これは名称が示すようにスプライン関数をベースとした補間法である。補間処理時に参照する画素数は、次数に1を加えた値を二乗した、1画素、4画素、16画素となり、概算で該参照画素数に比例した演算量・回路規模となる。 As another interpolation method classified as cubic interpolation, there is a method called cubic spline interpolation, which is an interpolation method based on a spline function as the name indicates. The number of pixels to be referred to at the time of interpolation processing is 1 pixel, 4 pixels, and 16 pixels obtained by squaring the value obtained by adding 1 to the order, and the calculation amount and circuit scale are approximately proportional to the number of reference pixels.
実際に使われる補間処理としては、バイリニア補間またはバイキュービック補間がほとんどであり、画質と回路規模のどちらを優先するかによって、どちらかを選択するケースが多い。すなわち、画質的にはバイキュービック補間を使いたいが、回路規模の制約からバイリニア補間するというケースが少なくない。 Most of the interpolation processing actually used is bilinear interpolation or bicubic interpolation, and there are many cases in which one is selected depending on whether image quality or circuit scale is prioritized. That is, in terms of image quality, it is desirable to use bicubic interpolation, but there are many cases in which bilinear interpolation is performed due to circuit scale limitations.
特許文献1は、1つの補間回路で、バイリニア補間と、バイキュービック補間との両方の機能を実現することで、回路規模の削減を図っているが、バイキュービック補間の回路規模そのものが小さくなるわけではない。
また、特許文献2は、3次補間の1つであるキュービック・スプライン補間を、線形補間演算器を3段縦続に接続した構成で実現できることを示している。しかし、該キュービック・スプライン補間は、参照する4×4画素の重み付け係数を調整する機能が無く、補間回路が使われているシステムに合せて画質を調整することが出来ない。 Patent Document 2 shows that cubic spline interpolation, which is one of cubic interpolation, can be realized with a configuration in which linear interpolation calculators are connected in three stages. However, the cubic spline interpolation does not have a function of adjusting the weighting coefficient of the reference 4 × 4 pixels, and the image quality cannot be adjusted according to the system in which the interpolation circuit is used.
バイキュービック補間には、画質調整が可能なパラメータが存在し、システムに適した画作りが可能である。先行技術のキュービック・スプライン補間の構成法は、バイキュービック補間へ適用することが出来ない。 Bicubic interpolation has parameters that allow image quality adjustment, and image creation suitable for the system is possible. Prior art cubic spline interpolation schemes cannot be applied to bicubic interpolation.
上記をまとめると、バイキュービック補間は画質はよいが回路規模が大きいという問題がある。3板方式のプロジェクタではR,G,Bで異なる幾何補正を行う必要があり、各チャネル毎に幾何補正用の補間回路を有する必要もある。 To summarize the above, bicubic interpolation has a problem that the image quality is good but the circuit scale is large. In a three-plate projector, it is necessary to perform geometric correction different for R, G, and B, and it is also necessary to have an interpolation circuit for geometric correction for each channel.
よって、1つの映像システム内で、幾つもの画素補間処理が必要であり、バイキュービック補間を採用すると、映像システム全体の演算処理が増大してしまう。 Therefore, several pixel interpolation processes are required in one video system, and if bicubic interpolation is employed, the arithmetic processing of the entire video system increases.
この課題を解決するため、例えば本発明の画像処理装置は以下の構成を備える。すなわち、
複数の画素のうち1対の画素の画素値から線形補間によって補間位置の補間画素値を生成する第1の線形補間手段と、
前記複数の画素の画素値間の複数の差分値のうち、それぞれが1対の差分値から線形補間することで複数の補正値を生成する複数の第2の線形補間手段と、
前記補間画素値及び前記複数の補正値に基づいて前記補間位置の画素値を生成する生成手段とを有する。
In order to solve this problem, for example, an image processing apparatus of the present invention has the following configuration. That is,
First linear interpolation means for generating an interpolation pixel value at an interpolation position from a pixel value of a pair of pixels among a plurality of pixels by linear interpolation;
A plurality of second linear interpolation means for generating a plurality of correction values by linearly interpolating each of the plurality of difference values between the pixel values of the plurality of pixels from a pair of difference values;
Generating means for generating a pixel value at the interpolation position based on the interpolation pixel value and the plurality of correction values.
本発明によれば、画像の高画質補間処理としてよく使われる2次元バイキュービック補間のプリミティブな演算である1次元キュービック補間等の補間演算を、乗算器の少ない回路構成で実現することが可能となる。 According to the present invention, it is possible to realize an interpolation operation such as one-dimensional cubic interpolation, which is a primitive operation of two-dimensional bicubic interpolation, which is often used as an image quality high-quality interpolation process, with a circuit configuration with few multipliers. Become.
以下、添付図面に従って本発明に係る実施形態を詳細に説明する。本実施形態では、小数点以下の値をとる座標位置の画素値を、その周辺の2N個の整数座標の画素値から補間計算する画素補間回路に適用した例を説明する。 Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. In the present embodiment, an example will be described in which a pixel value at a coordinate position that takes a value after the decimal point is applied to a pixel interpolation circuit that performs interpolation calculation from pixel values of 2N integer coordinates around it.
具体的には、画素補間回路に、複数の画素のうち1対の画素の画素値から線形補間によって補間位置の補間画素値を生成する第1の線形補間演算器を設ける。そして、複数の画素の画素値間の複数の差分値のうち、それぞれが1対の差分値から線形補間することで複数の補正値を生成する複数の第2の線形補間演算器を設ける。更に、補間画素値及び複数の補正値に基づいて補間位置の画素値を生成する演算器を設けるものである。 Specifically, the pixel interpolation circuit is provided with a first linear interpolation calculator that generates an interpolation pixel value at an interpolation position by linear interpolation from the pixel values of a pair of pixels among a plurality of pixels. Then, a plurality of second linear interpolation calculators are provided that generate a plurality of correction values by performing linear interpolation from a pair of difference values among a plurality of difference values between pixel values of a plurality of pixels. Furthermore, an arithmetic unit that generates a pixel value at the interpolation position based on the interpolation pixel value and a plurality of correction values is provided.
[第1実施形態]
本第1実施形態は、周辺n×n画素の画素値を参照して補間画素を生成する際の補間演算に適用されるものでる。具体的には、垂直または水平軸方向の同一の直線上のn画素単位でn回行う1段目のキュービック補間と、該n個の補間結果を参照して行う2段目のキュービック補間に適用されるものである。
[First Embodiment]
The first embodiment is applied to an interpolation calculation when generating an interpolation pixel with reference to pixel values of surrounding n × n pixels. Specifically, it applies to the first-stage cubic interpolation performed n times in units of n pixels on the same straight line in the vertical or horizontal axis direction, and the second-stage cubic interpolation performed by referring to the n interpolation results. It is what is done.
一般的な4×4画素を参照するバイキュービック補間では、式(1)に基づいて小数点以下の座標位置に対し、参照する画素への荷重係数を各軸方向に4つ、合計8つの係数を計算する。
このように計算すると、|s|2や|s|3の計算に計16回の乗算が必要で、パラメータaに関する乗算も20回あり、8つの係数を計算するだけで合計36回の乗算が必要である。但し、パラメータaのビット数は一般的に少ないため、この乗算の回路規模は小さい。 When calculated in this way, a total of 16 multiplications are required for the calculation of | s | 2 and | s | 3 , and there are 20 multiplications for the parameter a, and a total of 36 multiplications can be obtained simply by calculating 8 coefficients. is necessary. However, since the number of bits of the parameter a is generally small, the circuit scale of this multiplication is small.
該係数を参照画素へ乗算する時、各軸方向に分けて2段階で行う場合、1段階目の係数乗算に16回、2段階目の係数乗算に4回で計20回の乗算が必要になる。 When the coefficient is multiplied to the reference pixel, if it is performed in two stages in each axis direction, 16 times are required for the first stage coefficient multiplication, and 4 times are required for the second stage coefficient multiplication, for a total of 20 times. Become.
トータルで、回路規模の大きな乗算が16+20=36回、回路規模の小さな乗算が20回必要である。 In total, 16 + 20 = 36 multiplications with a large circuit scale and 20 multiplications with a small circuit scale are required.
本実施形態は、式(1)に基づくキュービック補間と同等の補間画素を、上記説明とは異なる方法にて計算することにより、乗算回数を減らし回路規模を小さくするものである。 In the present embodiment, the number of multiplications is reduced and the circuit scale is reduced by calculating interpolation pixels equivalent to cubic interpolation based on Expression (1) by a method different from the above description.
本実施形態のキュービック補間演算では、変換座標(x,y)から整数部を除いた小数部を1次パラメータ(tx,ty)とおき、該パラメータに対して、tx・(1−tx)とty・(1−ty)という2次多項式に基づく2次多項式パラメータを計算する。 In the cubic interpolation calculation of the present embodiment, the decimal part obtained by removing the integer part from the transformed coordinates (x, y) is set as a primary parameter (tx, ty), and tx · (1−tx) is given to the parameter. A quadratic polynomial parameter based on a quadratic polynomial of ty · (1-ty) is calculated.
計算するパラメータは該2つのみであり、それ以外の主要な演算は前記1次パラメータtxまたはtyに基づく線形補間の並列演算である。 There are only two parameters to be calculated, and the other main operations are parallel operations of linear interpolation based on the primary parameter tx or ty.
該2次パラメータの計算と、1次パラメータに基づく線形補間の並列演算は、この明細書に記述される全実施形態に共通する演算である。また、以下に説明する各実施形態において、2次パラメータは計算済みのパラメータとして利用し、その生成方法に関しては省略する。 The calculation of the secondary parameter and the parallel operation of linear interpolation based on the primary parameter are operations common to all the embodiments described in this specification. In each embodiment described below, the secondary parameter is used as a calculated parameter, and the generation method thereof is omitted.
最初である第1の実施形態では、1次パラメータに基づく線形補間の並列演算により、3つの成分信号を生成する。この第1の実施形態の構成を図2に示す。 In the first embodiment, which is the first, three component signals are generated by parallel calculation of linear interpolation based on the primary parameter. The configuration of the first embodiment is shown in FIG.
本第1の実施形態で参照する4画素や後述する他の実施形態で参照する6画素及び8画素の並び順と、補間位置を表す1次パラメータt(補間位置情報)の関係を図11に示す。ここで画素間の単位距離は“1”とする。よって、1次パラメータtは0≦t≦1の関係にあると言える。全実施形態において補間位置はP3とP4の間に定めており、該補間位置に対応する画素値を補間演算により生成する。一般的には、連続して並んだ2N個の画素におけるN番目の画素とN+1番目の画素との間の補間区間内の指定された位置における画素値を補間する。 FIG. 11 shows the relationship between the arrangement order of 4 pixels referred to in the first embodiment and 6 and 8 pixels referred to in other embodiments described later, and the primary parameter t (interpolation position information) representing the interpolation position. Show. Here, the unit distance between the pixels is “1”. Therefore, it can be said that the primary parameter t has a relationship of 0 ≦ t ≦ 1. In all the embodiments, the interpolation position is determined between P 3 and P 4 , and a pixel value corresponding to the interpolation position is generated by interpolation calculation. In general, the pixel value at a specified position in the interpolation section between the Nth pixel and the (N + 1) th pixel in 2N pixels arranged in series is interpolated.
図2に示すキュービック補間演算器の演算内容をまず式で表現する。1次パラメータ“t”と、2入力{Pi,Pj}を入力とする線形補間演算器の演算を式(2)で表した時、図2に示すキュービック補間演算器の出力Poutは式(3)のように表現できる。
ここで参照符号201、202、203は、1次パラメータtに基づいて、1画素離れた2つの画素間(入力信号間)の線形補間演算を行う線形補間演算器であり、各々で1つの成分を生成する。1次パラメータtには、txまたはtyが入力される。
線形補間演算器201は、入力P3、P4に対して、(1−t)・P3+t・P4を計算して出力する。これは、P3とP4を結ぶ直線補間である。実際の演算は乗算が1回で済むよう、線形補間演算器201は、P3+t・(P4−P3)という計算式に基づき演算する。
The
線形補間演算器202,203も図示した入力信号に対し、線形補間演算器201と同様、乗算回数が1回で済むように計算を行う。なお、図示では、「P3-P5」等の、線形補間演算器202、203への入力信号を生成するための減算器は省略している点に注意されたい。
Similarly to the
補間処理前は、整数座標にのみ画素値が定義された離散的な状態であるとすると、線形補間演算器201は、離散値P3とP4を直線的につなぐ成分を生成する。すなわち、線形補間演算器201は離散的な画素値を連続化する成分を生成すると解釈できる。それに対して、線形補間演算器202や203は次のように解釈できる。
If the pixel value is defined only in integer coordinates before the interpolation process, the
隣接する画素値を次々と直線的につないでいくと、その波形はデコボコしたものになり、波形の一次微分が整数座標位置で不連続な波形になる。その一次微分を連続化する成分が、線形補間演算器202で第2の成分として生成される。
When adjacent pixel values are connected linearly one after another, the waveform becomes uneven, and the first derivative of the waveform becomes a discontinuous waveform at integer coordinate positions. A component that makes the first derivative continuous is generated as a second component by the
隣接画素間距離を1とすると、P3からP4方向を見た時の第1成分波形の傾きは「P4−P3」であり、その傾きを打消す信号は「−(P4−P3)」である。同様に、P4からP3方向を見た時の該波形の傾きは「P3−P4」であり、その傾きを打消す信号は「−(P3−P4)」である。 Assuming that the distance between adjacent pixels is 1, the slope of the first component waveform when viewing from the direction P 3 to P 4 is “P 4 −P 3 ”, and the signal for canceling the slope is “− (P 4 − P 3 ) ”. Similarly, the slope of the waveform when viewing from P 4 to P 3 is “P 3 −P 4 ”, and the signal for canceling the slope is “− (P 3 −P 4 )”.
P3における傾き打消し信号とP4における傾き打消し信号を入力とし、それを1次パラメータtに基づいて直線的に切換えるのが線形補間演算器202である。
The
該切換えた信号を直接、線形補間演算器201の出力に加えると、整数座標における値P3,P4が変わってしまうため、t=0,1において、第2の成分が第1の成分に影響を与えないようにする必要がある。これを以下では、実施形態における「境界条件」と表現する。該境界条件を満たすには、第2の成分に前記2次パラメータを乗算するのが必要十分で合理的な方法である。図1における参照符号231は該乗算を行う乗算器である。
If the switched signal is directly added to the output of the
さて、パラメータtに基づく線形補間信号にtに関する2次パラメータを乗算すると、tの3次多項式で表現された信号となる。この特徴は、線形補間演算器203で生成される信号にも共通して言える。よって、線形補間演算器203で生成した信号にも2次パラメータを乗算するよう、加算器221にて第2の成分と第3の成分とを足し合わせ、その後に乗算器231で2次パラメータを乗算する構成にした。
Now, when a linear interpolation signal based on the parameter t is multiplied by a secondary parameter related to t, a signal expressed by a cubic polynomial of t is obtained. This feature can be applied to the signal generated by the
ところで、一次微分を連続化しても二次微分はまだ不連続であり、一次微分の連続化の次は二次微分の連続化が期待される。しかし、4画素を参照するだけで二次微分を連続化する成分を生成することは困難である。だが、二次微分の不連続性を緩和することは可能である。線形補間演算器203は二次微分の不連続性を緩和する第3の成分を生成するものである。
By the way, even if the first derivative is made continuous, the second derivative is still discontinuous, and the second derivative is expected to be continued after the first derivative is made continuous. However, it is difficult to generate a component that makes the second derivative continuous by simply referring to four pixels. However, it is possible to reduce the discontinuity of the second derivative. The
線形補間演算器203における入力信号の特徴は、P4を基点に左右へ1画素ずつ離れたP3とP5の差分信号と、P3を基点に右左へ1画素ずつ離れたP4とP2の差分信号である。
Linear characteristics of the input signal in the
第1の成分と第2の成分の和は、必ず補間区間の両端の画素値P3とP4の範囲内に収まる性質があるが、第3の成分を加えると該範囲を超えることがある。すなわち、第3の成分は、該成分の振幅を調整することにより階調差を強調したり、その逆の効果を出すことができ、画質を調整することが出来る。該第3成分の振幅を調整するために乗算器211にて前記第1の画質調整パラメータKaを乗算する。このパラメータの値は、8/16〜31/16の範囲で十分であり、5ビット程度の係数の乗算器でよい。
The sum of the first component and the second component always has a property of being within the range of the pixel values P 3 and P 4 at both ends of the interpolation interval, but may exceed the range when the third component is added. . In other words, the third component can enhance the gradation difference by adjusting the amplitude of the component, and vice versa, and can adjust the image quality. In order to adjust the amplitude of the third component, the
本第1の実施形態のキュービック補間演算が、式(1)に基づくキュービック補間と数学的に等価になることは、Ka=−aと置いて式を変形すれば確認できる。 It can be confirmed that the cubic interpolation calculation of the first embodiment is mathematically equivalent to the cubic interpolation based on the equation (1) by changing the equation with Ka = -a.
以上に説明した4画素参照のキュービック補間演算器を5つ使って、4行×4列の16画素(P00〜P33)をバイキュービック補間処理する構成を図3に示す。ここで画素Pijの座標を(xi,yj)、補間画素の座標を(x,y)とする。図3に示す構成は、4列の画素データの各列を4つのキュービック補間演算器301〜304で並列に処理する。そして、得られた4つの補間結果をキュービック補間演算器305にて行方向にキュービック補間して、座標(x,y)の補間結果を得る構成である。並列処理する4つのキュービック補間演算器301〜304には、それぞれ同じパラメータ(図示のty、ty・(1−ty)、Ka)が供給される。該構成でパイプライン処理すれば、1サイクル毎にバイキュービック補間演算した画素を生成することが出来る。また、4行×4列の16画素の各行を並列に処理し、補間画素と同じ水平位置である4つの座標位置の補間結果を得て、得られた結果を列方向に補間するようにしてもよい。
FIG. 3 shows a configuration in which bicubic interpolation processing is performed on 16 pixels (P 00 to P 33 ) of 4 rows × 4 columns using five cubic interpolators with 4-pixel reference described above. Here, the coordinates of the pixel P ij are (x i , y j ), and the coordinates of the interpolation pixel are (x, y). In the configuration shown in FIG. 3, four columns of pixel data are processed in parallel by four
[第2の実施形態]
基本周期のsinc関数(補間関数ともいう)に超周期のsinc関数を窓関数として掛けた補間フィルタがある。Lanczos補間と言われているフィルタである。キュービック補間は、このLanczos補間の近似と言われている。
[Second Embodiment]
There is an interpolation filter obtained by multiplying a basic sinc function (also referred to as an interpolation function) by a super-period sinc function as a window function. It is a filter called Lanczos interpolation. Cubic interpolation is said to be an approximation of this Lanczos interpolation.
Lanczosフィルタで拡大補間処理する場合、一軸方向の参照画素数を2nとすると、Lanczos−nのフィルタを用いる。一般的に使われるのは6画素を参照するLanczos−3である。それに対しキュービック補間は4画素参照が基本である。 When performing the enlargement interpolation process using the Lanczos filter, if the number of reference pixels in one axis direction is 2n, a Lanczos-n filter is used. Generally used is Lanczos-3 which refers to 6 pixels. On the other hand, cubic interpolation is based on 4-pixel reference.
キュービック補間の参照画素数を6画素へ拡張するための前記式(1)の荷重係数の計算に対応する式が論文には発表されており、原理的には6画素へ拡張することは可能である。しかしながら、具体的な回路構成を示した資料は今のところ見当たらない。4画素参照に比べ、6つの荷重係数の計算がさらに複雑になるため、あまり実用的ではないと考えられる。 An equation corresponding to the calculation of the weighting factor of the above equation (1) for extending the number of reference pixels for cubic interpolation to 6 pixels has been published in the paper, and in principle it can be expanded to 6 pixels. is there. However, there is no document showing the specific circuit configuration so far. Compared to a 4-pixel reference, the calculation of the six weighting factors is more complicated, which is considered to be less practical.
ところが、本実施形態は、一軸方向のキュービック補間の参照画素数を6画素、8画素へと容易に拡張することが出来る。6画素参照のキュービック補間の回路構成を図4に、8画素参照のキュービック補間の回路構成を図5に示す。 However, in the present embodiment, the number of reference pixels for cubic interpolation in the uniaxial direction can be easily expanded to 6 pixels and 8 pixels. FIG. 4 shows a circuit configuration for cubic interpolation with reference to 6 pixels, and FIG. 5 shows a circuit configuration for cubic interpolation with reference to 8 pixels.
本実施形態による拡張の妥当性は、キュービック補間がLanczos補間の近似であるということを根拠として、本実施形態のキュービック補間がLanczos補間にどれだけ近い特性を実現できているかという点で判断できる。 The validity of the extension according to the present embodiment can be determined in terms of how close the cubic interpolation of the present embodiment is to the Lanczos interpolation based on the fact that the cubic interpolation is an approximation of the Lanczos interpolation.
まずは、拡張の考え方を説明し、その後に、Lanczos補間の特性にどれだけ近いかを示す。拡張にあたっての3つの基本的な考え方を(1)乃至(3)に示す。
(1)新たな信号成分は、前記境界条件を満たすように前記2次パラメータを乗算する。
(2)新たな信号成分は、3次多項式となるよう初段に線形補間演算を行う。
(3)第3の線形補間演算器の入力信号の形態を踏襲し、P3及びP4を基点に左右に等距離だけ離れた2画素間の差分信号を、上記線形補間演算へ入力する。
First, the concept of expansion will be described, and then how close to the characteristics of Lanczos interpolation will be shown. Three basic ideas for expansion are shown in (1) to (3).
(1) The new signal component is multiplied by the secondary parameter so as to satisfy the boundary condition.
(2) The linear interpolation calculation is performed at the first stage so that the new signal component becomes a cubic polynomial.
(3) Following the form of the input signal of the third linear interpolation calculator, a difference signal between two pixels that are equidistant from the left and right from P 3 and P 4 is input to the linear interpolation calculation.
図4に示す6画素参照のキュービック補間演算器では、並列に動作する第4の線形補間演算器204を設け、該演算器へ入力する2つの画素間差分信号を次のように計算する。
The cubic interpolator with 6 pixels shown in FIG. 4 includes a fourth linear interpolation
1つは、P4画素を基点に左右へ2画素分離れた2つの画素間の差分「P2−P6」であり、もう1つは、P3画素を基点に右左へ2画素分離れた2つの画素間の差分「P5−P1」である。これらを第4の線形補間演算器204に入力して線形補間演算し、該出力に第2の画質調整パラメータKbを乗算して、加算器222にて他の信号と合算した後に前記2次パラメータを乗算する。
One is a difference “P 2 −P 6 ” between two pixels separated left and right from the P 4 pixel as a base point, and the other is two pixels separated right and left from the P 3 pixel as a base point. The difference between the two pixels is “P 5 −P 1 ”. These are input to the fourth
また、図5に示す8画素参照のキュービック補間演算器では、図4の6画素参照のキュービック補間演算器へ、さらに並列に動作する第5の線形補間演算器205を設け、該線形補間演算器205へ入力する2つの画素間差分信号を次のように計算する。
In addition, the 8-pixel reference cubic interpolation calculator shown in FIG. 5 is provided with a fifth
1つは、P4画素を基点に左右へ3画素分離れた2つの画素間の差分「P1−P7」であり、もう1つは、P3画素を基点に右左へ3画素分離れた2つの画素間の差分「P6−P0」である。これらを第5の線形補間演算器205に入力して線形補間演算し、該出力に第3の画質調整パラメータKcを乗算して、加算器223にて他の信号と合算した後に前記2次パラメータを乗算する。同様に、基点から左右に同じ画素数だけ離れた、2,4,…,2・(N−1)画素だけ離れた画素の画素値間の差分を用いて、参照する画素を更に拡張することも容易にできる。
One is a difference “P 1 -P 7 ” between two pixels separated by 3 pixels left and right with the P 4 pixel as the base point, and the other is 3 pixels right and left with the P 3 pixel as the base point. The difference between the two pixels is “P 6 −P 0 ”. These are input to the fifth
以上で説明した図4及び図5に示すキュービック補間演算器の各々の出力Poutを数式で表現すると、式(4)、式(5)のようになる。
図4に示す6画素参照のキュービック補間において、2つの画質調整パラメータを、Ka=14/16,Kb=−3/16に設定した時のインパルス応答を、Lanczos−3と比較したのが図6に示す波形である。 In the cubic interpolation with 6-pixel reference shown in FIG. 4, the impulse response when the two image quality adjustment parameters are set to Ka = 14/16 and Kb = -3 / 16 is compared with Lanczos-3. The waveform shown in FIG.
また、図5に示す8画素参照のキュービック補間において、3つの画質調整パラメータを、Ka=31/32,Kb=−12/32,Kc=3/32に設定した時のインパルス応答を、Lanczos−4と比較したのが図7に示す波形である。 In the cubic interpolation with 8-pixel reference shown in FIG. 5, the impulse response when the three image quality adjustment parameters are set to Ka = 31/32, Kb = −12 / 32, and Kc = 3/32 The waveform shown in FIG.
画質調整パラメータ群を適切に設定すると、Lanczos−3、Lanczos−4に近い補間フィルタ特性を実現できることが分かる。さらに、実際の使用にあたっては、該パラメータ値を基にして、画質を確認しながらパラメータを調整してシステムに最適化することが可能である。 It can be seen that interpolation filter characteristics close to Lanczos-3 and Lanczos-4 can be realized by appropriately setting the image quality adjustment parameter group. Further, in actual use, it is possible to optimize the system by adjusting the parameters while confirming the image quality based on the parameter values.
Lanczos補間フィルタは参照画素数に対応してフィルタ係数が一意に決まり、画質調整を行うことが出来ないのに対して、本第2の実施形態のキュービック補間なら容易に画質調整が可能であり、これは大きな利点である。 In the Lanczos interpolation filter, the filter coefficient is uniquely determined in accordance with the number of reference pixels and image quality adjustment cannot be performed. On the other hand, the cubic interpolation of the second embodiment allows easy image quality adjustment. This is a great advantage.
[第3の実施形態]
上記第1の実施形態は、画素補間演算の基本的な考え方を直接回路化したものであるため、最も分かり易い構成になっている。
[Third Embodiment]
In the first embodiment, since the basic idea of pixel interpolation calculation is directly circuitized, the configuration is most easily understood.
第3の実施形態は、第1の実施形態の計算式を少し変形して、第1の実施形態と等価な演算を、より少ない乗算器で実現するものである。 In the third embodiment, the calculation formula of the first embodiment is slightly modified to realize an operation equivalent to that of the first embodiment with fewer multipliers.
具体的には、第1の線形補間演算器201の内部演算結果を利用することによって、第2の線形補間演算器202を使わずに、第2の成分を生成する。具体的な構成を図8に示す。
Specifically, by using the internal calculation result of the first
図2における第2の線形補間演算器202は、「−(P4−P3)」と「−(P3−P4)」をパラメータtに基づいて線形補間するもので、その演算結果は、「(2t−1)・(P4−P3)」と表せる。
The second
第1実施形態にて、第1の線形補間演算器201の実際の演算は、乗算が1回で済むよう、「t・(P4−P3)+P3」という計算式で演算する、と述べた。
In the first embodiment, the actual calculation of the first
該演算の過程で、第1の線形補間演算器201が「(P4−P3)」と「t・(P4−P3)」を計算するのは明らかであり、この内部演算の信号を利用することができる。シフト演算器301により、後者「t・(P4−P3)」を2倍、すなわち左へ1ビットシフトして、減算器302により「(P4−P3)」を減算すれば、「(2t−1)・(P4−P3)」を得ることができる。よって、乗算器を有する第2の線形補間演算器を使わなくても済む。
It is obvious that the first
本第3の実施形態で示した構成は、第2の実施形態や次に説明する第4の実施形態にも適用できる。 The configuration shown in the third embodiment can be applied to the second embodiment and the fourth embodiment to be described next.
[第4の実施形態]
前記第1、第2の実施形態における、第3の線形補間演算器203の入力は、2画素離れた画素間の差分値であり、第4の線形補間演算器204の入力は、4画素離れた画素間の差分値であった。これらは、いずれも画素間差分、すなわち一次微分をとる2画素の距離を変えただけであると言える。
[Fourth Embodiment]
In the first and second embodiments, the input of the third
このような構成は、n画素参照のキュービック補間演算器をn+2画素参照のキュービック補間演算器に拡張する際に、その構成上の差分を最小にするのに適している。しかし、各線形補間演算器の入力は、第1、第2の実施形態の形態に限定されるものではない。 Such a configuration is suitable for minimizing a difference in configuration when an n-pixel reference cubic interpolation calculator is expanded to an n + 2 pixel-reference cubic interpolation calculator. However, the input of each linear interpolation calculator is not limited to the form of the first and second embodiments.
例えば、第2の線形補間演算器の入力を参照画素値の一次微分信号と解釈し、第3の線形補間演算器へ参照画素値の二次微分信号を入力し、第4の線形補間演算器へ参照画素値の三次微分信号を入力することも可能である。そうすると、各線形補間演算器で生成する信号成分の意味付けも変わってくる。 For example, the input of the second linear interpolation calculator is interpreted as the primary differential signal of the reference pixel value, the secondary differential signal of the reference pixel value is input to the third linear interpolation calculator, and the fourth linear interpolation calculator It is also possible to input the third derivative signal of the reference pixel value. Then, the meaning of the signal component generated by each linear interpolation calculator also changes.
具体的には、図9に示すように第3の線形補間演算器203に、二次微分信号として、(P4−P5)−(P3−P4)=2・P4−P3−P5と、(P3−P2)−(P4−P3)=2・P3−P4−P2とを入力する。
Specifically, as shown in FIG. 9, the third
そして、第4の線形補間演算器204に、三次微分信号として、(2・P5−P6−P4)−(2・P3−P4−P2)=P2−2・(P3−P5)−P6と、(2・P2−P1−P3)−(2・P4−P3−P5)=P5−2・(P4−P2)−P1とを入力する。
Then, the fourth
この場合、各成分の振幅を調整するパラメータは、第1、第2の実施形態とは異なる別のパラメータR1,R2,R3を乗算する。具体的な値として、R1=0,R2=8/16,R3=−3/16に設定すると図6に示すインパルス応答特性、すなわちLanczos−3に近い特性になる。 In this case, the parameter for adjusting the amplitude of each component is multiplied by different parameters R 1 , R 2 and R 3 different from those in the first and second embodiments. As specific values, when R 1 = 0, R 2 = 8/16, and R 3 = −3 / 16, the impulse response characteristics shown in FIG. 6, that is, characteristics close to Lanczos-3 are obtained.
[第5の実施形態]
図4の構成では、前記二次パラメータを乗算する前の線形補間演算器は3つあるが、これらは1つにまとめることができる。
[Fifth Embodiment]
In the configuration of FIG. 4, there are three linear interpolation calculators before multiplication by the secondary parameter, but these can be combined into one.
パラメータtに基づく線形補間演算、画質調整パラメータの乗算、加算処理は、どれも線形演算であるため、演算順序を交換することができる。そこで、線形補間演算を加算処理の後に移動し、処理順序を、画質調整パラメータの乗算、加算処理、線形補間演算に変更する。 Since the linear interpolation calculation based on the parameter t, the multiplication of the image quality adjustment parameter, and the addition process are all linear calculations, the calculation order can be exchanged. Therefore, the linear interpolation calculation is moved after the addition processing, and the processing order is changed to multiplication of image quality adjustment parameters, addition processing, and linear interpolation calculation.
これにより、複数の線形補間演算を1つにまとめることができ、図10に示す構成にすることが可能である。図10において、演算器501と502は、入力信号に重み付けをして加算する重み付け加算器であり、演算器503が1つにまとめた線形補間演算器である。それ以外は、第2の実施形態の図4と同じである。
Thereby, a plurality of linear interpolation operations can be combined into one, and the configuration shown in FIG. 10 can be obtained. In FIG. 10,
入力信号に対する重み付けは、第2の実施形態の図4における画質調整パラメータKa,Kbを反映したもので、図10の構成は、図4の構成と機能的に等価である。 The weighting for the input signal reflects the image quality adjustment parameters Ka and Kb in FIG. 4 of the second embodiment, and the configuration of FIG. 10 is functionally equivalent to the configuration of FIG.
また、図5に示す8画素参照キュービック補間にも、本第5の実施形態の手法を適用することができる。すなわち、重み付け加算器501と502を、8画素入力に拡張し、画質調整パラメータKcを反映した重み付けを行えばよい。
The method of the fifth embodiment can also be applied to the 8-pixel reference cubic interpolation shown in FIG. That is, the
[第6の実施形態]
これまでに説明した3つのキュービック補間式、式(3)〜(5)における、画素間の差分信号の線形補間演算は、差分演算と線形補間演算の順序を入れ替えることで、画素間の線形補間信号の差分演算に置き換えることができる。この時、線形補間は画素の添え字の和が7となる2画素をペアとした画素間で行うようにする。これは補間区間(実施形態では画素P3とP4の間)を中心に対称位置関係にある2画素間で線形補間演算を行うためである。
[Sixth Embodiment]
The linear interpolation calculation of the difference signal between the pixels in the three cubic interpolation formulas (3) to (5) described so far can be performed by switching the order of the difference calculation and the linear interpolation calculation. It can be replaced with signal difference calculation. At this time, the linear interpolation is performed between the pixels in which two pixels whose sum of the subscripts of the pixel is 7 are paired. This is because linear interpolation calculation is performed between two pixels having a symmetrical positional relationship with an interpolation interval (between the pixels P3 and P4 in the embodiment) as a center.
上記の演算順序の入れ替えを、式(3)、式(4)、式(5)に適用すると、これらは次式(6)、式(7)、式(8)のように変形できる。
式(6)と(7)は、式(8)の一部を切り出した形になっている。そこで、代表して式(8)の演算回路の構成を図12に示す。同図において、参照符号601〜607は線形補間演算器、参照符号611〜617は減算器であり、それ以外の構成要素は、第2の実施形態の図5における同一参照符号の構成要素と同じである。
Expressions (6) and (7) are obtained by cutting out a part of Expression (8). Therefore, as a representative, the configuration of the arithmetic circuit of Expression (8) is shown in FIG. In the figure, reference numerals 601 to 607 are linear interpolation calculators,
式(8)をそのまま単純に演算回路化すると、線形補間演算器の数が4個から7個へ2倍弱に増加してしまうことが図12の構成から分かる。この構成のままでは、線形補間演算器で使う乗算器の数が増加することになるため、回路規模も大きくなってしまう。 It can be seen from the configuration of FIG. 12 that if equation (8) is simply converted into an arithmetic circuit, the number of linear interpolation calculators increases from four to seven slightly less than twice. With this configuration, the number of multipliers used in the linear interpolation calculator increases, and the circuit scale also increases.
ところで、画素P4とP3を入力とする線形補間と、該入力を相互に交換したP3とP4の線形補間とを加算した結果は、補間位置に依らずP3+P4に一定という関係がある。この関係を利用して乗算器を削減したキュービック補間演算の回路構成を以下に示す。 Incidentally, a linear interpolation of the input pixel P 4 and P 3, the linear interpolation and the result of adding the of P 3 and P 4 replacing the input with each other, that constant P 3 + P 4 regardless of the interpolation position There is a relationship. A circuit configuration of cubic interpolation calculation using this relationship and having reduced multipliers is shown below.
ここで、線形補間演算器の2入力を相互に交換する前と交換した後の2つの線形補間値を線形補間対と表現し、該線形補間対を演算する演算部を線形補間対演算部と表現する。 Here, two linear interpolation values before and after the two inputs of the linear interpolation calculator are exchanged are expressed as a linear interpolation pair, and an arithmetic unit that calculates the linear interpolation pair is expressed as a linear interpolation pair arithmetic unit. Express.
図12において、線形補間演算器601と602、603と604、605と606の3対が線形補間対演算部となっている。
In FIG. 12, three pairs of
各線形補間対演算部は、次に示す式(9)のように演算すると乗算を2回から1回に減らすことができる。また、2つの式の右辺を加算するとPi+Pjになることが分かる。
上記のように計算すると、tを乗算した項の演算までを共通化でき、その後に加算と減算を各々1回行うだけで、該線形補間対を演算することができる。そして、通常の線形補間演算器に減算器を1つ追加しただけの回路規模で線形補間対を演算し生成することができるため大変効率的である。
該演算部を線形補間対演算器という1つの演算器として表現し直したのが図13に示す構成である。同図における、参照符号621,622,623の3つは、式(9)の演算を行う線形補間対演算器である。
When the calculation is performed as described above, the calculation up to the term multiplied by t can be made common, and then the linear interpolation pair can be calculated only by performing addition and subtraction once. Since a linear interpolation pair can be calculated and generated with a circuit scale in which only one subtractor is added to a normal linear interpolation calculator, it is very efficient.
The configuration shown in FIG. 13 is a representation of the calculation unit as a single calculation unit called a linear interpolation pair calculation unit. Three
上記式(9)は次に示す式(10)のように計算してもよい。
さらに、画質調整パラメータ乗算器211〜213で乗算するパラメータの符号を反転した場合、減算器615〜617も加算器に置き換える必要がある。
Furthermore, when the sign of the parameter to be multiplied by the image quality
このように減算器611〜617は、前段の演算やパラメータの符号の取り方によって、加算器に置き換える類のものであり、演算回路全体がキュービック補間演算として機能するように演算器の種類を定める必要がある。
As described above, the
一例として、式(10)の演算を行う線形補間対演算器631を用いて式(6)の補間演算を行う4画素参照のキュービック補間演算回路の構成を図14に示す。同図において、加算器641,642は図13における減算器611,612を置き換えたものである。
As an example, FIG. 14 illustrates a configuration of a 4-pixel reference cubic interpolation calculation circuit that performs the interpolation calculation of Expression (6) using the linear interpolation
第1、第2の実施形態の構成では、線形補間演算に要する乗算器の数をさらに減らすには、第3の実施形態の技術を併用する必要があった。一方、式(8)と式(9)に基づく本第6の実施形態の図13の構成は、第2の実施形態に第3の実施形態を併用した時の乗算器の数と同じになる。 In the configurations of the first and second embodiments, it is necessary to use the technique of the third embodiment together in order to further reduce the number of multipliers required for the linear interpolation calculation. On the other hand, the configuration of FIG. 13 of the sixth embodiment based on the equations (8) and (9) is the same as the number of multipliers when the third embodiment is used in combination with the second embodiment. .
以上では、キュービック補間、それを2次元画素に適用したバイキュービック補間を、ハードウェアによる実現方法について詳しく説明したが、全ての演算はソフトウェア処理に置き換えることが可能である。この場合、情報処理装置などの装置の制御を司るプロセッサは、そのソフトウェアを実行した場合、各実施形態で示したブロック図における演算器等を関数やプロシージャとして実行することになる。従って、本発明は、ソフトウェアの演算によるキュービック補間演算方法としても利用できる。 Although the cubic interpolation and the bicubic interpolation in which the cubic interpolation is applied to the two-dimensional pixel have been described in detail above in terms of hardware implementation, all operations can be replaced with software processing. In this case, when the processor that controls the apparatus such as the information processing apparatus executes the software, the processor in the block diagram shown in each embodiment is executed as a function or procedure. Therefore, the present invention can also be used as a cubic interpolation calculation method by software calculation.
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in the computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
201,202,203,204,205,503…線形補間演算器、301,302,303,304,305…キュービック補間演算器、211,212,213…画質調整パラメータ乗算器、231…2次パラメータ乗算器、601,602,603,604,605,606,607…・線形補間演算器、621,622,623,631…線形補間対演算器 201, 202, 203, 204, 205, 503 ... linear interpolation calculator, 301, 302, 303, 304, 305 ... cubic interpolation calculator, 211, 212, 213 ... image quality adjustment parameter multiplier, 231 ... secondary parameter multiplication , 601, 602, 603, 604, 605, 606, 607... Linear interpolation operator, 621, 622, 623, 631.
Claims (12)
前記複数の画素の画素値間の複数の差分値のうち、それぞれが1対の差分値から線形補間することで複数の補正値を生成する複数の第2の線形補間手段と、
前記補間画素値及び前記複数の補正値に基づいて前記補間位置の画素値を生成する生成手段と
を有することを特徴とする画像処理装置。 First linear interpolation means for generating an interpolation pixel value at an interpolation position from a pixel value of a pair of pixels among a plurality of pixels by linear interpolation;
A plurality of second linear interpolation means for generating a plurality of correction values by linearly interpolating each of the plurality of difference values between the pixel values of the plurality of pixels from a pair of difference values;
An image processing apparatus comprising: generating means for generating a pixel value at the interpolation position based on the interpolation pixel value and the plurality of correction values.
1画素だけ離れた画素の画素値間の差分値に対する線形補間と、
各々2,4,…,2・(N−1)画素だけ離れた画素の画素値間の差分値に対する線形補間とを用いて前記複数の補正値を生成することを特徴とする請求項1記載の画像処理装置。 The plurality of pixels are 2N pixels, and the plurality of second linear interpolation means include:
Linear interpolation for a difference value between pixel values of pixels separated by one pixel;
2. The plurality of correction values are generated using linear interpolation with respect to a difference value between pixel values of pixels that are separated from each other by 2, 4,..., 2 · (N−1) pixels. Image processing apparatus.
前記複数の列のそれぞれにおいて、該列の複数の画素の画素値から前記求める位置と同じ垂直位置の画素値を請求項1記載の画像処理装置により生成し、
前記複数の列のそれぞれについて当該生成された画素値から請求項1記載の画像処理装置により前記求める位置の画素値を生成することを特徴とする画像処理装置。 An image processing device that generates a pixel value at a position to be obtained from a plurality of pixels arranged in a plurality of rows and columns,
In each of the plurality of columns, the pixel value at the same vertical position as the position to be obtained is generated from the pixel values of the plurality of pixels in the column by the image processing device according to claim 1,
The image processing apparatus according to claim 1, wherein the pixel value at the position to be obtained is generated by the image processing apparatus according to claim 1 from the generated pixel value for each of the plurality of columns.
前記複数の行のそれぞれにおいて、該行の複数の画素の画素値から前記求める位置と同じ水平位置の画素値を請求項1記載の画像処理装置により生成し、
前記複数の行のそれぞれについて当該生成された画素値から請求項1記載の画像処理装置により前記求める位置の画素値を生成することを特徴とする画像処理装置。 An image processing device that generates a pixel value at a position to be obtained from a plurality of pixels arranged in a plurality of rows and columns,
In each of the plurality of rows, the pixel value at the same horizontal position as the obtained position is generated from the pixel values of the plurality of pixels in the row by the image processing device according to claim 1,
The image processing apparatus according to claim 1, wherein the pixel value at the obtained position is generated by the image processing apparatus according to claim 1 from the generated pixel value for each of the plurality of rows.
前記補間区間に関し対称位置関係にある2画素に対し、線形補間値を生成する第1の線形補間演算手段と、
前記補間区間に関し対称位置関係にある2画素に対し、2種の線形補間値を生成する第2の線形補間演算手段と、
前記第1、第2の線形補間演算手段の出力間で加減演算した値を生成する加減演算手段と、
前記加減演算手段で生成した値に、前記補間区間の境界条件に関するパラメータを乗算する手段と
を有することを特徴とする画像処理装置。 An image processing apparatus that generates a pixel value at an interpolation position specified in an interpolation section between an Nth pixel and an N + 1th pixel from pixel values of 2N consecutive pixels,
First linear interpolation calculation means for generating a linear interpolation value for two pixels having a symmetrical positional relationship with respect to the interpolation section;
Second linear interpolation calculation means for generating two types of linear interpolation values for two pixels having a symmetrical positional relationship with respect to the interpolation section;
Addition / subtraction operation means for generating a value obtained by adding / subtracting between outputs of the first and second linear interpolation operation means;
An image processing apparatus comprising: means for multiplying the value generated by the addition / subtraction calculation means by a parameter relating to a boundary condition of the interpolation section.
前記2N個の画素の両端の画素を除くN−1組の対称位置関係にある2画素の各組に対し、該組の画素値の線形補間値と、該組の2画素を入れ替えた組の画素値の線形補間値との2種の線形補間値を生成する
ことを特徴とする請求項8に記載の画像処理装置。 The second linear interpolation calculation means includes:
For each set of 2 pixels in the N-1 symmetric positional relationship excluding the pixels at both ends of the 2N pixels, a linear interpolation value of the pixel value of the set and a set obtained by replacing the two pixels of the set The image processing apparatus according to claim 8, wherein two types of linear interpolation values with a linear interpolation value of a pixel value are generated.
第1の線形補間手段が、複数の画素のうち1対の画素の画素値から線形補間によって補間位置の補間画素値を生成する工程と、
複数の第2の線形補間手段が、前記複数の画素の画素値間の複数の差分値のうち、それぞれが1対の差分値から線形補間することで複数の補正値を生成する工程と、
生成手段が、前記補間画素値及び前記複数の補正値に基づいて前記補間位置の画素値を生成する工程と
を有することを特徴とする画像処理装置の制御方法。 A control method for an image processing apparatus, comprising:
A first linear interpolation means for generating an interpolation pixel value at an interpolation position by linear interpolation from a pixel value of a pair of pixels among a plurality of pixels;
A plurality of second linear interpolation means generating a plurality of correction values by linearly interpolating each of a plurality of difference values between pixel values of the plurality of pixels from a pair of difference values;
And a generation unit configured to generate a pixel value at the interpolation position based on the interpolation pixel value and the plurality of correction values.
第1の線形補間演算手段が、前記補間区間に関し対称位置関係にある2画素に対し、線形補間信号を生成する第1の線形補間演算工程と、
第2の線形補間演算手段が、前記補間区間に関し対称位置関係にある2画素に対し、2種の線形補間値を生成する第2の線形補間演算工程と、
加減演算手段が、前記第1、第2の線形補間演算手段の出力間で加減演算した値を生成する加減演算工程と、
乗算手段が、前記加減演算工程で生成した値に、前記補間区間の境界条件に関するパラメータを乗算する工程と
を有することを特徴とする画像処理装置の制御方法。 A control method of an image processing apparatus for generating a pixel value at an interpolation position designated in an interpolation section between an Nth pixel and an N + 1th pixel from pixel values of 2N consecutive pixels,
A first linear interpolation calculation step for generating a linear interpolation signal for two pixels having a symmetrical positional relationship with respect to the interpolation section;
A second linear interpolation calculation step in which a second linear interpolation calculation means generates two types of linear interpolation values for two pixels having a symmetrical positional relationship with respect to the interpolation section;
An addition / subtraction calculation step in which an addition / subtraction calculation means generates a value obtained by adding / subtracting between outputs of the first and second linear interpolation calculation means;
And a multiplication unit multiplying the value generated in the addition / subtraction operation step by a parameter related to a boundary condition of the interpolation section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/604,962 US10424055B2 (en) | 2016-05-27 | 2017-05-25 | Image processing apparatus and method for controlling the same |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016106713 | 2016-05-27 | ||
JP2016106713 | 2016-05-27 |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017215941A true JP2017215941A (en) | 2017-12-07 |
JP6974954B2 JP6974954B2 (en) | 2021-12-01 |
Family
ID=60577077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017061882A Active JP6974954B2 (en) | 2016-05-27 | 2017-03-27 | Image processing device and its control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6974954B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3483224A1 (en) | 2017-11-08 | 2019-05-15 | Tokyo Ohka Kogyo Co., Ltd. | Homogeneous coating solution and production method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004048112A (en) * | 2002-07-08 | 2004-02-12 | Sharp Corp | Interpolation processing method, interpolation processing program and recording medium with the same recorded thereon, and image processor and image forming apparatus provided with the same |
JP2007087258A (en) * | 2005-09-26 | 2007-04-05 | Dainippon Printing Co Ltd | Interpolation arithmetic unit |
WO2009130820A1 (en) * | 2008-04-21 | 2009-10-29 | シャープ株式会社 | Image processing device, display, image processing method, program, and recording medium |
-
2017
- 2017-03-27 JP JP2017061882A patent/JP6974954B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004048112A (en) * | 2002-07-08 | 2004-02-12 | Sharp Corp | Interpolation processing method, interpolation processing program and recording medium with the same recorded thereon, and image processor and image forming apparatus provided with the same |
JP2007087258A (en) * | 2005-09-26 | 2007-04-05 | Dainippon Printing Co Ltd | Interpolation arithmetic unit |
WO2009130820A1 (en) * | 2008-04-21 | 2009-10-29 | シャープ株式会社 | Image processing device, display, image processing method, program, and recording medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3483224A1 (en) | 2017-11-08 | 2019-05-15 | Tokyo Ohka Kogyo Co., Ltd. | Homogeneous coating solution and production method thereof |
Also Published As
Publication number | Publication date |
---|---|
JP6974954B2 (en) | 2021-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7881563B2 (en) | Distortion correction of images using hybrid interpolation technique | |
JP5914045B2 (en) | Image processing apparatus, image processing method, and program | |
JP4351394B2 (en) | Non-linear and linear methods for enlarging or reducing image resolution conversion | |
KR100525425B1 (en) | Image warping method and apparatus | |
US6496609B1 (en) | Hybrid-linear-bicubic interpolation method and apparatus | |
JP2019120749A (en) | Display controller, image projection system, control method and program | |
JP4317619B2 (en) | Image processing device | |
JP2001086522A (en) | Image processor | |
JP4317624B2 (en) | Image processing device | |
US10424055B2 (en) | Image processing apparatus and method for controlling the same | |
JP7346039B2 (en) | Data processing device, data processing method, and program | |
JP6974954B2 (en) | Image processing device and its control method | |
US20070121126A1 (en) | Image conversion apparatus and image conversion method | |
JP2018120536A (en) | Data interpolation apparatus and method therefor, and image processing apparatus | |
JP2807262B2 (en) | Discretized density conversion method of discretized multilevel signal | |
Zemčík et al. | Accelerated image resampling for geometry correction | |
JP5387289B2 (en) | Image processing apparatus, image processing method and program thereof | |
KR100510685B1 (en) | Apparatus for anti-aliasing in backward mapping algorithm | |
JP7500254B2 (en) | Data processing device and control method thereof | |
JP2021189458A (en) | Device, method, and program | |
JP5387288B2 (en) | Image processing apparatus, image processing method and program thereof | |
US20130330018A1 (en) | Image processing apparatus and image processing method | |
JP5085589B2 (en) | Image processing apparatus and method | |
KR20040093206A (en) | Image distortion compensation method and apparatus | |
JP2002190948A (en) | Picture processor and picture processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200326 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20210103 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210113 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210416 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210609 |
|
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: 20211008 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20211105 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6974954 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |