JP2019207375A - Image generator for display - Google Patents
Image generator for display Download PDFInfo
- Publication number
- JP2019207375A JP2019207375A JP2018103793A JP2018103793A JP2019207375A JP 2019207375 A JP2019207375 A JP 2019207375A JP 2018103793 A JP2018103793 A JP 2018103793A JP 2018103793 A JP2018103793 A JP 2018103793A JP 2019207375 A JP2019207375 A JP 2019207375A
- Authority
- JP
- Japan
- Prior art keywords
- image
- area
- ratio
- display
- length
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000006243 chemical reaction Methods 0.000 claims description 29
- 239000002131 composite material Substances 0.000 claims description 11
- 230000014509 gene expression Effects 0.000 claims description 2
- 238000000034 method Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 22
- 230000006870 function Effects 0.000 description 11
- 230000015572 biosynthetic process Effects 0.000 description 6
- 238000003786 synthesis reaction Methods 0.000 description 6
- 230000002194 synthesizing effect Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 230000003203 everyday effect Effects 0.000 description 1
- 230000004720 fertilization Effects 0.000 description 1
Images
Landscapes
- Instructional Devices (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
この発明は、表示用画像生成装置に関する。 The present invention relates to a display image generating apparatus.
特許文献1には、地図上に表記されている道路や建物などが日々変化していることに対応するため、地図をリアルタイムで更新するための技術が開示されている。具体的には、特許文献1には、既存の地図データを基準画像とし、人口衛星等による撮像画像であって基準画像とは座標系が異なる画像を対象画像とし、それらの画像を統一座標系上に位置を合わせて重ね合わせる技術が開示されている。
この発明の目的は、主画像を含む対象画像と地図画像とを合成し、合成画像のうち主画像を含む所定領域を、所定の大きさの基準矩形内に主画像ができるだけ大きく現れるように表示することが可能となる表示用画像生成装置を提供することである。
この発明の目的は、主画像と背景画像とを含む対象画像のうち主画像を含む所定領域を、所定の大きさの基準矩形内に主画像ができるだけ大きく現れるように表示することが可能となる表示用画像生成装置を提供することである。
An object of the present invention is to synthesize a target image including a main image and a map image, and display a predetermined area including the main image in the combined image so that the main image appears as large as possible in a reference rectangle of a predetermined size. It is an object of the present invention to provide a display image generating apparatus that can be used.
An object of the present invention is to display a predetermined area including a main image among target images including a main image and a background image so that the main image appears as large as possible in a reference rectangle having a predetermined size. A display image generating apparatus is provided.
この発明による第1の表示用画像生成装置は、解析対象領域内の小領域毎の解析結果を表す主画像および透明背景画像を含み、座標軸と方角とが所定の関係を有する第1XY座標系の対象画像に対して、前記主画像を含む表示対象領域を設定する領域設定部と、座標軸と方角とが前記所定の関係を有する第2XY座標系の地図画像と、前記表示対象領域とを合成して合成画像を生成する合成部と、前記合成画像における所定領域を、前記第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有し、X方向長およびY方向長がそれぞれ所定のX方向基準長Eおよび所定のY方向基準長Fである基準矩形の大きさの表示用画像に変換する変換部とを含む。 A first display image generating apparatus according to the present invention includes a main image and a transparent background image representing an analysis result for each small area in an analysis target area, and includes a first XY coordinate system having a predetermined relationship between coordinate axes and directions. An area setting unit that sets a display target area including the main image, a map image of a second XY coordinate system in which the coordinate axis and direction have the predetermined relationship, and the display target area are combined with the target image. A composite unit that generates a composite image, and a predetermined region in the composite image has two sides parallel to the X axis and two sides parallel to the Y axis of the first XY coordinate system, and the X direction length and the Y direction A conversion unit that converts the image into a display image having a reference rectangular size whose length is a predetermined X-direction reference length E and a predetermined Y-direction reference length F.
前記領域設定部は、前記第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有しかつ前記主画像に外接する外接矩形のX方向長Aに対する前記X方向基準長Eの比である第1の比が、前記外接矩形のY方向長Bに対する前記Y方向基準長Fの比である第2の比よりも小さい場合には、前記対象画像のうち前記外接矩形に囲まれた矩形画像のY方向端に第1ダミー領域を追加し、前記矩形画像と前記第1ダミー領域とからなる領域を前記表示対象領域として設定し、前記第1の比が前記第2の比よりも大きい場合には、前記矩形画像のX方向端に第2ダミー領域を追加し、前記矩形画像と前記第2ダミー領域とからなる領域を前記表示対象領域として設定するように構成されている。 The region setting unit has two sides parallel to the X axis of the first XY coordinate system and two sides parallel to the Y axis, and the X direction reference with respect to an X direction length A of a circumscribed rectangle circumscribing the main image When the first ratio that is the ratio of the length E is smaller than the second ratio that is the ratio of the Y-direction reference length F to the Y-direction length B of the circumscribed rectangle, the circumscribed rectangle of the target image A first dummy area is added to the end of the rectangular image surrounded by Y in the Y direction, an area composed of the rectangular image and the first dummy area is set as the display target area, and the first ratio is the second ratio Is greater than the ratio of the rectangular image, a second dummy area is added to the X-direction end of the rectangular image, and an area composed of the rectangular image and the second dummy area is set as the display target area. ing.
前記合成部は、前記表示対象領域の一組の対頂点各々と、前記地図画像における前記対頂点各々に対応する位置とに基づいて、前記表示対象領域を前記地図画像に貼り付けるように構成されている。
前記変換部は、前記合成画像における前記表示対象領域が貼り付けられている貼付領域を拡大縮小することにより、前記表示用画像を生成するように構成されている。
The compositing unit is configured to paste the display target region on the map image based on each pair of vertexes of the display target region and a position corresponding to each of the paired vertices in the map image. ing.
The conversion unit is configured to generate the display image by enlarging / reducing a pasting region to which the display target region is pasted in the composite image.
この構成によれば、主画像を含む対象画像と地図画像とを合成し、合成画像のうち主画像を含む所定領域を、所定の大きさの基準矩形内に主画像ができるだけ大きく現れるように表示することが可能となる。さらに、この構成によれば、表示用画像のうち、主画像以外の全領域に地図画像を表示することが可能となる。
この発明による第2の表示用画像生成装置は、解析対象領域内の小領域毎の解析結果を表す主画像および透明背景画像を含み、座標軸と方角とが所定の関係を有する第1XY座標系の対象画像と、座標軸と方角とが前記所定の関係を有する第2XY座標系の地図画像とを合成して合成画像を生成する合成部と、前記合成画像のうちの所定領域を、前記第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有し、X方向長およびY方向長がそれぞれ所定のX方向基準長Eおよび所定のY方向基準長Fである基準矩形の大きさの表示用画像に変換する変換部とを含む。
According to this configuration, the target image including the main image is combined with the map image, and a predetermined area including the main image is displayed in the combined image so that the main image appears as large as possible in a reference rectangle having a predetermined size. It becomes possible to do. Furthermore, according to this structure, it becomes possible to display a map image in all the areas | regions other than a main image among the images for a display.
A second display image generating apparatus according to the present invention includes a main image representing a result of analysis for each small region in a region to be analyzed and a transparent background image, and includes a first XY coordinate system having a predetermined relationship between coordinate axes and directions. A synthesizing unit that generates a synthesized image by synthesizing a target image, a map image of a second XY coordinate system in which the coordinate axis and direction have the predetermined relationship, and a predetermined area of the synthesized image, the first XY coordinate A reference rectangle having two sides parallel to the X-axis and two sides parallel to the Y-axis of the system, the X-direction length and the Y-direction length being a predetermined X-direction reference length E and a predetermined Y-direction reference length F, respectively. And a conversion unit that converts the image into a display image having a size of.
前記合成部は、前記第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有しかつ前記主画像に外接する外接矩形の一組の対頂点各々と、前記地図画像における前記対頂点各々に対応する位置とに基づいて、前記対象画像のうち前記外接矩形に囲まれた矩形画像を前記地図画像に貼り付けるように構成されている。
前記変換部は、前記外接矩形のX方向長さAに対する前記X方向基準長Eの比である第1の比が、前記外接矩形のY方向長Bに対する前記Y方向基準長Fの比である第2の比よりも小さい場合には、前記合成画像における前記矩形画像の貼付領域のY方向端に第1ダミー領域を追加し、前記第1ダミー領域追加後の当該貼付領域を拡大縮小することにより、前記表示用画像を生成し、前記第1の比が前記第2の比よりも大きい場合には、前記貼付領域のX方向端に第2ダミー領域を追加し、前記第2ダミー領域追加後の当該貼付領域を拡大縮小することにより、前記表示用画像を生成するように構成されている。
Each of the pair of vertices of a circumscribed rectangle having two sides parallel to the X axis and two sides parallel to the Y axis of the first XY coordinate system and circumscribing the main image; A rectangular image surrounded by the circumscribed rectangle of the target image is pasted to the map image based on the position corresponding to each of the paired vertices in the image.
In the conversion unit, the first ratio that is the ratio of the X-direction reference length E to the X-direction length A of the circumscribed rectangle is the ratio of the Y-direction reference length F to the Y-direction length B of the circumscribed rectangle. When the ratio is smaller than the second ratio, a first dummy area is added to the Y-direction end of the pasting area of the rectangular image in the composite image, and the pasting area after the first dummy area is added is enlarged or reduced. When the display image is generated and the first ratio is larger than the second ratio, a second dummy area is added to the X direction end of the pasting area, and the second dummy area is added. The display image is generated by enlarging or reducing the pasting area later.
この構成によれば、主画像を含む対象画像と地図画像とを合成し、合成画像のうち主画像を含む所定領域を、所定の大きさの基準矩形内に主画像ができるだけ大きく現れるように表示することが可能となる。さらに、この構成によれば、表示用画像のうち、主画像以外の全領域に地図画像を表示することが可能となる。
この発明による第3の表示用画像生成装置は、解析対象領域内の小領域毎の解析結果を表す主画像および背景画像を含み、座標軸と方角とが所定の関係を有するXY座標系の対象画像を、前記XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有し、X方向長さが所定の基準X方向長さEであり、Y方向長さが所定の基準Y方向長さFである基準矩形の大きさの画像に変換するための画像処理装置であって、前記XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有しかつ前記主画像に外接する外接矩形のX方向長さAに対する前記X方向基準長Eの比である第1の比と、前記外接矩形のY方向長Bに対する前記Y方向基準長Fの比である第2の比とを比較する比較部と、前記第1の比が前記第2の比よりも小さい場合には、前記対象画像のうち前記外接矩形に囲まれた矩形画像のY向端に第1ダミー領域を追加し、前記第1ダミー領域追加後の前記矩形画像を拡大縮小することにより、前記基準矩形の大きさの表示用画像を生成し、前記第1の比が前記第2の比よりも大きい場合には、前記矩形画像のX方向端に第2ダミー領域を追加し、前記第2ダミー領域追加後の前記矩形画像を拡大縮小することにより、前記基準矩形の大きさの表示用画像を生成する画像生成部とを含む。
According to this configuration, the target image including the main image is combined with the map image, and a predetermined area including the main image is displayed in the combined image so that the main image appears as large as possible in a reference rectangle having a predetermined size. It becomes possible to do. Furthermore, according to this structure, it becomes possible to display a map image in all the areas | regions other than a main image among the images for a display.
A third display image generating apparatus according to the present invention includes a main image and a background image representing an analysis result for each small area in an analysis target area, and an object image in an XY coordinate system having a predetermined relationship between a coordinate axis and a direction. Having two sides parallel to the X axis and two sides parallel to the Y axis of the XY coordinate system, the X direction length is a predetermined reference X direction length E, and the Y direction length is a predetermined length. An image processing apparatus for converting an image of a reference rectangle size having a length F in the reference Y direction, having two sides parallel to the X axis and two sides parallel to the Y axis of the XY coordinate system. And the ratio of the X-direction reference length E to the X-direction length A of the circumscribed rectangle circumscribing the main image and the ratio of the Y-direction reference length F to the Y-direction length B of the circumscribed rectangle A comparison unit that compares the second ratio, and when the first ratio is smaller than the second ratio, the pair A first dummy area is added to the Y-direction end of the rectangular image surrounded by the circumscribed rectangle in the image, and the rectangular image after the addition of the first dummy area is enlarged / reduced so that the size of the reference rectangle is increased. When a display image is generated and the first ratio is larger than the second ratio, a second dummy area is added to the X-direction end of the rectangular image, and the second dummy area is added. An image generation unit that generates a display image having a size of the reference rectangle by enlarging and reducing the rectangular image.
この構成によれば、主画像と背景画像とを含む対象画像のうち主画像を含む所定領域を、所定の大きさの基準矩形内に主画像ができるだけ大きく現れるように表示することが可能となる。
前記第1または第3の表示用画像生成装置の一実施形態では、前記第1ダミー領域は、前記矩形画像のY方向の両端部にそれぞれ追加され、前記各第1ダミー領域のY方向長さDは、次式(a)で表される。
D=1/2・{(A・F/E)−B} …(a)
前記第1または第3の表示用画像生成装置の一実施形態では、前記第2ダミー領域は、前記矩形領域のX方向の両端部にそれぞれ追加され、前記各第2ダミー領域のX方向長さCは、次式(b)で表される。
C=1/2・{(B・E/F)−A} …(b)
According to this configuration, it is possible to display a predetermined area including the main image among the target images including the main image and the background image so that the main image appears as large as possible in a reference rectangle having a predetermined size. .
In one embodiment of the first or third display image generating device, the first dummy area is added to both ends in the Y direction of the rectangular image, and the length of the first dummy area in the Y direction is added. D is represented by the following formula (a).
D = 1/2 · {(A · F / E) −B} (a)
In one embodiment of the first or third display image generating apparatus, the second dummy area is added to both ends in the X direction of the rectangular area, and the length of the second dummy area in the X direction is set. C is represented by the following formula (b).
C = 1/2 · {(B · E / F) −A} (b)
前記第2の表示用画像生成装置の一実施形態では、前記合成部は、前記外接矩形の一組の対頂点各々と、前記地図画像における前記対頂点各々に対応する位置とが合致するように、前記地図画像を拡大縮小させた後に、前記矩形画像を前記地図画像に貼り付けるように構成されており、前記第1ダミー領域は、前記貼付領域のY方向の両端部にそれぞれ追加され、前記各第1ダミー領域のY方向長さDは、次式(a)で表される。
D=1/2・{(A・F/E)−B} …(a)
In one embodiment of the second display image generating device, the compositing unit is configured so that each set of paired vertices of the circumscribed rectangle matches a position corresponding to each of the paired vertices in the map image. The rectangular image is configured to be pasted on the map image after the map image is enlarged / reduced, and the first dummy areas are respectively added to both ends in the Y direction of the pasting area, The length D in the Y direction of each first dummy region is expressed by the following equation (a).
D = 1/2 · {(A · F / E) −B} (a)
前記第2の表示用画像生成装置の一実施形態では、前記合成部は、前記外接矩形の一組の対頂点各々と、前記地図画像における前記対頂点各々に対応する位置とが合致するように、前記地図画像を拡大縮小させた後に、前記矩形画像を前記地図画像に貼り付けるように構成されており、前記第2ダミー領域は、前記貼付領域のX方向の両端部にそれぞれ追加され、前記各第2ダミー領域のX方向長さCは、次式(b)で表される。
C=1/2・{(B・E/F)−A} …(b)
前記第1、第2または第3の表示用画像生成装置の一実施形態では、前記第1の比がB/Aであり、前記第2の比がF/Eである。
In one embodiment of the second display image generating device, the compositing unit is configured so that each set of paired vertices of the circumscribed rectangle matches a position corresponding to each of the paired vertices in the map image. The rectangular image is configured to be pasted on the map image after the map image is enlarged / reduced, and the second dummy areas are respectively added to both ends in the X direction of the pasting area, The X-direction length C of each second dummy region is expressed by the following equation (b).
C = 1/2 · {(B · E / F) −A} (b)
In one embodiment of the first, second, or third display image generating device, the first ratio is B / A and the second ratio is F / E.
以下では、この発明の実施形態を、添付図面を参照して詳細に説明する。
図1は、この発明の第1実施形態に係る表示用画像生成装置1の構成を示す模式図である。
第1実施形態に係る表示用画像生成装置1は、主画像を含む対象画像と地図画像とを合成し、合成画像のうち主画像を含む所定領域を、基準矩形の大きさの画像に変換することにより、表示用画像(表示用画像データ)を生成する。まず、対象画像と地図画像について説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 is a schematic diagram showing a configuration of a display
The display
この実施形態では、対象画像は、解析対象領域内の小領域(メッシュ)毎の解析結果に基づいて生成される。より具体的には、対象画像は、解析対象領域である圃場に対する正規化差植生指数(NDVI : Normalized Difference Vegetation Index)の分布データに基づいて生成される。以下において、正規化差植生指数をNDVIという場合がある。NDVIについて説明する。植物の緑葉は赤色等の可視光を吸収し、近赤外領域の波長の光を強く反射する。NDVIは、このような緑葉の性質を利用した指数であって、植生の有無や活性度を表す指数である。NDVIは、次式(1)で定義される。
NDVI=(IR−R)/(IR+R) …(1)
IR:近赤外光の観測値
R:可視光の観測値
NDVIは、例えば、0.01〜1.00の値をとるように正規化されており、この値に応じて色を対応付けることで、NDVI画像を生成することができる。
In this embodiment, the target image is generated based on the analysis result for each small region (mesh) in the analysis target region. More specifically, the target image is generated based on distribution data of a normalized difference vegetation index (NDVI) with respect to the field that is the analysis target region. In the following, the normalized difference vegetation index may be referred to as NDVI. NDVI will be described. Green leaves of plants absorb visible light such as red, and strongly reflect light with wavelengths in the near infrared region. NDVI is an index that uses such properties of green leaves and indicates the presence or absence of vegetation and the degree of activity. NDVI is defined by the following formula (1).
NDVI = (IR-R) / (IR + R) (1)
IR: Observed value of near infrared light R: Observed value of visible light NDVI is normalized to take a value of, for example, 0.01 to 1.00, and a color is associated according to this value. NDVI images can be generated.
所定の圃場に対するNDVIの分布データは、例えば、次のようにして作成される。すなわち、マルチスペクトルカメラが搭載された飛行体を、圃場の上空に飛行させながら、マルチスペクトルカメラで圃場を撮影する。マルチスペクトルカメラは、例えば、可視赤色光と近赤外光の画像を撮影できるカメラである。飛行体は、例えば、ドローン(無人航空機)である。そして、得られた撮影画像に基づいて、圃場内の小領域毎のNDVIを演算する。これにより、NDVIの分布データが得られる。 The NDVI distribution data for a predetermined field is created, for example, as follows. That is, the field is photographed with the multispectral camera while the flying object equipped with the multispectral camera is flying over the field. A multispectral camera is a camera that can capture images of visible red light and near-infrared light, for example. The flying object is, for example, a drone (unmanned aerial vehicle). Then, NDVI is calculated for each small area in the field based on the obtained captured image. Thereby, NDVI distribution data is obtained.
図2は、所定の圃場を示す模式図である。図2において、上方向が北を示し、下方向が南を示している。図2の例では、圃場Qの形状は矩形であるが、圃場Qの形状は矩形以外の任意の形状であってもよい。圃場Qは、南北方向に平行な複数の仮想線と、東西方向に平行な複数の仮想線とによって、複数の小領域(メッシュ)qに分割されている。NDVIの分布データは、圃場Q内の小領域q毎の位置情報に対するNDVIから構成されている。位置情報は、例えば、緯度経度情報と高度情報とからなる。NDVIの分布データは、例えば、Geo TIFF形式のGeo TIFFファイルとして提供される。 FIG. 2 is a schematic diagram showing a predetermined farm field. In FIG. 2, the upper direction indicates north and the lower direction indicates south. In the example of FIG. 2, the shape of the field Q is a rectangle, but the shape of the field Q may be any shape other than a rectangle. The field Q is divided into a plurality of small regions (mesh) q by a plurality of virtual lines parallel to the north-south direction and a plurality of virtual lines parallel to the east-west direction. The NDVI distribution data is composed of NDVI for position information for each small region q in the field Q. The position information includes, for example, latitude / longitude information and altitude information. The NDVI distribution data is provided, for example, as a Geo TIFF file in Geo TIFF format.
圃場Qに対するNDVIの分布データを記録したGeo TIFFファイルから、圃場Q内の各小領域qに対するNDVI(解析結果)を表す主画像と透明背景画像とを含む対象画像(対象画像データ)を生成することができる。このような対象画像データは、例えば、PNG形式のPNGファイルとして生成される。
図3は、対象画像の一例を示す模式図である。
A target image (target image data) including a main image representing a NDVI (analysis result) for each small region q in the field Q and a transparent background image is generated from a Geo TIFF file in which NDVI distribution data for the field Q is recorded. be able to. Such target image data is generated, for example, as a PNG file in PNG format.
FIG. 3 is a schematic diagram illustrating an example of a target image.
対象画像40は、座標軸と方角とが所定の関係を有する第1XY座標系の画像である。具体的には、第1XY座標系は、所定位置を原点とし、原点を通りかつ東西方向に延びる直線をX軸とし、原点を通りかつ南北方向に延びる直線をY軸とする平面座標系である。Y軸の正方向が北とされ、X軸の正方向が東とされているものとする。対象画像40は、第1XY座標のX軸に平行な2辺とY軸に平行な2辺を有する矩形画像である。
The
対象画像40は、主画像41と、主画像41以外の透明背景画像42とを含む。主画像41は、圃場Q内の各小領域qに対する解析結果(この例ではNDVI)を表す画像データから構成されている。
図3において、二点鎖線60は、基準矩形を示している。基準矩形60は、第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有する矩形である。基準矩形60のX方向長およびY方向長は、第1XY座標系において、それぞれ所定のX方向基準長EおよびY方向基準長Fに設定されている。
The
In FIG. 3, a two-
図4は、地図画像の一例を示す模式図である。図4には、地図画像の一部のみが表示されている。
地図画像50は、この実施形態では、衛星画像である。地図画像は、航空写真画像であってもよい。地図画像50は、座標軸と方角とが第1XY座標と同じ関係を有する第2XY座標系の画像である。具体的には、第2XY座標系は、第1XY座標系の原点を原点とし、原点を通りかつ東西方向に延びる直線をX軸とし、原点を通りかつ南北方向に延びる直線をY軸とする平面座標系である。Y軸の正方向が北とされ、X軸の正方向が東とされているものとする。図4の地図画像50には、図2の圃場Qを含む複数の圃場が含まれている。
FIG. 4 is a schematic diagram illustrating an example of a map image. In FIG. 4, only a part of the map image is displayed.
In this embodiment, the
図1に戻り、表示用画像生成装置1は、パーソナルコンピュータ(PC)2によって実現される。PC2には、ディスプレイ3、マウス4およびキーボード5が接続されている。PC2は、CPU6、メモリ7、ハードディスク8等を含む。また、PC2には、図示しないが、USB(Universal Serial Bus)ポートが設けられている。
ハードディスク8には、OS(オペレーションシステム)等の他、対象画像と地図画像とに基づいて表示用画像を生成するための表示用画像生成プログラムが格納されている。表示用画像生成プログラムは、例えば、表示用画像生成プログラムが格納されたUSBメモリ等の記憶媒体から取得したり、表示用画像生成プログラムを提供しているウェブサイトからインターネット経由で取得したりすることが可能である。
Returning to FIG. 1, the display
The
また、ハードディスク8には、図3に示される対象画像40の画像データ(対象画像データ)および図4に示される地図画像50の画像データ(地図画像データ)が記憶されているものとする。
以下、ハードディスク8に格納された対象画像データおよび地図画像データに基づいて、表示用画像を生成する場合のPC2の動作について、説明する。
Further, it is assumed that the
Hereinafter, the operation of the
図5は、PC2の機能を説明するための機能ブロック図である。
PC2は、表示用画像生成プログラムを実行することによって、複数の機能処理部として機能する。この機能処理部には、領域設定部11と、合成部12と、変換部13とが含まれる。
領域設定部11は、ハードディスク8内の対象画像データに対応する第1XY座標系の対象画像40(図3参照)に対して、主画像41を含む表示対象領域を設定する。
FIG. 5 is a functional block diagram for explaining the functions of the
The
The
合成部12は、ハードディスク8内の地図画像データに対応する第2XY座標系の地図画像50(図4参照)と、領域設定部11によって設定された表示対象領域とを合成して合成画像を生成する。
変換部13は、合成画像における所定領域を、第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有し、X方向長およびY方向長がそれぞれ所定のX方向基準長Eおよび所定のY方向基準長Fである基準矩形60(図3参照)の大きさの画像に変換する。
The combining
The
以下、領域設定部11、合成部12および変換部13の動作の詳細について説明する。
図6は、表示用画像生成プログラムが起動されたときに、PC2によって実行される処理の手順を示すフローチャートである。
表示用画像生成プログラムが起動されると、領域設定部11は、図7に示すように、第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有しかつ主画像41に外接する外接矩形43のX方向長AおよびY方向長Bを取得する(ステップS1)。
Hereinafter, details of the operations of the
FIG. 6 is a flowchart showing a procedure of processing executed by the
When the display image generation program is started, the
第1XY座標系において、主画像41におけるX座標最小値、X座標最大値、Y座標最小値およびY座標最大値を、それぞれxmin、xmax、yminおよびymaxとすると、外接矩形43は、点a(xmin,ymin)と、点b(xmin,ymax)と、点c(xmax,ymax )と、点d(xmax,ymin)とを頂点とする矩形となる。したがって、外接矩形のX方向長AおよびBは、次式(2),(3)に基づいて求められる。
A=|xmax−xmin| …(2)
B=|ymax−ymin| …(3)
図7において、二点鎖線60は、基準矩形を示している。
In the first XY coordinate system, if the X coordinate minimum value, the X coordinate maximum value, the Y coordinate minimum value, and the Y coordinate maximum value in the
A = | xmax−xmin | (2)
B = | ymax−ymin | (3)
In FIG. 7, an alternate long and two
次に、領域設定部11は、外接矩形43のX方向長Aに対する基準矩形60のX方向基準長Eの比(以下、第1の比E/Aという)と、外接矩形43のY方向長Bに対する基準矩形60のY方向基準長Fの比(以下、第2の比F/Bという)とを比較する(ステップS2)。なお、第1の比E/AとしてB/Aを用いかつ第2の比としてF/Eを用いてもよい。
Next, the
第1の比E/Aが第2の比F/Bよりも小さい場合には、領域設定部11は、図7に示すように、対象画像40のうち外接矩形43に囲まれた矩形画像44のY方向の両端に第1ダミー領域45をそれぞれ追加し、矩形画像44と両第1ダミー領域45とからなる領域を表示対象領域47として設定する(ステップS3)。
各第1ダミー領域45は、矩形画像44のY方向両端の端辺全体からY方向外方に向かってY方向長Dだけ突出した矩形である。各第1ダミー領域45のY方向長Dは、次式(4)で表される。
D=1/2・{(A・F/E)−B} …(4)
When the first ratio E / A is smaller than the second ratio F / B, the
Each of the
D = 1/2 · {(A · F / E) −B} (4)
前記ステップS2において、第1の比E/Aが第2の比F/Bよりも大きいと判別された場合には、領域設定部11は、対象画像40のうち外接矩形43に囲まれた矩形画像44のX方向の両端に第2ダミー領域をそれぞれ追加し、矩形画像44と両第2ダミー領域とからなる領域を表示対象領域47として設定する(ステップS4)。
If it is determined in step S2 that the first ratio E / A is larger than the second ratio F / B, the
例えば、対象画像40が図8に示すような画像である場合には、第1の比E/Aが第2の比F/Bよりも大きいと判別される。このような場合には、各第2ダミー領域は、図8に46で示される領域となる。つまり、各第2ダミー領域46は、矩形画像44のX方向両端の端辺全体からX方向外方に向かってX方向長Cだけ突出した矩形である。
各第2ダミー領域46のX方向長Cは、次式(5)で表される。
C=1/2・{(B・E/F)−A} …(5)
For example, when the
The X-direction length C of each
C = 1/2 · {(B · E / F) −A} (5)
前記ステップS2において、第1の比E/Aが第2の比F/Bと等しいと判別された場合には、領域設定部11は、対象画像40のうち外接矩形43に囲まれた矩形画像44を、表示対象領域47として設定する(ステップS5)。
例えば、対象画像40が図9に示すような画像である場合には、第1の比E/Aが第2の比F/Bと等しい判別される。このような場合には、矩形画像44が表示対象領域47として設定される。
When it is determined in step S2 that the first ratio E / A is equal to the second ratio F / B, the
For example, when the
ステップS3、S4またはS5の処理が終了すると、合成部12は、表示対象領域47と地図画像50とを合成する(ステップS6)。この実施形態では、合成部12は、表示対象領域47の一組の対頂点a,c(またはb,d)の各々と、地図画像50における対頂点a,c(またはb,d)の各々に対応する位置とが一致するように、地図画像50を拡大縮小させた後に、表示対象領域47を地図画像50に貼り付ける。
When the process of step S3, S4, or S5 is completed, the
図10は、拡大縮小後の地図画像50に表示対象領域47が貼り付けられた状態を示す模式図である。図10において、二点鎖線で囲まれた領域が、表示対象領域47が貼り付けられた貼付領域70である。貼付領域70内の主画像41に対応する領域71には主画像41が現れ、貼付領域70内の領域71以外の領域(背景画像42に対応する領域72および第1ダミー領域に対応する領域73)の領域には地図画像が現れる。
FIG. 10 is a schematic diagram showing a state where the
次に、変換部13は、貼付領域70を拡大縮小することにより、第1XY座標系での基準矩形60の大きさの表示用画像を生成する(ステップS7)。
具体的には、ステップS3の処理によって表示対象領域47が設定されている場合には、変換部13は、貼付領域70の縦横をE/A倍することによって、貼付領域70を基準矩形60の大きさの表示用画像に変換する。変換後の貼付領域内の主画像41に対応する領域を、図7に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。表示用画像内の主画像41の領域81以外の領域には、地図画像が表示される。
Next, the
Specifically, when the
ステップS4の処理によって表示対象領域47が設定されている場合には、変換部33は、貼付領域の縦横をF/B倍することによって、貼付領域を基準矩形60の大きさの画像に変換する。変換後の貼付領域内の主画像41に対応する領域を、図8に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。表示用画像内の主画像41の領域81以外の領域には、地図画像が表示される。
When the
また、ステップS5の処理によって表示対象領域47が設定されている場合には、変換部13は、貼付領域の縦横をE/A倍(またはF/B倍)することによって、貼付領域を基準矩形60の大きさの表示用画像に変換する。変換後の貼付領域内の主画像41に対応する領域を、図9に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。表示用画像内の主画像41の領域81以外の領域には、地図画像が表示される。
When the
ステップS7の処理が終了すると、変換部13は、生成された表示用画像の画像データを、対象画像40に対する表示用画像データとしてハードディスク8に記憶する(ステップS8)。これにより、対象画像40に対応する表示用画像をディスプレイに表示したり、記録紙に印刷したりすることが可能となる。
前述の第1実施形態によれば、主画像41を含む対象画像40と地図画像50とを合成し、合成画像のうち主画像41を含む所定領域を、所定の大きさの基準矩形60内に主画像41ができるだけ大きく現れるように表示することが可能となる。さらに、前述の第1実施形態によれば、表示用画像のうち、主画像41以外の全領域に地図画像50を表示することが可能となる。
When the process of step S7 ends, the
According to the first embodiment described above, the
前述の第1実施形態のステップS3では、領域設定部11は、対象画像40のうち外接矩形43に囲まれた矩形画像44のY方向の両端に第1ダミー領域45をそれぞれ追加している。しかし、領域設定部11は、対象画像40のうち外接矩形43に囲まれた矩形画像44のY方向の一方端のみに第1ダミー領域45を追加してもよい。この場合、第1ダミー領域45のY方向長Dは、次式(6)で表される。
D={(A・F/E)−B} ……(6)
In step S <b> 3 of the first embodiment described above, the
D = {(A / F / E) -B} (6)
また、前述の第1実施形態のステップS4では、領域設定部11は、対象画像40のうち外接矩形43に囲まれた矩形画像44のX方向の両端に第2ダミー領域46をそれぞれ追加している。しかし、領域設定部11は、対象画像40のうち外接矩形43に囲まれた矩形画像44のX方向の一方端のみに第2ダミー領域46を追加してもよい。この場合、第2ダミー領域46のX方向長Cは、次式(7)で表される。
C={(B・E/F)−A} ……(7)
In step S4 of the first embodiment described above, the
C = {(B · E / F) −A} (7)
次に、この発明の第2実施形態に係る表示用画像生成装置について説明する。第2実施形態に係る表示用画像生成装置1の全体構成は、図1に示す表示用画像生成装置1と同様である。第2実施形態に係る表示用画像生成装置1は、第1実施形態に係る表示用画像生成装置1と同様に、主画像を含む対象画像と地図画像とを合成し、合成画像のうち主画像を含む所定領域を、基準矩形の大きさの画像に変換することにより、表示用画像(表示用画像データ)を生成する。
Next, a display image generating apparatus according to the second embodiment of the present invention will be described. The overall configuration of the display
第2実施形態に係る表示用画像生成装置1と、第2実施形態に係る表示用画像生成装置1では、ハードディスク8に格納されている表示用画像生成プログラムが異なっている。第2実施形態に係る表示用画像生成装置1においても、ハードディスク8には、図3の対象画像40に対応した対象画像データおよび図4の地図画像50に対応した地図画像データが格納されているものとする。
The display
図11は、PC2の機能を説明するための機能ブロック図である。
PC2は、機能処理部として、合成部21と、変換部22とを含む。
合成部21は、対象画像データを展開することに得られる第1XY座標系の対象画像40(図3参照)と、地図画像データを展開することに得られる第2XY座標系の地図画像50(図4参照)とを合成する。
FIG. 11 is a functional block diagram for explaining the functions of the
The
The synthesizing
変換部22は、合成画像のうちの所定領域を、第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有し、X方向長およびY方向長がそれぞれ所定のX方向基準長Eおよび所定のY方向基準長Fである基準矩形の大きさの画像に変換する。
以下、合成部21および変換部22の動作の詳細について説明する。
図12は、表示用画像生成プログラムが起動されたときに、PC2によって実行される処理の手順を示すフローチャートである。
The
Hereinafter, the details of the operations of the
FIG. 12 is a flowchart showing a procedure of processing executed by the
表示用画像生成プログラムが起動されると、合成部21は、図13に示すように、第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有しかつ主画像61に外接する外接矩形43の一組の対頂点各々に対応する位置の情報(座標値)を取得するとともに、外接矩形43のX方向長AおよびY方向長Bを取得する(ステップS11)。
第1XY座標において、主画像41におけるX座標最小値、X座標最大値、Y座標最小値およびY座標最大値を、それぞれxmin、xmax、yminおよびymaxとすると、外接矩形43は、点a(xmin,ymin)と、点b(xmin,ymax)と、点c(xmax,ymax )と、点d(xmax,ymin)とを頂点とする矩形となる。したがって、点aと点cとが1方の組の対頂点となるとともに、点bと点dとが他方の組の対頂点となる。そこで、合成部21は、これら二組の対頂点のうちいずれか一方の組の対頂点各々に対応する位置の情報(座標値)を取得する。
また、合成部21は、前述した式(2),(3)に基づいて、外接矩形43のX方向長AおよびY方向長Bを算出する。
When the display image generation program is started, the combining
In the first XY coordinate, if the X coordinate minimum value, the X coordinate maximum value, the Y coordinate minimum value, and the Y coordinate maximum value in the
Further, the combining
図13において、二点鎖線60は、基準矩形を示している。
次に、合成部21は、対象画像40のうち外接矩形43に囲まれた矩形画像44と、地図画像50とを合成する(ステップS12)。この実施形態では、合成部21は、ステップS11で位置の情報が取得されている、外接矩形43の一組の対頂点各々と、地図画像50における前記対頂点各々に対応する位置とが一致するように、地図画像50を拡大縮小させた後に、矩形画像44を地図画像50に貼り付ける。
In FIG. 13, an alternate long and two
Next, the synthesizing
図14は、拡大縮小後の地図画像50に矩形画像44が貼り付けられた状態を示す模式図である。図14において、二点鎖線で囲まれた領域が、矩形画像44が貼り付けられた貼付領域70である。貼付領域70内の主画像41に対応する領域71には主画像41が現れ、貼付領域70内の領域71以外の領域72(背景画像42に対応する領域)には地図画像が現れる。
FIG. 14 is a schematic diagram showing a state in which a
次に、変換部22は、外接矩形43のX方向長Aに対する基準矩形60のX方向基準長Eの比である第1の比E/Aと、外接矩形43のY方向長Bに対する基準矩形60のY方向基準長Fの比である第2の比F/Bとを比較する(ステップS13)。なお、第1の比E/AとしてB/Aを用いかつ第2の比としてF/Eを用いてもよい。
第1の比E/Aが第2の比F/Bよりも小さい場合には、変換部22は、図14に示すように、貼付領域70のY方向の両端に第1ダミー領域73をそれぞれ追加することにより、表示対象領域75を設定する(ステップS14)。
Next, the converting
When the first ratio E / A is smaller than the second ratio F / B, the
各第1ダミー領域73は、貼付領域70のY方向両端の端辺全体からY方向外方に向かってY方向長Dだけ突出した矩形である。各第1ダミー領域73のY方向長Dは、前記式(4)で表される。表示対象領域75は、貼付領域70と両第1ダミー領域73とからなる領域である。
ステップS13において、第1の比E/Aが第2の比F/Bよりも大きいと判別された場合には、変換部22は、貼付領域のX方向端の両側に第2ダミー領域(図示略)をそれぞれ追加することにより、表示対象領域を設定する(ステップS15)。
Each of the
In step S13, when it is determined that the first ratio E / A is larger than the second ratio F / B, the
各第2ダミー領域は、貼付領域のX方向両端の端辺全体からX方向外方に向かって方向長Cだけ突出した矩形である。各第2ダミー領域のX方向長Cは、前記式(5)で表される。表示対象領域は、貼付領域と両第2ダミー領域とからなる領域である。
前記ステップS13において、第1の比E/Aが第2の比F/Bに等しいと判別された場合には、変換部22は、貼付領域を表示対象領域として設定する(ステップS16)。
Each of the second dummy areas is a rectangle protruding by a direction length C from the entire end sides at both ends in the X direction of the pasting area toward the outside in the X direction. The X-direction length C of each second dummy region is expressed by the above equation (5). The display target area is an area including a pasting area and both second dummy areas.
When it is determined in step S13 that the first ratio E / A is equal to the second ratio F / B, the
ステップS14、S15またはS16の処理が終了すると、変換部22は、表示対象領域を拡大縮小することにより、基準矩形60の大きさの表示用画像を生成する(ステップS17)。
具体的には、ステップS14の処理によって表示対象領域75が設定されている場合には、表示対象領域75を、E/A倍することにより、基準矩形60の大きさの表示用画像を生成する(ステップS16)。このようにして生成される表示用画像内の主画像41に対応する領域を、図13に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。表示用画像内の主画像41の領域81以外の領域には、地図画像が表示される。
When the process of step S14, S15, or S16 ends, the
Specifically, when the
ステップS15の処理によって表示対象領域が設定されている場合には、表示対象領域を、F/B倍することにより、基準矩形60の大きさの表示用画像を生成する。
ステップS16の処理によって表示対象領域が設定されている場合には、表示対象領域(貼付領域)を、E/A倍(またはF/B倍)することにより、基準矩形60の大きさの表示用画像を生成する。
When the display target area is set by the process of step S15, the display target area is generated by multiplying the display target area by F / B, thereby generating a display image having the size of the
When the display target area is set by the process of step S16, the display target area (pasted area) is displayed by E / A times (or F / B times) to display the size of the
ステップS17の処理が終了すると、変換部22は、生成された表示用画像の画像データを、対象画像40に対する表示用画像データとしてハードディスク8に記憶する(ステップS18)。これにより、対象画像40に対応する表示用画像をディスプレイに表示したり、記録紙に印刷したりすることが可能となる。
前述の第2実施形態においても、第1実施形態と同様な効果が得られる。
When the process of step S17 ends, the
In the second embodiment described above, the same effects as in the first embodiment can be obtained.
第2実施形態のステップS14では、変換部22は、貼付領域70のY方向の両端に第1ダミー領域73をそれぞれ追加している。しかし、変換部22は、貼付領域70のY方向の一方端のみに第1ダミー領域を追加してもよい。この場合、第1ダミー領域73のY方向長Dは、前記式(6)で表される。
第2実施形態のステップS15では、変換部22は、貼付領域のX方向の両端に第2ダミー領域をそれぞれ追加している。しかし、変換部22は、貼付領域のX方向の一端のみに第2ダミー領域を追加してもよい。この場合、第2ダミー領域のX方向長Cは、前記式(7)で表される。
In step S <b> 14 of the second embodiment, the
In step S15 of the second embodiment, the
次に、この発明の第3実施形態に係る表示用画像生成装置について説明する。第3実施形態に係る表示用画像生成装置1の全体構成は、図1に示す表示用画像生成装置1と同様である。第3実施形態に係る表示用画像生成装置1と、第1実施形態に係る表示用画像生成装置1では、ハードディスク8に格納されている表示用画像生成プログラムが異なっている。
Next explained is a display image generating apparatus according to the third embodiment of the invention. The overall configuration of the display
第3実施形態に係る表示用画像生成装置1は、主画像を含む対象画像から、基準矩形の大きさの表示用画像を生成する。ハードディスク8には、図3の対象画像40に対応した対象画像データが格納されているものとする。第3実施形態においては、対象画像40の背景画像は、透明であってもよいし、不透明であってもよい。対象画像40の背景画像は、例えば、白であってもよい。
The display
図15は、PC2の機能を説明するための機能ブロック図である。
PC2は、機能処理部として、比較部31と画像生成部32とを含む。
以下、比較部31および画像生成部32の動作の詳細について説明する。
図16は、表示用画像生成プログラムが起動されたときに、PC2によって実行される処理の手順を示すフローチャートである。
FIG. 15 is a functional block diagram for explaining the functions of the
The
Details of the operations of the
FIG. 16 is a flowchart showing a procedure of processing executed by the
表示用画像生成プログラムが起動されると、比較部31は、図7に示すように、第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有しかつ主画像41に外接する外接矩形43のX方向長AおよびY方向長Bを取得する(ステップS31)。この処理は、図6のステップS1において領域設定部11が行う処理と同様であるのでその説明を省略する。なお、図7において、二点鎖線60は、基準矩形の大きさを表している。
When the display image generation program is started, the
次に、比較部31は、外接矩形43のX方向長Aに対する基準矩形60のX方向基準長Eの比(第1の比E/A)と、外接矩形43のY方向長Bに対する基準矩形60のY方向基準長Fの比(第2の比F/B)とを比較する(ステップS32)。なお、第1の比E/AとしてB/Aを用いかつ第2の比としてF/Eを用いてもよい。
第1の比E/Aが第2の比F/Bよりも小さい場合には、画像生成部32は、図7に示すように、対象画像40のうち外接矩形43に囲まれた矩形画像44のY方向の両端に第1ダミー領域45をそれぞれ追加し、矩形画像44と両第1ダミー領域45とからなる領域を表示対象領域47として設定する(ステップS33)。
Next, the
When the first ratio E / A is smaller than the second ratio F / B, the
各第1ダミー領域45は、矩形画像44のY方向両端の端辺全体からY方向外方に向かってY方向長Dだけ突出した矩形である。各第1ダミー領域45のY方向長Dは、前記式(4)で表される。
前記ステップS2において、第1の比E/Aが第2の比F/Bよりも大きいと判別された場合には、画像生成部32は、対象画像40のうち外接矩形43に囲まれた矩形画像44のX方向の両端に第2ダミー領域をそれぞれ追加し、矩形画像44と両第2ダミー領域とからなる領域を表示対象領域として設定する(ステップS34)。
Each of the
If it is determined in step S <b> 2 that the first ratio E / A is greater than the second ratio F / B, the
例えば、対象画像40が図8に示すような画像である場合には、第1の比E/Aが第2の比F/Bよりも大きいと判別される。このような場合には、各第2ダミー領域は、図8に46で示される領域となる。つまり、各第2ダミー領域46は、矩形画像44の各X方向両端の端辺全体からX方向外方に向かってX方向長Cだけ突出した矩形である。各第2ダミー領域46のX方向長Cは、前記式(5)で表される。この場合には、矩形画像44と両第2ダミー領域46とからなる領域が、表示対象領域47として設定される。
For example, when the
前記ステップS32において、第1の比E/Aが第2の比F/Bと等しいと判別された場合には、画像生成部32は、対象画像40のうち外接矩形43に囲まれた矩形画像44を、表示対象領域47として設定する(ステップS35)。
例えば、対象画像40が図9に示すような画像である場合には、第1の比E/Aが第2の比F/Bと等しい判別される。この場合には、矩形画像44が表示対象領域47として設定される。
When it is determined in step S <b> 32 that the first ratio E / A is equal to the second ratio F / B, the
For example, when the
ステップS33、S34またはS35の処理が終了すると、画像生成部32は、表示対象領域47を拡大縮小することにより、基準矩形60の大きさの表示用画像を生成する(ステップS36)。
具体的には、ステップS33の処理によって表示対象領域47が設定されている場合には、表示対象領域47の縦横をE/A倍することによって、表示用画像を生成する。このようにして生成される表示用画像内の主画像41に対応する領域を、図7に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。
When the process of step S33, S34, or S35 is completed, the
Specifically, when the
ステップS34の処理によって表示対象領域47が設定されている場合には、画像生成部32は、表示対象領域47の縦横をF/B倍することによって、表示用画像を生成する。このようにして生成される表示用画像内の主画像41に対応する領域を、図8に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。
ステップS35の処理によって表示対象領域47が設定されている場合には、画像生成部32は、表示対象領域47(矩形画像44)の縦横をE/A倍(またはF/B倍)することによって、表示用画像を生成する。このようにして生成される表示用画像内の主画像41に対応する領域を、図9に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。
When the
When the
ステップS36の処理が終了すると、画像生成部32は、生成された表示用画像の画像データを、対象画像40に対する表示用画像データとしてハードディスク8に記憶する(ステップS37)。これにより、対象画像40に対応する表示用画像をディスプレイに表示したり、記録紙に印刷したりすることが可能となる。
前述の第3実施形態によれば、対象画像40における主画像を含む所定領域を、所定の大きさの基準矩形60内に主画像41ができるだけ大きく現れるように表示することが可能となる表示用画像データを生成できる。
When the process of step S36 ends, the
According to the third embodiment described above, the predetermined area including the main image in the
第3実施形態のステップS33では、画像生成部32は、矩形画像44のY方向の両端に第1ダミー領域45をそれぞれ追加している。しかし、画像生成部32は、矩形画像44のY方向の一端のみに第1ダミー領域45を追加してもよい。この場合、第1ダミー領域45のY方向長Dは、前記式(6)で表される。
第3実施形態のステップS34では、画像生成部32は、矩形画像44のX方向の両端に第2ダミー領域をそれぞれ追加している。しかし、画像生成部32は、矩形画像44のX方向端の一方側のみに第2ダミー領域を追加してもよい。この場合、第2ダミー領域のX方向長Cは、前記式(7)で表される。
In step S <b> 33 of the third embodiment, the
In step S <b> 34 of the third embodiment, the
以上、この発明の実施形態について説明したが、この発明はさらに他の形態で実施することもできる。例えば、前述の実施形態では、対象画像内の主画像は、圃場等の解析対象領域内の小領域毎のNDVIを表す画像データから構成されている。しかしながら、主画像は、解析対象領域内の小領域毎のNDVI以外の解析結果を表す画像データから構成されていてもよい。NDVI以外の解析結果としては、例えば、植被率、施肥すべき施肥量等であってもよい。 As mentioned above, although embodiment of this invention was described, this invention can also be implemented with another form. For example, in the above-described embodiment, the main image in the target image is composed of image data representing NDVI for each small region in the analysis target region such as a farm field. However, the main image may be composed of image data representing analysis results other than NDVI for each small area in the analysis target area. As an analysis result other than NDVI, for example, a planting rate, a fertilization amount to be fertilized, and the like may be used.
その他、特許請求の範囲に記載された事項の範囲で種々の設計変更を施すことが可能である。 In addition, various design changes can be made within the scope of matters described in the claims.
1 表示用画像生成装置
2 パーソナルコンピュータ(PC)
6 CPU
7 メモリ
8 ハードディスク
11 領域設定部
12 合成部
13 変換部
21 合成部
22 変換部
31 比較部
32 画像生成部
40 対象画像
41 主画像
42 背景画像
43 外接矩形
44 矩形画像
45,73 第1ダミー領域
46 第2ダミー領域
47 表示対象領域
50 地図画像
60 基準矩形
70 貼付領域
71 貼付領域内の主画像に対応する領域
75 表示対象領域
DESCRIPTION OF
6 CPU
7
Claims (8)
座標軸と方角とが前記所定の関係を有する第2XY座標系の地図画像と、前記表示対象領域とを合成して合成画像を生成する合成部と、
前記合成画像における所定領域を、前記第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有し、X方向長およびY方向長がそれぞれ所定のX方向基準長Eおよび所定のY方向基準長Fである基準矩形の大きさの表示用画像に変換する変換部とを含み、
前記領域設定部は、
前記第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有しかつ前記主画像に外接する外接矩形のX方向長Aに対する前記X方向基準長Eの比である第1の比が、前記外接矩形のY方向長Bに対する前記Y方向基準長Fの比である第2の比よりも小さい場合には、前記対象画像のうち前記外接矩形に囲まれた矩形画像のY方向端に第1ダミー領域を追加し、前記矩形画像と前記第1ダミー領域とからなる領域を前記表示対象領域として設定し、
前記第1の比が前記第2の比よりも大きい場合には、前記矩形画像のX方向端に第2ダミー領域を追加し、前記矩形画像と前記第2ダミー領域とからなる領域を前記表示対象領域として設定するように構成されており、
前記合成部は、前記表示対象領域の一組の対頂点各々と、前記地図画像における前記対頂点各々に対応する位置とに基づいて、前記表示対象領域を前記地図画像に貼り付けるように構成されており、
前記変換部は、前記合成画像における前記表示対象領域が貼り付けられている貼付領域を拡大縮小することにより、前記表示用画像を生成するように構成されている、表示用画像生成装置。 A display object including the main image with respect to a target image of the first XY coordinate system including a main image and a transparent background image representing an analysis result for each small area in the analysis target area and having a predetermined relationship between coordinate axes and directions An area setting section for setting an area;
A combining unit that combines the map image of the second XY coordinate system in which the coordinate axis and the direction have the predetermined relationship and the display target region to generate a combined image;
The predetermined area in the composite image has two sides parallel to the X axis and two sides parallel to the Y axis of the first XY coordinate system, and the X direction length and the Y direction length are each a predetermined X direction reference length E. And a conversion unit that converts the image into a display image having a reference rectangle size having a predetermined Y-direction reference length F,
The region setting unit
The ratio of the X-direction reference length E to the X-direction length A of a circumscribed rectangle that has two sides parallel to the X axis and two sides parallel to the Y axis of the first XY coordinate system and circumscribes the main image When the first ratio is smaller than the second ratio that is the ratio of the Y-direction reference length F to the Y-direction length B of the circumscribed rectangle, a rectangular image surrounded by the circumscribed rectangle in the target image A first dummy area is added to the Y-direction end of the image, and an area composed of the rectangular image and the first dummy area is set as the display target area,
When the first ratio is larger than the second ratio, a second dummy area is added to the X-direction end of the rectangular image, and an area including the rectangular image and the second dummy area is displayed. It is configured to be set as the target area,
The compositing unit is configured to paste the display target region on the map image based on each pair of vertexes of the display target region and a position corresponding to each of the paired vertices in the map image. And
The display image generation device configured to generate the display image by enlarging or reducing the pasting region to which the display target region is pasted in the composite image.
前記合成画像のうちの所定領域を、前記第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有し、X方向長およびY方向長がそれぞれ所定のX方向基準長Eおよび所定のY方向基準長Fである基準矩形の大きさの表示用画像に変換する変換部とを含み、
前記合成部は、前記第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有しかつ前記主画像に外接する外接矩形の一組の対頂点各々と、前記地図画像における前記対頂点各々に対応する位置とに基づいて、前記対象画像のうち前記外接矩形に囲まれた矩形画像を前記地図画像に貼り付けるように構成されており、
前記変換部は、
前記外接矩形のX方向長さAに対する前記X方向基準長Eの比である第1の比が、前記外接矩形のY方向長Bに対する前記Y方向基準長Fの比である第2の比よりも小さい場合には、前記合成画像における前記矩形画像の貼付領域のY方向端に第1ダミー領域を追加し、前記第1ダミー領域追加後の当該貼付領域を拡大縮小することにより、前記表示用画像を生成し、
前記第1の比が前記第2の比よりも大きい場合には、前記貼付領域のX方向端に第2ダミー領域を追加し、前記第2ダミー領域追加後の当該貼付領域を拡大縮小することにより、前記表示用画像を生成するように構成されている、表示用画像生成装置。 The target image of the first XY coordinate system including the main image representing the analysis result for each small area in the analysis target area and the transparent background image and having a predetermined relationship between the coordinate axis and the direction, and the predetermined relationship between the coordinate axis and the direction. Combining a map image of the second XY coordinate system having
The predetermined area of the composite image has two sides parallel to the X axis and two sides parallel to the Y axis of the first XY coordinate system, and the X direction length and the Y direction length are respectively predetermined X direction references. A conversion unit for converting the image into a display image having a size of a reference rectangle having a length E and a predetermined Y-direction reference length F,
Each of the pair of vertices of a circumscribed rectangle having two sides parallel to the X axis and two sides parallel to the Y axis of the first XY coordinate system and circumscribing the main image; Based on the position corresponding to each of the paired vertices in the image, is configured to paste a rectangular image surrounded by the circumscribed rectangle of the target image to the map image,
The converter is
The first ratio that is the ratio of the X-direction reference length E to the X-direction length A of the circumscribed rectangle is the second ratio that is the ratio of the Y-direction reference length F to the Y-direction length B of the circumscribed rectangle. Is smaller, the first dummy area is added to the Y direction end of the pasting area of the rectangular image in the composite image, and the pasting area after the addition of the first dummy area is enlarged or reduced, thereby Generate an image,
When the first ratio is larger than the second ratio, a second dummy area is added to the X-direction end of the pasting area, and the pasting area after the second dummy area is added is enlarged or reduced. The display image generation device is configured to generate the display image.
前記XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有しかつ前記主画像に外接する外接矩形のX方向長さAに対する前記X方向基準長Eの比である第1の比と、前記外接矩形のY方向長Bに対する前記Y方向基準長Fの比である第2の比とを比較する比較部と、
前記第1の比が前記第2の比よりも小さい場合には、前記対象画像のうち前記外接矩形に囲まれた矩形画像のY向端に第1ダミー領域を追加し、前記第1ダミー領域追加後の前記矩形画像を拡大縮小することにより、前記基準矩形の大きさの表示用画像を生成し、前記第1の比が前記第2の比よりも大きい場合には、前記矩形画像のX方向端に第2ダミー領域を追加し、前記第2ダミー領域追加後の前記矩形画像を拡大縮小することにより、前記基準矩形の大きさの表示用画像を生成する画像生成部とを含む、表示用画像生成装置。 An object image in an XY coordinate system including a main image and a background image representing an analysis result for each small area in the analysis object area and having a predetermined relationship between coordinate axes and directions is parallel to the X axis of the XY coordinate system. The size of a reference rectangle having two sides parallel to the Y-axis, the X-direction length being a predetermined reference X-direction length E, and the Y-direction length being a predetermined reference Y-direction length F An image processing apparatus for converting to an image of
The ratio of the X-direction reference length E to the X-direction length A of a circumscribed rectangle having two sides parallel to the X axis and two sides parallel to the Y axis of the XY coordinate system and circumscribing the main image A comparison unit that compares the first ratio with a second ratio that is a ratio of the Y-direction reference length F to the Y-direction length B of the circumscribed rectangle;
When the first ratio is smaller than the second ratio, a first dummy area is added to the Y-direction end of the rectangular image surrounded by the circumscribed rectangle in the target image, and the first dummy area A display image having the size of the reference rectangle is generated by enlarging / reducing the added rectangular image, and when the first ratio is larger than the second ratio, the X of the rectangular image An image generation unit that generates a display image having a size of the reference rectangle by adding a second dummy area to a direction end and enlarging / reducing the rectangular image after the addition of the second dummy area. Image generation device.
D=1/2・{(A・F/E)−B} …(a) The first dummy area is added to both ends of the rectangular image in the Y direction, respectively, and the length D in the Y direction of each first dummy area is expressed by the following expression (a). A display image generating apparatus according to claim 1.
D = 1/2 · {(A · F / E) −B} (a)
C=1/2・{(B・E/F)−A} …(b) 4. The second dummy area is added to both ends in the X direction of the rectangular area, and the length C in the X direction of each second dummy area is expressed by the following formula (b). A display image generating apparatus according to claim 1.
C = 1/2 · {(B · E / F) −A} (b)
前記第1ダミー領域は、前記貼付領域のY方向の両端部にそれぞれ追加され、前記各第1ダミー領域のY方向長さDは、次式(a)で表される、請求項2に記載の表示用画像生成装置。
D=1/2・{(A・F/E)−B} …(a) The combining unit enlarges and reduces the map image so that each pair of vertexes of the circumscribed rectangle matches a position corresponding to each pair of vertices in the map image, It is configured to be pasted on the map image,
The said 1st dummy area | region is each added to the both ends of the Y direction of the said sticking area | region, The Y direction length D of each said 1st dummy area | region is represented by following Formula (a). Display image generating apparatus.
D = 1/2 · {(A · F / E) −B} (a)
前記第2ダミー領域は、前記貼付領域のX方向の両端部にそれぞれ追加され、前記各第2ダミー領域のX方向長さCは、次式(b)で表される、請求項2に記載の表示用画像生成装置。
C=1/2・{(B・E/F)−A} …(b) The combining unit enlarges and reduces the map image so that each pair of vertexes of the circumscribed rectangle matches a position corresponding to each pair of vertices in the map image, It is configured to be pasted on the map image,
The said 2nd dummy area | region is each added to the both ends of the X direction of the said sticking area | region, The X direction length C of each said 2nd dummy area | region is represented by following Formula (b). Display image generating apparatus.
C = 1/2 · {(B · E / F) −A} (b)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018103793A JP7166074B2 (en) | 2018-05-30 | 2018-05-30 | display image generator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018103793A JP7166074B2 (en) | 2018-05-30 | 2018-05-30 | display image generator |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019207375A true JP2019207375A (en) | 2019-12-05 |
JP7166074B2 JP7166074B2 (en) | 2022-11-07 |
Family
ID=68767690
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018103793A Active JP7166074B2 (en) | 2018-05-30 | 2018-05-30 | display image generator |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7166074B2 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000354416A (en) * | 1999-06-16 | 2000-12-26 | Yanmar Agricult Equip Co Ltd | Harvested quantity detector for combine harvester |
JP2003005632A (en) * | 2001-06-20 | 2003-01-08 | Pasuko:Kk | Map and photograph image delivery system and its client system |
JP2007310463A (en) * | 2006-05-16 | 2007-11-29 | Hitachi Software Eng Co Ltd | Farm field management support method and system |
JP2008053884A (en) * | 2006-08-23 | 2008-03-06 | Sony Computer Entertainment Inc | Image processing method and apparatus and electronic device utilizing them |
-
2018
- 2018-05-30 JP JP2018103793A patent/JP7166074B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000354416A (en) * | 1999-06-16 | 2000-12-26 | Yanmar Agricult Equip Co Ltd | Harvested quantity detector for combine harvester |
JP2003005632A (en) * | 2001-06-20 | 2003-01-08 | Pasuko:Kk | Map and photograph image delivery system and its client system |
JP2007310463A (en) * | 2006-05-16 | 2007-11-29 | Hitachi Software Eng Co Ltd | Farm field management support method and system |
JP2008053884A (en) * | 2006-08-23 | 2008-03-06 | Sony Computer Entertainment Inc | Image processing method and apparatus and electronic device utilizing them |
Also Published As
Publication number | Publication date |
---|---|
JP7166074B2 (en) | 2022-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109493407B (en) | Method and device for realizing laser point cloud densification and computer equipment | |
US11017503B2 (en) | Techniques for atmospheric and solar correction of aerial images | |
JP5168580B2 (en) | Driving simulation device, wide-angle camera image simulation device, and image deformation synthesis device | |
JP4803594B2 (en) | Apparatus and program for generating free viewpoint image by local region segmentation | |
WO2023280038A1 (en) | Method for constructing three-dimensional real-scene model, and related apparatus | |
CN112927362A (en) | Map reconstruction method and device, computer readable medium and electronic device | |
CN114565863B (en) | Real-time generation method, device, medium and equipment for orthophoto of unmanned aerial vehicle image | |
JP7220785B2 (en) | Survey sampling point planning method, device, control terminal and storage medium | |
CN108073909A (en) | Method and apparatus, computer installation and the storage medium of the fuzzy facial image of synthesis | |
CN109472752A (en) | More exposure emerging systems based on Aerial Images | |
CN106611056B (en) | Method and device for cutting three-dimensional simulation map | |
CN113256742A (en) | Interface display method and device, electronic equipment and computer readable medium | |
JP2007148784A (en) | Image composition system and image composition method | |
JP7241812B2 (en) | Information visualization system, information visualization method, and program | |
JP2021192244A (en) | Positional information generating method, related apparatus, and computer program product | |
Yoo et al. | True orthoimage generation by mutual recovery of occlusion areas | |
JP3490774B2 (en) | How to generate geospecific textures | |
JP7166074B2 (en) | display image generator | |
KR100959943B1 (en) | Revision method of picture image based on the three-dimensional model data | |
JP4703744B2 (en) | Content expression control device, content expression control system, reference object for content expression control, and content expression control program | |
CN114018243A (en) | Map data processing method, device, equipment and storage medium | |
WO2020026739A1 (en) | Image processing device | |
Chatzifoti | On the popularization of digital close-range photogrammetry: a handbook for new users. | |
JP3423848B2 (en) | Geographic information system | |
CN117557466B (en) | Optical remote sensing image target image enhancement method and device based on imaging conditions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210112 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20211029 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20211118 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220112 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220526 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220603 |
|
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: 20221013 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20221025 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7166074 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |