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
JP7102772B2 - Image processing equipment and programs - Google Patents
[go: Go Back, main page]

JP7102772B2 - Image processing equipment and programs - Google Patents

Image processing equipment and programs Download PDF

Info

Publication number
JP7102772B2
JP7102772B2 JP2018029879A JP2018029879A JP7102772B2 JP 7102772 B2 JP7102772 B2 JP 7102772B2 JP 2018029879 A JP2018029879 A JP 2018029879A JP 2018029879 A JP2018029879 A JP 2018029879A JP 7102772 B2 JP7102772 B2 JP 7102772B2
Authority
JP
Japan
Prior art keywords
band
shaped region
region
shaped
image
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
JP2018029879A
Other languages
Japanese (ja)
Other versions
JP2019144943A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2018029879A priority Critical patent/JP7102772B2/en
Publication of JP2019144943A publication Critical patent/JP2019144943A/en
Application granted granted Critical
Publication of JP7102772B2 publication Critical patent/JP7102772B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Description

本発明は、画像処理装置及びプログラムに関する。 The present invention relates to an image processing apparatus and a program.

例えば、物の表面への画像の印刷、画像が印刷されたフィルムによる物の被覆など、画像を用いた加飾の技術が知られている。加飾の対象は、器物の表面、建築物や乗り物の内外装、包装紙、梱包材などである。加飾には、抽象柄、具象柄などの画像が用いられる。加飾のために用意された画像のサイズが加飾対象の表面のサイズよりも小さい場合、用意された画像から抽出された複数の複製画像を隙間なく配置することで加飾する手法が考え出された。例えば、特許文献1には、互いの境界部に重複が生じるように複数の複製画像を配置し、複数の複製画像の繋ぎ目をフェザーリング法、グラフカット法、イメージキルティング法を用いて合成することが記載されている。 For example, a technique for decorating an object using an image, such as printing an image on the surface of an object or covering an object with a film on which the image is printed, is known. The objects to be decorated are the surface of objects, the interior and exterior of buildings and vehicles, wrapping paper, packing materials, and the like. Images such as abstract patterns and concrete patterns are used for decoration. When the size of the image prepared for decoration is smaller than the size of the surface to be decorated, a method of decorating by arranging multiple duplicate images extracted from the prepared image without gaps has been devised. Was done. For example, in Patent Document 1, a plurality of duplicated images are arranged so as to overlap each other, and the joints of the plurality of duplicated images are combined by using a feathering method, a graph cut method, and an image quilting method. It is stated that.

特許第4415699号公報Japanese Patent No. 4415699

本発明は、複数の同一の画像を隙間なく配置して出力画像を生成する場合に、それらの画像の繋ぎ目に合成処理を行わなくても、その繋ぎ目が目立たないようにすることを目的とする。 An object of the present invention is to make a joint of images inconspicuous even if a compositing process is not performed when a plurality of the same images are arranged without gaps to generate an output image. And.

請求項1に記載の画像処理装置は、入力画像に含まれる第1帯状領域平行移動させた帯状領域のうち、前記第1帯状領域と画像が類似する第2帯状領域を前記入力画像から抽出する抽出部と、前記入力画像において前記第1帯状領域と前記第2帯状領域とに挟まれた領域と、前記第1帯状領域又は前記第2帯状領域と、を含む第1領域の画像を複数、隙間なく配置した出力画像を生成する生成部と、を備える。 The image processing apparatus according to claim 1 obtains a second band-shaped region whose image is similar to that of the first band-shaped region from the input image among the band-shaped regions in which the first band-shaped region included in the input image is moved in parallel . An image of a first region including an extraction unit to be extracted, a region sandwiched between the first band-shaped region and the second band-shaped region in the input image, and the first band-shaped region or the second band-shaped region. It is provided with a plurality of generation units for generating output images arranged without gaps.

請求項2に記載の画像処理装置は、請求項1に記載の画像処理装置において、前記出力画像を表示する表示部と、操作を受け付ける受付部とを備え、前記抽出部は、前記第1帯状領域を変更する操作が前記受付部により受け付けられた場合に、変更された前記第1帯状領域を用いて、前記第2帯状領域を抽出する。 The image processing device according to claim 2 includes a display unit for displaying the output image and a reception unit for receiving an operation in the image processing device according to claim 1, and the extraction unit has the first band shape. When the operation of changing the area is accepted by the reception unit, the second band-shaped area is extracted by using the changed first band-shaped area.

請求項3に記載の画像処理装置は、請求項2に記載の画像処理装置において、前記受付部は、前記第1帯状領域の延長方向における前記第1帯状領域の端部の位置を設定する操作を受け付ける。 The image processing device according to claim 3 is the image processing device according to claim 2, wherein the reception unit sets the position of the end portion of the first band-shaped area in the extension direction of the first band-shaped area. Accept.

請求項4に記載の画像処理装置は、請求項2に記載の画像処理装置において、前記受付部は、前記第1帯状領域の延長方向を設定する操作を受け付ける。 The image processing device according to claim 4 is the image processing device according to claim 2, wherein the reception unit receives an operation of setting an extension direction of the first band-shaped region.

請求項5に記載の画像処理装置は、請求項2に記載の画像処理装置において、前記受付部は、前記第1帯状領域の延長方向と交差する方向における前記第1帯状領域の幅を設定する操作を受け付ける。 The image processing device according to claim 5 is the image processing device according to claim 2, wherein the reception unit sets the width of the first band-shaped area in a direction intersecting the extension direction of the first band-shaped area. Accept operations.

請求項6に記載の画像処理装置は、請求項1に記載の画像処理装置において、前記抽出部は、縮小された前記入力画像から前記第2帯状領域を抽出する。 The image processing apparatus according to claim 6 is the image processing apparatus according to claim 1, wherein the extraction unit extracts the second band-shaped region from the reduced input image.

請求項7に記載の画像処理装置は、請求項1に記載の画像処理装置において、前記抽出部は、前記第2帯状領域が前記入力画像から抽出されなかった場合に、前記第1帯状領域を変更して前記第2帯状領域を抽出する。 The image processing apparatus according to claim 7 is the image processing apparatus according to claim 1, wherein the extraction unit obtains the first band-shaped region when the second band-shaped region is not extracted from the input image. The second band-shaped region is extracted by changing.

請求項8に記載の画像処理装置は、請求項2に記載の画像処理装置において、前記第1帯状領域を変更して複数の前記出力画像を生成するように前記抽出部と前記生成部を制御する制御部を備え、前記表示部は、複数の前記出力画像を表示し、前記受付部は、複数の前記出力画像のいずれかを選択する操作を受け付ける。 The image processing apparatus according to claim 8 controls the extraction unit and the generation unit so as to change the first band-shaped region to generate a plurality of output images in the image processing apparatus according to claim 2. The display unit displays a plurality of the output images, and the reception unit receives an operation of selecting one of the plurality of output images.

請求項9に記載の画像処理装置は、請求項1に記載の画像処理装置において、前記抽出部は、前記第1帯状領域と交差する第3帯状領域平行移動させた帯状領域のうち、前記第3帯状領域と画像が類似する第4帯状領域を前記入力画像から抽出し、前記生成部は、前記第1領域のうち、前記第3帯状領域と前記第4帯状領域とに挟まれた領域と、前記第3帯状領域又は前記第4帯状領域と、を含む第2領域の画像を複数、隙間なく配置した出力画像を生成する。 The image processing apparatus according to claim 9 is the image processing apparatus according to claim 1, wherein the extraction unit is a band-shaped region obtained by translating a third band-shaped region intersecting with the first band-shaped region . A fourth band-shaped region having an image similar to that of the third band-shaped region was extracted from the input image, and the generation unit was sandwiched between the third band-shaped region and the fourth band-shaped region of the first region. An output image is generated in which a plurality of images of the second region including the region and the third band-shaped region or the fourth band-shaped region are arranged without gaps.

請求項10に係るプログラムは、コンピュータを、入力画像に含まれる第1帯状領域平行移動させた帯状領域のうち、前記第1帯状領域と画像が類似する第2帯状領域を前記入力画像から抽出する抽出部と、前記入力画像において前記第1帯状領域と前記第2帯状領域とに挟まれた領域と、前記第1帯状領域又は前記第2帯状領域と、を含む第1領域の画像を複数、隙間なく配置した出力画像を生成する生成部として機能させるためのプログラムである。 The program according to claim 10 uses the input image to obtain a second band-shaped region whose image is similar to that of the first band-shaped region among the band-shaped regions obtained by moving the computer in parallel with the first band-shaped region included in the input image. An image of a first region including an extraction unit to be extracted, a region sandwiched between the first band-shaped region and the second band-shaped region in the input image, and the first band-shaped region or the second band-shaped region. This is a program for functioning as a generator that generates multiple output images arranged without gaps.

請求項1、10に係る発明によれば、複数の同一の画像を隙間なく配置して出力画像を生成する場合に、複数の画像の繋ぎ目の合成処理を行わなくても繋ぎ目が目立ちにくい出力画像が生成される。
請求項2に係る発明によれば、ユーザが出力画像を確認した後、ユーザが変更した第1帯状領域を用いて出力画像が生成し直される。
請求項3に係る発明によれば、ユーザが端部の位置を変更した第1帯状領域を用いて出力画像が生成し直される。
請求項4に係る発明によれば、ユーザが延長方向を変更した第1帯状領域を用いて出力画像が生成し直される。
請求項5に係る発明によれば、ユーザが幅を変更した第1帯状領域を用いて出力画像が生成し直される。
請求項6に係る発明によれば、縮小されない入力画像を用いる場合と比べて第2帯状領域の抽出が高速化される。
請求項7に係る発明によれば、第2帯状領域が抽出されなかった場合に、ユーザが操作を行わなくても、第1帯状領域を変更して第2帯状領域が抽出し直される。
請求項8に係る発明によれば、出力画像の選択肢がユーザに与えられる。
請求項9に係る発明によれば、第1帯状領域と交差する方向に延びる繋ぎ目が目立ちにくい出力画像が生成される。
According to the inventions according to claims 1 and 10, when a plurality of the same images are arranged without gaps to generate an output image, the joints are inconspicuous even if the joints of the plurality of images are not combined. The output image is generated.
According to the second aspect of the present invention, after the user confirms the output image, the output image is regenerated using the first band-shaped region modified by the user.
According to the third aspect of the present invention, the output image is regenerated using the first band-shaped region in which the user has changed the position of the end portion.
According to the invention of claim 4, the output image is regenerated using the first band-shaped region in which the user has changed the extension direction.
According to the invention of claim 5, the output image is regenerated using the first band-shaped region whose width has been changed by the user.
According to the invention of claim 6, the extraction of the second band-shaped region is speeded up as compared with the case of using the input image which is not reduced.
According to the invention of claim 7, when the second band-shaped area is not extracted, the first band-shaped area is changed and the second band-shaped area is extracted again without any operation by the user.
According to the invention of claim 8, the user is given a choice of output images.
According to the invention of claim 9, an output image in which the joint extending in the direction intersecting with the first band-shaped region is inconspicuous is generated.

入力画像IMG_INの一例を示す図。The figure which shows an example of the input image IMG_IN. 画像処理装置10の構成を示す図。The figure which shows the structure of the image processing apparatus 10. 制御部11が実行する処理の全体を示す流れ図。The flow chart which shows the whole process executed by the control unit 11. 第1帯状領域B1を示す図。The figure which shows the 1st band-shaped region B1. 第2帯状領域B2を抽出する過程を示す図。The figure which shows the process of extracting the 2nd band-shaped region B2. 抽出された第2帯状領域B2を示す図。The figure which shows the extracted 2nd band-shaped region B2. 第3帯状領域B3を示す図。The figure which shows the 3rd band-shaped region B3. 第4帯状領域B4を抽出する過程を示す図。The figure which shows the process of extracting the 4th band-shaped region B4. 抽出された第4帯状領域B4を示す図。The figure which shows the extracted 4th band-shaped region B4. 出力画像IMG_OUTを含む画面を示す図。The figure which shows the screen which includes the output image IMG_OUT. 複数の出力画像を含む画面の例を示す図。The figure which shows the example of the screen which contains a plurality of output images. 合成処理の概略を示す図。The figure which shows the outline of the synthesis process. 画素を示す図。The figure which shows the pixel. 画素値の伝搬による合成処理を実行した例を示す図。The figure which shows the example which executed the synthesis processing by the propagation of a pixel value.

本発明を実施するための形態の一例について説明する。本実施形態は、定められた条件を満たす領域を入力画像から抽出し、抽出された領域の画像の複製画像を複数生成し、隙間なく配置した出力画像を生成するものである。 An example of a mode for carrying out the present invention will be described. In the present embodiment, a region satisfying a predetermined condition is extracted from an input image, a plurality of duplicate images of the image of the extracted region are generated, and an output image arranged without gaps is generated.

本実施形態における入力画像は、少なくとも色や濃淡の空間的な変化が視認される画像である。入力画像は、具象柄、抽象柄などの画像である。具象柄とは、例えば、人工物や自然物を描写した絵、人工物や自然物を撮影した写真などである。人工物とは、例えば、織物、編み物、網、煉瓦の壁、タイル張りの壁、壁紙、石畳などである。自然物とは、例えば、岩石の切断面、地面、植物の組織、結晶などである。抽象柄とは、例えば、幾何学模様、文字や記号が規則的又は不規則に配置されたものなどである。 The input image in the present embodiment is an image in which at least spatial changes in color and shading are visually recognized. The input image is an image such as a concrete pattern or an abstract pattern. The concrete pattern is, for example, a picture depicting an artificial object or a natural object, a photograph of an artificial object or a natural object, or the like. Artificial objects include, for example, textiles, knitting, nets, brick walls, tiled walls, wallpaper, cobblestones and the like. Natural objects are, for example, cut surfaces of rocks, ground, plant tissues, crystals and the like. An abstract pattern is, for example, a geometric pattern, a character or symbol arranged regularly or irregularly.

図1は、入力画像IMG_INの一例を示す図である。入力画像IMG_INは、矩形の領域に亀甲を模した柄が配置された画像である。六角形の辺の部分では、織物の質感を表す無数の筋が視認される。 FIG. 1 is a diagram showing an example of the input image IMG_IN. The input image IMG_IN is an image in which a pattern imitating a hexagonal shell is arranged in a rectangular area. Innumerable streaks representing the texture of the woven fabric are visible on the sides of the hexagon.

図2は、画像処理装置10の構成を示す図である。画像処理装置10は、制御部11、記憶部12、通信部13、表示部14、受付部15を備える。制御部11は、CPU(Central Processing Unit)などの演算装置と、ROM(Read Only Memory)やRAM(Random Access Memory)などの記憶装置とを備える。ROMは、ハードウェアやOS(Operating System)の起動の手順を記述したファームウェアを記憶する。RAMは、CPUが演算を実行する際のデータの記憶に用いられる。 FIG. 2 is a diagram showing the configuration of the image processing device 10. The image processing device 10 includes a control unit 11, a storage unit 12, a communication unit 13, a display unit 14, and a reception unit 15. The control unit 11 includes an arithmetic unit such as a CPU (Central Processing Unit) and a storage device such as a ROM (Read Only Memory) and a RAM (Random Access Memory). The ROM stores the firmware that describes the procedure for booting the hardware and the OS (Operating System). The RAM is used to store data when the CPU executes an operation.

記憶部12は、例えばメモリやハードディスク記憶装置などを備え、OSやアプリケーションなどのソフトウェアを記憶する。通信部13は、他の電子機器との間で通信を行うためのI/F(Interface)を備え、LAN(Local Area Network)、メモリカードリーダライタなどに接続される。 The storage unit 12 includes, for example, a memory or a hard disk storage device, and stores software such as an OS and an application. The communication unit 13 includes an I / F (Interface) for communicating with other electronic devices, and is connected to a LAN (Local Area Network), a memory card reader / writer, or the like.

表示部14は、例えば、液晶表示パネルなどの表示装置を備える。制御部11は、画像処理装置10を操作するための操作画面を表示部14に表示させる。受付部15は、例えば、キーボード、ポインティングデバイスなどを備え、操作画面に対する操作を受け付ける。ポインティングデバイスは、例えば、表示部14の表示面を覆うタッチパネル、マウス、タッチパッドなどである。なお、表示部14と受付部15が画像処理装置10と分離された装置として構成され、表示部14と受付部15が通信部13に接続されてもよい。 The display unit 14 includes, for example, a display device such as a liquid crystal display panel. The control unit 11 causes the display unit 14 to display an operation screen for operating the image processing device 10. The reception unit 15 includes, for example, a keyboard, a pointing device, and the like, and receives operations on the operation screen. The pointing device is, for example, a touch panel, a mouse, a touch pad, or the like that covers the display surface of the display unit 14. The display unit 14 and the reception unit 15 may be configured as a device separated from the image processing device 10, and the display unit 14 and the reception unit 15 may be connected to the communication unit 13.

図3は、制御部11が実行する処理の全体を示す流れ図である。これらの処理の手順を記述したプログラムが記憶部12に記憶されており、制御部11がこのプログラムに従って処理を実行する。制御部11は、抽出部111、生成部112として機能する(図2参照)。 FIG. 3 is a flow chart showing the entire process executed by the control unit 11. A program describing the procedure of these processes is stored in the storage unit 12, and the control unit 11 executes the process according to this program. The control unit 11 functions as an extraction unit 111 and a generation unit 112 (see FIG. 2).

ステップS01においては、抽出部111が、入力画像IMG_INに含まれる第1帯状領域B1と平行な第2帯状領域B2であって、第1帯状領域B1と画像が類似する第2帯状領域B2を入力画像IMG_INから抽出する(抽出処理)。具体的には、以下のとおりである。 In step S01, the extraction unit 111 inputs a second band-shaped region B2 parallel to the first band-shaped region B1 included in the input image IMG_IN, and the second band-shaped region B2 whose image is similar to that of the first band-shaped region B1. Extract from image IMG_IN (extraction process). Specifically, it is as follows.

図4は、第1帯状領域B1を示す図である。入力画像IMG_INを表す入力画像データは、他の電子機器からLAN経由で画像処理装置10に入力されてもよく、メモリカードを介して画像処理装置10に入力されてもよい。入力画像IMG_INは、規則的に配置された画素の集合で表される。入力画像データは、画素の各々に与えられた画素値を含む。画素値は、RGB、CMYK、CIELABなどの色空間における成分毎の値で表される。入力画像IMG_INにおける画素の位置は、入力画像IMG_INの左上を原点とする直交座標系における座標(i,j)で表される(i=0,1,2,・・・ ,j=0,1,2,・・・)。x軸において左から右に向かう方向を正方向とし、y軸において上から下に向かう方向を正方向とする。本実施形態では、互いに直交するx軸方向とy軸方向に等間隔で画素が配置された正方格子の配置を想定する。 FIG. 4 is a diagram showing a first band-shaped region B1. The input image data representing the input image IMG_IN may be input to the image processing device 10 from another electronic device via a LAN, or may be input to the image processing device 10 via a memory card. The input image IMG_IN is represented by a set of regularly arranged pixels. The input image data includes a pixel value given to each of the pixels. The pixel value is represented by a value for each component in a color space such as RGB, CMYK, and CIELAB. The position of the pixel in the input image IMG_IN is represented by the coordinates (i, j) in the Cartesian coordinate system with the upper left of the input image IMG_IN as the origin (i = 0,1,2, ···, j = 0,1). , 2, ...). The direction from left to right on the x-axis is the positive direction, and the direction from top to bottom on the y-axis is the positive direction. In the present embodiment, it is assumed that pixels are arranged at equal intervals in the x-axis direction and the y-axis direction that are orthogonal to each other.

第1帯状領域B1は、1列又は複数列の画素を含む、全体として帯状をなす領域である。第1帯状領域B1の延長方向、第1帯状領域B1の延長方向における第1帯状領域B1の両端の位置、第1帯状領域B1の延長方向と交差する方向における第1帯状領域B1の幅、の各々について、初期値が予め設定されている。第1帯状領域B1の延長方向は、例えば、x軸を基準として反時計回りの方向を正とする角度で表される。第1帯状領域B1の両端の位置は、例えば、第1帯状領域B1の両端に位置する画素の座標で表される。第1帯状領域B1の幅は、例えば、第1帯状領域B1の延長方向と交差する方向における画素の数で表される。図4の例は、第1帯状領域B1の延長方向がx軸方向に設定され、第1帯状領域B1の左端が入力画像IMG_INの左端よりも内側の位置に設定され、第1帯状領域B1の右端が入力画像IMG_INの右端と同じ位置に設定された例である。 The first band-shaped region B1 is a band-shaped region as a whole including one row or a plurality of rows of pixels. The extension direction of the first band-shaped area B1, the positions of both ends of the first band-shaped area B1 in the extension direction of the first band-shaped area B1, and the width of the first band-shaped area B1 in the direction intersecting the extension direction of the first band-shaped area B1. Initial values are preset for each. The extension direction of the first band-shaped region B1 is represented by, for example, an angle with the counterclockwise direction as a positive with respect to the x-axis. The positions of both ends of the first band-shaped region B1 are represented by, for example, the coordinates of the pixels located at both ends of the first band-shaped region B1. The width of the first band-shaped region B1 is represented by, for example, the number of pixels in a direction intersecting the extension direction of the first band-shaped region B1. In the example of FIG. 4, the extension direction of the first band-shaped area B1 is set to the x-axis direction, the left end of the first band-shaped area B1 is set to a position inside the left end of the input image IMG_IN, and the first band-shaped area B1 is set. This is an example in which the right end is set at the same position as the right end of the input image IMG_IN.

図5は、第2帯状領域B2を抽出する過程を示す図である。抽出部111は、第1帯状領域B1を第1方向にY画素分だけ平行移動させた帯状領域BYの画像と、第1帯状領域B1の画像との類似度を計算する処理を、Yを1、2、3、・・・と1ずつ増加させながら繰り返し、類似度が予め定められた条件を満たすY(以下、Ypとする)を特定する。第1方向は、第1帯状領域B1の延長方向に対して垂直な方向(この例では、y軸の正方向)である。抽出部111は、第1帯状領域B1を第1方向にYp画素分だけ平行移動させた帯状領域BYpを、第2帯状領域B2として抽出する。 FIG. 5 is a diagram showing a process of extracting the second band-shaped region B2. The extraction unit 111 performs a process of calculating the similarity between the image of the band-shaped region BY in which the first band-shaped region B1 is translated by Y pixels in the first direction and the image of the first band-shaped region B1 by setting Y to 1. It is repeated while increasing by 1, 2, 3, ..., And Y (hereinafter referred to as Yp) whose similarity satisfies a predetermined condition is specified. The first direction is a direction perpendicular to the extension direction of the first band-shaped region B1 (in this example, the positive direction of the y-axis). The extraction unit 111 extracts the band-shaped region BYp in which the first band-shaped region B1 is translated in the first direction by Yp pixels as the second band-shaped region B2.

本発明に係る類似度の計算方法は特定の方法に限定されないが、本実施形態では、一例として、コスト関数(目的関数)を用いる。コスト関数は、例えば式(1)で表される。この例でコスト関数は、第1帯状領域B1と、第2帯状領域B2の候補である帯状領域BYとのy軸方向における距離(画素数)Yを独立変数とする関数である。このコスト関数が小さいほど、類似度が高くなる。例えば、コスト関数が最小となるYをYpとした場合の帯状領域BYpが第2帯状領域B2として抽出されてもよく、コスト関数が閾値以下となる最小のYをYpとした場合の帯状領域BYpが第2帯状領域B2として抽出されてもよい。

Figure 0007102772000001
The method for calculating the similarity according to the present invention is not limited to a specific method, but in the present embodiment, a cost function (objective function) is used as an example. The cost function is expressed by, for example, the equation (1). In this example, the cost function is a function in which the distance (number of pixels) Y in the y-axis direction between the first band-shaped area B1 and the band-shaped area BY, which is a candidate for the second band-shaped area B2, is set as an independent variable. The smaller this cost function, the higher the similarity. For example, the band-shaped region BYp when Y with the minimum cost function is Yp may be extracted as the second band-shaped region B2, and the band-shaped region BYp when the minimum Y with the cost function equal to or less than the threshold value is Yp. May be extracted as the second band-shaped region B2.
Figure 0007102772000001

上述した式(1)に示すコスト関数f(Y)は、第1帯状領域B1と、第1帯状領域B1をy軸方向にYだけ移動させた帯状領域BYの、互いに対応する1対の画素の画素値の差の絶対値の総和である。したがって、コスト関数が最小となるYをYpとした場合の帯状領域BYpを第2帯状領域B2として抽出する場合、Ypは以下の式(2)で表される。

Figure 0007102772000002
The cost function f (Y) shown in the above equation (1) is a pair of pixels corresponding to each other in the first band-shaped area B1 and the band-shaped area BY in which the first band-shaped area B1 is moved by Y in the y-axis direction. It is the sum of the absolute values of the differences between the pixel values of. Therefore, when the band-shaped region BYp when Y that minimizes the cost function is Yp is extracted as the second band-shaped region B2, Yp is expressed by the following equation (2).
Figure 0007102772000002

図6は、第1帯状領域B1と、抽出された第2帯状領域B2の位置関係を示す図である。図6において、第1帯状領域B1と第2帯状領域B2のy方向における距離が上述したYpとなる。第2帯状領域B2が抽出されたならば、抽出部111は、入力画像IMG_INにおいて第1帯状領域B1と第2帯状領域B2とに挟まれた領域B12と、第1帯状領域B1又は第2帯状領域B2と、を含む第1領域A1を特定する。第1領域A1が領域B12と第1帯状領域B1とを含む場合と、第1領域A1が領域B12と第2帯状領域B2とを含む場合とで、ステップS02以降の処理の内容に違いは生じないが、以下では、第1領域A1が領域B12と第2帯状領域B2とを含む場合の例を図示する。 FIG. 6 is a diagram showing the positional relationship between the first band-shaped region B1 and the extracted second band-shaped region B2. In FIG. 6, the distance between the first band-shaped region B1 and the second band-shaped region B2 in the y direction is the above-mentioned Yp. When the second band-shaped region B2 is extracted, the extraction unit 111 determines the region B12 sandwiched between the first band-shaped region B1 and the second band-shaped region B2 in the input image IMG_IN, and the first band-shaped region B1 or the second band-shaped region B1 or the second band-shaped region B2. The region B2 and the first region A1 including the region B2 are specified. There is a difference in the contents of the processing after step S02 depending on whether the first region A1 includes the region B12 and the first band-shaped region B1 or the first region A1 includes the region B12 and the second strip-shaped region B2. However, in the following, an example in which the first region A1 includes the region B12 and the second band-shaped region B2 will be illustrated.

次に、ステップS02(図3参照)においては、抽出部111が、第1帯状領域B1と交差する第3帯状領域B3と平行な第4帯状領域B4であって、第3帯状領域B3と画像が類似する第4帯状領域B4を入力画像IMG_INから抽出する(抽出処理)。 Next, in step S02 (see FIG. 3), the extraction unit 111 is a fourth band-shaped region B4 parallel to the third band-shaped region B3 that intersects the first band-shaped region B1, and is an image with the third band-shaped region B3. Extracts a fourth band-shaped region B4 similar to the input image IMG_IN (extraction process).

図7は、第3帯状領域B3を示す図である。本実施形態では、第1帯状領域B1の延長方向と第3帯状領域B3の延長方向とが直交するように第3帯状領域B3が設定された例を示す。この例は、第3帯状領域B3の上端が第1領域A1の上端と同じ位置に設定され、第3帯状領域B3の下端が第1領域A1の下端と同じ位置に設定された例である。 FIG. 7 is a diagram showing a third band-shaped region B3. In the present embodiment, an example in which the third band-shaped region B3 is set so that the extension direction of the first band-shaped region B1 and the extension direction of the third band-shaped region B3 are orthogonal to each other is shown. In this example, the upper end of the third strip-shaped region B3 is set at the same position as the upper end of the first region A1, and the lower end of the third strip-shaped region B3 is set at the same position as the lower end of the first region A1.

図8は、第4帯状領域B4を抽出する過程を示す図である。抽出部111は、第3帯状領域B3を第2方向に1画素分だけ平行移動させたのと等しい帯状領域B3pの画像と、第3帯状領域B3の画像との類似度を計算し、類似度が予め定められた条件を満たすか否かを判定する。第2方向は、第3帯状領域B3の延長方向に対して垂直な方向(この例では、x軸の正方向)である。第3帯状領域B3との類似度が予め定められた条件を満たす帯状領域B3pが発見されるまで、抽出部111は、帯状領域B3pを第2方向に1画素分ずつ平行移動させて、第3帯状領域B3と帯状領域B3pとの類似度が予め定められた条件を満たすか否かを判定する。抽出部111は、類似度が予め定められた条件を満たす帯状領域B3pを、第4帯状領域B4として抽出する。 FIG. 8 is a diagram showing a process of extracting the fourth band-shaped region B4. The extraction unit 111 calculates the similarity between the image of the band-shaped region B3p, which is equivalent to translating the third band-shaped region B3 in the second direction by one pixel, and the image of the third band-shaped region B3, and determines the similarity. Determines whether or not satisfies a predetermined condition. The second direction is a direction perpendicular to the extension direction of the third band-shaped region B3 (in this example, the positive direction of the x-axis). The extraction unit 111 translates the band-shaped region B3p in the second direction by one pixel until a band-shaped region B3p whose similarity with the third band-shaped region B3 satisfies a predetermined condition is found, and the third band-shaped region B3p is translated. It is determined whether or not the degree of similarity between the band-shaped region B3 and the band-shaped region B3p satisfies a predetermined condition. The extraction unit 111 extracts the band-shaped region B3p whose similarity satisfies a predetermined condition as the fourth band-shaped region B4.

図9は、抽出された第4帯状領域B4を示す図である。第4帯状領域B4が抽出されたならば、抽出部111は、第1領域A1のうち、第3帯状領域B3と第4帯状領域B4とに挟まれた領域B34と、第3帯状領域B3又は第4帯状領域B4と、を含む第2領域A2を特定する。 FIG. 9 is a diagram showing the extracted fourth band-shaped region B4. When the fourth band-shaped region B4 is extracted, the extraction unit 111 uses the first region A1 to have a region B34 sandwiched between the third band-shaped region B3 and the fourth band-shaped region B4 and the third band-shaped region B3 or the third band-shaped region B4. The fourth band-shaped region B4 and the second region A2 including the fourth band-shaped region B4 are specified.

次に、ステップS03(図3参照)においては、生成部112が、第2領域A2の画像の複数の複製画像A2rを隙間なく配置した出力画像IMG_OUTを生成する(生成処理)。次に、ステップS04においては、表示部14が、出力画像IMG_OUTを表示する(表示処理)。 Next, in step S03 (see FIG. 3), the generation unit 112 generates an output image IMG_OUT in which a plurality of duplicate images A2r of the images in the second region A2 are arranged without gaps (generation processing). Next, in step S04, the display unit 14 displays the output image IMG_OUT (display processing).

図10は、出力画像IMG_OUTを含む画面を示す図である。この例では、出力画像IMG_OUTとの比較のために、入力画像IMG_INが出力画像IMG_OUTと並べて表示されている。入力画像IMG_INには、第2領域A2を示す枠が表示されている。図示した例は、第2領域A2が領域B34と第3帯状領域B3とを含む例である(図9参照)。出力画像IMG_OUTは、第2領域A2の複数の複製画像A2rが隙間なく配置された画像である。この例では、複数の複製画像A2rの境界線が表示されているが、境界線は表示されなくてもよい。境界線の表示の有無をユーザに選択させるための画面が表示されてもよい。 FIG. 10 is a diagram showing a screen including the output image IMG_OUT. In this example, the input image IMG_IN is displayed side by side with the output image IMG_OUT for comparison with the output image IMG_OUT. In the input image IMG_IN, a frame indicating the second region A2 is displayed. The illustrated example is an example in which the second region A2 includes the region B34 and the third band-shaped region B3 (see FIG. 9). The output image IMG_OUT is an image in which a plurality of duplicate images A2r of the second region A2 are arranged without gaps. In this example, the boundaries of the plurality of duplicate images A2r are displayed, but the boundaries may not be displayed. A screen may be displayed for the user to select whether or not to display the boundary line.

次に、ステップS05(図3参照)においては、受付部15が操作を受け付け、制御部11が操作の内容を判定する(受付処理)。図10に示される「決定」ボタン151が操作されたならば、制御部11は、出力画像IMG_OUTを決定する操作が受け付けられたと判定し(ステップS05:出力画像決定)、ステップS06へ進む。「変更」ボタン152が操作された場合には、制御部11は、第1帯状領域B1の変更が指示されたと判定し(ステップS05:第1帯状領域変更)、ステップS07へ進む。 Next, in step S05 (see FIG. 3), the reception unit 15 accepts the operation, and the control unit 11 determines the content of the operation (acceptance processing). If the "decision" button 151 shown in FIG. 10 is operated, the control unit 11 determines that the operation for determining the output image IMG_OUT has been accepted (step S05: determination of the output image), and proceeds to step S06. When the "change" button 152 is operated, the control unit 11 determines that the change of the first band-shaped area B1 has been instructed (step S05: change of the first band-shaped area), and proceeds to step S07.

次に、ステップS06(図3参照)においては、生成部112が、出力画像IMG_OUTを表す出力画像データをファイルへ出力する(出力処理)。具体的には、表示部14が、図10に示す通り、x軸方向とy軸方向(縦と横)の複製画像A2rの数を指定する操作を受け付ける入力欄153を表示し、受付部15が、x軸方向とy軸方向の複製画像A2rの数を指定する入力操作を受け付け、生成部112が、指定された数の複製画像A2rをx軸方向とy軸方向に隙間なく配置した出力画像IMG_OUTを生成し、出力画像IMG_OUTを表す出力画像データをファイルへ出力する。出力画像データのファイルは、予め定められたフォルダ又はユーザが指定したフォルダに関連付けられて記憶部12に記憶される。 Next, in step S06 (see FIG. 3), the generation unit 112 outputs the output image data representing the output image IMG_OUT to a file (output processing). Specifically, as shown in FIG. 10, the display unit 14 displays an input field 153 that accepts an operation for designating the number of duplicate images A2r in the x-axis direction and the y-axis direction (vertical and horizontal), and the reception unit 15 displays the input field 153. Accepts an input operation for specifying the number of duplicate images A2r in the x-axis direction and the y-axis direction, and the generation unit 112 arranges the specified number of duplicate images A2r in the x-axis direction and the y-axis direction without gaps. The image IMG_OUT is generated, and the output image data representing the output image IMG_OUT is output to a file. The output image data file is stored in the storage unit 12 in association with a predetermined folder or a folder designated by the user.

一方、ステップS07(図3参照)においては、制御部11が、第1帯状領域B1を変更する。具体的には、制御部11が、現状の第1帯状領域B1を示す画面(図4参照)を表示部14に表示させ、受付部15が、第1帯状領域B1を変更する操作を受け付ける。第1帯状領域B1を変更する操作は、例えば、ポインティングデバイスを用いたドラッグアンドドロップにより行われる。例えば、第1帯状領域B1の延長方向における第1帯状領域B1の端部を移動させる操作により、端部の位置と延長方向が変更される。例えば、第1帯状領域B1の長辺を第1帯状領域B1の延長方向と交差する方向に平行移動させる操作により、第1帯状領域B1の延長方向と交差する方向における第1帯状領域B1の幅が変更される。ステップS07の処理が完了すると、制御部11は、ステップS01以降の処理を再度実行する。すると、変更後の第1帯状領域B1を用いて新たに出力画像IMG_OUTが生成される。以上が、制御部11が実行する処理の内容である。 On the other hand, in step S07 (see FIG. 3), the control unit 11 changes the first band-shaped region B1. Specifically, the control unit 11 displays a screen (see FIG. 4) showing the current first band-shaped area B1 on the display unit 14, and the reception unit 15 accepts an operation of changing the first band-shaped area B1. The operation of changing the first band-shaped region B1 is performed, for example, by dragging and dropping using a pointing device. For example, the position and extension direction of the end portion are changed by the operation of moving the end portion of the first strip-shaped region B1 in the extension direction of the first belt-shaped region B1. For example, by translating the long side of the first band-shaped region B1 in the direction intersecting the extension direction of the first band-shaped region B1, the width of the first band-shaped region B1 in the direction intersecting the extension direction of the first band-shaped region B1. Is changed. When the process of step S07 is completed, the control unit 11 re-executes the processes after step S01. Then, a new output image IMG_OUT is generated using the changed first band-shaped region B1. The above is the content of the process executed by the control unit 11.

物の表面への出力画像IMG_OUTの印刷、出力画像IMG_OUTが印刷されたフィルムによる物の被覆などにより、物の加飾が行われる。加飾の対象は、器物の表面、建築物や乗り物の内外装、包装紙、梱包材などである。また、出力画像IMG_OUTがプロジェクションマッピングに用いられてもよい。 The object is decorated by printing the output image IMG_OUT on the surface of the object, covering the object with a film on which the output image IMG_OUT is printed, and the like. The objects to be decorated are the surface of objects, the interior and exterior of buildings and vehicles, wrapping paper, packing materials, and the like. Further, the output image IMG_OUT may be used for projection mapping.

本実施形態によれば、複数の同一の複製画像A2rを隙間なく配置して出力画像IMG_OUTを生成する場合に、複数の複製画像A2rの繋ぎ目の合成処理を行わなくても繋ぎ目が目立ちにくい出力画像IMG_OUTが生成される。また、本実施形態によれば、ユーザが出力画像IMG_OUTを確認した後、ユーザが変更した第1帯状領域B1を用いて出力画像IMG_OUTが生成し直される。また、本実施形態によれば、ユーザが端部の位置を変更した第1帯状領域B1を用いて出力画像IMG_OUTが生成し直される。また、本実施形態によれば、ユーザが延長方向を変更した第1帯状領域B1を用いて出力画像IMG_OUTが生成し直される。また、本実施形態によれば、ユーザが幅を変更した第1帯状領域B1を用いて出力画像IMG_OUTが生成し直される。また、本実施形態によれば、第1帯状領域B1と交差する方向に延びる繋ぎ目が目立ちにくい出力画像IMG_OUTが生成される。 According to the present embodiment, when a plurality of the same duplicate images A2r are arranged without gaps to generate the output image IMG_OUT, the joints are inconspicuous even if the joints of the plurality of duplicate images A2r are not combined. The output image IMG_OUT is generated. Further, according to the present embodiment, after the user confirms the output image IMG_OUT, the output image IMG_OUT is regenerated using the first band-shaped region B1 modified by the user. Further, according to the present embodiment, the output image IMG_OUT is regenerated using the first band-shaped region B1 in which the user has changed the position of the end portion. Further, according to the present embodiment, the output image IMG_OUT is regenerated using the first band-shaped region B1 in which the user has changed the extension direction. Further, according to the present embodiment, the output image IMG_OUT is regenerated using the first band-shaped region B1 whose width has been changed by the user. Further, according to the present embodiment, the output image IMG_OUT in which the joint extending in the direction intersecting with the first band-shaped region B1 is inconspicuous is generated.

上記の実施形態が以下のように変形されてもよい。 The above embodiment may be modified as follows.

(1)抽出部111が、縮小された入力画像IMG_INから第2帯状領域B2を抽出するように、画像処理装置10が構成されてもよい。具体的には、入力画像IMG_INのサイズを縮小することにより画素数を減らした画像に対して抽出部111が第2帯状領域B2の抽出処理を行い、抽出された第2帯状領域B2を座標変換することにより、縮小前の入力画像IMG_INにおける第2帯状領域B2を特定してもよい。本変形例によれば、縮小されない入力画像IMG_INを用いる場合と比べて第2帯状領域B2の抽出が高速化される。 (1) The image processing device 10 may be configured so that the extraction unit 111 extracts the second band-shaped region B2 from the reduced input image IMG_IN. Specifically, the extraction unit 111 extracts the second band-shaped area B2 from the image in which the number of pixels is reduced by reducing the size of the input image IMG_IN, and the extracted second band-shaped area B2 is coordinate-converted. By doing so, the second band-shaped region B2 in the input image IMG_IN before reduction may be specified. According to this modification, the extraction of the second band-shaped region B2 is speeded up as compared with the case where the input image IMG_IN that is not reduced is used.

(2)抽出部111が、第2帯状領域B2が入力画像IMG_INから抽出されなかった場合に、第1帯状領域B1を変更して第2帯状領域B2を抽出するように、画像処理装置10が構成されてもよい。第1帯状領域B1の変更は、例えば、抽出部111が第1帯状領域B1の端部の位置、幅、延長方向などを予め定められた量だけ変更することで行われてもよく、抽出部111が第1帯状領域B1の端部の位置、幅、延長方向などを無作為に変更することで行われてもよい。本変形例によれば、第2帯状領域B2が抽出されなかった場合に、ユーザが操作を行わなくても、第1帯状領域B1を変更して第2帯状領域B2が抽出し直される。 (2) The image processing device 10 causes the extraction unit 111 to change the first band-shaped area B1 and extract the second band-shaped area B2 when the second band-shaped area B2 is not extracted from the input image IMG_IN. It may be configured. The first band-shaped region B1 may be changed by, for example, the extraction unit 111 changing the position, width, extension direction, etc. of the end portion of the first band-shaped region B1 by a predetermined amount. 111 may be performed by randomly changing the position, width, extension direction, etc. of the end portion of the first band-shaped region B1. According to this modification, when the second band-shaped area B2 is not extracted, the first band-shaped area B1 is changed and the second band-shaped area B2 is extracted again without any operation by the user.

(3)第1帯状領域B1を変更して複数の出力画像IMG_OUTを生成するように抽出部111と生成部112を制御する制御部11を備え、表示部14が、複数の出力画像IMG_OUTを表示し、受付部15が、複数の出力画像IMG_OUTのいずれかを選択する操作を受け付けるように、画像処理装置10が構成されてもよい。第1帯状領域B1の変更は、例えば、抽出部111が第1帯状領域B1の端部の位置、幅、延長方向などを予め定められた量だけ変更することで行われてもよく、抽出部111が第1帯状領域B1の端部の位置、幅、延長方向などを無作為に変更することで行われてもよい。 (3) A control unit 11 for controlling the extraction unit 111 and the generation unit 112 is provided so as to change the first band-shaped region B1 to generate a plurality of output images IMG_OUT, and the display unit 14 displays the plurality of output images IMG_OUT. Then, the image processing device 10 may be configured so that the reception unit 15 accepts an operation of selecting one of the plurality of output images IMG_OUT. The first band-shaped region B1 may be changed by, for example, the extraction unit 111 changing the position, width, extension direction, etc. of the end portion of the first band-shaped region B1 by a predetermined amount. 111 may be performed by randomly changing the position, width, extension direction, etc. of the end portion of the first band-shaped region B1.

図11は、複数の出力画像IMG_OUTを含む画面の例を示す図である。図中の「パターン1」、「パターン2」、「パターン3」は、第1帯状領域B1を変更して生成された出力画像IMG_OUTである。「見本」は、互いに異なる複数の入力画像IMG_INのいずれかをユーザに選択させるための表示である。「選択画像」は、「見本」からユーザが選択した入力画像IMG_INである。「パターン生成」のボタンが操作されると、第1帯状領域B1を変更して複数の出力画像IMG_OUTが生成され、図11に示す配置で複数の出力画像IMG_OUTが表示される。「別パターン」のボタンが操作されると、さらに第1帯状領域B1を変更して複数の出力画像IMG_OUTが生成され、表示される。本変形例によれば、出力画像IMG_OUTの選択肢がユーザに与えられる。 FIG. 11 is a diagram showing an example of a screen including a plurality of output images IMG_OUT. “Pattern 1”, “Pattern 2”, and “Pattern 3” in the figure are output images IMG_OUT generated by changing the first band-shaped region B1. The "sample" is a display for allowing the user to select one of a plurality of input images IMG_IN different from each other. The "selected image" is an input image IMG_IN selected by the user from the "sample". When the "pattern generation" button is operated, the first band-shaped region B1 is changed to generate a plurality of output images IMG_OUT, and the plurality of output images IMG_OUT are displayed in the arrangement shown in FIG. When the "different pattern" button is operated, the first band-shaped region B1 is further changed to generate and display a plurality of output images IMG_OUT. According to this modification, the user is given the option of the output image IMG_OUT.

(4)上記実施形態では、第1帯状領域B1の延長方向、第1帯状領域B1の延長方向における第1帯状領域B1の両端の位置、第1帯状領域B1の延長方向と交差する方向における第1帯状領域B1の幅、の各々について、初期値が予め設定されている例を示したが、これらの初期値がユーザによって設定されてもよい。 (4) In the above embodiment, the position of both ends of the first band-shaped region B1 in the extension direction of the first band-shaped region B1, the extension direction of the first band-shaped region B1, and the direction intersecting the extension direction of the first band-shaped region B1. An example in which initial values are preset for each of the widths of the band-shaped region B1 is shown, but these initial values may be set by the user.

(5)上記実施形態では、互いに直交するx軸方向とy軸方向に等間隔で画素が配置された正方格子の配置に本発明を適用した例であるが、x軸方向の画素の間隔とy軸方向の画素の間隔が異なる矩形格子の配置に本発明が適用されてもよい。また、互いに直交しないx軸方向とy軸方向に画素が配置された斜方格子、六角格子などの配置に本発明が適用されてもよい。 (5) In the above embodiment, the present invention is applied to the arrangement of rectangular grids in which pixels are arranged at equal intervals in the x-axis direction and the y-axis direction orthogonal to each other. The present invention may be applied to the arrangement of rectangular grids in which the pixel spacing in the y-axis direction is different. Further, the present invention may be applied to an arrangement of an orthorhombic lattice, a hexagonal lattice, or the like in which pixels are arranged in the x-axis direction and the y-axis direction that are not orthogonal to each other.

(6)上記実施形態では、第2帯状領域B2を抽出する過程において帯状領域B1pを平行移動させる第1方向は、第1帯状領域B1の延長方向に対して垂直な方向であったが、第1方向は、第1帯状領域B1の延長方向に対して垂直な方向でなくてもよい。 (6) In the above embodiment, the first direction for translating the band-shaped region B1p in the process of extracting the second band-shaped region B2 is the direction perpendicular to the extension direction of the first band-shaped region B1. One direction does not have to be a direction perpendicular to the extension direction of the first band-shaped region B1.

(7)図3のステップS02の処理が省略されてもよい。本変形例は、例えば、加飾対象の幅が入力画像IMG_INのx軸方向又はy軸方向の幅よりも狭い場合や、入力画像IMG_INがy軸方向にのみ色が変化するグラデーションやストライプである場合などに適用され得る。すなわち、本発明は、入力画像IMG_INに含まれる第1帯状領域B1と平行な第2帯状領域B2であって、第1帯状領域B1と画像が類似する第2帯状領域B2を入力画像IMG_INから抽出する抽出部111と、入力画像IMG_INにおいて第1帯状領域B1と第2帯状領域B2とに挟まれた領域と、第1帯状領域B1又は第2帯状領域B2と、を含む第1領域A1の複数の複製画像A1rを隙間なく配置した出力画像IMG_OUTを生成する生成部112とを備える画像処理装置10としても特定され得る。 (7) The process of step S02 in FIG. 3 may be omitted. This modification is, for example, a case where the width of the object to be decorated is narrower than the width of the input image IMG_IN in the x-axis direction or the y-axis direction, or a gradation or stripe in which the color of the input image IMG_IN changes only in the y-axis direction. It can be applied in some cases. That is, the present invention extracts a second band-shaped region B2 parallel to the first band-shaped region B1 included in the input image IMG_IN and a second band-shaped region B2 whose image is similar to that of the first band-shaped region B1 from the input image IMG_IN. A plurality of first regions A1 including an extraction unit 111, a region sandwiched between a first band-shaped region B1 and a second band-shaped region B2 in the input image IMG_IN, and a first band-shaped region B1 or a second band-shaped region B2. It can also be specified as an image processing device 10 including a generation unit 112 that generates an output image IMG_OUT in which the duplicate image A1r of the above is arranged without gaps.

(8)上記した実施の形態においては、抽出された領域の複数の複製画像の繋ぎ目の合成処理を行うことなく繋ぎ目が目立ちにくい出力画像を生成したが、更に繋ぎ目を目立ちにくい画像を生成するために、出力画像を生成した後に、以下の合成処理を行っても良い。図12は、合成処理の概略を示す図である。ここでは図示の都合上、2つの複製画像A2rを示すが、実際には、複数の複製画像A2rの全ての繋ぎ目に対して以下の合成処理が施される。図12(a)は、2つの複製画像A2rが隙間なく配置された様子を示す図である。合成処理においては、図12(b)に示すように、2つの複製画像A2rの繋ぎ目を含む矩形の未知領域Auが設定される。 (8) In the above-described embodiment, the output image in which the joints are inconspicuous is generated without performing the composite processing of the joints of the plurality of duplicated images in the extracted region, but the image in which the joints are inconspicuous is further produced. In order to generate the output image, the following compositing process may be performed after the output image is generated. FIG. 12 is a diagram showing an outline of the synthesis process. Here, for convenience of illustration, two duplicate images A2r are shown, but in reality, the following composition processing is performed on all the joints of the plurality of duplicate images A2r. FIG. 12A is a diagram showing how the two duplicate images A2r are arranged without a gap. In the compositing process, as shown in FIG. 12B, a rectangular unknown region Au including a joint between the two duplicate images A2r is set.

図13は、画素を示す図である。図13(a)に示す格子状に配置された複数の矩形が画素を表している。このうち、対象画素Tは、未知領域Auに含まれる画素である。隣接画素Rは、対象画素Tの8近傍の画素である。なお、隣接画素Rは、対象画素Tの4近傍、16近傍などの画素でもよい。対象画素Tと隣接画素Rとの結合係数が算出される。結合係数は、例えば、対象画素Tの画素値と隣接画素Rの画素値のユークリッド距離を用いて表される。ユークリッド距離が短いほど、結合係数が大きくなる。 FIG. 13 is a diagram showing pixels. A plurality of rectangles arranged in a grid pattern shown in FIG. 13A represent pixels. Of these, the target pixel T is a pixel included in the unknown region Au. The adjacent pixel R is a pixel in the vicinity of 8 of the target pixel T. The adjacent pixel R may be a pixel in the vicinity of 4 or 16 of the target pixel T. The coupling coefficient between the target pixel T and the adjacent pixel R is calculated. The coupling coefficient is expressed using, for example, the Euclidean distance between the pixel value of the target pixel T and the pixel value of the adjacent pixel R. The shorter the Euclidean distance, the larger the coupling coefficient.

図13(b)においては、対象画素Tと隣接画素Rとを結ぶ線の太さで結合係数の大きさが表されている。未知領域Auに含まれる全ての対象画素Tについて隣接画素Rとの結合係数が算出されたならば、対象画素Tの画素値が初期化される(例えば、RGBの全てが0に設定される)。未知領域Auの境界側から未知領域Auの中央へ向かって、順次、画素値が伝搬される。画素値の伝搬は、対象画素Tに対して、隣接画素Rの画素値に結合係数を乗じた値を上書きすることにより行われる。この処理により、複数の複製画像の繋ぎ目の不連続性が緩和され、繋ぎ目が目立ちにくくなる(図12(c))。 In FIG. 13B, the magnitude of the coupling coefficient is represented by the thickness of the line connecting the target pixel T and the adjacent pixel R. If the coupling coefficient with the adjacent pixel R is calculated for all the target pixels T included in the unknown region Au, the pixel values of the target pixels T are initialized (for example, all of RGB are set to 0). .. Pixel values are sequentially propagated from the boundary side of the unknown region Au toward the center of the unknown region Au. Propagation of the pixel value is performed by overwriting the target pixel T with a value obtained by multiplying the pixel value of the adjacent pixel R by the coupling coefficient. By this processing, the discontinuity of the joints of the plurality of duplicated images is alleviated, and the joints become less noticeable (FIG. 12 (c)).

図14は、画素値の伝搬による合成処理を実行した例を示す図である。図14(a)に示す黒い画素は、未知領域Auを示し、図14(b)は、画素値を伝搬させた結果を示す。未知領域Auに隣接する画素から、未知領域Auの内部へ違和感なく画素値が伝搬されていることがわかる。 FIG. 14 is a diagram showing an example in which a synthesis process is executed by propagating pixel values. The black pixel shown in FIG. 14A shows the unknown region Au, and FIG. 14B shows the result of propagating the pixel value. It can be seen that the pixel values are propagated from the pixels adjacent to the unknown region Au to the inside of the unknown region Au without any discomfort.

(9)コンピュータに上記の処理を実行させるためのプログラムは、例えば、光記録媒体、半導体メモリなどのコンピュータに読取り可能な記録媒体に持続的に記憶された状態で提供されてもよいし、インターネット等の通信ネットワークを介して提供されてもよい。本発明に係るプログラムが記録媒体に持続的に記憶された状態で提供される場合、コンピュータが当該プログラムを記録媒体から読み取り用いる。また、本発明に係るプログラムが通信ネットワークを介して提供される場合、コンピュータが当該プログラムを配信元の装置から受信して用いる。 (9) The program for causing the computer to execute the above processing may be provided in a state of being continuously stored in a computer-readable recording medium such as an optical recording medium or a semiconductor memory, or may be provided on the Internet. It may be provided via a communication network such as. When the program according to the present invention is provided in a state of being continuously stored in a recording medium, a computer reads the program from the recording medium and uses it. When the program according to the present invention is provided via a communication network, the computer receives the program from the distribution source device and uses it.

10…画像処理装置、11…制御部、111…抽出部、112…生成部、12…記憶部、13…通信部、14…表示部、15…受付部
10 ... Image processing device, 11 ... Control unit, 111 ... Extraction unit, 112 ... Generation unit, 12 ... Storage unit, 13 ... Communication unit, 14 ... Display unit, 15 ... Reception unit

Claims (10)

入力画像に含まれる第1帯状領域平行移動させた帯状領域のうち、前記第1帯状領域と画像が類似する第2帯状領域を前記入力画像から抽出する抽出部と、
前記入力画像において前記第1帯状領域と前記第2帯状領域とに挟まれた領域と、前記第1帯状領域又は前記第2帯状領域と、を含む第1領域の画像を複数、隙間なく配置した出力画像を生成する生成部と、
を備える画像処理装置。
Among the band-shaped regions in which the first band-shaped region included in the input image is translated, a second band-shaped region whose image is similar to that of the first band-shaped region is extracted from the input image, and an extraction unit.
In the input image, a plurality of images of the first region including the region sandwiched between the first band-shaped region and the second band-shaped region and the first band-shaped region or the second band-shaped region are arranged without gaps. A generator that generates an output image and
An image processing device comprising.
前記出力画像を表示する表示部と、
操作を受け付ける受付部と
を備え、
前記抽出部は、前記第1帯状領域を変更する操作が前記受付部により受け付けられた場合に、変更された前記第1帯状領域を用いて、前記第2帯状領域を抽出する
請求項1に記載の画像処理装置。
A display unit that displays the output image and
Equipped with a reception section that accepts operations
The first aspect of claim 1, wherein the extraction unit extracts the second band-shaped area by using the changed first band-shaped area when the operation of changing the first band-shaped area is accepted by the receiving unit. Image processing equipment.
前記受付部は、前記第1帯状領域の延長方向における前記第1帯状領域の端部の位置を設定する操作を受け付ける
請求項2に記載の画像処理装置。
The image processing apparatus according to claim 2, wherein the reception unit receives an operation of setting the position of an end portion of the first band-shaped region in an extension direction of the first band-shaped region.
前記受付部は、前記第1帯状領域の延長方向を設定する操作を受け付ける
請求項2に記載の画像処理装置。
The image processing device according to claim 2, wherein the reception unit receives an operation of setting an extension direction of the first band-shaped region.
前記受付部は、前記第1帯状領域の延長方向と交差する方向における前記第1帯状領域の幅を設定する操作を受け付ける
請求項2に記載の画像処理装置。
The image processing apparatus according to claim 2, wherein the receiving unit receives an operation of setting the width of the first band-shaped area in a direction intersecting the extension direction of the first band-shaped area.
前記抽出部は、縮小された前記入力画像から前記第2帯状領域を抽出する
請求項1に記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the extraction unit extracts the second band-shaped region from the reduced input image.
前記抽出部は、前記第2帯状領域が前記入力画像から抽出されなかった場合に、前記第1帯状領域を変更して前記第2帯状領域を抽出する
請求項1に記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the extraction unit modifies the first band-shaped region to extract the second band-shaped region when the second band-shaped region is not extracted from the input image.
前記第1帯状領域を変更して複数の前記出力画像を生成するように前記抽出部と前記生成部を制御する制御部を備え、
前記表示部は、複数の前記出力画像を表示し、
前記受付部は、複数の前記出力画像のいずれかを選択する操作を受け付ける
請求項2に記載の画像処理装置。
A control unit that controls the extraction unit and the generation unit so as to change the first band-shaped region to generate a plurality of output images is provided.
The display unit displays a plurality of the output images and displays the plurality of output images.
The image processing device according to claim 2, wherein the reception unit receives an operation of selecting one of the plurality of output images.
前記抽出部は、前記第1帯状領域と交差する第3帯状領域平行移動させた帯状領域のうち、前記第3帯状領域と画像が類似する第4帯状領域を前記入力画像から抽出し、
前記生成部は、前記第1領域のうち、前記第3帯状領域と前記第4帯状領域とに挟まれた領域と、前記第3帯状領域又は前記第4帯状領域と、を含む第2領域の画像を複数、隙間なく配置した出力画像を生成する
請求項1に記載の画像処理装置。
The extraction unit extracts a fourth band-shaped region having an image similar to that of the third band-shaped region from the input image among the band-shaped regions obtained by translating the third band-shaped region intersecting with the first band-shaped region.
The generation unit is a second region of the first region, which includes a region sandwiched between the third band-shaped region and the fourth band-shaped region, and the third band-shaped region or the fourth band-shaped region. The image processing apparatus according to claim 1, wherein a plurality of images are arranged without gaps to generate an output image.
コンピュータを、
入力画像に含まれる第1帯状領域平行移動させた帯状領域のうち、前記第1帯状領域と画像が類似する第2帯状領域を前記入力画像から抽出する抽出部と、
前記入力画像において前記第1帯状領域と前記第2帯状領域とに挟まれた領域と、前記第1帯状領域又は前記第2帯状領域と、を含む第1領域の画像を複数、隙間なく配置した出力画像を生成する生成部
として機能させるためのプログラム。
Computer,
Among the band-shaped regions in which the first band-shaped region included in the input image is translated, a second band-shaped region whose image is similar to that of the first band-shaped region is extracted from the input image, and an extraction unit.
In the input image, a plurality of images of the first region including the region sandwiched between the first band-shaped region and the second band-shaped region and the first band-shaped region or the second band-shaped region are arranged without gaps. A program to function as a generator that generates an output image.
JP2018029879A 2018-02-22 2018-02-22 Image processing equipment and programs Active JP7102772B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018029879A JP7102772B2 (en) 2018-02-22 2018-02-22 Image processing equipment and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018029879A JP7102772B2 (en) 2018-02-22 2018-02-22 Image processing equipment and programs

Publications (2)

Publication Number Publication Date
JP2019144943A JP2019144943A (en) 2019-08-29
JP7102772B2 true JP7102772B2 (en) 2022-07-20

Family

ID=67773869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018029879A Active JP7102772B2 (en) 2018-02-22 2018-02-22 Image processing equipment and programs

Country Status (1)

Country Link
JP (1) JP7102772B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000242765A (en) 1999-02-18 2000-09-08 Dainippon Printing Co Ltd Image creation method and apparatus
JP2002366955A (en) 2001-06-12 2002-12-20 Dainippon Printing Co Ltd Image creation method and system
JP2005235022A (en) 2004-02-20 2005-09-02 Toppan Printing Co Ltd Seamless texture composition method, image composition program, and image composition system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000242765A (en) 1999-02-18 2000-09-08 Dainippon Printing Co Ltd Image creation method and apparatus
JP2002366955A (en) 2001-06-12 2002-12-20 Dainippon Printing Co Ltd Image creation method and system
JP2005235022A (en) 2004-02-20 2005-09-02 Toppan Printing Co Ltd Seamless texture composition method, image composition program, and image composition system

Also Published As

Publication number Publication date
JP2019144943A (en) 2019-08-29

Similar Documents

Publication Publication Date Title
US7683917B1 (en) Tool for extracting and manipulating components of warping transforms
US8374428B2 (en) Color balancing for partially overlapping images
US9774793B2 (en) Image segmentation for a live camera feed
CA2517463A1 (en) System and method for defining t-spline and t-nurcc surfaces using local refinements
US20170032580A1 (en) Edge preserving color smoothing of 3d models
US20220141395A1 (en) Systems and methods for visualizing surface coverings in an image of a scene
CN106251322A (en) Image processing equipment, image processing method and image processing system
CN112734900A (en) Baking method, baking device, baking equipment and computer-readable storage medium of shadow map
US6542157B1 (en) Font decoration by automatic mesh fitting
CN115803787A (en) Method and device for generating texture image
US10475230B2 (en) Surface material pattern finish simulation device and surface material pattern finish simulation method
US10878641B1 (en) Editing bezier patch by selecting multiple anchor points
JP2014044595A (en) Line drawing coloring system
JP7102772B2 (en) Image processing equipment and programs
EP3588449A1 (en) Devices, systems, and methods for color correcting digital images
US20220138840A1 (en) Systems and methods for visualizing wall coverings in an image of a scene
US20170161918A1 (en) Recording medium, information processing apparatus, and depth definition method
US10366515B2 (en) Image processing apparatus, image processing system, and non-transitory computer readable medium
US7859531B2 (en) Method and apparatus for three-dimensional graphics, and computer product
CN114972593B (en) Image rendering method, device and non-volatile storage medium
JPH096828A (en) Three-dimensional design method and design device
JP2021064334A (en) Image processing apparatus, image processing method, and program
AU1161401A (en) Refinement of transmitted polygonal mesh data
JP6930099B2 (en) Image processing device
JP7825825B2 (en) Data comparison device, method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220329

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220517

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220620

R150 Certificate of patent or registration of utility model

Ref document number: 7102772

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150