JP2009171158A - Mosaic image generation apparatus, method, and program - Google Patents

Mosaic image generation apparatus, method, and program Download PDF

Info

Publication number
JP2009171158A
JP2009171158A JP2008006245A JP2008006245A JP2009171158A JP 2009171158 A JP2009171158 A JP 2009171158A JP 2008006245 A JP2008006245 A JP 2008006245A JP 2008006245 A JP2008006245 A JP 2008006245A JP 2009171158 A JP2009171158 A JP 2009171158A
Authority
JP
Japan
Prior art keywords
image
density value
color
material image
target
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
JP2008006245A
Other languages
Japanese (ja)
Other versions
JP4146506B1 (en
Inventor
Hiroshi Arimura
寛 有村
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.)
COMAP KK
Original Assignee
COMAP KK
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 COMAP KK filed Critical COMAP KK
Priority to JP2008006245A priority Critical patent/JP4146506B1/en
Application granted granted Critical
Publication of JP4146506B1 publication Critical patent/JP4146506B1/en
Priority to CN2009801022306A priority patent/CN101918979B/en
Priority to PCT/JP2009/050063 priority patent/WO2009090901A1/en
Publication of JP2009171158A publication Critical patent/JP2009171158A/en
Priority to US12/837,016 priority patent/US8456721B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a mosaic image generation technology for eliminating restriction regarding a material image based on an object image, and raising visibility of the object image and the material image. <P>SOLUTION: The mosaic image generation apparatus includes: a division means for dividing the object image to be the source of a mosaic image into a plurality of blocks; an object image processing means for calculating an average density value of each basic color in the divided blocks as a target density value, respectively; a determination means for determining an arrangement block in which one of a plurality of material images is to be arranged from among the plurality of blocks regardless of images of the blocks; a calculation means for calculating the average density value of each basic color in the material image; a color correction means for performing color correction of the material image so that the average density value of each basic color in the material image becomes the target density value of each basic color in the arrangement blocks, respectively, while holding density value distribution rates of each basic color of the material image, respectively; and an arrangement means for arranging the material image to which the color correction is performed by the color correction means in the arrangement blocks. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、複数の素材画像を用いてモザイク画像を生成するモザイク画像生成技術に関する。   The present invention relates to a mosaic image generation technique for generating a mosaic image using a plurality of material images.

複数の小さな画像(写真等)を並べて1つの大きな画像を生成する技法としてフォトモザイクがある。図15は、フォトモザイクの例を示す図である。フォトモザイクは、遠くから見る者501には一枚の大きな画像505を視認させ、近くから見る者502にはその一枚の大きな画像501を形成する複数の画像511、512、513及び514等を視認させることができる。以降、このようなフォトモザイク技術を単にモザイク技術とも表記し、またフォトモザイク技術で生成された画像505を単にモザイク画像とも表記する。またこのモザイク画像を形成する画像(例えば、画像511等)を素材画像と表記し、モザイク画像の元となる画像を対象画像と表記する。   A photo mosaic is a technique for generating a single large image by arranging a plurality of small images (photos, etc.). FIG. 15 is a diagram illustrating an example of a photo mosaic. The photo mosaic allows a person 501 viewing from a distance to view a single large image 505, and a person 502 viewing from a distance includes a plurality of images 511, 512, 513, and 514 that form the single large image 501. It can be visually recognized. Hereinafter, such a photo mosaic technique is also simply referred to as a mosaic technique, and an image 505 generated by the photo mosaic technique is also simply referred to as a mosaic image. An image forming the mosaic image (for example, the image 511) is referred to as a material image, and an image that is a source of the mosaic image is referred to as a target image.

現在、このようなモザイク画像を生成する各種ツールがインターネット等で提供されている。このような従来のモザイク画像作成ツールは、ユーザに1枚の対象画像と複数の素材画像を登録させ、以下に示す大きく2つの手法を用いてモザイク画像を作成する。   Currently, various tools for generating such mosaic images are provided on the Internet or the like. Such a conventional mosaic image creation tool allows a user to register one target image and a plurality of material images, and creates a mosaic image using two main methods described below.

第1の手法では、対象画像が所定数のブロックに分割され、複数の素材画像の中から各ブロックの色調及び形状に近い素材画像がそれぞれ抽出され、抽出された各素材画像が各ブロックにそれぞれ配置される。   In the first method, the target image is divided into a predetermined number of blocks, material images close to the color tone and shape of each block are extracted from a plurality of material images, and each extracted material image is assigned to each block. Be placed.

第2の手法では、対象画像が半透明の画像に変換され、複数の素材画像がモザイク状に配置され、この複数の素材画像の上に半透明の対象画像が重ね合わされる。   In the second method, the target image is converted into a translucent image, a plurality of material images are arranged in a mosaic pattern, and the translucent target image is superimposed on the plurality of material images.

このような従来手法は、以下に示す先行技術文献にもそれぞれ開示される。
特開2005−100120号公報 特開平11−341264号公報 特開2000−306083号公報
Such conventional methods are also disclosed in the following prior art documents.
Japanese Patent Laid-Open No. 2005-100120 JP-A-11-341264 JP 2000-306083 A

しかしながら、上述のような従来のモザイク画像生成手法では、以下のような問題点があった。   However, the conventional mosaic image generation method as described above has the following problems.

上述の第1手法では、ブロックの色調及び形状に合致する最適な素材画像が各ブロックにつきそれぞれ必要となる。よって、上述の第1手法では、モザイク画像の視認性を上げるためには分割されるブロック数よりも格段に多い素材画像が必要となってしまっていた。   In the first method described above, an optimum material image that matches the color tone and shape of the block is required for each block. Therefore, in the first method described above, in order to increase the visibility of the mosaic image, a material image much larger than the number of divided blocks is required.

更に、上述の第1手法では、各ブロックの色調及び形状に応じて各素材画像を配置すべきブロック位置が決められるため、各素材画像の配置が限定されてしまっていた。この結果、例えば、素材画像をユーザに提供させてフォトモザイクを生成するようなシステムの場合に、各ユーザに自身の素材画像の配置位置を指定させることができなかった。また、モザイク画像を完成させるのに必要な全ての素材画像が集まらなければ、その素材画像の配置を決めることができないため、モザイク画像を生成し始めることもできなかった。   Furthermore, in the above-described first method, since the block position where each material image is to be arranged is determined according to the color tone and shape of each block, the arrangement of each material image is limited. As a result, for example, in the case of a system in which a material image is provided to a user and a photo mosaic is generated, it is not possible for each user to specify an arrangement position of his / her material image. In addition, if all the material images necessary to complete the mosaic image are not collected, the arrangement of the material images cannot be determined, so that the generation of the mosaic image cannot be started.

一方、上述の第2手法では、素材画像の上に半透明の対象画像が重なることで素材画像と対象画像とが混色し素材画像の明度が落ちるため、素材画像の視認性が低下する場合があった。   On the other hand, in the above-described second method, the semi-transparent target image overlaps the material image, so that the material image and the target image are mixed and the brightness of the material image is lowered. there were.

本発明の目的は、このような問題点に鑑み、対象画像に応じた素材画像に関する制限をなくし、対象画像及び素材画像の視認性を向上させるモザイク画像生成技術を提供することである。   In view of such a problem, an object of the present invention is to provide a mosaic image generation technique that eliminates restrictions on a material image corresponding to a target image and improves the visibility of the target image and the material image.

本発明は、上述した課題を解決するために以下の構成を採用する。即ち、本発明の態様は、複数の素材画像を用いてモザイク画像を生成するモザイク画像生成装置が、モザイク画像の元となる対象画像を複数ブロックに分割する分割手段と、この分割手段により分割されたブロック内の各基本色の平均濃度値を目標濃度値としてそれぞれ算出する対象画像処理手段と、上記複数の素材画像のうちの1つの素材画像を配置すべき配置ブロックを上記複数ブロックの中からそのブロックの画像によらず決定する決定手段と、素材画像内の各基本色の平均濃度値をそれぞれ算出する算出手段と、素材画像の各基本色の濃度値分布率をそれぞれ保持しながらその素材画像内の各基本色の平均濃度値がそれぞれ配置ブロック内の各基本色の目標濃度値となるようにその素材画像を色補正する色補正手段と、この色補正手段により色補正された素材画像を配置ブロックに配置する配置手段とを備えるものである。   The present invention employs the following configuration in order to solve the above-described problems. That is, according to the aspect of the present invention, a mosaic image generating apparatus that generates a mosaic image using a plurality of material images is divided by a dividing unit that divides a target image that is a source of a mosaic image into a plurality of blocks, and the dividing unit. A target image processing means for calculating an average density value of each basic color in each block as a target density value, and an arrangement block in which one material image of the plurality of material images is to be arranged from the plurality of blocks. Determination means for determining regardless of the image of the block, calculation means for calculating the average density value of each basic color in the material image, and the material while maintaining the density value distribution ratio of each basic color of the material image Color correction means for color correcting the material image so that the average density value of each basic color in the image becomes the target density value of each basic color in the arrangement block, and this color correction method By those and a placement means for placing the material image color correction arrangement block.

ここで、基本色とは、画像領域に含まれる各画素の色を構成するための色を意味し、例えばRGB色モデルでは赤、緑、青であり、CMYK色モデルでは藍色、深紅色、黄色、黒である。濃度値とは、各画素の色を構成する各基本色の比率又は濃淡情報を意味する。また、濃度値分布率とは、その画像内の全画素における各基本色の濃度値の利用率を意味する。   Here, the basic color means a color for constituting the color of each pixel included in the image region, for example, red, green, and blue in the RGB color model, and indigo, deep red, and CMYK color models. Yellow and black. The density value means the ratio or density information of each basic color constituting the color of each pixel. Further, the density value distribution rate means the usage rate of the density value of each basic color in all pixels in the image.

本発明の態様では、モザイク画像を形成する素材画像は、対象画像内のそれを配置すべきブロック位置がその配置ブロックの画像に依存しないで決定される。素材画像は、その各基本色の濃度値分布率がそれぞれ保持されつつ、その素材画像に関し算出される各基本色の平均濃度値がそれを配置するブロックに関し決定される各基本色の目標濃度値となるように、色補正される。   In the aspect of the present invention, the material image forming the mosaic image is determined without depending on the image of the arrangement block of the block position where the mosaic image is to be arranged. In the material image, the density value distribution ratio of each basic color is held, and the average density value of each basic color calculated for the material image is determined for the block where the basic color is arranged. Color correction is performed so that

これにより、本発明の態様によれば、素材画像の配置を限定せず任意に決定することができるようにするために素材画像は配置先のブロックの色調に応じて色補正されるが、この素材画像は、元の画像の各基本色の濃度値分布率が保持された状態で色補正されるため、完成されたモザイク画像においてその素材画像の視認性を向上させることができる。更に、元となる対象画像の各ブロックの色調にそこに配置される素材画像の色調が合わせられるため、完成されたモザイク画像の視認性も向上させることができる。   As a result, according to the aspect of the present invention, the material image is color-corrected according to the color tone of the arrangement destination block so that the arrangement of the material image can be arbitrarily determined without limitation. Since the material image is color-corrected in a state where the density value distribution rate of each basic color of the original image is maintained, the visibility of the material image in the completed mosaic image can be improved. Furthermore, since the color tone of the material image arranged there is matched with the color tone of each block of the original target image, the visibility of the completed mosaic image can also be improved.

また、本発明の態様において好ましくは、各ブロックの色を上記対象画像処理手段により算出された目標濃度値にそれぞれ均一化した状態で、許容最低濃度値から所定範囲及び許容最高濃度値から所定範囲が利用されないように対象画像内の各基本色の濃度値分布率を圧縮し、この圧縮された濃度値分布に応じて各基本色の平均濃度値を目標濃度値として新たに算出する対象画像補正手段を更に備えるように構成し、上記色補正手段が、上記対象画像補正手段により新たに算出された目標濃度値を用いて、素材画像を色補正するように構成する。   In the aspect of the present invention, it is preferable that the color of each block be equalized to the target density value calculated by the target image processing unit, and the predetermined range from the allowable minimum density value and the predetermined range from the maximum allowable density value. Target image correction that compresses the density value distribution rate of each basic color in the target image so that it is not used, and newly calculates the average density value of each basic color as the target density value according to this compressed density value distribution And a color correction unit configured to color-correct the material image using the target density value newly calculated by the target image correction unit.

ここで、許容最低濃度値から所定範囲及び許容最高濃度値から所定範囲とは、例えばRGB色モデルにおける白及び黒に近い色を意味する。このような態様では、各ブロックの
目標濃度値は、対象画像全体としての各基本色の濃度値分布率が保持されながら所定の色調範囲が利用されないように変換された状態の対象画像に基づいて算出される。これにより、素材画像は、このように変換されたブロック画像の目標濃度値に応じて色補正されるため、許容最低濃度値から所定範囲及び許容最高濃度値から所定範囲が利用されないような色に補正される。
Here, the predetermined range from the allowable minimum density value and the predetermined range from the allowable maximum density value mean, for example, colors close to white and black in the RGB color model. In such an aspect, the target density value of each block is based on the target image that has been converted so that the predetermined tone range is not used while the density value distribution ratio of each basic color as the entire target image is maintained. Calculated. As a result, the material image is color-corrected according to the target density value of the block image thus converted, so that the predetermined range from the allowable minimum density value and the predetermined range from the maximum allowable density value are not used. It is corrected.

従って、このような態様によれば、素材画像が配置先のブロックの色調に応じて色補正されたとしても、素材画像の視認性の低下を防ぐことができる。例えば、RGB色モデルでいえば、素材画像が色補正された場合に白や黒に近い色になることで見え難くなるのを防ぐことができる。   Therefore, according to such an aspect, even if the material image is color-corrected according to the color tone of the arrangement destination block, it is possible to prevent the visibility of the material image from being lowered. For example, in the case of the RGB color model, when the material image is color-corrected, it can be prevented from becoming difficult to see due to a color close to white or black.

また、本発明の態様において好ましくは、以下のような構成により、素材画像の視認性を一層向上させるようにしてもよい。   In the aspect of the present invention, preferably, the visibility of the material image may be further improved by the following configuration.

好ましい態様としては、上記算出手段が、素材画像内の各基本色の最高濃度値をそれぞれ更に算出するようにし、上記色補正手段が、素材画像内の各基本色の平均濃度値がそれぞれ配置ブロック内の各基本色の目標濃度値となるようにその素材画像を色補正した場合に、少なくとも1つの基本色において色補正後の最高濃度値が許容最高濃度値を超えると判断すると、その少なくとも1つの基本色の濃度分布率を、色補正後の最高濃度値が許容最高濃度値となりかつ平均濃度値が目標濃度値となるように圧縮する第1濃度変換手段を含むように構成する。   As a preferred aspect, the calculation means further calculates the maximum density value of each basic color in the material image, and the color correction means sets the average density value of each basic color in the material image to the arrangement block. When the material image is color-corrected so as to be the target density value of each of the basic colors, if it is determined that the highest density value after color correction exceeds the allowable maximum density value for at least one basic color, at least one The density distribution ratios of the three basic colors are configured to include first density conversion means for compressing so that the highest density value after color correction becomes an allowable maximum density value and the average density value becomes a target density value.

また、好ましい態様としては、上記算出手段が、素材画像内の各基本色の最高濃度値及び最低濃度値をそれぞれ更に算出するようにし、上記色補正手段が、素材画像内の各基本色の平均濃度値がそれぞれ配置ブロック内の各基本色の目標濃度値となるようにその素材画像を色補正した場合に、少なくとも1つの基本色において色補正後の最高濃度値が許容最高濃度値を超えないと判断すると、その少なくとも1つの基本色の濃度分布を、色補正後の最低濃度値が許容最低濃度値となり平均濃度値が目標濃度値となるように伸張又は圧縮する第2濃度変換手段を含むように構成する。   In a preferred embodiment, the calculation means further calculates the maximum density value and the minimum density value of each basic color in the material image, and the color correction means calculates the average of each basic color in the material image. When the material image is color-corrected so that the density value becomes the target density value of each basic color in the arrangement block, the highest density value after color correction does not exceed the allowable maximum density value in at least one basic color The second density conversion means for expanding or compressing the density distribution of the at least one basic color so that the minimum density value after color correction becomes the allowable minimum density value and the average density value becomes the target density value. Configure as follows.

このような態様によれば、素材画像内の各基本色の平均濃度値を配置ブロックの各目標濃度値に合わせるように色補正したとしても、その素材画像の各基本色の濃度分布率は保持されるため、素材画像の視認性を向上させることができる。   According to such an aspect, even if the color correction is performed so that the average density value of each basic color in the material image matches the target density value of the arrangement block, the density distribution ratio of each basic color of the material image is maintained. Therefore, the visibility of the material image can be improved.

また、本発明の態様において好ましくは、素材画像をグレースケール画像に変換する素材画像変換手段を更に備え、上記算出手段が、上記素材画像変換手段により変換されたグレースケール画像から基本色のいずれか1色の平均濃度値を算出し、上記色補正手段が、グレースケール画像の濃度値分布率及び前記算出手段により算出された基本色のいずれか1色の平均濃度値を用いて素材画像を色補正するように構成する。   In the aspect of the present invention, preferably, the image processing apparatus further includes a material image conversion unit that converts the material image into a grayscale image, and the calculation unit selects any one of the basic colors from the grayscale image converted by the material image conversion unit. An average density value of one color is calculated, and the color correction unit colors the material image using the density value distribution ratio of the gray scale image and the average density value of one of the basic colors calculated by the calculation unit. Configure to correct.

ここで、グレーススケール画像とは、明度情報のみによって表現される画像であり、各画素の各基本色の濃度値がそれぞれ同一となる。よって、グレースケール画像に変換された素材画像は、各基本色の濃度値分布はそれぞれ同一となり、各基本色の平均濃度値もそれぞれ同一となる。   Here, the grace scale image is an image expressed only by lightness information, and the density value of each basic color of each pixel is the same. Therefore, in the material image converted into the gray scale image, the density value distribution of each basic color is the same, and the average density value of each basic color is also the same.

従って、このような態様によれば、基本色のうちのいずれか1色についてのみ平均濃度
値及び濃度値分布率を処理すればよいため、モザイク画像を生成するための計算量を削減することができる。加えて、グレースケール画像に変換することにより、素材画像の各基本色のばらつきを抑えることができるため、素材画像をブロック画像に近付けるように色補正した場合であっても元の素材画像に存在しなかった色の発生を防ぐことができる。よ
って、完成されたモザイク画像の視認性及び見易さを向上させることができる。
Therefore, according to such an aspect, since it is only necessary to process the average density value and the density value distribution rate for only one of the basic colors, the amount of calculation for generating a mosaic image can be reduced. it can. In addition, by converting to a grayscale image, variation in each basic color of the material image can be suppressed, so even if the material image is color-corrected so as to be close to the block image, it exists in the original material image It is possible to prevent the generation of colors that were not performed. Therefore, the visibility and visibility of the completed mosaic image can be improved.

なお、本発明の別態様として、上述したモザイク画像生成装置と同様の特徴を有するモザイク画像生成方法、情報処理装置(コンピュータ)をモザイク画像生成装置として機能させるプログラム、或いは、当該プログラムを記録したコンピュータが読み取り可能な記憶媒体としてもよい。   As another aspect of the present invention, a mosaic image generation method having the same characteristics as the above-described mosaic image generation apparatus, a program that causes an information processing apparatus (computer) to function as a mosaic image generation apparatus, or a computer that records the program May be a readable storage medium.

本発明によれば、対象画像に応じた素材画像に関する制限をなくし、対象画像及び素材画像の視認性を向上させるモザイク画像生成技術を実現することができる。   According to the present invention, it is possible to realize a mosaic image generation technique that eliminates the restriction on the material image corresponding to the target image and improves the visibility of the target image and the material image.

以下、図面を参照して、本発明の実施形態としてのモザイク画像生成装置について説明する。以下に示す各実施形態の構成はそれぞれ例示であり、本発明は各実施形態の構成に限定されるものではない。   Hereinafter, a mosaic image generating apparatus as an embodiment of the present invention will be described with reference to the drawings. The configuration of each embodiment shown below is an example, and the present invention is not limited to the configuration of each embodiment.

[第一実施形態]
以下、本発明の第一実施形態としてのモザイク画像生成装置について説明する。
[First embodiment]
Hereinafter, a mosaic image generating apparatus as a first embodiment of the present invention will be described.

〔装置構成〕
まず、本第一実施形態としてのモザイク画像生成装置の装置構成について図1を用いて説明する。図1は、第一実施形態としてのモザイク画像生成装置の概念的な機能構成を示す機能ブロック図である。
〔Device configuration〕
First, the apparatus configuration of the mosaic image generating apparatus as the first embodiment will be described with reference to FIG. FIG. 1 is a functional block diagram showing a conceptual functional configuration of a mosaic image generating apparatus as the first embodiment.

第一実施形態におけるモザイク画像生成装置は、ハードウェア構成として、CPU(Central Processing Unit)、メモリ(RAM(Random Access Memory)、ハードディスク
等)、入出力インタフェース等を備える。入出力インタフェースには、例えば、ディスプレイ等の表示装置、マウスやキーボード等の入力装置、ネットワークインタフェースカードやUSB(Universal Serial Bus)等の各種外部機器への接続装置等が接続される。第一実施形態におけるモザイク画像生成装置は、一般的なパーソナルコンピュータ等のような汎用コンピュータで構築されてもよいし、専用コンピュータで構築されてもよい。本発明は、モザイク画像生成装置のハードウェア構成を限定するものではない。
The mosaic image generating apparatus according to the first embodiment includes a CPU (Central Processing Unit), a memory (RAM (Random Access Memory), a hard disk, etc.), an input / output interface, and the like as a hardware configuration. For example, a display device such as a display, an input device such as a mouse or a keyboard, a connection device to various external devices such as a network interface card and USB (Universal Serial Bus), and the like are connected to the input / output interface. The mosaic image generating apparatus in the first embodiment may be constructed by a general-purpose computer such as a general personal computer or may be constructed by a dedicated computer. The present invention does not limit the hardware configuration of the mosaic image generating apparatus.

第一実施形態におけるモザイク画像生成装置は、ハードディスク等のメモリに記憶されるアプリケーションプログラムがCPUにより読み出され実行されることにより、図1に示す各機能部を実現する。図1に示す各機能部を実現するためのアプリケーションプログラムは、CD(Compact Disc)等の記録媒体からインストールされてもよいし、ネットワークを介してサーバからインストールされてもよい。   The mosaic image generating apparatus according to the first embodiment realizes each functional unit shown in FIG. 1 by reading and executing an application program stored in a memory such as a hard disk by a CPU. The application program for realizing each functional unit shown in FIG. 1 may be installed from a recording medium such as a CD (Compact Disc) or may be installed from a server via a network.

第一実施形態としてのモザイク画像生成装置は、図1に示すように、対象画像処理部10、対象画像変換部11、ブロック画像処理部12、素材画像取得部13、素材画像前処理部14、素材画像変換部15、素材画像算出部16、素材画像補正部17、モザイク画像生成部18等を有する。第一実施形態としてのモザイク画像生成装置は、このような各機能部が実行されることにより、対象画像及び複数の素材画像を用いて図15に示すようなモザイク画像を生成する。   As shown in FIG. 1, the mosaic image generating apparatus according to the first embodiment includes a target image processing unit 10, a target image conversion unit 11, a block image processing unit 12, a material image acquisition unit 13, a material image preprocessing unit 14, A material image conversion unit 15, a material image calculation unit 16, a material image correction unit 17, a mosaic image generation unit 18 and the like are included. The mosaic image generating apparatus as the first embodiment generates a mosaic image as shown in FIG. 15 using the target image and a plurality of material images by executing each of such functional units.

ここで、対象画像及び複数の素材画像は、様々な手法により生成され、対象画像ファイル5及び複数の素材画像ファイル6としてそれぞれハードディスク等に格納されている。以下、対象画像及び素材画像がそれぞれカラー画像である例を挙げ説明する。更に以下の説明では、各画像ファイル5及び6が有する色情報(色空間)としてR(Red)、G(Gre
en)、B(Blue)が利用される場合を例に挙げる。もちろん、本発明は、このような色構成モデルを限定するものではないため、C(Cyan)、M(Magenta)、Y(Yellow)、K
(Key tone)のモデル等が利用されてもよい。
Here, the target image and the plurality of material images are generated by various methods, and are stored in the hard disk or the like as the target image file 5 and the plurality of material image files 6, respectively. Hereinafter, an example in which the target image and the material image are color images will be described. Further, in the following description, R (Red), G (Gre) as color information (color space) included in each of the image files 5 and 6.
For example, en) and B (Blue) are used. Of course, the present invention is not limited to such a color composition model, so C (Cyan), M (Magenta), Y (Yellow), K
A model of (Key tone) may be used.

本発明は、例えば写真画像であるとかカラー画像であるといった対象画像自体及び素材画像自体の形態を限定するものではないし、対象画像ファイル5及び素材画像ファイル6の生成手法(ファイル形式等)を限定するものでもないし、これらファイル5及び6の入手方法を限定するものではない。但し、対象画像及び素材画像がカラー画像であり、生成されるモザイク画像もカラー画像である場合に、本実施形態におけるモザイク画像生成装置はより高い効果を発揮する。   The present invention does not limit the form of the target image itself and the material image itself, for example, a photographic image or a color image, and limits the generation method (file format etc.) of the target image file 5 and the material image file 6. It does not limit the method of obtaining these files 5 and 6. However, when the target image and the material image are color images, and the generated mosaic image is also a color image, the mosaic image generation device according to the present embodiment exhibits a higher effect.

以下、これら各機能部についてそれぞれ詳細に説明する。   Hereinafter, each of these functional units will be described in detail.

〈対象画像処理部10〉
対象画像処理部10は、生成されるモザイク画像の元となる対象画像のファイル(対象画像ファイル5)を取得する。対象画像処理部10は、図2に示すように、この対象画像ファイル5を所定の数の領域(ブロック)に分割し、この分割されたブロック単位でこの対象画像ファイル5のフィルタリング処理を行う。図2は、対象画像処理を示す概念図である。
<Target image processing unit 10>
The target image processing unit 10 acquires a target image file (target image file 5) that is a source of the generated mosaic image. As shown in FIG. 2, the target image processing unit 10 divides the target image file 5 into a predetermined number of regions (blocks), and performs a filtering process on the target image file 5 in units of the divided blocks. FIG. 2 is a conceptual diagram showing target image processing.

対象画像処理部10は、図2の符号21に示すように、対象画像ファイル5を複数ブロックに分割する。この分割される数(ブロック数)及び各ブロックのサイズは、例えば、本モザイク画像生成装置を利用するユーザにより指定され、メモリ等に設定情報として格納される。図2の符号22は、この分割されたブロックの画像(以降、ブロック画像と表記する)を示す。図2の例では、全てのブロック画像のサイズが同一の例を示すが、本発明はこのようなブロック画像のサイズを限定するものではないため、各ブロック画像によりサイズが異なるように分割されてもよい。   The target image processing unit 10 divides the target image file 5 into a plurality of blocks as indicated by reference numeral 21 in FIG. The number to be divided (number of blocks) and the size of each block are specified by, for example, a user who uses the mosaic image generating apparatus and stored as setting information in a memory or the like. Reference numeral 22 in FIG. 2 indicates an image of the divided block (hereinafter referred to as a block image). In the example of FIG. 2, an example in which all the block images have the same size is shown. However, since the present invention does not limit the size of such a block image, each block image is divided to have a different size. Also good.

対象画像処理部10は、この分割された各ブロック画像に関し、以下に示すフィルタリング処理をそれぞれ行う。このフィルタリング処理において、まず、対象画像処理部10は、ブロック画像内の各RGBについてそれぞれ濃度値(階調値)の平均値を算出する。以降、各RGBの濃淡を示す濃度値をそれぞれR値、G値、B値又は総称してRGB値と表記する。具体的には、対象画像処理部10は、1つのブロック画像に含まれる全画素のR値の合計をその画素数で割った平均値(以降、平均R値と表記する)、全画素のG値の合計を画素数で割った平均値(以降、平均G値と表記する)、全画素のB値の合計を画素数で割った平均値(以降、平均B値と表記する)をそれぞれ算出する。   The target image processing unit 10 performs the following filtering process on each of the divided block images. In this filtering process, first, the target image processing unit 10 calculates an average value of density values (tone values) for each RGB in the block image. Hereinafter, the density values indicating the shades of RGB are respectively expressed as R values, G values, B values, or collectively as RGB values. Specifically, the target image processing unit 10 calculates an average value (hereinafter referred to as an average R value) obtained by dividing the sum of R values of all pixels included in one block image by the number of pixels, and G of all pixels. An average value obtained by dividing the sum of the values by the number of pixels (hereinafter referred to as an average G value) and an average value obtained by dividing the sum of the B values of all the pixels by the number of pixels (hereinafter referred to as an average B value) are calculated. To do.

対象画像処理部10は、そのブロック画像の全画素のRGB値をそのブロック画像について算出された平均RGB値に設定する(図2の符号23参照)。具体的には、各ブロック画像に関しそれぞれ、全R値が平均R値に設定され、全G値が平均G値に設定され、全B値が平均B値に設定される。これにより、各ブロック画像の色が各ブロック画像の平均RGB値で均一化される。図2の符号24は、このようにフィルタリング処理された対象画像を示す。   The target image processing unit 10 sets the RGB values of all the pixels of the block image to the average RGB values calculated for the block image (see reference numeral 23 in FIG. 2). Specifically, for each block image, the total R value is set to the average R value, the total G value is set to the average G value, and the total B value is set to the average B value. Thereby, the color of each block image is equalized with the average RGB value of each block image. Reference numeral 24 in FIG. 2 indicates the target image subjected to the filtering process in this way.

〈対象画像変換部11〉
対象画像変換部11は、対象画像処理部10により処理された対象画像に対し、更に図3に示す変換処理を行う。図3は、対象画像変換処理を示す概念図である。図3の符号24は、対象画像処理部10によりフィルタリング処理された対象画像である。各ブロックの色が平均RGB値に均一化された対象画像24は、各RGB値についてRGBヒストグラム31が示すような濃度値分布をそれぞれ有する。このRGBヒストグラム31では、
横軸に濃度値が示され、縦軸にその濃度値を持つ画素数が示される。RGBの濃度値がそれぞれ8ビットで示される場合には、装置で許容される最低濃度値(最暗濃度値)(以降、許容最低濃度値と表記する)は0でありRGBヒストグラム31の左端に示され、装置で許容される最高濃度値(最明濃度値)(以降、許容最高濃度値と表記する)は255でありRGBヒストグラム31の右端に示される。
<Target Image Conversion Unit 11>
The target image conversion unit 11 further performs a conversion process shown in FIG. 3 on the target image processed by the target image processing unit 10. FIG. 3 is a conceptual diagram illustrating target image conversion processing. Reference numeral 24 in FIG. 3 is a target image that has been filtered by the target image processing unit 10. The target image 24 in which the color of each block is uniformed to the average RGB value has a density value distribution as indicated by the RGB histogram 31 for each RGB value. In this RGB histogram 31,
The horizontal axis indicates the density value, and the vertical axis indicates the number of pixels having the density value. When the RGB density values are each represented by 8 bits, the lowest density value (darkest density value) allowed in the apparatus (hereinafter referred to as the allowable minimum density value) is 0, and is displayed at the left end of the RGB histogram 31. The maximum density value (brightest density value) allowed by the apparatus (hereinafter referred to as the allowable maximum density value) is 255, which is shown at the right end of the RGB histogram 31.

対象画像変換部11は、対象画像24のRGB値として、許容最低濃度値から所定濃度値の範囲及び許容最高濃度値から所定濃度値の範囲が使われないように、RGBの単位幅を圧縮する。この所定濃度値としては32(階調)が利用されると好適である。この場合、対象画像変換部11は、濃度値31以下及び濃度値224以上の濃度値が対象画像24で使われないようにRGBの単位幅を圧縮する。図3のRGBヒストグラム32は、圧縮処理された後の対象画像のヒストグラムの例を示す。   The target image conversion unit 11 compresses the RGB unit width so that the RGB value of the target image 24 does not use the range from the allowable minimum density value to the predetermined density value and the range from the allowable maximum density value to the predetermined density value. . It is preferable that 32 (gradation) is used as the predetermined density value. In this case, the target image conversion unit 11 compresses the RGB unit width so that density values of density value 31 or lower and density value 224 or higher are not used in the target image 24. The RGB histogram 32 of FIG. 3 shows an example of the histogram of the target image after the compression processing.

ここでいう圧縮とは、RGBヒストグラム31で示される形(濃度値分布率)を保持しながら取り得る濃度値の幅を狭めることを意味する。具体的には、RGB値が8ビットで示される場合には、中心濃度値127.5を変えないで、0から255で示される濃度値が32から223で示されるように濃度値の単位の幅を狭めることを意味する。但し、この濃度値の単位幅は装置として1で変えることができないのが一般的であるため、例えば圧縮処理後に小数点以下を四捨五入等することにより新たな濃度値とすればよい。   The compression referred to here means narrowing the range of density values that can be taken while maintaining the shape (density value distribution ratio) indicated by the RGB histogram 31. Specifically, when the RGB value is represented by 8 bits, the central density value 127.5 is not changed, and the density value represented by 0 to 255 is represented by 32 to 223. It means narrowing the width. However, since the unit width of the density value cannot generally be changed by 1 as a device, for example, a new density value may be obtained by rounding off after the decimal point after the compression processing.

図3の符号33は、対象画像変換部11により圧縮処理された対象画像を概念的に示している。図3は、白黒図面でかつ概念図であるため分かり難いが、対象画像33は、圧縮処理前の対象画像24と比べ一定の色調を保持しながら最明濃度(濃度値255)及び最暗濃度(濃度値0)の周辺濃度(白又は黒に近い色)が使われていないためシャープさに欠ける画像となっている。しかしながら、このように対象画像の濃度値単位の圧縮処理を行うことにより、素材画像の視認性の低下を防ぐことができる。   Reference numeral 33 in FIG. 3 conceptually shows the target image compressed by the target image conversion unit 11. Although FIG. 3 is a black and white drawing and conceptual diagram, it is difficult to understand, but the target image 33 has the lightest density (density value 255) and the darkest density while maintaining a constant color tone as compared with the target image 24 before compression processing. Since the peripheral density (color close to white or black) of (density value 0) is not used, the image lacks sharpness. However, by performing the compression processing in units of density values of the target image in this way, it is possible to prevent a reduction in the visibility of the material image.

〈ブロック画像処理部12〉
ブロック画像処理部12は、対象画像変換部11により処理された対象画像に基づいて、各ブロック画像のRGBの各濃度値(階調値)を各目標濃度値としてそれぞれ取得する。これにより、各ブロック画像について、Rの目標濃度値(以降、R目標値と表記する)、Gの目標濃度値(以降、G目標値と表記する)、Bの目標濃度値(以降、B目標値と表記する)がそれぞれ取得される。
<Block image processing unit 12>
Based on the target image processed by the target image conversion unit 11, the block image processing unit 12 acquires RGB density values (tone values) of the block images as target density values. Thus, for each block image, an R target density value (hereinafter referred to as R target value), a G target density value (hereinafter referred to as G target value), and a B target density value (hereinafter referred to as B target). Each of which is expressed as a value).

〈素材画像取得部13〉
素材画像取得部13は、ハードディスク等に格納されている複数の素材画像ファイル6の中からいずれか1つの素材画像ファイル6を任意に取得する。以下に説明する各機能部は、素材画像取得部13により取得された1つの素材画像ファイル6を処理対象とする。但し、これら素材画像ファイル6を処理する機能部は、複数の素材画像ファイル6を並行に処理するようにしてもよい。
<Material image acquisition unit 13>
The material image acquisition unit 13 arbitrarily acquires any one material image file 6 from among a plurality of material image files 6 stored in a hard disk or the like. Each functional unit described below uses one material image file 6 acquired by the material image acquisition unit 13 as a processing target. However, the functional unit that processes these material image files 6 may process a plurality of material image files 6 in parallel.

素材画像取得部13は、1つの素材画像ファイル6を取得すると共に、その素材画像を配置する位置情報も併せて取得する。この位置情報は、対象画像に依存しないで決定される。この位置情報は、ユーザ等により入力された情報が予め設定情報としてメモリ等に格納されているようにしてもよいし、その都度入力されるようにしてもよいし、任意に自動決定されるようにしてもよい。また、素材画像取得部13は、対象画像に対し部分的なモザイク画像を生成する場合には、その部分に必要な素材画像ファイルのみを取得するようにしてもよい。   The material image acquisition unit 13 acquires one material image file 6 and also acquires position information for arranging the material image. This position information is determined without depending on the target image. For this position information, information input by a user or the like may be stored in advance as setting information in a memory or the like, or may be input each time, or may be automatically determined arbitrarily. It may be. Further, when generating a partial mosaic image for the target image, the material image acquisition unit 13 may acquire only a material image file necessary for the part.

〈素材画像前処理部14〉
素材画像前処理部14は、ブロック数及び各ブロックの大きさに関する情報を対象画像処理部10から取得する。素材画像前処理部14は、素材画像取得部13により取得された素材画像ファイル6の位置情報に基づいて、上記対象画像処理部10から素材画像ファイル6が配置されるべきブロック画像に関する情報を取得する。ブロック画像に関する情報には、そのブロック画像を特定するための識別情報、そのブロック画像の大きさ、画素数等が含まれる。
<Material Image Preprocessing Unit 14>
The material image preprocessing unit 14 acquires information on the number of blocks and the size of each block from the target image processing unit 10. Based on the position information of the material image file 6 acquired by the material image acquisition unit 13, the material image preprocessing unit 14 acquires information on the block image where the material image file 6 should be placed from the target image processing unit 10. To do. The information about the block image includes identification information for specifying the block image, the size of the block image, the number of pixels, and the like.

素材画像前処理部14は、これら取得された情報に応じて、素材画像ファイル6の大きさ、画素数等を決定する。この画素数については、元となる対象画像ファイル5に応じて決められても良いし、予め固定で設定情報として保持される情報を用いるようにしてもよい。素材画像前処理部14は、素材画像ファイル6がこのように決められた大きさ、画素数等となるように画像処理する。なお、素材画像前処理部14をなくし、既に所定の大きさ及び画素数となるように画像処理された素材画像ファイルを素材画像取得部13が取得するようにしてもよい。   The material image preprocessing unit 14 determines the size, the number of pixels, and the like of the material image file 6 according to the acquired information. The number of pixels may be determined according to the original target image file 5, or information that is fixed and held as setting information in advance may be used. The material image preprocessing unit 14 performs image processing so that the material image file 6 has the size, the number of pixels, and the like determined as described above. Note that the material image preprocessing unit 14 may be omitted, and the material image acquisition unit 13 may acquire a material image file that has already been processed to have a predetermined size and number of pixels.

〈素材画像変換部15〉
素材画像変換部15は、図4に示すように、素材画像前処理部14により処理された素材画像ファイル41をグレースケール画像に変換する。以降、変換後の素材画像をグレースケール素材画像と表記する。グレーススケール画像とは、明度情報のみによって表現される画像であり、各画素の各RGB値がそれぞれ同一となる。図4は、第一実施形態における素材画像変換部15及び素材画像算出部17による処理概念を示す図である。
<Material Image Conversion Unit 15>
As shown in FIG. 4, the material image conversion unit 15 converts the material image file 41 processed by the material image preprocessing unit 14 into a grayscale image. Hereinafter, the converted material image is referred to as a grayscale material image. A grace scale image is an image represented only by lightness information, and each RGB value of each pixel is the same. FIG. 4 is a diagram illustrating a processing concept by the material image conversion unit 15 and the material image calculation unit 17 in the first embodiment.

このように素材画像をグレースケール画像に変換することにより、素材画像の各RGB値のばらつきをなくすことができる。よって、素材画像ファイルに対し素材画像補正部17による色補正が行われた場合に、各RGB値のばらつきによりその素材画像に存在しなかった色が発生するのを防ぐことができ、ひいては、素材画像の視認性を向上させることができる。   By converting the material image into a grayscale image in this way, it is possible to eliminate variations in the RGB values of the material image. Therefore, when color correction is performed on the material image file by the material image correction unit 17, it is possible to prevent the occurrence of colors that did not exist in the material image due to variations in RGB values. The visibility of the image can be improved.

また、図4に示すように、グレースケール素材画像42のヒストグラムは、RGBそれぞれに関し同一情報となる。よって、素材画像をグレースケール画像に変換することにより、次に説明する素材画像算出部16の算出処理をRGBのいずれか1つに関してのみ行えばよくなるため計算量を減らすことができる。なお、このグレースケール画像への変換手法については、各RGB値の単純平均又は重み付き平均を取る手法等、様々な手法が既に知られているため、ここでは詳細な説明を省略する。   Also, as shown in FIG. 4, the histogram of the grayscale material image 42 is the same information for each of RGB. Therefore, by converting the material image into a grayscale image, the calculation process of the material image calculation unit 16 to be described next only needs to be performed for any one of RGB, so that the amount of calculation can be reduced. Since various methods such as a method of taking a simple average or a weighted average of each RGB value are already known as the method of converting to a gray scale image, detailed description thereof is omitted here.

〈素材画像算出部16〉
素材画像算出部16は、素材画像変換部15により変換されたグレースケール素材画像42に関し、その素材画像に含まれるRGBのうちのいずれか1つの基本色に基づいて所定の統計値を算出する。以下、例として、基本色としてR値が利用される場合について説明する。
<Material Image Calculation Unit 16>
The material image calculation unit 16 calculates a predetermined statistical value regarding the grayscale material image 42 converted by the material image conversion unit 15 based on any one basic color of RGB included in the material image. Hereinafter, as an example, a case where an R value is used as a basic color will be described.

素材画像算出部16は、そのグレースケール素材画像42に含まれる全画素のR値のうち、最小R値を抽出する。素材画像算出部16は、その素材画像の全R値からこの最小R値をそれぞれ減算する。言い換えれば、素材画像算出部16は、抽出された最小R値が許容最低濃度値(0(ゼロ))となるようにR値分布を濃度値が下がる方向にずらす。図4の例では、ヒストグラム43がヒストグラム44へ変換される。   The material image calculation unit 16 extracts the minimum R value from the R values of all the pixels included in the grayscale material image 42. The material image calculation unit 16 subtracts the minimum R value from the total R value of the material image. In other words, the material image calculation unit 16 shifts the R value distribution in the direction of decreasing the density value so that the extracted minimum R value becomes the allowable minimum density value (0 (zero)). In the example of FIG. 4, the histogram 43 is converted into a histogram 44.

素材画像算出部16は、このように変換されたRヒストグラム44に関し、最低濃度値(許容最低濃度値と同一)、最高濃度値、平均濃度値、最低濃度値から平均濃度値までの濃度値と平均濃度値から最高濃度値までの濃度値との割合をそれぞれ算出する。平均濃度
値は、変換されたヒストグラム44における全画素のR値の合計を画素数で割った値である。以降、平均濃度値より小さい方向の割合値を暗濃度値、平均濃度値より大きい方向の割合値を明濃度値と表記する。
The material image calculation unit 16 relates to the R histogram 44 converted in this way, the minimum density value (same as the allowable minimum density value), the maximum density value, the average density value, and the density value from the minimum density value to the average density value. The ratio of the density value from the average density value to the maximum density value is calculated. The average density value is a value obtained by dividing the total R value of all the pixels in the converted histogram 44 by the number of pixels. Hereinafter, the ratio value in the direction smaller than the average density value is referred to as a dark density value, and the ratio value in the direction larger than the average density value is referred to as a light density value.

図5は、第一実施形態における素材画像の統計値算出の例を示す図である。この場合、素材画像算出部16は、図5の例における全画素のR値(全濃度値)から最小R値として16を抽出する。素材画像算出部16は、全画素のR値からそれぞれ16を減算する。このように変換されたR値分布に基づいて、素材画像算出部16は、最低濃度値(0)、最高濃度値(215)、平均濃度値(93.60)、暗濃度値(0.44、93.60)、明濃度値(0.56、121.40)の各統計値をそれぞれ算出する。以降、これら算出された各統計値は、各RGBの統計値としてそれぞれ処理される。   FIG. 5 is a diagram illustrating an example of calculation of statistical values of material images in the first embodiment. In this case, the material image calculation unit 16 extracts 16 as the minimum R value from the R values (total density values) of all the pixels in the example of FIG. The material image calculation unit 16 subtracts 16 from the R values of all pixels. Based on the R value distribution thus converted, the material image calculation unit 16 determines that the lowest density value (0), the highest density value (215), the average density value (93.60), and the dark density value (0.44). , 93.60) and light density values (0.56, 121.40). Thereafter, each calculated statistical value is processed as each RGB statistical value.

〈素材画像補正部17〉
素材画像補正部17は、素材画像算出部16で処理されたグレースケール素材画像42に関する各統計値をそれぞれ取得し、その素材画像42が配置されるブロック画像を示す識別情報を取得する。更に、素材画像補正部17は、ブロック画像処理部12から、その素材画像42が配置されるブロック画像のR目標値、G目標値、B目標値をそれぞれ取得する。素材画像補正部17は、素材画像算出部16により算出された素材画像の平均濃度値が対象ブロック画像のR目標値、G目標値及びB目標値となるようにその素材画像42を色補正する。
<Material Image Correction Unit 17>
The material image correction unit 17 acquires each statistical value related to the grayscale material image 42 processed by the material image calculation unit 16 and acquires identification information indicating a block image in which the material image 42 is arranged. Furthermore, the material image correction unit 17 acquires the R target value, the G target value, and the B target value of the block image in which the material image 42 is arranged from the block image processing unit 12. The material image correcting unit 17 performs color correction on the material image 42 so that the average density value of the material image calculated by the material image calculating unit 16 becomes the R target value, the G target value, and the B target value of the target block image. .

図6は、第一実施形態における素材画像の色補正処理の例を示す図である。素材画像42の平均濃度値は、上述のように素材画像算出部16により93.60と算出されている。その素材画像42を配置すべきブロック画像のRGBの目標値は、ブロック画像処理部12により、R目標値が165、G目標値が105、B目標値が54と決定されている。   FIG. 6 is a diagram illustrating an example of color correction processing of a material image in the first embodiment. The average density value of the material image 42 is calculated as 93.60 by the material image calculation unit 16 as described above. The RGB target values of the block image on which the material image 42 is to be arranged are determined by the block image processing unit 12 as R target value 165, G target value 105, and B target value 54.

素材画像補正部17は、その素材画像42の全R値を、その平均濃度値(93.60)がブロック画像のR目標値(165)となるように補正する。同様に、素材画像補正部17は、その素材画像42の全G値を、その平均濃度値(93.60)がブロック画像のG目標値(105)となるように補正し、全B値をその平均濃度値(93.60)がブロック画像のB目標値(54)となるように補正する。   The material image correcting unit 17 corrects all the R values of the material image 42 so that the average density value (93.60) becomes the R target value (165) of the block image. Similarly, the material image correcting unit 17 corrects the total G value of the material image 42 so that the average density value (93.60) becomes the G target value (105) of the block image, and the total B value is obtained. The average density value (93.60) is corrected to be the B target value (54) of the block image.

ここで、元の素材画像の平均濃度値を目標濃度値に移動した場合に、元の素材画像の最高濃度値が許容最高濃度値を超える場合とそうでない場合がある。素材画像補正部17は、最高濃度値が許容最高濃度値を超えると判断した場合には、平均濃度値を目標濃度値に固定させた状態で最高濃度値が許容最高濃度値となるように、元の素材画像の分布幅を縮小(圧縮)する。図6の例では、素材画像のR値がこのように補正される。   Here, when the average density value of the original material image is moved to the target density value, the maximum density value of the original material image may or may not exceed the allowable maximum density value. When the material image correcting unit 17 determines that the maximum density value exceeds the allowable maximum density value, the maximum density value is set to the allowable maximum density value in a state where the average density value is fixed to the target density value. Reduce (compress) the distribution width of the original material image. In the example of FIG. 6, the R value of the material image is corrected in this way.

一方、素材画像補正部17は、最高濃度値が許容最高濃度値を超えないと判断した場合には、最低濃度値を許容最低濃度値に固定させた状態で平均濃度値が目標濃度値となるように、元の素材画像の分布幅を圧縮又は伸張する。元の平均濃度値が目標濃度値よりも大きい場合には、分布幅は縮小され、元の平均濃度値が目標濃度値よりも小さい場合には、分布幅は拡大される。図6の例では、素材画像のG値の分布幅は拡大され、B値の分布幅は縮小されている。   On the other hand, when the material image correcting unit 17 determines that the maximum density value does not exceed the allowable maximum density value, the average density value becomes the target density value in a state where the minimum density value is fixed to the allowable minimum density value. As described above, the distribution width of the original material image is compressed or expanded. When the original average density value is larger than the target density value, the distribution width is reduced, and when the original average density value is smaller than the target density value, the distribution width is expanded. In the example of FIG. 6, the G value distribution width of the material image is enlarged, and the B value distribution width is reduced.

このように、素材画像補正部17は、全体のモザイク画像の視認性を上げるために素材画像をブロック画像の色調に近づけつつ、素材画像の視認性を上げるために素材画像の色調を可能な限り保持するよう処理する。以下、素材画像補正部17の具体的な処理例について図7を用いて説明する。図7は、第一実施形態における素材画像の補正処理の具体例を示す図であり、素材画像が図5に示すRGB値を持つ場合の例を示している。   In this way, the material image correcting unit 17 adjusts the color tone of the material image as much as possible in order to increase the visibility of the material image while bringing the material image close to the color tone of the block image in order to increase the visibility of the entire mosaic image. Process to hold. Hereinafter, a specific processing example of the material image correction unit 17 will be described with reference to FIG. FIG. 7 is a diagram showing a specific example of the material image correction processing in the first embodiment, and shows an example in which the material image has the RGB values shown in FIG.

素材画像補正部17は、まず、以下に示すように、RGBそれぞれについて、目標値を暗濃度値(0.44)で割った値が許容最高濃度値(255)を超えるか否かを判断する。   First, the material image correction unit 17 determines whether or not the value obtained by dividing the target value by the dark density value (0.44) exceeds the allowable maximum density value (255) for each of RGB as described below. .

(R値):R目標値(165)/暗濃度値(0.44)=375
(G値):G目標値(105)/暗濃度値(0.44)=238.64
(B値):B目標値(54)/暗濃度値(0.44)=122.73
素材画像補正部17は、算出された値が許容最高濃度値を超えると判断すると、以下の(数式A)を用いて、元の素材画像の各画素の濃度値をそれぞれ補正する。なお、255は許容最高濃度値を示す。
(R value): R target value (165) / dark density value (0.44) = 375
(G value): G target value (105) / dark density value (0.44) = 238.64
(B value): B target value (54) / dark density value (0.44) = 122.73
If the material image correcting unit 17 determines that the calculated value exceeds the allowable maximum density value, the material image correcting unit 17 corrects the density value of each pixel of the original material image using the following (Formula A). Reference numeral 255 denotes an allowable maximum density value.

(数式A):(元の濃度値−最低濃度値)×H+I
H=(255−目標値)/明濃度値
I=255−(最高濃度値×H)
一方、素材画像補正部17は、算出された値が許容最高濃度値を超えないと判断すると、以下の(数式B)を用いて、元の素材画像の各画素の濃度値をそれぞれ補正する。
(Formula A): (original density value−minimum density value) × H + I
H = (255−target value) / light density value I = 255− (maximum density value × H)
On the other hand, if the material image correcting unit 17 determines that the calculated value does not exceed the allowable maximum density value, the material image correcting unit 17 corrects the density value of each pixel of the original material image using the following (Equation B).

(数式B):(元の濃度値−最低濃度値)×J
J=目標値/暗濃度値
図7の例によれば、素材画像補正部17は、素材画像の全R値を上記(数式A)で補正し、全G値及び全B値をそれぞれ上記(数式B)で補正する。具体的には、R値については、Hが0.74(=(255-165)/121.40)でIが95.90(=255-(215*0.74))となる。G値については、Jが1.12(=105/93.60)となり、B値については、Jが0.58(=54/93.60)となる。このように、素材画像補正部17は、素材画像のRGBそれぞれを
色補正する。
(Formula B): (original density value−minimum density value) × J
J = target value / dark density value According to the example of FIG. 7, the material image correcting unit 17 corrects the total R value of the material image by the above (Equation A), and the total G value and the total B value are Correction is performed using equation B). Specifically, for the R value, H is 0.74 (= (255-165) /121.40) and I is 95.90 (= 255- (215 * 0.74)). For the G value, J is 1.12 (= 105 / 93.60), and for the B value, J is 0.58 (= 54 / 93.60). In this way, the material image correction unit 17 performs color correction on each of RGB of the material image.

〈モザイク画像生成部18〉
モザイク画像生成部18は、素材画像補正部17により色補正された素材画像を対象画像ファイルのうちその素材画像を配置すべきブロック画像と置き換える。モザイク画像生成部18は、複数の素材画像ファイルをそれぞれブロック画像と置き換えることで最終的にモザイク画像を生成する。なお、ここでは、対象画像ファイルのうちの対象のブロック画像と素材画像とを置き換えることでモザイク画像を生成すると説明しているが、素材画像をその配置すべきブロック位置に配置できさえすれば新たな画像ファイルからこのモザイク画像を生成することも含まれる。
<Mosaic image generator 18>
The mosaic image generating unit 18 replaces the material image color-corrected by the material image correcting unit 17 with a block image in which the material image is to be arranged in the target image file. The mosaic image generation unit 18 finally generates a mosaic image by replacing each of the plurality of material image files with a block image. Here, it is described that the mosaic image is generated by replacing the target block image and the material image in the target image file. However, as long as the material image can be arranged at the block position where the material image can be arranged, a new image can be obtained. Generating this mosaic image from a simple image file is also included.

また、モザイク画像生成部18は、全ての素材画像を配置する前の段階においてモザイク画像ファイル8を出力するようにしてもよい。このようにすれば、モザイク画像完成途中のモザイク画像を表示することにより、モザイク画像の生成経過を楽しませることもできる。   Further, the mosaic image generation unit 18 may output the mosaic image file 8 at a stage before arranging all the material images. In this way, the mosaic image generation process can be enjoyed by displaying a mosaic image in the middle of completion of the mosaic image.

〔動作例〕
次に、上述の本発明の第一実施形態におけるモザイク画像生成装置の動作例について図8を用いて説明する。図8は、第一実施形態におけるモザイク画像生成装置の動作例を示すフローチャートである。
[Operation example]
Next, an operation example of the mosaic image generating apparatus according to the first embodiment of the present invention will be described with reference to FIG. FIG. 8 is a flowchart illustrating an operation example of the mosaic image generating apparatus according to the first embodiment.

第一実施形態におけるモザイク画像生成装置には、モザイク画像の元となる対象画像ファイル5及びモザイク画像を形成する複数の素材画像ファイル6が格納されている。   The mosaic image generating apparatus according to the first embodiment stores a target image file 5 that is a source of a mosaic image and a plurality of material image files 6 that form the mosaic image.

対象画像処理部10は、モザイク画像の元となる対象画像ファイル5を取得し、この対
象画像ファイル5を所定の数の領域(ブロック)に分割する(S801)。この対象画像ファイル5の分割された各領域の画像をそれぞれブロック画像と表記している。
The target image processing unit 10 acquires the target image file 5 that is the source of the mosaic image, and divides the target image file 5 into a predetermined number of areas (blocks) (S801). Each divided image of the target image file 5 is referred to as a block image.

対象画像処理部10は、この分割されたブロック単位でこの対象画像ファイル5のフィルタリング処理を行う(S802)。具体的には、まず、対象画像処理部10は、各ブロック画像についてRGB毎の濃度値(階調値)の平均値(平均R値、平均G値、平均B値)をそれぞれ算出する。対象画像処理部10は、そのブロック画像を構成する全画素のRGB値をそのブロック画像について算出された平均RGB値に設定する。これにより、各ブロック画像の色が各ブロック画像の平均RGB値に均一化される。   The target image processing unit 10 performs filtering processing of the target image file 5 in units of the divided blocks (S802). Specifically, first, the target image processing unit 10 calculates an average value (average R value, average G value, average B value) of density values (tone values) for each RGB for each block image. The target image processing unit 10 sets the RGB values of all the pixels constituting the block image to the average RGB value calculated for the block image. Thereby, the color of each block image is equalized to the average RGB value of each block image.

続いて、対象画像変換部11は、対象画像処理部10により処理された対象画像に対し、一定の色調を保持しながら許容最高濃度値(濃度値255)及び許容最低濃度値(濃度値0)の周辺濃度(白及び黒に近い色)が使われないように、そのRGB値の単位幅を圧縮(縮小)する(S803)。最良の形態として例えば、対象画像変換部11は、中心濃度値(127.5)を固定した状態で許容最低濃度値0が濃度値32となり許容最高濃度値255が濃度値223となるように、濃度値の単位幅を圧縮する。   Subsequently, the target image conversion unit 11 holds the maximum allowable density value (density value 255) and the minimum allowable density value (density value 0) while maintaining a constant color tone for the target image processed by the target image processing unit 10. The unit width of the RGB value is compressed (reduced) so that the peripheral density (color close to white and black) is not used (S803). As the best mode, for example, the target image conversion unit 11 sets the allowable minimum density value 0 to the density value 32 and the allowable maximum density value 255 to the density value 223 with the center density value (127.5) fixed. Compress the unit width of density value.

このように対象画像を変換することにより、対象画像の目標濃度値に素材画像の平均濃度値を近づけた場合に、素材画像が白又は黒に近づき過ぎ見え難くなるのを防ぐ。   By converting the target image in this manner, when the average density value of the material image is brought close to the target density value of the target image, the material image is prevented from becoming too close to white or black to be seen easily.

ブロック画像処理部12は、対象画像変換部11により処理された対象画像に基づいて、各ブロック画像のRGBの各濃度値(階調値)を各目標濃度値としてそれぞれ取得する(R目標値、G目標値、B目標値)(S804)。   Based on the target image processed by the target image conversion unit 11, the block image processing unit 12 acquires each density value (tone value) of RGB of each block image as each target density value (R target value, G target value, B target value) (S804).

上述のように対象画像に基づく各ブロック画像がそれぞれ生成されると、次に、対象画像のこれら各ブロックに配置されるべき各素材画像が以下のように随時処理される。   When each block image based on the target image is generated as described above, each material image to be arranged in each block of the target image is then processed as follows.

素材画像取得部13は、ハードディスク等に格納されている複数の素材画像ファイル6の中からいずれか1つの素材画像ファイル6を任意に取得する(S805)。素材画像取得部13は、1つの素材画像ファイル6を取得すると共に、その素材画像を配置する対象画像中のブロック位置についての情報も併せて取得する。   The material image acquisition unit 13 arbitrarily acquires any one material image file 6 from among a plurality of material image files 6 stored in a hard disk or the like (S805). The material image acquisition unit 13 acquires one material image file 6 and also acquires information about the block position in the target image where the material image is to be arranged.

素材画像前処理部14は、素材画像取得部13により取得された素材画像ファイル6の位置情報に基づいて、上記対象画像処理部10から素材画像ファイル6が配置されるべきブロック画像に関する情報を取得する。ブロック画像に関する情報には、そのブロック画像を特定するための識別情報、そのブロック画像の大きさ、画素数等が含まれる。素材画像前処理部14は、これら取得された情報に応じて、素材画像ファイル6の大きさ、画素数等を決定する。   Based on the position information of the material image file 6 acquired by the material image acquisition unit 13, the material image preprocessing unit 14 acquires information on the block image where the material image file 6 should be placed from the target image processing unit 10. To do. The information about the block image includes identification information for specifying the block image, the size of the block image, the number of pixels, and the like. The material image preprocessing unit 14 determines the size, the number of pixels, and the like of the material image file 6 according to the acquired information.

素材画像変換部15は、素材画像前処理部14により処理された素材画像ファイルをグレースケール画像に変換する(S806)。これにより、以降、素材画像の各RGB値を操作する場合に、いずれか1つの基本色の濃度値を扱うようにすれば足りる。また、素材画像の各RGB値のばらつきをなくすことができるため、素材画像ファイルに対し素材画像補正部17による色補正が行われた場合に、その素材画像に存在しなかった色が発生するのを防ぐ等、素材画像の視認性を向上させることができる。   The material image conversion unit 15 converts the material image file processed by the material image preprocessing unit 14 into a grayscale image (S806). As a result, it is sufficient to handle the density value of any one basic color when manipulating each RGB value of the material image. In addition, since the variation of each RGB value of the material image can be eliminated, when the material image correction unit 17 performs color correction on the material image file, a color that did not exist in the material image is generated. For example, the visibility of the material image can be improved.

素材画像算出部16は、素材画像変換部15により変換されたグレースケール素材画像42に関し、その素材画像に含まれるRGBのうちのいずれか1つの基本色について統計値を算出する。具体的には、まず、素材画像算出部16は、その素材画像に含まれる全画素の有する基本色の濃度値のうち、最小濃度値を抽出し、その素材画像の全画素の各濃度
値からこの最小濃度値をそれぞれ減算する。素材画像算出部16は、このように変換されたいずれか1つの基本色に関し、最低濃度値(許容最低濃度値と同一)、最高濃度値、平均濃度値、最低濃度値から平均濃度値までの濃度値と平均濃度値から最高濃度値までの濃度値との割合(暗濃度値、明濃度値)をそれぞれ算出する(S807)。
The material image calculation unit 16 calculates a statistical value for any one basic color of RGB included in the material image with respect to the grayscale material image 42 converted by the material image conversion unit 15. Specifically, first, the material image calculation unit 16 extracts the minimum density value from the density values of the basic colors of all the pixels included in the material image, and uses each density value of all the pixels of the material image. Each minimum density value is subtracted. The material image calculation unit 16 relates to any one of the converted basic colors from the lowest density value (same as the allowable minimum density value), the highest density value, the average density value, and the minimum density value to the average density value. The ratio (dark density value, light density value) between the density value and the density value from the average density value to the maximum density value is calculated (S807).

素材画像補正部17は、素材画像算出部16により算出された素材画像41に関する各統計値をそれぞれ取得し、更に、その素材画像41が配置されるブロック画像を示す識別情報に基づいてその素材画像41が配置されるブロック画像のR目標値、G目標値、B目標値をそれぞれ取得する。素材画像補正部17は、その素材画像41の各RGB値を素材画像算出部16により算出されたその平均濃度値が対象のブロック画像のR目標値、G目標値及びB目標値となるようにそれぞれ補正する(S808)。   The material image correcting unit 17 acquires each statistical value related to the material image 41 calculated by the material image calculating unit 16, and further, based on the identification information indicating the block image in which the material image 41 is arranged, the material image. R target value, G target value, and B target value of the block image in which 41 is arranged are acquired. The material image correction unit 17 sets each RGB value of the material image 41 so that the average density value calculated by the material image calculation unit 16 becomes the R target value, G target value, and B target value of the target block image. Each is corrected (S808).

元の素材画像の平均濃度値を目標濃度値に移動した場合に、元の素材画像の最高濃度値が装置が許容する最高濃度値(許容最高濃度値)を超える場合とそうでない場合がある。素材画像補正部17は、最高濃度値が許容最高濃度値を超えると判断した場合には、平均濃度値を目標濃度値に固定させた状態で最高濃度値が許容最高濃度値となるように、元の素材画像の分布幅を縮小(圧縮)する。一方、素材画像補正部17は、最高濃度値が許容最高濃度値を超えないと判断した場合には、最低濃度値を許容最低濃度値に固定させた状態で平均濃度値が目標濃度値となるように、元の素材画像の分布幅を伸縮する。このように、素材画像補正部17は、全体のモザイク画像の視認性を上げるために元の素材画像をそれを配置するブロック画像の色調に近づけつつ、素材画像の視認性を上げるために元の素材画像の色調を可能な限り保持するよう処理する。   When the average density value of the original material image is moved to the target density value, the maximum density value of the original material image may or may not exceed the maximum density value (allowable maximum density value) allowed by the apparatus. When the material image correcting unit 17 determines that the maximum density value exceeds the allowable maximum density value, the maximum density value is set to the allowable maximum density value in a state where the average density value is fixed to the target density value. Reduce (compress) the distribution width of the original material image. On the other hand, when the material image correcting unit 17 determines that the maximum density value does not exceed the allowable maximum density value, the average density value becomes the target density value in a state where the minimum density value is fixed to the allowable minimum density value. Thus, the distribution width of the original material image is expanded and contracted. In this way, the material image correction unit 17 brings the original material image close to the color tone of the block image on which the original material image is placed in order to increase the visibility of the entire mosaic image, and improves the visibility of the material image. Processing is performed so as to retain the color tone of the material image as much as possible.

