JP4378611B2 - 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 PDF

Info

Publication number
JP4378611B2
JP4378611B2 JP2003363236A JP2003363236A JP4378611B2 JP 4378611 B2 JP4378611 B2 JP 4378611B2 JP 2003363236 A JP2003363236 A JP 2003363236A JP 2003363236 A JP2003363236 A JP 2003363236A JP 4378611 B2 JP4378611 B2 JP 4378611B2
Authority
JP
Japan
Prior art keywords
tilt
reference axis
distortion
correction
inclination
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 - Lifetime
Application number
JP2003363236A
Other languages
Japanese (ja)
Other versions
JP2005128759A (en
Inventor
宏 鳥羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Noritsu Koki Co Ltd
Original Assignee
Noritsu Koki Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Noritsu Koki Co Ltd filed Critical Noritsu Koki Co Ltd
Priority to JP2003363236A priority Critical patent/JP4378611B2/en
Publication of JP2005128759A publication Critical patent/JP2005128759A/en
Application granted granted Critical
Publication of JP4378611B2 publication Critical patent/JP4378611B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

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.

特開2001−84365 号公報(段落番号0014−0037、図6)JP 2001-84365 A (paragraph number 0014-0037, FIG. 6) 特開2001−177716号公報(段落番号0027−0052、図9)JP 2001-177716 A (paragraph number 0027-0052, FIG. 9)

上記実状に鑑み、本発明の課題は、直感的で簡単な操作入力設定により、風景などを被写体とした撮影画像に対して、満足できるあおり補正画像が迅速に得られる技術を提供することである。   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. .

上記目的を達成するため、本発明によるあおり歪みを有する撮影画像を補正するあおり補正方法は、モニタに表示された前記撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸を入力設定するステップと、前記傾斜歪みを補正するための傾斜補正強度を入力設定するステップと、前記撮影画像において、前記基準軸と直交し、傾斜歪みが生じていない側の端辺に位置する各画素を通り、前記基準軸を傾きゼロの直線式とし、前記基準軸より最も外側に離れた直線の傾きを前記設定された傾斜補正強度に基づいて決定される傾きとし、前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義するステップと、前記定義された各直線式が前記基準軸に対して平行となる座標変換の逆変換を求めるステップと、あおり歪み補正後の各画素に対応する前記撮影画像の画素位置を前記逆変換を用いて求めるステップと、前記求められた画素位置から濃度補間法に基づいて前記あおり補正画像の対象画素の濃度値を求めるステップとから構成されている。 In order to achieve the above object, the tilt correction method for correcting a shot image having a tilt distortion according to the present invention inputs and sets a reference axis for correcting tilt distortion based on the distortion on the shot image displayed on the monitor. And step for inputting and setting an inclination correction intensity for correcting the inclination distortion, and each pixel located on an edge of the photographed image that is orthogonal to the reference axis and has no inclination distortion. As described above, the reference axis is a linear equation with zero inclination, the inclination of the straight line farthest outside from the reference axis is the inclination determined based on the set inclination correction strength, and the further away from the reference axis, Defining a plurality of linear equations having a large inclination, obtaining an inverse transformation of coordinate transformation in which each of the defined linear equations is parallel to the reference axis, Determining the pixel position of the photographed image corresponding to each pixel after only correction using the inverse transform, and calculating the density value of the target pixel of the tilt correction image from the calculated pixel position based on a density interpolation method. It consists of the steps to find.

この構成では、まずモニタに表示された撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸、つまりそのような傾斜歪みが生じていない又はほとんど生じていない基準軸(画像を90度回転させると垂直線は水平線になるので、ここでは基準軸は水平線としておく)を入力設定する。もちろん、垂直線を基準軸とするような入力設定も可能である。いずれにしても、この入力設定作業では、簡単には、あおり歪みが生じていない撮影視点をポインティングデバイス等の操作入力デバイスを指示することで、この撮影視点を通る水平線を定めることができ、この水平線を基準軸とする。あおり歪みに基づく傾斜歪みはこの基準軸から外側に離れるほど大きくなっているが、直感的に得られるその最大の傾斜歪み具合から傾斜補正強度を入力設定する。傾斜歪みが大きいと思われるほど傾斜補正強度を大きく設定する。これらの入力設定情報に基づいて、前記基準軸を傾きゼロの直線式としてこの基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義する。その際、これらの直線式がもつ最大の傾きは前述した傾斜補正強度に応じて限定され、基準軸より最も外側に定義される直線式が最大の傾きをもつことになるが、それより基準軸に近い直線式ほどその傾きが小さくなるように定義されている。つまり、基準軸である傾きがゼロである直線式から順にその傾きを大きくしながらその外側に直線式が定義されるのである。次いで、このように定義された複数の直線式を基準軸に対して平行になるような座標変換を考えると、この座標変換が各直線式によって規定される斜めに延びた画素群を水平化する、いわゆる傾斜歪みを補正する座標変換となる。実際の補正画像を求める処理としては、元画像を補正画像に変形処理する際の常套手段として、補正画像における画素位置に対応する元画像の画素位置を算定することになるので、先の座標変換の逆変換を用いることになる。このようにして得られたあおり補正画像の1つの画素に対応する撮影画像の画素位置は一般的には整数にはならず、つまり隣り合う画素の影響を受け合う画素位置となるので、それ自体はよく知られた濃度補間法を用いてあおり補正画像の対象画素濃度値が求められる。以上のように、この方法では、撮影画像から基準軸と傾斜補正強度を設定するだけで、傾斜歪みを設定された傾斜補正強度に応じて補正したあおり補正画像が作り出される。従って、風景撮影などの画像であっても、直感的な判断でその傾斜歪みを解消することが可能となる。   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. In general, the pixel position of the captured image corresponding to one pixel of the tilt-corrected image obtained in this way is not an integer, that is, a pixel position that is affected by 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, a tilt-corrected image in which the tilt distortion is corrected according to the set tilt correction strength is created only by setting the reference axis and the tilt correction strength from the captured image. Therefore, even for images such as landscape photography, the tilt distortion can be eliminated by intuitive judgment.

また、上記構成では、複数の直線式が、撮影画像において、基準軸と直交し、傾斜歪みが生じていない側の端辺に位置する各画素を通るよう定義しているため、前述した逆変換を用いて補正画像を構成する全ての画素に直接元画像の画素を対応づけることが可能となる。つまり、最も外側の直線式と基準軸によって区画される撮影画像は両側辺が垂直な台形形状となっているが、その長い方の側辺を形成する画素列の各画素から短い方の側辺に直線を引くことにより、少なくとも1本の直線はその内部の画素を通ることになるからである。 Further, in the above configuration, since a plurality of linear expressions are defined so as to pass through each pixel that is orthogonal to the reference axis in the captured image and that is located on the edge on the side where no tilt distortion occurs, the above-described inverse transform It is possible to directly associate the pixels of the original image with all the pixels constituting the corrected image using . In other words, most but outside of the captured image both sides partitioned by a linear equation and the reference axis is a vertical trapezoidal shape, the side of the shorter from each pixel of the pixel row which forms the longer side of This is because by drawing a straight line on the side, at least one straight line passes through the pixels inside.

また、本発明は、上述したあおり補正方法をコンピュータに実行させるプログラムやそのプログラムを記録した媒体も権利の対象とするものである。   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.

本発明では、さらに、上述したあおり補正方法を採用したあおり補正機能付き写真プリント装置も権利の対象としており、このあおり補正機能付き写真プリント装置は、モニタに表示された前記撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸を入力設定する基準軸設定部と、前記傾斜歪みを補正するための傾斜補正強度を入力設定する傾斜補正強度設定部と、前記撮影画像において、前記基準軸と直交し、傾斜歪みが生じていない側の端辺に位置する各画素を通り、前記基準軸を傾きゼロの直線式とし、前記基準軸より最も外側に離れた直線の傾きを前記設定された傾斜補正強度に基づいて決定される傾きとし、前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義する直線式設定部と、前記定義された各直線式が前記基準軸に対して平行となる座標変換の逆変換を求める座標変換設定部と、あおり歪み補正後の各画素に対応する前記撮影画像の画素位置を前記逆変換を用いて求める画素位置演算部と、前記求められた画素位置から濃度補間法に基づいて前記あおり補正画像の対象画素の濃度値を求めるあおり補正画像生成部と、前記あおり補正画像に基づいて写真プリントを出力する写真プリント部と、から構成されている。当然ながら、このあおり補正機能付き写真プリント装置も上述したあおり補正方法におけるすべての作用効果を得ることができる。 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 that inputs and sets a reference axis for correcting inclination distortion based on the above, an inclination correction intensity setting unit that inputs and sets inclination correction intensity for correcting the inclination distortion , and the reference in the captured image The reference axis is a linear equation with zero inclination passing through each pixel that is orthogonal to the axis and located on the edge where no tilt distortion occurs, and the inclination of the straight line that is farthest outward from the reference axis is set as described above. and the slope is determined based on the inclination correction intensity, and a linear type setting unit that defines a plurality of linear equation with a large slope farther outward from the reference axis, wherein the defined A coordinate conversion setting unit for obtaining a reverse transformation of a coordinate transformation in which a linear expression is parallel to the reference axis, and a pixel for obtaining a pixel position of the photographed image corresponding to each pixel after tilt distortion correction using the inverse transformation A position calculation unit, a tilt correction image generation unit that calculates a density value of a target pixel of the tilt correction image based on a density interpolation method from the determined pixel position, and a photo that outputs a photo print based on the tilt correction image And a print unit. Naturally, this photographic printing apparatus with a tilt correction function can also obtain all the effects of the tilt correction method described above.

さらにこのあおり補正機能付き写真プリント装置の好適な実施形態の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 operation station 1A for processing a photographed image taken from an image input medium such as a print station 1B and a developed photographic film 2a or a digital camera memory card 2b to generate and transfer print data used in the print station 1B. It consists of and.

この写真プリント装置はデジタルミニラボとも称せられるものであり、図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, and as can be understood from FIG. The back print unit 13 prints print processing information such as color correction information and frame number on the back side of the photographic paper P, and the print exposure unit 14 cuts the print paper P into the size. A photographed image is exposed on the surface of the photographic paper P, and the exposed photographic paper P is sent to a processing tank unit 15 having a plurality of development processing tanks for development processing. After drying, the photographic paper P, that is, the photographic prints P, sent to the sorter 17 from the transverse feed conveyor 16 at the upper part of the apparatus is collected in a plurality of trays of the sorter 17 in a state of being sorted in order units (see FIG. 1). ).

上述した印画紙Pに対する各種処理に合わせた搬送速度で印画紙Pを搬送するために印画紙搬送機構18が敷設されている。印画紙搬送機構18は、印画紙搬送方向に関してプリント露光部14の前後に配置されたチャッカー式印画紙搬送ユニット18aを含む複数の挟持搬送ローラ対から構成されている。   A photographic paper transport mechanism 18 is laid to transport the photographic paper P at a transport speed in accordance with various processes for the photographic paper P described above. The photographic paper transport mechanism 18 is composed of a plurality of nipping and transporting roller pairs including a chucker type photographic paper transport unit 18a disposed before and after the print exposure unit 14 in the photographic paper transport direction.

プリント露光部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 operation station 1A along the main scanning direction. A line exposure head for irradiating laser beams of the three primary colors (1) is provided. The processing tank unit 15 includes a color developing tank 15a for storing a color developing processing liquid, a bleach-fixing tank 15b for storing a bleach-fixing processing liquid, and a stabilizing tank 15c for storing a stable processing liquid.

前記操作ステーション1Aのデスク状コンソールの上部位置には、写真フィルム2aの撮影画像コマから撮影画像データを取得するフィルムスキャナ20が配置されており、デジタルカメラ等に装着される撮影画像記録媒体2bとして用いられている各種半導体メモリやCD−Rなどから撮影画像データを取得するメディアリーダ21は、この写真プリント装置のコントローラ3として機能する汎用パソコンに組み込まれている。この汎用パソコンには、さらに各種情報を表示するモニタ23、各種設定や調整を行う際に用いる操作入力部として利用される操作入力デバイスとしてのキーボード24やマウス25も接続されている。   A film scanner 20 for obtaining photographed image data from photographed image frames of the photographic film 2a is arranged at the upper position of the desk-like console of the operation station 1A, and is used as a photographed image recording medium 2b mounted on a digital camera or the like. A media reader 21 that acquires photographed image data from various semiconductor memories and CD-Rs that are used is incorporated in a general-purpose personal computer that functions as the controller 3 of this photographic printing apparatus. The general-purpose personal computer is also connected with a monitor 23 for displaying various information, and a keyboard 24 and a mouse 25 as operation input devices used as an operation input unit used for various settings and adjustments.

この写真プリント装置のコントローラ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 controller 3 of this photographic printing apparatus uses a CPU as a core member and constructs a functional unit for performing various operations of the photographic printing apparatus by hardware and / or software, as shown in FIG. As described above, the functional unit particularly related to the present invention includes a data pre-processing unit 31 that takes captured image data read by the scanner 20 and the media reader 21 and performs pre-processing necessary for the next processing, Graphic user interface (hereinafter referred to as GUI) that generates control commands from creation of graphic operation screens including various windows and various operation buttons and user operation input through such graphic operation screens (using a pointing device such as keyboard 24 and mouse 25). GUI section 33 for constructing An image corresponding to the photographed image data transferred from the data preprocessing unit 31 to the memory 30 in order to generate desired print data based on a control command sent from the UI unit 33 or an operation command input directly from the keyboard 24 or the like. A print management unit 32 that performs processing and the like, a pre-judge print operation such as color correction, a simulated image as a print source image and an expected finished print image, and graphic data sent from the GUI unit 33 are displayed on the monitor 23. And a print data generation unit for generating print data suitable for the print exposure unit 14 provided in the print station 1B based on the processed captured image data for which image processing has been completed. 36 and raw shot image data according to customer requirements Or been processed image processing is completed photographed image data and the like formatter 37 that formats the format for writing to CD-R and the like.

データ前処理部31は、撮影画像記録媒体がフィルム2aの場合プレスキャンモードと本スキャンモードとのスキャンデータを別々にメモリ30に送り込み、それぞれの目的に合わせた前処理を行う。また、撮影画像記録媒体がメモリカード2bの場合取り込んだ撮影画像データにサムネイル画像データ(低解像度データ)が含まれている場合はモニタ23での一覧表示などの目的で使用するため撮影画像の本データ(高解像度データ)とは別にメモリ30に送り込むが、もしサムネイル画像データが含まれていない場合は本データから縮小画像を作り出してサムネイル画像データとしてメモリ30に送り込む。   When the photographic image recording medium is the film 2a, the data preprocessing unit 31 sends the scan data for the pre-scan mode and the main scan mode separately to the memory 30, and performs preprocessing for each purpose. When the captured image recording medium is the memory card 2b, when captured image data includes thumbnail image data (low resolution data), the captured image book is used for the purpose of displaying a list on the monitor 23. It is sent to the memory 30 separately from the data (high resolution data), but if thumbnail image data is not included, a reduced image is created from this data and sent to the memory 30 as thumbnail image data.

プリント管理部32は、後で詳しく説明されるがモニタ23に表示された撮影画像にあおり歪みが生じている場合そのあおり歪みを補正するあおり補正手段60及びメモリ30に展開された撮影画像データに対して解像度変換、色補正、拡縮、画像回転、画像合成、フィルタリング(ぼかしやシャープネスなど)、トリミングなどのフォトレタッチ処理を施す画像処理部70を含んでいる。   As will be described in detail later, the print management unit 32 converts the warp distortion in the shot image displayed on the monitor 23 and the shot image data developed in the memory 30 when the warp distortion occurs. On the other hand, it includes an image processing unit 70 that performs photo retouching processing such as resolution conversion, color correction, enlargement / reduction, image rotation, image synthesis, filtering (such as blurring and sharpness), and trimming.

あおり補正手段60は、図4に示すように、モニタ23に表示された撮影画像の特定箇所をマウス25やキーボード24の特定キーで指定することでこの特定箇所を通る水平線をあおり歪みに基づく傾斜歪みを補正するための基準軸として入力設定する基準軸設定部61と、前記傾斜歪みを補正するための傾斜補正強度を入力設定する傾斜補正強度設定部62と、前記基準軸を傾きゼロの直線式として前記設定された傾斜補正強度に基づいて前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義する直線式設定部63と、前記定義された各直線式が前記基準軸に対して平行となる座標変換の逆変換を求める座標変換設定部64と、あおり歪み補正後の各画素に対応する前記撮影画像の画素位置を前記逆変換を用いて求める画素位置演算部65と、前記求められた画素位置から濃度補間法に基づいて前記あおり補正画像の対象画素の濃度値を求めるあおり補正画像生成部66とから構成されている。   As shown in FIG. 4, the tilt correction means 60 designates a specific portion of the photographed image displayed on the monitor 23 with a specific key of the mouse 25 or the keyboard 24, thereby tilting the horizontal line passing through the specific portion based on the tilt distortion. A reference axis setting unit 61 for input setting as a reference axis for correcting distortion, an inclination correction intensity setting unit 62 for inputting and setting an inclination correction intensity for correcting the tilt distortion, and a straight line with zero inclination for the reference axis As a formula, a linear formula setting unit 63 that defines a plurality of linear formulas having larger inclinations as they move away from the reference axis based on the set tilt correction strength, and each of the defined linear formulas is used as the reference axis. A coordinate transformation setting unit 64 for obtaining an inverse transformation of the coordinate transformation which is parallel to the image, and an image for obtaining the pixel position of the photographed image corresponding to each pixel after tilt distortion correction using the inverse transformation. A position computing section 65, and a tilt correction image generation unit 66. based on the density interpolation from the determined pixel position to determine the concentration value of the target pixel of the perspective correction image.

このように構成されたあおり補正手段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 monitor 23 has a tilt distortion based on the distortion in the direction extending from the upper right to the lower left of the screen, and the reverse half of the captured image is generated in the lower half of the captured image. It is assumed that a reference axis passing through a so-called shooting viewpoint in which tilting distortion does not occur is set substantially at the center of the screen.

まず、ここでは撮影画像の上半分で生じている傾斜歪みを補正する手順だけを説明するが、そのような撮影画像の上半分で生じている傾斜歪みを補正する手順は、撮影画像の下半分で生じている傾斜歪みを補正する方法のために簡単に適用できる。   First, only the procedure for correcting the tilt distortion occurring in the upper half of the photographed image will be described here, but the procedure for correcting the tilt distortion occurring in the upper half of the photographed image is described below. Can be easily applied to the method of correcting the tilt distortion occurring in

このあおり補正では、図5に示すように、基準軸Eの上側に位置する上側撮影画像がM×(N+1)個の画素からなる画像データとし、傾斜歪みに対応するように右端の列に属する各画素から左端へ引かれた直線L(n)(nは0〜Nまでの整数である)を定義する。その際、左下角の画素位置をこれらの直線式の原点としておく。基準軸Eから最も外に離れた直線L(N)が最大の傾きを持つことになるが、この最大の傾きは傾斜補正強度設定部62で設定された傾斜補正強度をSxとして、次式で求められる基準傾きαによって限定される。
α=((N+1)/M)×Sx
N/Mは上側撮影画像の対角線の傾きを表しており、上述した直線L(n)はこの傾きより大きな傾きを持つことはできないので、傾斜補正強度Sxは1〜0の間の小数である。例えば、傾斜補正強度Sxが0.5ならば、基準傾きαは前記対角線の傾きの半分の大きさとなる。
In this tilt correction, as shown in FIG. 5, the upper photographed image located above the reference axis E is converted to image data composed of M × (N + 1) pixels and belongs to the rightmost column so as to correspond to the tilt distortion. A straight line L (n) (n is an integer from 0 to N) drawn from each pixel to the left end is defined. At this time, the pixel position in the lower left corner is set as the origin of these linear expressions. The straight line L (N) that is farthest away from the reference axis E has the maximum inclination. This maximum inclination is expressed by the following equation, where the inclination correction intensity set by the inclination correction intensity setting unit 62 is Sx. It is limited by the required reference inclination α.
α = ((N + 1) / M) × Sx
N / M represents the slope of the diagonal line of the upper photographed image, and since the straight line L (n) described above cannot have a slope larger than this slope, the slope correction strength Sx is a decimal number between 1 and 0. . For example, if the inclination correction intensity Sx is 0.5, the reference inclination α is half the inclination of the diagonal line.

前述した直線L(n)は、次の直線式で表され、
Y=A(n)・X+B(n)、
各直線の傾きA(n)は、直線L(N)が最も外側の直線であるのでA(N)が一番大きくて、基準軸Eと一致する直線L(0)の傾きA(0)が0となり、その間の直線の傾きは基準軸Eから外に離れる直線ほど大きくなる必要がある。このような条件から、ここでは各直線の傾きA(n)は、次式のように定義されている。
A(n)=(n/N)×α
例えば、A(N)は(N/N)×αとなり、αに等しくなり、A(0)は0となる。
直線L(n)のY切片であるB(n)の値は、図6から明らかなように、次式で求められる。
B(n)=n−A(n)×M
これにより、全ての直線L(n)が以下のように定義され、演算可能となる。
Y=A(n)・X+n−A(n)×M
なお、Xを0〜(M−1)の整数をとる離散的変数mに置き換えると、
Y=Γ(m,n)=A(n)・m+n−A(n)×M・・・(1)
となり、簡単なループ計算でYの値群を求めることができる。
The straight line L (n) described above is represented by the following linear equation:
Y = A (n) · X + B (n),
The slope A (n) of each straight line is the outermost straight line L (N), so A (N) is the largest, and the slope A (0) of the straight line L (0) that coincides with the reference axis E 0, and the slope of the straight line between them needs to increase as the straight line moves away from the reference axis E. From these conditions, the slope A (n) of each straight line is defined as follows:
A (n) = (n / N) × α
For example, A (N) is (N / N) × α, equal to α, and A (0) is 0.
As is apparent from FIG. 6, the value of B (n), which is the Y intercept of the straight line L (n), is obtained by the following equation.
B (n) = n−A (n) × M
As a result, all the straight lines L (n) are defined as follows and can be calculated.
Y = A (n) .X + n−A (n) × M
If X is replaced with a discrete variable m that takes an integer from 0 to (M−1),
Y = Γ (m, n) = A (n) · m + n−A (n) × M (1)
Thus, the Y value group can be obtained by a simple loop calculation.

図7から良く理解できるように、原理的には、直線L(N)にかかっている画素P群を上端行である第1行の画素Q群として移動させることで、つまり一般的には直線L(n)にかかっている画素Pを第(N−n+1)行の画素Q群として移動させることで、傾斜歪みは解消される。このような座標変換は、直線L(n)群を用いた座標変換によって簡単に行うことができる。しかしながら、元画像を補正画像に変形処理する際の常套手段として、補正画像における画素位置に対応する元画像の画素位置を算定することになるので、ここでも、そのような座標変換の逆変換を用いて、補正画像の各画素位置に対応する元画像の画素位置を見つけ出す。   As can be understood from FIG. 7, in principle, the pixel P group on the straight line L (N) is moved as the pixel Q group of the first row which is the top row, that is, generally a straight line. By moving the pixel P covering L (n) as the pixel Q group in the (N−n + 1) th row, the tilt distortion is eliminated. Such coordinate conversion can be easily performed by coordinate conversion using the straight line L (n) group. However, as a conventional means for transforming the original image into a corrected image, the pixel position of the original image corresponding to the pixel position in the corrected image is calculated. The pixel position of the original image corresponding to each pixel position of the corrected image is found.

図8では、そのような逆変換に基づく補正画像の各画素位置に対応する元画像の画素位置を見つけ出す仕組みが模式化されている。
例えば、補正画像の上端行で左端列に位置する画素Q(1,1)に対応する元画像の画素位置に関して、その列位置は、このあおり補正の原理から、補正画像の画素Qと同じとなることは明らかであり、その行位置は、上述した式(1)に、m=0、n=Nを代入して求められるYの値(=Γ(0,N))となる。補正画像の画素Q(4,4)に対応する元画像の画素の位置は(4,Γ(3,N-3))となる。
FIG. 8 schematically shows a mechanism for finding the pixel position of the original image corresponding to each pixel position of the corrected image based on such inverse transformation.
For example, regarding the pixel position of the original image corresponding to the pixel Q (1,1) located in the leftmost column in the uppermost row of the corrected image, the column position is the same as the pixel Q of the corrected image from the principle of tilt correction. Obviously, the row position is the value of Y (= Γ (0, N)) obtained by substituting m = 0 and n = N into the above-described equation (1). The position of the pixel of the original image corresponding to the pixel Q (4,4) of the corrected image is (4, Γ (3, N-3)).

一般には、このYの値は、整数とはならず小数をもつことになるので、求められた元画像の画素P(1,Γ(0,N))の画素値(濃度値)は、良く知られている濃度補間法を用いて決定され、その画素値(濃度値)が画素Q(1,1)に割り与えられる。濃度補間法としては、ニアレストネイバー法、バイリニア法、バイキュービック法などが知られているが、ここでは高解像度画像である撮影画像を対象としているので、バイリニア法やバイキュービック法が好ましい。このようにして、順次、補正画像の各画素の濃度値がその対応する元画像の画素位置から求められる。   In general, since the value of Y is not an integer but has a decimal number, the pixel value (density value) of the obtained pixel P (1, Γ (0, N)) of the original image is good. It is determined using a known density interpolation method, and the pixel value (density value) is assigned to the pixel Q (1,1). As a 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 way, the density value of each pixel of the corrected image is sequentially obtained from the corresponding pixel position of the original image.

図9には、傾斜歪みの傾き方向が逆の場合での傾斜歪み補正を示している。ここでは、基準軸Eの右端の画素位置が直線式の原点に設定されており、上述したような手順を得て、その直線L(n)は次式で表すことができる。
Y=A(n)・X+n
なお、Xを0〜(M−1)の整数をとる離散的変数mに置き換えると、
Y=Δ(m,n)=A(n)・m+n・・・(2)
となり、式(1)と同様な簡単なループ計算でYの値群を求めることができる。
FIG. 9 shows tilt distortion correction when the tilt direction of the tilt distortion is reversed. Here, the pixel position at the right end of the reference axis E is set to the straight line origin, and the straight line L (n) can be expressed by the following expression by obtaining the procedure described above.
Y = A (n) · X + n
If X is replaced with a discrete variable m that takes an integer from 0 to (M−1),
Y = Δ (m, n) = A (n) · m + n (2)
Thus, the Y value group can be obtained by a simple loop calculation similar to the equation (1).

次にこの写真プリント装置において、撮影画像コマをモニタ画面でチェックしながら、必要に応じてあおり補正を行う際の典型的な流れを説明する。   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 scanner 20 or the media reader 21 is used according to the type of the photo recording medium brought by the customer as the print source, and any digitized photographed image data is sent to the memory 30 through the data preprocessing unit 31. .

撮影画像データがメモリ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 memory 30, each photographed image frame is sequentially displayed in the photographed image display frame 41 of the operation input screen 40 called a pre-judge screen shown in FIG. In FIG. 10, the 6-frame display screen is selected. A color density correction setting area 42 and a print number setting area 43 are arranged below each captured image display frame 41. The color density correction setting area 42 is provided with setting frames of “yellow”, “magenta”, “cyan”, and “density”, and the correction amount “N” represents neutral and means no correction. The print number setting area 43 is provided with a print number input frame, and “pass” means that printing is not performed. A print condition display field 44 is arranged below the pre-judge screen 40. The print channel name applied to the photo print output, the print size included in the print channel, the necessity of index print, The necessity of media output is shown. The print size indicates the size of the finished photo print P. In this embodiment, the print size is determined by the photographic paper width and the feed length. When the tilt correction processing, color density correction setting, and print number setting for each shot image frame are completed on the pre-judge screen 40, the corresponding shot image data is sent to the print data generation unit 36 and converted into print data.

特定の撮影画像コマに対してあおり補正のような特別な処理を行う場合には、より大画面での撮影画像コマの表示が必要となる。このため、プレジャッジ画面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 pre-judge screen 40 by double-clicking the mouse 25 or the like, a one-frame enlarged screen 50 as shown in FIG. 11 is displayed. An enlarged captured image display area 51 is arranged at the center of the one-frame enlarged screen 50, and an image processing setting frame 52 is arranged at the right end.

一コマ拡大画面50が表示されると、ここでは図示されていないが、「傾斜歪みを補正するための基準軸Eを設定してください」というメッセージが表示され、拡大撮影画像表示エリア51においていわゆるあおり歪みが生じていない点である撮影画像視点を通る直線である基準軸Eをマウス25のクリックアンドドラッグ操作でもって設定する。   When the one-frame enlargement screen 50 is displayed, although not shown here, a message “Please set the reference axis E for correcting the tilt distortion” is displayed, and the enlarged photographed image display area 51 is so-called. A reference axis E, which is a straight line passing through the captured image viewpoint, which is a point where no tilt distortion has occurred, is set by a click-and-drag operation of the mouse 25.

画像処理設定枠52には、スライドバーをマウス25を用いて操作することで表示される値を見ながら前述した傾斜補正強度Sを設定する傾斜補正強度設定エリア53と、設定された基準軸Eと傾斜補正強度Sに基づいて算出された最も外側に設定される直線の傾きである最大傾斜角度の値を表示する傾斜角表示エリア54と、設定された基準軸Eと傾斜補正強度Sに基づいたあおり補正を行うことを決定するあおり補正決定ボタン55などが配置されている。   The image processing setting frame 52 includes a tilt correction strength setting area 53 for setting the tilt correction strength S described above while viewing a value displayed by operating the slide bar using the mouse 25, and a set reference axis E. And the inclination angle display area 54 for displaying the value of the maximum inclination angle which is the inclination of the straight line set on the outermost side calculated based on the inclination correction strength S, and based on the set reference axis E and the inclination correction strength S. A tilt correction determination button 55 and the like for determining to perform tilt correction are arranged.

このあおり補正決定ボタン55が押されると、次に基準軸Eの下側の撮影画像に対する傾斜補正強度Sを設定することになる。この設定作業は上述した基準軸Eの上側の撮影画像に対する傾斜補正強度Sの設定作業と同一であるので、ここではその説明は省略する。   When the tilt correction determination button 55 is pressed, the inclination correction strength S for the lower-side captured image of the reference axis E is set next. Since this setting operation is the same as the setting operation of the inclination correction strength S for the captured image above the reference axis E described above, the description thereof is omitted here.

下側の撮影画像に対する傾斜補正強度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 correction determination button 55 is pressed, as shown in FIG. 12, the tilt-corrected photographed image is displayed based on the conditions set on the previous screen. A main image display area 56 to be displayed, a weak correction image display area 57 that displays a corrected captured image that is one level lower than the set inclination correction intensity, and one rank from the set inclination correction intensity. A strong correction image display area 58 for displaying the corrected captured image with the upper inclination correction intensity, a correction image displayed in the main image display area 56, and a determination button 59a used for determining correction, and a tilt correction. A determination screen including a return button 59b for returning to the previous screen again to reset the condition is displayed. With such a configuration, the most satisfactory tilt correction can be performed.

上述した実施の形態では、プリントステーション1Bは、印画紙Pに対し、露光エンジンを備えたプリント露光部14で撮影画像の露光を行い、この露光後の印画紙Pを複数の現像処理する、いわゆる銀塩写真プリント方式を採用していたが、もちろん、本発明におけるプリントステーション1Bは、このような方式に限定されるわけではなく、例えば、フィルムや紙にインクを吐出して画像を形成するインクジェットプリント方式や感熱転写シートを用いた熱転写方式など、種々の写真プリント方式を採用することができる。   In the above-described embodiment, the print station 1B exposes a photographed image to the photographic paper P by the print exposure unit 14 having an exposure engine, and performs a plurality of development processes on the photographic paper P after the exposure. Although the silver salt photographic printing method was adopted, of course, the printing station 1B according to the present invention is not limited to such a method. For example, an ink jet that ejects ink onto a film or paper to form an image. Various photographic printing methods such as a printing method and a thermal transfer method using a thermal transfer sheet can be employed.

本発明は、写真撮影において生じるあおり歪みを有する撮影画像をデジタル画像処理を用いてあおり補正する際のアルゴリズムを提供しており、写真プリントに関するすべての分野に適用できる。   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.

本発明によるあおり補正技術を採用した写真プリント装置の外観図External view of photographic printing apparatus employing tilt correction technology according to the present invention 写真プリント装置のプリントステーションの構成を模式的に示す模式図Schematic diagram schematically showing the configuration of the print station of the photo printing device 写真プリント装置のコントローラ内に構築される機能要素を説明する機能ブロック図Functional block diagram explaining the functional elements built in the controller of the photo printing device あおり補正手段の機能構成を示す機能ブロック図Functional block diagram showing the functional configuration of the tilt correction means あおり補正の原理とその際用いられる数式を示す説明図Explanatory drawing showing the principle of tilt correction and the mathematical formula used あおり補正の原理とその際用いられる数式を示す説明図Explanatory drawing showing the principle of tilt correction and the mathematical formula used あおり補正の原理とその際用いられる数式を示す説明図Explanatory drawing showing the principle of tilt correction and the mathematical formula used あおり補正の原理とその際用いられる数式を示す説明図Explanatory drawing showing the principle of tilt correction and the mathematical formula used あおり補正の原理とその際用いられる数式を示す説明図Explanatory drawing showing the principle of tilt correction and the mathematical formula used プレジャッジ画面図Pre-judge screen あおり補正時の条件設定画面図Condition setting screen for tilt correction あおり補正時の判定画面図Judgment screen during tilt correction

符号の説明Explanation of symbols

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 (4)

あおり歪みを有する撮影画像を補正するあおり補正方法において、
モニタに表示された前記撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸を入力設定するステップと、
前記傾斜歪みを補正するための傾斜補正強度を入力設定するステップと、
前記撮影画像において、前記基準軸と直交し、傾斜歪みが生じていない側の端辺に位置する各画素を通り、前記基準軸を傾きゼロの直線式とし、前記基準軸より最も外側に離れた直線の傾きを前記設定された傾斜補正強度に基づいて決定される傾きとし、前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義するステップと、
前記定義された各直線式が前記基準軸に対して平行となる座標変換の逆変換を求めるステップと、
あおり歪み補正後の各画素に対応する前記撮影画像の画素位置を前記逆変換を用いて求めるステップと、
前記求められた画素位置から濃度補間法に基づいて前記あおり補正画像の対象画素の濃度値を求めるステップと、
からなることを特徴とするあおり補正方法。
In the tilt correction method for correcting a shot image having tilt distortion,
A step of inputting and setting a reference axis for correcting tilt distortion based on distortion on the captured image displayed on the monitor;
Inputting and setting an inclination correction intensity for correcting the inclination distortion;
In the photographed image, the pixel passes through each pixel that is orthogonal to the reference axis and is located on the edge where no tilt distortion occurs, and the reference axis is a linear expression with zero inclination , and is farthest from the reference axis. a method and inclination, to define a plurality of linear equation with a large slope farther outward from the reference axis is determined based on the slope of the straight line on the set tilt correction intensity,
Obtaining an inverse transformation of coordinate transformation in which each of the defined linear expressions is parallel to the reference axis;
Obtaining the pixel position of the captured image corresponding to each pixel after tilt distortion correction using the inverse transformation;
Obtaining a density value of a target pixel of the tilt correction image based on a density interpolation method from the obtained pixel position;
A tilt correction method comprising:
あおり歪みを有する撮影画像を補正するあおり補正プログラムにおいて、
モニタに表示された前記撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸を入力設定する機能と、
前記傾斜歪みを補正するための傾斜補正強度を入力設定する機能と、
前記撮影画像において、前記基準軸と直交し、傾斜歪みが生じていない側の端辺に位置する各画素を通り、前記基準軸を傾きゼロの直線式とし、前記基準軸より最も外側に離れた直線の傾きを前記設定された傾斜補正強度に基づいて決定される傾きとし、前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義する機能と、
前記定義された各直線式が前記基準軸に対して平行となる座標変換の逆変換を求める機能と、
あおり歪み補正後の各画素に対応する前記撮影画像の画素位置を前記逆変換を用いて求める機能と、
前記求められた画素位置から濃度補間法に基づいて前記あおり補正画像の対象画素の濃度値を求める機能と、
をコンピュータに実行させることを特徴とするあおり補正方法。
In the tilt correction program that corrects shot images with tilt distortion,
A function of inputting and setting a reference axis for correcting tilt distortion based on distortion on the captured image displayed on the monitor;
A function of inputting and setting an inclination correction intensity for correcting the inclination distortion;
In the photographed image, the pixel passes through each pixel that is orthogonal to the reference axis and is located on the edge where no tilt distortion occurs, and the reference axis is a linear expression with zero inclination , and is farthest from the reference axis. and the inclination is determined based on the slope of the straight line on the set tilt correction intensity, and ability to define multiple linear equation with a large slope farther outward from the reference axis,
A function for obtaining an inverse transformation of coordinate transformation in which each of the defined linear expressions is parallel to the reference axis;
A function for obtaining a pixel position of the captured image corresponding to each pixel after tilt distortion correction using the inverse transformation;
A function 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;
A tilt correction method that causes a computer to execute.
あおり歪みを有する撮影画像を補正するあおり補正機能付き写真プリント装置において、
モニタに表示された前記撮影画像上であおり歪みに基づく傾斜歪みを補正するための基準軸を入力設定する基準軸設定部と、
前記傾斜歪みを補正するための傾斜補正強度を入力設定する傾斜補正強度設定部と、
前記撮影画像において、前記基準軸と直交し、傾斜歪みが生じていない側の端辺に位置する各画素を通り、前記基準軸を傾きゼロの直線式とし、前記基準軸より最も外側に離れた直線の傾きを前記設定された傾斜補正強度に基づいて決定される傾きとし、前記基準軸より外側に離れるほど大きな傾きをもつ複数の直線式を定義する直線式設定部と、
前記定義された各直線式が前記基準軸に対して平行となる座標変換の逆変換を求める座標変換設定部と、
あおり歪み補正後の各画素に対応する前記撮影画像の画素位置を前記逆変換を用いて求める画素位置演算部と、
前記求められた画素位置から濃度補間法に基づいて前記あおり補正画像の対象画素の濃度値を求めるあおり補正画像生成部と、
前記あおり補正画像に基づいて写真プリントを出力する写真プリント部と、
からなることを特徴とするあおり補正機能付き写真プリント装置。
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;
In the photographed image, the pixel passes through each pixel that is orthogonal to the reference axis and is located on the edge where no tilt distortion occurs, and the reference axis is a linear expression with zero inclination , and is farthest from the reference axis. A straight line setting unit that defines a plurality of straight line expressions having a large inclination as the inclination of a straight line is determined based on the set inclination correction strength, and the distance from the reference axis increases.
A coordinate transformation setting unit for obtaining an inverse transformation of coordinate transformation in which each defined linear equation is parallel to the reference axis;
A pixel position calculation unit that obtains a pixel position of the captured image corresponding to each pixel after tilt distortion correction using the inverse transformation;
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:
複数の異なる傾斜補正強度に基づくあおり補正画像が前記モニタに比較表示されることを特徴とする請求項に記載のあおり補正機能付き写真プリント装置。 4. The photo printing apparatus with a tilt correction function according to claim 3 , wherein a tilt correction image based on a plurality of different tilt correction strengths is displayed in comparison with the monitor.
JP2003363236A 2003-10-23 2003-10-23 A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function Expired - Lifetime JP4378611B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003363236A JP4378611B2 (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
JP2003363236A JP4378611B2 (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
JP2005128759A JP2005128759A (en) 2005-05-19
JP4378611B2 true JP4378611B2 (en) 2009-12-09

Family

ID=34642621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003363236A Expired - Lifetime JP4378611B2 (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) JP4378611B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4858689B2 (en) * 2006-06-05 2012-01-18 セイコーエプソン株式会社 Image processing system, projector, program, and information storage medium
JP5292678B2 (en) * 2006-07-10 2013-09-18 カシオ計算機株式会社 Projector, pointer display processing method, and program

Also Published As

Publication number Publication date
JP2005128759A (en) 2005-05-19

Similar Documents

Publication Publication Date Title
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
JP4378611B2 (en) A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function
JP4366634B2 (en) Noise pixel map creation method, apparatus and program for implementing the method, and photo print apparatus
JP4798446B2 (en) Photographed image correction method and photographed image correction module
JP2006324987A (en) Photographic image processing method, photographic image processing program, and photographic image processing module
JP4431948B2 (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
US20050213839A1 (en) Image processing method and software for suppressing granular noise and image processing apparatus for implementing the 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
JP2008109203A (en) Conversion table generating method for photographic image correction, and photographic printing device implementing method
JP2006072743A (en) Catch light composition method and device
JP2008079196A (en) Image correcting method, image correcting program and image correcting module
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
JP4433285B2 (en) Image processing method for correcting unnecessary area of image
JP2006135743A (en) Image correction determining method and image processor using the method
JP4442586B2 (en) Image processing apparatus and image processing program
JP2006054715A (en) Image correction determination method and image processing unit using the same
JP2004312091A (en) Digital photograph printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060725

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060824

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

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: 20090820

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: 20090902

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121002

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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: 20121002

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350