WO2015012164A1 - 画像処理装置及び画像処理プログラム - Google Patents

画像処理装置及び画像処理プログラム Download PDF

Info

Publication number
WO2015012164A1
WO2015012164A1 PCT/JP2014/068872 JP2014068872W WO2015012164A1 WO 2015012164 A1 WO2015012164 A1 WO 2015012164A1 JP 2014068872 W JP2014068872 W JP 2014068872W WO 2015012164 A1 WO2015012164 A1 WO 2015012164A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
image processing
image
value
processing apparatus
Prior art date
Application number
PCT/JP2014/068872
Other languages
English (en)
French (fr)
Inventor
坊野 博典
Original Assignee
株式会社 ディー・エヌ・エー
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 株式会社 ディー・エヌ・エー filed Critical 株式会社 ディー・エヌ・エー
Priority to KR1020167002544A priority Critical patent/KR101778737B1/ko
Priority to CN201480038823.1A priority patent/CN105493152B/zh
Publication of WO2015012164A1 publication Critical patent/WO2015012164A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/61Scene description
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/37Details of the operation on graphic patterns
    • G09G5/377Details of the operation on graphic patterns for mixing or overlaying two or more graphic patterns

Definitions

  • the present invention relates to an image processing apparatus and an image processing program for displaying an image by overlapping a plurality of layers.
  • each layer is an image area such as a transparent film, and the images are synthesized so that the layer below can be seen through in a transparent image area other than the image area of the opaque object in each layer.
  • each layer can be overlapped by changing the relative position with respect to other layers, and by moving each layer to slide, the image of the object drawn on each layer can be placed at the desired position it can. It is also possible to change the opacity of the layer to make the image of the drawn object partially transparent.
  • One image is constructed and displayed on the display.
  • layout information and layer structure information are set for each layer in order to perform effective image display by replacing or changing images in a composite image obtained by superimposing images of a plurality of layers (patent) Reference 1).
  • One aspect of the present invention is an image processing apparatus, in which objects associated with image data are associated with each other as a tree structure having the object as a node, and an order value is assigned to a child node group of each parent node.
  • a storage unit for storing the object database, and referring to the object database, based on the depth of the tree structure in the subtree extending from the node of the object of interest to the root node and the order value assigned to each node The method is characterized in that image data of an object of interest is distributed to layers, and an image is generated by overlapping the layers.
  • i is the depth of the node
  • X i is the order value of the node at the depth i
  • a and B are constants
  • k is the depth of the node of the object of interest
  • the layer value L is within a predetermined range It is preferable to distribute the image data of the object in the same layer.
  • the constant B is larger than the maximum value of the sequence values.
  • Lmax is the maximum number of layers to be processed
  • ( ⁇ X i ⁇ B ⁇ i ) max is the maximum value of ⁇ X i ⁇ B ⁇ i .
  • the order value is dynamically changed.
  • an attribute value of an object is assigned to a parent node of the tree structure, and a child node group of each parent node is composed of an object group having a common attribute value.
  • the attribute value preferably includes background, character, and HUD.
  • Another aspect of the present invention is an image processing program, in which objects associated with image data are associated with each other as a tree structure having the object as a node, and an order value is assigned to a child node group of each parent node.
  • the depth of the tree structure in the subtree that goes back from the node of the object of interest to the root node with reference to the object database, and the order assigned to each node The image data of the object of interest is distributed to layers based on the values, and functions as means for generating an image by overlapping the layers.
  • the image processing apparatus 100 includes a processing unit 10, a storage unit 12, an input unit 14, and an output unit 16, as shown in FIG. That is, the image processing apparatus 100 has a basic computer configuration, and can be a general PC, smartphone, tablet, mobile phone, or the like.
  • the image processing apparatus 100 is connected to a server 102 via a network 104 such as the Internet, and performs processing upon receiving information from the server 102.
  • the image processing apparatus 100 receives an electronic game program (logic) from the server 102 and performs game processing according to the program (logic).
  • the processing unit 10 includes means for performing arithmetic processing such as a CPU.
  • the processing unit 10 executes the image processing program stored in the storage unit 12 to realize the image processing in the present embodiment.
  • the storage unit 12 includes storage means such as a semiconductor memory and a hard disk.
  • the storage unit 12 is connected to the processing unit 10 so as to be accessible, and stores an image processing program, image data of each object used for image processing, an object database for managing the object, and the like.
  • the input unit 14 includes means for inputting information to the image processing apparatus 100.
  • the input unit 14 includes, for example, a touch panel and a keyboard that receive input from the user.
  • the input unit 14 includes a network interface that receives information from the outside of the image processing apparatus 100, and receives an image processing program and image data of each object used for image processing.
  • the output unit 16 includes means for outputting information processed by the image processing apparatus 100.
  • the output unit 16 includes, for example, a display that presents an image to the user.
  • a network interface that transmits information to the outside of the image processing apparatus 100 is included, and information is transmitted to the server 102 and the like.
  • the image processing apparatus 100 performs image processing in an electronic game.
  • the present invention is not limited to this, and any image processing method that displays a plurality of layers superimposed can be applied.
  • FIG. 2 is a diagram illustrating a configuration example of the image 22 in the image processing apparatus 100.
  • An image 22 displayed on the output unit 16 in the image processing apparatus 100 is a composite image in which a plurality of layers 20 (20a, 20b, 20c...) Are superimposed and combined.
  • Each layer 20 is assigned one or more objects.
  • An object is a concept that indicates an attribute of an image to be displayed. Taking an electronic game as an example, the object has attribute values such as background, character, HUD, and the like.
  • the objects with the background attribute value are represented as an object group having common attributes as backgrounds such as mountains, trees, roads, and houses.
  • objects with character attribute values are represented as object groups having common attributes as characters appearing in the game, such as teammate characters and enemy characters.
  • the objects having the HUD attribute are represented as an object group having common attributes as HUDs such as a hit point display unit and a magic point display unit.
  • Each layer 20 is one image, and image data of an object assigned to each layer 20 is depicted.
  • Priority is set for each layer 20 when the layers 20 are overlapped.
  • the layer 20 having a higher priority is superimposed on the layer 20 having a lower priority. That is, when the images of objects drawn on a plurality of superimposed layers 20 overlap, a composite image is configured with priority given to the image of the layer 20 having a higher priority.
  • the area where the image data of the object is not drawn is a transparent area.
  • a composite image 22 is obtained by superimposing these layers. That is, when the image drawn on the layers 0 and 1 overlaps the area of the image drawn on the layer 3, the image drawn on the layer 3 is synthesized so that it is displayed preferentially. In addition, when the image drawn on layer 0 overlaps the area of the image drawn on layer 1, the image drawn on layer 1 is synthesized so that it is displayed preferentially.
  • an object to be displayed is managed by an object database having a tree structure.
  • FIG. 3 shows an example of a tree structure of an object database.
  • Tree structure node n m (referred nodes, also called vertex) and a structure represented by the edge connecting the nodes n m (branches, also referred to as sides).
  • m is a serial number of a node included in the tree structure.
  • Each node nm may have child nodes.
  • the child node is located below the parent node in the tree structure. Child nodes that maintain the same parent node are called sibling nodes.
  • depth i the number of edges from the root node located at the top to the node of interest.
  • an order value X is assigned to the child node group belonging to each parent node.
  • one object is assigned to one node.
  • the objects “background”, “character”, and “HUD” are assigned to the nodes n 1 , n 2 , and n 3 , respectively.
  • the objects “mountain” and “tree” belonging to the node n 1 are assigned to the nodes n 4 and n 5 , respectively.
  • the objects “enemy character” and “friend character” belonging to the node n 2 are assigned to the nodes n 6 and n 7 , respectively.
  • the objects “weapon 1” and “equipment 1” belonging to the node n 7 are assigned to the nodes n 8 and n 9 , respectively.
  • objects may be assigned to more nodes.
  • an order value is assigned to each node according to the game program.
  • the order value is a value indicating a relative priority with respect to image display between child nodes having a common parent node.
  • the sequence value does not necessarily have to be a serial number.
  • the order value assigned to each node may be changed as appropriate. That is, since the order value is a value indicating the relative priority for image display among child nodes having a common parent node, the order value is dynamically changed when the display priority is changed according to the game program. May be changed.
  • nodes n 1 , n 2 , n 3 immediately below the root node have a depth of 1, and order values 0, 1, 2 (the numerical values described on the right side of each node in the figure). ) Is assigned. That is, among the nodes n 1 , n 2 , n 3 , the relative priority for image display is higher in the order of nodes n 3 > n 2 > n 1 . Nodes n 4 and n 5 below node n 1 have a depth of 2, and order values 0 and 1 are assigned to the nodes n 4 and n 5 , respectively.
  • the relative priority for image display is higher in the order of node n 5 > n 4 .
  • Nodes n 6 and n 7 below node n 2 have a depth of 2, and order values 0 and 1 are assigned to the nodes n 6 and n 7 , respectively. That is, the relative priority with respect to image display is higher in the order of nodes n 7 > n 6 between the nodes n 6 and n 7 .
  • Nodes n 8 and n 9 below node n 7 have a depth of 3, and order values 0 and 1 are assigned to the nodes n 8 and n 9 , respectively. That is, between nodes n 8 and n 9 , the relative priority for image display is higher in the order of nodes n 9 > n 8 .
  • the tree structure of the object database is referred to, and attention is paid based on the depth k of the tree structure in the subtree going back from the node of the object of interest to the root node and the order value X assigned to each node. Sort object image data into layers.
  • i is the depth of the node
  • X i is the order value of the node of depth i
  • a and B are constants
  • k is the depth of the node of the object of interest.
  • the sum of the order value X i to a value obtained by multiplying the B -i of all nodes on the path of the subtree towards the node n m to the focused object is allocated from the root node n 0 of the tree structure of the object database And a layer value L obtained by multiplying the sum by a constant A is calculated. Then, according to the calculated layer value L, the layer to which the object of interest is assigned is determined.
  • the layer value L can be calculated for other nodes, the layer value of the node n 1 is 0, the layer value of the node n 2 is 1.5, the layer value of the node n 3 is 3, and the node n 4
  • the layer value of node n 5 is 0.15
  • the layer value of node n 6 is 1.5
  • the layer value of node n 8 is 1.65
  • the layer value of node n 9 is 1.665. It becomes.
  • the objects assigned to each node n m can be distributed in each layer.
  • the layer values are distributed according to the integer part of the calculated layer value. Specifically, when the layer value is 0 or more and less than 1, it can be assigned to layer 0, when it is 1 or more and less than 2, it is assigned to layer 2, when it is 1 or more and less than 3, and when it is 2 or more, it can be assigned to layer 3 .
  • the nodes n 1 , n 4 , and n 5 are assigned to the layer 0
  • the nodes n 2 , n 6 , n 7 , n 8 , and n 9 are assigned to the layer 1
  • the node n 3 is assigned to the layer 3.
  • each object is assigned to a layer in which the number of layers of each object is rounded up to an integer value and the value is the number of layers.
  • the method of distributing the object layer according to the layer value is not limited to this, and any object that has the layer value L within a predetermined range may be distributed to the same layer.
  • the drawing is performed on a layer corresponding to the node to which the object is assigned.
  • the rendering process for the object "mountain” of the node n 4 is indicated, to depict the image of the object “mountain” on the layer 0 to node n 4 is assigned.
  • the object “tree” of the node n 5 is drawn on the layer 0.
  • the object "Weapon 1" of the node object of n 6 "enemy character”
  • the object of the node n 7 “ally character”
  • the node n 8, object "equipped with 1" of the node n 9 is drawn to the layer 1.
  • the object “HUD” of the node n 3 is drawn on the layer 3.
  • a new layer is inserted and an image of the object of the corresponding node is drawn there.
  • the layer value of each object is recalculated, thereby changing the layer to which the object belongs.
  • the image to be displayed on the output unit 16 can be configured by combining the layers according to the priority order.
  • the constant B is a value larger than the maximum value of the order values assigned to the nodes.
  • the maximum value of the order value is 2, it is preferable to set the constant B to 3 or more.
  • the constant A is preferably set to a value that satisfies the mathematical formula (2).
  • Lmax is the maximum number of layers to be processed
  • ( ⁇ X i ⁇ B ⁇ i ) max is the maximum value of ⁇ X i ⁇ B ⁇ i .
  • the constant A is preferably 15 or less.
  • the image processing apparatus 100 in the present embodiment it is not necessary to redraw an image for a layer that does not require updating of an object image, and the cached layer can be reused, thereby reducing the processing burden. Can do. Further, when an image of an object needs to be updated, the layer value of the node to which the object to be updated is calculated can be used to easily know the layer to which the object is assigned. Therefore, management of objects becomes easy, and the burden of image processing can be reduced particularly in an electronic game using many objects.
  • processing units 10 processing units, 12 storage units, 14 input units, 16 output units, 20 layers, 22 images, 100 image processing devices, 102 servers, 104 networks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Algebra (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Computer Hardware Design (AREA)
  • Pure & Applied Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)

Abstract

 画像データに関連付けられたオブジェクトを、オブジェクトをノードとするツリー構造として互いに関連付けると共に、各親ノードの子ノード群に対して順序値を割り付け、着目するオブジェクトのノードからルートノードまで遡る部分木におけるツリー構造の深さ及び各ノードに割り付けられた順序値に基づいて着目するオブジェクトの画像データをレイヤーに振り分け、レイヤーを重ね合わせることによって画像を生成する。

Description

画像処理装置及び画像処理プログラム
 本発明は、複数のレイヤーを重ねて画像表示するための画像処理装置及び画像処理プログラムに関する。
 コンピュータ、スマートフォン、タブレット等に設けられたディスプレイ上に画像を表示させる際に、複数のレイヤーを重ね合わせて1つの画像を構成して表示させる方法が知られている。すなわち、各レイヤーは透明フィルムのような画像領域であり、各レイヤーにおいて不透明なオブジェクトの画像領域以外の透明な画像領域では重ね合わされた下のレイヤーが透けて見えるように画像合成される。また、各レイヤーは他のレイヤーに対して相対位置を変えて重ね合わせることができ、各レイヤーをスライドさせるように動かすことによって各レイヤーに描画されたオブジェクトの画像を希望の位置に配置することができる。また、レイヤーの不透明度を変更して描画されたオブジェクトの画像を部分的に透明にすることもできる。
 例えば、電子ゲームでは、背景画像が描画されたレイヤー、ゲームに登場するキャラクタの画像が描画されたキャラクタレイヤー、味方や敵のキャラクタの状態等を示す画像が描画されたHUDレイヤー等を重ね合わせて1つの画像を構成してディスプレイ上に表示させる。
 また、複数のレイヤーの画像を重ね合わせた合成画像において画像の入れ替えや変更により効果的な画像表示を行うために、レイアウト情報とレイヤー構造情報をレイヤー毎に設定する技術が開示されている(特許文献1)。
特表2008-93391公報
 これまでのレイヤーによる画像処理方法では、複数のレイヤーが存在することが前提とされており、画像中に描写されるオブジェクトは予め各レイヤーに割り当てられている。
 しかしながら、画像中に含まれるオブジェクトは複数であり、それらオブジェクトの集合をレイヤーへ適切に割り当て、効率よく画像を描画する技術が望まれている。
 本発明の1つの態様は、画像処理装置であって、画像データに関連付けられたオブジェクトを、オブジェクトをノードとするツリー構造として互いに関連付けると共に、各親ノードの子ノード群に対して順序値を割り付けたオブジェクトデータベースを記憶する記憶部を備え、前記オブジェクトデータベースを参照して、着目するオブジェクトのノードからルートノードまで遡る部分木における前記ツリー構造の深さ及び各ノードに割り付けられた順序値に基づいて着目するオブジェクトの画像データをレイヤーに振り分け、レイヤーを重ね合わせることによって画像を生成することを特徴とする。
 ここで、
Figure JPOXMLDOC01-appb-M000003
ただし、iはノードの深さ、Xは深さiのノードの順序値、A及びBは定数、kは着目するオブジェクトのノードの深さ、で表されるレイヤー値Lが所定の範囲内にあるオブジェクトの画像データを同一のレイヤーに振り分けることが好適である。
 また、前記定数Bは、前記順序値の最大値より大きな値とすることが好適である。
 また、前記定数Aは、
Figure JPOXMLDOC01-appb-M000004
ただし、Lmaxは処理対象となる最大のレイヤー数、(ΣX・B-i)maxはΣX・B-iの最大値、の関係を満たすことが好適である。
 また、前記順序値は、動的に変更されることが好適である。
 また、オブジェクトの属性値を前記ツリー構造の親ノードに割り当て、各親ノードの子ノード群は、共通の属性値を有するオブジェクト群からなることが好適である。例えば、前記属性値は、背景、キャラクタ、HUDを含むことが好適である。
 また、本発明の別の態様は、画像処理プログラムであって、画像データに関連付けられたオブジェクトを、オブジェクトをノードとするツリー構造として互いに関連付けると共に、各親ノードの子ノード群に対して順序値を割り付けたオブジェクトデータベースを記憶する記憶部を備えるコンピュータを、前記オブジェクトデータベースを参照して、着目するオブジェクトのノードからルートノードまで遡る部分木における前記ツリー構造の深さ及び各ノードに割り付けられた順序値に基づいて着目するオブジェクトの画像データをレイヤーに振り分け、レイヤーを重ね合わせることによって画像を生成する手段として機能させることを特徴とする。
 本発明によれば、複数のオブジェクトをレイヤーに適切に割り当て、各オブジェクトの画像が描写されたレイヤーを重ね合わせた画像を効果的に生成することを可能とする。
本発明の実施の形態における画像処理装置の構成を示す図である。 本発明の実施の形態における画像の構成を示す図である。 本発明の実施の形態におけるオブジェクトデータベースのツリー構造を説明する図である。 本発明の実施の形態におけるレイヤー値Lの算出方法を説明する図である。
 本発明の実施の形態における画像処理装置100は、図1に示すように、処理部10、記憶部12、入力部14及び出力部16を含んで構成される。すなわち、画像処理装置100は、コンピュータの基本構成を備えており、一般的なPC、スマートフォン、タブレット、携帯電話機等とすることができる。
 画像処理装置100は、インターネット等のネットワーク104を介してサーバ102に接続され、サーバ102から情報を受けて処理を行う。例えば、画像処理装置100は、サーバ102から電子ゲームのプログラム(ロジック)を受信し、プログラム(ロジック)に応じてゲームの処理を行う。
 処理部10は、CPU等の演算処理を行う手段を含む。処理部10は、記憶部12に記憶されている画像処理プログラムを実行することによって、本実施の形態における画像処理を実現する。記憶部12は、半導体メモリ、ハードディスク等の記憶装手段を含む。記憶部12は、処理部10とアクセス可能に接続され、画像処理プログラム、画像処理に供される各オブジェクトの画像データ、オブジェクトを管理するオブジェクトデータベース等を記憶する。入力部14は、画像処理装置100に情報を入力する手段を含む。入力部14は、例えば、ユーザからの入力を受けるタッチパネルやキーボードを備える。また、入力部14は、画像処理装置100の外部から情報を受け取るネットワークインターフェース等を含み、画像処理プログラム、画像処理に供される各オブジェクトの画像データを受信する。出力部16は、画像処理装置100で処理された情報を出力する手段を含む。出力部16は、例えば、ユーザに対して画像を呈示するディスプレイを備える。また、画像処理装置100の外部へ情報を送信するネットワークインターフェース等を含み、サーバ102等に情報を送信する。
 本実施の形態では、画像処理装置100によって、電子ゲームでの画像処理を行う例について説明する。ただし、これに限定されるものではなく、複数のレイヤーを重ね合わせて表示する画像処理方法であれば適用することができる。
 図2は、画像処理装置100における画像22の構成例を示す図である。画像処理装置100において出力部16に表示される画像22は、複数のレイヤー20(20a,20b,20c・・・)を重ね合わせて合成した合成画像である。
 各レイヤー20には、単数又は複数のオブジェクトが割り当てられる。オブジェクトは、表示対象となる画像の属性を示す概念である。電子ゲームを例にとると、オブジェクトは、例えば、背景、キャラクタ、HUD等の属性値を有する。さらに、背景の属性値が付されたオブジェクトは、山、樹木、道、家等の背景として共通の属性を有するオブジェクト群として表わされる。また、キャラクタの属性値が付されたオブジェクトは、味方キャラクタ、敵キャラクタ等のゲームに登場するキャラクタとして共通の属性を有するオブジェクト群として表わされる。また、HUDの属性が付されたオブジェクトは、ヒットポイント表示部、マジックポイント表示部等のHUDとして共通の属性を有するオブジェクト群として表わされる。
 各レイヤー20は、それぞれ1つの画像であり、レイヤー20毎に割り当てられたオブジェクトの画像データが描写される。
 各レイヤー20には、レイヤー20を重ね合わせる際の優先度が設定される。複数のレイヤー20を重ね合わせて合成画像を構成する際に、優先度が高いレイヤー20を低いレイヤー20より上に重ね合わせる。すなわち、重ね合わせた複数のレイヤー20に描画されたオブジェクトの画像同士が重なった場合、より優先度の高いレイヤー20の画像を優先して合成画像が構成される。また、各レイヤー20においてオブジェクトの画像データが描写されていない領域は透明領域とされる。これにより、重ね合わせた複数のレイヤー20に描画された画像同士が重ならなかった場合、下のレイヤー20に描画されている画像が上のレイヤー20を透過して見えるように合成画像が構成される。
 例えば、図2に示すように、レイヤー3(20a)、レイヤー1(20b)、レイヤー0(20c)の順に優先度が高いとすると、これらを重ね合わせると合成画像22となる。すなわち、レイヤー3に描画された画像の領域にレイヤー0,1に描画された画像が重なったときには、レイヤー3に描画された画像が優先的に表示されるように合成される。また、レイヤー1に描画された画像の領域にレイヤー0に描画された画像が重なったときには、レイヤー1に描画された画像が優先的に表示されるように合成される。
 本実施の形態では、表示対象となるオブジェクトをツリー構造のオブジェクトデータベースにより管理する。
 図3は、オブジェクトデータベースのツリー構造の例を示す。ツリー構造は、ノードn(節点、頂点ともいう)と、各ノードn間を結ぶエッジ(枝、辺ともいう)で表される構造である。ここで、mはツリー構造に含まれれるノードの通し番号である。
 各ノードnは、子ノードを持つ場合がある。子ノードはツリー構造内では親ノードの下方に位置する。同一の親ノードを保つ子ノードを兄弟ノードという。このとき、最も上位に位置するルートノードから着目するノードまでのエッジ数をそのノードの「深さi」(iは、0以上の整数)という。また、各親ノードに属する子ノード群には順序値Xが付けられている。
 オブジェクトデータベースのツリー構造では、1つのノードに1つのオブジェクトが割り当てられている。図3の例では、オブジェクト「背景」、「キャラクタ」、「HUD」がそれぞれノードn,n,nに割り当てられている。また、オブジェクト「背景」のノードnを親ノードとして、ノードnに属するオブジェクト「山」、「樹木」がそれぞれノードn,nに割り当てられている。また、オブジェクト「キャラクタ」のノードnを親ノードとして、ノードnに属するオブジェクト「敵キャラクタ」、「味方キャラクタ」がそれぞれノードn,nに割り当てられている。また、オブジェクト「味方キャラクタ」のノードnを親ノードとして、ノードnに属するオブジェクト「武器1」、「装備1」がそれぞれノードn,nに割り当てられている。同様に、さらに多くのノードにオブジェクトを割り当ててもよい。オブジェクトをツリー構造で管理することによって、親ノード及びその下位ノード(子ノードや孫ノード)を優先度に応じて動的に移動させることが容易になる。
 また、ゲームプログラムに従って各ノードには順序値が割り当てられる。順序値は、共通の親ノードを有する子ノード間において画像表示に対する相対的な優先度を示す値である。順序値は、必ずしも連番でなくてもよい。また、各ノードに付される順序値は、適宜変更してもよい。すなわち、順序値は共通の親ノードを有する子ノード間において画像表示に対する相対的な優先度を示す値であるので、ゲームプログラムに従って表示の優先度に変更があった場合には動的に順序値を変更してもよい。
 図3の例では、ルートノードのすぐ下のノードn,n,nは、深さ1であり、それぞれに順序値0,1,2(図中、各ノードの右側に記載した数値)が割り当てられている。すなわち、ノードn,n,n間においては画像表示に対する相対的な優先度はノードn>n>nの順に高い。また、ノードnの下のノードn,nは、深さ2であり、それぞれに順序値0,1が割り当てられている。すなわち、ノードn,n間においては画像表示に対する相対的な優先度はノードn>nの順に高い。また、ノードnの下のノードn,nは、深さ2であり、それぞれに順序値0,1が割り当てられている。すなわち、ノードn,n間においては画像表示に対する相対的な優先度はノードn>nの順に高い。また、ノードnの下のノードn,nは、深さ3であり、それぞれに順序値0,1が割り当てられている。すなわち、ノードn,n間においては画像表示に対する相対的な優先度はノードn>nの順に高い。
 本実施の形態では、オブジェクトデータベースのツリー構造を参照して、着目するオブジェクトのノードからルートノードまで遡る部分木におけるツリー構造の深さk及び各ノードに割り付けられた順序値Xに基づいて着目するオブジェクトの画像データをレイヤーに振り分ける。
 具体的には、数式(1)で表されるレイヤー値Lが所定の範囲内にあるオブジェクトを同一のレイヤーに振り分ける。
Figure JPOXMLDOC01-appb-M000005
ただし、iはノードの深さ、Xは深さiのノードの順序値、A及びBは定数、kは着目するオブジェクトのノードの深さである。
 すなわち、オブジェクトデータベースのツリー構造のルートノードnから着目するオブジェクトが割り当てられたノードnに向かう部分木の経路上にあるすべてのノードの順序値XにB-iを乗算した値の和を算出し、その和に定数Aを乗算したレイヤー値Lを算出する。そして、算出されたレイヤー値Lに応じて、着目したオブジェクトが割り当てられるレイヤーを決定する。
 図3の例において、定数Aを15とし、定数Bを10としたときに、オブジェクト「味方キャラクタ」が割り当てられたノードnのレイヤー値Lを算出する例を示す。図4に示すように、ルートノードnから着目するノードnに向かう部分木の経路には「キャラクタ」が割り当てられたノードnと「味方キャラクタ」が割り当てられたノードnが存在する。したがって、ノードnについて順序値1と10-1との積、ノードnについて順序値1と10-2との積、の和は0.11となり、これに定数15を乗算してレイヤー値L=1.65が算出される。同様に、他のノードについてもレイヤー値Lを算出することができ、ノードnのレイヤー値は0、ノードnのレイヤー値は1.5、ノードnのレイヤー値は3、ノードnのレイヤー値は0、ノードnのレイヤー値は0.15、ノードnのレイヤー値は1.5、ノードnのレイヤー値は1.65、及びノードnのレイヤー値は1.665となる。
 このように算出されたレイヤー値に基づいて、各ノードnに割り当てられたオブジェクトを各レイヤーに振り分けることができる。例えば、算出されたレイヤー値の整数部分に応じてレイヤーに振り分ける。具体的には、レイヤー値が0以上1未満のときにレイヤー0、1以上2未満のときにレイヤー1、2以上3未満のときにレイヤー2、3以上のときにレイヤー3に振り分けることができる。これにより、ノードn,n,nはレイヤー0、ノードn,n,n,n,nはレイヤー1、ノードnはレイヤー3に割り当てられる。すなわち、各オブジェクトのレイヤー値の小数点以下を切り上げて整数値とし、その値をレイヤー数とするレイヤーに各オブジェクトを割り当てる。
 ただし、レイヤー値に応じたオブジェクトのレイヤーの振り分け方法はこれに限定されるものではなく、レイヤー値Lが所定の範囲内にあるオブジェクトを同一のレイヤーに振り分けるものであればよい。
 各オブジェクトの画像を描写する際には、オブジェクトが割り当てられたノードに対応するレイヤーに描写を行う。図3のオブジェクトデータベースの例では、ノードnのオブジェクト「山」に対する描画処理が指示された場合、ノードnが割り当てられたレイヤー0にオブジェクト「山」の画像を描写する。同様に、ノードnのオブジェクト「樹木」はレイヤー0に描画される。また、ノードnのオブジェクト「敵キャラクタ」、ノードnのオブジェクト「味方キャラクタ」、ノードnのオブジェクト「武器1」、ノードnのオブジェクト「装備1」はレイヤー1に描画される。また、ノードnのオブジェクト「HUD」はレイヤー3に描画される。描画対象となるノードが属するレイヤーが存在しない場合には、新しいレイヤーを挿入し、そこに該当ノードのオブジェクトの画像を描画する。また、各オブジェクトの順序値が変化したり新たにオブジェクトが追加又は削除された場合には、各オブジェクトのレイヤー値が再計算され、それによって、オブジェクトが属するレイヤーが変化し得る。
 このように各レイヤーに割り当てられたオブジェクトの画像を描写した後、優先順位に応じてレイヤーを合成することによって出力部16に表示させる画像を構成することができる。
 ここで、定数Bは、ノードに付される順序値の最大値より大きな値とすることが好適である。例えば、順序値の最大値が2であれば、定数Bを3以上に設定することが好適である。ただし、オブジェクトの将来的な増加を見込んで、将来的な順序値の最大値より大きな値等に設定することがより好適である。例えば、現在の順序値の最大値が50であるが、将来的には順序値の最大値が99であると見込まれる場合には定数Bを100等に設定することが好適である。
 また、定数Aは、数式(2)を満たす値に設定することが好適である。
Figure JPOXMLDOC01-appb-M000006
ただし、Lmaxは処理対象となる最大のレイヤー数、(ΣX・B-i)maxはΣX・B-iの最大値である。
 例えば、表示画像を構成するレイヤー数の最大値Lmaxが3であり、ΣX・B-iの最大値が0.2であれば、定数Aは15以下とすることが好適である。このように定数Aを設定することにより、数式(1)によって算出されるレイヤー値Lをレイヤー数の最大値Lmax以下とすることができ、すべてのオブジェクトを間違いなく何れかのレイヤーに割り当てることができる。
 本実施の形態における画像処理装置100によれば、オブジェクトの画像の更新が必要でないレイヤーについては画像の再描画を必要とせず、キャッシュされたレイヤーを再利用ができるので処理の負担を軽減することができる。また、オブジェクトの画像の更新が必要な場合、更新対象となるオブジェクトが割り当てられたノードのレイヤー値を算出することによって、当該オブジェクトが割り当てられたレイヤーを容易に知ることができる。したがって、オブジェクトの管理が容易となり、特に多くのオブジェクトを使用する電子ゲーム等において画像処理の負担を軽減することができる。
 10 処理部、12 記憶部、14 入力部、16 出力部、20 レイヤー、22 画像、100 画像処理装置、102 サーバ、104 ネットワーク。

Claims (8)

  1.  画像処理装置であって、
     画像データに関連付けられたオブジェクトを、オブジェクトをノードとするツリー構造として互いに関連付けると共に、各親ノードの子ノード群に対して順序値を割り付けたオブジェクトデータベースを記憶する記憶部を備え、
     前記オブジェクトデータベースを参照して、着目するオブジェクトのノードからルートノードまで遡る部分木における前記ツリー構造の深さ及び各ノードに割り付けられた順序値に基づいて着目するオブジェクトの画像データをレイヤーに振り分け、レイヤーを重ね合わせることによって画像を生成することを特徴とする画像処理装置。
  2.  請求項1に記載の画像処理装置であって、
    Figure JPOXMLDOC01-appb-I000001
    ただし、iはノードの深さ、Xは深さiのノードの順序値、A及びBは定数、kは着目するオブジェクトのノードの深さ、
     で表されるレイヤー値Lが所定の範囲内にあるオブジェクトの画像データを同一のレイヤーに振り分けることを特徴とする画像処理装置。
  3.  請求項2に記載の画像処理装置であって、
     前記定数Bは、前記順序値の最大値より大きな値とすることを特徴とする画像処理装置。
  4.  請求項2又は3に記載の画像処理装置であって、
     前記定数Aは、
    Figure JPOXMLDOC01-appb-I000002
    ただし、Lmaxは処理対象となる最大のレイヤー数、(ΣX・B-i)maxはΣX・B-iの最大値、
    の関係を満たすことを特徴とする画像処理装置。
  5.  請求項1~4のいずれか1項に記載の画像処理装置であって、
     前記順序値は、動的に変更されることを特徴とする画像処理装置。
  6.  請求項1~5のいずれか1項に記載の画像処理装置であって、
     オブジェクトの属性値を前記ツリー構造の親ノードに割り当て、各親ノードの子ノード群は、共通の属性値を有するオブジェクト群からなることを特徴とする画像処理装置。
  7.  請求項6に記載の画像処理装置であって、
     前記属性値は、背景、キャラクタ、HUDを含むことを特徴とする画像処理装置。
  8.  画像処理プログラムであって、
     画像データに関連付けられたオブジェクトを、オブジェクトをノードとするツリー構造として互いに関連付けると共に、各親ノードの子ノード群に対して順序値を割り付けたオブジェクトデータベースを記憶する記憶部を備えるコンピュータを、
     前記オブジェクトデータベースを参照して、着目するオブジェクトのノードからルートノードまで遡る部分木における前記ツリー構造の深さ及び各ノードに割り付けられた順序値に基づいて着目するオブジェクトの画像データをレイヤーに振り分け、レイヤーを重ね合わせることによって画像を生成する手段として機能させることを特徴とする画像処理プログラム。
PCT/JP2014/068872 2013-07-22 2014-07-16 画像処理装置及び画像処理プログラム WO2015012164A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020167002544A KR101778737B1 (ko) 2013-07-22 2014-07-16 화상 처리 장치 및 화상 처리 프로그램
CN201480038823.1A CN105493152B (zh) 2013-07-22 2014-07-16 图像处理装置以及图像处理程序

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2013-151455 2013-07-22
JP2013151455A JP5367919B1 (ja) 2013-07-22 2013-07-22 画像処理装置及び画像処理プログラム

Publications (1)

Publication Number Publication Date
WO2015012164A1 true WO2015012164A1 (ja) 2015-01-29

Family

ID=49850431

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/068872 WO2015012164A1 (ja) 2013-07-22 2014-07-16 画像処理装置及び画像処理プログラム

Country Status (5)

Country Link
US (1) US9041742B2 (ja)
JP (1) JP5367919B1 (ja)
KR (1) KR101778737B1 (ja)
CN (1) CN105493152B (ja)
WO (1) WO2015012164A1 (ja)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5759605B1 (ja) * 2014-09-29 2015-08-05 株式会社 ディー・エヌ・エー 画像描画装置及び画像描画プログラム
KR101964278B1 (ko) 2015-11-24 2019-04-01 주식회사 엘지화학 딥 성형용 라텍스 조성물 및 이로부터 제조된 딥 성형품
IL243422B (en) * 2015-12-30 2018-04-30 Elbit Systems Ltd Information management is displayed according to the directions of the user's gaze
CN106055294B (zh) * 2016-05-23 2019-02-01 福州瑞芯微电子股份有限公司 一种图层合成优化方法和装置
CN106201512A (zh) * 2016-07-11 2016-12-07 无锡天脉聚源传媒科技有限公司 一种图片展示的方法及装置
CN107783702A (zh) * 2016-08-31 2018-03-09 阿里巴巴集团控股有限公司 显示数据的控制方法、装置和系统
JP6184634B1 (ja) * 2017-04-19 2017-08-23 株式会社 ディー・エヌ・エー 情報処理装置、ゲームプログラム、及び、情報処理方法
CN108711180B (zh) * 2018-05-02 2021-08-06 北京市商汤科技开发有限公司 美妆和/或换脸特效程序文件包的生成及美妆和/或换脸特效生成方法与装置
CN108665414A (zh) * 2018-05-10 2018-10-16 上海交通大学 自然场景图片生成方法
CN109064390B (zh) * 2018-08-01 2023-04-07 Oppo(重庆)智能科技有限公司 一种图像处理方法、图像处理装置及移动终端
US10930040B2 (en) * 2019-05-20 2021-02-23 Adobe Inc. Graphic object modifications
CN111068327B (zh) * 2019-12-26 2024-02-09 珠海金山数字网络科技有限公司 一种调整游戏角色背部装饰方法及装置
CN111862699B (zh) * 2020-07-08 2022-05-27 天津洪恩完美未来教育科技有限公司 可视化编辑教学课程的方法和装置、存储介质和电子装置
CN115348469B (zh) * 2022-07-05 2024-03-15 西安诺瓦星云科技股份有限公司 画面显示方法、装置、视频处理设备及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07296145A (ja) * 1994-04-21 1995-11-10 Matsushita Electric Ind Co Ltd 図形処理装置
JP2001184515A (ja) * 1999-12-24 2001-07-06 Namco Ltd 画像生成システム及び情報記憶媒体

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1890268A1 (en) * 2005-06-07 2008-02-20 Sony Corporation Image processing device and image processing method and computer program
JP5489470B2 (ja) 2007-01-29 2014-05-14 三菱電機株式会社 画像表示装置及び画像表示方法
US20080186307A1 (en) * 2007-02-05 2008-08-07 Yaron Leifenberg Method and a protocol for describing procedural content for games
US8610725B2 (en) * 2007-10-10 2013-12-17 Apple Inc. Framework for dynamic configuration of hardware resources
CN101877138B (zh) * 2009-04-30 2014-01-15 国际商业机器公司 动态图的动画规划方法和装置
CN102596627B (zh) * 2009-11-04 2015-02-11 本田技研工业株式会社 车辆用显示装置
US9196075B2 (en) * 2011-11-14 2015-11-24 Microsoft Technology Licensing, Llc Animation of computer-generated display components of user interfaces and content items
CN102609970B (zh) * 2011-12-19 2014-11-05 中山大学 一种基于运动元素复用的二维动画合成方法

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07296145A (ja) * 1994-04-21 1995-11-10 Matsushita Electric Ind Co Ltd 図形処理装置
JP2001184515A (ja) * 1999-12-24 2001-07-06 Namco Ltd 画像生成システム及び情報記憶媒体

Also Published As

Publication number Publication date
KR20160033127A (ko) 2016-03-25
KR101778737B1 (ko) 2017-09-14
CN105493152A (zh) 2016-04-13
CN105493152B (zh) 2018-07-03
US9041742B2 (en) 2015-05-26
JP5367919B1 (ja) 2013-12-11
US20150022553A1 (en) 2015-01-22
JP2015022612A (ja) 2015-02-02

Similar Documents

Publication Publication Date Title
JP5367919B1 (ja) 画像処理装置及び画像処理プログラム
US10147239B2 (en) Content creation tool
AU2014235484B2 (en) Contextual local image recognition dataset
US8966356B1 (en) Providing views of three-dimensional (3D) object data models
KR101667899B1 (ko) 체험 콘텐츠 데이터세트에 대한 캠페인 최적화
US9335974B2 (en) System and method for determining and displaying design complexity of a software design
WO2017092430A1 (zh) 基于虚拟现实应用的用户界面控件实现方法和装置
KR101476418B1 (ko) 화상 처리 장치 및 화상 처리 프로그램
Fügenschuh et al. Exact and approximation algorithms for a soft rectangle packing problem
Flotyński et al. Customization of 3D content with semantic meta-scenes
JP2017215797A (ja) 選択制御方法、選択制御装置および選択制御プログラム
JP6162553B2 (ja) 画像処理装置及び画像処理プログラム
US20150317155A1 (en) Editing Multiple Attributes of Multiple Assets in an Editor
JP2015046145A (ja) 画像処理装置及び画像処理プログラム
Tian et al. An approach to generate spatial Voronoi Treemaps for points, lines, and polygons
Khakpour et al. What We Know About the Greenability of Reality Technologies: A Systematic Literature Review
US20150116332A1 (en) Information processing apparatus, information processing method, and storage medium
CN116630502A (zh) 关系图渲染方法、装置、设备、介质和程序产品
JP2015022746A5 (ja)

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480038823.1

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14828892

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20167002544

Country of ref document: KR

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 14828892

Country of ref document: EP

Kind code of ref document: A1