モザイク画像生成部18は、素材画像補正部17により色補正された素材画像を対象画像ファイルのうちその素材画像を配置すべきブロック画像と置き換える。モザイク画像生成部18は、複数の素材画像ファイルをそれぞれブロック画像と置き換えることで最終的にモザイク画像を生成する(S809)。   The mosaic image generating unit 18 replaces the material image color-corrected by the material image correcting unit 17 with a block image in which the material image is to be arranged in the target image file. The mosaic image generation unit 18 finally generates a mosaic image by replacing each of the plurality of material image files with a block image (S809).

モザイク画像生成部18は、上述のように処理された素材画像が所定のブロック位置に配置されることによりモザイク画像が完成したか否かを判断する(S810)。モザイク画像生成部18は、モザイク画像が完成したと判断すると(S810;YES)、モザイク画像生成処理を終了する。一方、モザイク画像生成部18は、モザイク画像が完成していないと判断すると(S810;NO)、素材画像取得部13に新たな素材画像を取得するように依頼する(S805へ戻る)。   The mosaic image generation unit 18 determines whether the mosaic image is completed by arranging the material image processed as described above at a predetermined block position (S810). When the mosaic image generating unit 18 determines that the mosaic image is completed (S810; YES), the mosaic image generating process ends. On the other hand, when determining that the mosaic image is not completed (S810; NO), the mosaic image generation unit 18 requests the material image acquisition unit 13 to acquire a new material image (return to S805).

〈第一実施形態における作用及び効果〉
ここで、上述した第一実施形態におけるモザイク画像生成装置の作用及び効果について述べる。
<Operation and effect in the first embodiment>
Here, the operation and effect of the mosaic image generating apparatus in the first embodiment described above will be described.

第一実施形態では、素材画像は、対象画像内の配置されるべきブロック画像の色調に合うように色調補正される。   In the first embodiment, the material image is color-tone corrected so as to match the color tone of the block image to be arranged in the target image.

これにより、第一実施形態によれば、素材画像の配置は対象画像の色調によらず任意に決定することができる。   Thereby, according to 1st embodiment, arrangement | positioning of a raw material image can be arbitrarily determined irrespective of the color tone of a target image.

また、第一実施形態では、対象画像に関しては、一定の色調を保持しながら白及び黒に近い色が使われないように変換された状態で、各ブロックのRGBの各目標濃度値がそれぞれ決定される。   In the first embodiment, for the target image, RGB target density values for each block are determined in a state in which a constant color tone is maintained so that colors close to white and black are not used. Is done.

これにより、第一実施形態によれば、各ブロックのRGBの各目標濃度値に素材画像を
近付けた場合であっても素材画像が白又は黒に近づき過ぎ見え難くなるのを防ぐことができる。すなわち、モザイク画像を生成する上で、個々の素材画像の視認性を低下するのを防ぐことができる。
As a result, according to the first embodiment, even when the material image is brought close to the RGB target density values of each block, it is possible to prevent the material image from being too close to white or black and becoming difficult to see. That is, when generating a mosaic image, it is possible to prevent the visibility of individual material images from being lowered.

また、第一実施形態では、素材画像は、グレースケール画像に変換された後、それが持つ基本色の統計値(平均濃度値、最低濃度値、最高濃度値、暗濃度値及び明濃度値)が算出される。   In the first embodiment, after the material image is converted into a grayscale image, the basic color statistics (average density value, minimum density value, maximum density value, dark density value, and light density value) of the material image are converted. Is calculated.

このようにグレースケール画像に変換することにより、第一実施形態によれば、素材画像の有する基本色の統計値の計算量を減らすことができる。加えて、グレースケール画像に変換することにより、素材画像の各RGB値のばらつきを抑えることができるため、素材画像をブロック画像に近付けるように色調補正した場合であっても元の素材画像に存在しなかった色の発生を防ぐことができる。   By converting to a grayscale image in this way, according to the first embodiment, it is possible to reduce the calculation amount of the basic color statistical value of the material image. In addition, by converting to a grayscale image, variation in each RGB value of the material image can be suppressed, so it exists in the original material image even when the tone of the material image is corrected to be close to the block image. It is possible to prevent the generation of colors that were not performed.

また、第一実施形態では、素材画像をブロック画像の色調に近付けるにあたり、元の素材画像の色調が可能な限り保持されるように素材画像のRGB値の単位幅が伸縮される。   In the first embodiment, when the material image is brought close to the color tone of the block image, the unit width of the RGB values of the material image is expanded and contracted so that the color tone of the original material image is maintained as much as possible.

これにより、第一実施形態によれば、元の素材画像がそれを配置するブロック画像の色調に近づけられることで全体のモザイク画像の視認性を上げることができ、かつ、元の素材画像の色調が可能な限り保持されるよう処理されるため素材画像の視認性を向上させることができる。   As a result, according to the first embodiment, the original material image can be brought close to the color tone of the block image on which the original material image is arranged, so that the visibility of the entire mosaic image can be improved, and the color tone of the original material image can be improved. Is processed so as to be held as much as possible, so that the visibility of the material image can be improved.

このように第一実施形態におけるモザイク画像生成装置によれば、対象画像に応じた素材画像に関する限定をなくし、対象画像及び素材画像の視認性を向上させることができる。   Thus, according to the mosaic image generating device in the first embodiment, there is no limitation on the material image corresponding to the target image, and the visibility of the target image and the material image can be improved.

[第二実施形態]
以下、本発明の第二実施形態としてのモザイク画像生成装置について説明する。上述の第一実施形態におけるモザイク画像生成装置は、素材画像をグレースケール画像に変換した後そのグレースケール素材画像の統計値を算出していた。第二実施形態におけるモザイク画像生成装置は、グレースケール画像に変換することなく素材画像に関する処理を行う。
[Second Embodiment]
Hereinafter, a mosaic image generating apparatus as a second embodiment of the present invention will be described. The mosaic image generating apparatus according to the first embodiment described above calculates a statistical value of a grayscale material image after converting the material image into a grayscale image. The mosaic image generating apparatus according to the second embodiment performs processing related to a material image without converting it into a grayscale image.

〔装置構成〕
第二実施形態としてのモザイク画像生成装置の装置構成について図9を用いて説明する。図9は、第二実施形態としてのモザイク画像生成装置の概念的な機能構成を示す機能ブロック図である。第二実施形態の機能構成は、素材画像をグレースケール画像に変換する素材画像変換部15が省かれていることを除いて第一実施形態とは変わるところがない。以下、第一実施形態と機能が変わる機能部についてのみ説明する。
〔Device configuration〕
The apparatus configuration of the mosaic image generating apparatus as the second embodiment will be described with reference to FIG. FIG. 9 is a functional block diagram showing a conceptual functional configuration of the mosaic image generating apparatus as the second embodiment. The functional configuration of the second embodiment is the same as that of the first embodiment except that the material image conversion unit 15 that converts a material image into a grayscale image is omitted. Hereinafter, only functional units whose functions are different from those of the first embodiment will be described.

〈素材画像算出部16〉
素材画像算出部16は、素材画像前処理部14により処理された素材画像に関し、その素材画像に含まれる各RGBのヒストグラムについて以下の処理を行う。第一実施形態では、グレースケール素材画像42に対する処理であったため、RGBのいずれか1つの基本色についてのみ処理されればよかったが、第二実施形態では図10に示すように各RGBについてそれぞれ処理される。図10は、第二実施形態における素材画像算出部17による処理概念を示す図である。
<Material Image Calculation Unit 16>
For the material image processed by the material image preprocessing unit 14, the material image calculation unit 16 performs the following processing on each of the RGB histograms included in the material image. In the first embodiment, since the processing is performed on the grayscale material image 42, it is only necessary to process only one basic color of RGB. However, in the second embodiment, each RGB is processed as shown in FIG. Is done. FIG. 10 is a diagram illustrating a processing concept by the material image calculation unit 17 in the second embodiment.

素材画像算出部16は、素材画像41に関し、各RGBについての最低濃度値(許容最低濃度値と同一)、最高濃度値、平均濃度値、暗濃度値、明濃度値をそれぞれ算出する。
なお、これら統計値の算出方法については、第一実施形態と同様であるため、ここでは説明を省略する。
The material image calculation unit 16 calculates a minimum density value (same as an allowable minimum density value), a maximum density value, an average density value, a dark density value, and a light density value for each of the RGB with respect to the material image 41.
Note that these statistical value calculation methods are the same as those in the first embodiment, and thus description thereof is omitted here.

図11は、第二実施形態における素材画像の各RGBについての統計値算出の例を示す図である。図11では、全R値(Rの全濃度値)は第一実施形態と同様の値を例に挙げているため、Rに関し算出される各統計値も第一実施形態と同様である。具体的には、Rに関しては、最低濃度値(0)、最高濃度値(215)、平均濃度値(93.60)、暗濃度値(0.44、93.60)、明濃度値(0.56、121.40)と算出される。Gに関しては、最低濃度値(0)、最高濃度値(228)、平均濃度値(62.75)、暗濃度値(0.28、62.75)、明濃度値(0.72、165.25)と算出される。Bに関しては、最低濃度値(0)、最高濃度値(75)、平均濃度値(29.55)、暗濃度値(0.39、29.55)、明濃度値(0.61、45.45)と算出される。   FIG. 11 is a diagram illustrating an example of statistical value calculation for each RGB of the material image in the second embodiment. In FIG. 11, the total R value (the total concentration value of R) is exemplified by the same value as in the first embodiment. Therefore, each statistical value calculated for R is the same as that in the first embodiment. Specifically, for R, the lowest density value (0), the highest density value (215), the average density value (93.60), the dark density value (0.44, 93.60), and the light density value (0 .56, 121.40). Regarding G, the lowest density value (0), the highest density value (228), the average density value (62.75), the dark density value (0.28, 62.75), and the bright density value (0.72, 165. 25). Regarding B, the lowest density value (0), the highest density value (75), the average density value (29.55), the dark density value (0.39, 29.55), and the light density value (0.61, 45. 45).

〈素材画像補正部17〉
第一実施形態における素材画像補正部17は、素材画像算出部16で算出されたいずれか1つの基本色の統計値を各RGBについての統計値として利用することで、当該素材画像の色補正を行っていた。第二実施形態における素材画像補正部17は、素材画像算出部16で算出された各RGBの統計値をそれぞれ用いて、当該素材画像の色補正を行う。具体的には、素材画像補正部17は、素材画像算出部16により算出されたRGBの各平均濃度値がそれぞれ対象ブロック画像のR目標値、G目標値及びB目標値となるようにその素材画像41を色補正する。
<Material Image Correction Unit 17>
The material image correcting unit 17 in the first embodiment uses the statistical value of any one basic color calculated by the material image calculating unit 16 as a statistical value for each RGB, thereby correcting the color of the material image. I was going. The material image correction unit 17 in the second embodiment performs color correction of the material image using each RGB statistical value calculated by the material image calculation unit 16. Specifically, the material image correction unit 17 uses the material so that the RGB average density values calculated by the material image calculation unit 16 become the R target value, G target value, and B target value of the target block image, respectively. The image 41 is color corrected.

図12は、第二実施形態における素材画像の色補正処理の例を示す図である。素材画像41の平均濃度値は、上述のように素材画像算出部16により平均R値が93.60、平均G値が62.75、平均B値が29.55と算出されている。一方、その素材画像41を配置すべきブロック画像のRGBの目標値は、ブロック画像処理部12により、R目標値が165、G目標値が105、B目標値が54と決定されている。   FIG. 12 is a diagram illustrating an example of a material image color correction process according to the second embodiment. As described above, the average density value of the material image 41 is calculated by the material image calculation unit 16 as 93.60, an average G value of 62.75, and an average B value of 29.55. On the other hand, the RGB target values of the block image on which the material image 41 is to be arranged are determined by the block image processing unit 12 as R target value 165, G target value 105, and B target value 54.

素材画像補正部17は、平均R値(93.60)がブロック画像のR目標値(165)となり、平均G値(62.75)がブロック画像のG目標値(105)となり、平均B値(29.55)がブロック画像のB目標値(54)となるように素材画像41を色補正する。   The material image correcting unit 17 has the average R value (93.60) as the R target value (165) of the block image, the average G value (62.75) as the G target value (105) of the block image, and the average B value. The material image 41 is color-corrected so that (29.55) becomes the B target value (54) of the block image.

このとき、素材画像補正部17は、第一実施形態と同様に、元の素材画像の平均濃度値を目標濃度値に移動した場合に、元の素材画像の最高濃度値が許容最高濃度値を超えか否かを、各RGBについてそれぞれ判断する。最高濃度値が許容最高濃度値を超えると判断された場合の処理とそうでない場合の処理とについてはそれぞれ第一実施形態と同様である。   At this time, as in the first embodiment, the material image correction unit 17 determines that the maximum density value of the original material image has an allowable maximum density value when the average density value of the original material image is moved to the target density value. It is determined for each RGB whether or not it exceeds. The processing when it is determined that the maximum density value exceeds the allowable maximum density value and the processing when it is not so are the same as in the first embodiment.

以下、第二実施形態における素材画像補正部17の具体的な処理例について図13を用いて説明する。図13は、第二実施形態における素材画像の補正処理の具体例を示す図であり、素材画像が図11に示すRGB値を持つ場合の例を示している。   Hereinafter, a specific processing example of the material image correction unit 17 in the second embodiment will be described with reference to FIG. FIG. 13 is a diagram illustrating a specific example of the material image correction process in the second embodiment, and illustrates an example in which the material image has the RGB values illustrated in FIG. 11.

素材画像補正部17は、まず、以下に示すように、目標値を暗濃度値で割った値が許容最高濃度値(255)を超えるか否かを各RGBについてそれぞれ判断する。   The material image correction unit 17 first determines for each RGB whether or not the value obtained by dividing the target value by the dark density value exceeds the allowable maximum density value (255), as described below.

(R値):R目標値(165)/暗濃度値(0.44)=375
(G値):G目標値(105)/暗濃度値(0.28)=375
(B値):B目標値(54)/暗濃度値(0.39)=138.46
素材画像補正部17は、算出された値が許容最高濃度値を超えると判断すると、第一実
施形態と同様に上記(数式A)を用いて、元の素材画像の各画素の濃度値をそれぞれ補正する。一方、素材画像補正部17は、算出された値が許容最高濃度値を超えないと判断すると、第一実施形態と同様に上記(数式B)を用いて、元の素材画像の各画素の濃度値をそれぞれ補正する。
(R value): R target value (165) / dark density value (0.44) = 375
(G value): G target value (105) / dark density value (0.28) = 375
(B value): B target value (54) / dark density value (0.39) = 138.46
When the material image correcting unit 17 determines that the calculated value exceeds the allowable maximum density value, the density value of each pixel of the original material image is respectively calculated using (Formula A) as in the first embodiment. to correct. On the other hand, when the material image correcting unit 17 determines that the calculated value does not exceed the allowable maximum density value, the density of each pixel of the original material image is calculated using the above (Equation B) as in the first embodiment. Correct each value.

図13の例によれば、素材画像補正部17は、素材画像の全R値及び全G値をそれぞれ上記(数式A)で補正し、全B値を上記(数式B)で補正する。具体的には、R値については、Hが0.74(=(255-165)/121.40)で、Iが95.90(=255-(215*0.74))となる。G値については、Hが0.91(=(255-105)/165.25)で、Iが47.52(=255-(228*0.91))となり、B値については、Jが1.83(=54/29.55)となる。   According to the example of FIG. 13, the material image correction unit 17 corrects all R values and all G values of the material image by the above (Equation A) and corrects all B values by the above (Equation B). Specifically, for the R value, H is 0.74 (= (255-165) /121.40) and I is 95.90 (= 255- (215 * 0.74)). For G value, H is 0.91 (= (255-105) /165.25), I is 47.52 (= 255- (228 * 0.91)), and for B value, J is 1.83 ( = 54 / 29.55).

〔動作例〕
次に、上述の本発明の第二実施形態におけるモザイク画像生成装置の動作例について図14を用いて説明する。図14は、第二実施形態におけるモザイク画像生成装置の動作例を示すフローチャートである。
[Operation example]
Next, an operation example of the mosaic image generating apparatus according to the second embodiment of the present invention will be described with reference to FIG. FIG. 14 is a flowchart illustrating an operation example of the mosaic image generating apparatus according to the second embodiment.

対象画像に対する処理(S801からS804)は、第一実施形態と同様であるため、ここでは説明を省略する。   Since the processing (S801 to S804) for the target image is the same as that in the first embodiment, description thereof is omitted here.

第二実施形態におけるモザイク画像生成装置の動作では、図8に示される第一実施形態における素材画像をグレースケール画像に変換する処理(S806)が省かれている。従って、素材画像取得部13により取得され(S805)、素材画像前処理部14により対象ブロックの情報に応じてリサイズ等された素材画像ファイル6が対象とされ、素材画像算出部16により各RGBについて各統計値(最低濃度値、最高濃度値、平均濃度値、暗濃度値、明濃度値)がそれぞれ算出される(S1401)。   In the operation of the mosaic image generating apparatus in the second embodiment, the process (S806) of converting the material image into the gray scale image in the first embodiment shown in FIG. 8 is omitted. Therefore, the material image file 6 acquired by the material image acquisition unit 13 (S805) and resized according to the information of the target block by the material image preprocessing unit 14 is targeted, and the material image calculation unit 16 applies each RGB. Each statistical value (lowest density value, highest density value, average density value, dark density value, bright density value) is calculated (S1401).

なお、統計値の算出方法は第一実施形態と同様である。すなわち、素材画像41に含まれる全画素のRGB値のうち、各RGBについてそれぞれ最小濃度値が抽出され、その素材画像の全画素の各濃度値からこの最小濃度値がそれぞれ減算される。素材画像算出部16は、このように変換された各RGB値に関し、最低濃度値(許容最低濃度値と同一)、最高濃度値、平均濃度値、最低濃度値から平均濃度値までの濃度値と平均濃度値から最高濃度値までの濃度値との割合(暗濃度値、明濃度値)をそれぞれ算出する。   The statistical value calculation method is the same as in the first embodiment. That is, among the RGB values of all the pixels included in the material image 41, the minimum density value is extracted for each RGB, and the minimum density value is subtracted from each density value of all the pixels of the material image. For each RGB value converted in this way, the material image calculation unit 16 determines the minimum density value (same as the allowable minimum density value), the maximum density value, the average density value, and the density value from the minimum density value to the average density value. The ratio (dark density value, light density value) with the density value from the average density value to the maximum density value is calculated.

素材画像補正部17は、素材画像算出部16により算出された素材画像41に関する各RGBの各統計値をそれぞれ取得し、更に、その素材画像41が配置されるブロック画像のR目標値、G目標値、B目標値をそれぞれ取得する。素材画像補正部17は、素材画像算出部16により算出された平均R値、平均G値及び平均B値がそれぞれ対象ブロック画像のR目標値、G目標値及びB目標値となるようにその素材画像41の各RGB値をそれぞれ色補正する(S1402)。このとき、素材画像補正部17は、第一実施形態と同様に、元の素材画像の平均濃度値を目標濃度値に移動した場合に、元の素材画像の最高濃度値が許容最高濃度値を超えか否かを、各RGBについてそれぞれ判断し、その判断結果に応じて第一実施形態と同様の処理を行う。   The material image correcting unit 17 obtains each RGB statistical value related to the material image 41 calculated by the material image calculating unit 16, and further, the R target value and G target of the block image in which the material image 41 is arranged. Value and B target value are acquired. The material image correction unit 17 uses the material so that the average R value, average G value, and average B value calculated by the material image calculation unit 16 become the R target value, G target value, and B target value of the target block image, respectively. Each RGB value of the image 41 is color corrected (S1402). At this time, as in the first embodiment, the material image correction unit 17 determines that the maximum density value of the original material image has an allowable maximum density value when the average density value of the original material image is moved to the target density value. Whether or not it is exceeded is determined for each RGB, and the same processing as in the first embodiment is performed according to the determination result.

このように素材画像が処理されると、モザイク画像生成部18によりその素材画像がブロック画像に置き換えられ(S809)、以降、第一実施形態と同様の処理が行われる(S810)。   When the material image is processed in this manner, the mosaic image generating unit 18 replaces the material image with a block image (S809), and thereafter, the same processing as in the first embodiment is performed (S810).

〈第二実施形態における作用及び効果〉
ここで、上述した第二実施形態におけるモザイク画像生成装置の作用及び効果について述べる。
<Operation and effect in the second embodiment>
Here, the operation and effect of the mosaic image generating device in the second embodiment described above will be described.

第二実施形態では、素材画像をグレースケール画像に変換することなく、元の素材画像に関する各RGBについてそれぞれ各統計値が算出される。そして、この各RGBについてそれぞれ算出された各統計値が利用されることにより、元の素材画像が対象のブロック画像の色調に合うように色調補正される。   In the second embodiment, each statistical value is calculated for each RGB relating to the original material image without converting the material image into a grayscale image. Then, by using each statistical value calculated for each RGB, the color tone is corrected so that the original material image matches the color tone of the target block image.

このように、第二実施形態では、第一実施形態と異なり素材画像をグレースケール画像に変換せず元のRGB値を用いて算出される各統計値に基づいて、素材画像が色調補正される。   Thus, in the second embodiment, unlike the first embodiment, the material image is color-tone corrected based on each statistical value calculated using the original RGB values without converting the material image into a grayscale image. .

よって、第二実施形態によれば、素材画像の各RGB値のばらつきを残しているため、完成されたモザイク画像にとっては第一実施形態と較べてざらつき感を出すことができ、各素材画像に関しては元の画像の色調により近付く素材画像を設けたり、少し突飛な色を生じる素材画像を設けたりと各素材画像に見栄えの幅を持たせることができる。   Therefore, according to the second embodiment, since the variation of each RGB value of the material image remains, the finished mosaic image can have a rough feeling compared to the first embodiment. Each material image can be given a wide range of appearance, such as providing a material image that approaches the color tone of the original image or providing a material image that produces a slightly abrupt color.

第一実施形態におけるモザイク画像生成装置の概念的な機能構成を示す機能ブロック図である。It is a functional block diagram which shows the conceptual functional structure of the mosaic image generation apparatus in 1st embodiment. 対象画像処理を示す概念図である。It is a conceptual diagram which shows object image processing. 対象画像処理を示す概念図である。It is a conceptual diagram which shows object image processing. 第一実施形態における素材画像変換部15及び素材画像算出部17による処理概念を示す図である。It is a figure which shows the processing concept by the material image conversion part 15 and the material image calculation part 17 in 1st embodiment. 第一実施形態における素材画像の統計値算出の例を示す図である。It is a figure which shows the example of the statistical value calculation of the material image in 1st embodiment. 第一実施形態における素材画像の色補正処理の例を示す図である。It is a figure which shows the example of the color correction process of the material image in 1st embodiment. 第一実施形態における素材画像の補正処理の具体例を示す図である。It is a figure which shows the specific example of the correction process of the material image in 1st embodiment. 第一実施形態におけるモザイク画像生成装置の動作例を示すフローチャートである。It is a flowchart which shows the operation example of the mosaic image generation apparatus in 1st embodiment. 第二実施形態としてのモザイク画像生成装置の概念的な機能構成を示す機能ブロック図である。It is a functional block diagram which shows the conceptual functional structure of the mosaic image generation apparatus as 2nd embodiment. 第二実施形態における素材画像算出部17による処理概念を示す図である。It is a figure which shows the processing concept by the material image calculation part 17 in 2nd embodiment. 第二実施形態における素材画像の各RGBについての統計値算出の例を示す図である。It is a figure which shows the example of the statistical value calculation about each RGB of the material image in 2nd embodiment. 第二実施形態における素材画像の色補正処理の例を示す図である。It is a figure which shows the example of the color correction process of the material image in 2nd embodiment. 第二実施形態における素材画像の補正処理の具体例を示す図である。It is a figure which shows the specific example of the correction process of the material image in 2nd embodiment. 第二実施形態におけるモザイク画像生成装置の動作例を示すフローチャートである。It is a flowchart which shows the operation example of the mosaic image generation apparatus in 2nd embodiment. フォトモザイクの例を示す図である。It is a figure which shows the example of a photo mosaic.

符号の説明Explanation of symbols

5 対象画像ファイル
6 素材画像ファイル
8 モザイク画像ファイル
10 対象画像処理部
11 対象画像変換部
12 ブロック画像処理部
13 素材画像取得部
14 素材画像前処理部
15 素材画像変換部
16 素材画像算出部
17 素材画像補正部
18 モザイク画像生成部
505 モザイク画像
511、512、513、514 素材画像
DESCRIPTION OF SYMBOLS 5 Target image file 6 Material image file 8 Mosaic image file 10 Target image processing part 11 Target image conversion part 12 Block image processing part 13 Material image acquisition part 14 Material image pre-processing part 15 Material image conversion part 16 Material image calculation part 17 Material Image correction unit 18 Mosaic image generation unit 505 Mosaic image 511, 512, 513, 514 Material image

Claims (7)

複数の素材画像を用いてモザイク画像を生成するモザイク画像生成装置において、
前記モザイク画像の元となる対象画像を複数ブロックに分割する分割手段と、
前記分割手段により分割されたブロック内の各基本色の平均濃度値を目標濃度値としてそれぞれ算出する対象画像処理手段と、
前記複数の素材画像のうちの1つの素材画像を配置すべき配置ブロックを前記複数ブロックの中からそのブロックの画像によらず決定する決定手段と、
前記素材画像内の各基本色の平均濃度値をそれぞれ算出する算出手段と、
前記素材画像の各基本色の濃度値分布率をそれぞれ保持しながらその素材画像内の各基本色の平均濃度値がそれぞれ前記配置ブロック内の各基本色の目標濃度値となるようにその素材画像を色補正する色補正手段と、
前記色補正手段により色補正された素材画像を前記配置ブロックに配置する配置手段と、
を備えるモザイク画像生成装置。
In a mosaic image generating device that generates a mosaic image using a plurality of material images,
A dividing unit that divides the target image that is the source of the mosaic image into a plurality of blocks;
Target image processing means for calculating an average density value of each basic color in the block divided by the dividing means as a target density value;
Determining means for determining an arrangement block in which one material image of the plurality of material images is to be arranged from the plurality of blocks regardless of the image of the block;
Calculating means for calculating an average density value of each basic color in the material image;
While maintaining the density value distribution ratio of each basic color of the material image, the material image so that the average density value of each basic color in the material image becomes the target density value of each basic color in the arrangement block. Color correction means for correcting the color,
Arrangement means for arranging the material image color-corrected by the color correction means in the arrangement block;
A mosaic image generating apparatus comprising:
前記各ブロックの色を前記対象画像処理手段により算出された目標濃度値にそれぞれ均一化した状態で、許容最低濃度値から所定範囲及び許容最高濃度値から所定範囲が利用されないように前記対象画像内の各基本色の濃度値分布率を圧縮し、この圧縮された濃度値分布に応じて各基本色の平均濃度値を目標濃度値として新たに算出する対象画像補正手段を更に備え、
前記色補正手段は、前記対象画像補正手段により新たに算出された目標濃度値を用いて、前記素材画像を色補正する、
請求項1に記載のモザイク画像生成装置。
In the state where the color of each block is made uniform to the target density value calculated by the target image processing means, the predetermined range from the allowable minimum density value and the predetermined range from the maximum allowable density value are not used. The image processing apparatus further comprises target image correction means for compressing the density value distribution ratio of each basic color and newly calculating the average density value of each basic color as a target density value according to the compressed density value distribution.
The color correction unit color-corrects the material image using the target density value newly calculated by the target image correction unit;
The mosaic image generating apparatus according to claim 1.
前記算出手段は、前記素材画像内の各基本色の最高濃度値をそれぞれ更に算出し、
前記色補正手段は、
前記素材画像内の各基本色の平均濃度値がそれぞれ前記配置ブロック内の各基本色の目標濃度値となるようにその素材画像を色補正した場合に、少なくとも1つの基本色において色補正後の最高濃度値が許容最高濃度値を超えると判断すると、その少なくとも1つの基本色の濃度値分布率を、色補正後の最高濃度値が許容最高濃度値となりかつ平均濃度値が目標濃度値となるように圧縮する第1濃度変換手段を含む、
請求項1又は2に記載のモザイク画像生成装置。
The calculation means further calculates a maximum density value of each basic color in the material image,
The color correction means includes
When the material image is color-corrected so that the average density value of each basic color in the material image becomes the target density value of each basic color in the arrangement block, at least one basic color after color correction If it is determined that the maximum density value exceeds the allowable maximum density value, the density value distribution ratio of the at least one basic color is determined so that the maximum density value after color correction becomes the allowable maximum density value and the average density value becomes the target density value. Including first density conversion means for compressing
The mosaic image generating device according to claim 1 or 2.
前記算出手段は、前記素材画像内の各基本色の最高濃度値及び最低濃度値をそれぞれ更に算出し、
前記色補正手段は、
前記素材画像内の各基本色の平均濃度値がそれぞれ前記配置ブロック内の各基本色の目標濃度値となるようにその素材画像を色補正した場合に、少なくとも1つの基本色において色補正後の最高濃度値が許容最高濃度値を超えないと判断すると、その少なくとも1つの基本色の濃度値分布率を、色補正後の最低濃度値が許容最低濃度値となり平均濃度値が目標濃度値となるように伸張又は圧縮する第2濃度変換手段を含む、
請求項1から3のいずれか1項に記載のモザイク画像生成装置。
The calculation means further calculates a maximum density value and a minimum density value of each basic color in the material image,
The color correction means includes
When the material image is color-corrected so that the average density value of each basic color in the material image becomes the target density value of each basic color in the arrangement block, at least one basic color after color correction If it is determined that the maximum density value does not exceed the allowable maximum density value, the density value distribution ratio of the at least one basic color is determined. The minimum density value after color correction becomes the allowable minimum density value and the average density value becomes the target density value. Including second density conversion means for expanding or compressing
The mosaic image generating apparatus according to any one of claims 1 to 3.
前記素材画像をグレースケール画像に変換する素材画像変換手段を更に備え、
前記算出手段は、前記素材画像変換手段により変換されたグレースケール画像から基本色のいずれか1色の平均濃度値を算出し、
前記色補正手段は、前記グレースケール画像の濃度値分布率及び前記算出手段により算出された基本色のいずれか1色の平均濃度値を用いて、前記素材画像を色補正する、
請求項1から4のいずれか1項に記載のモザイク画像生成装置。
A material image converting means for converting the material image into a grayscale image;
The calculation means calculates an average density value of any one of the basic colors from the grayscale image converted by the material image conversion means,
The color correction means color-corrects the material image using a density value distribution ratio of the gray scale image and an average density value of any one of the basic colors calculated by the calculation means.
The mosaic image generating device according to any one of claims 1 to 4.
複数の素材画像を用いてモザイク画像を生成するモザイク画像生成方法において、
前記モザイク画像の元となる対象画像を複数ブロックに分割する分割ステップと、
前記分割ステップにより分割されたブロック内の各基本色の平均濃度値を目標濃度値としてそれぞれ算出する対象画像処理ステップと、
前記複数の素材画像のうちの1つの素材画像を配置すべき配置ブロックを前記複数ブロックの中からそのブロックの画像によらず決定する決定ステップと、
前記素材画像内の各基本色の平均濃度値をそれぞれ算出する算出ステップと、
前記素材画像の各基本色の濃度値分布率をそれぞれ保持しながらその素材画像内の各基本色の平均濃度値がそれぞれ前記配置ブロック内の各基本色の目標濃度値となるようにその素材画像を色補正する色補正ステップと、
前記色補正ステップにより色補正された素材画像を前記配置ブロックに配置する配置ステップと、
を実行するモザイク画像生成方法。
In a mosaic image generation method for generating a mosaic image using a plurality of material images,
A dividing step of dividing the target image that is the basis of the mosaic image into a plurality of blocks;
A target image processing step of calculating an average density value of each basic color in the block divided by the dividing step as a target density value;
A determination step of determining a placement block in which one material image of the plurality of material images is to be placed from the plurality of blocks regardless of the image of the block;
A calculation step of calculating an average density value of each basic color in the material image;
While maintaining the density value distribution ratio of each basic color of the material image, the material image so that the average density value of each basic color in the material image becomes the target density value of each basic color in the arrangement block. A color correction step for correcting the color,
An arrangement step of arranging the material image color-corrected in the color correction step in the arrangement block;
A method for generating a mosaic image.
コンピュータに複数の素材画像を用いてモザイク画像を生成させるモザイク画像生成プログラムにおいて、
前記コンピュータに、
前記モザイク画像の元となる対象画像を複数ブロックに分割する分割ステップと、
前記分割ステップにより分割されたブロック内の各基本色の平均濃度値を目標濃度値としてそれぞれ算出する対象画像処理ステップと、
前記複数の素材画像のうちの1つの素材画像を配置すべき配置ブロックを前記複数ブロックの中からそのブロックの画像によらず決定する決定ステップと、
前記素材画像内の各基本色の平均濃度値をそれぞれ算出する算出ステップと、
前記素材画像の各基本色の濃度値分布率をそれぞれ保持しながらその素材画像内の各基本色の平均濃度値がそれぞれ前記配置ブロック内の各基本色の目標濃度値となるようにその素材画像を色補正する色補正ステップと、
前記色補正ステップにより色補正された素材画像を前記配置ブロックに配置する配置ステップと、
を実行させるモザイク画像生成プログラム。
In a mosaic image generation program that causes a computer to generate a mosaic image using a plurality of material images,
In the computer,
A dividing step of dividing the target image that is the basis of the mosaic image into a plurality of blocks;
A target image processing step of calculating an average density value of each basic color in the block divided by the dividing step as a target density value;
A determining step of determining a placement block in which one material image of the plurality of material images is to be placed from the plurality of blocks regardless of the image of the block;
A calculation step of calculating an average density value of each basic color in the material image;
While maintaining the density value distribution ratio of each basic color of the material image, the material image so that the average density value of each basic color in the material image becomes the target density value of each basic color in the arrangement block. A color correction step for correcting the color,
An arrangement step of arranging the material image color-corrected in the color correction step in the arrangement block;
A mosaic image generation program that executes
JP2008006245A 2008-01-15 2008-01-15 Mosaic image generating apparatus, method and program Expired - Fee Related JP4146506B1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2008006245A JP4146506B1 (en) 2008-01-15 2008-01-15 Mosaic image generating apparatus, method and program
CN2009801022306A CN101918979B (en) 2008-01-15 2009-01-07 Mosaic image generation device and method
PCT/JP2009/050063 WO2009090901A1 (en) 2008-01-15 2009-01-07 Mosaic image generation device, method, and program
US12/837,016 US8456721B2 (en) 2008-01-15 2010-07-15 Mosaic image generating apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008006245A JP4146506B1 (en) 2008-01-15 2008-01-15 Mosaic image generating apparatus, method and program

Publications (2)

Publication Number Publication Date
JP4146506B1 JP4146506B1 (en) 2008-09-10
JP2009171158A true JP2009171158A (en) 2009-07-30

Family

ID=39787831

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008006245A Expired - Fee Related JP4146506B1 (en) 2008-01-15 2008-01-15 Mosaic image generating apparatus, method and program

Country Status (1)

Country Link
JP (1) JP4146506B1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012132039A1 (en) * 2011-03-30 2012-10-04 ピットメディア・マーケティングス株式会社 Three-dimensional mosaic image display
CN102930521A (en) * 2012-10-15 2013-02-13 上海电机学院 Mosaic image generation method
WO2013065909A1 (en) * 2011-11-02 2013-05-10 금오공과대학교 산학협력단 Method and system for generating automated photo mosaic images
US9292947B2 (en) 2011-07-01 2016-03-22 Canon Kabushiki Kaisha Image processing apparatus and an image processing method for generating mosaic image(s)
JP2020184727A (en) * 2019-05-09 2020-11-12 大日本印刷株式会社 Print printing device and mosaic image generation device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012132039A1 (en) * 2011-03-30 2012-10-04 ピットメディア・マーケティングス株式会社 Three-dimensional mosaic image display
US9292947B2 (en) 2011-07-01 2016-03-22 Canon Kabushiki Kaisha Image processing apparatus and an image processing method for generating mosaic image(s)
WO2013065909A1 (en) * 2011-11-02 2013-05-10 금오공과대학교 산학협력단 Method and system for generating automated photo mosaic images
CN102930521A (en) * 2012-10-15 2013-02-13 上海电机学院 Mosaic image generation method
JP2020184727A (en) * 2019-05-09 2020-11-12 大日本印刷株式会社 Print printing device and mosaic image generation device
JP7408923B2 (en) 2019-05-09 2024-01-09 大日本印刷株式会社 Print production device and mosaic image generation device

Also Published As

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

Similar Documents

Publication Publication Date Title
JP3607059B2 (en) Color feature extraction apparatus, color feature extraction method, and program storage medium
JP2009038498A (en) Unit and method for processing image
KR20070091853A (en) Apparatus and method for reproducting color image-adaptively
JP4146506B1 (en) Mosaic image generating apparatus, method and program
US8290262B2 (en) Color processing apparatus and method thereof
JPH11250227A (en) Method and device for correcting face area and record medium for recording face area correction program
JP2008072551A (en) Image processing method, image processing apparatus, program and recording medium
JP4243362B2 (en) Image processing apparatus, image processing method, and recording medium recording image processing program
CN103716506B (en) Image processing apparatus and image processing method
WO2000033207A1 (en) Digital image improvement through genetic image evolution
WO2012132039A1 (en) Three-dimensional mosaic image display
JP5018095B2 (en) Image expression method, image expression device, and image expression program
JP2004164276A (en) Red-eye correcting device, red-eye correcting method and its program
JP2001320593A (en) Image processing unit, and image forming device provided with it, and image processing method
JP3705250B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
WO2012081263A1 (en) Mosaic image processing device, method, and program using 3d information
JP5881350B2 (en) Image processing apparatus, image processing method, and image processing program
JP4191792B1 (en) Mosaic image generating apparatus, method and program
JP2004295410A (en) Image processing apparatus, image processing method and image processing program
JP5029779B2 (en) Image processing method, medium storing image processing program, and image processing apparatus
JP2002057912A (en) Image processor and image forming device provided with it
JPH01252069A (en) Picture processing method in color picture forming device
JP5232186B2 (en) Image processing device
JP4941575B2 (en) Image processing method, medium storing image processing program, and image processing apparatus
JP2005323293A (en) Image processing apparatus

Legal Events

Date Code Title Description
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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080619

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4146506

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110627

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20110627

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110627

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20110627

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140627

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees