JP4431948B2 - A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function - Google Patents
A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function Download PDFInfo
- Publication number
- JP4431948B2 JP4431948B2 JP2003363235A JP2003363235A JP4431948B2 JP 4431948 B2 JP4431948 B2 JP 4431948B2 JP 2003363235 A JP2003363235 A JP 2003363235A JP 2003363235 A JP2003363235 A JP 2003363235A JP 4431948 B2 JP4431948 B2 JP 4431948B2
- Authority
- JP
- Japan
- Prior art keywords
- coordinate
- image
- tilt
- correction
- pixel
- 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.)
- Expired - Fee Related
Links
- 238000012937 correction Methods 0.000 title claims description 143
- 238000000034 method Methods 0.000 title claims description 41
- 230000009466 transformation Effects 0.000 claims description 25
- 230000014509 gene expression Effects 0.000 claims description 23
- 238000006243 chemical reaction Methods 0.000 claims description 22
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 description 23
- 230000006870 function Effects 0.000 description 12
- 230000015654 memory Effects 0.000 description 8
- 238000007781 pre-processing Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 239000007788 liquid Substances 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- GGCZERPQGJTIQP-UHFFFAOYSA-N sodium;9,10-dioxoanthracene-2-sulfonic acid Chemical compound [Na+].C1=CC=C2C(=O)C3=CC(S(=O)(=O)O)=CC=C3C(=O)C2=C1 GGCZERPQGJTIQP-UHFFFAOYSA-N 0.000 description 2
- 230000007723 transport mechanism Effects 0.000 description 2
- 240000004050 Pentaglottis sempervirens Species 0.000 description 1
- 235000004522 Pentaglottis sempervirens Nutrition 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000001678 irradiating effect Effects 0.000 description 1
- 230000007935 neutral effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000000087 stabilizing effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 238000009966 trimming Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Description
発明は、あおり歪みを有する撮影画像を補正するあおり補正方法、そのような方法をコンピュータに実行させるプログラム、及びそのようなあおり補正機能を備えた写真プリント装置に関する。 The present invention relates to a tilt correction method for correcting a photographed image having tilt distortion, a program for causing a computer to execute such a method, and a photo printing apparatus having such a tilt correction function.
写真撮影において、風景写真において特に広角レンズなどを用いて地上から高層ビルを撮影すると上層ほど遠近感により小さく写ることから高層ビルが傾いたような撮影画像となったり、商品撮影において比較的小さな被写体であっても鳥瞰的な商品写真を得るため上方から近づいて撮影してもカメラから遠い部分ほど小さくなることからやはり視覚的な印象以上に台形的に歪んだ撮影画像となることがある。このような撮影画像の歪みは台形歪み又はあおり歪みと呼ばれるが、このような歪みを避けるためには、従来、シフトレンズなどの特殊なレンズを装着する必要があった。 In photography, especially when shooting a high-rise building from the ground using a wide-angle lens etc. in a landscape photograph, the upper layer will appear smaller due to perspective, resulting in a shot image in which the high-rise building is tilted, or a relatively small subject in product photography However, in order to obtain a bird's-eye view of the product photograph, even if the photograph is taken from above, the portion farther from the camera becomes smaller, so that the photographed image may be trapezoidally distorted more than the visual impression. Such distortion of the captured image is called trapezoidal distortion or tilt distortion. Conventionally, in order to avoid such distortion, it has been necessary to attach a special lens such as a shift lens.
近年、デジタルカメラによる撮影画像は当然ながら、銀塩フィルムを用いた従来型カメラによる撮影画像もフィルムから光電変換を受けてデジタルデータ化されていることから、このあおり歪みをデジタル画像処理を用いて補正することが提案されている。 In recent years, of course, images taken with a digital camera are naturally converted into digital data by photoelectric conversion from a film using a conventional camera using a silver salt film. It has been proposed to correct.
その1つとして、モニタに表示された原画像から、本来的には地上に垂直でかつ互いに平行となるべき2つの傾斜直線を2つの端点を指定することにより指定し、指定された直線の中点を通る垂直線に傾斜直線の両端点を投影することによって得られる両端点に対応する2つの対応点の座標を各傾斜直線毎に求め、傾斜直線の両端点が上述した対応点に変換されるような透視変換行列を求め、この透視変換行列に基づいて原画像を透視変換することで、あおり補正画像を作り出しているものがある(例えば、特許文献1参照。)。このようなあおり補正技術では、本来的には地上に垂直でかつ互いに平行となるべき2本の傾斜直線さえモニタ上で指示すれば、後は自動的にあおり補正画像が作り出されるという簡便さがあるが、一般的な風景写真や商品写真においてあおり歪みによって本来は平行となるべき2つ傾斜直線を見つけ出すことはそれほど簡単ではない。特に風景写真では実質的に不可能である。 As one of them, from the original image displayed on the monitor, two inclined straight lines that should be essentially perpendicular to the ground and parallel to each other are specified by specifying two end points, and within the specified straight lines. The coordinates of two corresponding points corresponding to the two end points obtained by projecting the two end points of the inclined straight line on the vertical line passing through the points are obtained for each inclined straight line, and the two end points of the inclined straight line are converted into the corresponding points described above. In some cases, a tilt correction image is generated by obtaining a perspective transformation matrix and performing perspective transformation of the original image based on the perspective transformation matrix (see, for example, Patent Document 1). With such a tilt correction technique, it is easy to generate a tilt correction image automatically if only two inclined straight lines that are essentially perpendicular to the ground and should be parallel to each other are indicated on the monitor. However, it is not so easy to find two inclined straight lines that should be parallel to each other due to tilt distortion in general landscape photographs and product photographs. This is practically impossible especially with landscape photography.
他の1つとして、被写体の形状を特定する第一の代表点と画像内における被写体の像の領域を特定する第二の代表点との間の写像を特定し、この写像に応じてあおり歪みを補正する技術がある。具体的には、ポスターのような被写体を撮影した場合、そのポスターの縦横比を入力し、次いで撮影画像におけるポスターの四隅の頂点座標を算出することで、撮影画像における被写体を正規の形状にする写像関数を求め、これによりあおり補正画像を作り出すものもある(例えば、特許文献2参照。)。この技術でも、被写体を面として捉えて処理するので、被写体がポスターのようなものには有効であるが、被写体が風景といったものの場合、被写体の形状を特定する代表点を見つけ出すことが困難であり、これを誤ると、あおり補正が十分に機能しないという問題が生じる。 As another one, a mapping between a first representative point that specifies the shape of the subject and a second representative point that specifies a region of the image of the subject in the image is specified, and tilt distortion is determined according to this mapping. There is a technology to correct this. Specifically, when a subject such as a poster is photographed, the aspect ratio of the poster is input, and then the vertex coordinates of the four corners of the poster in the photographed image are calculated, thereby making the subject in the photographed image a regular shape. Some obtain a mapping function and thereby create a tilt-corrected image (see, for example, Patent Document 2). Even with this technology, the subject is processed as a plane, so it is effective when the subject is a poster, but when the subject is a landscape, it is difficult to find a representative point that identifies the shape of the subject. If this is mistaken, there will be a problem that the tilt correction does not function sufficiently.
上記実状に鑑み、本発明の課題は、直感的で簡単な操作入力設定により、風景などを被写体とした撮影画像に対して、満足できるあおり補正画像が迅速に得られる技術を提供することである。 In view of the above situation, an object of the present invention is to provide a technique capable of quickly obtaining a satisfactory correction image for a photographed image of a landscape or the like by intuitive and simple operation input setting. .
上記目的を達成するため、あおり歪みを有する撮影画像を補正するあおり補正方法であって、モニタに表示された前記撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸と前記傾斜歪みを補正するための傾斜補正強度を入力設定し、前記基準軸を傾きゼロの直線式として前記設定された傾斜補正強度に基づいて前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義し、前記定義された各直線式が前記基準軸に対して平行となるような座標変換の逆変換を用いてあおり補正を行う方法を出発技術として、本発明では、撮影画像において前記基準軸に沿う方向をx座標方向と定義し、撮影画像の前記x座標方向の画素数と同じ数の前記基準軸より外側に離れるほど大きな傾きをもつx座標修正用直線式が定義され、このx座標修正用直線式を用いて補正画像画素のx座標に対応する元画像画素のx座標を決定し、当該補正画像画素のx座標と当該決定された元画像画素のx座標とに基づいて、あおり補正された画像の直線性を維持するように前記補正画像の各画素に対応する前記元画像画素のx座標をシフトさせることを特徴としている。 In order to achieve the above object, a tilt correction method for correcting a captured image having tilt distortion, the reference axis for correcting tilt distortion based on distortion on the captured image displayed on a monitor and the tilt distortion The slope correction strength for correcting the input is input and set, and the reference axis is set to a linear equation with zero inclination, and a plurality of linear expressions having a larger inclination as the distance from the reference axis is increased based on the set inclination correction intensity. defined as a starting technique a method for perspective correction using an inverse transformation of the parallel become such a coordinate transformation the linear equation previously defined is relative to the reference axis, in the present invention, the reference axis in the photographing image the direction along defined as x-coordinate direction, the x coordinate correcting for linear equation having a large inclination farther outward than the same number the reference axis of the number of pixels x coordinate direction of the captured image is defined The x coordinate of the original image pixel corresponding to the x coordinate of the corrected image pixel is determined using the linear formula for correcting the x coordinate, and based on the x coordinate of the corrected image pixel and the determined x coordinate of the original image pixel. Thus, the x coordinate of the original image pixel corresponding to each pixel of the corrected image is shifted so as to maintain the linearity of the tilt-corrected image.
上述した出発技術としてのおあり補正では、図5に模式的に示しているように、あおり補正つまり傾斜歪みの補正のために直線R0上に位置する画素を直線R1の方向に写像する場合、直線R0上の各画素を通過するとともにその傾きが最大傾斜補正角を最大として漸減していく直線群Lを定義し、この直線群Lの各直線を水平にするべく座標変換でもって元画像の画素Pを補正画像の画素Qに写像することになるが、写像された画素Qは点線で示されているように湾曲線となり元の直線性を失ってしまう。この非直線性の問題を避けるため、本発明では、写像された画素Qが全て実質的に直線R1上にくるようにx座標をシフトさせるのである。つまり、補正された画像の画素から考えると、この画素に対応する元画像の画素位置の算出にあたっては、そのy座標はこの出発技術による座標変換の逆変換をそのまま採用して求められるが、そのx座標は補正画像画素のx座標に応じて決定される値だけシフトさせた値とするのである。これにより、基準軸と傾斜補正強度を入力設定するだけといった簡単なユーザ入力にもかかわらず、満足できるあおり補正画像が迅速に得られるという利点だけではなく、図5で示したような、あおり補正された画像が元の画像に比べてx軸方向の直線性を失って湾曲してしまうという問題も解消される。
In the presence correction as the starting technique described above, as schematically illustrated in FIG. 5, when a pixel located on the
さらに、そのようなx座標修正用直線式として次式を提案することができる、
ここで、α:補正されるべき最大の傾斜角度、X-loop:撮影画像のx軸方向画素の座標に対応して順次設定される0からMまでの整数である。
この直線式に適当なYの値を設定し、補正画像画素のx座標値としてX-loopの値を0からW−1までの入れていって得られるXの値が対応する元画像画素のx座標となる。
Furthermore, the following formula can be proposed as such a linear formula for x coordinate correction,
Here, α is the maximum inclination angle to be corrected, and X-loop is an integer from 0 to M that is sequentially set corresponding to the coordinates of the pixel in the x-axis direction of the captured image.
An appropriate Y value is set in this linear expression, and the X value obtained by inserting an X-loop value from 0 to W-1 as the x-coordinate value of the corrected image pixel corresponds to the corresponding original image pixel. x coordinate.
また、本発明は、上述したあおり補正方法をコンピュータに実行させるプログラムやそのプログラムを記録した媒体も権利の対象とするものである。 The present invention also covers a program for causing a computer to execute the tilt correction method described above and a medium on which the program is recorded.
本発明では、さらに、上述したあおり補正方法を採用したあおり補正機能付き写真プリント装置も権利の対象としており、このあおり補正機能付き写真プリント装置は、モニタに表示された前記撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸を入力設定する基準軸設定部と、前記傾斜歪みを補正するための傾斜補正強度を入力設定する傾斜補正強度設定部と、前記基準軸を傾きゼロの直線式として前記設定された傾斜補正強度に基づいて前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義する直線式設定部と、撮影画像において前記基準軸に沿う方向をx座標方向と定義し、前記基準軸より外側に離れるほど大きな傾きをもつよう定義される撮影画像の前記x座標方向の画素数と同じ数のx座標修正用直線式を用いて補正画像画素のx座標に対応する元画像画素のx座標を決定し、当該補正画像画素のx座標と当該決定された元画像画素のx座標とに基づいて、前記定義された各直線式が前記基準軸に対して平行となるような座標変換の際に生じるあおり補正された画像の非直線性を修正するように前記補正画像の各画素に対応する前記元画像画素のx座標をシフトさせる修正機能を備えた前記座標変換の逆変換を設定する座標変換設定部と、あおり歪み補正後の各画素に対応する前記撮影画像の画素位置を前記座標変換設定部で設定された座標変換の逆変換を用いて求める画素位置演算部と、前記求められた画素位置から濃度補間法に基づいて前記あおり補正画像の対象画素の濃度値を求めるあおり補正画像生成部と、前記あおり補正画像に基づいて写真プリントを出力する写真プリント部とから構成されている。当然ながら、このあおり補正機能付き写真プリント装置も上述したあおり補正方法におけるすべての作用効果を得ることができる。
In the present invention, a photo printing apparatus with a tilt correction function that employs the above-described tilt correction method is also subject to rights, and the photo printing apparatus with a tilt correction function is distorted on the photographed image displayed on the monitor. A reference axis setting unit for inputting and setting a reference axis for correcting inclination distortion based on the above, an inclination correction intensity setting unit for inputting and setting an inclination correction intensity for correcting the inclination distortion, and an inclination of zero for the reference axis A linear equation setting unit that defines a plurality of linear equations having larger inclinations as they move away from the reference axis on the basis of the inclination correction strength set as a linear equation, and an x-coordinate indicating the direction along the reference axis in the photographed image is defined as the direction, for x-coordinate correction of the same number as the number of pixels the x coordinate direction of the captured image is defined as having a large inclination farther outward from the reference axis The x coordinate of the original image pixel corresponding to the x coordinate of the corrected image pixel is determined using a linear formula, and the definition is made based on the x coordinate of the corrected image pixel and the determined x coordinate of the original image pixel. In addition, the original image pixels corresponding to the pixels of the corrected image are corrected so as to correct the nonlinearity of the tilt-corrected image that is generated during coordinate conversion such that each linear equation is parallel to the reference axis. A coordinate conversion setting unit for setting reverse conversion of the coordinate conversion having a correction function for shifting the x-coordinate, and a pixel position of the captured image corresponding to each pixel after tilt distortion correction are set by the coordinate conversion setting unit. A pixel position calculation unit obtained using inverse transformation of the coordinate transformation, a tilt correction image generation unit for obtaining a density value of a target pixel of the tilt correction image based on a density interpolation method from the obtained pixel position, and the tilt Corrected image Based on is composed of a photographic print section for outputting a photographic print. Naturally, this photographic printing apparatus with a tilt correction function can also obtain all the effects of the tilt correction method described above.
この構成では、まずモニタに表示された撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸、つまりそのような傾斜歪みが生じていない又はほとんど生じていない基準軸(画像を90度回転させると垂直線は水平線になるので、ここでは基準軸は水平線としておく)を入力設定する。もちろん、垂直線を基準軸とするような入力設定も可能である。いずれにしても、この入力設定作業では、簡単には、あおり歪みが生じていない撮影視点をポインティングデバイス等の操作入力デバイスを指示することで、この撮影視点を通る水平線を定めることができ、この水平線を基準軸とする。あおり歪みに基づく傾斜歪みはこの基準軸から外側に離れるほど大きくなっているが、直感的に得られるその最大の傾斜歪み具合から傾斜補正強度を入力設定する。傾斜歪みが大きいと思われるほど傾斜補正強度を大きく設定する。これらの入力設定情報に基づいて、前記基準軸を傾きゼロの直線式としてこの基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義する。その際、これらの直線式がもつ最大の傾きは前述した傾斜補正強度に応じて限定され、基準軸より最も外側に定義される直線式が最大の傾きをもつことになるが、それより基準軸に近い直線式ほどその傾きが小さくなるように定義されている。つまり、基準軸である傾きがゼロである直線式から順にその傾きを大きくしながらその外側に直線式が定義されるのである。次いで、このように定義された複数の直線式を基準軸に対して平行になるような座標変換を考えると、この座標変換が各直線式によって規定される斜めに延びた画素群を水平化する、いわゆる傾斜歪みを補正する座標変換となる。実際の補正画像を求める処理としては、元画像を補正画像に変形処理する際の常套手段として、補正画像における画素位置に対応する元画像の画素位置を算定することになるので、先の座標変換の逆変換を用いることになる。但し、このような座標変換では、前述したような非直線性の問題が生じるので、補正された画像の画素に対応する元画像の画素位置の算出にあたっては、そのx座標は補正画像画素のx座標に応じて決定される値だけシフトさせた値となるように座標変換を修正されている。具体的には、x座標に関しては、前述したようなx座標修正用直線式を用いた座標変換を採用することができる。いずれにしても算出されたあおり補正画像の1つの画素に対応する撮影画像の画素位置は一般的には整数にはならず、つまり隣り合う画素の影響を受け合う画素位置となるので、それ自体はよく知られた濃度補間法を用いてあおり補正画像の対象画素濃度値が求められる。以上のように、この方法では、撮影画像から基準軸と傾斜補正強度を設定するだけで、傾斜歪みを設定された傾斜補正強度に応じて補正したあおり補正画像がx座標方向直線性を維持した状態で作り出される。従って、風景撮影などの画像であっても、直感的な判断でその傾斜歪みを解消することが可能となる。 In this configuration, first, a reference axis for correcting tilt distortion based on distortion on a captured image displayed on a monitor, that is, a reference axis in which such tilt distortion does not occur or hardly occurs (the image is 90 degrees). Since the vertical line becomes a horizontal line when rotated, the reference axis is set as a horizontal line here. Of course, it is possible to make an input setting with the vertical line as the reference axis. In any case, in this input setting work, a horizontal line passing through this photographing viewpoint can be easily determined by pointing an operation input device such as a pointing device to a photographing viewpoint in which no distortion occurs. The horizontal axis is the reference axis. The inclination distortion based on the tilt distortion increases as it moves away from the reference axis, but the inclination correction strength is input and set from the maximum inclination distortion obtained intuitively. The inclination correction strength is set to be larger as the inclination distortion seems to be large. Based on these input setting information, a plurality of linear equations having a larger inclination as they move away from the reference axis are defined as a linear equation having zero inclination as the reference axis. At this time, the maximum inclination of these linear equations is limited according to the inclination correction strength described above, and the linear equation defined on the outermost side from the reference axis has the maximum inclination. It is defined so that the slope of the linear equation closer to is smaller. That is, the linear equation is defined outside the linear equation with the gradient being zero, which is the reference axis, while increasing the gradient in order. Next, considering coordinate transformation in which a plurality of linear expressions defined in this way are parallel to the reference axis, this coordinate transformation leveles a pixel group extending obliquely defined by each linear expression. This is a coordinate transformation that corrects so-called tilt distortion. As a process for obtaining the actual corrected image, the pixel position of the original image corresponding to the pixel position in the corrected image is calculated as a conventional means for transforming the original image into the corrected image. The inverse transformation of is used. However, in such coordinate conversion, the non-linearity problem as described above arises. Therefore, in calculating the pixel position of the original image corresponding to the pixel of the corrected image, the x coordinate is the x of the corrected image pixel. The coordinate conversion is corrected so that the value is shifted by a value determined according to the coordinates. Specifically, with respect to the x coordinate, coordinate conversion using the above-described linear formula for x coordinate correction can be employed. In any case, the pixel position of the captured image corresponding to one pixel of the calculated tilt correction image is generally not an integer, that is, a pixel position that is affected by the adjacent pixels. The well-known density interpolation method is used to obtain the target pixel density value of the corrected image. As described above, in this method, only by setting the reference axis and the inclination correction intensity from the photographed image, the tilt correction image in which the inclination distortion is corrected according to the set inclination correction intensity maintains the x-coordinate direction linearity. Produced in state. Therefore, even for images such as landscape photography, the tilt distortion can be eliminated by intuitive judgment.
さらにこのあおり補正機能付き写真プリント装置の好適な実施形態の1つでは、複数の異なる傾斜補正強度に基づくあおり補正画像が前記モニタに比較表示される。ユーザによって入力設定される傾斜補正強度は、撮影画像を眺めながら直感的に決定されるものであることから、1回の入力設定で最適なあおり補正画像が得られるとは限らない。このため、複数の異なる傾斜補正強度に基づいたあおり補正画像がモニタに比較表示されると好都合である。特に好ましいのは、入力設定された傾斜補正強度を基準としてその前後の強度に基づくあおり補正画像も自動的に比較表示されることである。
本発明によるその他の特徴及び利点は、以下図面を用いた実施形態の説明により明らかになるだろう。
Further, in a preferred embodiment of the photo printing apparatus with a tilt correction function, tilt correction images based on a plurality of different tilt correction strengths are displayed in comparison with the monitor. Since the inclination correction intensity set by the user is determined intuitively while viewing the captured image, an optimal tilt correction image is not always obtained with a single input setting. For this reason, it is advantageous if a tilt correction image based on a plurality of different inclination correction intensities is displayed in comparison with the monitor. It is particularly preferable that the tilt correction images based on the intensity before and after the inclination correction intensity that has been set as input are automatically compared and displayed.
Other features and advantages of the present invention will become apparent from the following description of embodiments using the drawings.
本発明の実施の形態について、図面に基づいて説明する。
図1は本発明によるあおり補正方法を採用したあおり補正機能付き写真プリント装置を示す外観図であり、この写真プリント装置は、印画紙Pに対して露光処理と現像処理とを行う写真プリンタとしてのプリントステーション1Bと、現像済み写真フィルム2aやデジタルカメラ用メモリカード2bなどの画像入力メディアから取り込んだ撮影画像を処理してプリントステーション1Bで使用されるプリントデータの生成・転送などを行う操作ステーション1Aとから構成されている。
Embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is an external view showing a photographic printing apparatus with a tilt correction function that employs the tilt correction method according to the present invention. This photographic printing apparatus is a photographic printer that performs exposure processing and development processing on photographic paper P. FIG. An
この写真プリント装置はデジタルミニラボとも称せられるものであり、図2からよく理解できるように、プリントステーション1Bは2つの印画紙マガジン11に納めたロール状の印画紙Pを引き出してシートカッター12でプリントサイズに切断すると共に、このように切断された印画紙Pに対し、バックプリント部13で色補正情報やコマ番号などのプリント処理情報を印画紙Pの裏面に印字するとともに、プリント露光部14で印画紙Pの表面に撮影画像の露光を行い、この露光後の印画紙Pを複数の現像処理槽を有した処理槽ユニット15に送り込んで現像処理する。乾燥の後に装置上部の横送りコンベア16からソータ17に送られた印画紙P、つまり写真プリントPは、このソータ17の複数のトレイにオーダ単位で仕分けられた状態で集積される(図1参照)。
This photo printing apparatus is also called a digital minilab. As can be understood from FIG. 2, the
上述した印画紙Pに対する各種処理に合わせた搬送速度で印画紙Pを搬送するために印画紙搬送機構18が敷設されている。印画紙搬送機構18は、印画紙搬送方向に関してプリント露光部14の前後に配置されたチャッカー式印画紙搬送ユニット18aを含む複数の挟持搬送ローラ対から構成されている。
A photographic
プリント露光部14には、副走査方向に搬送される印画紙Pに対して、主走査方向に沿って操作ステーション1Aからのプリントデータに基づいてR(赤)、G(緑)、B(青)の3原色のレーザ光線の照射を行うライン露光ヘッドが設けられている。処理槽ユニット15は、発色現像処理液を貯留する発色現像槽15aと、漂白定着処理液を貯留する漂白定着槽15bと、安定処理液を貯留する安定槽15cを備えている。
The print exposure unit 14 applies R (red), G (green), and B (blue) to the printing paper P conveyed in the sub-scanning direction based on print data from the
前記操作ステーション1Aのデスク状コンソールの上部位置には、写真フィルム2aの撮影画像コマから撮影画像データを取得するフィルムスキャナ20が配置されており、デジタルカメラ等に装着される撮影画像記録媒体2bとして用いられている各種半導体メモリやCD−Rなどから撮影画像データを取得するメディアリーダ21は、この写真プリント装置のコントローラ3として機能する汎用パソコンに組み込まれている。この汎用パソコンには、さらに各種情報を表示するモニタ23、各種設定や調整を行う際に用いる操作入力部として利用される操作入力デバイスとしてのキーボード24やマウス25も接続されている。
A
この写真プリント装置のコントローラ3は、CPUを中核部材として、写真プリント装置の種々の動作を行うための機能部をハードウエア又はソフトウエアあるいはその両方で構築しているが、図3に示されているように、本発明に特に関係する機能部としては、スキャナ20やメディアリーダ21によって読み取られた撮影画像データを取り込んで次の処理のために必要な前処理を行うデータ前処理部31と、各種ウインドウや各種操作ボタンなどを含むグラフィック操作画面の作成やそのようなグラフィック操作画面を通じてのユーザ操作入力(キーボード24やマウス25などのポインティングデバイスによる)から制御コマンドを生成するグラフィックユーザインターフェース(以下GUIと略称する)を構築するGUI部33と、GUI部33から送られてきた制御コマンドや直接キーボード24等から入力された操作命令に基づいて所望のプリントデータを生成するためにデータ前処理部31からメモリ30に転送された撮影画像データに対する画像処理等を行うプリント管理部32と、色補正等のプレジャッジプリント作業時にプリントソース画像や予想仕上がりプリント画像としてのシミュレート画像さらにはGUI部33から送られてきたグラフィックデータをモニタ23に表示させるためのビデオ信号を生成するビデオ制御部35と、画像処理が完了した処理済み撮影画像データに基づいてプリントステーション1Bに装備されているプリント露光部14に適したプリントデータを生成するプリントデータ生成部36と、顧客の要望に応じて生の撮影画像データや画像処理が完了した処理済み撮影画像データなどをCD−Rに書き込むための形式にフォーマットするフォーマッタ部37などが挙げられる。
The
データ前処理部31は、撮影画像記録媒体がフィルム2aの場合プレスキャンモードと本スキャンモードとのスキャンデータを別々にメモリ30に送り込み、それぞれの目的に合わせた前処理を行う。また、撮影画像記録媒体がメモリカード2bの場合取り込んだ撮影画像データにサムネイル画像データ(低解像度データ)が含まれている場合はモニタ23での一覧表示などの目的で使用するため撮影画像の本データ(高解像度データ)とは別にメモリ30に送り込むが、もしサムネイル画像データが含まれていない場合は本データから縮小画像を作り出してサムネイル画像データとしてメモリ30に送り込む。
When the photographic image recording medium is the
プリント管理部32は、後で詳しく説明されるがモニタ23に表示された撮影画像にあおり歪みが生じている場合そのあおり歪みを補正するあおり補正手段60及びメモリ30に展開された撮影画像データに対して解像度変換、色補正、拡縮、画像回転、画像合成、フィルタリング(ぼかしやシャープネスなど)、トリミングなどのフォトレタッチ処理を施す画像処理部70を含んでいる。
As will be described in detail later, the
あおり補正手段60は、図4に示すように、モニタ23に表示された撮影画像の特定箇所をマウス25やキーボード24の特定キーで指定することでこの特定箇所を通る水平線をあおり歪みに基づく傾斜歪みを補正するための基準軸として入力設定する基準軸設定部61と、前記傾斜歪みを補正するための傾斜補正強度を入力設定する傾斜補正強度設定部62と、前記基準軸を傾きゼロの直線式として前記設定された傾斜補正強度に基づいて前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義する直線式設定部63と、前記定義された各直線式が前記基準軸に対して平行となるような座標変換の際に生じるあおり補正された画像の非直線性を修正するように補正画像の各画素に対応する元画像画素のx座標をシフトさせる修正機能を備えた前記座標変換の逆変換を設定する座標変換設定部64と、あおり歪み補正後の各画素に対応する前記撮影画像の画素位置を前記座標変換設定部64で設定された座標変換の逆変換を用いて求める画素位置演算部65と、前記求められた画素位置から濃度補間法に基づいて前記あおり補正画像の対象画素の濃度値を求めるあおり補正画像生成部66とから構成されている。
As shown in FIG. 4, the tilt correction means 60 designates a specific portion of the photographed image displayed on the
このように構成されたあおり補正手段60によるあおり補正の原理を以下に説明する。
ここでは、モニタ23に表示される撮影画像の上半分には画面右上から画面左下に延びる方向にあおり歪みに基づく傾斜歪みが生じており、撮影画像の下半分には逆方向の傾斜歪みが生じており、あおり歪みが生じていないいわゆる撮影視点を通る基準軸が画面のほぼ中央に設定されているとする。なお、撮影画像の上半分で生じている傾斜歪みを補正する方法は、撮影画像の下半分で生じている傾斜歪みを補正する方法として簡単に適用できるので、ここでは撮影画像の上半分で生じている傾斜歪みを補正する手順を説明する。
The principle of the tilt correction by the tilt correcting means 60 configured as described above will be described below.
Here, the upper half of the captured image displayed on the
まず、本発明によるあおり補正(傾斜歪み補正)の前提となる技術の基本原理を図5を用いて説明する;
図中、Eはオペレータによって設定される基準軸であり、この基準軸Eより上側の撮影画像が補正対象画像として設定され、この補正対象画像は基準軸より遠ざかるほど強い傾斜角度でもってあおり補正される。さらに、ここでは、最大傾斜補正角αをもつ直線R1が水平な直線R0のあおり補正における移動先としての直線として表されている。この傾斜歪みの補正のために直線R0上に位置する画素を直線R1の方向に写像する場合、直線R0上の各画素を通過するとともにその傾きがαを最大として漸減していく直線群Lを定義し、この直線群Lの各直線を水平にする座標変換でもって元画像の画素Pを補正画像の画素Qに写像することになる。そして、この座標変換の逆変換を用いて、補正画像の各画素位置に対応する元画像の画素位置を求めることで補正画像を作り出すことができる。なお、この最大の傾きαは、傾斜補正強度設定部62で設定された傾斜補正強度をSxとして、この傾斜補正強度Sxに前述した補正対象画像の対角線の傾きを乗算することで算出されている。傾斜補正強度Sxは1〜0の間の小数であり、例えば、傾斜補正強度Sxが0.5ならば、基準傾きαは前記対角線の傾きの半分の大きさとなる。
First, the basic principle of the technology which is the premise of tilt correction (tilt distortion correction) according to the present invention will be described with reference to FIG.
In the figure, E is a reference axis set by an operator, and a photographed image above the reference axis E is set as a correction target image, and this correction target image has a tilt angle that increases with distance from the reference axis and is corrected. The Further, here, the straight line R1 having the maximum inclination correction angle α is represented as a straight line as a movement destination in the tilt correction of the horizontal straight line R0. When a pixel located on the straight line R0 is mapped in the direction of the straight line R1 in order to correct the tilt distortion, a straight line group L that passes through each pixel on the straight line R0 and whose gradient gradually decreases with α as a maximum is obtained. The pixel P of the original image is mapped to the pixel Q of the corrected image by coordinate transformation that defines and straightens each straight line of the straight line group L. A corrected image can be created by obtaining the pixel position of the original image corresponding to each pixel position of the corrected image using the inverse transformation of the coordinate conversion. The maximum inclination α is calculated by multiplying the inclination correction intensity Sx by the diagonal inclination of the correction target image described above, with the inclination correction intensity set by the inclination correction
図5で模式的に示されたようなあおり補正の場合、写像された画素Qは点線で示されているように湾曲線となり元の直線性を失ってしまう。この非直線性の問題を避けるためには、写像された画素Qが全て実質的に直線R1上にくるようにx座標をシフトさせる必要がある。次にこのx座標をシフト量を求める手順を以下に示す;
まず、図6に示すように、直線R0上の画素を直線R1上にもってくるような傾き補正をする場合、x軸方向画素座標位置として0〜Mまでの整数をとる変数X_loopを考え、各X_loopの値(=m)に対応する直線式L(m)を定義する。その際、直線式L(0)は直線R0上の左端画素を通る直線を表し、その傾きは直線R1の傾きと方向は逆であるが同じ値となる。直線式L(M)は直線R0上の右端画素を通る直線を表すことになる。図6から理解できるように、X_loop=mで規定される直線R1上の画素Q(m)、つまり補正画像における画素Q(m)に対応する元画像画素のx軸方向画素位置として直線式L(m)と直線R0で求まるx座標(=m’)を採用することで前述した非直線性の問題を解消するのである。
In the case of tilt correction as schematically shown in FIG. 5, the mapped pixel Q becomes a curved line as indicated by a dotted line and loses its original linearity. In order to avoid this non-linearity problem, it is necessary to shift the x coordinate so that all the mapped pixels Q are substantially on the straight line R1. Next, the procedure for obtaining the shift amount of the x coordinate is as follows:
First, as shown in FIG. 6, when correcting the tilt so that the pixels on the straight line R0 are on the straight line R1, a variable X_loop taking an integer from 0 to M as the pixel coordinate position in the x-axis direction is considered. A linear expression L (m) corresponding to the value of X_loop (= m) is defined. At this time, the linear expression L (0) represents a straight line passing through the leftmost pixel on the straight line R0, and the inclination thereof is the same value although the inclination and the direction of the straight line R1 are opposite. The straight line expression L (M) represents a straight line passing through the rightmost pixel on the straight line R0. As can be understood from FIG. 6, the linear expression L is defined as the pixel position in the x-axis direction of the original image pixel corresponding to the pixel Q (m) on the straight line R1 defined by X_loop = m, that is, the pixel Q (m) in the corrected image. By adopting the x coordinate (= m ′) obtained from (m) and the straight line R0, the above-mentioned problem of non-linearity is solved.
直線式L(m)を求めるため、図7に示しているように、基準軸Eより上側の画像のサイズを1×1に正規化するとよい。なお、直線式L(m)を定義する際、その原点は補正対象となっている画像の左下角の画素位置としている。直線式L(0)の傾きはαと設定されているので、図8に示すように、直線R0より上端まで距離をh1、直線R0より基準軸Eまで距離をh2、画像の左端列と直線式L(M)の交点から直線R0までの距離をh3、その交点から基準軸Eまで距離をh4とすると、次式が成り立つ、
h1=α、
h2=1−α、
h3=α・(1−α)、
h4=(1−α)・(1−α)。
ここで、図7に戻ると、各直線式L(m)が画像の最右列と交わる高さは、
α×(M−X_loop)/M
で表され、
各直線式L(m)が画像の最左列と交わる高さは、
α・(1−α)×(M−X_loop)/M
で表される。このことから、直線式L(0)から直線式L(M)に到る各直線がX_loopの値に応じて画像の最右列と最左列を等分していることが理解できる。
In order to obtain the linear equation L (m), the size of the image above the reference axis E may be normalized to 1 × 1, as shown in FIG. Note that when defining the linear equation L (m), the origin is the pixel position at the lower left corner of the image to be corrected. Since the slope of the linear equation L (0) is set to α, as shown in FIG. 8, the distance from the straight line R0 to the upper end is h1, the distance from the straight line R0 to the reference axis E is h2, and the left end row and straight line of the image If the distance from the intersection point of the equation L (M) to the straight line R0 is h3, and the distance from the intersection point to the reference axis E is h4, the following equation holds.
h1 = α,
h2 = 1-α,
h3 = α · (1−α),
h4 = (1-α) · (1-α).
Here, returning to FIG. 7, the height at which each linear expression L (m) intersects the rightmost column of the image is
α × (MX_loop) / M
Represented by
The height at which each linear expression L (m) intersects the leftmost column of the image is
α · (1-α) × (MX_loop) / M
It is represented by From this, it can be understood that each straight line from the linear expression L (0) to the linear expression L (M) equally divides the rightmost column and the leftmost column of the image according to the value of X_loop.
直線群:L(0)〜L(M)のための一般な直線式L(m)は、次式となる。
この式は、前述したx座標修正用直線式となる。
ここで、(M−X_loop)/Mをδとおくと、
となる。この直線式に対して、Y=1−α(直線R0の直線式を表している)を代入してXに関して解くと、
となる。この式は、画像サイズを1に正規化して求められたものであるので、この値にMを乗算することで、X_loop=mにおけるm'の値(図6参照)が得られる。(m−m')が、あおり補正された画像の直線性を維持するための、補正画像画素に対する元画像画素のx軸方向のシフト量である。
Straight line group: A general straight line expression L (m) for L (0) to L (M) is as follows.
This equation is the above-described linear equation for x coordinate correction.
Here, if (M−X_loop) / M is set to δ,
It becomes. Substituting Y = 1-α (representing the linear equation of the straight line R0) into this linear equation and solving for X,
It becomes. Since this expression is obtained by normalizing the image size to 1, by multiplying this value by M, the value of m ′ at X_loop = m (see FIG. 6) is obtained. (m−m ′) is a shift amount in the x-axis direction of the original image pixel with respect to the corrected image pixel in order to maintain the linearity of the tilt-corrected image.
上記の説明では、右下に傾斜する直線を想定して直線式を求めたが、左下に傾斜する直線の場合、X_loopに代えて、(M−X_loop)を用いるとよい。 In the above description, a straight line equation is obtained assuming a straight line inclined to the lower right. However, in the case of a straight line inclined to the lower left, (M−X_loop) may be used instead of X_loop.
次に、補正画像の画素Qとこれに対応する元画像の画素Pのy軸方向のシフト量を求める。このy軸方向のシフト量は、図5を用いて説明したところの、直線群Lを水平化する座標変換で簡単に求めることができる。ここでは、図9に示すように、y軸方向でN〜0までの整数をとるY_loopを考え、各Y_loopの値(=n)に対応する直線式L(n)を定義する。その際、直線式L'(0)は基準軸Eと一致し、直線式L'(n)に用いられる傾きa(n)は、α×Y_loop/Nで表す。従って、一般的に表される直線式L'(n)は、次式となる。
Y=a(n)・X+(1−α)・Y_loop
この式に前述したm'をXに代入して得られたYの値をn'とすると、補正画像の画素座標(X_loop,Y_loop)に対応する元画素の座標(m',n')が得られることになる。つまり、上述したm'とn'を求めるそれぞれの式を組み合わせて座標変換関数:Γを決定すると、あおり歪み補正後の各画素に対応する撮影画像の画素位置は、
(m',n')=Γ(X_loop,Y_loop)
で求められる。もちろん、求められた画素位置(m',n')は整数とはならないので、求められた元画像の画素(m',n')の画素値(濃度値)は、良く知られている濃度補間法を用いて決定され、その画素値(濃度値)が座標(X_loop,Y_loop)に対応する画素Qに割り与えられる。濃度補間法としては、ニアレストネイバー法、バイリニア法、バイキュービック法などが知られているが、ここでは高解像度画像である撮影画像を対象としているので、バイリニア法やバイキュービック法が好ましい。このようにして、順次、簡単なループ計算と補間濃度演算式によって、補正画像の各画素の濃度値がその対応する元画像の画素位置から求められる。
Next, the shift amount in the y-axis direction of the pixel Q of the corrected image and the corresponding pixel P of the original image is obtained. The shift amount in the y-axis direction can be easily obtained by the coordinate conversion for leveling the straight line group L as described with reference to FIG. Here, as shown in FIG. 9, Y_loop taking an integer from N to 0 in the y-axis direction is considered, and a linear expression L (n) corresponding to each Y_loop value (= n) is defined. At this time, the linear expression L ′ (0) coincides with the reference axis E, and the inclination a (n) used in the linear expression L ′ (n) is expressed by α × Y_loop / N. Therefore, the linear expression L ′ (n) generally expressed is as follows.
Y = a (n), X + (1-α), Y_loop
When the value of Y obtained by substituting m ′ described above into X in this equation is n ′, the coordinates (m ′, n ′) of the original pixel corresponding to the pixel coordinates (X_loop, Y_loop) of the corrected image are obtained. Will be obtained. That is, when the coordinate conversion function: Γ is determined by combining the respective equations for obtaining m ′ and n ′ described above, the pixel position of the captured image corresponding to each pixel after tilt correction is
(M ′, n ′) = Γ (X_loop, Y_loop)
Is required. Of course, since the obtained pixel position (m ′, n ′) is not an integer, the pixel value (density value) of the obtained pixel (m ′, n ′) of the original image is a well-known density. The pixel value (density value) is determined using an interpolation method, and the pixel Q corresponding to the coordinates (X_loop, Y_loop) is assigned. As the density interpolation method, a nearest neighbor method, a bilinear method, a bicubic method, and the like are known. However, since a captured image that is a high-resolution image is targeted here, a bilinear method or a bicubic method is preferable. In this manner, the density value of each pixel of the corrected image is sequentially obtained from the corresponding pixel position of the original image by simple loop calculation and interpolation density calculation formula.
次にこの写真プリント装置において、撮影画像コマをモニタ画面でチェックしながら、必要に応じてあおり補正を行う際の典型的な流れを説明する。 Next, in this photo printing apparatus, a typical flow when performing tilt correction as necessary while checking the photographed image frames on the monitor screen will be described.
顧客がプリントソースとして持参してきた写真記録メディアの種別に応じて、スキャナ20またはメディアリーダ21が用いられ、いずれにしてもデジタル化された撮影画像データがデータ前処理部31を通じてメモリ30に送り込まれる。
The
撮影画像データがメモリ30にロードされると、各撮影画像コマが、図10に示されているプレジャッジ画面と呼ばれている操作入力画面40の撮影画像表示枠41に順次表示される。図10では、6コマ表示画面が選択されている。各撮影画像表示枠41の下側には色濃度補正設定エリア42とプリント枚数設定エリア43が配置されている。色濃度補正設定エリア42には「イエロー」、「マゼンタ」、「シアン」、「濃度」の設定枠が設けられており、補正量の「N」はニュートラルを表し補正なしを意味している。プリント枚数設定エリア43にはプリント枚数入力枠が設けられており、「パス」はプリントを行わないことを意味している。プレジャッジ画面40の下方にはプリント条件表示欄44が配置されており、この写真プリント出力に適用されたプリントチャンネル名称の表示や、このプリントチャンネルに含まれているプリントサイズやインデックスプリントの要否やメディア出力の要否などが示されている。プリントサイズは仕上がり写真プリントPの大きさを示すものであり、この実施形態では印画紙幅と送り長さでプリントサイズが決定される。このプレジャッジ画面40において各撮影画像コマに対するあおり補正処理や色濃度補正設定やプリント枚数設定が完了すると、対応する撮影画像データはプリントデータ生成部36に送られ、プリントデータに変換される。
When the photographed image data is loaded into the
特定の撮影画像コマに対してあおり補正のような特別な処理を行う場合には、より大画面での撮影画像コマの表示が必要となる。このため、プレジャッジ画面40において、そのような特別な処理対象となる撮影画像をマウス25のダブルクリックなどによって指定すると、図11に示されたような一コマ拡大画面50が表示される。一コマ拡大画面50の中央には拡大撮影画像表示エリア51が配置されており、右端には、画像処理設定枠52が配置されている。
When special processing such as tilt correction is performed on a specific shot image frame, it is necessary to display the shot image frame on a larger screen. For this reason, when a photographed image to be processed specially is designated on the
一コマ拡大画面50が表示されると、ここでは図示されていないが、「傾斜歪みを補正するための基準軸Eを設定してください」というメッセージが表示され、拡大撮影画像表示エリア51においていわゆるあおり歪みが生じていない点である撮影画像視点を通る直線である基準軸Eをマウス25のクリックアンドドラッグ操作でもって設定する。
When the one-
画像処理設定枠52には、スライドバーをマウス25を用いて操作することで表示される値を見ながら前述した傾斜補正強度Sを設定する傾斜補正強度設定エリア53と、設定された基準軸Eと傾斜補正強度Sに基づいて算出された最も外側に設定される直線の傾きである最大傾斜角度の値を表示する傾斜角表示エリア54と、設定された基準軸Eと傾斜補正強度Sに基づいたあおり補正を行うことを決定するあおり補正決定ボタン55などが配置されている。
The image
このあおり補正決定ボタン55が押されると、次に基準軸Eの下側の撮影画像に対する傾斜補正強度Sを設定することになる。この設定作業は上述した基準軸Eの上側の撮影画像に対する傾斜補正強度Sの設定作業と同一であるので、ここではその説明は省略する。
When the tilt
下側の撮影画像に対する傾斜補正強度Sをも設定し、あおり補正決定ボタン55が押されると、図12に示すように、先の画面で設定された条件に基づいてあおり補正された撮影画像を表示するメイン画像表示エリア56と、設定された傾斜補正強度より1ランク下の傾斜補正強度であおり補正された撮影画像を表示する弱補正画像表示エリア57と、設定された傾斜補正強度より1ランク上の傾斜補正強度であおり補正された撮影画像を表示する強補正画像表示エリア58と、メイン画像表示エリア56で表示された補正画像であおり補正を決定する際に用いる決定ボタン59aと、あおり補正の条件を設定し直すために再度前の画面に戻るための戻りボタン59bとからなる判定画面が表示される。このような構成により、最も満足できるあおり補正を行うことができる。
When the tilt correction strength S for the lower photographed image is also set and the tilt
上述した実施の形態では、プリントステーション1Bは、印画紙Pに対し、露光エンジンを備えたプリント露光部14で撮影画像の露光を行い、この露光後の印画紙Pを複数の現像処理する、いわゆる銀塩写真プリント方式を採用していたが、もちろん、本発明におけるプリントステーション1Bは、このような方式に限定されるわけではなく、例えば、フィルムや紙にインクを吐出して画像を形成するインクジェットプリント方式や感熱転写シートを用いた熱転写方式など、種々の写真プリント方式を採用することができる。
In the above-described embodiment, the
本発明は、写真撮影において生じるあおり歪みを有する撮影画像をデジタル画像処理を用いてあおり補正する際のアルゴリズムを提供しており、写真プリントに関するすべての分野に適用できる。 The present invention provides an algorithm for correcting a tilted image having a tilt distortion that occurs in photography using digital image processing, and can be applied to all fields related to photographic printing.
23:モニタ
25:マウス(操作入力デバイス)
24:キーボード(操作入力デバイス)
60:あおり補正手段
61:基準軸設定部
62:傾斜補正強度設定部
63:直線式定義部
64:座標変換設定部
65:画素位置演算部
66:あおり補正画像生成部
70:画像処理部
23: Monitor 25: Mouse (operation input device)
24: Keyboard (operation input device)
60: tilt correction means 61: reference axis setting unit 62: tilt correction intensity setting unit 63: linear equation definition unit 64: coordinate conversion setting unit 65: pixel position calculation unit 66: tilt correction image generation unit 70: image processing unit
Claims (5)
撮影画像において前記基準軸に沿う方向をx座標方向と定義し、撮影画像の前記x座標方向の画素数と同じ数の前記基準軸より外側に離れるほど大きな傾きをもつx座標修正用直線式が定義され、このx座標修正用直線式を用いて補正画像画素のx座標に対応する元画像画素のx座標を決定し、当該補正画像画素のx座標と当該決定された元画像画素のx座標とに基づいて、あおり補正された画像の直線性を維持するように前記補正画像の各画素に対応する前記元画像画素のx座標をシフトさせることを特徴とするあおり補正方法。 A tilt correction method for correcting a captured image having tilt distortion, which is a tilt correction for correcting a tilt axis based on a reference axis for correcting tilt distortion based on the tilt distortion on the captured image displayed on a monitor. Intensity is input and set, and a plurality of linear expressions having a larger inclination as they move away from the reference axis are defined based on the set inclination correction intensity as a linear expression with zero inclination as the reference axis, and the defined In a method of performing tilt correction using an inverse transformation of coordinate transformation such that each linear equation is parallel to the reference axis,
The direction along the reference axis in the captured image is defined as the x-coordinate direction, the x coordinate correcting for linear equation having a large inclination farther outward than the same number the reference axis of the number of pixels x coordinate direction of the photographed image The x coordinate of the original image pixel that is defined and that corresponds to the x coordinate of the corrected image pixel is determined using the linear equation for correcting the x coordinate, and the x coordinate of the corrected image pixel and the determined x coordinate of the original image pixel And shifting the x coordinate of the original image pixel corresponding to each pixel of the corrected image so as to maintain the linearity of the corrected image.
モニタに表示された前記撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸と前記傾斜歪みを補正するための傾斜補正強度を入力設定し、前記基準軸を傾きゼロの直線式として前記設定された傾斜補正強度に基づいて前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義し、前記定義された各直線式が前記基準軸に対して平行となるような座標変換の逆変換を用いてあおり補正を行うようにコンピュータに実行させるあおり補正プログラムにおいて、
撮影画像において前記基準軸に沿う方向をx座標方向と定義し、撮影画像の前記x座標方向の画素数と同じ数の前記基準軸より外側に離れるほど大きな傾きをもつx座標修正用直線式が定義され、このx座標修正用直線式を用いて補正画像画素のx座標に対応する元画像画素のx座標を決定し、当該補正画像画素のx座標と当該決定された元画像画素のx座標とに基づいて、あおり補正された画像の直線性を維持するように前記補正画像の各画素に対応する前記元画像画素のx座標をシフトさせることを特徴とするあおり補正プログラム。 A tilt correction program for correcting a shot image having tilt distortion,
On the captured image displayed on the monitor, a reference axis for correcting inclination distortion based on distortion and an inclination correction strength for correcting the inclination distortion are input and set, and the reference axis is set as a linear expression with zero inclination. Coordinates that define a plurality of linear expressions having larger inclinations as they move away from the reference axis based on the set inclination correction intensity, and the defined linear expressions are parallel to the reference axis In the tilt correction program that causes a computer to perform tilt correction using the inverse transformation of the transformation,
The direction along the reference axis in the captured image is defined as the x-coordinate direction, the x coordinate correcting for linear equation having a large inclination farther outward than the same number the reference axis of the number of pixels x coordinate direction of the photographed image The x coordinate of the original image pixel that is defined and that corresponds to the x coordinate of the corrected image pixel is determined using the linear equation for correcting the x coordinate, and the x coordinate of the corrected image pixel and the determined x coordinate of the original image pixel And a shift correction program that shifts the x coordinate of the original image pixel corresponding to each pixel of the corrected image so as to maintain the linearity of the corrected image.
モニタに表示された前記撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸を入力設定する基準軸設定部と、
前記傾斜歪みを補正するための傾斜補正強度を入力設定する傾斜補正強度設定部と、
前記基準軸を傾きゼロの直線式として前記設定された傾斜補正強度に基づいて前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義する直線式設定部と、
撮影画像において前記基準軸に沿う方向をx座標方向と定義し、前記基準軸より外側に離れるほど大きな傾きをもつよう定義される撮影画像の前記x座標方向の画素数と同じ数のx座標修正用直線式を用いて補正画像画素のx座標に対応する元画像画素のx座標を決定し、当該補正画像画素のx座標と当該決定された元画像画素のx座標とに基づいて、前記定義された各直線式が前記基準軸に対して平行となるような座標変換の際に生じるあおり補正された画像の非直線性を修正するように前記補正画像の各画素に対応する前記元画像画素のx座標をシフトさせる修正機能を備えた前記座標変換の逆変換を設定する座標変換設定部と、
あおり歪み補正後の各画素に対応する前記撮影画像の画素位置を前記座標変換設定部で設定された座標変換の逆変換を用いて求める画素位置演算部と、
前記求められた画素位置から濃度補間法に基づいて前記あおり補正画像の対象画素の濃度値を求めるあおり補正画像生成部と、
前記あおり補正画像に基づいて写真プリントを出力する写真プリント部と、
からなることを特徴とするあおり補正機能付き写真プリント装置。 In a photo printing apparatus with a tilt correction function for correcting a shot image having tilt distortion,
A reference axis setting unit that inputs and sets a reference axis for correcting tilt distortion based on distortion on the captured image displayed on the monitor;
An inclination correction intensity setting unit for inputting and setting an inclination correction intensity for correcting the inclination distortion;
A linear equation setting unit that defines a plurality of linear equations having larger inclinations as they move away from the reference axis based on the set inclination correction strength as a linear equation with zero inclination as the reference axis,
The direction along the reference axis is defined as the x-coordinate direction in the captured image, x-coordinate correction of the same number as the number of pixels the x coordinate direction of the captured image is defined as having a large inclination farther outward from the reference axis An x-coordinate of the original image pixel corresponding to the x-coordinate of the corrected image pixel is determined using a linear equation, and the definition is made based on the x-coordinate of the corrected image pixel and the determined x-coordinate of the original image pixel The original image pixel corresponding to each pixel of the corrected image so as to correct the nonlinearity of the tilt-corrected image generated in the coordinate conversion so that each linear equation is parallel to the reference axis A coordinate transformation setting unit for setting inverse transformation of the coordinate transformation having a correction function for shifting the x coordinate of
A pixel position calculation unit for obtaining a pixel position of the photographed image corresponding to each pixel after tilt distortion correction by using the inverse transformation of the coordinate transformation set by the coordinate transformation setting unit;
A tilt correction image generation unit for determining a density value of a target pixel of the tilt correction image based on a density interpolation method from the determined pixel position;
A photo print unit for outputting a photo print based on the tilt correction image;
A photo printing apparatus with a tilt correction function characterized by comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003363235A JP4431948B2 (en) | 2003-10-23 | 2003-10-23 | A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003363235A JP4431948B2 (en) | 2003-10-23 | 2003-10-23 | A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005128758A JP2005128758A (en) | 2005-05-19 |
JP4431948B2 true JP4431948B2 (en) | 2010-03-17 |
Family
ID=34642620
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003363235A Expired - Fee Related JP4431948B2 (en) | 2003-10-23 | 2003-10-23 | A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4431948B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4907470B2 (en) * | 2006-08-30 | 2012-03-28 | パナソニック株式会社 | Image signal processing apparatus, image encoding apparatus and image decoding apparatus, method thereof, processor thereof and image processor for video conference system |
-
2003
- 2003-10-23 JP JP2003363235A patent/JP4431948B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005128758A (en) | 2005-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20050008254A1 (en) | Image generation from plurality of images | |
JP3902173B2 (en) | Image scaling method and photo printing apparatus for implementing the method | |
JP4655210B2 (en) | Density correction curve generation method and density correction curve generation module | |
JP4207125B2 (en) | Image correction determination method and image processing apparatus using the method | |
JP4798446B2 (en) | Photographed image correction method and photographed image correction module | |
JP4431948B2 (en) | A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function | |
JP4378611B2 (en) | A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function | |
JP2005159387A (en) | Method of determining density characteristic curve and density correction management apparatus for executing this method | |
JP4284604B2 (en) | Contrast adjustment method and contrast adjustment apparatus for implementing the method | |
JP4731202B2 (en) | Color correction processing method and color correction processing apparatus using the same | |
JP4793648B2 (en) | Image correction unit and image correction program | |
JP2005107654A (en) | Method for correcting camera movement and photo printing device with function to correct camera movement | |
JP4655211B2 (en) | Generation method, generation program and generation module of correction characteristics used for contrast correction | |
JP2006072743A (en) | Catch light composition method and device | |
JP2008289073A (en) | Photographic frame image processing apparatus and photographic processing system in which the same is incorporated | |
JP2007074664A (en) | Image processing method, image processing program and image processing apparatus | |
JP2008079196A (en) | Image correcting method, image correcting program and image correcting module | |
JP2005275900A (en) | Image processing method for particulate noise suppression, program and image processor executing this method | |
JP4433285B2 (en) | Image processing method for correcting unnecessary area of image | |
JP2006135743A (en) | Image correction determining method and image processor using the method | |
JP4835900B2 (en) | Image processing method and image processing apparatus for image data from a digital camera | |
JP2000115481A (en) | Digital image processing method for printing original images read and magnified by scanner | |
JP2006054715A (en) | Image correction determination method and image processing unit using the same | |
JP2004312091A (en) | Digital photograph printer | |
JP4442586B2 (en) | Image processing apparatus and image processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060725 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090528 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090604 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090722 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090820 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090904 |
|
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: 20091126 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20091209 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |