JP2007323583A - Image converter and image conversion program - Google Patents

Image converter and image conversion program Download PDF

Info

Publication number
JP2007323583A
JP2007323583A JP2006156207A JP2006156207A JP2007323583A JP 2007323583 A JP2007323583 A JP 2007323583A JP 2006156207 A JP2006156207 A JP 2006156207A JP 2006156207 A JP2006156207 A JP 2006156207A JP 2007323583 A JP2007323583 A JP 2007323583A
Authority
JP
Japan
Prior art keywords
image
divided
grid
conversion
partial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006156207A
Other languages
Japanese (ja)
Other versions
JP4760550B2 (en
Inventor
Toshio Motegi
敏雄 茂出木
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2006156207A priority Critical patent/JP4760550B2/en
Publication of JP2007323583A publication Critical patent/JP2007323583A/en
Application granted granted Critical
Publication of JP4760550B2 publication Critical patent/JP4760550B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image converter with a high degree of freedom for performing different image conversion in respective partial areas of an original image. <P>SOLUTION: This image converter is provided with a splitting grid generation means generating a first splitting grid for splitting the original image into a plurality of partial areas and a second splitting grid for defining a converted image as one or more split areas, a selection means selecting one or more partial areas for performing image conversion among a plurality of partial areas split by the first splitting grid, an area correspondence decision means associating each of the split areas with the selected partial area, a pixel value extraction means calculating positional coordinates of the partial areas corresponding to respective pixels constituting the split area by using the corresponding partial area as to each of the split areas and extracting pixel values of pixels in the obtained positional coordinates, and a means giving the pixel values extracted respectively by the pixel value extraction means as pixel values of the respective pixels constituting the split area as to each of the split areas and generating a converted image formed of these split areas. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、原画像に含まれる所定の領域を抽出して変換画像を作成する画像変換装置に係るものであり、特に原画像の複数の部分領域毎に、夫々異なる画像変換を施す画像変換装置及び画像変換プログラムに関する。   The present invention relates to an image conversion apparatus that extracts a predetermined area included in an original image and creates a converted image, and in particular, an image conversion apparatus that performs different image conversion for each of a plurality of partial areas of an original image. And an image conversion program.

この種の画像変換装置としては、例えばAdobe社のPhotoshop(登録商標)など、種々の画像処理機能を搭載させたの汎用画像処理ツールがある。そして、このPhotoshop(登録商標)には、原画像の指定した単一範囲に対して種々の幾何変換により変換画像を作成する技術が提供されている。   As this type of image conversion apparatus, for example, there is a general-purpose image processing tool equipped with various image processing functions, such as Photoshop (registered trademark) manufactured by Adobe. This Photoshop (registered trademark) is provided with a technique for creating a converted image by various geometric transformations for a single range designated by an original image.

また、特許文献1には、3次元の立体モデルを三角形や四角形の小図形の集合で3次元グリッド状に連結して定義し、その3次元グリッドパターンを原画の2次元画像データ上に平面展開した2次元グリッドパターンとを対応付けながら、原画の画素を3次元グリッドにマッピングする技術が開示されている。   In Patent Document 1, a three-dimensional solid model is defined by connecting a triangular or quadrangular small figure in a three-dimensional grid, and the three-dimensional grid pattern is developed on the original two-dimensional image data. A technique for mapping pixels of an original image to a three-dimensional grid while associating with the two-dimensional grid pattern thus disclosed is disclosed.

一方、特許文献2には、カメラで平面の被写体を撮影する際にレンズによる光学的歪みをもつ画像に対して、幾何学的な補正を施す方法が、特許文献3には、プロジェクタで映像をスクリーンに投影する際に、ソース映像の補正量を決定するにあたり、グリッドパターンを投影させて、直交からのズレ量を計測することにより、あらかじめソースの映像に変形を加え、投影した状態で水平・垂直を維持することが可能な技術が、夫々開示されている。
特開昭64−29976号 特許第3429280号 特開2006−33357号
On the other hand, Patent Document 2 discloses a method of performing geometric correction on an image having optical distortion caused by a lens when a planar object is photographed by a camera. When projecting to the screen, when determining the correction amount of the source image, the grid pattern is projected and the amount of deviation from the orthogonality is measured, so that the source image is deformed in advance, Each of the technologies capable of maintaining verticality is disclosed.
JP-A 64-29976 Patent No. 3429280 JP 2006-33357 A

上述した、既存の画像処理ツールでは、複数の領域に対して同一の変換処理を適用することは可能であるが、領域ごとに異なる変換処理を行なう場合には、領域毎に、個別に繰り返し変換処理内容を定義して行なう必要があった。そのため、複数の領域で異なる変換を行なう際には処理が煩雑になり、更には領域間の像の連結性を維持することができないという問題がある。また、変換機能も、線形代数式で定義可能なアフィン変換に限定される。   In the existing image processing tool described above, it is possible to apply the same conversion process to a plurality of areas. However, when performing different conversion processes for each area, the conversion is individually repeated for each area. It was necessary to define the contents of processing. For this reason, there is a problem that processing is complicated when different conversions are performed in a plurality of areas, and further, image connectivity between the areas cannot be maintained. The conversion function is also limited to affine transformation that can be defined by linear algebra.

そこで、本発明は上記課題に鑑みてなされたものであり、原画像の複数の部分領域毎に夫々異なる画像変換を施すことができる自由度の高い画像変換装置及び画像変換プログラムを提供することを目的する。   Therefore, the present invention has been made in view of the above problems, and provides a highly flexible image conversion apparatus and image conversion program capable of performing different image conversion for each of a plurality of partial regions of an original image. Purpose.

上記課題を解決すべく、請求項1に記載の発明は、原画像に含まれる所定の領域を抽出して変換画像を作成する画像変換装置において、前記原画像を複数の部分領域に分割するための第1分割グリッドを生成し、前記変換画像を少なくとも一以上の分割領域として定義するための第2分割グリッドを生成する分割グリッド生成手段と、前記第1分割グリッドにて分割された前記複数の部分領域のうち、画像変換を行なう少なくとも一以上の部分領域を選択する選択手段と、各前記分割領域について、前記選択された部分領域との対応付けを行なう領域対応決定手段と、各前記分割領域について、前記分割領域に対応する部分領域を用いて、当該分割領域を構成する各画素に対応する前記部分領域の位置座標を夫々算出し、当該部分領域に含まれる画素であって算出された位置座標に位置する画素の画素値を抽出する画素値抽出手段と、前記各分割領域について、前記分割領域を構成する各画素の画素値として、前記画素値抽出手段にて夫々抽出された画素値を付与し、これら分割領域から成る前記変換画像を作成する変換画像作成手段と、を有することを特徴とする画像変換装置である。   In order to solve the above-described problem, the invention according to claim 1 is an image conversion apparatus that creates a converted image by extracting a predetermined region included in an original image, and divides the original image into a plurality of partial regions. Generating a first divided grid and generating a second divided grid for defining the converted image as at least one or more divided regions; and a plurality of the plurality of divisions divided by the first divided grid Of the partial areas, selection means for selecting at least one partial area for image conversion, area correspondence determining means for associating each of the divided areas with the selected partial area, and each of the divided areas , Using the partial area corresponding to the divided area, the position coordinates of the partial area corresponding to each pixel constituting the divided area are calculated and included in the partial area. A pixel value extracting means for extracting a pixel value of a pixel located at a calculated position coordinate, and the pixel value extracting means for each divided area as a pixel value of each pixel constituting the divided area And a converted image creating means for creating the converted image composed of these divided regions, to which the pixel values extracted respectively in the above are applied.

これによれば、原画像の第1分割グリッドと変換画像の第2分割グリッドを用いて、領域毎に画像変換を行なうよう構成したので、原画像の複数の部分領域毎に、夫々異なる画像変換を迅速に施すことができる。   According to this, since the image conversion is performed for each area using the first divided grid of the original image and the second divided grid of the converted image, different image conversion is performed for each of the plurality of partial areas of the original image. Can be applied quickly.

上記課題を解決すべく、請求項2に記載の発明は、請求項1に記載の画像変換装置において、前記分割グリッド生成手段は、複数のグリッド線を用いて前記第1分割グリッド及び第2分割グリッドを生成し、当該各グリッド線が交差しない範囲で、前記各グリッド線の交点及び分割グリッドの輪郭を示すグリッド線と、前記各グリッド線との接点の位置を変更し、前記部分領域及び前記分割領域の形状を補正する補正手段を有することを特徴とする画像変換装置である。   In order to solve the above-mentioned problem, the invention according to claim 2 is the image conversion apparatus according to claim 1, wherein the divided grid generation means uses the plurality of grid lines to form the first divided grid and the second divided grid. A grid is generated, and within the range where the grid lines do not intersect, the positions of the intersections of the grid lines and the grid lines indicating the outlines of the divided grids and the contact points of the grid lines are changed. An image conversion apparatus having a correction unit that corrects the shape of a divided area.

これによれば、様々な形状の第1分割グリッド及び第2分割グリッドを生成することができるので、画像変換の自由度が向上し、多彩かつ非線形な画像変換処理を簡便な操作で行なうことが可能な画像変換装置を提供することができる。   According to this, since the first divided grid and the second divided grid having various shapes can be generated, the degree of freedom of image conversion is improved, and various and non-linear image conversion processing can be performed with a simple operation. A possible image conversion device can be provided.

上記課題を解決すべく、請求項3に記載の発明は、請求項1又は2に記載の画像変換装置において、前記選択手段にて選択される部分領域の数と、前記変換画像の分割領域の数が等しいことを特徴とする画像変換装置である。   In order to solve the above problem, the invention according to claim 3 is the image conversion apparatus according to claim 1 or 2, wherein the number of partial areas selected by the selection unit and the divided areas of the converted image are determined. This is an image conversion device characterized in that the numbers are equal.

これによれば、原画像の複数の部分領域のうち、選択された部分領域に対して、夫々異なる画像変換を迅速に行なうことができる。   According to this, it is possible to quickly perform different image conversions on the selected partial areas among the plurality of partial areas of the original image.

上記課題を解決すべく、請求項4に記載の発明は、請求項1乃至3のいずれか一項に記載の画像変換装置において、前記第1分割グリッドにて分割される前記原画像の部分領域の数と、前記第2分割グリッドにて定義される前記変換画像の分割領域の数が等しく、前記選択手段にて全ての前記部分領域が選択されることを特徴とする画像変換装置である。   In order to solve the above problem, the invention according to claim 4 is the image conversion device according to any one of claims 1 to 3, wherein the partial area of the original image is divided by the first divided grid. Is equal to the number of divided areas of the converted image defined by the second divided grid, and all the partial areas are selected by the selection means.

これによれば、原画像の第1分割グリッドと変換画像の第2分割グリッドを用いて、領域毎に画像変換を行なうよう構成したので、原画像の複数の部分領域毎に、夫々異なる画像変換を迅速に施すことができる。   According to this, since the image conversion is performed for each area using the first divided grid of the original image and the second divided grid of the converted image, different image conversion is performed for each of the plurality of partial areas of the original image. Can be applied quickly.

上記課題を解決すべく、請求項5に記載の発明は、請求項1乃至4のいずれか一項に記載の画像変換装置において、前記原画像が、複数の画像フレームから構成される動画用画像である場合、前記複数の画像フレームから代表画像フレームを決定する代表決定手段を有し、前記分割グリッド生成手段は、決定された前記代表画像フレームを複数の部分領域に分割するための前記第1分割グリッドを生成し、前記代表画像フレームに対応する変換画像フレームを少なくとも一以上の前記分割領域として定義するための前記第2分割グリッドを生成し、前記分割グリッド生成手段にて生成された前記代表画像フレームにかかる第1分割グリッド及び第2分割グリッドを記憶する記憶手段を有し、前記代表画像フレーム及び他の前記画像フレームに対応する変換画像フレームを作成する際には、前記変換画像作成手段は、前記記憶手段に記憶した前記第1分割グリッド及び第2分割グリッドを用いて、当該代表画像フレーム及び前記他の画像フレームに対応する変換画像フレームを夫々作成すると共に、作成された前記変換画像フレームに基づいて、変換動画用画像を作成することを特徴とする画像変換装置である。   In order to solve the above-mentioned problem, the invention according to claim 5 is the image conversion apparatus according to any one of claims 1 to 4, wherein the original image is a moving image composed of a plurality of image frames. If there is a representative image determination unit for determining a representative image frame from the plurality of image frames, the division grid generation unit is configured to divide the determined representative image frame into a plurality of partial regions. The divided grid is generated, the second divided grid for defining the converted image frame corresponding to the representative image frame as at least one or more divided areas is generated, and the representative grid generated by the divided grid generating means Storage means for storing the first divided grid and the second divided grid related to the image frame, and the representative image frame and the other image frames When generating the corresponding converted image frame, the converted image generating means uses the first divided grid and the second divided grid stored in the storage means to generate the representative image frame and the other image frames. A corresponding converted image frame is created, and a converted moving image is created based on the created converted image frame.

これによれば、代表画像フレームの画像変換の際に使用した分割グリッドを、他の画像フレームの画像変換にそのまま利用することができるので、原画像が、複数の画像フレームから構成される動画用画像であっても、各画像フレームに対して迅速に画像処理を行ない、作成された各変換画像フレームに基づいて、変換動画用画像を作成することができる。   According to this, since the divided grid used in the image conversion of the representative image frame can be used as it is for the image conversion of the other image frames, the original image is for a moving image composed of a plurality of image frames. Even for an image, it is possible to quickly perform image processing on each image frame and create a converted moving image based on each created converted image frame.

上記課題を解決すべく、請求項6に記載の発明は、請求項5に記載の画像変換装置において、前記代表決定手段は、前記動画用画像を構成する前記複数の画像フレームのうち、最初の画像フレームを前記代表画像フレームとして決定することを特徴とする画像変換装置である。   In order to solve the above-mentioned problem, the invention according to claim 6 is the image conversion apparatus according to claim 5, wherein the representative deciding means is the first of the plurality of image frames constituting the moving image. An image conversion apparatus that determines an image frame as the representative image frame.

これによれば、最初の画像フレームの分割グリッドを、他の画像フレームの画像変換にそのまま利用することができるので、各画像フレームに対してより迅速に画像処理を行なうことができる。   According to this, since the division grid of the first image frame can be used as it is for image conversion of other image frames, image processing can be performed more quickly on each image frame.

上記課題を解決すべく、請求項7に記載の発明は、請求項6に記載の画像変換装置において、前記分割グリッド生成手段は、前記動画用画像を構成する前記複数の画像フレームのうち、最後の画像フレームを複数の部分領域に分割するための前記第1分割グリッドを生成し、前記最後の画像フレームに対応する変換画像フレームを少なくとも一以上の前記分割領域として定義するための前記第2分割グリッドを生成し、前記記憶手段は、前記分割グリッド生成手段にて生成された前記最後の画像フレームにかかる第1分割グリッド及び第2分割グリッドを記憶し、前記変換画像作成手段は、前記代表画像フレームと前記最後の画像フレーム以外の他の画像フレームに対応する変換画像フレームを作成する際には、前記記憶手段に記憶した前記代表画像フレームにかかる第1分割グリッドと、前記最後の画像フレームにかかる第1分割グリッドを線形補間した線形補間グリッドと、前記記憶手段に記憶した前記代表画像フレームにかかる第2分割グリッドと、前記最後の画像フレームにかかる第2分割グリッドを線形補間した線形補間グリッドと、を用いて、前記他の画像フレームに対応する変換画像フレームを夫々作成すると共に、作成された各前記変換画像フレームに基づいて、変換動画用画像を作成することを特徴とする画像変換装置である。   In order to solve the above problem, according to a seventh aspect of the present invention, in the image conversion device according to the sixth aspect, the divided grid generation means is the last of the plurality of image frames constituting the moving image. Generating the first divided grid for dividing the image frame into a plurality of partial areas, and defining the converted image frame corresponding to the last image frame as at least one of the divided areas A grid is generated, and the storage unit stores a first divided grid and a second divided grid relating to the last image frame generated by the divided grid generation unit, and the converted image generation unit stores the representative image. When creating a converted image frame corresponding to an image frame other than the frame and the last image frame, the storage means stores the A first divided grid according to the front image frame, a linear interpolation grid obtained by linear interpolation of the first divided grid according to the last image frame, a second divided grid according to the representative image frame stored in the storage means, Using the linear interpolation grid obtained by linearly interpolating the second divided grid for the last image frame, each of the converted image frames corresponding to the other image frames is created, and based on each of the created converted image frames Thus, an image conversion apparatus is characterized in that a converted moving image is created.

これによれば、他の画像フレームである中間の画像フレームに対応する変換画像フレームを、最初と最後の画像フレームの分割グリッドと、これら分割グリッドを線形補間した線形補間グリッドを用いて作成し、作成された各変換画像フレームに基づいて、変換動画用画像を作成するので、変換画像時間と共に画像が徐々に変形するような変換動画用画像を迅速かつ容易に作成することができる。   According to this, a converted image frame corresponding to an intermediate image frame that is another image frame is created using a divided grid of the first and last image frames and a linear interpolation grid obtained by linearly interpolating these divided grids, Since the converted moving image is created based on each created converted image frame, it is possible to quickly and easily create a converted moving image in which the image is gradually deformed with the converted image time.

上記課題を解決すべく、請求項8に記載の発明は、コンピュータを、請求項1乃至7のいずれか一項に記載の画像変換装置として機能させることを特徴とする画像変換プログラムである。   In order to solve the above problem, an invention according to claim 8 is an image conversion program that causes a computer to function as the image conversion apparatus according to any one of claims 1 to 7.

本発明によれば、原画像の複数の部分領域毎に、夫々異なる画像変換を迅速に施すことができる。   According to the present invention, it is possible to quickly perform different image conversion for each of a plurality of partial regions of an original image.

以下、本発明の好適な実施の形態を添付図面に基づいて説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described with reference to the accompanying drawings.

[1.画像変換装置の構成及び機能]
図1は、本発明に係る画像変換装置の構成を示すブロック図である。当該画像変換装置は、汎用のコンピュータを用いることができる。
[1. Configuration and function of image conversion apparatus]
FIG. 1 is a block diagram showing a configuration of an image conversion apparatus according to the present invention. The image conversion apparatus can use a general-purpose computer.

同図に示す如く画像変換装置1は、演算機能を有するコンピュータとしてのCPU(Central Processing Unit)、作業用RAM(Random Access Memory)、各種データ及びプログラム(本発明の画像変換プログラムを含む)を記憶するROM(Read Only Memory)及び発振回路等から構成された制御部11と、画像変換を行なう変換元画像(本発明の原画像の一例)データを含む各種画像データ等を記憶するための記憶部12、画像変換処理に使用する分割グリッドを生成する際にオペレータが各種入力指示を行う入力部13、生成された分割グリッドや、変換元画像及び画像変換の結果得られた変換先画像(本発明の変換画像の一例)等を表示する表示部14を備えて構成され、これら制御部11、記憶部12、入力部13及び表示部14は、バス15を介して相互に接続されている。   As shown in the figure, the image conversion apparatus 1 stores a CPU (Central Processing Unit) as a computer having a calculation function, a working RAM (Random Access Memory), various data and programs (including the image conversion program of the present invention). And a storage unit for storing various image data including a conversion source image (an example of an original image of the present invention) for performing image conversion, and the like. 12. An input unit 13 through which an operator gives various input instructions when generating a divided grid used for image conversion processing, the generated divided grid, a conversion source image, and a conversion destination image obtained as a result of image conversion (the present invention) The display unit 14 displays an example of the converted image), and the control unit 11, the storage unit 12, the input unit 13, and the display unit 14 are connected via a bus 15. They are connected to each other.

記憶部12は、本発明の記憶手段として機能し、変換元画像データを記憶/格納するための変換元画像格納部121と、変換元画像に対して画像変換を行なうべく、後述する画像変換処理によって生成した分割グリッドを記憶/格納するための分割グリッド格納部122と、画像変換の結果得られた変換先画像データを記憶/格納するための変換先画像格納部123と、により構成される。   The storage unit 12 functions as a storage unit of the present invention, and a conversion source image storage unit 121 for storing / storing the conversion source image data, and an image conversion process described later to perform image conversion on the conversion source image. The divided grid storage unit 122 for storing / storing the divided grid generated by the above and the conversion destination image storage unit 123 for storing / storing the conversion destination image data obtained as a result of the image conversion.

そして、制御部11は、各構成部材を制御するための制御情報を生成し、バス15を介して当該制御情報を該当する構成部材に出力して当該各構成部材の動作を統轄制御すると共に、ROM等に記憶された後述する画像変換プログラムを実行することにより、他の構成部材と協動して本発明の分割グリッド生成手段、選択手段、領域対応決定手段、画素値抽出手段、変換画像作成手段、補正手段として機能するようになっている。   And the control part 11 produces | generates the control information for controlling each structural member, outputs the said control information to a corresponding structural member via the bus | bath 15, and carries out control over the operation | movement of each said structural member, By executing an image conversion program, which will be described later, stored in a ROM or the like, the divided grid generation means, selection means, area correspondence determination means, pixel value extraction means, and conversion image creation of the present invention in cooperation with other components Means and correction means.

[2.分割グリッド]
先ず、画像変換の対象となる変換元画像の分割グリッド(本発明の第1分割グリッドの一例)について図2を用いて説明する。
[2. Split grid]
First, a divided grid (an example of a first divided grid of the present invention) of a conversion source image that is an object of image conversion will be described with reference to FIG.

図2は、変換元画像の分割グリッドの説明図である。   FIG. 2 is an explanatory diagram of the division grid of the conversion source image.

同図に示す如く、変換元画像の分割グリッドは、変換元画像と同一の大きさであり、変換元画像を複数の部分領域に分割するための複数のグリッド線により構成される。このグリッド線の本数や位置により、変換元画像を分割する各部分領域の大きさ、形状等を種々指定することができる。   As shown in the figure, the division grid of the conversion source image has the same size as the conversion source image, and includes a plurality of grid lines for dividing the conversion source image into a plurality of partial areas. Depending on the number and position of the grid lines, various sizes, shapes, and the like of the partial areas into which the conversion source image is divided can be designated.

本発明の画像変換処理は、変換元画像の部分領域の画素の画素値を抽出し、当該画素値を、各部分領域に対応する変換先画像の分割領域(本発明の第2分割グリッドの一例)の画素に付与することにより、部分領域毎に、拡大・縮小・切り取り等の画像変換を可能にするものである。   The image conversion process of the present invention extracts pixel values of pixels in the partial area of the conversion source image, and uses the pixel values as divided areas of the conversion destination image corresponding to each partial area (an example of the second divided grid of the present invention). ), It is possible to perform image conversion such as enlargement / reduction / cut-out for each partial area.

図3は、変換元画像の分割グリッドと変換先画像の分割グリッドの説明図である。   FIG. 3 is an explanatory diagram of the division grid of the conversion source image and the division grid of the conversion destination image.

変換先画像の分割グリッドは、変換先画像を複数の分割領域として定義するためのものであり、変換元画像の分割グリッドと同様、複数のグリッド線により構成される。   The division grid of the conversion destination image is for defining the conversion destination image as a plurality of divided areas, and is composed of a plurality of grid lines, like the division grid of the conversion source image.

そして、各分割領域は、夫々変換元画像の部分領域と対応付けられており、分割領域を構成する各画素の画素値には、当該分割領域に対応する部分領域を構成する何れかの画素と同一の画素値が付与される。なお、「部分領域を構成する何れかの画素」の位置座標の算出については、後述する画像変換処理にて詳細に説明する。   Each divided area is associated with a partial area of the conversion source image, and the pixel value of each pixel constituting the divided area includes any pixel constituting the partial area corresponding to the divided area. The same pixel value is given. The calculation of the position coordinates of “any pixel constituting the partial area” will be described in detail in an image conversion process described later.

このように、変換元画像に対する画像処理を、分割グリッドを用いて、各部分領域毎に夫々独立した大きさ形状の分割領域に対応付けて画像変換を行なうため、各部分領域に異なる画像変換(拡大・縮小等)を、一度の処理で行なうことができる。   As described above, since image processing for the conversion source image is performed in association with the divided areas having independent sizes and shapes for each partial area using the divided grid, different image conversions ( Enlargement / reduction, etc.) can be performed in a single process.

[2−1.分割グリッドの生成]
次に、分割グリッドの生成について図4の分割グリッド生成の説明図を参照して説明する。
[2-1. Generate split grid]
Next, generation of a divided grid will be described with reference to an explanatory diagram of divided grid generation in FIG.

先ず、変換元画像と同一の大きさので分割グリッドの輪郭線を定義し、変換元画像の水平方向及び垂直方向に複数のグリッド線(輪郭線となるグリッド線を含む)を生成する(図4(A))。なお、変換元画像の周囲に画像変換の対象としない部分(のりしろ部)がある場合にはその部分を除いたものを、変換元画像とする。また、グリッド線の生成は、表示部14に変換元画像を表示し、表示部14に表示された変換元画像上のポインタを、オペレータが入力部13のマウス等を操作することにより変換元画像とグリッド線を確認しながらグリッド線を作成するよう構成することが好ましい。   First, the outline of the divided grid is defined with the same size as that of the conversion source image, and a plurality of grid lines (including grid lines serving as outlines) are generated in the horizontal direction and the vertical direction of the conversion source image (FIG. 4). (A)). If there is a portion (margin portion) that is not subject to image conversion around the conversion source image, the portion excluding that portion is set as the conversion source image. In addition, the grid line is generated by displaying the conversion source image on the display unit 14, and operating the pointer on the conversion source image displayed on the display unit 14 by operating the mouse or the like of the input unit 13 by the operator. It is preferable that the grid line be created while checking the grid line.

そして、各グリッド線の交点(図4(B)中、△で示す。)を、入力部13のマウス等で操作(クリック&ドラッグ)することにより所望の位置に移動して補正を行ない(図4(C))、変換元画像を複数の部分領域Roに分割するための分割グリッドを生成する(図4(D))。各グリッド線の交点だけでなく、図4(B)において○で示すグリッド線と、輪郭線にかかるグリッド線との接点(輪郭の頂点を除く)も位置補正することができる。各部分領域Roは、夫々隣接する4つの部分領域Roと頂点(上記グリッド線の交点)と辺を共有する。   Then, the intersection of each grid line (indicated by Δ in FIG. 4B) is moved (corrected) by operating (clicking and dragging) with the mouse of the input unit 13 or the like (FIG. 4). 4 (C)), a division grid for dividing the conversion source image into a plurality of partial regions Ro is generated (FIG. 4D). In addition to the intersection of each grid line, the position of the contact point (excluding the vertex of the outline) between the grid line indicated by ◯ in FIG. 4B and the grid line applied to the outline can be corrected. Each partial area Ro shares a vertex (intersection of the grid lines) and a side with four adjacent partial areas Ro.

なお、交点と接点の補正は、グリッド線が交差しない範囲内で行なうこととする。例えば、図5(A)に示す例では、グリッド線が交差しない範囲で交点の補正を行なっているので正しく補正が行なわれている(適)。しかし、図5(B)に示す例では、グリッド線を越えて交点の補正を行なっているので、不適正な補正である(不適)。入力部13のマウス等で交点を移動させる際に、グリッド線を越えて各交点を移動できないようにドラッグ制限を設けるか、ドラッグ中、グリッド線を越えたときに、警告表示(例えば、交差したグリッド線を他のグリッド線と異なる色で表示する等)を行なうよう構成し、オペレータが交点と接点の補正を正しく行なえるよう援助する構成とすることが好ましい。   Note that the correction of the intersection and the contact is performed within a range where the grid lines do not intersect. For example, in the example shown in FIG. 5A, the correction of the intersection is performed within a range where the grid lines do not intersect, so that the correction is correctly performed (suitable). However, in the example shown in FIG. 5B, since the intersection is corrected beyond the grid line, the correction is inappropriate (unsuitable). When moving the intersection with the mouse of the input unit 13 or the like, a drag restriction is provided so that each intersection cannot be moved beyond the grid line, or a warning is displayed when the grid line is crossed during the drag (for example, crossed Preferably, the grid lines are displayed in a different color from the other grid lines), and the operator is assisted to correct the intersections and contacts correctly.

そして、変換先画像の分割グリッドも、上記と同様な手法で各グリッド線にて分割領域を定義することとなる。なお、変換先画像の分割グリッドも、上記と同様に各グリッド線の交点と接点の補正を行ない、種々の非線形形状の分割領域を定義できるが、変換先画像の分割グリッドは4角の大きさが全て90度の四角形で定義するほうが、後に詳述する画素の位置座標の算出演算が容易になる。   The divided grid of the conversion destination image also defines a divided area with each grid line by the same method as described above. In addition, the divided grid of the conversion destination image can also correct the intersections and contact points of the respective grid lines in the same manner as described above to define divided regions having various nonlinear shapes, but the divided grid of the conversion destination image has a square size. Are all defined by a 90-degree square, the calculation calculation of pixel position coordinates, which will be described in detail later, becomes easier.

そして、変換元画像の部分領域Roのうち、画像変換を所望する部分領域Roを選択して、選択した部分領域Roを、変換先画像の分割領域に対応付ける。   Then, the partial area Ro desired to be converted is selected from the partial areas Ro of the conversion source image, and the selected partial area Ro is associated with the divided area of the conversion destination image.

例えば、図6は、全ての部分領域Roが選択され、夫々が、変換先画像の分割領域Rrに対応付けられた場合の一例である。この部分領域Roの選択と、選択された部分領域Roと分割領域Rrとの対応付けも、オペレータが入力部13を操作することにより選択及び紐付けすることにより実行される。また、同図に示すように、全ての部分領域Roが選択され、変換先画像の何れかの分割領域Rrに対応付けられるような場合には、例えば、左上の部分領域Roから順に番号(1)、(2)、・・・、(12)と付与し、分割領域Rrも同様にして番号(1)、(2)、・・・、(12)を付与して、当該番号に基づいて同一の番号を有する部分領域Roと分割領域Rrとが自律的に対応付けられるよう構成してもよい。   For example, FIG. 6 shows an example in which all the partial areas Ro are selected and each is associated with the divided area Rr of the conversion destination image. The selection of the partial area Ro and the association between the selected partial area Ro and the divided area Rr are also performed by the operator selecting and linking them by operating the input unit 13. Also, as shown in the figure, when all the partial areas Ro are selected and associated with any of the divided areas Rr of the conversion destination image, for example, numbers (1) are sequentially assigned from the upper left partial area Ro. ), (2),..., (12), and the divided region Rr is similarly assigned numbers (1), (2),. You may comprise so that the partial area | region Ro and the division | segmentation area | region Rr which have the same number may be matched autonomously.

[2−2.様々な分割グリッドと画像変換の例]
他の例として、図7に示す如く、変換元画像の部分領域Roのうち、四隅の部分領域Roを選択し、夫々を変換先画像の分割領域Rrと対応付けることにより、四隅の部分領域Roのみを拡大抽出した画像変換を行なうことができる。
[2-2. Examples of various division grids and image conversion]
As another example, as shown in FIG. 7, only the four-corner partial areas Ro are selected by selecting the four-corner partial areas Ro from among the partial areas Ro of the conversion-source image and associating them with the divided areas Rr of the conversion-destination image. The image can be expanded and extracted.

更に、図8に示す如く、変換元画像の部分領域Roのうち、変換元画像における部分領域の位置座標(i,j)が、i及びj共に偶数である部分領域Ro((i,j)=(2,2)、(2,4)、(4,2)、(4,4))を選択し、夫々を変換先画像の分割領域Rrと対応付けることにより、変換元画像における部分領域の特定の座標位置のみを抽出した画像変換を行なうことができる。   Furthermore, as shown in FIG. 8, among the partial areas Ro of the conversion source image, the partial areas Ro ((i, j) where the position coordinates (i, j) of the partial areas in the conversion source image are both even. = (2, 2), (2, 4), (4, 2), (4, 4)), and by associating each with the divided area Rr of the conversion destination image, Image conversion in which only specific coordinate positions are extracted can be performed.

また、図9に示す如く、変換先画像を1つの分割領域Rr(1)として定義し、変換元画像の部分領域Roのうち、1つの部分領域Ro(5)を選択して、当該部分領域Roを分割領域Rr(1)と対応付ければ、変換元画像の部分領域Ro(5)だけを切り取り抽出(トリミング)することができる。   Further, as shown in FIG. 9, the conversion destination image is defined as one divided region Rr (1), one partial region Ro (5) is selected from the partial regions Ro of the conversion source image, and the partial region is selected. If Ro is associated with the divided region Rr (1), only the partial region Ro (5) of the conversion source image can be cut out and extracted (trimmed).

図6〜図9を用いて説明したように、選択される部分領域Roの数と、分割領域Rrの数は、同一である必要がある。   As described with reference to FIGS. 6 to 9, the number of selected partial regions Ro and the number of divided regions Rr need to be the same.

以上説明したように、変換元画像に対する画像処理を、各部分領域毎に夫々独立した大きさ形状の分割領域に対応付けて画像変換を行なうため、一回で、部分領域毎に異なる画像変換処理(拡大・縮小等)を施すことができる。   As described above, since the image processing for the conversion source image is performed by associating with the divided areas having independent sizes and shapes for each partial area, different image conversion processes are performed for each partial area at a time. (Enlargement / reduction, etc.) can be applied.

更に具体例を挙げて説明する。   Furthermore, a specific example is given and demonstrated.

図10に示す例は、変換元画像に対しては、下に行くほど大きな部分領域Roとなるような分割グリッドを生成し、変換先画像に対しては、縦方向が同一の長さの矩形形状にて分割領域Rrを定義できるような分割グリッドを生成した場合の画像変換の例である。このような各分割グリッドを用いれば、変換元画像が図中点線で示すような人物を被写体とした写真である場合、被写体に対してその背景を大きくする(ズームアウト)画像変換を行なうことができる。   The example shown in FIG. 10 generates a divided grid that becomes a larger partial area Ro toward the lower side for the conversion source image, and a rectangle having the same length in the vertical direction for the conversion destination image. It is an example of image conversion when a divided grid that can define the divided region Rr by shape is generated. By using each of such divided grids, when the conversion source image is a photograph with a person as a subject as indicated by a dotted line in the figure, image conversion can be performed by enlarging the background of the subject (zoom out). it can.

図11は、変換元画像が地図である場合の画像変換の例である。図11(A)は変換元画像であり、(B)及び(C)は、変換元画像の分割グリッドと、変換元画像とを重畳させて示した図であり、(B)は変換元画像のグリッド線の交点及び接線の補正前の状態、(C)は、グリッド線の交点及び接線の補正後の状態(分割グリッド完了状態)を示す。そして、図11(D)は、変換先画像を定義する分割グリッドと、画像変換が行なわれた結果得られた変換先画像とを重畳させて示した図である。   FIG. 11 is an example of image conversion when the conversion source image is a map. FIG. 11A is a conversion source image, FIGS. 11B and 11C are diagrams showing the conversion source image divided grid and the conversion source image superimposed, and FIG. (C) shows the state after correction of the intersection and tangent of the grid lines (division grid completed state). FIG. 11D is a diagram in which the divided grid defining the conversion destination image and the conversion destination image obtained as a result of the image conversion are superimposed.

変換元画像の部分領域Ro(1)〜(9)は全て画像変換の対象として選択され、各部分領域Roは、分割番号(1)〜(9)に従って、各分割領域Rr(1)〜(9)と対応付けられる。   The partial areas Ro (1) to (9) of the conversion source image are all selected as the objects of image conversion, and each partial area Ro is divided into the divided areas Rr (1) to (9) according to the division numbers (1) to (9). 9).

そして、図11(C)及び(D)に示すように、変換元画像のうち、拡大したい箇所の部分領域Ro(5)だけが、対応する変換先画像の分割領域Rr(5)の矩形形状の大きさよりも小さくなるよう構成する。   Then, as shown in FIGS. 11C and 11D, only the partial area Ro (5) of the part to be enlarged in the conversion source image is the rectangular shape of the corresponding divided area Rr (5) of the conversion destination image. It is configured to be smaller than the size of.

このような状態で、画像変換が行なわれると、分割領域Rr(5)は、部分領域Ro(5)を拡大した画像として表示される。更に、各部分領域Roは、夫々隣接する4つの部分領域Roと頂点(上記グリッド線の交点)と辺を共有しているので、変換元画像を構成する画素を1つも欠くことなく、対応する分割領域の何れかの画素の画素値として抽出する(すなわち、画像変換を行なう)ことができることに加え、更に、夫々隣接する4つの部分領域Roと頂点と辺を共有する各部分領域Roと対応付けられた各分割領域Rrもまた、同様に、夫々隣接する4つの分割領域Rrと頂点と辺を共有する。従って、各部分領域間における画像のつながりを維持して各部分領域Ro毎に異なる画像処理(拡大・縮小)を行なうことができる。よって、図11(C)及び(D)に示すように、変換元画像が分割グリッドによって複数の部分領域Roに分割されているが、頂点と辺を共有するので、地図上の路線、道路、海岸線、文字情報等が夫々の部分領域Roの境界で分断されることなく、連続性を保って拡大縮小の画像処理を行なうことが可能になる。   When image conversion is performed in such a state, the divided region Rr (5) is displayed as an image obtained by enlarging the partial region Ro (5). Further, each partial area Ro shares the vertex (intersection of the grid lines) and the side with the four adjacent partial areas Ro, so that it corresponds without missing one pixel constituting the conversion source image. In addition to being able to extract (that is, to perform image conversion) as a pixel value of any pixel in the divided region, it further corresponds to each of the four partial regions Ro adjacent to each other and each partial region Ro sharing a vertex and side. Similarly, each of the attached divided regions Rr also shares vertices and sides with four adjacent divided regions Rr. Therefore, it is possible to perform different image processing (enlargement / reduction) for each partial region Ro while maintaining the connection of images between the partial regions. Therefore, as shown in FIGS. 11C and 11D, the conversion source image is divided into a plurality of partial regions Ro by the division grid, but since the vertex and the side are shared, the route on the map, the road, It is possible to perform enlargement / reduction image processing while maintaining continuity without dividing the coastline, character information, and the like at the boundary of each partial region Ro.

[3.画像変換処理]
続いて、図を参照して画像変換処理の具体的手法の一例について説明する。
[3. Image conversion processing]
Next, an example of a specific method of image conversion processing will be described with reference to the drawings.

図12は、画像変換処理を示すフローチャートである。この処理は、オペレータによって入力部13を操作して処理の開始が指示されることにより制御部11の制御に基づく以下の処理が開始される。   FIG. 12 is a flowchart showing image conversion processing. In this process, when the operator operates the input unit 13 to instruct the start of the process, the following process based on the control of the control unit 11 is started.

先ず、制御部11は記憶部12の変換元画像格納部121から画像変換の対象となる変換元画像データを取得(取り込む)する(ステップS1)。取得した変換元画像データ(以下、「変換元画像」と言う。)の画像変換を行なうべく、制御部11は、分割グリッド生成手段及び補正手段として機能し、変換元画像の分割グリッド及び変換先画像の分割グリッドを生成し(ステップS2)、生成した分割グリッドを分割グリッド格納部122に格納する。   First, the control unit 11 acquires (captures) conversion source image data to be subjected to image conversion from the conversion source image storage unit 121 of the storage unit 12 (step S1). In order to perform image conversion of the acquired conversion source image data (hereinafter referred to as “conversion source image”), the control unit 11 functions as a division grid generation unit and a correction unit, and converts the division grid and conversion destination of the conversion source image. An image division grid is generated (step S <b> 2), and the generated division grid is stored in the division grid storage unit 122.

そして、分割グリッド格納部122に格納した分割グリッドを用いて画像変換処理を実行する(ステップS3)。   Then, image conversion processing is executed using the divided grid stored in the divided grid storage unit 122 (step S3).

ステップS3における「画像変換処理の実行」では、先ず初めに、制御部11は選択手段として機能し、変換元画像の分割グリッドにより分割された部分領域Roのうち、画像変換を所望する部分領域Ro(n)を選択する(ステップS11)。次に、制御部11は領域対応決定手段として機能し、選択された部分領域Ro(n)と、変換先画像の分割グリッドにより定義された分割領域Rr(n)とを夫々対応付ける(ステップS12)。   In “execution of image conversion process” in step S3, first, the control unit 11 functions as a selection unit, and among the partial areas Ro divided by the division grid of the conversion source image, the partial area Ro for which image conversion is desired. (N) is selected (step S11). Next, the control unit 11 functions as an area correspondence determining unit, and associates the selected partial area Ro (n) with the divided area Rr (n) defined by the divided grid of the conversion destination image (step S12). .

そして、部分領域Ro(n)と分割領域Rr(n)の組の数を示す変数「n」を1として初期化し(ステップS13)、分割領域Rr(n)を構成する画素P(X、Y)を(x1,y1)として初期化する(ステップS14)。以下の処理にて、分割領域Rr(n)の位置座標(x1,y1)に位置する画素Pから順に画素値を付与していく。   Then, a variable “n” indicating the number of sets of the partial region Ro (n) and the divided region Rr (n) is initialized as 1 (step S13), and the pixel P (X, Y) constituting the divided region Rr (n) is initialized. ) Is initialized as (x1, y1) (step S14). In the following process, pixel values are assigned in order from the pixel P located at the position coordinate (x1, y1) of the divided region Rr (n).

先ず、分割領域Rr(n)に対応する部分領域Ro(n)における、分割領域Rr(n)を構成する画素Pに対応する位置座標(Xo、Yo)を算出する(ステップS15)。   First, in the partial area Ro (n) corresponding to the divided area Rr (n), position coordinates (Xo, Yo) corresponding to the pixels P constituting the divided area Rr (n) are calculated (step S15).

ここで、図13を用いて、位置座標(Xo、Yo)の算出手法について詳細に述べる。   Here, the calculation method of the position coordinates (Xo, Yo) will be described in detail with reference to FIG.

図13(A)及び(B)は、分割領域Rrと、当該分割領域Rrに対応する部分領域Roの説明図である。   13A and 13B are explanatory diagrams of the divided region Rr and the partial region Ro corresponding to the divided region Rr.

部分領域Roの4頂点の座標(xo1,yo1)、(xo2,yo2)、(xo3,yo3)、(xo4,yo4)、分割領域Rrの4頂点の座標(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)は、分割グリッドの生成の際に既に知っている既知の値である。   The coordinates (xo1, yo1), (xo2, yo2), (xo3, yo3), (xo4, yo4) of the partial area Ro, the coordinates (x1, y1), (x2, y2) of the four vertices of the divided area Rr ), (X3, y3), and (x4, y4) are known values already known when the divided grid is generated.

従って、未知座標値xo12、yo12、xo43、yo43を求めることで、分割領域Rr(n)中の画素P(X、Y)に対応する部分領域Roの位置座標(Xo、Yo)を、以下の計算式により求めることができる。
<点(xo12,yo12)の算出>
xo12=(xo2−xo1)・(X−x1)/(x2−x1)+xo1
yo12=(yo2−yo1)・(X−x1)/(x2−x1)+yo1
<点(xo43,yo43)の算出>
xo43=(xo3−xo4)・(X−x1)/(x2−x1)+xo4
yo43=(yo3−yo4)・(X−x1)/(x2−x1)+yo4

<点Pに対応する位置座標(Xo、Yo)の算出>
Xo=(xo43−xo12)・(Y−y1)/(y2−y1)+xo12
Yo=(yo43−yo12)・(Y−y1)/(y2−y1)+yo12
Therefore, by obtaining the unknown coordinate values xo12, yo12, xo43, and yo43, the position coordinates (Xo, Yo) of the partial region Ro corresponding to the pixel P (X, Y) in the divided region Rr (n) are expressed as follows: It can be obtained by a calculation formula.
<Calculation of point (xo12, yo12)>
xo12 = (xo2-xo1). (X-x1) / (x2-x1) + xo1
yo12 = (yo2-yo1). (X-x1) / (x2-x1) + yo1
<Calculation of point (xo43, yo43)>
xo43 = (xo3-xo4). (X-x1) / (x2-x1) + xo4
yo43 = (yo3-yo4). (X-x1) / (x2-x1) + yo4

<Calculation of position coordinates (Xo, Yo) corresponding to point P>
Xo = (xo43−xo12) · (Y−y1) / (y2−y1) + xo12
Yo = (yo43−yo12) · (Y−y1) / (y2−y1) + yo12

制御部11は画素値抽出手段として機能し、点Pに対応する位置座標(Xo、Yo)に位置する部分領域Ro中の画素Poの画素値を抽出し(ステップS16)、画素Pに対して抽出された画素Poの画素値を付与する(ステップS17)。   The control unit 11 functions as a pixel value extracting unit, extracts the pixel value of the pixel Po in the partial region Ro located at the position coordinate (Xo, Yo) corresponding to the point P (step S16), A pixel value of the extracted pixel Po is assigned (step S17).

そして、分割領域Rr(n)の全ての画素に対して画素値の付与が完了したか否かを判定し(ステップS18)、未だ分割領域Rr(n)中に画素値を付与していない画素がある場合(ステップS18:No)には、画素P(X、Y)を更新し(ステップS19)、分割領域Rr(n)の全ての画素に対して画素値の付与が完了するまで、ステップS15〜ステップS18の処理を繰り返し行なう。   Then, it is determined whether or not pixel values have been assigned to all the pixels in the divided region Rr (n) (step S18), and pixels that have not yet been given a pixel value in the divided region Rr (n). If there is any (step S18: No), the pixel P (X, Y) is updated (step S19), and the steps until the pixel value assignment for all the pixels in the divided region Rr (n) is completed. The processes from S15 to S18 are repeated.

一方、分割領域Rr(n)の全ての画素に対して画素値の付与が完了した場合(ステップS18:Yes)には、変換先画像の全ての分割領域Rrに対して画素値付与の処理が完了したか否かを判定し(ステップS20)、未だ処理をしていない分割領域Rrがある場合(ステップS20:No)には、変数「n」に1を加算し(ステップS21)、変換先画像の全ての分割領域Rrに対して処理が完了するまで、ステップS14〜ステップS20の処理を繰り返し行なう。   On the other hand, when pixel value assignment has been completed for all the pixels in the divided region Rr (n) (step S18: Yes), pixel value assignment processing is performed for all the divided regions Rr in the conversion destination image. It is determined whether or not the process has been completed (step S20). When there is a divided region Rr that has not been processed (step S20: No), 1 is added to the variable “n” (step S21), and the conversion destination Steps S14 to S20 are repeated until the processing is completed for all the divided regions Rr of the image.

変換先画像の全ての分割領域Rrに対して画素値付与の処理が完了した場合(ステップS20:Yes)には、制御部11は変換画像作成手段として機能し、夫々の画素に画素値が与えられた各分割領域Rrに基づいて変換先画像を生成し、当該変換先画像を変換先画像データとして変換先画像格納部123へ格納して処理を終了する(ステップS22)。   When the pixel value assignment processing has been completed for all the divided regions Rr of the conversion destination image (step S20: Yes), the control unit 11 functions as converted image creation means, and gives a pixel value to each pixel. A conversion destination image is generated based on each divided area Rr, the conversion destination image is stored in the conversion destination image storage unit 123 as conversion destination image data, and the process ends (step S22).

以上説明したように、本実施形態によれば、変換元画像を複数の部分領域Roに分割するための分割グリッドと、変換先画像を少なくとも一以上の分割領域Rrとして定義するための分割グリッドを生成し、複数の部分領域Roのうち、画像変換を行なう部分領域Roとして選択された部分領域Roと、分割領域Rrとを対応付けて、各分割領域Rrについて、対応する部分領域Ro中、分割領域Rrを構成する画素Pに対応する位置座標(Xo、Yo)を算出し、当該位置座標に位置する画素Poの画素値を、画素Pに付与するよう構成したので、夫々の部分領域Roに対して異なる画像変換(拡大・縮小等)を、一度の処理で迅速かつ確実に行なうことができる。   As described above, according to the present embodiment, the division grid for dividing the conversion source image into a plurality of partial regions Ro and the division grid for defining the conversion destination image as at least one or more division regions Rr. Of the plurality of partial regions Ro, the partial region Ro selected as the partial region Ro to be subjected to image conversion is associated with the divided region Rr, and each divided region Rr is divided into the corresponding partial regions Ro. Since the position coordinate (Xo, Yo) corresponding to the pixel P constituting the region Rr is calculated and the pixel value of the pixel Po located at the position coordinate is assigned to the pixel P, each partial region Ro is assigned. On the other hand, different image conversions (enlargement / reduction, etc.) can be performed quickly and reliably in a single process.

また、分割グリッドをグリッド線で生成し、当該グリッド線の交点等を補正可能に構成したので、種々の大きさ及び形状の部分領域Ro及び分割領域Rrを決定でき、自由度の高い画像変換処理が実現できる。   In addition, since the divided grid is generated with grid lines and the intersections of the grid lines can be corrected, the partial areas Ro and the divided areas Rr of various sizes and shapes can be determined, and image conversion processing with a high degree of freedom is possible. Can be realized.

なお、上述した画像変換処理において、変換元画像の分割グリッドにより分割された部分領域Roのうち、画像変換を所望する部分領域Ro(n)を選択する工程を「画像変換処理の実行」において行なった(ステップS11)が、変換先画像の分割グリッドにて定義される分割領域Rrの数と、画像変換を所望する部分領域Ro(n)として選択される部分領域Ro(n)の数を等しくするために、ステップS2の分割グリッドの生成工程にて、変換元画像の分割グリッドを生成する際に、画像変換を所望する部分領域Ro(n)を選択しておき、選択された部分領域Roの情報も分割グリッドと一緒に分割グリッド格納部122に格納するよう構成してもよい。   In the image conversion process described above, the step of selecting the partial area Ro (n) for which image conversion is desired is performed in “execution of the image conversion process” among the partial areas Ro divided by the division grid of the conversion source image. (Step S11) equalizes the number of divided regions Rr defined by the divided grid of the conversion destination image and the number of partial regions Ro (n) selected as the partial region Ro (n) for which image conversion is desired. Therefore, when the divided grid of the conversion source image is generated in the divided grid generation step in step S2, the partial area Ro (n) for which image conversion is desired is selected, and the selected partial area Ro is selected. This information may also be stored in the divided grid storage unit 122 together with the divided grid.

[4.変形例]
4−1.変形例1
上述した画像変換処理のステップS15における位置座標(Xo、Yo)の算出は、分割領域Rrが4角の大きさが全て90度の四角形である場合について説明したが、変形例1として、部分領域Roが4角の大きさが全て90度の四角形である場合の位置座標(Xo、Yo)の算出について説明する。
[4. Modified example]
4-1. Modification 1
The calculation of the position coordinates (Xo, Yo) in step S15 of the image conversion process described above has been described for the case where the divided region Rr is a quadrangle with all four corners being 90 degrees. The calculation of the position coordinates (Xo, Yo) when Ro is a quadrangle with all four corners being 90 degrees will be described.

図14(A)及び(B)は、分割領域Rrと、当該分割領域Rrに対応する部分領域Roの説明図である。   14A and 14B are explanatory diagrams of the divided region Rr and the partial region Ro corresponding to the divided region Rr.

部分領域Roの4頂点の座標(xo1,yo1)、(xo2,yo2)、(xo3,yo3)、(xo4,yo4)、分割領域Rrの4頂点の座標(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4)は、分割グリッドの作成により既知の値である。   The coordinates (xo1, yo1), (xo2, yo2), (xo3, yo3), (xo4, yo4) of the partial area Ro, the coordinates (x1, y1), (x2, y2) of the four vertices of the divided area Rr ), (X3, y3), (x4, y4) are known values due to the creation of the divided grid.

従って、未知座標値x12、y12、x43、y43を求めることで、分割領域Rr(n)中の画素P(X、Y)に対応する部分領域Roの位置座標(Xo、Yo)を、以下の計算式により求めることができる。

<点(x12,y12)の算出>
x12=(x2−x1)・(Xo−xo1)/(xo2−xo1)+x1 (式1)
y12=(y2−y1)・(Xo−xo1)/(xo2−xo1)+y1 (式2)

<点(x43,y43)の算出>
x43=(x3−x4)・(Xo−xo1)/(xo2−xo1)+x4 (式3)
y43=(y3−y4)・(Xo−xo1)/(xo2−xo1)+y4 (式4)

<画素P(X、Y)の座標値>
X=(x43−x12)・(Yo−yo1)/(yo2−yo1)+x12 (式5)
Y=(y43−y12)・(Yo−yo1)/(yo2−yo1)+y12 (式6)

Yo=(X−x12)(yo2−yo1)/(x43−x12)+yo1 (式7)
Yo=(Y−y12)(yo2−yo1)/(y43−y12)+yo1 (式8)

(Y−y12)(x43−x12)=(X−x12)(y43−y12) (式9)
Therefore, by obtaining the unknown coordinate values x12, y12, x43, y43, the position coordinates (Xo, Yo) of the partial region Ro corresponding to the pixel P (X, Y) in the divided region Rr (n) are It can be obtained by a calculation formula.

<Calculation of point (x12, y12)>
x12 = (x2-x1). (Xo-xo1) / (xo2-xo1) + x1 (Formula 1)
y12 = (y2-y1). (Xo-xo1) / (xo2-xo1) + y1 (Formula 2)

<Calculation of point (x43, y43)>
x43 = (x3-x4). (Xo-xo1) / (xo2-xo1) + x4 (Formula 3)
y43 = (y3-y4). (Xo-xo1) / (xo2-xo1) + y4 (Formula 4)

<Coordinate value of pixel P (X, Y)>
X = (x43-x12). (Yo-yo1) / (yo2-yo1) + x12 (Formula 5)
Y = (y43-y12). (Yo-yo1) / (yo2-yo1) + y12 (Formula 6)

Yo = (X-x12) (yo2-yo1) / (x43-x12) + yo1 (Formula 7)
Yo = (Y−y12) (yo2−yo1) / (y43−y12) + yo1 (Formula 8)

(Y-y12) (x43-x12) = (X-x12) (y43-y12) (Formula 9)

そして、(式1)〜(式4)を、(式9)に代入し、

{Y−(y2−y1)・(Xo−xo1)/(xo2−xo1)+y1}{(x3−x4)・(Xo−xo1)/(xo2−xo1)+x4−(x2−x1)・(Xo−xo1)/(xo2−xo1)−x1}
={X− (x2−x1)・(Xo−xo1)/(xo2−xo1)+x1}
{(y3−y4)・(Xo−xo1)/(xo2−xo1)+y4−(y2−y1)・(Xo−xo1)/(xo2−xo1)−y1}

{(Y+y1) (xo2−xo1)−(y2−y1)・(Xo−xo1)}{(x3−x4)・(Xo−xo1)−(x2−x1)・(Xo−xo1)+(x4−x1) (xo2−xo1)}
={(X+x1) (xo2−xo1)−(x2−x1)・(Xo−xo1)}
{ (y3−y4)・(Xo−xo1)−(y2−y1)・(Xo−xo1)+(y4−y1)(xo2−xo1)}

{(Y+y1) (xo2−xo1)−(y2−y1)・(Xo−xo1)}{(x3−x4−x2+x1)・(Xo−xo1)+(x4−x1) (xo2−xo1)}
={(X+x1) (xo2−xo1)−(x2−x1)・(Xo−xo1)}
{ (y3−y4−y2+y1)・(Xo−xo1)+(y4−y1)(xo2−xo1)}

ここで、

x=Xo−xo1
C1= (Y+y1) (xo2−xo1)
C2=(y2−y1)
C3= (x3−x4−x2+x1)
C4=(x4−x1) (xo2−xo1)
C5= (X+x1) (xo2−xo1)
C6= (x2−x1)
C7= (y3−y4−y2+y1)
C8= (y4−y1) (xo2−xo1)

とおくと、

(C1−C2x)(C3x+C4)=(C5−C6x)(C7x+C8)
(C6・C7−C2・C3)x+(C1・C3−C2・C4−C5・C7+C6・C8)x+C1・C4−C5・C8=0
Then, (Equation 1) to (Equation 4) are substituted into (Equation 9),

{Y- (y2-y1). (Xo-xo1) / (xo2-xo1) + y1} {(x3-x4). (Xo-xo1) / (xo2-xo1) + x4- (x2-x1). (Xo -Xo1) / (xo2-xo1) -x1}
= {X- (x2-x1). (Xo-xo1) / (xo2-xo1) + x1}
{(Y3-y4). (Xo-xo1) / (xo2-xo1) + y4- (y2-y1). (Xo-xo1) / (xo2-xo1) -y1}

{(Y + y1) (xo2-xo1)-(y2-y1). (Xo-xo1)} {(x3-x4). (Xo-xo1)-(x2-x1). (Xo-xo1) + (x4- x1) (xo2-xo1)}
= {(X + x1) (xo2-xo1)-(x2-x1). (Xo-xo1)}
{(Y3-y4). (Xo-xo1)-(y2-y1). (Xo-xo1) + (y4-y1) (xo2-xo1)}

{(Y + y1) (xo2-xo1)-(y2-y1). (Xo-xo1)} {(x3-x4-x2 + x1). (Xo-xo1) + (x4-x1) (xo2-xo1)}
= {(X + x1) (xo2-xo1)-(x2-x1). (Xo-xo1)}
{(Y3-y4-y2 + y1). (Xo-xo1) + (y4-y1) (xo2-xo1)}

here,

x = Xo-xo1
C1 = (Y + y1) (xo2-xo1)
C2 = (y2-y1)
C3 = (x3-x4-x2 + x1)
C4 = (x4-x1) (xo2-xo1)
C5 = (X + x1) (xo2-xo1)
C6 = (x2-x1)
C7 = (y3-y4-y2 + y1)
C8 = (y4-y1) (xo2-xo1)

After all,

(C1-C2x) (C3x + C4) = (C5-C6x) (C7x + C8)
(C6 · C7−C2 · C3) x 2 + (C1 · C3 · C2 · C4−C5 · C7 + C6 · C8) x + C1 · C4−C5 · C8 = 0

更に、

K1= C6・C7−C2・C3
K2= C1・C3−C2・C4−C5・C7+C6・C8
K3=C1・C4−C5・C8

とおくと、未知数xに対する2次方程式が得られる。
Furthermore,

K1 = C6 ・ C7−C2 ・ C3
K2 = C1, C3-C2, C4-C5, C7 + C6, C8
K3 = C1, C4-C5, C8

Then, a quadratic equation for the unknown x is obtained.

従って解Xoは、

Xo={−K2±(K22−4K1・K3)}/(2K1)+xo1 (式10)

となり、2解のうち領域内に含まれる一方をXoとして決定する。
Therefore, the solution Xo is

Xo = {− K2 ± (K22−4K1 · K3)} / (2K1) + xo1 (Formula 10)

And one of the two solutions included in the region is determined as Xo.

そして、得られたXoを基に、(式1)〜(式4)を用いて、x12,y12,x43,y43の値を決定し、(式7)又は(式8)を用いてYoを決定する。   Then, based on the obtained Xo, the values of x12, y12, x43, and y43 are determined using (Expression 1) to (Expression 4), and Yo is determined using (Expression 7) or (Expression 8). decide.

4−2.変形例2
部分領域Ro又は分割領域Rrの何れか一方が、4角の大きさが全て90度の四角形である場合について説明したが、変形例2として、図15(A)及び(B)に示す如く、部分領域Ro又は分割領域Rrの両方が4角の大きさが全て90度の四角形でない場合の位置座標(Xo、Yo)の算出について説明する。
4-2. Modification 2
Although the case where either one of the partial region Ro or the divided region Rr is a quadrangle whose squares are all 90 degrees has been described, as a second modification, as shown in FIGS. 15A and 15B, The calculation of the position coordinates (Xo, Yo) in the case where both the partial region Ro and the divided region Rr are not quadrangles whose four corners are all 90 degrees will be described.

本実施例の場合には、図16(A)又は(B)に示すような仲介領域Rmとして4角の大きさが全て90度の四角形を介在させて位置座標を算出する。図16(A)は分割領域Rr(図15(B))を仲介領域Rmに置き換える(仲介する)説明図であり、図16(B)は部分領域Ro(図15(A))を仲介領域Rmに置き換える(仲介する)説明図である。   In the case of the present embodiment, the position coordinates are calculated by interposing a quadrilateral having 90 degrees of all four corners as the mediation region Rm as shown in FIG. 16 (A) or (B). FIG. 16A is an explanatory diagram for replacing (mediating) the divided region Rr (FIG. 15B) with the mediation region Rm, and FIG. 16B illustrates the partial region Ro (FIG. 15A) as the mediation region. It is explanatory drawing replaced (mediated) by Rm.

分割領域Rrを仲介領域Rmに置き換える場合(図16(A))には、変形例1の図14中のPo,Xo,Yo,xo1,yo1,xo2,yo2を、夫々、Pm,Xm,Ym,xm1,ym1,xm2,ym2と置き換えて、(式1)〜(式10)を用いて、(Xm,Ym)を決定する。   When the divided region Rr is replaced with the mediation region Rm (FIG. 16A), Po, Xo, Yo, xo1, yo1, xo2, and yo2 in FIG. 14 of Modification 1 are respectively changed to Pm, Xm, and Ym. , Xm1, ym1, xm2, ym2 and (Xm, Ym) is determined using (Expression 1) to (Expression 10).

他方、部分領域Roを仲介領域Rmに置き換える場合(図16(B))には、図13中のP,X,Y,x1,y1,x2,y2を、夫々、Pm,Xm,Ym,xm1,ym1,xm2,ym2と置き換えて、図16(A)で決定された(Xm,Ym)の値を基に、上記ステップS15の<点(xo12,yo12)の算出><点(xo43,yo43)の算出><点Pに対応する位置座標(Xo、Yo)の算出>の各式を用いて、(Xo,Yo)を決定する。   On the other hand, when replacing the partial region Ro with the mediation region Rm (FIG. 16B), P, X, Y, x1, y1, x2, and y2 in FIG. 13 are respectively replaced with Pm, Xm, Ym, and xm1. , Ym1, xm2, ym2 and based on the value of (Xm, Ym) determined in FIG. 16A, <calculation of point (xo12, yo12)> in step S15> <point (xo43, yo43) )> <Xo, Yo) is determined by using the following formulas: <Calculation of position coordinates (Xo, Yo) corresponding to point P>.

4−3.変形例3
上述した実施形態は、変換元画像(又は変換先画像)の水平方向及び垂直方向にグリッド線を生成し、部分領域Roと分割領域Rrを矩形形状とするような分割グリッドを生成したが、図17に示す如く、部分領域Roと分割領域Rrを三角形状とするような分割グリッドを用いてもよい。
4-3. Modification 3
In the above-described embodiment, grid lines are generated in the horizontal direction and the vertical direction of the conversion source image (or the conversion destination image), and the division grid is generated so that the partial area Ro and the division area Rr have a rectangular shape. As shown in FIG. 17, a division grid may be used in which the partial region Ro and the division region Rr are triangular.

この場合、部分領域Ro(又は分割領域Rr)の各頂点は、隣接する6つの部分領域Ro(又は分割領域Rr)と共有し、部分領域Ro(又は分割領域Rr)の各辺は、隣接する3つの部分領域Ro(又は分割領域Rr)と共有する。   In this case, each vertex of the partial region Ro (or divided region Rr) is shared with six adjacent partial regions Ro (or divided regions Rr), and each side of the partial region Ro (or divided region Rr) is adjacent. It is shared with three partial areas Ro (or divided areas Rr).

図18は、直角三角形状の分割領域Rrと、当該分割領域Rrに対応する三角形状(直角三角形でない)の部分領域Roの説明図である。   FIG. 18 is an explanatory diagram of a right triangle triangular divided region Rr and a triangular (not right triangle) partial region Ro corresponding to the divided region Rr.

部分領域Roの3頂点の座標(xo1,yo1)、(xo2,yo2)、(xo3,yo3)とし、分割領域Rrの4頂点の座標(x1,y1)、(x2,y1)、(x1,y2)は、分割グリッドの作成により既知の値である。   The coordinates (xo1, yo1), (xo2, yo2), and (xo3, yo3) of the three vertices of the partial region Ro are set, and the coordinates (x1, y1), (x2, y1), (x1, y1), and (x1, y1) of the four vertices of the divided region Rr are set. y2) is a known value due to the creation of a divided grid.

従って、未知座標値xo12,yo12,xo13,yo13を求めることで、分割領域Rr(n)中の画素P(X、Y)に対応する部分領域Roの位置座標(Xo、Yo)を、以下の計算式により求めることができる。

<点(xo12,yo12)の算出>
xo12=(xo2−xo1)・(X−x1)/(x2−x1)+xo1
yo12=(yo2−yo1)・(X−x1)/(x2−x1)+yo1

<点(xo13,yo13)の算出>
xo13=(xo3−xo1)・(Y−y1)/(y2−y1)+xo1
yo13=(yo3−yo1)・(Y−y1)/(x2−x1)+yo1

<点Pに対応する位置座標(Xo、Yo)の算出>
Xo=xo13+xo12−xo1
Yo=yo13+yo12−yo1
Therefore, by obtaining the unknown coordinate values xo12, yo12, xo13, and yo13, the position coordinates (Xo, Yo) of the partial region Ro corresponding to the pixel P (X, Y) in the divided region Rr (n) are obtained as follows. It can be obtained by a calculation formula.

<Calculation of point (xo12, yo12)>
xo12 = (xo2-xo1). (X-x1) / (x2-x1) + xo1
yo12 = (yo2-yo1). (X-x1) / (x2-x1) + yo1

<Calculation of point (xo13, yo13)>
xo13 = (xo3-xo1). (Y-y1) / (y2-y1) + xo1
yo13 = (yo3-yo1). (Y-y1) / (x2-x1) + yo1

<Calculation of position coordinates (Xo, Yo) corresponding to point P>
Xo = xo13 + xo12-xo1
Yo = yo13 + yo12−yo1

図19は、三角形状(直角三角形でない)の分割領域Rrと、当該分割領域Rrに対応する直角三角形の部分領域Roの説明図である。   FIG. 19 is an explanatory diagram of a triangular (not a right triangle) divided region Rr and a right triangular partial region Ro corresponding to the divided region Rr.

部分領域Roの3頂点の座標(xo1,yo1)、(xo2,yo1)、(xo1,yo2)とし、分割領域Rrの4頂点の座標(x1,y1)、(x2,y2)、(x3,y3)は、分割グリッドの作成により既知の値である。   The coordinates (xo1, yo1), (xo2, yo1), (xo1, yo2) of the three vertices of the partial area Ro are set, and the coordinates (x1, y1), (x2, y2), (x3, x4) of the four vertices of the divided area Rr are set. y3) is a known value due to the creation of a divided grid.

従って、未知座標値xo12,yo12,xo13,yo13を求めることで、分割領域Rr(n)中の画素P(X、Y)に対応する部分領域Roの位置座標(Xo、Yo)を、以下の計算式により求めることができる。

<点(x12,y12)の算出>
x12=(x2−x1)・(Xo−xo1)/(xo2−xo1)+x1 (式11)
y12=(y2−y1)・(Xo−xo1)/(xo2−xo1)+y1 (式12)

<点(x13,y13)の算出>
x13=(x3−x1)・(Yo−yo1)/(yo2−yo1)+x1 (式13)
y13=(y3−y1)・(Yo−yo1)/(yo2−yo1)+y1 (式14)

<画素P(X、Y)の座標値>
X=x13+x12−x1 (式15)
Y=y13+y12−y1 (式16)
(式15)、(式16)に、(式11)〜(式14)を代入すると、
X=(Yo−yo1) (x3−x1)/(yo2−yo1)+x1
+(Xo−xo1)(x2−x1)/(xo2−xo1) (式17)
Y=(Yo−yo1) (y3−y1)/(yo2−yo1)+y1
+(Xo−xo1)(y2−y1)/(xo2−xo1) (式18)

未知数Xo,Yoに対する2元連立方程式が得られる。
Therefore, by obtaining the unknown coordinate values xo12, yo12, xo13, and yo13, the position coordinates (Xo, Yo) of the partial region Ro corresponding to the pixel P (X, Y) in the divided region Rr (n) are obtained as follows. It can be obtained by a calculation formula.

<Calculation of point (x12, y12)>
x12 = (x2-x1). (Xo-xo1) / (xo2-xo1) + x1 (Formula 11)
y12 = (y2-y1). (Xo-xo1) / (xo2-xo1) + y1 (Formula 12)

<Calculation of point (x13, y13)>
x13 = (x3-x1). (Yo-yo1) / (yo2-yo1) + x1 (Formula 13)
y13 = (y3-y1). (Yo-yo1) / (yo2-yo1) + y1 (Formula 14)

<Coordinate value of pixel P (X, Y)>
X = x13 + x12-x1 (Formula 15)
Y = y13 + y12−y1 (Formula 16)
When (Expression 11) to (Expression 14) are substituted into (Expression 15) and (Expression 16),
X = (Yo-yo1) (x3-x1) / (yo2-yo1) + x1
+ (Xo-xo1) (x2-x1) / (xo2-xo1) (Formula 17)
Y = (Yo-yo1) (y3-y1) / (yo2-yo1) + y1
+ (Xo-xo1) (y2-y1) / (xo2-xo1) (Formula 18)

A binary simultaneous equation for the unknowns Xo and Yo is obtained.

ここで、

x=Xo−xo1
y=Yo−yo1
C1=( X−x1)
C2=(x3−x1)/(yo2−yo1)
C3=(x2−x1)/(xo2−xo1)
C4=Y−y1
C5=(y3−y1)/(yo2−yo1)
C6=(y2−y1)/(xo2−xo1)

とおくと、

C1=C2y+C3x
C4=C5y+C6x

となり、解Xo,Yoは
Xo=(C1・C5−C2・C4)/(C3・C5−C2・C6)+xo1 (式19)
Yo={C1−C3 (C1・C5−C2・C4)/(C3・C5−C2・C6)}/C2+yo1 (式20)
として得られる。
here,

x = Xo-xo1
y = Yo-yo1
C1 = (X-x1)
C2 = (x3-x1) / (yo2-yo1)
C3 = (x2-x1) / (xo2-xo1)
C4 = Y-y1
C5 = (y3-y1) / (yo2-yo1)
C6 = (y2-y1) / (xo2-xo1)

After all,

C1 = C2y + C3x
C4 = C5y + C6x

The solution Xo, Yo is Xo = (C1 · C5−C2 · C4) / (C3 · C5−C2 · C6) + xo1 (Equation 19)
Yo = {C1-C3 (C1, C5-C2, C4) / (C3, C5-C2, C6)} / C2 + yo1 (Formula 20)
As obtained.

続いて、図20に示すように、部分領域Ro又は分割領域Rrの両方が直角三角形でない場合の位置座標(Xo、Yo)の算出について説明する。   Next, as shown in FIG. 20, calculation of position coordinates (Xo, Yo) when both the partial region Ro and the divided region Rr are not right triangles will be described.

本実施例の場合には、図21(A)又は(B)に示すような直角三角形の仲介領域Rmを介在させて位置座標を算出する。図21(A)は分割領域Rr(図20(B))を仲介領域Rmに置き換える(仲介する)説明図であり、図21(B)は部分領域Ro(図20(A))を仲介領域Rmに置き換える(仲介する)説明図である。   In the case of the present embodiment, the position coordinates are calculated by interposing a right triangle intermediary region Rm as shown in FIG. 21 (A) or (B). FIG. 21A is an explanatory diagram for replacing (mediating) the divided region Rr (FIG. 20B) with the mediation region Rm, and FIG. 21B illustrates the partial region Ro (FIG. 20A) as the mediation region. It is explanatory drawing replaced (mediated) by Rm.

分割領域Rrを仲介領域Rmに置き換える場合(図21(A))には、図19中のPo,Xo,Yo,xo1,yo1,xo2,yo2を、夫々、Pm,Xm,Ym,xm1,ym1,xm2,ym2と置き換えて、(式11)〜(式20)を用いて、(Xm,Ym)を決定する。   When replacing the divided region Rr with the mediation region Rm (FIG. 21A), Po, Xo, Yo, xo1, yo1, xo2, and yo2 in FIG. 19 are respectively replaced with Pm, Xm, Ym, xm1, and ym1. , Xm2, ym2, and (Xm, Ym) is determined using (Expression 11) to (Expression 20).

また、部分領域Roを仲介領域Rmに置き換える場合(図21(B))には、図13中のP,X,Y,x1,y1,x2,y2を、夫々、Pm,Xm,Ym,xm1,ym1,xm2,ym2と置き換えて、図21(A)で決定された(Xm,Ym)の値を基に、上記ステップS15の<点(xo12,yo12)の算出><点(xo43,yo43)の算出><点Pに対応する位置座標(Xo、Yo)の算出>の各式を用いて、(Xo,Yo)を決定する。なお、このとき、xm1,ym1,xm2,ym2は、図16(A)の場合と同一とする。   Further, when replacing the partial region Ro with the mediation region Rm (FIG. 21B), P, X, Y, x1, y1, x2, and y2 in FIG. 13 are respectively replaced with Pm, Xm, Ym, and xm1. , Ym1, xm2, ym2 and based on the value of (Xm, Ym) determined in FIG. 21A, <calculation of point (xo12, yo12)> in step S15> <point (xo43, yo43) )> <Xo, Yo) is determined by using the following formulas: <Calculation of position coordinates (Xo, Yo) corresponding to point P>. At this time, xm1, ym1, xm2, and ym2 are the same as those in FIG.

4−4.変形例4
変換元画像が、複数の画像フレームから構成される動画用画像である場合について説明する。
4-4. Modification 4
A case where the conversion source image is a moving image composed of a plurality of image frames will be described.

図22は、複数の画像フレームから構成される動画用画像(変換元画像)の説明図である。   FIG. 22 is an explanatory diagram of a moving image (conversion source image) composed of a plurality of image frames.

先ず、制御部11は代表決定手段として機能し、複数の画像フレームの中から、1枚の代表画像フレームを決定(選択)し、当該代表画像フレームの分割グリッドを生成する。代表画像フレームは、図22に示す如く最初の画像フレームf1であることが好ましい。   First, the control unit 11 functions as a representative determining unit, determines (selects) one representative image frame from a plurality of image frames, and generates a divided grid of the representative image frame. The representative image frame is preferably the first image frame f1 as shown in FIG.

そして、当該代表画像フレームに対応する変換画像フレームを作成する。作成手法は、上記実施形態と同様である。   Then, a converted image frame corresponding to the representative image frame is created. The creation method is the same as in the above embodiment.

このとき、代表画像フレームの分割グリッドと、当該代表画像フレームに対応する変換画像フレームの分割グリッドを、記憶部12の分割グリッド格納部122に格納(保存)しておく(記憶手段)。   At this time, the division grid of the representative image frame and the division grid of the converted image frame corresponding to the representative image frame are stored (saved) in the division grid storage unit 122 of the storage unit 12 (storage unit).

そして、他の画像フレームf2、f3及びf4に対して画像変換を行なう際には、分割グリッド格納部122に格納しておいた代表画像フレームの分割グリッドと、当該代表画像フレームに対応する変換画像フレームの分割グリッドとを用いて、他の画像フレームf2、f3及びf4夫々に対応する変換画像フレームを作成する。   When image conversion is performed on the other image frames f2, f3, and f4, the divided grid of the representative image frame stored in the divided grid storage unit 122 and the converted image corresponding to the representative image frame. Using the frame division grid, converted image frames corresponding to the other image frames f2, f3, and f4 are created.

従って、代表画像フレームの画像変換の際に使用した分割グリッドを、他の画像フレームの画像変換にそのまま利用することができるので、変換元画像が、複数の画像フレームから構成される動画用画像であっても、各画像フレームに対して迅速に画像処理を行ない、作成された各変換画像フレームに基づいて、変換動画用画像を作成することができる。   Therefore, since the division grid used for image conversion of the representative image frame can be used as it is for image conversion of other image frames, the conversion source image is a moving image image composed of a plurality of image frames. Even if it exists, it can image-process rapidly with respect to each image frame, and can produce | generate the image for conversion moving images based on each created conversion image frame.

その他の変形例として、図23に示す如く、複数の画像フレームのうち、最初の画像フレームf1と、最後の画像フレームf4の分割グリッドを夫々生成し、これら分割グリッドを応用して中間の画像フレームf2及びf3の分割グリッドを生成するよう構成することもできる。   As another modified example, as shown in FIG. 23, divided grids of the first image frame f1 and the last image frame f4 are generated from among a plurality of image frames, and intermediate image frames are applied by applying these divided grids. It can also be configured to generate f2 and f3 split grids.

図24に中間の画像フレームの分割グリッド生成の説明図を示す。   FIG. 24 is an explanatory diagram for generating a divided grid of an intermediate image frame.

同図は、時間と共に分割グリッドの変形が大きくなる場合の一例である。中間の画像フレームf2及びf3の分割グリッドは、最初の画像フレームf1の分割グリッドと、最後の画像フレームf4の分割グリッドの線形補間によって生成する。   This figure is an example when the deformation of the divided grid increases with time. The divided grids of the intermediate image frames f2 and f3 are generated by linear interpolation of the divided grid of the first image frame f1 and the divided grid of the last image frame f4.

より具体的に説明すると、n枚の画像フレームの最初の画像フレームf1の分割グリッドの頂点座標が(x1、y1)、最後の画像フレームfnの分割グリッドの頂点座標が(xn、yn)である場合、中間の画像フレームfm(2≦m<n)の分割グリッドの頂点座標は、
[x1+(xn−x1)(m−1)/(n−1)
,y1+(yn−y1)(m−1)/(n−1)]
となる。
More specifically, the vertex coordinates of the divided grid of the first image frame f1 of the n image frames are (x1, y1), and the vertex coordinates of the divided grid of the last image frame fn are (xn, yn). The vertex coordinates of the divided grid of the intermediate image frame fm (2 ≦ m <n) are
[X1 + (xn-x1) (m-1) / (n-1)
, Y1 + (yn−y1) (m−1) / (n−1)]
It becomes.

このように、中間の画像フレームに対応する変換画像フレームを、最初と最後の画像フレームの分割グリッドと、これら分割グリッドを線形補間した線形補間グリッドを用いて作成する。そして、作成された各変換画像フレームに基づいて、変換動画用画像を作成する。   In this way, the converted image frame corresponding to the intermediate image frame is created using the divided grids of the first and last image frames and the linear interpolation grid obtained by linearly interpolating these divided grids. Then, a converted moving image is created based on each created converted image frame.

従って、変換画像時間と共に画像が徐々に変形するような変換動画用画像を作成できる。   Therefore, it is possible to create a converted moving image image in which the image is gradually deformed with the converted image time.

以上夫々説明したように、本発明は、変換元画像の部分領域毎に夫々異なる画像処理(例えば、画像抽出、トリミング、ズームアウト、ズームアップ、拡大、縮小等)を施すことができるため、特に、印刷物・Web画像・プレゼン画像など静止画制作におけるグラフィックデザイン(撮影・スキャニング画像の補正、レイアウト修正、特殊効果など)・CG・映像制作における撮影画像のアングル補正、特殊効果等の画像処理の分野に適用すれば特に顕著な効果が得られる。   As described above, the present invention can perform different image processing (for example, image extraction, trimming, zoom out, zoom up, enlargement, reduction, etc.) for each partial area of the conversion source image. Graphic processing for still image production such as printed materials, Web images, presentation images (shooting / scanning image correction, layout correction, special effects, etc.), image processing such as angle correction, special effects, etc. for CG / video production When applied to, particularly remarkable effects can be obtained.

本発明に係る画像変換装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image converter which concerns on this invention. 変換元画像の分割グリッドの説明図である。It is explanatory drawing of the division | segmentation grid of a conversion source image. 変換元画像の分割グリッドと変換先画像の分割グリッドの説明図である。It is explanatory drawing of the division | segmentation grid of a conversion source image, and the division | segmentation grid of a conversion destination image. 分割グリッド生成の説明図である。It is explanatory drawing of division | segmentation grid production | generation. 補正処理の説明図である。It is explanatory drawing of a correction process. 部分領域Roと分割領域Rrの対応付け説明図である。FIG. 6 is a diagram for explaining association between a partial region Ro and a divided region Rr. 他の分割グリッドと画像変換の例である。It is an example of another division grid and image conversion. 他の分割グリッドと画像変換の例である。It is an example of another division grid and image conversion. 他の分割グリッドと画像変換の例である。It is an example of another division grid and image conversion. 画像変換の具体例である。It is a specific example of image conversion. 画像変換の具体例である。It is a specific example of image conversion. 画像変換処理を示すフローチャートである。It is a flowchart which shows an image conversion process. 分割領域Rrと、当該分割領域Rrに対応する部分領域Roの説明図である。It is explanatory drawing of division area Rr and the partial area Ro corresponding to the said division area Rr. 変形例1にかかる分割領域Rrと、当該分割領域Rrに対応する部分領域Roの説明図である。It is explanatory drawing of the division area Rr concerning the modification 1, and the partial area Ro corresponding to the said division area Rr. 変形例2にかかる分割領域Rrと、当該分割領域Rrに対応する部分領域Roの説明図である。It is explanatory drawing of the division area Rr concerning the modification 2, and the partial area Ro corresponding to the said division area Rr. 変形例2にかかる仲介領域Rmを介した位置座標(Xo、Yo)算出の説明図である。It is explanatory drawing of position coordinate (Xo, Yo) calculation via the mediation area | region Rm concerning the modification 2. 変形例3にかかる変換元画像の分割グリッドと変換先画像の分割グリッドの説明図である。It is explanatory drawing of the division | segmentation grid of the conversion source image concerning the modification 3, and the division | segmentation grid of a conversion destination image. 変形例3にかかる分割領域Rrと、当該分割領域Rrに対応する部分領域Roの説明図である。It is explanatory drawing of the division area Rr concerning the modification 3, and the partial area Ro corresponding to the said division area Rr. 変形例3にかかる分割領域Rrと、当該分割領域Rrに対応する部分領域Roの説明図である。It is explanatory drawing of the division area Rr concerning the modification 3, and the partial area Ro corresponding to the said division area Rr. 変形例3にかかる分割領域Rrと、当該分割領域Rrに対応する部分領域Roの説明図である。It is explanatory drawing of the division area Rr concerning the modification 3, and the partial area Ro corresponding to the said division area Rr. 変形例3にかかる仲介領域Rmを介した位置座標(Xo、Yo)算出の説明図である。It is explanatory drawing of position coordinate (Xo, Yo) calculation via the mediation area | region Rm concerning the modification 3. 複数の画像フレームから構成される動画用画像(変換元画像)の説明図である。It is explanatory drawing of the image for moving images (conversion original image) comprised from several image frames. 最初の画像フレームf1と、最後の画像フレームf4の分割グリッドの説明図である。It is explanatory drawing of the division | segmentation grid of the first image frame f1 and the last image frame f4. 中間の画像フレームの分割グリッド生成の説明図である。It is explanatory drawing of the division | segmentation grid generation of an intermediate | middle image frame.

符号の説明Explanation of symbols

1 画像変換装置
11 制御部
12 記憶部
13 入力部
14 表示部
15 バス
Ro 部分領域
Rr 分割領域
1 Image converter
11 Control Unit 12 Storage Unit 13 Input Unit 14 Display Unit 15 Bus Ro Partial Area Rr Divided Area

Claims (8)

原画像に含まれる所定の領域を抽出して変換画像を作成する画像変換装置において、
前記原画像を複数の部分領域に分割するための第1分割グリッドを生成し、前記変換画像を少なくとも一以上の分割領域として定義するための第2分割グリッドを生成する分割グリッド生成手段と、
前記第1分割グリッドにて分割された前記複数の部分領域のうち、画像変換を行なう少なくとも一以上の部分領域を選択する選択手段と、
各前記分割領域について、前記選択された部分領域との対応付けを行なう領域対応決定手段と、
各前記分割領域について、前記分割領域に対応する部分領域を用いて、当該分割領域を構成する各画素に対応する前記部分領域の位置座標を夫々算出し、当該部分領域に含まれる画素であって算出された位置座標に位置する画素の画素値を抽出する画素値抽出手段と、
前記各分割領域について、前記分割領域を構成する各画素の画素値として、前記画素値抽出手段にて夫々抽出された画素値を付与し、これら分割領域から成る前記変換画像を作成する変換画像作成手段と、
を有することを特徴とする画像変換装置。
In an image conversion apparatus that creates a converted image by extracting a predetermined region included in an original image,
A divided grid generating means for generating a first divided grid for dividing the original image into a plurality of partial areas, and generating a second divided grid for defining the converted image as at least one divided area;
Selecting means for selecting at least one or more partial areas for image conversion from among the plurality of partial areas divided by the first divided grid;
For each of the divided areas, area correspondence determining means for associating with the selected partial area;
For each of the divided areas, the position coordinates of the partial areas corresponding to the pixels constituting the divided area are calculated using the partial areas corresponding to the divided areas, and pixels included in the partial area are Pixel value extraction means for extracting the pixel value of the pixel located at the calculated position coordinate;
For each of the divided areas, the pixel value extracted by the pixel value extracting unit is assigned as the pixel value of each pixel constituting the divided area, and the converted image is created by creating the converted image including the divided areas. Means,
An image conversion apparatus comprising:
請求項1に記載の画像変換装置において、
前記分割グリッド生成手段は、複数のグリッド線を用いて前記第1分割グリッド及び第2分割グリッドを生成し、当該各グリッド線が交差しない範囲で、前記各グリッド線の交点及び分割グリッドの輪郭を示すグリッド線と、前記各グリッド線との接点の位置を変更し、前記部分領域及び前記分割領域の形状を補正する補正手段を有することを特徴とする画像変換装置。
The image conversion apparatus according to claim 1,
The divided grid generation means generates the first divided grid and the second divided grid using a plurality of grid lines, and sets the intersection of the grid lines and the outline of the divided grid within a range where the grid lines do not intersect. An image conversion apparatus comprising: a correction unit that corrects the shape of the partial area and the divided area by changing a position of a contact point between the grid line to be displayed and each grid line.
請求項1又は2に記載の画像変換装置において、
前記選択手段にて選択される部分領域の数と、前記変換画像の分割領域の数が等しいことを特徴とする画像変換装置。
The image conversion apparatus according to claim 1 or 2,
An image conversion apparatus characterized in that the number of partial areas selected by the selection means is equal to the number of divided areas of the converted image.
請求項1乃至3のいずれか一項に記載の画像変換装置において、
前記第1分割グリッドにて分割される前記原画像の部分領域の数と、前記第2分割グリッドにて定義される前記変換画像の分割領域の数が等しく、前記選択手段にて全ての前記部分領域が選択されることを特徴とする画像変換装置。
In the image conversion device according to any one of claims 1 to 3,
The number of partial areas of the original image divided by the first divided grid is equal to the number of divided areas of the converted image defined by the second divided grid, and all the parts are selected by the selection unit. An image conversion apparatus characterized in that a region is selected.
請求項1乃至4のいずれか一項に記載の画像変換装置において、
前記原画像が、複数の画像フレームから構成される動画用画像である場合、前記複数の画像フレームから代表画像フレームを決定する代表決定手段を有し、
前記分割グリッド生成手段は、決定された前記代表画像フレームを複数の部分領域に分割するための前記第1分割グリッドを生成し、前記代表画像フレームに対応する変換画像フレームを少なくとも一以上の前記分割領域として定義するための前記第2分割グリッドを生成し、
前記分割グリッド生成手段にて生成された前記代表画像フレームにかかる第1分割グリッド及び第2分割グリッドを記憶する記憶手段を有し、
前記代表画像フレーム及び他の前記画像フレームに対応する変換画像フレームを作成する際には、前記変換画像作成手段は、前記記憶手段に記憶した前記第1分割グリッド及び第2分割グリッドを用いて、当該代表画像フレーム及び前記他の画像フレームに対応する変換画像フレームを夫々作成すると共に、作成された前記変換画像フレームに基づいて、変換動画用画像を作成することを特徴とする画像変換装置。
In the image conversion device according to any one of claims 1 to 4,
When the original image is a moving image composed of a plurality of image frames, the image processing apparatus includes a representative determining unit that determines a representative image frame from the plurality of image frames.
The divided grid generation means generates the first divided grid for dividing the determined representative image frame into a plurality of partial regions, and at least one or more of the divided image frames corresponding to the representative image frame Generating the second divided grid for defining as a region;
Storage means for storing a first divided grid and a second divided grid according to the representative image frame generated by the divided grid generation means;
When creating the converted image frame corresponding to the representative image frame and the other image frames, the converted image creating means uses the first divided grid and the second divided grid stored in the storage means, An image conversion apparatus that generates converted image frames corresponding to the representative image frame and the other image frames, and generates a converted moving image based on the generated converted image frames.
請求項5に記載の画像変換装置において、
前記代表決定手段は、前記動画用画像を構成する前記複数の画像フレームのうち、最初の画像フレームを前記代表画像フレームとして決定することを特徴とする画像変換装置。
The image conversion apparatus according to claim 5, wherein
The image conversion apparatus characterized in that the representative determining means determines the first image frame as the representative image frame among the plurality of image frames constituting the moving image.
請求項6に記載の画像変換装置において、
前記分割グリッド生成手段は、前記動画用画像を構成する前記複数の画像フレームのうち、最後の画像フレームを複数の部分領域に分割するための前記第1分割グリッドを生成し、前記最後の画像フレームに対応する変換画像フレームを少なくとも一以上の前記分割領域として定義するための前記第2分割グリッドを生成し、
前記記憶手段は、前記分割グリッド生成手段にて生成された前記最後の画像フレームにかかる第1分割グリッド及び第2分割グリッドを記憶し、
前記変換画像作成手段は、前記代表画像フレームと前記最後の画像フレーム以外の他の画像フレームに対応する変換画像フレームを作成する際には、前記記憶手段に記憶した前記代表画像フレームにかかる第1分割グリッドと、前記最後の画像フレームにかかる第1分割グリッドを線形補間した線形補間グリッドと、前記記憶手段に記憶した前記代表画像フレームにかかる第2分割グリッドと、前記最後の画像フレームにかかる第2分割グリッドを線形補間した線形補間グリッドと、を用いて、前記他の画像フレームに対応する変換画像フレームを夫々作成すると共に、作成された各前記変換画像フレームに基づいて、変換動画用画像を作成することを特徴とする画像変換装置。
The image conversion apparatus according to claim 6, wherein
The divided grid generation means generates the first divided grid for dividing the last image frame into a plurality of partial areas among the plurality of image frames constituting the moving image, and the last image frame Generating the second divided grid for defining the converted image frame corresponding to as at least one or more of the divided regions;
The storage means stores a first divided grid and a second divided grid relating to the last image frame generated by the divided grid generating means,
When the converted image creating means creates a converted image frame corresponding to an image frame other than the representative image frame and the last image frame, the converted image creating means applies a first to the representative image frame stored in the storage means. A divided grid, a linear interpolation grid obtained by linearly interpolating the first divided grid for the last image frame, a second divided grid for the representative image frame stored in the storage unit, and a first for the last image frame. A conversion image frame corresponding to the other image frame is created using a linear interpolation grid obtained by linearly interpolating a two-part grid, and a converted moving image is generated based on each of the created conversion image frames. An image conversion apparatus characterized by being created.
コンピュータを、請求項1乃至7のいずれか一項に記載の画像変換装置として機能させることを特徴とする画像変換プログラム。   An image conversion program for causing a computer to function as the image conversion apparatus according to any one of claims 1 to 7.
JP2006156207A 2006-06-05 2006-06-05 Image conversion apparatus and image conversion program Active JP4760550B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006156207A JP4760550B2 (en) 2006-06-05 2006-06-05 Image conversion apparatus and image conversion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006156207A JP4760550B2 (en) 2006-06-05 2006-06-05 Image conversion apparatus and image conversion program

Publications (2)

Publication Number Publication Date
JP2007323583A true JP2007323583A (en) 2007-12-13
JP4760550B2 JP4760550B2 (en) 2011-08-31

Family

ID=38856312

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006156207A Active JP4760550B2 (en) 2006-06-05 2006-06-05 Image conversion apparatus and image conversion program

Country Status (1)

Country Link
JP (1) JP4760550B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010237880A (en) * 2009-03-30 2010-10-21 Hitachi High-Technologies Corp Image preparation method, calculator, image preparation program, and storage medium
JP2017049783A (en) * 2015-09-01 2017-03-09 キヤノン株式会社 Image processing apparatus and image processing method
JP2017120530A (en) * 2015-12-28 2017-07-06 キヤノン株式会社 Image processing apparatus and image processing method
JP7253302B1 (en) * 2022-11-14 2023-04-06 株式会社ASED Lab. Information processing system, program and information processing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0793565A (en) * 1993-09-24 1995-04-07 Nec Corp Structure displaying method and device therefor
JPH10283469A (en) * 1997-04-10 1998-10-23 Nec Corp Image transforming method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0793565A (en) * 1993-09-24 1995-04-07 Nec Corp Structure displaying method and device therefor
JPH10283469A (en) * 1997-04-10 1998-10-23 Nec Corp Image transforming method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010237880A (en) * 2009-03-30 2010-10-21 Hitachi High-Technologies Corp Image preparation method, calculator, image preparation program, and storage medium
JP2017049783A (en) * 2015-09-01 2017-03-09 キヤノン株式会社 Image processing apparatus and image processing method
JP2017120530A (en) * 2015-12-28 2017-07-06 キヤノン株式会社 Image processing apparatus and image processing method
JP7253302B1 (en) * 2022-11-14 2023-04-06 株式会社ASED Lab. Information processing system, program and information processing method

Also Published As

Publication number Publication date
JP4760550B2 (en) 2011-08-31

Similar Documents

Publication Publication Date Title
JP3697276B2 (en) Image display method, image display apparatus, and image scaling method
JP2919428B2 (en) Image transformation device
JP4760550B2 (en) Image conversion apparatus and image conversion program
JP2017059041A (en) Image processing device, image processing method, and program
JP2015114949A (en) Image processor, image processing method, program for image processor, and recording medium
JP2003066943A (en) Image processor and program
JP3651943B2 (en) Icon creation method and movie frame creation method
TW200404266A (en) Method of analyzing and modifying a footprint
JP5418310B2 (en) Graphic drawing apparatus and method
JP4089924B2 (en) Image processing method and apparatus
JP2642374B2 (en) Figure clipping method
JP4514943B2 (en) Image creating method and apparatus
JPH10240961A (en) Magnified displaying method of straight line fisheye
JPH0652300A (en) Picture processor
CN114913060A (en) Image deformation method, device, equipment and readable storage medium
JP3681240B2 (en) Three-dimensional shape display method and three-dimensional CAD system using the method
JP2611599B2 (en) Computer graphics data processing method and apparatus
JP2746981B2 (en) Figure generation method
JP2008046736A (en) System and method for generating model for analysis
JP2746980B2 (en) Figure generation method
JP2934011B2 (en) Image processing method and apparatus
JP3545304B2 (en) Image mapping method
Bergamasco et al. Saliency-driven Variational Retargeting for Historical Maps
JP2000172860A (en) Figure drawing method
JPH10214351A (en) Image processing method, its device and its storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110221

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110523

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

Free format text: PAYMENT UNTIL: 20140617

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4760550

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150