JP2005117437A - Blocked decorative image - Google Patents

Blocked decorative image Download PDF

Info

Publication number
JP2005117437A
JP2005117437A JP2003350214A JP2003350214A JP2005117437A JP 2005117437 A JP2005117437 A JP 2005117437A JP 2003350214 A JP2003350214 A JP 2003350214A JP 2003350214 A JP2003350214 A JP 2003350214A JP 2005117437 A JP2005117437 A JP 2005117437A
Authority
JP
Japan
Prior art keywords
image
color
block
decoration
processing apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2003350214A
Other languages
Japanese (ja)
Other versions
JP4148090B2 (en
Inventor
Toshinori Nagahashi
敏則 長橋
Takashi Hiuga
崇 日向
Naoki Kuwata
直樹 鍬田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2003350214A priority Critical patent/JP4148090B2/en
Publication of JP2005117437A publication Critical patent/JP2005117437A/en
Application granted granted Critical
Publication of JP4148090B2 publication Critical patent/JP4148090B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique capable of easily adding a decorative image matched with the color tone of a target image. <P>SOLUTION: A decorative image storage 260 stores a decorative image template FPT containing a plurality of blocks in which colors can be changed. A decorative image generator 230 analyzes the colors of the target image IP, and decides the colors of each of blocks L1-L26 of the decorative image template FPT corresponding to the results of analysis, thereby generating a decorative image FP to be added to the target image IP. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、対象画像に装飾画像を付加する技術に関する。   The present invention relates to a technique for adding a decoration image to a target image.

デジタルスチルカメラなどの画像生成装置で生成された画像を対象として、ディスプレイやプリンタなどの画像出力装置に出力する際、その対象画像の周囲に装飾画像(「フレーム画像」とも呼ぶ)が付加されることがある。この際、通常は、色調の異なる複数の装飾画像の中から対象画像の色調に調和するものがユーザ自らの判断により選択されていた。   When an image generated by an image generation apparatus such as a digital still camera is output to an image output apparatus such as a display or a printer, a decoration image (also referred to as a “frame image”) is added around the target image. Sometimes. At this time, normally, a plurality of decorative images having different color tones are selected according to the user's own judgment, in accordance with the color tone of the target image.

特開平10−320576号公報JP-A-10-320576 特開2002−300363号公報JP 2002-300363 A

しかしながら、装飾画像の色調を対象画像の色調に調和させることが困難な場合がある。特に、対象画像が種々の異なる色調を含むときには、対象画像の色調に調和する装飾画像を選択するのはかなり困難であった。   However, it may be difficult to harmonize the color tone of the decorative image with the color tone of the target image. In particular, when the target image includes various different color tones, it is quite difficult to select a decoration image that matches the color tone of the target image.

本発明は、上述した従来の課題を解決するためになされたものであり、対象画像の色調に調和する装飾画像を容易に付加することのできる技術を提供することを目的とする。   The present invention has been made to solve the above-described conventional problems, and an object of the present invention is to provide a technique capable of easily adding a decorative image that matches the color tone of a target image.

上記目的の少なくとも一部を達成するために、本発明の装置は、対象画像の周囲に装飾画像を付加するための画像処理装置であって、
色を変更可能な複数のブロックを含む装飾画像テンプレートを格納する装飾画像テンプレート格納部と、
前記対象画像の色を解析し、前記解析の結果に応じて前記装飾画像テンプレートの各ブロックの色を決定することによって、前記対象画像に付加される装飾画像を生成する装飾画像生成部と、
を備える。
In order to achieve at least a part of the above object, an apparatus of the present invention is an image processing apparatus for adding a decoration image around a target image,
A decoration image template storage unit for storing a decoration image template including a plurality of blocks whose colors can be changed;
A decoration image generation unit that generates a decoration image to be added to the target image by analyzing the color of the target image and determining the color of each block of the decoration image template according to a result of the analysis;
Is provided.

この画像処理装置によれば、対象画像の色を解析した結果に応じて装飾画像テンプレートの各ブロックの色を決定するので、対象画像の色調に調和する装飾画像を容易に付加することが可能である。   According to this image processing apparatus, since the color of each block of the decoration image template is determined according to the result of analyzing the color of the target image, it is possible to easily add a decoration image that matches the color tone of the target image. is there.

各ブロックの色は、各ブロックに隣接して前記対象画像内に設定される所定の色参照ブロックの色に応じて決定されるようにしてもよい。   The color of each block may be determined according to the color of a predetermined color reference block set in the target image adjacent to each block.

この構成によれば、各ブロックの色が、各ブロックに隣接する対象画像部分の色に応じて決定されるので、対象画像が種々の色を有している場合にも、各ブロックに適した色を決定することができる。   According to this configuration, since the color of each block is determined according to the color of the target image portion adjacent to each block, it is suitable for each block even when the target image has various colors. The color can be determined.

また、隣接するブロックの色は、前記隣接するブロック同士の境界で色のジャンプが生じず徐々に色が変化するように決定されるようにしてもよい。   Further, the color of adjacent blocks may be determined such that the color does not jump at the boundary between the adjacent blocks and the color gradually changes.

この構成によれば、隣接するブロック同士の境界が不自然に見えることを防止できる。   According to this structure, it can prevent that the boundary of adjacent blocks looks unnatural.

また、各ブロックの色は、前記色参照ブロックの色と異なる色に設定されるようにしてもよい。   The color of each block may be set to a color different from the color of the color reference block.

この構成によれば、対象画像と装飾画像との境界が不明瞭になることを防止することができる。   According to this configuration, it is possible to prevent the boundary between the target image and the decoration image from becoming unclear.

また、各ブロックの色相値は、前記色参照ブロックの色相値に所定の色相角を加算した色相値に設定されるようにしてもよい。   The hue value of each block may be set to a hue value obtained by adding a predetermined hue angle to the hue value of the color reference block.

この構成によれば、各ブロックの色を容易に決定することができる。   According to this configuration, the color of each block can be easily determined.

また、各ブロックの彩度値は、前記色参照ブロックの彩度値から所定値だけ低下した値に設定されるようにしてもよい。   In addition, the saturation value of each block may be set to a value lower than the saturation value of the color reference block by a predetermined value.

この構成によれば、対象画像と装飾画像の色をより調和させることができる。   According to this configuration, the colors of the target image and the decoration image can be more harmonized.

また、各ブロック内の各画素の色は、明度を示す第1の成分と、色相と彩度とを示すための第2と第3の成分で表されており、
前記装飾画像テンプレートは、少なくとも前記第1の成分を含む1つ以上の所定の成分が前記装飾画像生成部によって変更不可であることを表すとともに、残りの少なくとも1つ以上の所定の成分が前記装飾画像生成部によって変更可能であることを示す変更可否属性を含むようにしても良い。
The color of each pixel in each block is represented by a first component indicating brightness, and second and third components for indicating hue and saturation,
The decoration image template represents that at least one predetermined component including at least the first component cannot be changed by the decoration image generation unit, and at least one remaining predetermined component is the decoration. You may make it include the changeability attribute which shows that it can change by the image generation part.

この構成によれば、各ブロックの模様を変えずに色調のみを変更することが可能である。   According to this configuration, it is possible to change only the color tone without changing the pattern of each block.

なお、本発明は、種々の態様で実現することが可能であり、例えば、対象画像に装飾画像を付加するための画像処理方法および装置、画像処理システム、対象画像に装飾画像を付加した装飾付き画像を出力するための画像出力方法および装置、それらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、等の態様で実現することができる。   The present invention can be realized in various modes. For example, an image processing method and apparatus for adding a decoration image to a target image, an image processing system, and a decoration with a decoration image added to the target image The present invention can be realized in the form of an image output method and apparatus for outputting an image, a computer program for realizing the functions of the method or apparatus, a recording medium on which the computer program is recorded, and the like.

次に、本発明を実施するための最良の形態を実施例に基づいて以下の順序で説明する。
A.実施例:
B.変形例:
Next, the best mode for carrying out the present invention will be described in the following order based on examples.
A. Example:
B. Variation:

A.実施例:
図1は、本発明の一実施例としての画像処理システム100を示す説明図である。この画像処理システム100は、デジタルスチルカメラ110とパーソナルコンピュータ120とカラープリンタ140とを備えている。パーソナルコンピュータ120に組み込まれている画像処理装置200は、デジタルスチルカメラ110で生成された入力画像に装飾画像を付加することによって装飾付き画像を生成する機能を有する。
A. Example:
FIG. 1 is an explanatory diagram showing an image processing system 100 as an embodiment of the present invention. The image processing system 100 includes a digital still camera 110, a personal computer 120, and a color printer 140. The image processing apparatus 200 incorporated in the personal computer 120 has a function of generating a decorative image by adding a decorative image to an input image generated by the digital still camera 110.

なお、本実施例ではパーソナルコンピュータ120に画像処理装置200を組み込んでいるが、カラープリンタ140に画像処理装置200を組み込むことも可能であり、デジタルスチルカメラ110に画像処理装置200を組み込んでも良い。   In this embodiment, the image processing apparatus 200 is incorporated in the personal computer 120. However, the image processing apparatus 200 may be incorporated in the color printer 140, and the image processing apparatus 200 may be incorporated in the digital still camera 110.

図2は、実施例における画像処理装置200の構成を示すブロック図である。画像処理装置200は、入力画像取得部210と、装飾画像生成部230と、画像合成部240と、出力画像生成部250と、装飾画像格納部260とを備えている。これらの各部の機能は、コンピュータプログラムによって実現されている。   FIG. 2 is a block diagram illustrating a configuration of the image processing apparatus 200 in the embodiment. The image processing apparatus 200 includes an input image acquisition unit 210, a decoration image generation unit 230, an image composition unit 240, an output image generation unit 250, and a decoration image storage unit 260. The functions of these units are realized by a computer program.

図3は、この画像処理装置200の処理の概要を示している。入力画像取得部210(図2)は、画像データファイルGDから図3(A)に示すような入力画像IP(「対象画像」とも呼ぶ)を取得する。この入力画像は、通常はカラー写真である。装飾画像格納部260は、図3(B)に示すような装飾画像テンプレートFPTを格納している。この装飾画像テンプレートFPTは、対象画像を配置するための画像割付領域MAを中央に有しており、また、画像割付領域MAの周囲に設けられたフレーム領域FAを有している。フレーム領域FAは、複数のフレームブロックL1〜L26(単に「ブロック」とも呼ぶ)に区分されている。1つのフレームブロックは、複数の画素で構成されている。各フレームブロックL1〜L26は、その模様が所定のパターンに固定されているが、ブロック内の色は入力画像IPの色に応じて変更可能である。この詳細については後述する。なお、装飾画像格納部260は、模様が異なる複数種類の装飾画像テンプレートFPTを格納しており、その中の1つがユーザによって選択される。   FIG. 3 shows an outline of processing of the image processing apparatus 200. The input image acquisition unit 210 (FIG. 2) acquires an input image IP (also referred to as “target image”) as shown in FIG. 3A from the image data file GD. This input image is usually a color photograph. The decorative image storage unit 260 stores a decorative image template FPT as shown in FIG. This decoration image template FPT has an image allocation area MA for arranging the target image in the center, and also has a frame area FA provided around the image allocation area MA. The frame area FA is divided into a plurality of frame blocks L1 to L26 (also simply referred to as “blocks”). One frame block is composed of a plurality of pixels. The pattern of each of the frame blocks L1 to L26 is fixed to a predetermined pattern, but the color in the block can be changed according to the color of the input image IP. Details of this will be described later. The decoration image storage unit 260 stores a plurality of types of decoration image templates FPT having different patterns, and one of them is selected by the user.

装飾画像生成部230(図2)は、ユーザの選択指示に応じて装飾画像格納部260から装飾画像テンプレートFPTを取得する。そして、入力画像IPの色を解析し、その解析結果に応じてフレームブロックL1〜L26の色をそれぞれ決定することによって、入力画像IPに付加される装飾画像FPを生成する。画像合成部240は、この装飾画像FPと入力画像IPとを合成して、図3(C)に示す装飾付き画像SP(「フレーム付き画像」とも呼ぶ)を生成する。この装飾付き画像SPは、出力画像生成部250において必要に応じて画質調整がなされた後、出力データ(印刷データ)PDとしてプリンタ140に出力される。   The decoration image generation unit 230 (FIG. 2) acquires the decoration image template FPT from the decoration image storage unit 260 in accordance with a user's selection instruction. Then, the color of the input image IP is analyzed, and the decoration block FP added to the input image IP is generated by determining the colors of the frame blocks L1 to L26 according to the analysis result. The image composition unit 240 synthesizes the decoration image FP and the input image IP to generate an image SP with decoration (also referred to as “image with frame”) shown in FIG. The decoration-added image SP is output to the printer 140 as output data (print data) PD after image quality adjustment is performed as necessary in the output image generation unit 250.

図4は、装飾画像テンプレートFPTのデータ構造300を示す説明図である。図4(A)に示すように、このデータ構造300は、ヘッダ302とフレームブロック画像格納部304とを含んでいる。図4(B)に示すように、ヘッダ302は、装飾画像テンプレートFPTであることを示す識別子310と、データの形式を示すデータ形式識別コード312と、フレーム領域FA(図3(B))の形状を表すデータ314と、画像割付領域MAの形状を表すデータ316とを含んでいる。また、図4(C)に示すように、フレームブロック画像格納部304は、フレームブロック数を示すデータ320と、複数のフレームブロックの画像を表す複数のブロック画像データ322とを含んでいる。   FIG. 4 is an explanatory diagram showing the data structure 300 of the decoration image template FPT. As shown in FIG. 4A, the data structure 300 includes a header 302 and a frame block image storage unit 304. As shown in FIG. 4B, the header 302 includes an identifier 310 indicating a decoration image template FPT, a data format identification code 312 indicating a data format, and a frame area FA (FIG. 3B). Data 314 representing the shape and data 316 representing the shape of the image allocation area MA are included. As shown in FIG. 4C, the frame block image storage unit 304 includes data 320 indicating the number of frame blocks and a plurality of block image data 322 representing images of a plurality of frame blocks.

1つのブロック画像データ322は、装飾画像内におけるフレームブロックの位置を示すデータ330と、フレームブロックの形状を示すデータ332と、フレームブロック内のカラー画像を表す3つの画像成分データ334,336,338と、色参照ブロックデータ340とを含んでいる。色参照ブロックデータ340は、そのフレームブロックの色を決定するために参照される入力画像IP内の画像部分(「色参照ブロック」と呼ぶ)の位置を示すデータである。色参照ブロックについては後述する。   One block image data 322 includes data 330 indicating the position of the frame block in the decoration image, data 332 indicating the shape of the frame block, and three image component data 334, 336 and 338 representing the color image in the frame block. And color reference block data 340. The color reference block data 340 is data indicating the position of an image portion (referred to as “color reference block”) in the input image IP that is referred to in order to determine the color of the frame block. The color reference block will be described later.

フレームブロック内のカラー画像を表すための3つの画像成分データ334,336,338は、そのフレームブロック内における色相H(Hue)分布と、彩度S(Saturation)分布と明度V(Value)分布とをそれぞれ示している。3つの画像成分データ334,336,338のそれぞれの先頭には、変更禁止ビットMIBが付されている。この変更禁止ビットMIBが「1」のデータは、装飾画像生成部230がそのデータの値を変更できないことを示しており、変更禁止ビットMIBが「0」のデータはそのデータの値を変更できることを示している。なお、変更禁止ビットMIB自身は書き換え不能なデータである。ここで、「データが書き換え不能」とは、装飾画像生成部230の機能を実現するプログラムが、そのデータを書き換えられないように構成されていることを意味する。本実施例では、色相データ334の変更禁止ビットMIBは0(変更可)であり、彩度データ336と明度データ338の変更禁止ビットMIBは1(変更不可)である。従って、この装飾画像テンプレートFPTの各フレームブロックは、装飾画像生成部230によって色相データ334は変更され得るが、彩度データ336と明度データ338は変更されない。彩度データ336と明度データ338は、ブロック画像の模様(明暗の模様)を表現しているので、ブロック画像の色相データ334の値を変更すると、模様は変更されずに色調のみが変更される。   Three image component data 334, 336, and 338 for representing a color image in a frame block include a hue H (Hue) distribution, a saturation S (Saturation) distribution, and a lightness V (Value) distribution in the frame block. Respectively. A change prohibiting bit MIB is attached to the head of each of the three image component data 334, 336, and 338. Data whose change prohibition bit MIB is “1” indicates that the decoration image generation unit 230 cannot change the value of the data, and data whose change prohibition bit MIB is “0” can change the value of the data. Is shown. The change prohibition bit MIB itself is rewritable data. Here, “data cannot be rewritten” means that the program that realizes the function of the decoration image generation unit 230 is configured so that the data cannot be rewritten. In the present embodiment, the change prohibition bit MIB of the hue data 334 is 0 (changeable), and the change prohibition bit MIB of the saturation data 336 and the lightness data 338 is 1 (changeable). Therefore, the hue data 334 of each frame block of the decoration image template FPT can be changed by the decoration image generation unit 230, but the saturation data 336 and the lightness data 338 are not changed. Since the saturation data 336 and the lightness data 338 represent the pattern of the block image (light and dark pattern), when the value of the hue data 334 of the block image is changed, only the color tone is changed without changing the pattern. .

図5は、各フレームブロックL1〜L26の色相の決定方法を示す説明図である。図5(A)に示されているように、画像割付領域MAの最外周には、装飾画像のフレームブロックL1〜L26の内側に隣接する色参照ブロックR1〜R18が設けられている。1つの色参照ブロックは、複数の画素で構成されている。矢印で示されているように、各フレームブロックの色は、そのフレームブロックに隣接する色参照ブロックの色を参照して決定される。図5(B)は、入力画像IPと色参照ブロックR1〜R18との関係を示している。色参照ブロックR1〜R18は、フレーム領域FAの内側に隣接した画像割付領域MAの最外周に設けられているので、色参照ブロックR1〜R18は入力画像IP内にある。なお、各フレームブロックL1〜L26の色を決定する際に参照する色参照ブロックの位置は、色参照ブロックデータ340(図4(C))によって予め指定されている。   FIG. 5 is an explanatory diagram showing a method for determining the hue of each of the frame blocks L1 to L26. As shown in FIG. 5A, color reference blocks R1 to R18 adjacent to the inside of the decorative image frame blocks L1 to L26 are provided on the outermost periphery of the image allocation area MA. One color reference block is composed of a plurality of pixels. As indicated by the arrows, the color of each frame block is determined with reference to the color of the color reference block adjacent to that frame block. FIG. 5B shows the relationship between the input image IP and the color reference blocks R1 to R18. Since the color reference blocks R1 to R18 are provided on the outermost periphery of the image allocation area MA adjacent to the inside of the frame area FA, the color reference blocks R1 to R18 are in the input image IP. Note that the position of the color reference block that is referred to when determining the color of each of the frame blocks L1 to L26 is designated in advance by the color reference block data 340 (FIG. 4C).

図5(A)の下部に記載されているように、i番目のフレームブロックLiの色相値Hiは、以下の(1)式で与えられる。
Hi=(隣接する色参照ブロックの平均色相値)+α° …(1)
ここで、αは予め設定された定数であり、色相角の単位で表わされた値を有している。
As described in the lower part of FIG. 5A, the hue value Hi of the i-th frame block Li is given by the following equation (1).
Hi = (Average hue value of adjacent color reference block) + α ° (1)
Here, α is a preset constant and has a value expressed in units of hue angle.

例えばα=0°に設定すれば、フレームブロックLiの色相値Hiは、色参照ブロックの色相値と等しい値に設定される。また、α=180°に設定すれば、フレームブロックLiの色相値Hiは、色参照ブロックの色相値と補色の関係にある色相値に設定される。あるいは、α=30°または−30°に設定すれば、フレームブロックLiの色相値Hiは、色参照ブロックの色相値と近似した所定の関係にある色相値に設定される。なお、α=0°に設定した場合には、フレームブロックLiの色と、その内側に隣接する入力画像IPの色とがかなり近い色になり、その境界が不明瞭になる可能性がある。この点を考慮すれば、αとしてゼロでない所定の値を設定することが好ましい。   For example, if α = 0 ° is set, the hue value Hi of the frame block Li is set to a value equal to the hue value of the color reference block. If α is set to 180 °, the hue value Hi of the frame block Li is set to a hue value that has a complementary color relationship with the hue value of the color reference block. Alternatively, if α is set to 30 ° or −30 °, the hue value Hi of the frame block Li is set to a hue value having a predetermined relationship approximate to the hue value of the color reference block. When α = 0 ° is set, the color of the frame block Li and the color of the input image IP adjacent to the inside of the frame block Li become very close to each other, and the boundary may be unclear. Considering this point, it is preferable to set a predetermined value which is not zero as α.

なお、図4(C)のデータ構造では、色相データ334のみが変更可能であるものとしたが、この代わりに、色相データ334と彩度データ336を変更可能に設定することも可能である。この場合には、フレームブロックの色相と彩度が色参照ブロックの色相と彩度に応じてそれぞれ決定される。このとき、フレームブロックの色相と彩度のうちの一方は色参照ブロックの値と等しい値に設定し、他方を色参照ブロックの値と異なる値に設定することも可能である。具体的には、フレームブロックの色相は色参照ブロックの色相と等しい値に設定し、彩度は色参照ブロックの彩度よりもやや小さな値に設定することができる。このように色相を等しく保って装飾画像の彩度を低下させるようにすれば、フレームブロックの色を入力画像の色に調和させることができる場合が多い。   In the data structure of FIG. 4C, only the hue data 334 can be changed. Instead, the hue data 334 and the saturation data 336 can be set to be changeable. In this case, the hue and saturation of the frame block are determined according to the hue and saturation of the color reference block, respectively. At this time, one of the hue and saturation of the frame block can be set to a value equal to the value of the color reference block, and the other can be set to a value different from the value of the color reference block. Specifically, the hue of the frame block can be set to a value equal to the hue of the color reference block, and the saturation can be set to a value slightly smaller than the saturation of the color reference block. In this way, if the hue is kept equal and the saturation of the decorative image is lowered, the color of the frame block can often be matched with the color of the input image.

上記(1)式で決定されたフレームブロックLiの色相値Hiは、そのフレームブロックLiの全画素に適用することが可能である。但し、本実施例では、隣接するフレームブロック同士の境界で色のジャンプが生じないように、以下の(2)式に従って色相値H(x)が算出される。
H(x)=k(x)Hi-1+{1−k(x)}Hi …(2)
ここで、座標xは、図5(C)に示すように、(i−1)番目のフレームブロックLi-1の中心からi番目のフレームブロックLiの中心までの距離を示しており、k(x)は座標xに依存する重み係数、Hi-1,Hiは(i−1)番目とi番目のフレームブロックの中心における色相値である。なお、Hi-1,Hiは上述した(1)式で得られた色相値を用いることができる。
The hue value Hi of the frame block Li determined by the above equation (1) can be applied to all the pixels of the frame block Li. However, in this embodiment, the hue value H (x) is calculated according to the following equation (2) so that a color jump does not occur at the boundary between adjacent frame blocks.
H (x) = k (x) Hi-1 + {1-k (x)} Hi (2)
Here, the coordinate x indicates the distance from the center of the (i-1) th frame block Li-1 to the center of the ith frame block Li, as shown in FIG. x) is a weighting factor depending on the coordinate x, and Hi-1 and Hi are hue values at the centers of the (i-1) -th and i-th frame blocks. Note that the hue values obtained by the above-described equation (1) can be used as Hi-1 and Hi.

このように、徐々に色が変化するように各フレームブロック内の色分布を決定すれば、フレームブロック同士の境界が目立つことが無く、より自然な装飾画像を得ることができる。なお、本実施例では色相値のみを変化させるようにしていたが、色相値と彩度値の両方を変化させるようにしてもよい。この場合にも、明度は、テンプレートFPTで設定されていた値に維持されることが好ましい。また、上記(2)式のように直線的に色を変化させる代わりに、所定の曲線的特性に沿って色を変化させるようにしてもよい。   Thus, if the color distribution in each frame block is determined so that the color gradually changes, the boundary between the frame blocks does not stand out, and a more natural decorative image can be obtained. In the present embodiment, only the hue value is changed, but both the hue value and the saturation value may be changed. Also in this case, it is preferable that the brightness is maintained at the value set in the template FPT. Further, instead of changing the color linearly as in the above equation (2), the color may be changed along a predetermined curvilinear characteristic.

以上のように、本実施例によれば、色が変更可能な複数のフレームブロックで装飾画像テンプレートFPTを構成したので、各フレームブロックに隣接する入力画像IPの色に応じて各フレームブロックの色を設定することができる。この結果、入力画像IPと色が調和する装飾画像を容易に得ることが可能である。   As described above, according to this embodiment, since the decoration image template FPT is configured by a plurality of frame blocks whose colors can be changed, the color of each frame block according to the color of the input image IP adjacent to each frame block. Can be set. As a result, it is possible to easily obtain a decorative image whose color matches the input image IP.

B.変形例:
なお、この発明は上記実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
B. Variation:
In addition, this invention is not restricted to the said Example and embodiment, It can implement in a various aspect in the range which does not deviate from the summary, For example, the following deformation | transformation is also possible.

B1.変形例1:
上記実施例では、画像処理装置200は、複数の装飾画像テンプレートFPTが格納された装飾画像格納部260を備えるものとしているが、装飾画像格納部260はインターネットなどのコンピュータネットワークに接続されたサーバなどに設けられていても良い。この場合には、ネットワークで接続された複数の装置によって、装飾画像を対象画像に付加するための画像処理装置または画像処理システムが構成される。
B1. Modification 1:
In the above embodiment, the image processing apparatus 200 includes the decoration image storage unit 260 in which a plurality of decoration image templates FPT are stored. The decoration image storage unit 260 may be a server connected to a computer network such as the Internet. May be provided. In this case, an image processing apparatus or an image processing system for adding a decoration image to the target image is configured by a plurality of devices connected via a network.

B2.変形例2:
上記実施例では、各画像成分の変更の可否の属性は、各画像成分の先頭に埋め込まれた変更禁止ビットMIBで表されていたが、各画像成分が変更可能な否かは、装飾画像テンプレートFPT内の他の位置に設定されていても良く、例えばヘッダ302に設定されていてもよい。
B2. Variation 2:
In the above embodiment, the attribute of whether or not each image component can be changed is represented by the change prohibition bit MIB embedded at the head of each image component. However, whether or not each image component can be changed depends on the decoration image template. It may be set at another position in the FPT, and may be set in the header 302, for example.

B3.変形例3:
上記実施例では、フレームブロックの色をHSV表色系で表現していたが、他の任意の表色系の成分値を用いることが可能である。この場合に、明度を表すための1つの成分と、色相と彩度を表すための2つの成分とを用いる表色系を利用することが望ましい。なお、色相と彩度を表す2つの成分としては、2つの色差成分なども利用可能である。また、一般には、ブロック画像を表現する3つの成分のうちの少なくとも1つの成分が変更可能に設定され、残りの少なくとも1つの成分が変更不可に設定されていればよい。但し、少なくとも明度を表す成分が変更不可に設定され、少なくとも色相を表す成分が変更可能に設定されていることが好ましい。こうすれば、フレームブロックの模様を変更することなく、色調のみを変更することが可能である。また、フレームブロックの彩度値を、色参照ブロックの彩度値よりも低い値(例えば所定値だけ低下させた値)に設定すれば、より調和した色調が得られる場合がある。
B3. Variation 3:
In the above embodiment, the color of the frame block is expressed in the HSV color system, but it is possible to use component values of other arbitrary color systems. In this case, it is desirable to use a color system that uses one component for representing lightness and two components for representing hue and saturation. Note that two color difference components can be used as the two components representing the hue and saturation. In general, at least one of the three components representing the block image may be set to be changeable, and the remaining at least one component may be set to be unchangeable. However, it is preferable that at least a component representing brightness is set to be unchangeable, and at least a component representing hue is set to be changeable. In this way, it is possible to change only the color tone without changing the pattern of the frame block. If the saturation value of the frame block is set to a value lower than the saturation value of the color reference block (for example, a value reduced by a predetermined value), a more harmonious color tone may be obtained.

B4.変形例4:
各フレームブロックの色は、上述した(1)式や(2)式以外の方法で決定してもよい。一般には、各フレームブロックの色を、対象画像の色を解析することによって決定することが好ましい。
B4. Variation 4:
The color of each frame block may be determined by a method other than the above-described equations (1) and (2). In general, it is preferable to determine the color of each frame block by analyzing the color of the target image.

B5.変形例5:
上記実施例では、装飾画像が複数のフレームブロックで構成されるものとしていたが、装飾画像がフレームブロック以外の構成要素を有していてもよい。例えば、フレームブロック内に配置された画像部品を含んでいてもよい。装飾画像は、一般に、複数のブロックを含むものとして構成することができる。この場合にも、各ブロックの色を対象画像の色を解析することによって決定するようにすれば、各ブロックの色を対象画像の色に調和させることができる。
B5. Modification 5:
In the above embodiment, the decoration image is composed of a plurality of frame blocks, but the decoration image may have components other than the frame blocks. For example, it may include image parts arranged in the frame block. In general, the decorative image can be configured to include a plurality of blocks. Also in this case, if the color of each block is determined by analyzing the color of the target image, the color of each block can be harmonized with the color of the target image.

B6.変形例6:
上記実施例では、装飾画像が対象画像の全周にわたって設けられているものとしていたが、装飾画像が対象画像の周囲の一部のみに設けられていてもよい。
B6. Variation 6:
In the above embodiment, the decoration image is provided over the entire circumference of the target image, but the decoration image may be provided only in a part of the periphery of the target image.

本発明の一実施例としての画像処理システム100を示す説明図。1 is an explanatory diagram showing an image processing system 100 as an embodiment of the present invention. 第1実施例における画像処理装置200の構成を示すブロック図。1 is a block diagram illustrating a configuration of an image processing apparatus 200 according to a first embodiment. 画像処理装置200の処理の概要を示す説明図。Explanatory drawing which shows the outline | summary of a process of the image processing apparatus. 装飾画像テンプレートFPTのデータ構造300を示す説明図。Explanatory drawing which shows the data structure 300 of the decoration image template FPT. 各フレームブロックL1〜L26の色の決定方法を示す説明図。Explanatory drawing which shows the determination method of the color of each frame block L1-L26.

符号の説明Explanation of symbols

100…画像処理システム
110…デジタルスチルカメラ
120…パーソナルコンピュータ
140…カラープリンタ
200…画像処理装置
210…入力画像取得部
230…装飾画像生成部
240…画像合成部
250…出力画像生成部
260…装飾画像格納部(装飾画像テンプレート格納部)
300…データ構造
302…ヘッダ
304…フレームブロック画像格納部
310…識別子
312…データ形式識別コード
314…フレーム領域形状データ
316…画像割付領域形状データ
320…フレームブロック数データ
322…ブロック画像データ
330…ブロック位置データ
332…ブロック形状データ
334…色相データ
336…彩度データ
338…明度データ
340…色参照ブロックデータ
DESCRIPTION OF SYMBOLS 100 ... Image processing system 110 ... Digital still camera 120 ... Personal computer 140 ... Color printer 200 ... Image processing apparatus 210 ... Input image acquisition part 230 ... Decoration image generation part 240 ... Image composition part 250 ... Output image generation part 260 ... Decoration image Storage unit (decorative image template storage unit)
DESCRIPTION OF SYMBOLS 300 ... Data structure 302 ... Header 304 ... Frame block image storage part 310 ... Identifier 312 ... Data format identification code 314 ... Frame area shape data 316 ... Image allocation area shape data 320 ... Frame block number data 322 ... Block image data 330 ... Block Position data 332 ... Block shape data 334 ... Hue data 336 ... Saturation data 338 ... Lightness data 340 ... Color reference block data

Claims (9)

対象画像の周囲に装飾画像を付加するための画像処理装置であって、
色を変更可能な複数のブロックを含む装飾画像テンプレートを格納する装飾画像テンプレート格納部と、
前記対象画像の色を解析し、前記解析の結果に応じて前記装飾画像テンプレートの各ブロックの色を決定することによって、前記対象画像に付加される装飾画像を生成する装飾画像生成部と、
を備える画像処理装置。
An image processing apparatus for adding a decoration image around a target image,
A decoration image template storage unit for storing a decoration image template including a plurality of blocks whose colors can be changed;
A decoration image generation unit that generates a decoration image to be added to the target image by analyzing the color of the target image and determining the color of each block of the decoration image template according to a result of the analysis;
An image processing apparatus comprising:
請求項1記載の画像処理装置であって、
各ブロックの色は、各ブロックに隣接して前記対象画像内に設定される所定の色参照ブロックの色に応じて決定される、画像処理装置。
The image processing apparatus according to claim 1,
The color of each block is determined according to the color of a predetermined color reference block set in the target image adjacent to each block.
請求項2記載の画像処理装置であって、
隣接するブロックの色は、前記隣接するブロック同士の境界で色のジャンプが生じず徐々に色が変化するように決定される、画像処理装置。
The image processing apparatus according to claim 2,
The color of adjacent blocks is determined so that color jump does not occur at the boundary between the adjacent blocks and the color gradually changes.
請求項2または3記載の画像処理装置であって、
各ブロックの色は、前記色参照ブロックの色と異なる色に設定される、画像処理装置。
The image processing apparatus according to claim 2 or 3,
The image processing apparatus, wherein the color of each block is set to a color different from the color of the color reference block.
請求項4記載の画像処理装置であって、
各ブロックの色相値は、前記色参照ブロックの色相値に所定の色相角を加算した色相値に設定される、画像処理装置。
The image processing apparatus according to claim 4,
The image processing apparatus, wherein the hue value of each block is set to a hue value obtained by adding a predetermined hue angle to the hue value of the color reference block.
請求項2または5記載の画像処理装置であって、
各ブロックの彩度値は、前記色参照ブロックの彩度値よりも低い値に設定される、画像処理装置。
The image processing apparatus according to claim 2, wherein:
The image processing apparatus, wherein the saturation value of each block is set to a value lower than the saturation value of the color reference block.
請求項1ないし6のいずれかに記載の画像処理装置であって、
各ブロック内の各画素の色は、明度を示す第1の成分と、色相と彩度とを示すための第2と第3の成分で表されており、
前記装飾画像テンプレートは、少なくとも前記第1の成分を含む1つ以上の所定の成分が前記装飾画像生成部によって変更不可であることを表すとともに、残りの少なくとも1つ以上の所定の成分が前記装飾画像生成部によって変更可能であることを示す変更可否属性を含む、画像処理装置。
The image processing apparatus according to any one of claims 1 to 6,
The color of each pixel in each block is represented by a first component indicating brightness, and second and third components for indicating hue and saturation,
The decoration image template represents that at least one predetermined component including at least the first component cannot be changed by the decoration image generation unit, and at least one remaining predetermined component is the decoration. An image processing apparatus including a changeability attribute indicating that change is possible by an image generation unit.
対象画像の周囲に装飾画像を付加するための方法であって、
(a)色を変更可能な複数のブロックを含む装飾画像テンプレートを準備する工程と、
(b)前記対象画像の色を解析し、前記解析の結果に応じて前記装飾画像テンプレートの各ブロックの色を決定することによって、前記対象画像に付加される装飾画像を生成する工程と、
を備える方法。
A method for adding a decorative image around a target image,
(A) preparing a decorative image template including a plurality of blocks whose colors can be changed;
(B) analyzing a color of the target image, and determining a color of each block of the decorative image template according to a result of the analysis, thereby generating a decorative image to be added to the target image;
A method comprising:
対象画像の周囲に装飾画像を付加するためのコンピュータプログラムであって、
色を変更可能な複数のブロックを含む装飾画像テンプレートを格納するメモリから前記装飾画像テンプレートを読み出す機能と、
前記対象画像の色を解析し、前記解析の結果に応じて前記装飾画像テンプレートの各ブロックの色を決定することによって、前記対象画像に付加される装飾画像を生成する機能と、
をコンピュータに実現させるコンピュータプログラム。
A computer program for adding a decorative image around a target image,
A function of reading the decoration image template from a memory storing a decoration image template including a plurality of blocks whose colors can be changed;
A function of generating a decoration image to be added to the target image by analyzing a color of the target image and determining a color of each block of the decoration image template according to a result of the analysis;
A computer program that causes a computer to realize
JP2003350214A 2003-10-09 2003-10-09 Blocked decoration image Expired - Fee Related JP4148090B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003350214A JP4148090B2 (en) 2003-10-09 2003-10-09 Blocked decoration image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003350214A JP4148090B2 (en) 2003-10-09 2003-10-09 Blocked decoration image

Publications (2)

Publication Number Publication Date
JP2005117437A true JP2005117437A (en) 2005-04-28
JP4148090B2 JP4148090B2 (en) 2008-09-10

Family

ID=34541827

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003350214A Expired - Fee Related JP4148090B2 (en) 2003-10-09 2003-10-09 Blocked decoration image

Country Status (1)

Country Link
JP (1) JP4148090B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012003688A (en) * 2010-06-21 2012-01-05 Casio Comput Co Ltd Image processing device, method and program
JP2012151572A (en) * 2011-01-17 2012-08-09 Casio Comput Co Ltd Image output device, image output method, and program
JP2016048408A (en) * 2014-08-27 2016-04-07 富士フイルム株式会社 Image composition device and image composition method, and image composition program and recording medium having image composition program stored therein

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012003688A (en) * 2010-06-21 2012-01-05 Casio Comput Co Ltd Image processing device, method and program
JP2012151572A (en) * 2011-01-17 2012-08-09 Casio Comput Co Ltd Image output device, image output method, and program
JP2016048408A (en) * 2014-08-27 2016-04-07 富士フイルム株式会社 Image composition device and image composition method, and image composition program and recording medium having image composition program stored therein

Also Published As

Publication number Publication date
JP4148090B2 (en) 2008-09-10

Similar Documents

Publication Publication Date Title
KR100788053B1 (en) Color conversion method and profile generation method
JP4421761B2 (en) Image processing method and apparatus, and recording medium
US20090027732A1 (en) Image processing apparatus, image processing method, and computer program
JP4368513B2 (en) Image processing method and apparatus, and recording medium
JP2004274720A (en) Data conversion apparatus and data conversion program
US20060250411A1 (en) Apparatus and method to edit color profile
JP2009010893A (en) Image processing method and image processor
JP2007158824A (en) Image processor, flesh tone adjusting method, and program
US20050200923A1 (en) Image generation for editing and generating images by processing graphic data forming images
JP4124084B2 (en) Image processing apparatus, image processing method, and image processing program
JP4203808B2 (en) Image processing device
JP6614644B2 (en) Photo shooting game device, photo sticker creating device, photo shooting game device control method, and photo shooting game device control program
JP4148090B2 (en) Blocked decoration image
JP4211560B2 (en) Decorative image with multi-frame structure
JP4164674B2 (en) Color reduction processing apparatus and color reduction processing method
JP2002204375A (en) Conversion for display device or print of digital image
WO2000033207A1 (en) Digital image improvement through genetic image evolution
JP2004297438A (en) Image correction method, apparatus, and program
JP2006121416A (en) Method and apparatus of processing image, program and printer
JP2008042835A (en) Image processor, image processing method, program, and recording medium
WO2024042979A1 (en) Image file creation method and image file creation device
WO2024042976A1 (en) Image generation method, image file creating method, and image generation device
WO2024042974A1 (en) Picture file creating method and picture file creating device
WO2024042975A1 (en) Image file generation method and image file generation device
JP2011130087A (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060921

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071218

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080213

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080616

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120704

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees