JP2006313497A - Apparatus and method for retrieving image - Google Patents
Apparatus and method for retrieving image Download PDFInfo
- Publication number
- JP2006313497A JP2006313497A JP2005136552A JP2005136552A JP2006313497A JP 2006313497 A JP2006313497 A JP 2006313497A JP 2005136552 A JP2005136552 A JP 2005136552A JP 2005136552 A JP2005136552 A JP 2005136552A JP 2006313497 A JP2006313497 A JP 2006313497A
- Authority
- JP
- Japan
- Prior art keywords
- image
- subject
- mosaic
- piece
- unit
- 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.)
- Pending
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
本発明は、多数の画像の中から画像を検索する画像検索装置に関する。 The present invention relates to an image search apparatus for searching for an image from a large number of images.
従来は、例えばイベント(撮影日)等毎に写真画像をフォルダに分類して記憶装置に記憶すると共に、画像のサムネイル画像を作成して関連付ける。画像を検索する場合は一般に、フォルダ名を頼りにフォルダを選択し、そのフォルダに含まれる画像のサムネイル画像があればそれを画面上に並べて表示させる。サムネイル画像がないときはサムネイル画像を作成して画面上に並べて表示させる。 Conventionally, for example, photographic images are classified into folders and stored in a storage device for each event (shooting date) or the like, and thumbnail images of the images are created and associated. When searching for images, in general, a folder is selected based on the folder name, and if there are thumbnail images of images included in the folder, they are displayed side by side on the screen. If there is no thumbnail image, create a thumbnail image and display it side by side on the screen.
また、特許文献1には、ユーザがキーワードを入力し、この中から各サムネイル画像に一つ以上のキーワードを設定してユーザが選択したキーワードを検索キーとして複数のフォルダに跨って画像を検索する手法が開示されている。
In
また、特許文献2は、サムネイル画像のような縮小画像を画面上に表示する際に、図21に示すように、複数の画像を各画像に関連した時刻を付加して記憶し、画面上に時間軸を設定して画像毎に付加された時刻に対応した時間軸の位置の近傍に各画像を配置することで時間に対応した順序と間隔で各画像を表示する手法を開示している。
しかしながら、写真画像をフォルダに分類し、選択したフォルダに含まれる画像のサムネイル画像を表示する方法では、フォルダ数が増えるとフォルダ名でその中に含まれる画像の被写体内容を記憶できなくなる。例えば、スポーツ大会等の年毎に似たようなイベントのフォルダが幾つもあるような場合は、そのフォルダ名からでは写っている人物や場面を想起できないので、実際に一つ一つフォルダを開いてサムネイル画像を表示し被写体内容を確認することになる。また、その際に画面上に一度に表示できるサムネイル画像数が限られるので、フォルダ内の画像数が多いときは全画像を確認するためにスクロール等により表示するサムネイル画像を切り換える必要がある。 However, in the method of classifying photo images into folders and displaying thumbnail images of images included in the selected folder, the subject contents of the images included in the folder name cannot be stored with the folder name when the number of folders increases. For example, if there are several folders of similar events every year, such as sports competitions, you can't recall the people and scenes from that folder name. The thumbnail image is displayed to confirm the subject content. In addition, since the number of thumbnail images that can be displayed on the screen at that time is limited, it is necessary to switch thumbnail images to be displayed by scrolling or the like in order to confirm all the images when the number of images in the folder is large.
一方、画像をキーワードにより検索する方法では、一つ一つの画像にキーワードを付与する作業は非常に負担が大きいことに加え、その時々の関心や気分等で付与するキーワードの選び方の基準が変わる可能性がある。そのため、検索したい画像に付けているキーワードが不明確で検索時に選択した検索キーワードに対して必ずしも期待するような検索結果にならないという問題がある。 On the other hand, in the method of searching for an image by keyword, the task of assigning a keyword to each image is very burdensome, and the criteria for selecting the keyword to be given depending on the interest and mood at that time can change. There is sex. For this reason, there is a problem that the keyword attached to the image to be searched is unclear and the search result is not necessarily expected for the search keyword selected at the time of the search.
また、サムネイル画像のような縮小画像を画面上に表示する際に時間軸を設定して時間に対応した順序と間隔で各画像を表示する方法は、検索したい画像の撮影時期がはっきりしているときは有効であるが、撮影時期を忘れてしまった場合や撮影時期にこだわらず画像を検索したい場合には有効でないという課題がある。 In addition, when displaying reduced images such as thumbnail images on the screen, the time axis is set and each image is displayed in the order and interval corresponding to the time. Although it is effective at times, there is a problem that it is not effective when the user forgets the shooting time or when searching for an image regardless of the shooting time.
本発明の目的は、視覚的に分類された形で多くの縮小画像を画面に表示できると共に、被写体をベースにした連想的な画像検索が容易な画像検索装置を提供することである。 An object of the present invention is to provide an image search apparatus that can display many reduced images in a visually classified form on the screen and can easily perform an associative image search based on a subject.
上記の課題を解決するために、第1の本発明の画像検索装置は、モザイク画像を用いて画像検索を行なう画像検索装置であって、複数の画像データを入力処理する画像入力部と、前記画像入力部により入力される前記画像データから被写体を抽出し、被写体属性及び被写体領域情報を含む被写体情報タグを生成して前記画像データに関連付けるタグ生成部と、前記複数の画像データを記憶する画像記憶部と、モザイクにより表現すべき画像である元画像を設定する元画像設定部と、前記元画像をタイル状に領域分割すると共に、前記元画像の前記被写体情報タグに基づいて、各タイル状分割領域の被写体区分を決定する元画像タイル状領域分割部と、前記元画像のタイル状分割領域の画像に対し置き換え候補となるピース画像を前記画像記憶部から検索するピース画像検索部と、前記元画像の各タイル状分割領域の画像を、前記候補となるピース画像の中から条件の合うもので置き換えてモザイク画像を生成するモザイク画像生成部と、生成されたモザイク画像を表示するモザイク画像表示部とを備え、前記ピース画像検索部は、前記被写体情報タグに基づいて、前記元画像と同種の被写体を含むピース画像を検索し、前記モザイク画像生成部は、前記元画像の各タイル状分割領域の前記被写体区分に基づいて、同種の被写体を含むピース画像を割り当てる。 In order to solve the above-described problem, an image search apparatus according to a first aspect of the present invention is an image search apparatus that performs an image search using a mosaic image, the image input unit that performs input processing on a plurality of image data, A tag generation unit that extracts a subject from the image data input by an image input unit, generates a subject information tag including subject attributes and subject region information, and associates the tag with the image data; and an image that stores the plurality of image data A storage unit, an original image setting unit for setting an original image that is an image to be expressed by a mosaic, and dividing the original image into tiles, and each tile shape based on the subject information tag of the original image An original image tile-shaped region dividing unit that determines a subject segment of the divided region, and a piece image that is a replacement candidate for the image of the tile-shaped divided region of the original image is stored in the image A piece image search unit that searches from the image, a mosaic image generation unit that generates a mosaic image by replacing the image of each tiled divided area of the original image with a candidate image that satisfies the conditions, and a generation A mosaic image display unit configured to display the mosaic image, wherein the piece image search unit searches for a piece image including a subject of the same type as the original image based on the subject information tag, and the mosaic image generation unit Assigns a piece image including the same type of subject based on the subject classification of each tiled divided region of the original image.
これにより、画像入力時に画像の被写体情報タグを生成し、それを利用して元画像の被写体領域毎に同種の被写体が含まれるピース画像を配置してモザイク画像を生成するので、視覚的に分類された形で多くの縮小画像を表示できる。 As a result, a subject information tag of the image is generated at the time of image input, and a mosaic image is generated by using this to place a piece image including the same type of subject for each subject region of the original image. Many reduced images can be displayed.
第2の本発明の画像検索装置は、モザイク画像を用いて画像検索を行なう画像検索装置であって、複数の画像データを入力処理する画像入力部と、前記画像入力部により入力される前記画像データを記憶する画像記憶部と、モザイクにより表現すべき画像である元画像を設定する元画像設定部と、前記画像記憶部に記憶される前記画像データから被写体を抽出し、被写体属性及び被写体領域情報を含む被写体情報タグを生成して前記画像データに関連付けるタグ生成部と、前記元画像をタイル状に領域分割すると共に、前記タグ生成部に前記元画像の画像データを渡すことで前記タグ生成部から前記元画像の前記被写体情報タグを取得して、取得した前記被写体情報タグに基づいて、各タイル状分割領域の被写体区分を決定する元画像タイル状領域分割部と、前記元画像のタイル状分割領域の画像に対し置き換え候補となるピース画像を前記画像記憶部から検索するピース画像検索部と、前記元画像の各タイル状分割領域の画像を、前記候補となるピース画像の中から条件の合うもので置き換えてモザイク画像を生成するモザイク画像生成部と、生成されたモザイク画像を表示するモザイク画像表示部とを備え、前記ピース画像検索部は、前記タグ生成部に前記元画像の画像データを渡すことで前記タグ生成部から前記元画像の前記被写体情報タグを取得し、取得した前記被写体情報タグに基づいて、前記元画像と同種の被写体を含むピース画像を検索し、前記モザイク画像生成部は、前記元画像の各タイル状分割領域の前記被写体区分に基づいて、同種の被写体を含むピース画像を割り当てる。 An image search device according to a second aspect of the present invention is an image search device that performs an image search using a mosaic image, and an image input unit that inputs a plurality of image data, and the image that is input by the image input unit An image storage unit that stores data, an original image setting unit that sets an original image that is an image to be represented by a mosaic, a subject is extracted from the image data stored in the image storage unit, and subject attributes and subject areas A tag generation unit that generates a subject information tag including information and associates it with the image data, and divides the original image into regions in a tile shape, and passes the image data of the original image to the tag generation unit to generate the tag An original image tile that obtains the subject information tag of the original image from a unit and determines a subject classification of each tiled divided region based on the obtained subject information tag An area dividing unit, a piece image searching unit that searches the image storage unit for a piece image that is a replacement candidate for an image of the tiled divided region of the original image, and an image of each tiled divided region of the original image, A mosaic image generation unit that generates a mosaic image by replacing the candidate piece image with a suitable one, and a mosaic image display unit that displays the generated mosaic image, the piece image search unit includes: The subject information tag of the original image is acquired from the tag generation unit by passing the image data of the original image to the tag generation unit, and a subject of the same type as the original image is acquired based on the acquired subject information tag. The mosaic image generation unit searches for a piece image including the same, and the mosaic image generation unit includes a piece image including the same type of subject based on the subject classification of each tiled divided region of the original image. Assign.
これにより、元画像分割時及びピース画像検索時に画像の被写体情報タグを生成し、それを利用して元画像の被写体領域毎に同種の被写体が含まれるピース画像を配置してモザイク画像を生成するので、視覚的に分類された形で多くの縮小画像を表示できる。 Thereby, a subject information tag of the image is generated at the time of dividing the original image and at the time of piece image search, and a mosaic image is generated by arranging piece images including the same kind of subject for each subject area of the original image. Therefore, many reduced images can be displayed in a visually classified form.
第3の本発明の画像検索装置は、前記元画像設定部が、前記画像記憶部に記憶された画像、又は前記モザイク画像表示部により表示されたモザイク画像を構成するピース画像から、ユーザにより選択された画像を元画像として設定する画像検索装置である。 In the image search device of the third aspect of the present invention, the original image setting unit is selected by a user from an image stored in the image storage unit or a piece image constituting a mosaic image displayed by the mosaic image display unit This is an image search device that sets a set image as an original image.
これにより、完成したモザイク画像を構成するピース画像からユーザが元画像を選択して再帰的にモザイク画像を生成するので連想的な画像検索が容易になる。 As a result, the user selects the original image from the piece images constituting the completed mosaic image and recursively generates the mosaic image, thereby facilitating associative image retrieval.
第4の本発明の画像検索装置は、前記元画像設定部が、前記画像記憶部に記憶された画像、又は前記モザイク画像表示部により表示されたモザイク画像を構成するピース画像から、自動選択された画像を元画像として設定する画像検索装置である。 In the image search device of the fourth aspect of the invention, the original image setting unit is automatically selected from the images stored in the image storage unit or the piece images constituting the mosaic image displayed by the mosaic image display unit. This is an image search device that sets an obtained image as an original image.
これにより、完成したモザイク画像を構成するピース画像から元画像を自動選択して再帰的にモザイク画像を生成することでスクリーンセイバ的な画像自動閲覧による検索が可能となる。 As a result, the original image is automatically selected from the piece images constituting the completed mosaic image, and the mosaic image is recursively generated, thereby enabling a search by screen saver-like automatic image browsing.
第5の本発明の画像検索装置は、前記モザイク画像生成部が、ピース画像の使用履歴情報を保持し、前記モザイク画像表示部により表示されたモザイク画像を構成するピース画像を元画像として新たなモザイク画像を再生成する場合、前記使用履歴情報を参照し、前回のモザイク画像を生成するときに使用していないピース画像、又はそれまでの使用頻度が少ないピース画像を、優先的に使用する画像検索装置である。 In the image search device of the fifth aspect of the present invention, the mosaic image generating unit holds piece image use history information, and a piece image constituting the mosaic image displayed by the mosaic image display unit is used as a new original image. When regenerating a mosaic image, refer to the use history information, and an image that preferentially uses a piece image that has not been used when generating the previous mosaic image or a piece image that has been used less frequently until then. A search device.
これにより、毎回異なる画像がピース画像として使用される可能性が高くなるので、画像数が増えても再帰的にモザイク画像生成を行なうことで、広い範囲で画像を検索することができる。 This increases the possibility that a different image will be used as a piece image every time. Therefore, even if the number of images increases, it is possible to search for images in a wide range by recursively generating mosaic images.
第6の本発明の画像検索方法は、モザイク画像を用いて画像検索を行なう画像検索方法であって、複数の画像データを入力処理する画像入力ステップと、前記画像入力ステップにより入力される前記画像データから被写体を抽出し、被写体属性及び被写体領域情報を含む被写体情報タグを生成して前記画像データに関連付けるタグ生成ステップと、前記複数の画像データを画像記憶部に記憶させる画像記憶ステップと、モザイクにより表現すべき画像である元画像を設定する元画像設定ステップと、前記元画像をタイル状に領域分割すると共に、前記元画像の前記被写体情報タグに基づいて、各タイル状分割領域の被写体区分を決定する元画像タイル状領域分割ステップと、前記元画像のタイル状分割領域の画像に対し置き換え候補となるピース画像を前記画像記憶部から検索するピース画像検索ステップと、前記元画像の各タイル状分割領域の画像を、前記候補となるピース画像の中から条件の合うもので置き換えてモザイク画像を生成するモザイク画像生成ステップと、生成されたモザイク画像を表示するモザイク画像表示ステップとを含み、前記ピース画像検索ステップでは、前記被写体情報タグに基づいて、前記元画像と同種の被写体を含むピース画像を検索し、前記モザイク画像生成ステップでは、前記元画像の各タイル状分割領域の前記被写体区分に基づいて、同種の被写体を含むピース画像を割り当てる。 An image search method according to a sixth aspect of the present invention is an image search method for performing an image search using a mosaic image, wherein the image input step inputs a plurality of image data, and the image input by the image input step A tag generation step of extracting a subject from the data, generating a subject information tag including subject attributes and subject region information and associating it with the image data; an image storage step of storing the plurality of image data in an image storage unit; and a mosaic An original image setting step for setting an original image that is an image to be expressed by the step of dividing the original image into regions in tiles, and subject classification of each tiled divided region based on the subject information tag of the original image An original image tiled area dividing step for determining the image, and a replacement candidate image for the tiled divided area image of the original image. A mosaic image is generated by replacing the image of each tile-shaped divided area of the original image with a piece of the candidate piece image that satisfies a condition, and a piece image search step of searching the image storage unit from the image storage unit. A mosaic image generation step; and a mosaic image display step for displaying the generated mosaic image. In the piece image search step, a piece image including a subject of the same type as the original image is searched based on the subject information tag. In the mosaic image generating step, piece images including the same type of subject are assigned based on the subject classification of each tiled divided region of the original image.
第7の本発明の画像検索方法は、前記元画像設定ステップでは、前記画像記憶部に記憶された画像、又は前記モザイク画像表示ステップにおいて表示したモザイク画像を構成するピース画像から、ユーザにより選択された画像を元画像として設定する画像検索方法である。 In the image search method of the seventh aspect of the present invention, the original image setting step is selected by the user from the image stored in the image storage unit or the piece image constituting the mosaic image displayed in the mosaic image display step. This is an image search method for setting an acquired image as an original image.
本発明によれば、画像の被写体情報タグを生成し、それを利用して元画像の被写体領域毎に同種の被写体が含まれるピース画像を配置してモザイク画像を生成するので、視覚的に分類された形で多くの縮小画像を表示できる。また、モザイク画像を構成するピース画像からユーザが元画像を選択して再帰的にモザイク画像を生成することで連想的な画像検索が容易になる。また、モザイク画像を構成するピース画像から元画像を自動選択して再帰的にモザイク画像を生成することでスクリーンセイバ的な画像自動閲覧による検索が可能となる。この際、前回生成時とは異なる画像をピース画像として優先的に配置することにより、毎回異なった画像がピース画像として使用される可能性が高くなり、画像数が増えても再帰的にモザイク画像生成を行なうことで、広い範囲で画像を検索することができる。 According to the present invention, a subject information tag of an image is generated, and a mosaic image is generated by using the image information to place a piece image including the same type of subject for each subject area of the original image. Many reduced images can be displayed. In addition, associative image search is facilitated by the user selecting the original image from the piece images constituting the mosaic image and recursively generating the mosaic image. Further, by automatically selecting an original image from piece images constituting a mosaic image and recursively generating a mosaic image, a search by screen saver-like automatic image browsing becomes possible. At this time, by preferentially arranging images different from those at the previous generation as piece images, there is a high possibility that a different image is used as a piece image each time, and even if the number of images increases, the mosaic image is recursively. By performing the generation, the image can be searched in a wide range.
以下、本発明の実施の形態について図面を用いて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(実施の形態1の構成)
図1は、本発明の実施の形態1における画像検索装置1の構成図である。
(Configuration of Embodiment 1)
FIG. 1 is a configuration diagram of an
画像検索装置1は、画像入力部11、タグ生成部12、画像記憶部13、元画像設定部14、元画像タイル状領域分割部15、ピース画像検索部16、モザイク画像生成部17、及び、モザイク画像表示部18から構成される。
The
画像入力部11は画像データの入力を処理する。ここでは、入力される画像データのサイズをVGA(640×480画素)に限定する。 The image input unit 11 processes input of image data. Here, the size of the input image data is limited to VGA (640 × 480 pixels).
タグ生成部12は、画像入力部11により入力された画像データから被写体を抽出し、被写体属性及び被写体領域情報を含む被写体情報タグを生成して画像データに関連付ける。
The
画像記憶部13は画像データとそれに関連付けられた被写体情報タグとを記憶する。
元画像設定部14はモザイクにより表現すべき画像を元画像として設定する。
The
The original
元画像タイル状領域分割部15は、元画像をタイル状に領域分割すると共に、被写体情報タグに基づいて各タイル状分割領域の被写体区分値を決定する。
The original image tile
ピース画像検索部16は、各タイル状分割領域の画像に対し置き換え候補となるピース画像を検索する。この際、ピース画像検索部16は、被写体情報タグに基づいて、選択するピース画像を元画像と同種の被写体を含む画像に限定する。
The piece
モザイク画像生成部17は、元画像の各タイル状分割領域の画像を、候補のピース画像の中から条件の合うピース画像を見つけて置き換えて、モザイク画像を生成する。このとき、モザイク画像生成部17は、元画像の各タイル状分割領域の被写体区分値に基づいて、同種の被写体を含むピース画像を割り当てる。
The mosaic
モザイク画像表示部18は、生成されたモザイク画像を表示すると共に、ユーザがピース画像を選択するための選択ポインタと、ユーザが選択を確定するための選択確定ボタンとを有する。
The mosaic
また、元画像設定部14は、画像記憶部13に記憶された画像、又はモザイク画像表示部18により表示されたモザイク画像を構成するピース画像から、ユーザにより選択された画像を元画像として設定する。
Further, the original
(実施の形態1の動作)
以上のように構成された画像検索装置1において、各構成部11〜18は次の様に動作する。
(Operation of Embodiment 1)
In the
画像入力部11は、ユーザからの画像入力要求を受けて、指定された画像データを読み込んでそれをタグ生成部12に渡す。タグ生成部12は、画像入力部11からの画像データを受け取り、画像に含まれる一つ又は複数の被写体領域を検出してそれぞれについて被写体情報タグを生成し、被写体情報タグを画像データに関連付ける。被写体情報タグの詳細については後述する。画像入力部11は、タグ生成部12により生成された被写体情報タグを取得し、画像データと共に画像記憶部13に記憶させる。
Upon receiving an image input request from the user, the image input unit 11 reads designated image data and passes it to the
タグ生成部12によって生成される被写体情報タグは、画像ファイル名と、被写体属性名と、被写体領域マップとにより構成される。被写体属性名は、人物、動物(犬、猫等)、植物(花、草、木等)、乗物(車、列車、船等)、建物、海(川、湖を含む)、及び、背景(山、空、その他)の何れかである。被写体領域マップは、被写体属性名で示される被写体が存在する画像の領域をビットマップ形式により特定する画像である。具体的には、画像の各画素点に1ビットが割り当てられ、被写体が存在する画素点に対応するビットに“1”がセットされる。その被写体が存在しない画素点に対応するビットには“0”がセットされる。画像データがVGAサイズであることから、被写体領域マップは640×480/8バイトのサイズになる。図2に、画像入力部11に入力される画像データに基づく画像の一例である画像101を示す。図3に、画像101に関連付けられた被写体情報タグの中の被写体属性名を示す。図4に、その被写体情報タグの中の被写体領域マップを示す。
The subject information tag generated by the
タグ生成部12は、画像から被写体領域を抽出する場合、被写体属性名毎にテンプレートを用意して、それぞれについて順に画像の部分領域とマッチングをとる一般に知られた手法を利用する。
When the subject region is extracted from the image, the
画像入力部11及びタグ生成部12の処理フローを図5に示す。
画像入力部11は指定された画像データを取得し(S11)、タグ生成部12は被写体情報タグを生成し(S12)、画像データと被写体情報タグとを関連付ける。画像入力部11は、関連付けられた画像データと被写体情報タグとを画像記憶部13に格納する。画像入力部11は、画像入力部11及びタグ生成部12における処理を終了すべきか否かを判断し(S14)、処理を終了すべきではないと判断した場合(S14でN)、画像入力部11が画像データを取得するステップ(S11)に戻る。他方、画像入力部11が処理を終了すべきと判断した場合(S14でY)、画像入力部11及びタグ生成部12の処理は終了する。
A processing flow of the image input unit 11 and the
The image input unit 11 acquires the designated image data (S11), the
次に、タグ生成部12が被写体情報タグを生成する処理(図5のS12)の詳細について、図6を用いて説明する。
Next, details of the process (S12 in FIG. 5) in which the
タグ生成部12は、画像入力部11から画像を受け取り、最初の被写体テンプレートを設定し(S21)、そのテンプレートを用いて、受け取った画像とマッチチングを行なう(S22)。タグ生成部12は、被写体が抽出されたか否かを判断し(S23)、被写体が抽出されたと判断した場合(S23でY)、タグ生成部12は、被写体情報タグを生成する(S24)。
The
被写体情報タグを生成した場合(S24)、及び、被写体が抽出されなかったと判断した場合(S23でN)、タグ生成部12は、全部の被写体テンプレートと、画像入力部11から受け取った画像とのマッチチングを行なったか否かを判断する(S25)。全部の被写体テンプレートと、画像入力部11からの画像とのマッチチングが行なわれている場合(S25でY)、タグ生成部12は、いずれのテンプレートともマッチングしなかった領域を、背景領域とみなして被写体情報タグを生成する(S26)。
When the subject information tag is generated (S24), and when it is determined that the subject has not been extracted (N in S23), the
他方、全部の被写体テンプレートと、画像入力部11からの画像とのマッチチングが行なわれていない場合(S25でN)、タグ生成部12は、次のテンプレートを設定し(S27)、そのテンプレートを用いて、画像入力部11から受け取った画像とマッチチングを行なうステップ(S22)に戻る。
On the other hand, when matching between all the subject templates and the image from the image input unit 11 is not performed (N in S25), the
このようにして画像記憶部13に複数の画像データと被写体情報タグとが記憶された後、モザイク画像生成の処理が行なわれる。その処理フローは次のとおりである。
After a plurality of image data and subject information tags are stored in the
元画像設定部14は、最初の起動において、画像選択メッセージを出して、画像記憶部13に記憶された画像の中から、何れかの画像を選択することをユーザに促す(図7のS31)。元画像設定部14は、ユーザにより何れかの画像が選択されるのを待ち(S32)、ユーザにより何れかの画像が選択されると、選択された画像を元画像として設定する(S33)。実施の形態1では、ユーザにより選択された画像は画像101であると仮定する。元画像設定部14は設定した元画像を元画像タイル状領域分割部15に渡す。
At the first activation, the original
元画像タイル状領域分割部15は、図8に示すように、元画像をタイル状に領域分割する(図9のS41)。ここでは各分割領域のサイズを20×15画素とする。これにより、元画像は32×32個の領域に分割される。そして、元画像タイル状領域分割部15は、最初の分割領域を指定して(S42)、その領域の被写体区分値を、元画像の各被写体情報タグにおける被写体領域マップに基づいて決定する(S43)。次に、元画像タイル状領域分割部15は、全部の分割領域の被写体区分値を決定したか否かを判断する(S44)。全部の分割領域の被写体区分値を決定したと判断した場合(S44でY)、元画像タイル状領域分割部15の被写体区分値を決定する処理は終了する。他方、全部の分割領域の被写体区分値を決定していないと判断した場合(S44でN)、元画像タイル状領域分割部15は次に被写体区分値を決定すべき領域を指定し(S45)、その領域の被写体区分値を決定するステップ(S43)に戻る。
The original image tile
このようにして、元画像タイル状領域分割部15は、図10に示すように、全部の分割領域の被写体区分値を決定する。このとき、元画像タイル状領域分割部15は、各被写体領域マップについて分割領域に対応するビット範囲を検証し、各分割領域において最も占有率の高い被写体属性名をその分割領域の被写体区分値として設定する。図10に示す例では、画像101を構成する全部の分割領域は、「人物区分ブロック」と、「車区分ブロック」と、「背景区分ブロック」とに区分される。元画像タイル状領域分割部15は、元画像のタイル状分割領域情報と、各分割領域の被写体区分値とをピース画像検索部16に渡す。
In this way, the original image tile
ピース画像検索部16は、元画像における各分割領域の被写体区分値に基づいて、画像記憶部13から置き換え候補となる画像(ピース画像)を検索する。
The piece
具体的にはまず、ピース画像検索部16は、各分割領域の被写体区分値を参照し、全ての被写体区分値を収集した被写体区分値リストを生成する(図11のS51)。次に、ピース画像検索部16は、画像記憶部13に格納された画像から、最初に、被写体区分値リストに含まれる被写体区分値を調査すべき画像を指定する(S52)。ピース画像検索部16は、指定した画像の全ての被写体情報タグを画像記憶部13から読み出して(S53)、指定された画像が被写体区分値リストに含まれる被写体区分値と同じ被写体属性名をもつかどうかチェックする(S54)。指定された画像が被写体区分値リストに含まれる被写体区分値と同じ被写体属性名をもつ場合(S54でY)、ピース画像検索部16は、該当する被写体区分値に対するピース画像グループにその画像を追加する(S55)。
Specifically, first, the piece
そして、ピース画像検索部16は、全ての画像について、被写体区分値リストに含まれる被写体区分値を調査したか否かを判断する(S56)。全ての画像について、被写体区分値リストに含まれる被写体区分値を調査したと判断した場合(S56でY)、ピース画像検索部16は、被写体区分値リストを調査する処理を終了する。他方、全ての画像について、被写体区分値リストに含まれる被写体区分値を調査していないと判断した場合(S56でN)、ピース画像検索部16は、画像記憶部13に格納された画像から、次に、被写体区分値リストに含まれる被写体区分値を調査すべき画像を指定し(S57)、指定した画像の全ての被写体情報タグを画像記憶部13から読み出すステップ(S53)に戻る。なお、指定された画像が被写体区分値リストに含まれる被写体区分値と同じ被写体属性名をもたない場合(S54でN)、ピース画像検索部16は、全ての画像について、被写体区分値リストに含まれる被写体区分値を調査したか否かを判断する(S56)。
Then, the piece
このようにして、ピース画像検索部16は、元画像における分割領域の全ての被写体区分値に対して、図12に示すピース画像グループ情報を生成して保持する。
In this way, the piece
続いて、モザイク画像生成部17は、元画像のタイル状分割領域情報と、分割領域の被写体区分値に対するピース画像グループ情報とを、ピース画像検索部16から受け取り、分割領域にピース画像を配置する。
Subsequently, the mosaic
具体的には、モザイク画像生成部17は、元画像の最初の分割領域を指定し、その指定に対応する元画像の分割領域画像を読み出し(図13のS61)、その被写体区分値に対するピース画像グループの中から最初の画像を指定する(S62)。次に、モザイク画像生成部17は、指定された画像を読み出し、分割領域画像及び指定された画像それぞれについて、平均輝度値を算出し、両者間でマッチングを実行する(S63)。
Specifically, the mosaic
分割領域画像と指定された画像とがマッチしない場合(S64でN)、モザイク画像生成部17は、分割領域画像と、ピース画像グループ内の全ての画像とについてマッチング処理を行なったか否かを判断する(S65)。分割領域画像と、ピース画像グループ内の全ての画像とについてマッチング処理を行なっていない場合(S65でN)、モザイク画像生成部17は、ピース画像グループの中から次の画像を指定し(S66)、分割領域画像と指定された画像とでマッチングを実行するステップ(S63)に戻る。
When the divided region image does not match the designated image (N in S64), the mosaic
他方、分割領域画像と指定された画像とがマッチする場合(S64でY)、及び、分割領域画像とピース画像グループ内の全ての画像とについてマッチング処理を行なった場合(S65でY)、モザイク画像生成部17は、指定された画像をリサイズ(縮小)して、分割領域に配置する(S67)。
On the other hand, when the divided region image matches the designated image (Y in S64), and when the matching processing is performed on the divided region image and all the images in the piece image group (Y in S65), the mosaic is used. The
そして、モザイク画像生成部17は、元画像の全部の分割領域について、上述した処理を行なったか否かを判断し(S68)、行なったと判断した場合(S68でY)、モザイク画像生成部17の上記処理は終了する。他方、元画像の全部の分割領域について、上述した処理を行なっていないと判断した場合(S68でN)、モザイク画像生成部17は、次の分割領域を指定し、その指定に対応する分割領域画像を読み出し(S69)、その被写体区分値に対するピース画像グループの中から最初の画像を指定するステップ(S62)に戻る。
Then, the mosaic
このように、モザイク画像生成部17は、全ての分割領域について、マッチング処理及び縮小画像の配置処理を行なう。モザイク画像生成部17は、画像のマッチングを公知の手法を利用して行なう。モザイク画像生成部17は、例えば特開平11−345329により開示された手法を用いて、元画像の分割領域画像とピース画像それぞれについて平均輝度値求め、その差から閾値によりマッチングの合否を判定する。条件に合うピース画像が存在しないときは最後に合否を判定した画像を配置する。
As described above, the mosaic
モザイク画像表示部18は、以上のようにして生成された、図14に示すモザイク画像を表示する。図15に示すように、表示画面においてモザイク画像を構成するピース画像のうち、ユーザが選択ポインタを置いた位置のピース画像(画像102)は、拡大表示される。これにより、ユーザは画像を閲覧する。また、ユーザが拡大表示されたピース画像をクリックすると、又はピース画像が拡大表示されているときにユーザが選択確定ボタンをクリックすると、元画像設定部14が起動し、元画像設定部14はそのピース画像を新たな元画像として設定する。
The mosaic
元画像設定部14により新たに設定された元画像は元画像タイル状領域分割部15に渡され、上述したようにして、図16に示す新たなモザイク画像が生成される。このとき、モザイク画像生成部17は、各ピース画像についてこれまでの使用回数や、前回のモザイク画像生成における使用有無等の使用履歴情報を保持し、2回目以降のモザイク画像の生成においてピース画像の使用履歴情報を参照して前回のモザイク画像生成に使用されなかったピース画像、又はこれまでの使用回数が少ないピース画像を優先的に選んでマッチングを実行するようにしてもよい。ピース画像使用履歴情報のフォーマットを図17に示す。
The original image newly set by the original
なお、実施の形態1では、画像データをVGAサイズに限定したが、必ずしもサイズを限定する必要はない。画像データとして写真画像の部分画像(分割画像等)を利用し、ユーザが選択ポインタを置いた位置のピース画像(画像102)を拡大して表示する際に、部分画像のほか画像全体が表示できるようにしてもよい。 In the first embodiment, the image data is limited to the VGA size, but the size is not necessarily limited. When a partial image (such as a divided image) of a photographic image is used as image data and the piece image (image 102) at the position where the selection pointer is placed is enlarged and displayed, the entire image can be displayed in addition to the partial image. You may do it.
また、被写体領域マップは、被写体属性名で示される被写体が存在する画像の領域をビットマップ形式により特定する画像であり、画像の各画素点に1ビットが割り当てられ、被写体が存在する画素点に対応するビットに“1”がセットされ、その被写体が存在しない画素点に対応するビットには“0” がセットされる。しかしながら、各画素点に1ビットが割り当てられるのではなく、複数画素を一つの単位とし、その単位に1ビットが割り当てられてもよい。例えば、20×15画素を一つの単位とし、一つのタイル状分割領域のサイズと一致させることにより、各分割領域について被写体区分を被写体領域マップから直接求めることが可能になる。この場合、被写体領域マップのサイズは32×32/8バイトに抑えることができる。 The subject area map is an image that specifies an area of the image where the subject indicated by the subject attribute name exists in the bitmap format. One bit is assigned to each pixel point of the image, and the pixel point where the subject exists is assigned. “1” is set in the corresponding bit, and “0” is set in the bit corresponding to the pixel point where the subject does not exist. However, instead of assigning 1 bit to each pixel point, a plurality of pixels may be used as one unit, and 1 bit may be assigned to that unit. For example, by setting 20 × 15 pixels as one unit and making it coincide with the size of one tile-shaped divided area, it is possible to directly determine the subject segment for each divided area from the subject area map. In this case, the size of the subject area map can be suppressed to 32 × 32/8 bytes.
また、実施の形態1では、元画像設定部14は最初の起動において、画像選択メッセージを出して画像記憶部13に記憶された画像の中からユーザに画像選択を促し、選択された画像を元画像として設定した。しかしながら、元画像設定部14は、ランダムに又は撮影日時等の基準により自動選択された画像を元画像として設定してもよい。
In the first embodiment, the original
また、モザイク画像表示部18により表示されたモザイク画像を構成するピース画像の一つをユーザが選択すると、元画像設定部14が起動し、元画像設定部14は選択されたピース画像を新たな元画像として設定するとした。しかしながら、モザイク画像表示部18によりモザイク画像が表示された場合、表示されたモザイク画像を構成するピース画像のうちの一つがランダムに又は撮影日時等の基準により自動選択されて、元画像設定部14は選択されたピース画像を新たな元画像として設定してもよい。
Further, when the user selects one of the piece images constituting the mosaic image displayed by the mosaic
(実施の形態1の効果)
実施の形態1の画像検索装置1は、画像入力時に画像の被写体情報タグを生成し、それを利用して元画像の被写体領域毎に同種の被写体が含まれるピース画像を選択してモザイク画像を生成するので、視覚的に分類された形で多くの縮小画像を表示できる。また、モザイク画像を構成するピース画像からユーザが元画像を選択すると、画像検索装置1は、選択された元画像に基づいて、再帰的にモザイク画像を生成する。これにより、連想的な画像検索が容易になる。この際、前回生成時とは異なる画像をピース画像として優先的に選択することにより、毎回異なった画像がピース画像として使用される可能性が高くなる。そのため、画像数が増えても再帰的にモザイク画像生成を行なうことで、広い範囲で画像を検索することができる。
(Effect of Embodiment 1)
The
また、モザイク画像を構成するピース画像から元画像を自動選択して再帰的にモザイク画像を生成することでスクリーンセイバ的な自動閲覧による検索が可能となる。 Further, by automatically selecting an original image from piece images constituting a mosaic image and recursively generating a mosaic image, a search by screen saver-like automatic browsing becomes possible.
(実施の形態2の構成)
図18は、本発明の実施の形態2における画像検索装置2の構成図である。
(Configuration of Embodiment 2)
FIG. 18 is a configuration diagram of the
画像検索装置2は、画像入力部21、タグ生成部22、画像記憶部23、元画像設定部24、元画像タイル状領域分割部25、ピース画像検索部26、モザイク画像生成部27、及び、モザイク画像表示部28から構成される。
The
画像入力部21は画像データの入力を処理する。ここでは、入力される画像データのサイズをVGA(640×480画素)に限定する。
The
画像記憶部23は画像入力部21により入力された画像データを記憶する。
元画像設定部24はモザイクにより表現すべき画像を元画像として設定する。
The
The original
タグ生成部22は、画像記憶部23に記憶された画像データから被写体を抽出し、被写体属性及び被写体領域情報を含む被写体情報タグを生成して画像データに関連付ける。
The tag generation unit 22 extracts a subject from the image data stored in the
元画像タイル状領域分割部25は、元画像をタイル状に領域分割すると共に、タグ生成部22に元画像データを渡すことにより元画像の被写体情報タグを取得し、取得した被写体情報タグに基づいて各タイル状分割領域の被写体区分値を決定する。
The original image tile
ピース画像検索部26は、各タイル状分割領域の画像に対し置き換え候補となるピース画像を画像記憶部23の中で検索する。この際、ピース画像検索部26は、タグ生成部22に画像データを渡すことにより画像データの被写体情報タグを取得し、取得した被写体情報タグに基づいて、ピース画像を検索する。また、ピース画像検索部26は、選択するピース画像を元画像と同種の被写体を含む画像に限定する。
The piece
モザイク画像生成部27は、各タイル状分割領域の画像を、候補のピース画像の中から条件の合うピース画像を見つけて置き換えて、モザイク画像を生成する。このとき、モザイク画像生成部27は、各タイル状分割領域の被写体区分値に基づいて、同種の被写体を含むピース画像を割り当てる。
The mosaic
モザイク画像表示部28は、生成されたモザイク画像を表示すると共に、ユーザがピース画像を選択するための選択ポインタと、ユーザが選択を確定するための選択確定ボタンとを有する。
The mosaic
また、元画像設定部24は、画像記憶部23に記憶された画像、又はモザイク画像表示部28により表示されたモザイク画像を構成するピース画像から、ユーザにより選択された画像を元画像として設定する。
Further, the original
(実施の形態2の動作)
以上のように構成された画像検索装置2において、各構成部21〜28は次の様に動作する。
(Operation of Embodiment 2)
In the
画像入力部21は、ユーザからの画像入力要求を受けて、指定された画像データを読み込んで画像記憶部23に格納する。
In response to an image input request from the user, the
画像記憶部23に複数の画像データが記憶された後、モザイク画像生成の処理が行なわれる。その処理フローは次のとおりである。
After a plurality of pieces of image data are stored in the
元画像設定部24は、最初の起動において、画像選択メッセージを出して(図7のS31)、画像記憶部23に記憶された画像の中から、何れかの画像を選択することをユーザに促す。ユーザにより何れかの画像が選択されると、選択された画像を元画像として設定する(図7のS33)。元画像設定部24は設定した元画像を元画像タイル状領域分割部25に渡す。
In the first activation, the original
元画像タイル状領域分割部25は、図8に示すように、元画像をタイル状に領域分割する(図19のS71)。ここでは各分割領域のサイズを20×15画素とする。これにより、元画像は32×32個の領域に分割される。次に、元画像タイル状領域分割部25は、元画像データに関連付けられた被写体情報タグが存在するか否かを判断する(S72)。元画像データに関連付けられた被写体情報タグが存在しない場合(最初のモザイク画像生成時等:S72でY)、元画像タイル状領域分割部25はタグ生成部22に元画像データを渡す。
As shown in FIG. 8, the original image tile
タグ生成部22は、元画像データに含まれる一つ又は複数の被写体領域を検出し、それぞれについて被写体情報タグを生成して(S73)、元画像タイル状領域分割部25に渡す。
The tag generation unit 22 detects one or a plurality of subject areas included in the original image data, generates subject information tags for each of them (S73), and passes them to the original image tile
被写体情報タグは、画像ファイル名と、被写体属性名と、被写体領域マップとにより構成される。被写体属性名は、人物、動物(犬、猫等)、植物(花、草、木等)、乗物(車、列車、船等)、建物、海(川、湖を含む)、及び、背景(山、空、その他)の何れかである。被写体領域マップは、被写体属性名で示される被写体が存在する画像の領域をビットマップ形式により特定する画像である。具体的には、画像の各画素点に1ビットが割り当てられ、被写体が存在する画素点に対応するビットに“1”がセットされる。その被写体が存在しない画素点に対応するビットには“0”がセットされる。画像データがVGAサイズであることから、被写体領域マップは640×480/8バイトのサイズになる。図2に、元画像の一例である画像101を示す。図3及び図4に画像101に関連付けられた被写体情報タグを示す。 The subject information tag includes an image file name, a subject attribute name, and a subject area map. Subject attribute names are people, animals (dogs, cats, etc.), plants (flowers, grass, trees, etc.), vehicles (cars, trains, ships, etc.), buildings, seas (including rivers and lakes), and backgrounds ( Mountain, sky, etc.). The subject area map is an image that specifies an area of an image in which the subject indicated by the subject attribute name exists in a bitmap format. Specifically, 1 bit is assigned to each pixel point of the image, and “1” is set to the bit corresponding to the pixel point where the subject exists. “0” is set to the bit corresponding to the pixel point where the subject does not exist. Since the image data is VGA size, the subject area map has a size of 640 × 480/8 bytes. FIG. 2 shows an image 101 which is an example of the original image. 3 and 4 show subject information tags associated with the image 101. FIG.
タグ生成部22は、画像から被写体領域を抽出する場合、被写体属性名毎にテンプレートを用意して、それぞれについて順に画像の部分領域とマッチングをとる一般に知られた手法を利用する。タグ生成部22は、生成した被写体情報タグを画像データと関連付けて保持する。なお、タグ生成部22が被写体情報タグを生成する処理については、実施の形態1において図6を用いて説明したので、ここではその説明は省略する。 When the subject region is extracted from the image, the tag generation unit 22 prepares a template for each subject attribute name, and uses a generally known technique that sequentially matches a partial region of the image. The tag generation unit 22 holds the generated subject information tag in association with image data. Note that the process in which the tag generation unit 22 generates the subject information tag has been described with reference to FIG. 6 in the first embodiment, and thus the description thereof is omitted here.
元画像データに関連付けられた被写体情報タグが存在する場合(図19のS72でN)、及び、タグ生成部22によって被写体情報タグが生成された場合(S73)、元画像タイル状領域分割部25は、タグ生成部22より元画像の被写体情報タグを取得し、最初の分割領域を指定し(S74)、各被写体情報タグにおける被写体領域マップを参照して、その領域の被写体区分値を決定する(S75)。次に、元画像タイル状領域分割部25は、全部の分割領域の被写体区分値を決定したか否かを判断する(S76)。全部の分割領域の被写体区分値を決定したと判断した場合(S76でY)、元画像タイル状領域分割部25の被写体区分値を決定する処理は終了する。他方、全部の分割領域の被写体区分値を決定していないと判断した場合(S76でN)、元画像タイル状領域分割部25は、次に被写体区分値を決定すべき領域を指定し(S77)、その領域の被写体区分値を決定するステップ(S75)に戻る。
When there is a subject information tag associated with the original image data (N in S72 of FIG. 19), and when a subject information tag is generated by the tag generation unit 22 (S73), the original image tiled
このようにして、元画像タイル状領域分割部25は、図10に示すように、全部の分割領域の被写体区分値を決定する。このとき、元画像タイル状領域分割部25は、各被写体領域マップについて分割領域に対応するビット範囲を検証し、各分割領域において最も占有率の高い被写体属性名をその分割領域の被写体区分値として設定する。図10に示す例では、画像101を構成する全部の分割領域は、「人物区分ブロック」と、「車区分ブロック」と、「背景区分ブロック」とに区分される。元画像タイル状領域分割部25は、元画像のタイル状分割領域情報と、各分割領域の被写体区分値とをピース画像検索部26に渡す。
In this way, the original image tile
ピース画像検索部26は、元画像における各分割領域の被写体区分値に基づいて、画像記憶部23から置き換え候補となる画像(ピース画像)を検索する。
The piece
具体的にはまず、ピース画像検索部26は、各分割領域の被写体区分値を参照し、全ての被写体区分値を収集した被写体区分値リストを生成する(図20のS81)。次に、ピース画像検索部26は、画像記憶部23に格納された画像から、最初に、被写体区分値リストに含まれる被写体区分値を調査すべき画像を指定し(S82)、その画像の被写体情報タグが存在するか否かを判断する(S83)。被写体情報タグが存在しない場合(最初のモザイク画像生成時や追加された画像があるとき等:S83でY)、ピース画像検索部26はタグ生成部22に画像データを渡し、タグ生成部22は被写体情報タグを生成する(S84)。なお、タグ生成部22によって行なわれるその処理については、図19におけるステップ73の処理と同じである。また、その処理は、実施の形態1において図6を用いて説明したので、ここではその説明は省略する。
Specifically, first, the piece
被写体情報タグが存在する場合(S83でN)、及び、被写体情報タグが生成された場合(S84)、ピース画像検索部26は、指定した画像の被写体情報タグを画像記憶部23から取得し(S83)、指定した画像が被写体区分値リストに含まれる被写体区分値と同じ被写体属性名をもつかどうかチェックする(S85)。指定した画像が被写体区分値リストに含まれる被写体区分値と同じ被写体属性名をもつ場合(S85でY)、ピース画像検索部26は、該当する被写体区分値に対するピース画像グループにその画像を追加する(S86)。
When the subject information tag exists (N in S83) and when the subject information tag is generated (S84), the piece
そして、ピース画像検索部26は、全ての画像について、被写体区分値リストに含まれる被写体区分値を調査したか否かを判断する(S87)。全ての画像について、被写体区分値リストに含まれる被写体区分値を調査したと判断した場合(S87でY)、ピース画像検索部26は、被写体区分値リストを調査する処理を終了する。他方、全ての画像について、被写体区分値リストに含まれる被写体区分値を調査していないと判断した場合(S87でN)、ピース画像検索部26は、画像記憶部23に格納された画像から、次に、被写体区分値リストに含まれる被写体区分値を調査すべき画像を指定し(S88)、指定した画像の被写体情報タグが存在するか否かを判断するステップ(S83)に戻る。なお、指定された画像が被写体区分値リストに含まれる被写体区分値と同じ被写体属性名をもたない場合(S85でN)、ピース画像検索部26は、全ての画像について、被写体区分値リストに含まれる被写体区分値を調査したか否かを判断する(S87)。
Then, the piece
このようにして、ピース画像検索部26は、元画像における分割領域の全ての被写体区分値に対して、図12に示すピース画像グループ情報を生成して保持する。
In this way, the piece
続いて、モザイク画像生成部27は、元画像のタイル状分割領域情報と、分割領域の被写体区分値に対するピース画像グループ情報とを、ピース画像検索部26から受け取り、分割領域にピース画像を配置する。
Subsequently, the mosaic
具体的には、モザイク画像生成部27は、元画像の最初の分割領域を指定し、その指定に対応する元画像の分割領域画像を読み出し(図13のS61)、その被写体区分値に対するピース画像グループの中から最初の画像を指定する(S62)。次に、モザイク画像生成部27は、指定された画像を読み出し、分割領域画像及び指定された画像それぞれについて、平均輝度値を算出し、両者間でマッチングを実行する(S63)。
Specifically, the mosaic
分割領域画像と指定された画像とがマッチしない場合(S64でN)、モザイク画像生成部27は、分割領域画像と、ピース画像グループ内の全ての画像とについてマッチング処理を行なったか否かを判断する(S65)。分割領域画像と、ピース画像グループ内の全ての画像とについてマッチング処理を行なっていない場合(S65でN)、モザイク画像生成部27は、ピース画像グループの中から次の画像を指定し(S66)、分割領域画像と指定された画像とでマッチングを実行するステップ(S63)に戻る。
When the divided area image does not match the designated image (N in S64), the mosaic
他方、分割領域画像と指定された画像とがマッチする場合(S64でY)、及び、分割領域画像とピース画像グループ内の全ての画像とについてマッチング処理を行なった場合(S65でY)、モザイク画像生成部27は、指定された画像をリサイズ(縮小)して、分割領域に配置する(S67)。
On the other hand, when the divided region image matches the designated image (Y in S64), and when the matching processing is performed on the divided region image and all the images in the piece image group (Y in S65), the mosaic is used. The
そして、モザイク画像生成部27は、元画像の全部の分割領域について、上述した処理を行なったか否かを判断し(S68)、行なったと判断した場合(S68でY)、モザイク画像生成部27の上記処理は終了する。他方、元画像の全部の分割領域について、上述した処理を行なっていないと判断した場合(S68でN)、モザイク画像生成部27は、次の分割領域を指定し、その指定に対応する分割領域画像を読み出し(S69)、その被写体区分値に対するピース画像グループの中から最初の画像を指定するステップ(S62)に戻る。
Then, the mosaic
このように、モザイク画像生成部27は、全ての分割領域について、マッチング処理及び縮小画像の配置処理を行なう。モザイク画像生成部27は、画像のマッチングを公知の手法を利用して行なう。モザイク画像生成部27は、例えば特開平11−345329により開示された手法を用いて、元画像の分割領域画像とピース画像それぞれについて平均輝度値求め、その差から閾値によりマッチングの合否を判定する。条件に合うピース画像が存在しないときは最後に合否を判定した画像を配置する。
As described above, the mosaic
モザイク画像表示部28は、以上のようにして生成された、図14に示すモザイク画像を表示する。図15に示すように、表示画面においてモザイク画像を構成するピース画像のうち、ユーザが選択ポインタを置いた位置のピース画像(画像102)は、拡大表示される。これによりユーザは画像を閲覧する。また、ユーザが拡大表示されたピース画像をクリックすると、又はピース画像が拡大表示されているときにユーザが選択確定ボタンをクリックすると、元画像設定部24が起動し、元画像設定部24はそのピース画像を新たな元画像として設定する。
The mosaic
元画像設定部24により新たに設定された元画像は元画像タイル状領域分割部25に渡され、上述したようにして、図16に示す新たなモザイク画像が生成される。このとき、モザイク画像生成部27は、各ピース画像についてこれまでの使用回数や、前回のモザイク画像生成における使用有無等の使用履歴情報を保持し、2回目以降のモザイク画像の生成においてピース画像の使用履歴情報を参照して前回のモザイク画像生成に使用されなかったピース画像、又はこれまでの使用回数が少ないピース画像を優先的に選んでマッチングを実行するようにしてもよい。ピース画像使用履歴情報のフォーマットを図17に示す。
The original image newly set by the original
なお、実施の形態2では、画像データをVGAサイズに限定したが、必ずしもサイズを限定する必要はない。画像データとして写真画像の部分画像(分割画像等)を利用し、ユーザが選択ポインタを置いた位置のピース画像(画像102)を拡大して表示する際に、部分画像のほか画像全体が表示できるようにしてもよい。 In the second embodiment, the image data is limited to the VGA size, but the size is not necessarily limited. When a partial image (such as a divided image) of a photographic image is used as image data and the piece image (image 102) at the position where the selection pointer is placed is enlarged and displayed, the entire image can be displayed in addition to the partial image. You may do it.
また、被写体領域マップは、被写体属性名で示される被写体が存在する画像の領域をビットマップ形式により特定する画像であり、画像の各画素点に1ビットが割り当てられ、被写体が存在する画素点は対応するビットに“1”がセットされ、その被写体が存在しない画素点に対応するビットには“0” がセットされる。しかしながら、各画素点に1ビットが割り当てられるのではなく、複数画素を一つの単位とし、その単位に1ビットが割り当てられてもよい。例えば、20×15画素を一つの単位とし、一つのタイル状分割領域のサイズと一致させることにより、各分割領域について被写体区分を被写体領域マップから直接求めることが可能になる。この場合、被写体領域マップのサイズは32×32/8バイトに抑えることができる。 The subject area map is an image that specifies the area of the image where the subject indicated by the subject attribute name exists in the bitmap format. One bit is assigned to each pixel point of the image, and the pixel point where the subject exists is “1” is set in the corresponding bit, and “0” is set in the bit corresponding to the pixel point where the subject does not exist. However, instead of assigning 1 bit to each pixel point, a plurality of pixels may be used as one unit, and 1 bit may be assigned to that unit. For example, by setting 20 × 15 pixels as one unit and making it coincide with the size of one tile-shaped divided area, it is possible to directly determine the subject segment for each divided area from the subject area map. In this case, the size of the subject area map can be suppressed to 32 × 32/8 bytes.
また、実施の形態2では、元画像設定部24は最初の起動において、画像選択メッセージを出して画像記憶部23に記憶された画像の中からユーザに画像選択を促し、選択された画像を元画像として設定した。しかしながら、元画像設定部24は、ランダムに又は撮影日時等の基準により自動選択された画像を元画像として設定してもよい。
In the second embodiment, the original
また、モザイク画像表示部28により表示されたモザイク画像を構成するピース画像の一つをユーザが選択すると、元画像設定部24が起動し、元画像設定部24は選択されたピース画像を新たな元画像として設定するとした。しかしながら、モザイク画像表示部28によりモザイク画像が表示された場合、表示されたモザイク画像を構成するピース画像のうちの一つがランダムに又は撮影日時等の基準により自動選択されて、元画像設定部24は選択されたピース画像を新たな元画像として設定してもよい。
Further, when the user selects one of the piece images constituting the mosaic image displayed by the mosaic
(実施の形態2の効果)
実施の形態2の画像検索装置2によれば、実施の形態1と同様の効果が得られる。
(Effect of Embodiment 2)
According to the
すなわち、画像検索装置2は、元画像分割時及びピース画像検索時に画像の被写体情報タグを生成し、それを利用して元画像の被写体領域毎に同種の被写体が含まれるピース画像を選択してモザイク画像を生成するので、視覚的に分類された形で多くの縮小画像を表示できる。また、モザイク画像を構成するピース画像からユーザが元画像を選択すると、画像検索装置2は、選択された元画像に基づいて、再帰的にモザイク画像を生成する。これにより、連想的な画像検索が容易になる。この際、前回生成時とは異なる画像をピース画像として優先的に選択することにより、毎回異なった画像がピース画像として使用される可能性が高くなる。そのため、画像数が増えても再帰的にモザイク画像生成を行なうことで、広い範囲で画像を検索することができる。
That is, the
また、モザイク画像を構成するピース画像から元画像を自動選択して再帰的にモザイク画像を生成することでスクリーンセイバ的な自動閲覧による検索が可能となる。 Further, by automatically selecting an original image from piece images constituting a mosaic image and recursively generating a mosaic image, a search by screen saver-like automatic browsing becomes possible.
本発明にかかる画像検索装置は2次元画像処理のみで実現できるので、PCのほか、写真画像を扱うAV機器(モバイル機器を含む)においても利用可能である。 Since the image search apparatus according to the present invention can be realized only by two-dimensional image processing, it can be used not only in a PC but also in AV equipment (including mobile equipment) that handles photographic images.
1、2 画像検索装置
11、21 画像入力部
12、22 タグ生成部
13、23 画像記憶部
14、24 元画像設定部
15、25 元画像タイル状領域分割部
16、26 ピース画像検索部
17、27 モザイク画像生成部
18、28 モザイク画像表示部
101、102 画像データ
1, 2
Claims (7)
複数の画像データを入力処理する画像入力部と、
前記画像入力部により入力される前記画像データから被写体を抽出し、被写体属性及び被写体領域情報を含む被写体情報タグを生成して前記画像データに関連付けるタグ生成部と、
前記複数の画像データを記憶する画像記憶部と、
モザイクにより表現すべき画像である元画像を設定する元画像設定部と、
前記元画像をタイル状に領域分割すると共に、前記元画像の前記被写体情報タグに基づいて、各タイル状分割領域の被写体区分を決定する元画像タイル状領域分割部と、
前記元画像のタイル状分割領域の画像に対し置き換え候補となるピース画像を前記画像記憶部から検索するピース画像検索部と、
前記元画像の各タイル状分割領域の画像を、前記候補となるピース画像の中から条件の合うもので置き換えてモザイク画像を生成するモザイク画像生成部と、
生成されたモザイク画像を表示するモザイク画像表示部とを備え、
前記ピース画像検索部は、前記被写体情報タグに基づいて、前記元画像と同種の被写体を含むピース画像を検索し、
前記モザイク画像生成部は、前記元画像の各タイル状分割領域の前記被写体区分に基づいて、同種の被写体を含むピース画像を割り当てる
画像検索装置。 An image search device that performs an image search using a mosaic image,
An image input unit for processing a plurality of image data;
A tag generation unit that extracts a subject from the image data input by the image input unit, generates a subject information tag including subject attributes and subject region information, and associates the subject information tag with the image data;
An image storage unit for storing the plurality of image data;
An original image setting unit for setting an original image that is an image to be expressed by a mosaic;
An original image tiled region dividing unit that divides the original image into tiles and determines subject classification of each tiled divided region based on the subject information tag of the original image;
A piece image search unit that searches the image storage unit for a piece image that is a replacement candidate for the image of the tiled divided area of the original image;
A mosaic image generating unit that generates a mosaic image by replacing the image of each tiled divided region of the original image with a candidate image that satisfies the conditions;
A mosaic image display unit for displaying the generated mosaic image,
The piece image search unit searches for a piece image including a subject of the same type as the original image based on the subject information tag,
The mosaic image generating unit assigns piece images including the same type of subject based on the subject classification of each tiled divided region of the original image.
複数の画像データを入力処理する画像入力部と、
前記画像入力部により入力される前記画像データを記憶する画像記憶部と、
モザイクにより表現すべき画像である元画像を設定する元画像設定部と、
前記画像記憶部に記憶される前記画像データから被写体を抽出し、被写体属性及び被写体領域情報を含む被写体情報タグを生成して前記画像データに関連付けるタグ生成部と、
前記元画像をタイル状に領域分割すると共に、前記タグ生成部に前記元画像の画像データを渡すことで前記タグ生成部から前記元画像の前記被写体情報タグを取得して、取得した前記被写体情報タグに基づいて、各タイル状分割領域の被写体区分を決定する元画像タイル状領域分割部と、
前記元画像のタイル状分割領域の画像に対し置き換え候補となるピース画像を前記画像記憶部から検索するピース画像検索部と、
前記元画像の各タイル状分割領域の画像を、前記候補となるピース画像の中から条件の合うもので置き換えてモザイク画像を生成するモザイク画像生成部と、
生成されたモザイク画像を表示するモザイク画像表示部とを備え、
前記ピース画像検索部は、前記タグ生成部に前記元画像の画像データを渡すことで前記タグ生成部から前記元画像の前記被写体情報タグを取得し、取得した前記被写体情報タグに基づいて、前記元画像と同種の被写体を含むピース画像を検索し、
前記モザイク画像生成部は、前記元画像の各タイル状分割領域の前記被写体区分に基づいて、同種の被写体を含むピース画像を割り当てる
画像検索装置。 An image search device that performs an image search using a mosaic image,
An image input unit for processing a plurality of image data;
An image storage unit for storing the image data input by the image input unit;
An original image setting unit for setting an original image that is an image to be expressed by a mosaic;
A tag generation unit that extracts a subject from the image data stored in the image storage unit, generates a subject information tag including subject attributes and subject region information, and associates the subject information tag with the image data;
The original image is divided into tiles, and the subject information tag of the original image is acquired from the tag generator by passing image data of the original image to the tag generator, and the acquired subject information Based on the tag, the original image tiled area dividing unit that determines the subject classification of each tiled divided area;
A piece image search unit that searches the image storage unit for a piece image that is a replacement candidate for the image of the tiled divided area of the original image;
A mosaic image generating unit that generates a mosaic image by replacing the image of each tiled divided region of the original image with a candidate image that satisfies the conditions;
A mosaic image display unit for displaying the generated mosaic image,
The piece image search unit acquires the subject information tag of the original image from the tag generation unit by passing image data of the original image to the tag generation unit, and based on the acquired subject information tag, Search for a piece image that contains the same type of subject as the original image,
The mosaic image generating unit assigns piece images including the same type of subject based on the subject classification of each tiled divided region of the original image.
請求項1又は2記載の画像検索装置。 The original image setting unit sets, as an original image, an image selected by a user from an image stored in the image storage unit or a piece image constituting a mosaic image displayed by the mosaic image display unit. 3. The image search device according to 1 or 2.
請求項1又は2記載の画像検索装置。 The original image setting unit sets an automatically selected image as an original image from the images stored in the image storage unit or the piece images constituting the mosaic image displayed by the mosaic image display unit. Or the image search apparatus of 2 description.
ピース画像の使用履歴情報を保持し、
前記モザイク画像表示部により表示されたモザイク画像を構成するピース画像を元画像として新たなモザイク画像を再生成する場合、前記使用履歴情報を参照し、前回のモザイク画像を生成するときに使用していないピース画像、又はそれまでの使用頻度が少ないピース画像を、優先的に使用する
請求項3又は4記載の画像検索装置。 The mosaic image generation unit
Holds piece image usage history information,
When re-generating a new mosaic image using a piece image constituting the mosaic image displayed by the mosaic image display unit as an original image, it is used when generating a previous mosaic image with reference to the use history information. The image search device according to claim 3 or 4, wherein a piece image that has not been used or a piece image that has been used less frequently is preferentially used.
複数の画像データを入力処理する画像入力ステップと、
前記画像入力ステップにより入力される前記画像データから被写体を抽出し、被写体属性及び被写体領域情報を含む被写体情報タグを生成して前記画像データに関連付けるタグ生成ステップと、
前記複数の画像データを画像記憶部に記憶させる画像記憶ステップと、
モザイクにより表現すべき画像である元画像を設定する元画像設定ステップと、
前記元画像をタイル状に領域分割すると共に、前記元画像の前記被写体情報タグに基づいて、各タイル状分割領域の被写体区分を決定する元画像タイル状領域分割ステップと、
前記元画像のタイル状分割領域の画像に対し置き換え候補となるピース画像を前記画像記憶部から検索するピース画像検索ステップと、
前記元画像の各タイル状分割領域の画像を、前記候補となるピース画像の中から条件の合うもので置き換えてモザイク画像を生成するモザイク画像生成ステップと、
生成されたモザイク画像を表示するモザイク画像表示ステップとを含み、
前記ピース画像検索ステップでは、前記被写体情報タグに基づいて、前記元画像と同種の被写体を含むピース画像を検索し、
前記モザイク画像生成ステップでは、前記元画像の各タイル状分割領域の前記被写体区分に基づいて、同種の被写体を含むピース画像を割り当てる
画像検索方法。 An image search method for performing an image search using a mosaic image,
An image input step for input processing of a plurality of image data;
A tag generation step of extracting a subject from the image data input by the image input step, generating a subject information tag including subject attributes and subject region information, and associating the subject information tag with the image data;
An image storage step of storing the plurality of image data in an image storage unit;
An original image setting step for setting an original image which is an image to be expressed by a mosaic;
An original image tiled region dividing step for dividing the original image into tiles and determining subject classification of each tiled divided region based on the subject information tag of the original image;
A piece image search step of searching the image storage unit for a piece image that is a candidate for replacement with respect to the image of the tiled divided area of the original image;
A mosaic image generating step of generating a mosaic image by replacing the image of each tiled divided region of the original image with a piece image that satisfies the conditions from the candidate piece images;
A mosaic image display step for displaying the generated mosaic image,
In the piece image search step, based on the subject information tag, a piece image including the same type of subject as the original image is searched,
In the mosaic image generating step, an image search method for allocating piece images including the same type of subject based on the subject classification of each tiled divided region of the original image.
請求項6記載の画像検索方法。 The original image setting step sets an image selected by the user as an original image from the images stored in the image storage unit or the piece images constituting the mosaic image displayed in the mosaic image display step. The image search method described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005136552A JP2006313497A (en) | 2005-05-09 | 2005-05-09 | Apparatus and method for retrieving image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005136552A JP2006313497A (en) | 2005-05-09 | 2005-05-09 | Apparatus and method for retrieving image |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006313497A true JP2006313497A (en) | 2006-11-16 |
Family
ID=37534956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005136552A Pending JP2006313497A (en) | 2005-05-09 | 2005-05-09 | Apparatus and method for retrieving image |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006313497A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011078379A1 (en) * | 2009-12-25 | 2011-06-30 | 楽天株式会社 | Image generation device, image generation method, image generation program, and recording medium |
JP2014038356A (en) * | 2013-10-31 | 2014-02-27 | Zenrin Datacom Co Ltd | Information output device and information output method |
KR20200099271A (en) * | 2019-02-14 | 2020-08-24 | 엔에이치엔 주식회사 | Method that provides and creates mosaic image based on image tag-word |
-
2005
- 2005-05-09 JP JP2005136552A patent/JP2006313497A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011078379A1 (en) * | 2009-12-25 | 2011-06-30 | 楽天株式会社 | Image generation device, image generation method, image generation program, and recording medium |
JP5179672B2 (en) * | 2009-12-25 | 2013-04-10 | 楽天株式会社 | Image generation apparatus, image generation method, image generation program, and recording medium |
US9256921B2 (en) | 2009-12-25 | 2016-02-09 | Rakuten, Inc. | Image generation device, image generation method, image generation program, and recording medium |
JP2014038356A (en) * | 2013-10-31 | 2014-02-27 | Zenrin Datacom Co Ltd | Information output device and information output method |
KR20200099271A (en) * | 2019-02-14 | 2020-08-24 | 엔에이치엔 주식회사 | Method that provides and creates mosaic image based on image tag-word |
JP2020135889A (en) * | 2019-02-14 | 2020-08-31 | エヌエイチエヌ コーポレーション | Method for creating and providing mosaic image according to tag of image |
KR102241486B1 (en) * | 2019-02-14 | 2021-05-17 | 엔에이치엔 주식회사 | Method that provides and creates mosaic image based on image tag-word |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9483500B2 (en) | Automatic discovery of popular landmarks | |
US7978936B1 (en) | Indicating a correspondence between an image and an object | |
CN107870959A (en) | Inquired about in response to video search and associated video scene is provided | |
US20110122153A1 (en) | Information processing apparatus, information processing method, and program | |
JP2011154687A (en) | Method and apparatus for navigating image data set, and program | |
US8731308B2 (en) | Interactive image selection method | |
US20090110300A1 (en) | Apparatus and method for processing image | |
US20080270378A1 (en) | Method, Apparatus and Computer Program Product for Determining Relevance and/or Ambiguity in a Search System | |
US20090119583A1 (en) | Image displaying apparatus, image display method, and image display system | |
US20080118160A1 (en) | System and method for browsing an image database | |
JP4643735B1 (en) | Electronic device and video processing method | |
US20100057722A1 (en) | Image processing apparatus, method, and computer program product | |
KR20100114082A (en) | Search based on document associations | |
JP5216591B2 (en) | Method and apparatus for enabling browsing of images | |
CN108377351A (en) | Image processing apparatus and image processing method for the laying out images in template | |
CN104217008A (en) | Interactive type labeling method and system for Internet figure video | |
JP2007011637A (en) | Image management device | |
JP2014092955A (en) | Similar content search processing device, similar content search processing method and program | |
JP2009217828A (en) | Image retrieval device | |
JP4976036B2 (en) | Image search support device | |
JP2006313497A (en) | Apparatus and method for retrieving image | |
JP2007102362A (en) | Automatic classification category forming device, automatic digital image content classification device and digital image content management system | |
US7274834B2 (en) | Searching device, searching method and program | |
JPH10254901A (en) | Method and device for retrieving image | |
JP2010211262A (en) | Information display device for image retrieval |