JP2019207375A - Image generator for display - Google Patents

Image generator for display Download PDF

Info

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
Application number
JP2018103793A
Other languages
Japanese (ja)
Other versions
JP7166074B2 (en
Inventor
想介 村田
Sosuke MURATA
想介 村田
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.)
Yanmar Co Ltd
Original Assignee
Yanmar 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 Yanmar Co Ltd filed Critical Yanmar Co Ltd
Priority to JP2018103793A priority Critical patent/JP7166074B2/en
Publication of JP2019207375A publication Critical patent/JP2019207375A/en
Application granted granted Critical
Publication of JP7166074B2 publication Critical patent/JP7166074B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Instructional Devices (AREA)
  • Processing Or Creating Images (AREA)

Abstract

To provide an image generator for display with which it is possible to synthesize a target image including a main image and a map image and display a prescribed region of the synthesized image that includes the main image in such a way that the main image appears as large as possible within a reference rectangle of prescribed size.SOLUTION: When a first ratio that is the ratio of a reference length in a direction X to the length of a bounding rectangle 43 in the direction X that has two sides parallel to an axis X and two sides parallel to an axis Y of a first XY coordinate system and circumscribes a main image 41 is smaller than a second ratio that is the ratio of a reference length in a direction Y to the length of the bounding rectangle 43 in the direction Y, a region setting unit adds a first dummy region 45 to an edge in the direction Y of a rectangular image 44 of a target image 40 that is enclosed in the bounding rectangle 43, and sets a region composed of the rectangular image 44 and the first dummy region 45 as a display target region 47.SELECTED DRAWING: Figure 7

Description

この発明は、表示用画像生成装置に関する。   The present invention relates to a display image generating apparatus.

特許文献1には、地図上に表記されている道路や建物などが日々変化していることに対応するため、地図をリアルタイムで更新するための技術が開示されている。具体的には、特許文献1には、既存の地図データを基準画像とし、人口衛星等による撮像画像であって基準画像とは座標系が異なる画像を対象画像とし、それらの画像を統一座標系上に位置を合わせて重ね合わせる技術が開示されている。   Patent Document 1 discloses a technique for updating a map in real time in order to cope with changes in roads, buildings, and the like written on the map every day. Specifically, in Patent Document 1, existing map data is used as a reference image, an image captured by an artificial satellite or the like and having a different coordinate system from the reference image is set as a target image, and these images are used as a unified coordinate system. A technique for superimposing and aligning the positions is disclosed.

特開2017−102924号公報JP 2017-102924 A

この発明の目的は、主画像を含む対象画像と地図画像とを合成し、合成画像のうち主画像を含む所定領域を、所定の大きさの基準矩形内に主画像ができるだけ大きく現れるように表示することが可能となる表示用画像生成装置を提供することである。
この発明の目的は、主画像と背景画像とを含む対象画像のうち主画像を含む所定領域を、所定の大きさの基準矩形内に主画像ができるだけ大きく現れるように表示することが可能となる表示用画像生成装置を提供することである。
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実施形態に係る表示用画像生成装置の構成を示す模式図である。FIG. 1 is a schematic diagram showing a configuration of a display image generating apparatus according to the first embodiment of the present invention. 図2は、所定の圃場を示す模式図である。FIG. 2 is a schematic diagram showing a predetermined farm field. 図3は、対象画像の一例を示す模式図であるFIG. 3 is a schematic diagram illustrating an example of a target image. 地図画像の一例を示す模式図である。It is a schematic diagram which shows an example of a map image. 図5は、PCの機能を説明するための機能ブロック図である。FIG. 5 is a functional block diagram for explaining the functions of the PC. 図6は、表示用画像生成プログラムが起動されたときに、PCによって実行される表示用画像生成処理の手順を示すフローチャートである。FIG. 6 is a flowchart showing a procedure of display image generation processing executed by the PC when the display image generation program is started. 図7は、第1実施形態の領域設定部および第3実施形態の画像生成部の動作を説明するための模式図である。FIG. 7 is a schematic diagram for explaining operations of the region setting unit of the first embodiment and the image generation unit of the third embodiment. 図8は、第1実施形態の領域設定部および第3実施形態の画像生成部の動作を説明するための模式図である。FIG. 8 is a schematic diagram for explaining the operation of the region setting unit of the first embodiment and the image generation unit of the third embodiment. 図9は、第1実施形態の領域設定部および第3実施形態の画像生成部の動作を説明するための模式図である。FIG. 9 is a schematic diagram for explaining operations of the region setting unit of the first embodiment and the image generation unit of the third embodiment. 図10は、拡大縮小後の地図画像に表示対象領域が貼り付けられた状態を示す模式図である。FIG. 10 is a schematic diagram showing a state in which a display target region is pasted on the enlarged and reduced map image. 図11は、PCの機能を説明するための機能ブロック図である。FIG. 11 is a functional block diagram for explaining the functions of the PC. 図12は、表示用画像生成プログラムが起動されたときに、PCによって実行される表示用画像生成処理の手順を示すフローチャートである。FIG. 12 is a flowchart illustrating a procedure of display image generation processing executed by the PC when the display image generation program is started. 図13は、合成部の動作を説明するための模式図である。FIG. 13 is a schematic diagram for explaining the operation of the synthesis unit. 図14は、拡大縮小後の地図画像に矩形画像が貼り付けられた状態を示す模式図である。FIG. 14 is a schematic diagram showing a state in which a rectangular image is pasted on the enlarged and reduced map image. 図15は、PCの機能を説明するための機能ブロック図である。FIG. 15 is a functional block diagram for explaining the functions of the PC. 図16は、表示用画像生成プログラムが起動されたときに、PCによって実行される表示用画像生成処理の手順を示すフローチャートである。FIG. 16 is a flowchart showing a procedure of display image generation processing executed by the PC when the display image generation program is started.

以下では、この発明の実施形態を、添付図面を参照して詳細に説明する。
図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 image generating apparatus 1 according to the first embodiment of the present invention.
The display image generating apparatus 1 according to the first embodiment combines a target image including a main image and a map image, and converts a predetermined region including the main image in the combined image into an image having a reference rectangular size. Thus, a display image (display image data) is generated. First, the target image and the map image will be described.

この実施形態では、対象画像は、解析対象領域内の小領域(メッシュ)毎の解析結果に基づいて生成される。より具体的には、対象画像は、解析対象領域である圃場に対する正規化差植生指数(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 target image 40 is an image in the first XY coordinate system in which the coordinate axis and the direction have a predetermined relationship. Specifically, the first XY coordinate system is a planar coordinate system in which a predetermined position is an origin, a straight line passing through the origin and extending in the east-west direction is an X axis, and a straight line passing through the origin and extending in the north-south direction is a Y axis. . It is assumed that the positive direction of the Y axis is north and the positive direction of the X axis is east. The target image 40 is a rectangular image having two sides parallel to the X axis of the first XY coordinates and two sides parallel to the Y axis.

対象画像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 target image 40 includes a main image 41 and a transparent background image 42 other than the main image 41. The main image 41 is composed of image data representing an analysis result (in this example, NDVI) for each small region q in the field Q.
In FIG. 3, a two-dot chain line 60 indicates a reference rectangle. The reference rectangle 60 is a rectangle having two sides parallel to the X axis and two sides parallel to the Y axis of the first XY coordinate system. The X-direction length and the Y-direction length of the reference rectangle 60 are set to predetermined X-direction reference length E and Y-direction reference length F, respectively, in the first XY coordinate system.

図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 map image 50 is a satellite image. The map image may be an aerial photograph image. The map image 50 is an image of the second XY coordinate system in which the coordinate axis and direction have the same relationship as the first XY coordinate. Specifically, the second XY coordinate system is a plane having the origin of the first XY coordinate system as the origin, a straight line passing through the origin and extending in the east-west direction as the X axis, and a straight line passing through the origin and extending in the north-south direction as the Y axis. Coordinate system. It is assumed that the positive direction of the Y axis is north and the positive direction of the X axis is east. The map image 50 in FIG. 4 includes a plurality of fields including the field Q in FIG.

図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 image generating apparatus 1 is realized by a personal computer (PC) 2. A display 3, a mouse 4 and a keyboard 5 are connected to the PC 2. The PC 2 includes a CPU 6, a memory 7, a hard disk 8, and the like. The PC 2 is provided with a USB (Universal Serial Bus) port (not shown).
The hard disk 8 stores a display image generation program for generating a display image based on the target image and the map image, in addition to the OS (operation system) and the like. For example, the display image generation program is acquired from a storage medium such as a USB memory in which the display image generation program is stored, or is acquired from a website that provides the display image generation program via the Internet. Is possible.

また、ハードディスク8には、図3に示される対象画像40の画像データ(対象画像データ)および図4に示される地図画像50の画像データ(地図画像データ)が記憶されているものとする。
以下、ハードディスク8に格納された対象画像データおよび地図画像データに基づいて、表示用画像を生成する場合のPC2の動作について、説明する。
Further, it is assumed that the hard disk 8 stores the image data of the target image 40 (target image data) shown in FIG. 3 and the image data of the map image 50 (map image data) shown in FIG.
Hereinafter, the operation of the PC 2 when generating a display image based on the target image data and map image data stored in the hard disk 8 will be described.

図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 PC 2.
The PC 2 functions as a plurality of function processing units by executing the display image generation program. The function processing unit includes an area setting unit 11, a synthesis unit 12, and a conversion unit 13.
The area setting unit 11 sets a display target area including the main image 41 for the target image 40 (see FIG. 3) in the first XY coordinate system corresponding to the target image data in the hard disk 8.

合成部12は、ハードディスク8内の地図画像データに対応する第2XY座標系の地図画像50(図4参照)と、領域設定部11によって設定された表示対象領域とを合成して合成画像を生成する。
変換部13は、合成画像における所定領域を、第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有し、X方向長およびY方向長がそれぞれ所定のX方向基準長Eおよび所定のY方向基準長Fである基準矩形60(図3参照)の大きさの画像に変換する。
The combining unit 12 combines the map image 50 (see FIG. 4) of the second XY coordinate system corresponding to the map image data in the hard disk 8 and the display target region set by the region setting unit 11 to generate a combined image. To do.
The conversion unit 13 has a predetermined region in the composite image having 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 directions. The image is converted into an image having a reference rectangle 60 (see FIG. 3) having a reference length E and a predetermined Y-direction reference length F.

以下、領域設定部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 region setting unit 11, the synthesis unit 12, and the conversion unit 13 will be described.
FIG. 6 is a flowchart showing a procedure of processing executed by the PC 2 when the display image generation program is started.
When the display image generation program is started, the area setting unit 11 has two sides parallel to the X axis and two sides parallel to the Y axis of the first XY coordinate system as shown in FIG. The X-direction length A and the Y-direction length B of the circumscribed rectangle 43 circumscribing the image 41 are acquired (step S1).

第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 main image 41 are xmin, xmax, ymin, and ymax, respectively, the circumscribed rectangle 43 has a point a ( xmin, ymin), a point b (xmin, ymax), a point c (xmax, ymax), and a point d (xmax, ymin) as a rectangle. Therefore, the X-direction lengths A and B of the circumscribed rectangle are obtained based on the following expressions (2) and (3).
A = | xmax−xmin | (2)
B = | ymax−ymin | (3)
In FIG. 7, an alternate long and two short dashes line 60 indicates a reference rectangle.

次に、領域設定部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 region setting unit 11 determines the ratio of the X-direction reference length E of the reference rectangle 60 to the X-direction length A of the circumscribed rectangle 43 (hereinafter referred to as the first ratio E / A) and the Y-direction length of the circumscribed rectangle 43. The ratio of the reference length F in the Y direction of the reference rectangle 60 to B (hereinafter referred to as the second ratio F / B) is compared (step S2). Note that B / A may be used as the first ratio E / A and F / E may be used as the second ratio.

第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 region setting unit 11 has a rectangular image 44 surrounded by a circumscribed rectangle 43 in the target image 40 as shown in FIG. First dummy areas 45 are respectively added to both ends in the Y direction, and an area composed of the rectangular image 44 and both first dummy areas 45 is set as a display target area 47 (step S3).
Each of the first dummy areas 45 is a rectangle that protrudes from the entire ends of both ends in the Y direction of the rectangular image 44 by the length D in the Y direction outward in the Y direction. The Y-direction length D of each first dummy region 45 is expressed by the following equation (4).
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 region setting unit 11 includes a rectangle surrounded by the circumscribed rectangle 43 in the target image 40. A second dummy area is added to each end of the image 44 in the X direction, and an area composed of the rectangular image 44 and both second dummy areas is set as a display target area 47 (step S4).

例えば、対象画像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 target image 40 is an image as shown in FIG. 8, it is determined that the first ratio E / A is larger than the second ratio F / B. In such a case, each second dummy area is an area indicated by 46 in FIG. That is, each second dummy area 46 is a rectangle that protrudes outward in the X direction by the length C in the X direction from the entire edge at both ends in the X direction of the rectangular image 44.
The X-direction length C of each second dummy region 46 is expressed by the following equation (5).
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 region setting unit 11 includes the rectangular image surrounded by the circumscribed rectangle 43 in the target image 40. 44 is set as the display target area 47 (step S5).
For example, when the target image 40 is an image as shown in FIG. 9, it is determined that the first ratio E / A is equal to the second ratio F / B. In such a case, the rectangular image 44 is set as the display target area 47.

ステップ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 synthesizer 12 synthesizes the display target area 47 and the map image 50 (step S6). In this embodiment, the synthesizing unit 12 includes each of the pair of vertices a and c (or b and d) of the display target region 47 and each of the pair of vertices a and c (or b and d) in the map image 50. After the map image 50 is enlarged / reduced so that the position corresponding to is matched, the display target region 47 is pasted on the map image 50.

図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 display target region 47 is pasted on the map image 50 after the enlargement / reduction. In FIG. 10, a region surrounded by a two-dot chain line is a pasting region 70 to which the display target region 47 is pasted. The main image 41 appears in an area 71 corresponding to the main image 41 in the pasting area 70, and areas other than the area 71 in the pasting area 70 (an area 72 corresponding to the background image 42 and an area 73 corresponding to the first dummy area). The map image appears in the area).

次に、変換部13は、貼付領域70を拡大縮小することにより、第1XY座標系での基準矩形60の大きさの表示用画像を生成する(ステップS7)。
具体的には、ステップS3の処理によって表示対象領域47が設定されている場合には、変換部13は、貼付領域70の縦横をE/A倍することによって、貼付領域70を基準矩形60の大きさの表示用画像に変換する。変換後の貼付領域内の主画像41に対応する領域を、図7に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。表示用画像内の主画像41の領域81以外の領域には、地図画像が表示される。
Next, the conversion unit 13 generates a display image having the size of the reference rectangle 60 in the first XY coordinate system by enlarging or reducing the pasting area 70 (step S7).
Specifically, when the display target area 47 is set by the process of step S <b> 3, the conversion unit 13 sets the pasting area 70 to the reference rectangle 60 by multiplying the pasting area 70 by E / A. Convert to a size display image. A region corresponding to the main image 41 in the pasted region after conversion is indicated by a one-dot chain line 81 in FIG. Note that the outline of the entire display image is the same as the outline of the reference rectangle 60. A map image is displayed in a region other than the region 81 of the main image 41 in the display image.

ステップS4の処理によって表示対象領域47が設定されている場合には、変換部33は、貼付領域の縦横をF/B倍することによって、貼付領域を基準矩形60の大きさの画像に変換する。変換後の貼付領域内の主画像41に対応する領域を、図8に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。表示用画像内の主画像41の領域81以外の領域には、地図画像が表示される。   When the display target area 47 is set by the process of step S4, the conversion unit 33 converts the pasting area into an image having the size of the reference rectangle 60 by multiplying the pasting area by F / B. . A region corresponding to the main image 41 in the pasted region after conversion is indicated by a one-dot chain line 81 in FIG. Note that the outline of the entire display image is the same as the outline of the reference rectangle 60. A map image is displayed in an area other than the area 81 of the main image 41 in the display image.

また、ステップS5の処理によって表示対象領域47が設定されている場合には、変換部13は、貼付領域の縦横をE/A倍(またはF/B倍)することによって、貼付領域を基準矩形60の大きさの表示用画像に変換する。変換後の貼付領域内の主画像41に対応する領域を、図9に一点鎖線81で示す。なお、表示用画像全体の輪郭は、基準矩形60の輪郭と同じである。表示用画像内の主画像41の領域81以外の領域には、地図画像が表示される。   When the display target area 47 is set by the process of step S5, the conversion unit 13 sets the pasting area to the reference rectangle by multiplying the pasting area by E / A times (or F / B times). The image is converted into a display image having a size of 60. A region corresponding to the main image 41 in the pasted region after conversion is shown by a one-dot chain line 81 in FIG. Note that the outline of the entire display image is the same as the outline of the reference rectangle 60. A map image is displayed in a region other than the region 81 of the main image 41 in the display image.

ステップS7の処理が終了すると、変換部13は、生成された表示用画像の画像データを、対象画像40に対する表示用画像データとしてハードディスク8に記憶する(ステップS8)。これにより、対象画像40に対応する表示用画像をディスプレイに表示したり、記録紙に印刷したりすることが可能となる。
前述の第1実施形態によれば、主画像41を含む対象画像40と地図画像50とを合成し、合成画像のうち主画像41を含む所定領域を、所定の大きさの基準矩形60内に主画像41ができるだけ大きく現れるように表示することが可能となる。さらに、前述の第1実施形態によれば、表示用画像のうち、主画像41以外の全領域に地図画像50を表示することが可能となる。
When the process of step S7 ends, the conversion unit 13 stores the generated image data of the display image in the hard disk 8 as display image data for the target image 40 (step S8). As a result, the display image corresponding to the target image 40 can be displayed on the display or printed on the recording paper.
According to the first embodiment described above, the target image 40 including the main image 41 and the map image 50 are combined, and the predetermined area including the main image 41 in the combined image is within the reference rectangle 60 having a predetermined size. It is possible to display so that the main image 41 appears as large as possible. Furthermore, according to the first embodiment described above, the map image 50 can be displayed in the entire area other than the main image 41 in the display image.

前述の第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 area setting unit 11 adds first dummy areas 45 to both ends in the Y direction of the rectangular image 44 surrounded by the circumscribed rectangle 43 in the target image 40. However, the region setting unit 11 may add the first dummy region 45 only to one end in the Y direction of the rectangular image 44 surrounded by the circumscribed rectangle 43 in the target image 40. In this case, the Y-direction length D of the first dummy region 45 is expressed by the following equation (6).
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 region setting unit 11 adds the second dummy regions 46 to both ends in the X direction of the rectangular image 44 surrounded by the circumscribed rectangle 43 in the target image 40, respectively. Yes. However, the region setting unit 11 may add the second dummy region 46 only to one end in the X direction of the rectangular image 44 surrounded by the circumscribed rectangle 43 in the target image 40. In this case, the X-direction length C of the second dummy region 46 is expressed by the following equation (7).
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 image generating apparatus 1 according to the second embodiment is the same as that of the display image generating apparatus 1 shown in FIG. Similar to the display image generating device 1 according to the first embodiment, the display image generating device 1 according to the second embodiment combines the target image including the main image and the map image, and the main image among the combined images. Is converted into an image having a size of a reference rectangle, thereby generating a display image (display image data).

第2実施形態に係る表示用画像生成装置1と、第2実施形態に係る表示用画像生成装置1では、ハードディスク8に格納されている表示用画像生成プログラムが異なっている。第2実施形態に係る表示用画像生成装置1においても、ハードディスク8には、図3の対象画像40に対応した対象画像データおよび図4の地図画像50に対応した地図画像データが格納されているものとする。   The display image generation apparatus 1 according to the second embodiment and the display image generation apparatus 1 according to the second embodiment differ in the display image generation program stored in the hard disk 8. Also in the display image generating apparatus 1 according to the second embodiment, the hard disk 8 stores target image data corresponding to the target image 40 in FIG. 3 and map image data corresponding to the map image 50 in FIG. Shall.

図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 PC 2.
The PC 2 includes a synthesis unit 21 and a conversion unit 22 as function processing units.
The synthesizing unit 21 has a first XY coordinate system target image 40 (see FIG. 3) obtained by developing the target image data, and a second XY coordinate system map image 50 (FIG. 3) obtained by developing the map image data. 4).

変換部22は、合成画像のうちの所定領域を、第1XY座標系のX軸に平行な2辺とY軸に平行な2辺とを有し、X方向長およびY方向長がそれぞれ所定のX方向基準長Eおよび所定のY方向基準長Fである基準矩形の大きさの画像に変換する。
以下、合成部21および変換部22の動作の詳細について説明する。
図12は、表示用画像生成プログラムが起動されたときに、PC2によって実行される処理の手順を示すフローチャートである。
The conversion unit 22 has a predetermined region in the composite image having 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. The image is converted into an image having a size of a reference rectangle having an X-direction reference length E and a predetermined Y-direction reference length F.
Hereinafter, the details of the operations of the synthesis unit 21 and the conversion unit 22 will be described.
FIG. 12 is a flowchart showing a procedure of processing executed by the PC 2 when the display image generation program is started.

表示用画像生成プログラムが起動されると、合成部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 unit 21 has two sides parallel to the X axis and two sides parallel to the Y axis in the first XY coordinate system as shown in FIG. Information on the positions (coordinate values) corresponding to each pair of vertexes of the circumscribed rectangle 43 circumscribing 61 is acquired, and the X-direction length A and the Y-direction length B of the circumscribed rectangle 43 are acquired (step S11).
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 main image 41 are xmin, xmax, ymin, and ymax, respectively, the circumscribed rectangle 43 has a point a (xmin , Ymin), a point b (xmin, ymax), a point c (xmax, ymax), and a point d (xmax, ymin). Therefore, the point a and the point c become a pair of vertices of one set, and the point b and the point d become a pair of vertices of the other set. Therefore, the synthesis unit 21 acquires information (coordinate values) of positions corresponding to each of the paired vertexes of either one of the two pairs of paired vertices.
Further, the combining unit 21 calculates the X-direction length A and the Y-direction length B of the circumscribed rectangle 43 based on the above-described equations (2) and (3).

図13において、二点鎖線60は、基準矩形を示している。
次に、合成部21は、対象画像40のうち外接矩形43に囲まれた矩形画像44と、地図画像50とを合成する(ステップS12)。この実施形態では、合成部21は、ステップS11で位置の情報が取得されている、外接矩形43の一組の対頂点各々と、地図画像50における前記対頂点各々に対応する位置とが一致するように、地図画像50を拡大縮小させた後に、矩形画像44を地図画像50に貼り付ける。
In FIG. 13, an alternate long and two short dashes line 60 indicates a reference rectangle.
Next, the synthesizing unit 21 synthesizes the rectangular image 44 surrounded by the circumscribed rectangle 43 in the target image 40 and the map image 50 (step S12). In this embodiment, the compositing unit 21 matches a pair of vertices of the circumscribed rectangle 43 whose position information has been acquired in step S <b> 11 and a position corresponding to each of the paired vertices in the map image 50. As described above, after the map image 50 is enlarged or reduced, the rectangular image 44 is pasted on the map image 50.

図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 rectangular image 44 is pasted on the map image 50 after enlargement / reduction. In FIG. 14, a region surrounded by a two-dot chain line is a pasting region 70 to which the rectangular image 44 is pasted. The main image 41 appears in an area 71 corresponding to the main image 41 in the pasting area 70, and a map image appears in an area 72 (area corresponding to the background image 42) other than the area 71 in the pasting area 70.

次に、変換部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 unit 22 uses the first ratio E / A, which is the ratio of the X-direction reference length E of the reference rectangle 60 to the X-direction length A of the circumscribed rectangle 43, and the reference rectangle for the Y-direction length B of the circumscribed rectangle 43. A second ratio F / B, which is a ratio of 60 Y-direction reference lengths F, is compared (step S13). Note that B / A may be used as the first ratio E / A and F / E may be used as the second ratio.
When the first ratio E / A is smaller than the second ratio F / B, the conversion unit 22 places the first dummy areas 73 at both ends in the Y direction of the pasting area 70 as shown in FIG. By adding, the display target area 75 is set (step S14).

各第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 first dummy areas 73 is a rectangle that protrudes from the entire ends of both ends in the Y direction of the pasting area 70 by the length D in the Y direction outward in the Y direction. The Y-direction length D of each first dummy region 73 is expressed by the above formula (4). The display target area 75 is an area composed of the pasting area 70 and both first dummy areas 73.
In step S13, when it is determined that the first ratio E / A is larger than the second ratio F / B, the conversion unit 22 uses the second dummy area (illustrated) on both sides of the X direction end of the pasting area. The display target area is set by adding (omitted) (step S15).

各第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 conversion unit 22 sets the pasting area as a display target area (step S16).

ステップ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 conversion unit 22 generates a display image having the size of the reference rectangle 60 by enlarging or reducing the display target area (step S17).
Specifically, when the display target area 75 is set by the processing of step S14, the display target area 75 is multiplied by E / A to generate a display image having the size of the reference rectangle 60. (Step S16). A region corresponding to the main image 41 in the display image generated in this way is indicated by a one-dot chain line 81 in FIG. Note that the outline of the entire display image is the same as the outline of the reference rectangle 60. A map image is displayed in a region other than the region 81 of the main image 41 in the display image.

ステップ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 reference rectangle 60.
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 reference rectangle 60. Generate an image.

ステップS17の処理が終了すると、変換部22は、生成された表示用画像の画像データを、対象画像40に対する表示用画像データとしてハードディスク8に記憶する(ステップS18)。これにより、対象画像40に対応する表示用画像をディスプレイに表示したり、記録紙に印刷したりすることが可能となる。
前述の第2実施形態においても、第1実施形態と同様な効果が得られる。
When the process of step S17 ends, the conversion unit 22 stores the generated image data of the display image in the hard disk 8 as display image data for the target image 40 (step S18). As a result, the display image corresponding to the target image 40 can be displayed on the display or printed on the recording paper.
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 conversion unit 22 adds first dummy areas 73 to both ends of the pasting area 70 in the Y direction. However, the conversion unit 22 may add the first dummy area only to one end of the pasting area 70 in the Y direction. In this case, the Y-direction length D of the first dummy region 73 is expressed by the above equation (6).
In step S15 of the second embodiment, the conversion unit 22 adds a second dummy area to each end in the X direction of the pasting area. However, the conversion unit 22 may add the second dummy area only to one end in the X direction of the pasting area. In this case, the X-direction length C of the second dummy region is expressed by the above equation (7).

次に、この発明の第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 image generating apparatus 1 according to the third embodiment is the same as that of the display image generating apparatus 1 shown in FIG. The display image generating apparatus 1 according to the third embodiment and the display image generating apparatus 1 according to the first embodiment are different in the display image generating program stored in the hard disk 8.

第3実施形態に係る表示用画像生成装置1は、主画像を含む対象画像から、基準矩形の大きさの表示用画像を生成する。ハードディスク8には、図3の対象画像40に対応した対象画像データが格納されているものとする。第3実施形態においては、対象画像40の背景画像は、透明であってもよいし、不透明であってもよい。対象画像40の背景画像は、例えば、白であってもよい。   The display image generating apparatus 1 according to the third embodiment generates a display image having a reference rectangle size from a target image including a main image. Assume that the hard disk 8 stores target image data corresponding to the target image 40 of FIG. In the third embodiment, the background image of the target image 40 may be transparent or opaque. The background image of the target image 40 may be white, for example.

図15は、PC2の機能を説明するための機能ブロック図である。
PC2は、機能処理部として、比較部31と画像生成部32とを含む。
以下、比較部31および画像生成部32の動作の詳細について説明する。
図16は、表示用画像生成プログラムが起動されたときに、PC2によって実行される処理の手順を示すフローチャートである。
FIG. 15 is a functional block diagram for explaining the functions of the PC 2.
The PC 2 includes a comparison unit 31 and an image generation unit 32 as function processing units.
Details of the operations of the comparison unit 31 and the image generation unit 32 will be described below.
FIG. 16 is a flowchart showing a procedure of processing executed by the PC 2 when the display image generation program is activated.

表示用画像生成プログラムが起動されると、比較部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 comparison unit 31 has two sides parallel to the X axis and two sides parallel to the Y axis in the first XY coordinate system as shown in FIG. The X-direction length A and the Y-direction length B of the circumscribed rectangle 43 circumscribing 41 are acquired (step S31). Since this process is the same as the process performed by the area setting unit 11 in step S1 of FIG. In FIG. 7, a two-dot chain line 60 represents the size of the reference rectangle.

次に、比較部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 comparison unit 31 compares the ratio of the X-direction reference length E of the reference rectangle 60 to the X-direction length A of the circumscribed rectangle 43 (first ratio E / A) and the reference rectangle of the circumscribed rectangle 43 with respect to the Y-direction length B. The ratio of the 60 Y-direction reference length F (second ratio F / B) is compared (step S32). Note that B / A may be used as the first ratio E / A and F / E may be used as the second ratio.
When the first ratio E / A is smaller than the second ratio F / B, the image generating unit 32 has a rectangular image 44 surrounded by a circumscribed rectangle 43 in the target image 40 as shown in FIG. First dummy areas 45 are respectively added to both ends in the Y direction, and an area composed of the rectangular image 44 and both first dummy areas 45 is set as a display target area 47 (step S33).

各第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 first dummy areas 45 is a rectangle that protrudes from the entire ends of both ends in the Y direction of the rectangular image 44 by the length D in the Y direction outward in the Y direction. The length D in the Y direction of each first dummy region 45 is expressed by the above equation (4).
If it is determined in step S <b> 2 that the first ratio E / A is greater than the second ratio F / B, the image generation unit 32 includes a rectangle surrounded by a circumscribed rectangle 43 in the target image 40. Second dummy areas are respectively added to both ends of the image 44 in the X direction, and an area composed of the rectangular image 44 and both second dummy areas is set as a display target area (step S34).

例えば、対象画像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 target image 40 is an image as shown in FIG. 8, it is determined that the first ratio E / A is larger than the second ratio F / B. In such a case, each second dummy area is an area indicated by 46 in FIG. That is, each second dummy area 46 is a rectangle that protrudes outward in the X direction by the length C in the X direction from the entire edge of each end in the X direction of the rectangular image 44. The X-direction length C of each second dummy region 46 is expressed by the above formula (5). In this case, an area including the rectangular image 44 and both second dummy areas 46 is set as the display target area 47.

前記ステップ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 image generation unit 32 includes the rectangular image surrounded by the circumscribed rectangle 43 in the target image 40. 44 is set as the display target area 47 (step S35).
For example, when the target image 40 is an image as shown in FIG. 9, it is determined that the first ratio E / A is equal to the second ratio F / B. In this case, the rectangular image 44 is set as the display target area 47.

ステップ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 image generation unit 32 generates a display image having the size of the reference rectangle 60 by enlarging or reducing the display target region 47 (step S36).
Specifically, when the display target area 47 is set by the processing in step S33, the display image is generated by multiplying the vertical and horizontal directions of the display target area 47 by E / A. A region corresponding to the main image 41 in the display image generated in this way is indicated by a one-dot chain line 81 in FIG. Note that the outline of the entire display image is the same as the outline of the reference rectangle 60.

ステップ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 display target area 47 is set by the process of step S34, the image generation unit 32 generates a display image by multiplying the display target area 47 vertically and horizontally by F / B. A region corresponding to the main image 41 in the display image generated in this way is indicated by a one-dot chain line 81 in FIG. Note that the outline of the entire display image is the same as the outline of the reference rectangle 60.
When the display target area 47 is set by the process of step S35, the image generating unit 32 performs E / A times (or F / B times) the vertical and horizontal directions of the display target area 47 (rectangular image 44). A display image is generated. A region corresponding to the main image 41 in the display image generated in this way is indicated by a one-dot chain line 81 in FIG. Note that the outline of the entire display image is the same as the outline of the reference rectangle 60.

ステップS36の処理が終了すると、画像生成部32は、生成された表示用画像の画像データを、対象画像40に対する表示用画像データとしてハードディスク8に記憶する(ステップS37)。これにより、対象画像40に対応する表示用画像をディスプレイに表示したり、記録紙に印刷したりすることが可能となる。
前述の第3実施形態によれば、対象画像40における主画像を含む所定領域を、所定の大きさの基準矩形60内に主画像41ができるだけ大きく現れるように表示することが可能となる表示用画像データを生成できる。
When the process of step S36 ends, the image generation unit 32 stores the generated image data of the display image in the hard disk 8 as display image data for the target image 40 (step S37). As a result, the display image corresponding to the target image 40 can be displayed on the display or printed on the recording paper.
According to the third embodiment described above, the predetermined area including the main image in the target image 40 can be displayed so that the main image 41 appears as large as possible in the reference rectangle 60 having a predetermined size. Image data can be generated.

第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 image generation unit 32 adds first dummy regions 45 to both ends of the rectangular image 44 in the Y direction. However, the image generation unit 32 may add the first dummy area 45 only to one end in the Y direction of the rectangular image 44. In this case, the length D in the Y direction of the first dummy region 45 is expressed by the above formula (6).
In step S <b> 34 of the third embodiment, the image generation unit 32 adds second dummy areas to both ends of the rectangular image 44 in the X direction. However, the image generation unit 32 may add the second dummy area only to one side of the X-direction end of the rectangular image 44. In this case, the X-direction length C of the second dummy region is expressed by the above equation (7).

以上、この発明の実施形態について説明したが、この発明はさらに他の形態で実施することもできる。例えば、前述の実施形態では、対象画像内の主画像は、圃場等の解析対象領域内の小領域毎の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 SYMBOLS 1 Display image generation apparatus 2 Personal computer (PC)
6 CPU
7 Memory 8 Hard Disk 11 Area Setting Unit 12 Combining Unit 13 Converting Unit 21 Combining Unit 22 Converting Unit 31 Comparing Unit 32 Image Generating Unit 40 Target Image 41 Main Image 42 Background Image 43 circumscribed rectangle 44 Rectangular Image 45, 73 First Dummy Area 46 Second dummy area 47 Display target area 50 Map image 60 Reference rectangle 70 Pasting area 71 Area corresponding to the main image in the pasting area 75 Display target area

Claims (8)

解析対象領域内の小領域毎の解析結果を表す主画像および透明背景画像を含み、座標軸と方角とが所定の関係を有する第1XY座標系の対象画像に対して、前記主画像を含む表示対象領域を設定する領域設定部と、
座標軸と方角とが前記所定の関係を有する第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座標系の対象画像と、座標軸と方角とが前記所定の関係を有する第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ダミー領域追加後の当該貼付領域を拡大縮小することにより、前記表示用画像を生成するように構成されている、表示用画像生成装置。
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座標系の対象画像を、前記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ダミー領域追加後の前記矩形画像を拡大縮小することにより、前記基準矩形の大きさの表示用画像を生成する画像生成部とを含む、表示用画像生成装置。
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.
前記第1ダミー領域は、前記矩形画像のY方向の両端部にそれぞれ追加され、前記各第1ダミー領域のY方向長さDは、次式(a)で表される、請求項1または3に記載の表示用画像生成装置。
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)
前記第2ダミー領域は、前記矩形領域のX方向の両端部にそれぞれ追加され、前記各第2ダミー領域のX方向長さCは、次式(b)で表される、請求項1または3に記載の表示用画像生成装置。
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)
前記第1の比がB/Aであり、前記第2の比がF/Eである、請求項1〜3のいずれか一項に記載の表示用画像生成装置。   The display image generating apparatus according to claim 1, wherein the first ratio is B / A and the second ratio is F / E.
JP2018103793A 2018-05-30 2018-05-30 display image generator Active JP7166074B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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