Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7750255B2 - Image processing device - Google Patents
[go: Go Back, main page]

JP7750255B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP7750255B2
JP7750255B2 JP2023009415A JP2023009415A JP7750255B2 JP 7750255 B2 JP7750255 B2 JP 7750255B2 JP 2023009415 A JP2023009415 A JP 2023009415A JP 2023009415 A JP2023009415 A JP 2023009415A JP 7750255 B2 JP7750255 B2 JP 7750255B2
Authority
JP
Japan
Prior art keywords
region
image
image processing
partial
partial regions
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.)
Active
Application number
JP2023009415A
Other languages
Japanese (ja)
Other versions
JP2024104955A (en
Inventor
伸一 竹内
崇穂 川上
真吾 則竹
亮 村上
涼 柳川
豊 桑島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2023009415A priority Critical patent/JP7750255B2/en
Publication of JP2024104955A publication Critical patent/JP2024104955A/en
Application granted granted Critical
Publication of JP7750255B2 publication Critical patent/JP7750255B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Description

本発明は、画像処理装置に関する。 The present invention relates to an image processing device.

追記前画像と追記後画像とを比較して当該追記後画像から追記情報を抽出する画像処理装置が知られている。この画像処理装置では、画像から白領域が探索され、この白領域を基準にして画像全体が複数の領域に分割されている。そして、分割領域ごとに追記前画像と追記後画像との相対的な位置合わせが行われ、位置合わせ後に、追記後画像から追記情報が抽出されている(例えば特許文献1参照)。 An image processing device is known that compares a pre-application image with a post-application image and extracts additional information from the post-application image. This image processing device searches for white areas in the image and divides the entire image into multiple regions based on these white areas. The pre-application image and the post-application image are then aligned relative to each other for each divided region, and after alignment, the additional information is extracted from the post-application image (see, for example, Patent Document 1).

特開2007-335920号公報Japanese Patent Application Laid-Open No. 2007-335920

ところで、追記前画像と追記後画像との相対的な位置合わせが分割領域(以下、部分領域という)ごとに行われる場合、各部分領域の特徴量の比較結果に基づいて、追記前画像と追記後画像との対応関係が特定されることがある。この特徴量は、例えば特徴量を算出する範囲を定める着目領域が特徴量算出対象である所定の部分領域上を移動し、着目領域に含まれる画素に基づいて算出される。 When the relative positioning of the pre-addition image and the post-addition image is performed for each divided region (hereinafter referred to as a partial region), the correspondence between the pre-addition image and the post-addition image can be determined based on the results of comparing the feature amounts of each partial region. For example, this feature amount is calculated based on the pixels contained in the region of interest, which defines the range for calculating the feature amount, as it moves over the specified partial region for which the feature amount is to be calculated.

しかしながら、着目領域が所定の部分領域上を移動した場合、この所定の部分領域に隣接する別の部分領域に着目領域が重なる場合がある。これにより、所定の部分領域の画素と別の部分領域の画素に基づいて特徴量が算出されるため、特徴量の精度が低下する可能性がある。このような精度の低い特徴量に基づいて、追記前画像と追記後画像との対応関係の特定を試みると、対応する部分領域を精度良く特定できない可能性がある。 However, when the area of interest moves over a specified partial area, it may overlap another partial area adjacent to the specified partial area. As a result, the feature values are calculated based on the pixels of the specified partial area and the pixels of the other partial area, which may reduce the accuracy of the feature values. If an attempt is made to identify the correspondence between the pre-application image and the post-application image based on such low-accuracy feature values, it may not be possible to accurately identify the corresponding partial areas.

そこで、本発明では、対応する部分領域の特定精度を向上させる画像処理装置を提供することを目的とする。 The present invention therefore aims to provide an image processing device that improves the accuracy of identifying corresponding partial regions.

本発明に係る画像処理装置は、第1図面データを前記第1図面データの一頁分の画像を表す第1領域から複数の第1部分領域に分割し、第2図面データを前記第2図面データの一頁分の画像を表す第2領域から複数の第2部分領域に分割する処理と、前記複数の第1部分領域で隣接する2つの特定の第1部分領域の一方の第1特徴量を算出する際に、前記特定の第1部分領域の他方が前記第1特徴量の算出に干渉する場合、前記特定の第1部分領域の一方の外周部に均一色の第1所定領域を設定した第1拡張領域を生成する処理と、前記複数の第2部分領域で隣接する2つの特定の第2部分領域の一方の第2特徴量を算出する際に、前記特定の第2部分領域の他方が前記第2特徴量の算出に干渉する場合、前記特定の第2部分領域の一方の外周部に均一色の第2所定領域を設定した第2拡張領域を生成する処理と、前記第1拡張領域と前記第2拡張領域とを比較し、比較結果に基づいて、前記第1拡張領域に対応する前記第2拡張領域を特定する処理と、を実行する制御部を有する。 The image processing device according to the present invention includes a control unit that executes the following processes: dividing first drawing data from a first region representing one page of the first drawing data into a plurality of first partial regions; dividing second drawing data from a second region representing one page of the second drawing data into a plurality of second partial regions; generating a first extended region in which a first predetermined region of a uniform color is set on the periphery of one of the specific first partial regions when calculating a first feature value for one of two specific adjacent first partial regions among the plurality of first partial regions if the other specific first partial region interferes with the calculation of the first feature value; generating a second extended region in which a second predetermined region of a uniform color is set on the periphery of one of the specific second partial regions when calculating a second feature value for one of two specific adjacent second partial regions among the plurality of second partial regions when the other specific second partial region interferes with the calculation of the second feature value; and comparing the first extended region with the second extended region and identifying the second extended region that corresponds to the first extended region based on the comparison result.

上記構成において、前記制御部は、前記特定の第1部分領域の一方及び他方の第1位置関係と、前記特定の第2部分領域の一方及び他方の第2位置関係が相対的に異なる場合に、前記第1拡張領域と前記第2拡張領域を生成する、処理を実行してもよい。 In the above configuration, the control unit may execute processing to generate the first expanded region and the second expanded region when a first positional relationship between one and the other of the specific first partial regions and a second positional relationship between one and the other of the specific second partial regions are relatively different.

上記構成において、前記制御部は、前記第1拡張領域が有する第1特徴点と、前記第2拡張領域が有する第2特徴点と、機械学習を用いた所定の特徴点マッチング手法とに基づいて、前記第1拡張領域に対応する前記第2拡張領域を特定する、処理を実行してもよい。 In the above configuration, the control unit may execute processing to identify the second expansion region corresponding to the first expansion region based on first feature points possessed by the first expansion region, second feature points possessed by the second expansion region, and a predetermined feature point matching method using machine learning.

上記構成において、前記制御部は、前記特定の第1部分領域の他方による前記第1特徴量の算出への干渉を回避する大きさの前記第1所定領域を設定した前記第1拡張領域を生成し、かつ、前記特定の第2部分領域の他方による前記第2特徴量の算出への干渉を回避する大きさの前記第2所定領域を設定した前記第2拡張領域を生成する、処理を実行してもよい。 In the above configuration, the control unit may execute processing to generate the first extended region in which the first predetermined region is set to a size that avoids interference with the calculation of the first feature amount by the other of the specific first partial regions, and to generate the second extended region in which the second predetermined region is set to a size that avoids interference with the calculation of the second feature amount by the other of the specific second partial regions.

上記構成において、前記第1所定領域と前記第2所定領域は、いずれも余白であってもよい。 In the above configuration, both the first specified area and the second specified area may be blank space.

本発明によれば、対応する部分領域の特定精度を向上させることができる。 This invention can improve the accuracy of identifying corresponding partial regions.

画像処理装置のハードウェア構成の一例である。1 is an example of a hardware configuration of an image processing device. 画像処理装置の機能構成の一例である。1 is an example of a functional configuration of an image processing device. (a)は第1媒体データの一例である。(b)は第2媒体データの一例である。1A is an example of first medium data, and FIG. 1B is an example of second medium data. 制御部の動作の一例を示すフローチャートである。10 is a flowchart illustrating an example of the operation of a control unit. (a)は異なる特徴量が算出される場合を説明する図である。(b)は拡張領域の生成を説明する図である。(c)は拡張領域同士の比較を説明する図である。1A is a diagram illustrating a case where different feature amounts are calculated, FIG. 1B is a diagram illustrating generation of an extension region, and FIG. 1C is a diagram illustrating comparison between extension regions. (a)は特徴量の数による連続領域のペアリング例である。(b)は特徴量の距離による連続領域のペアリング例である。1A is an example of pairing of continuous regions based on the number of feature amounts, and FIG. 1B is an example of pairing of continuous regions based on the distance of feature amounts. (a)は差異画像の一例である。(b)は差異画像の他の一例である。1A is an example of a difference image, and FIG. 1B is another example of a difference image.

以下、本発明を実施するための形態について図面を参照して説明する。 The following describes an embodiment of the present invention with reference to the drawings.

まず、図1を参照して、画像処理装置100のハードウェア構成について説明する。画像処理装置100は、プロセッサとしてのCPU(Central Processing Unit)100Aと、メモリとしてのRAM(Random Access Memory)100B及びROM(Read Only Memory)100Cを含んでいる。画像処理装置100は、ネットワークI/F(インタフェース)100D及びHDD(Hard Disk Drive)100Eを含んでいる。HDD(Hard Disk Drive)100Eに代えて、SSD(Solid State Drive)を採用してもよい。 First, the hardware configuration of the image processing device 100 will be described with reference to Figure 1. The image processing device 100 includes a CPU (Central Processing Unit) 100A as a processor, and RAM (Random Access Memory) 100B and ROM (Read Only Memory) 100C as memories. The image processing device 100 also includes a network I/F (Interface) 100D and HDD (Hard Disk Drive) 100E. An SSD (Solid State Drive) may be used instead of the HDD (Hard Disk Drive) 100E.

画像処理装置100は、必要に応じて、入力I/F100F、出力I/F100G、入出力I/F100H、ドライブ装置100Iの少なくとも1つを含んでいてもよい。CPU100Aからドライブ装置100Iまでは、内部バス100Jによって互いに接続されている。すなわち、画像処理装置100はコンピュータによって実現することができる。 The image processing device 100 may include at least one of an input I/F 100F, an output I/F 100G, an input/output I/F 100H, and a drive device 100I, as necessary. The CPU 100A to the drive device 100I are connected to each other via an internal bus 100J. In other words, the image processing device 100 can be realized by a computer.

入力I/F100Fには入力装置11が接続される。入力装置11としては例えばキーボードやマウス、タッチパネルなどがある。出力I/F100Gには表示装置12が接続される。表示装置12としては例えば液晶ディスプレイなどがある。入出力I/F100Hには半導体メモリ13が接続される。半導体メモリ13としては、例えばUSB(Universal Serial Bus)メモリやフラッシュメモリなどがある。入出力I/F100Hは半導体メモリ13に記憶された所定のプログラムを読み取る。入力I/F100F及び入出力I/F100Hは例えばUSBポートを備えている。出力I/F100Gは例えばディスプレイポートを備えている。 An input device 11 is connected to the input I/F 100F. Examples of the input device 11 include a keyboard, mouse, and touch panel. A display device 12 is connected to the output I/F 100G. Examples of the display device 12 include an LCD display. A semiconductor memory 13 is connected to the input/output I/F 100H. Examples of the semiconductor memory 13 include a USB (Universal Serial Bus) memory and a flash memory. The input/output I/F 100H reads a predetermined program stored in the semiconductor memory 13. The input I/F 100F and the input/output I/F 100H each include a USB port, for example. The output I/F 100G includes a display port, for example.

ドライブ装置100Iには可搬型記録媒体14が挿入される。可搬型記録媒体14としては、例えばCD(Compact Disc)-ROM、DVD(Digital Versatile Disc)といったリムーバブルディスクがある。ドライブ装置100Iは可搬型記録媒体14に記録された所定のプログラムを読み込む。ネットワークI/F100Dは例えばLAN(Local Area Network)ポートや通信回路などを備えている。 A portable recording medium 14 is inserted into the drive device 100I. Examples of the portable recording medium 14 include removable disks such as CD (Compact Disc)-ROM and DVD (Digital Versatile Disc). The drive device 100I reads a specific program recorded on the portable recording medium 14. The network I/F 100D includes, for example, a LAN (Local Area Network) port and a communication circuit.

RAM100BにはROM100C、HDD100E、半導体メモリ13の少なくとも1つに記憶された所定のプログラムがCPU100Aによって一時的に格納される。RAM100Bには可搬型記録媒体14に記録された所定のプログラムがCPU100Aによって一時的に格納される。格納された所定のプログラムをCPU100Aが実行することにより、CPU100Aは後述する各種の機能を実現し、また、後述する各種の処理を実行する。なお、所定のプログラムは後述するフローチャートに応じたものとすればよい。 A predetermined program stored in at least one of ROM 100C, HDD 100E, and semiconductor memory 13 is temporarily stored in RAM 100B by CPU 100A. A predetermined program recorded on portable recording medium 14 is temporarily stored in RAM 100B by CPU 100A. By executing the stored predetermined program, CPU 100A realizes various functions described below and executes various processes described below. The predetermined program may be one that corresponds to the flowchart described below.

図2及び図3を参照して、画像処理装置100の機能構成について説明する。なお、図2では画像処理装置100の機能の要部が示されている。 The functional configuration of the image processing device 100 will be described with reference to Figures 2 and 3. Note that Figure 2 shows the main functions of the image processing device 100.

図2に示すように、画像処理装置100は記憶部110、制御部120、入力部130、及び出力部140を備えている。記憶部110は上述したRAM100BやHDD100Eなどによって実現することができる。制御部120は上述したCPU100Aによって実現することができる。入力部130は上述した入力I/F100Fによって実現することができる。出力部140は上述した出力I/F100Gによって実現することができる。したがって、記憶部110、制御部120、入力部130、及び出力部140は互いに接続されている。 As shown in FIG. 2, the image processing device 100 includes a memory unit 110, a control unit 120, an input unit 130, and an output unit 140. The memory unit 110 can be realized by the RAM 100B or HDD 100E described above. The control unit 120 can be realized by the CPU 100A described above. The input unit 130 can be realized by the input I/F 100F described above. The output unit 140 can be realized by the output I/F 100G described above. Therefore, the memory unit 110, control unit 120, input unit 130, and output unit 140 are connected to each other.

ここで、記憶部110は、第1媒体記憶部111、第2媒体記憶部112、及び表示図面記憶部113を含んでいる。第1媒体記憶部111、第2媒体記憶部112、及び表示図面記憶部113の少なくとも1つを画像処理装置100と異なる情報処理装置(不図示)に設けてもよい。この場合、画像処理装置100が情報処理装置にアクセスし、第1媒体記憶部111や第2媒体記憶部112等の記憶内容を参照してもよい。 Here, the storage unit 110 includes a first medium storage unit 111, a second medium storage unit 112, and a display drawing storage unit 113. At least one of the first medium storage unit 111, the second medium storage unit 112, and the display drawing storage unit 113 may be provided in an information processing device (not shown) different from the image processing device 100. In this case, the image processing device 100 may access the information processing device and refer to the stored contents of the first medium storage unit 111, the second medium storage unit 112, etc.

第1媒体記憶部111は第1媒体データを記憶する。第1媒体データは情報伝達媒体のデータファイル又は電子ファイルである。情報伝達媒体は、例えば報告書や指示書といった文書を含んでいる。本実施形態では、図3(a)に示すように、第1媒体データ50は複数のページで作成された文書であるが、単一のページで作成された文書であってもよい。第1媒体データ50が複数のページで作成された文書である場合、文書によっては複数の図面データ51,52を含んでいることもあれば、1つの図面データ53を含んでいることもある。図面データ51,52,53は例えば完成品や部品の設計図などである。図面データ51,52,53の形状は互いに相違する。 The first medium storage unit 111 stores first medium data. The first medium data is a data file or electronic file of an information transmission medium. The information transmission medium includes documents such as reports and instructions. In this embodiment, as shown in FIG. 3(a), the first medium data 50 is a document created on multiple pages, but it may also be a document created on a single page. When the first medium data 50 is a document created on multiple pages, depending on the document, it may include multiple pieces of drawing data 51, 52, or one piece of drawing data 53. The drawing data 51, 52, 53 are, for example, blueprints of finished products or parts. The shapes of the drawing data 51, 52, 53 are different from each other.

第2媒体記憶部112は第2媒体データを記憶する。第2媒体データも、第1媒体データ50と同様に、情報伝達媒体のデータファイル又は電子ファイルである。本実施形態では、図3(b)に示すように、第2媒体データ60も複数のページで作成された文書であるが、単一のページで作成された文書であってもよい。第2媒体データ60のページ数は第1媒体データ50のページ数と同じであってもよいし、異なっていてもよい。第2媒体データ60が複数のページで作成された文書である場合、文書によっては1つの図面データ61を含んでいることもあれば、複数の図面データ62,63を含んでいることもある。図面データ61,62,63は例えば完成品や部品の設計図などを含んでいる。図面データ61,62,63の形状は互いに相違する。 The second medium storage unit 112 stores the second medium data. Like the first medium data 50, the second medium data is a data file or electronic file of an information transmission medium. In this embodiment, as shown in FIG. 3(b), the second medium data 60 is also a document created with multiple pages, but it may also be a document created with a single page. The number of pages in the second medium data 60 may be the same as the number of pages in the first medium data 50, or may be different. When the second medium data 60 is a document created with multiple pages, depending on the document, it may include one piece of drawing data 61, or multiple pieces of drawing data 62, 63. The drawing data 61, 62, 63 include, for example, blueprints of finished products or parts. The shapes of the drawing data 61, 62, 63 are different from each other.

なお、上述した第1媒体データ50は、入力装置11に対する操作に基づいて、第1媒体記憶部111に格納される。第2媒体データ60も同様に第2媒体記憶部112に格納される。本実施形態では、第1媒体データ50は第2媒体データ60に対する比較元を表し、第2媒体データ60は第1媒体データ50に対する比較先又は比較対象を表している。したがって、以下では、図面データ51,52,53を比較元としてのベース図面51,52,53と呼び、図面データ61,62,63を比較先又は比較対象としての新規図面61,62,63と呼ぶ。 The above-mentioned first medium data 50 is stored in the first medium storage unit 111 based on operations on the input device 11. The second medium data 60 is similarly stored in the second medium storage unit 112. In this embodiment, the first medium data 50 represents the source of comparison for the second medium data 60, and the second medium data 60 represents the destination or comparison target for the first medium data 50. Therefore, hereinafter, the drawing data 51, 52, 53 will be referred to as base drawings 51, 52, 53 serving as the source of comparison, and the drawing data 61, 62, 63 will be referred to as new drawings 61, 62, 63 serving as the destination or comparison target.

表示図面記憶部113は表示装置12に表示する図面の画像を記憶する。詳細は後述するが、表示図面記憶部113は、上述したベース図面51,52に相当するベース図面画像とこのベース図面画像に対応する新規図面61,62,63のいずれか2つに相当する新規図面画像とを重ね合わせ、差異に相当する部分を異なる色で表現した図面の画像を記憶する。また、表示図面記憶部113は、上述したベース図面53に相当するベース図面画像とこのベース図面画像に対応する新規図面61,62,63のいずれか1つに相当する新規図面画像とを重ね合わせ、差異に相当する部分を異なる色で表現した図面の画像も記憶する。なお、ベース図面画像は第1図面データの一例であり、新規図面画像は第2図面データの一例である。ベース図面画像及び新規図面画像はいずれも画像データである。 The display drawing storage unit 113 stores images of drawings to be displayed on the display device 12. As will be described in detail below, the display drawing storage unit 113 stores an image of a drawing in which a base drawing image corresponding to the above-mentioned base drawings 51 and 52 is superimposed on a new drawing image corresponding to any two of the new drawings 61, 62, and 63 corresponding to these base drawing images, with portions corresponding to the differences expressed in different colors. The display drawing storage unit 113 also stores an image of a drawing in which a base drawing image corresponding to the above-mentioned base drawing 53 is superimposed on a new drawing image corresponding to any one of the new drawings 61, 62, and 63 corresponding to this base drawing image, with portions corresponding to the differences expressed in different colors. The base drawing image is an example of first drawing data, and the new drawing image is an example of second drawing data. Both the base drawing image and the new drawing image are image data.

図2に戻り、制御部120は、画像生成部121、画像処理部122、及び表示部123を含んでいる。 Returning to Figure 2, the control unit 120 includes an image generation unit 121, an image processing unit 122, and a display unit 123.

画像生成部121は第1媒体記憶部111から第1媒体データ50を取得し、第1媒体データ50を画像化する。すなわち、画像生成部121は取得した第1媒体データ50から第1媒体データ50を表す第1媒体画像を生成する。第1媒体データ50が複数のページで作成された文書であれば、第1媒体画像も複数のページ画像を含んでいる。第1媒体画像に含まれる複数のページ画像は上述したベース図面画像を含んでいる。 The image generation unit 121 acquires the first medium data 50 from the first medium storage unit 111 and images the first medium data 50. That is, the image generation unit 121 generates a first medium image representing the first medium data 50 from the acquired first medium data 50. If the first medium data 50 is a document created with multiple pages, the first medium image also includes multiple page images. The multiple page images included in the first medium image include the base drawing image described above.

同様に、画像生成部121は第2媒体記憶部112から第2媒体データ60を取得し、第2媒体データ60を画像化する。すなわち、画像生成部121は取得した第2媒体データ60から第2媒体データ60を表す第2媒体画像を生成する。第2媒体データ60が複数のページで作成された文書であれば、第2媒体画像も複数のページ画像を含んでいる。第2媒体画像に含まれる複数のページ画像は上述した新規図面画像を含んでいる。 Similarly, the image generation unit 121 acquires the second medium data 60 from the second medium storage unit 112 and images the second medium data 60. That is, the image generation unit 121 generates a second medium image representing the second medium data 60 from the acquired second medium data 60. If the second medium data 60 is a document created with multiple pages, the second medium image also includes multiple page images. The multiple page images included in the second medium image include the new drawing image described above.

画像処理部122は第1媒体画像及び第2媒体画像、並びにベース図面画像及び新規図面画像に対し様々な画像処理を実行する。画像処理部122の詳細は後述するが、例えば、画像処理部122は第1媒体画像に含まれる複数のページ画像と第2媒体画像に含まれる複数のページ画像とを対比し、互いに類似するページ画像を特定する。また、画像処理部122は、ページ画像を表す領域を複数の部分領域に分割し、複数の部分領域で隣接する2つの特定の部分領域の一方の第1特徴量を算出する。この際、画像処理部122は特定の部分領域の他方が第1特徴量の算出に干渉する場合、特定の部分領域の一方の外周部に均一色の所定領域を設定した拡張領域を生成する。均一色の所定領域は、背景と同色である余白であることが望ましいが、白色以外の色(例えば赤色や青色など)であってもよい、さらに、画像処理部122は、機械学習を用いた公知の特徴点マッチング手法に基づいて、互いに対応する拡張領域を特定する。拡張領域の形状は矩形であってもよいし、矩形以外の形状(例えば円形など)であってもよい。その他、画像処理部122は、ベース図面画像及び新規図面画像のそれぞれをモノクローム化(具体的にはモノクロ2値化)して、ベース図面画像及び新規図面画像のそれぞれに対し異なる色を付与する。 The image processing unit 122 performs various image processing operations on the first and second medium images, as well as the base drawing image and new drawing image. Details of the image processing unit 122 will be described later. For example, the image processing unit 122 compares multiple page images included in the first medium image with multiple page images included in the second medium image to identify page images that are similar to each other. The image processing unit 122 also divides the area representing the page image into multiple partial areas and calculates a first feature value for one of two specific partial areas adjacent to each other. If the other specific partial area interferes with the calculation of the first feature value, the image processing unit 122 generates an extended area in which a predetermined area of uniform color is set on the periphery of one of the specific partial areas. The predetermined uniform color area is preferably a margin of the same color as the background, but may be a color other than white (e.g., red or blue). Furthermore, the image processing unit 122 identifies corresponding extended areas based on a known feature point matching method using machine learning. The shape of the extended area may be rectangular or a shape other than rectangular (e.g., circular). Additionally, the image processing unit 122 converts each of the base drawing image and the new drawing image to monochrome (specifically, monochrome binarization), and assigns different colors to each of the base drawing image and the new drawing image.

なお、公知の特徴点マッチング手法としては、例えば、以下の文献1,2などを参考にすることができる。
文献1:P. F. Alcantarilla, A. Bartoli, and A. J. Davison. “KAZE features”, ECCV, (2012), pp.214?227.
文献2:P. F, Alcantarilla, J. Nuevo, A.Bartoli, “Fast Explicit Diffusion for Accelerated Features in Nonlinear Scale Spaces”, BMVC, (2013), pp.13.1-13.11.
As a known feature point matching method, for example, the following documents 1 and 2 can be referred to.
Reference 1: PF Alcantarilla, A. Bartoli, and AJ Davison. “KAZE features”, ECCV, (2012), pp.214?227.
Reference 2: P. F, Alcantarilla, J. Nuevo, A. Bartoli, “Fast Explicit Diffusion for Accelerated Features in Nonlinear Scale Spaces”, BMVC, (2013), pp.13.1-13.11.

表示部123は表示図面記憶部113が記憶する図面の画像を取得し、取得した図面を表示装置12に表示する。上述したように、表示図面記憶部113は、例えばベース図面画像と新規図面画像の差異に相当する部分を異なる色で表現した図面の画像を記憶する。このため、表示部123はこの図面を取得して表示する。 The display unit 123 acquires an image of the drawing stored in the display drawing storage unit 113 and displays the acquired drawing on the display device 12. As described above, the display drawing storage unit 113 stores, for example, an image of the drawing in which parts corresponding to the differences between the base drawing image and the new drawing image are expressed in different colors. Therefore, the display unit 123 acquires and displays this drawing.

次に、図4乃至図7を参照して、制御部120が実行する処理について説明する。 Next, the processing performed by the control unit 120 will be described with reference to Figures 4 to 7.

まず、図4に示すように、画像生成部121は媒体データを画像化する(ステップS1)。より詳しくは、画像生成部121は第1媒体記憶部111から第1媒体データ50を取得し、第1媒体画像を生成する。また、画像生成部121は第2媒体記憶部112から第2媒体データ60を取得し、第2媒体画像を生成する。 First, as shown in FIG. 4, the image generation unit 121 creates an image of the medium data (step S1). More specifically, the image generation unit 121 acquires first medium data 50 from the first medium storage unit 111 and generates a first medium image. The image generation unit 121 also acquires second medium data 60 from the second medium storage unit 112 and generates a second medium image.

媒体データを画像化すると、画像処理部122は類似ページを特定する(ステップS2)。具体的には、画像処理部122は第1媒体画像に含まれる複数のページ画像と第2媒体画像に含まれるページ画像とをページ画像ごとに対比してページ画像同士の類似度を算出する。類似度を算出すると、画像処理部122は最高の類似度が算出されるページ画像同士を類似ページとして特定する。これにより、類似ページが一意に特定される。本実施形態であれば、例えば、文字「図1」を含むページ画像同士が類似ページとして特定される(図3(a)及び(b)参照)。 Once the medium data has been imaged, the image processing unit 122 identifies similar pages (step S2). Specifically, the image processing unit 122 compares the multiple page images included in the first medium image with the page images included in the second medium image, page by page, to calculate the similarity between the page images. After calculating the similarity, the image processing unit 122 identifies the page images with the highest calculated similarity as similar pages. This allows similar pages to be uniquely identified. In this embodiment, for example, page images containing the characters "Figure 1" are identified as similar pages (see Figures 3(a) and (b)).

類似ページを特定すると、画像処理部122は一領域を部分領域に分割する(ステップS3)。すなわち、画像処理部122は類似ページとして特定された2つのページ画像のそれぞれをページ画像全体に相当する一領域から複数の部分領域に分割する。領域分割を実行すると、類似ページとして特定された2つのページ画像のそれぞれについて、画像処理部122は、複数の部分領域で隣接する2つの特定の部分領域の一方を残して、特定の部分領域の他方を削除する(ステップS4)。 When similar pages are identified, the image processing unit 122 divides each region into partial regions (step S3). That is, the image processing unit 122 divides each of the two page images identified as similar pages into multiple partial regions from a single region corresponding to the entire page image. After performing region division, for each of the two page images identified as similar pages, the image processing unit 122 retains one of two adjacent specific partial regions and deletes the other specific partial region (step S4).

より詳しく説明すると、まず、画像処理部122は、複数の部分領域で隣接する2つの特定の部分領域を認定する。例えば、図5(a)に示すように、画像処理部122は、比較元のページ画像に起因する2つの特定の部分領域の一方である部分領域71と2つの特定の部分領域の他方である部分領域72を認定する。部分領域71はベース図面52を含み、部分領域72はベース図面51を含んでいる。同様に、画像処理部122は、比較先のページ画像に起因する2つの特定の部分領域の一方である部分領域81と2つの特定の部分領域の他方である部分領域82を認定する。部分領域81は新規図面63を含み、部分領域82は新規図面62を含んでいる。 Explaining in more detail, the image processing unit 122 first identifies two specific adjacent partial areas among multiple partial areas. For example, as shown in FIG. 5(a), the image processing unit 122 identifies partial area 71, which is one of the two specific partial areas resulting from the comparison source page image, and partial area 72, which is the other of the two specific partial areas. Partial area 71 includes base drawing 52, and partial area 72 includes base drawing 51. Similarly, the image processing unit 122 identifies partial area 81, which is one of the two specific partial areas resulting from the comparison target page image, and partial area 82, which is the other of the two specific partial areas. Partial area 81 includes new drawing 63, and partial area 82 includes new drawing 62.

ここで、特徴量を算出する範囲を定める円形の着目領域IRを画像処理部122が部分領域71,81上をそれぞれ移動させ、着目領域IRに含まれる画素に基づいて特徴量を算出すると、互いに異なる特徴量を算出する場合がある。例えば、部分領域71上を着目領域IRが移動すると、着目領域IRに部分領域72の一部が含まれる場合がある。この場合、部分領域71の特徴量の算出に部分領域72が干渉する。すなわち、画像処理部122が算出する特徴量には、部分領域71の特徴量だけでなく、部分領域72の一部の特徴量が含まれる。 Here, when the image processing unit 122 moves a circular region of interest IR, which defines the range for calculating the feature amounts, over each of the partial regions 71 and 81 and calculates the feature amounts based on the pixels included in the region of interest IR, different feature amounts may be calculated. For example, when the region of interest IR moves over partial region 71, part of partial region 72 may be included in the region of interest IR. In this case, partial region 72 interferes with the calculation of the feature amounts of partial region 71. In other words, the feature amounts calculated by the image processing unit 122 include not only the feature amounts of partial region 71 but also the feature amounts of part of partial region 72.

同様に、部分領域81上を着目領域IRが移動すると、着目領域IRに部分領域82の一部が含まれる場合がある。この場合も、部分領域81の特徴量の算出に部分領域82が干渉する。すなわち、画像処理部122が算出する特徴量には、部分領域81の特徴量だけでなく、部分領域82の一部の特徴量が含まれる。特に、図5(a)に示すように、部分領域71,72の位置関係と部分領域81,82の位置関係が相対的に異なると、画像処理部122が算出する各特徴量が大きく相違することがある。例えば、これらの位置関係が相対的に異なると、着目領域IRに含まれる部分領域72の一部の形状と着目領域IRに含まれる部分領域82の一部の形状が相違する。図5(a)の例では、部分領域82のコーナー部分は着目領域IRに含まれているが、部分領域72のコーナー部分は着目領域IRに含まれていない。これにより、部分領域72の一部の特徴量と部分領域82の一部の特徴量が相違し、結果的に、画像処理部122が算出する各特徴量が大きく相違する。 Similarly, when the region of interest IR moves over the partial region 81, part of the partial region 82 may be included in the region of interest IR. In this case, the partial region 82 interferes with the calculation of the feature values of the partial region 81. That is, the feature values calculated by the image processing unit 122 include not only the feature values of the partial region 81 but also the feature values of part of the partial region 82. In particular, as shown in FIG. 5(a), if the positional relationship between the partial regions 71 and 72 and the positional relationship between the partial regions 81 and 82 are relatively different, the feature values calculated by the image processing unit 122 may differ significantly. For example, if these positional relationships are relatively different, the shape of the part of the partial region 72 included in the region of interest IR will differ from the shape of the part of the partial region 82 included in the region of interest IR. In the example of FIG. 5(a), the corners of the partial region 82 are included in the region of interest IR, but the corners of the partial region 72 are not included in the region of interest IR. As a result, the feature amounts of some of the partial regions 72 and 82 differ, and as a result, the feature amounts calculated by the image processing unit 122 differ significantly.

このような場合、図5(b)に示すように、画像処理部122は部分領域71を残して、部分領域72を削除する。また、図示しないが、部分領域71,72の場合と同様に、画像処理部122は部分領域81を残して、部分領域82を削除する。 In such a case, as shown in FIG. 5(b), the image processing unit 122 leaves partial region 71 and deletes partial region 72. Also, although not shown, as in the case of partial regions 71 and 72, the image processing unit 122 leaves partial region 81 and deletes partial region 82.

ステップS4の処理が完了すると、画像処理部122は所定領域を設定し、拡張領域を生成する(ステップS5)。例えば、図5(b)に示すように、画像処理部122は部分領域71の外周部に均一色の所定領域91を設定した拡張領域92を生成する。また、部分領域71の場合と同様に、画像処理部122は部分領域81の外周部に均一色の所定領域95を設定した拡張領域96を生成する。 Once the processing of step S4 is completed, the image processing unit 122 sets a predetermined region and generates an extended region (step S5). For example, as shown in FIG. 5(b), the image processing unit 122 generates extended region 92 by setting a predetermined region 91 of a uniform color on the outer periphery of partial region 71. Furthermore, as in the case of partial region 71, the image processing unit 122 generates extended region 96 by setting a predetermined region 95 of a uniform color on the outer periphery of partial region 81.

所定領域91は部分領域71より広く、部分領域72に起因する特徴量の算出への干渉を回避する大きさである。また、所定領域95は部分領域81より広く、部分領域82に起因する特徴量の算出への干渉を回避する大きさである。これにより、図5(b)に示すように、着目領域IRが拡張領域92上を移動しても、部分領域72に起因する干渉を回避することができる。図示しないが、着目領域IRが拡張領域96上を移動しても、部分領域82に起因する干渉を回避することができる。 Predetermined region 91 is larger than partial region 71 and is sized to avoid interference with feature calculation due to partial region 72. Furthermore, predetermined region 95 is larger than partial region 81 and is sized to avoid interference with feature calculation due to partial region 82. As a result, as shown in FIG. 5(b), even if the region of interest IR moves over extended region 92, interference due to partial region 72 can be avoided. Although not shown, even if the region of interest IR moves over extended region 96, interference due to partial region 82 can be avoided.

ステップS5の処理が完了すると、画像処理部122は上述した特徴点マッチング手法を用いて、拡張領域同士の対応関係を特定する(ステップS6)。より詳しくは、画像処理部122は、特徴点マッチング手法を用いて、図5(c)に示すように、比較元の拡張領域92と比較先の拡張領域96の対応関係を特定する。対応関係の特定は第1段階と第2段階を含んでいる。第1段階と第2段階の順序は特に限定されず、第1段階と第2段階のどちらが先でもよい。 Once the processing of step S5 is completed, the image processing unit 122 uses the feature point matching method described above to identify the correspondence between the extended regions (step S6). More specifically, the image processing unit 122 uses the feature point matching method to identify the correspondence between the comparison source extended region 92 and the comparison target extended region 96, as shown in FIG. 5(c). Identifying the correspondence includes a first stage and a second stage. The order of the first and second stages is not particularly limited, and either the first stage or the second stage can be performed first.

まず、第1段階について説明する。比較元の拡張領域が複数の点(例えば画素や、複数の画素を要素として含む局所領域又は微小領域など)A,Xなどを有し、比較先の拡張領域が複数の点B,C,Yなどを有している場合、画像処理部122は、第1段階として、点A,B間の距離L(A,B)と点A,C間の距離L(A,C)とを算出する。点A,B,C,X,Yなどはいずれも複数の成分(例えば明度、彩度、輝度、画素値(又はRGB値)の平均、画素値の分散、画素値のヒストグラムなど)を特徴量として有している。したがって、点A,Xを第1特徴点と呼んでもよく、点B,C,Yを第2特徴点と呼んでもよい。例えば、点Xは成分xとして明度を有し、成分xとして彩度を有し、・・・、成分xとして画素値のヒストグラムを有している。点A,B,C,Yについては点Xと基本的に同様であるため、詳細な説明は省略する。 First, the first stage will be described. When the comparison source extended region has multiple points (e.g., pixels, or local or minute regions containing multiple pixels as elements) A and X, and the comparison target extended region has multiple points B, C, Y, etc., the image processing unit 122 calculates the distance L(A, B) between points A and B and the distance L(A, C) between points A and C in the first stage. Each of points A, B, C, X, Y, etc. has multiple components (e.g., lightness, saturation, luminance, average pixel value (or RGB value), variance of pixel values, histogram of pixel values, etc.) as feature quantities. Therefore, points A and X may be referred to as first feature points, and points B, C, and Y may be referred to as second feature points. For example, point X has lightness as component x1 , saturation as component x2 , ..., and a histogram of pixel values as component xn . Points A, B, C, and Y are basically the same as point X, and detailed description thereof will be omitted.

これにより、画像処理部122は、以下の算出式により、例えば距離L(X,Y)を算出することができる。同様に、画像処理部122は、この算出式により、距離L(A,B)や距離(A,C)なども算出することができる。距離L(X,Y)や距離L(A,B)により、画像処理部122は点Xの特徴量と点Yの特徴量の類似度や、点Aの特徴量と点Bの特徴量の類似度を判断することができる。
<算出式>
距離L(X,Y)={(x-y+(x-y+・・・+(x-y}}0.5
As a result, the image processing unit 122 can calculate, for example, the distance L(X, Y) using the following calculation formula: Similarly, the image processing unit 122 can also calculate the distance L(A, B) and the distance (A, C) using this calculation formula. Based on the distance L(X, Y) and the distance L(A, B), the image processing unit 122 can determine the similarity between the feature amount of point X and the feature amount of point Y, and the similarity between the feature amount of point A and the feature amount of point B.
<Calculation formula>
Distance L (X, Y) = {(x 1 - y 1 ) 2 + (x 2 - y 2 ) 2 +...+(x n - y n ) 2 }} 0.5

ここで、画像処理部122は、拡張領域の要素の特異な特徴量を持つペア(以下、要素ペアという)の数を使用して、対応関係を特定する(ペアリングする)拡張領域の候補(以下、ペアリング候補という)を選定する。具体的には、画像処理部122は拡張領域内の点の特徴量がマッチングした点ペアの数が最大となる拡張領域同士をペアリング候補として選定する。画像処理部122は、2点間の距離Lが他の2点間の距離Lに比べて最小となる場合に、特徴量がマッチングしたと判断する。 Here, the image processing unit 122 uses the number of pairs of elements in the extended area that have unique features (hereinafter referred to as element pairs) to select candidates for extended areas (hereinafter referred to as pairing candidates) to identify correspondences (to be paired). Specifically, the image processing unit 122 selects as pairing candidates the extended areas that have the largest number of point pairs with matching features of points within the extended areas. The image processing unit 122 determines that the features match when the distance L between two points is the smallest compared to the distance L between other two points.

なお、特異な特徴量を持つ要素ペアは、例えば点Aと点Aのペア候補となる最小距離の点Bとの距離L(A,B)、及び、点Aと点Aのペア候補となる点Bの次に最小距離となる点Cとの距離L(A,C)とに基づいて、以下の不等式を満たすことが要求される。比較元の拡張領域の点Aと比較先の拡張領域の点Bの距離L(A,B)が最短であれば、点Aと点Bの特徴量が酷似するため、画像処理部122は特徴量がマッチングしたと判断することができる。第1閾値には、例えば0.5や0.6など1.0未満の正の数値を設定することができる。
<不等式>
距離L(A,B)/距離L(A,C)<第1閾値
An element pair having a unique feature is required to satisfy the following inequality, based on, for example, the distance L(A, B) between point A and point B, which is the shortest distance and is a candidate pair for point A, and the distance L(A, C) between point A and point C, which is the next shortest distance after point B, which is a candidate pair for point A. If the distance L(A, B) between point A in the source extended region and point B in the target extended region is the shortest, the feature values of points A and B are very similar, and the image processing unit 122 can determine that the feature values match. The first threshold can be set to a positive value less than 1.0, such as 0.5 or 0.6.
<Inequalities>
Distance L(A, B)/Distance L(A, C)<first threshold

以上により、図6(a)に示すように、画像処理部122は、対応する複数の拡張領域(図6(a)においてエリアと記載)#1~#5のペアリング候補を選定することができる。例えば、ベース図面画像の拡張領域#3に対応する拡張領域の候補には新規図面画像の拡張領域#2及び拡張領域#3の候補が該当する。ここで、ベース図面画像の拡張領域#3の点と新規図面画像の拡張領域#2の点の特徴量がマッチングした点ペアの数は80個である。一方、ベース図面画像の拡張領域#3の点と新規図面画像の拡張領域#3の点の特徴量がマッチングした点ペアの数は40個である。このため、画像処理部122は、点ペアの数が多いベース図面画像の拡張領域#3と新規図面画像の拡張領域#2とを拡張領域のペアリング候補として決定する。 As a result, as shown in FIG. 6(a), the image processing unit 122 can select pairing candidates for multiple corresponding extension areas (referred to as areas in FIG. 6(a)) #1 to #5. For example, the extension area candidates corresponding to extension area #3 of the base drawing image are extension area #2 and extension area #3 of the new drawing image. Here, the number of point pairs where the features of points in extension area #3 of the base drawing image match those of points in extension area #2 of the new drawing image is 80. On the other hand, the number of point pairs where the features of points in extension area #3 of the base drawing image match those of points in extension area #3 of the new drawing image is 40. Therefore, the image processing unit 122 determines extension area #3 of the base drawing image and extension area #2 of the new drawing image, which have the largest number of point pairs, as extension area pairing candidates.

次に、第2段階について説明する。第2段階では、画像処理部122は、拡張領域の要素の特徴量の距離の短さを使用して、対応関係を特定する拡張領域のペアリング候補を選定する。例えば、画像処理部122は距離Lが短い順に数個から十数個(例えば5個や10個、15個など)の点ペアを選択し、選択した点ペアの距離Lの総和をその個数で割った平均値が第2閾値未満であることにより、ペアリング候補を選定する。 Next, the second stage will be described. In the second stage, the image processing unit 122 selects pairing candidates for the extended region that identify correspondences using the shortest distances between the feature quantities of the elements in the extended region. For example, the image processing unit 122 selects several to a dozen (e.g., 5, 10, 15, etc.) point pairs in ascending order of distance L, and selects pairing candidates if the average value obtained by dividing the sum of the distances L of the selected point pairs by the number of points is less than the second threshold.

ここで、第2閾値として例えば閾値「30」や閾値「50」といった数十の数値が設定された場合、図6(b)に示すように、画像処理部122は、対応する複数の拡張領域(図6(b)においてエリアと記載)#1~#5のペアリング候補を選定することができる。例えば、ベース図面画像の拡張領域#3に対応する拡張領域の候補には新規図面画像の拡張領域#2及び拡張領域#3の候補が該当する。 Here, if the second threshold is set to several tens of values, such as a threshold of "30" or a threshold of "50," the image processing unit 122 can select pairing candidates for multiple corresponding extension areas (referred to as areas in FIG. 6(b)) #1 to #5, as shown in FIG. 6(b). For example, the extension area candidates corresponding to extension area #3 of the base drawing image are extension area #2 and extension area #3 of the new drawing image.

ここで、ベース図面画像の拡張領域#3の点と新規図面画像の拡張領域#2の点の距離Lは平均値「10」である。一方、ベース図面画像の拡張領域#3の点と新規図面画像の拡張領域#3の点の距離Lは平均値「13」である。このため、画像処理部122は、距離Lの平均値が短いベース図面画像の拡張領域#3と新規図面画像の拡張領域#2とを拡張領域のペアリング候補として決定する。なお、画像処理部122は、平均値を利用せずに、上述した総和と上述した第2閾値より大きな第5閾値を利用して、ペアリング候補を選定してもよい。 Here, the average distance L between a point in extension area #3 of the base drawing image and a point in extension area #2 of the new drawing image is "10." On the other hand, the average distance L between a point in extension area #3 of the base drawing image and a point in extension area #3 of the new drawing image is "13." Therefore, the image processing unit 122 determines extension area #3 of the base drawing image and extension area #2 of the new drawing image, which have the shortest average value of distance L, as pairing candidates for extension areas. Note that the image processing unit 122 may select pairing candidates using the above-mentioned sum and a fifth threshold value that is greater than the above-mentioned second threshold value, without using the average value.

画像処理部122は、第1段階で決定したペアリング候補と第2段階で決定したペアリング候補とに基づいて、比較元の拡張領域と比較先の拡張領域のペアを最終的に決定する。したがって、図6(a)及び(b)に示すように、画像処理部122は、対応関係を有する拡張領域として、例えばベース図面画像の拡張領域#1と新規図面画像の拡張領域#1とをペアリングする。 The image processing unit 122 ultimately determines the pair of the comparison source and comparison destination extended areas based on the pairing candidates determined in the first stage and the pairing candidates determined in the second stage. Therefore, as shown in Figures 6(a) and 6(b), the image processing unit 122 pairs, for example, extended area #1 of the base drawing image with extended area #1 of the new drawing image as extended areas having a corresponding relationship.

なお、図6(a)に示すように、画像処理部122は、ベース図面画像の拡張領域#5と新規図面画像の拡張領域#5をペアリング候補として選定するが、図6(b)に示すように、ベース図面画像の拡張領域#5と新規図面画像の拡張領域#5をペアリング候補の選定から除外する。これは、ベース図面画像の拡張領域#5と新規図面画像の拡張領域#5は距離Lの平均値が第2閾値を超えているためである。この場合、画像処理部122は、ベース図面画像から削除され、新規図面画像に追加されたと判断してもよい。 As shown in Figure 6(a), the image processing unit 122 selects extended area #5 of the base drawing image and extended area #5 of the new drawing image as pairing candidates, but as shown in Figure 6(b), it excludes extended area #5 of the base drawing image and extended area #5 of the new drawing image from the selection of pairing candidates. This is because the average value of the distance L between extended area #5 of the base drawing image and extended area #5 of the new drawing image exceeds the second threshold. In this case, the image processing unit 122 may determine that extended area #5 has been deleted from the base drawing image and added to the new drawing image.

このように、第1段階と第2段階を含む対応関係の特定により、画像処理部122は、拡張領域同士をペアリングする。すなわち、画像処理部122は、比較元のベース図面画像に含まれる部分領域に対し、低精度な特徴量に起因して、比較先の新規図面画像に含まれる部分領域がペアリング対象として決定されなくなることを回避する。このように、画像処理部122は、拡張領域を認定して生成することにより、拡張領域同士の対応関係を精度良く一意に特定することができ、部分領域同士の対応関係を精度良く特定することができる。なお、図面の拡張領域を一例として説明したが、画像処理部122は、文字についても図面と同様に拡張領域を認定して生成し、対応関係を特定してもよい。 In this way, by identifying correspondences that include the first and second stages, the image processing unit 122 pairs the extended regions with each other. In other words, the image processing unit 122 avoids a situation where a partial region included in the new drawing image to be compared is not determined as a pairing target due to low-precision features compared to a partial region included in the base drawing image to be compared. In this way, by recognizing and generating extended regions, the image processing unit 122 can accurately and uniquely identify correspondences between extended regions, and can accurately identify correspondences between partial regions. Note that while extended regions for drawings have been described as an example, the image processing unit 122 may also identify and generate extended regions for text in the same way as for drawings, and identify correspondences.

対応関係を特定すると、画像処理部122は対応関係が特定された拡張領域の一方を他方に移動させて(ステップS7)、ベース図面画像と新規図面画像との位置を整合させる(ステップS8)。ベース図面画像と新規図面画像との位置を整合させると、画像処理部122はベース図面画像をモノクローム化して、緑色を単独で付与する。緑色は光の3原色の1つであり、RGB形式の256階調で分類された明るさの色表現において、(R,G,B)=(0,255,0)で表すことができる。256階調で分類された明るさにおいて、数値データ「255」は最も明るい明るさを表している。ベース図面画像をモノクローム化して、緑色を単独で付与することにより、ベース図面画像を緑色で表現することができる。 Once the correspondence has been identified, the image processing unit 122 moves one of the extended regions for which the correspondence has been identified to the other (step S7), aligning the positions of the base drawing image and the new drawing image (step S8). Once the positions of the base drawing image and the new drawing image have been aligned, the image processing unit 122 converts the base drawing image to monochrome and assigns green alone. Green is one of the three primary colors of light, and can be expressed as (R, G, B) = (0, 255, 0) in the RGB format, which classifies brightness into 256 levels. In the 256-level brightness classification, the numerical data "255" represents the brightest brightness. By converting the base drawing image to monochrome and assigning green alone, the base drawing image can be expressed in green.

ベース図面画像をモノクローム化して、緑色を単独で付与すると、画像処理部122は新規図面画像をモノクローム化して、赤色を単独で付与する。赤色も光の3原色の1つであり、RGB形式の色表現において、(R,G,B)=(255,0,0)で表すことができる。新規図面画像をモノクローム化して、赤色を単独で付与することにより、新規図面画像を赤色で表現することができる。なお、新規図面画像に緑色を付与し、ベース図面画像に赤色を付与してもよい。 When the base drawing image is converted to monochrome and green is added alone, the image processing unit 122 converts the new drawing image to monochrome and red is added alone. Red is one of the three primary colors of light, and can be expressed in RGB color representation as (R, G, B) = (255, 0, 0). By converting the new drawing image to monochrome and adding red alone, the new drawing image can be expressed in red. Note that green may be added to the new drawing image and red may be added to the base drawing image.

新規図面画像をモノクローム化して、赤色を単独で付与するすると、画像処理部122はベース図面画像と新規図面画像を青色の下地に重ね合わせる。青色も光の3原色の1つであり、RGB形式の色表現において、(R,G,B)=(0,0,255)で表すことができる。下地は所定データの一例である。ベース図面画像と新規図面画像を青色の下地に重ね合わせると、(R,G,B)=(255,255,255)となるため、白色を表現することができる。 When the new drawing image is converted to monochrome and red is added alone, the image processing unit 122 overlays the base drawing image and new drawing image on a blue background. Blue is one of the three primary colors of light, and can be expressed as (R, G, B) = (0, 0, 255) in RGB color representation. The background is an example of specified data. When the base drawing image and new drawing image are overlaid on a blue background, the result is (R, G, B) = (255, 255, 255), which allows white to be expressed.

このように、白色で表現された背景の中で緑色のベース図面画像だけの部分は、(R,G,B)=(255,255,255)-(0,255,0)=(255,0,255)となるため、ピンク色を含むマゼンタ色で表現することができる。また、白色で表現された背景の中で赤色の新規図面画像だけの部分は、(R,G,B)=(255,255,255)-(255,0,0)=(0,255,255)となるため、水色を含むシアン色で表現することができる。さらに、白色で表現された背景の中で緑色のベース図面画像と赤色の新規図面画像の重畳部分は、(R,G,B)=(255,255,255)-(0,255,0)-(255,0,0)=(0,0,255)となるため、青色で表現することができる。 In this way, the portion of the white background that contains only the green base drawing image can be expressed as magenta, including pink, because (R,G,B) = (255,255,255) - (0,255,0) = (255,0,255). Similarly, the portion of the white background that contains only the red new drawing image can be expressed as cyan, including light blue, because (R,G,B) = (255,255,255) - (255,0,0) = (0,255,255). Furthermore, the overlapping portion of the white background containing the green base drawing image and the red new drawing image can be expressed as blue, because (R,G,B) = (255,255,255) - (0,255,0) - (255,0,0) = (0,0,255).

ベース図面画像と新規図面画像を青色の下地に重ね合わせると、画像処理部122はこのような図面の画像を表示図面記憶部113に格納する。図面の画像が表示図面記憶部113に格納されると、表示部123は図面の画像を表示装置12に表示し(ステップS9)、処理を終了する。これにより、図7(a)及び(b)に示すように、ベース図面画像と新規図面画像が重畳し、部分的に異なる色で表現された図面の画像が表示装置12に出現する。 When the base drawing image and the new drawing image are superimposed on a blue background, the image processing unit 122 stores an image of such a drawing in the display drawing storage unit 113. Once the drawing image has been stored in the display drawing storage unit 113, the display unit 123 displays the drawing image on the display device 12 (step S9), and the processing ends. As a result, as shown in Figures 7(a) and (b), the base drawing image and the new drawing image are superimposed, and an image of the drawing, partially expressed in different colors, appears on the display device 12.

例えば、図7(a)に示すように、ベース図面51に相当するベース図面画像と新規図面62に相当する新規図面画像との差異、及びベース図面52に相当するベース図面画像と新規図面63に相当する新規図面画像との差異は、異なる色の差異画像P1,P2で表示装置12に出現する。この際、ベース図面画像の一部である差異画像P1はマゼンタ色で表示され、新規図面画像の一部である差異画像P2はシアン色で表示される。そして、ベース図面画像と新規図面画像の重畳部分である重畳画像P3は青色で表示される。 For example, as shown in FIG. 7(a), the differences between the base drawing image corresponding to base drawing 51 and the new drawing image corresponding to new drawing 62, and the differences between the base drawing image corresponding to base drawing 52 and the new drawing image corresponding to new drawing 63, appear on the display device 12 as difference images P1 and P2 of different colors. In this case, difference image P1, which is part of the base drawing image, is displayed in magenta, and difference image P2, which is part of the new drawing image, is displayed in cyan. Then, superimposed image P3, which is the superimposed portion of the base drawing image and the new drawing image, is displayed in blue.

また、図7(b)に示すように、ベース図面53に相当するベース図面画像と、新規図面61に相当する新規図面画像との差異は、異なる色の差異画像Q1で表示装置12に出現する。この際、ベース図面画像の一部である差異画像Q1はマゼンタ色で表示されるが、新規図面画像はその全体がベース図面画像に重畳するため、新規図面画像は渾然一体的に重畳画像Q3として青色で表示される。 Also, as shown in Figure 7(b), the differences between the base drawing image corresponding to the base drawing 53 and the new drawing image corresponding to the new drawing 61 appear on the display device 12 as a difference image Q1 of a different color. In this case, the difference image Q1, which is part of the base drawing image, is displayed in magenta, but since the entire new drawing image is superimposed on the base drawing image, the new drawing image is displayed as a blended image in blue as a superimposed image Q3.

このように、本実施形態に係る画像処理装置100では、類似ページとして特定された2つのページ画像のそれぞれについて、画像処理部122は、隣接する2つの特定の部分領域71,81の特徴量を算出する。この際、画像処理部122は、部分領域72,82が特徴量の算出に干渉する場合、部分領域71,81の外周部に均一色の所定領域91,95を設定した拡張領域92,96を生成し、拡張領域92,96同士の対応関係を特定する。これにより、拡張領域92,96を生成しない場合に生じる部分領域71,81同士の低精度な特定が抑制される。結果的に、比較元の拡張領域92に含まれる部分領域71と比較先の拡張領域96に含まれる部分領域81の特定精度を向上させることができる。 In this way, in the image processing device 100 according to this embodiment, for each of two page images identified as similar pages, the image processing unit 122 calculates the feature amounts of two specific adjacent partial regions 71, 81. If the partial regions 72, 82 interfere with the feature amount calculation, the image processing unit 122 generates extended regions 92, 96 in which predetermined regions 91, 95 of uniform color are set around the periphery of the partial regions 71, 81, and identifies the correspondence between the extended regions 92, 96. This prevents the low accuracy of identifying the partial regions 71, 81 when the extended regions 92, 96 are not generated. As a result, the accuracy of identifying the partial region 71 included in the extended region 92 of the comparison source and the partial region 81 included in the extended region 96 of the comparison target can be improved.

以上本発明の好ましい実施形態について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。 Although the preferred embodiment of the present invention has been described in detail above, the present invention is not limited to such specific embodiment, and various modifications and variations are possible within the scope of the gist of the present invention as set forth in the claims.

50 第1媒体データ
51,52,53 ベース図面
60 第2媒体データ
61,62,63 新規図面
71,72,81,82 部分領域
91,95 所定領域
92,96 拡張領域
100 画像処理装置
120 制御部
IR 着目領域
50 First medium data 51, 52, 53 Base drawing 60 Second medium data 61, 62, 63 New drawing 71, 72, 81, 82 Partial area 91, 95 Predetermined area 92, 96 Extended area 100 Image processing device 120 Control unit IR Area of interest

Claims (5)

第1図面データを前記第1図面データの一頁分の画像を表す第1領域から複数の第1部分領域に分割し、第2図面データを前記第2図面データの一頁分の画像を表す第2領域から複数の第2部分領域に分割する処理と、
前記複数の第1部分領域で隣接する2つの特定の第1部分領域の一方の第1特徴量を算出する際に、前記特定の第1部分領域の他方が前記第1特徴量の算出に干渉する場合、前記特定の第1部分領域の一方の外周部に均一色の第1所定領域を設定した第1拡張領域を生成する処理と、
前記複数の第2部分領域で隣接する2つの特定の第2部分領域の一方の第2特徴量を算出する際に、前記特定の第2部分領域の他方が前記第2特徴量の算出に干渉する場合、前記特定の第2部分領域の一方の外周部に均一色の第2所定領域を設定した第2拡張領域を生成する処理と、
前記第1拡張領域と前記第2拡張領域とを比較し、比較結果に基づいて、前記第1拡張領域に対応する前記第2拡張領域を特定する処理と、
を実行する制御部を有する画像処理装置。
A process of dividing the first drawing data into a plurality of first partial regions from a first region representing an image of one page of the first drawing data, and dividing the second drawing data into a plurality of second partial regions from a second region representing an image of one page of the second drawing data;
a process of generating a first extended region in which a first predetermined region of a uniform color is set on an outer periphery of one of the specific first partial regions when a first feature amount of one of two specific first partial regions adjacent to each other among the plurality of first partial regions is calculated and the other specific first partial region interferes with the calculation of the first feature amount;
a process of generating a second extended region in which a second predetermined region of a uniform color is set on an outer periphery of one of the specific second partial regions when calculating a second feature amount of one of the two specific second partial regions adjacent to each other among the plurality of second partial regions and the other specific second partial region interferes with the calculation of the second feature amount;
a process of comparing the first extension region with the second extension region and identifying the second extension region corresponding to the first extension region based on a comparison result;
An image processing device having a control unit that executes the above.
前記制御部は、前記特定の第1部分領域の一方及び他方の第1位置関係と、前記特定の第2部分領域の一方及び他方の第2位置関係が相対的に異なる場合に、前記第1拡張領域と前記第2拡張領域を生成する、
処理を実行することを特徴とする請求項1に記載の画像処理装置。
the control unit generates the first extended region and the second extended region when a first positional relationship between one and the other of the specific first partial regions and a second positional relationship between one and the other of the specific second partial regions are relatively different.
2. The image processing apparatus according to claim 1, wherein the image processing apparatus executes processing.
前記制御部は、前記第1拡張領域が有する第1特徴点と、前記第2拡張領域が有する第2特徴点と、機械学習を用いた所定の特徴点マッチング手法とに基づいて、前記第1拡張領域に対応する前記第2拡張領域を特定する、
処理を実行することを特徴とする請求項1又は2に記載の画像処理装置。
the control unit specifies the second extended region corresponding to the first extended region based on a first feature point of the first extended region, a second feature point of the second extended region, and a predetermined feature point matching method using machine learning.
3. The image processing apparatus according to claim 1, wherein the image processing apparatus executes processing.
前記制御部は、前記特定の第1部分領域の他方による前記第1特徴量の算出への干渉を回避する大きさの前記第1所定領域を設定した前記第1拡張領域を生成し、かつ、前記特定の第2部分領域の他方による前記第2特徴量の算出への干渉を回避する大きさの前記第2所定領域を設定した前記第2拡張領域を生成する、
処理を実行することを特徴とする請求項1又は2に記載の画像処理装置。
the control unit generates the first extended region in which the first predetermined region is set to a size that avoids interference with the calculation of the first feature amount by the other of the specific first partial regions, and generates the second extended region in which the second predetermined region is set to a size that avoids interference with the calculation of the second feature amount by the other of the specific second partial regions.
3. The image processing apparatus according to claim 1, wherein the image processing apparatus executes processing.
前記第1所定領域と前記第2所定領域は、いずれも余白である、
ことを特徴とする請求項1又は2に記載の画像処理装置。
The first predetermined area and the second predetermined area are both blank spaces.
3. The image processing device according to claim 1, wherein the image processing device is a computer.
JP2023009415A 2023-01-25 2023-01-25 Image processing device Active JP7750255B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023009415A JP7750255B2 (en) 2023-01-25 2023-01-25 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023009415A JP7750255B2 (en) 2023-01-25 2023-01-25 Image processing device

Publications (2)

Publication Number Publication Date
JP2024104955A JP2024104955A (en) 2024-08-06
JP7750255B2 true JP7750255B2 (en) 2025-10-07

Family

ID=92147902

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023009415A Active JP7750255B2 (en) 2023-01-25 2023-01-25 Image processing device

Country Status (1)

Country Link
JP (1) JP7750255B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007335920A (en) 2006-06-12 2007-12-27 Fuji Xerox Co Ltd Image processing apparatus and image processing program
JP2011243007A (en) 2010-05-18 2011-12-01 Canon Inc Image processing device, and processing method and program thereof
JP2014063397A (en) 2012-09-21 2014-04-10 Fujitsu Ltd Image processor, image processing method and image processing program
JP2016025625A (en) 2014-07-24 2016-02-08 キヤノン株式会社 Information processing apparatus, information processing method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007335920A (en) 2006-06-12 2007-12-27 Fuji Xerox Co Ltd Image processing apparatus and image processing program
JP2011243007A (en) 2010-05-18 2011-12-01 Canon Inc Image processing device, and processing method and program thereof
JP2014063397A (en) 2012-09-21 2014-04-10 Fujitsu Ltd Image processor, image processing method and image processing program
JP2016025625A (en) 2014-07-24 2016-02-08 キヤノン株式会社 Information processing apparatus, information processing method, and program

Also Published As

Publication number Publication date
JP2024104955A (en) 2024-08-06

Similar Documents

Publication Publication Date Title
RU2429540C2 (en) Image processing apparatus, image processing method, computer readable data medium
US9047804B1 (en) Lexical-based processing of color images
JP6098298B2 (en) Image processing apparatus and computer program
CN114719966A (en) Light source determination method and device, electronic equipment and storage medium
JP2015011585A (en) Image processing apparatus, image forming apparatus, image forming system, image processing method, and program
JP5321109B2 (en) Information processing apparatus and information processing program
TW201325260A (en) Image processing device, image processing method, and program
JP4125273B2 (en) Image processing apparatus and method, and program
US20150213332A1 (en) Image processing apparatus, non-transitory computer readable medium, and image processing method
US10509986B2 (en) Image similarity determination apparatus and image similarity determination method
JP7750255B2 (en) Image processing device
CN110536043B (en) Information processing apparatus, information processing method, and storage medium
JP7800475B2 (en) Image processing device
CN111242836B (en) Target image generation method, device and equipment for generating advertisement image
JP2024103152A (en) Image Processing Device
JP2019046225A (en) Recognition device, recognition program, and recognition method
JP6354497B2 (en) Display area specifying device, display area specifying method, and program
KR102018773B1 (en) Apparatus and method for detecting object candidate of image using Additive Kernel BING
JP2024100137A (en) Drawing display device
JP2019153230A (en) Information processor and information processing program
JP3199009B2 (en) Image storage / management apparatus and image index generation method
JP2009086762A (en) Similarity calculation device and similarity display device
JP5939132B2 (en) Image processing apparatus and image processing program
JP2024178588A (en) Image Processing Device
CN110930963A (en) Gamut mapping method and gamut processing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20250212

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250908

R150 Certificate of patent or registration of utility model

Ref document number: 7750255

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150