JPH11341265A - Method and device for picture processing - Google Patents

Method and device for picture processing

Info

Publication number
JPH11341265A
JPH11341265A JP10150011A JP15001198A JPH11341265A JP H11341265 A JPH11341265 A JP H11341265A JP 10150011 A JP10150011 A JP 10150011A JP 15001198 A JP15001198 A JP 15001198A JP H11341265 A JPH11341265 A JP H11341265A
Authority
JP
Japan
Prior art keywords
image
area
average density
calculating
difference
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.)
Withdrawn
Application number
JP10150011A
Other languages
Japanese (ja)
Inventor
Kunihiro Yamamoto
邦浩 山本
Kentaro Matsumoto
健太郎 松本
Kiyoshi Kusama
澄 草間
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP10150011A priority Critical patent/JPH11341265A/en
Priority to EP99304188A priority patent/EP0961230A3/en
Priority to US09/322,026 priority patent/US6556210B1/en
Publication of JPH11341265A publication Critical patent/JPH11341265A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To prepare a mosaic picture with a decreased density difference from an original picture in a mosaic picture as a whole by having a density difference between a division area of the original picture and a material picture distributed in a peripheral area. SOLUTION: This device is a picture processor which combines plural material pictures into a mosaic pattern and generates a mosaic picture, and it divides an original picture into plural areas (S31) and calculates an average density of each area of these divided areas (S32). Each average density of stored plural material pictures is calculated (S33), the material picture to be allocated to each area is decided (S37) in accordance with each average density of these operated areas and that of the plural material pictures, a difference of the average density between the decided material picture and the area concerned is obtained (S38), and is distributed to a area nearby the area (S36).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明、複数の素材画像をモ
ザイク様に組み合わせてモザイク画像を生成する画像処
理方法及び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus for generating a mosaic image by combining a plurality of material images in a mosaic manner.

【0002】[0002]

【従来の技術】[Prior art]

【0003】モザイクとは、「種々の色彩の石・ガラス
・大理石等の小片を組み合わせて、床・壁などにはめ込
み、図案化したもの、またはその技法」(三省堂 現代
国語辞典)として広く知られている。この技法を用い
て、多数の写真画像を組み合わせて図案、或は1つの写
真画像を構成することが可能である。
[0003] The mosaic is widely known as "a technique in which small pieces of stone, glass, marble, etc. of various colors are combined, set in a floor, a wall, etc., and designed, or a technique thereof" (Sanseido Modern Japanese Dictionary). ing. Using this technique, many photographic images can be combined to form a design or one photographic image.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うなモザイク画を作成する場合、元になる画像を複数の
領域に分割し、これら各領域にモザイク画像を構成する
素材画像(タイル画像)を組み込んでモザイク画像を作
成する。しかしながら、その元の画像の分割された領域
の色に近い素材画像を貼り付けなければ、その作成され
たモザイク画像の品質が元の画像とは全く異なったもの
となり、また作成されたモザイク画像の品位も低下する
という問題があった。
However, when creating such a mosaic image, the original image is divided into a plurality of regions, and a material image (tile image) constituting the mosaic image is incorporated into each of these regions. Create a mosaic image with. However, if the material image close to the color of the divided area of the original image is not pasted, the quality of the created mosaic image will be completely different from the original image, and There was a problem that the quality also deteriorated.

【0005】本発明は上記従来例に鑑みてなされたもの
で、元の画像の色に近い素材画像を貼り付けてモザイク
画像を作成する画像処理方法及び装置を提供することを
目的とする。
The present invention has been made in view of the above conventional example, and has as its object to provide an image processing method and apparatus for creating a mosaic image by pasting a material image close to the color of the original image.

【0006】また本発明の目的は、元の画像の分割領域
と素材画像との濃度の差分を周辺領域に分散させて、モ
ザイク画像全体における元の画像との濃度差を減らした
モザイク画像を作成する画像処理方法及び装置を提供す
ることにある。
Another object of the present invention is to create a mosaic image in which the density difference between the original image and the original image is reduced by dispersing the difference in density between the divided region of the original image and the material image in peripheral regions. To provide an image processing method and apparatus.

【0007】また本発明の目的は、元の画像の濃度の特
徴を維持しながら高品位のモザイク画像を作成する画像
処理方法及び装置を提供することにある。
Another object of the present invention is to provide an image processing method and apparatus for creating a high-quality mosaic image while maintaining the density characteristics of the original image.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に本発明の画像処理装置は以下のような構成を備える。
即ち、複数の素材画像をモザイク様に組み合わせてモザ
イク画像を生成する画像処理装置であって、複数の素材
画像を記憶する記憶手段と、前記記憶手段に記憶されて
いる複数の素材画像のそれぞれの平均濃度を算出する計
算手段と、元になる画像を複数の領域に分割し、前記分
割された各領域の平均濃度を計算する演算手段と、前記
演算手段により演算された領域の平均濃度と前記計算手
段により得られた前記複数の素材画像のそれぞれの平均
濃度に応じて前記領域に割り当てる素材画像を決定する
素材画像決定手段と、前記素材画像決定手段により決定
された素材画像と当該領域との平均濃度の差分を当該領
域の近傍領域に拡散する誤差拡散手段と、を有すること
を特徴とする。
In order to achieve the above object, an image processing apparatus according to the present invention has the following arrangement.
That is, an image processing apparatus that generates a mosaic image by combining a plurality of material images in a mosaic manner, wherein a storage unit that stores the plurality of material images, and a plurality of material images that are stored in the storage unit. Calculating means for calculating an average density; calculating means for dividing an original image into a plurality of areas; calculating an average density of each of the divided areas; and calculating the average density of the area calculated by the calculating means. A material image determining unit that determines a material image to be assigned to the region according to an average density of each of the plurality of material images obtained by the calculating unit; and a material image determined by the material image determining unit and the region. Error diffusion means for diffusing the difference between the average densities into a region near the region.

【0009】上記目的を達成するために本発明の画像処
理方法は以下のような工程を備える。即ち、複数の素材
画像をモザイク様に組み合わせてモザイク画像を生成す
る画像処理方法であって、複数の素材画像のそれぞれの
平均濃度を算出する計算工程と、元になる画像を複数の
領域に分割する工程と、前記分割された各領域の平均濃
度を計算する演算工程と、前記演算工程で演算された領
域の平均濃度と前記計算工程で得られた前記複数の素材
画像のそれぞれの平均濃度に応じて前記領域に割り当て
る素材画像を決定する素材画像決定工程と、前記素材画
像決定工程で決定された素材画像と当該領域との平均濃
度の差分を当該領域の近傍領域に拡散する誤差拡散工程
とを有することを特徴とする。
In order to achieve the above object, the image processing method of the present invention comprises the following steps. That is, an image processing method for generating a mosaic image by combining a plurality of material images in a mosaic manner, and calculating a mean density of each of the plurality of material images, and dividing the original image into a plurality of regions Calculating the average density of each of the divided areas, and calculating the average density of the area calculated in the calculation step and the average density of each of the plurality of material images obtained in the calculation step. A material image determining step of determining a material image to be assigned to the region, and an error diffusion step of diffusing the difference between the material image determined in the material image determining step and the average density of the region to a region near the region. It is characterized by having.

【0010】[0010]

【発明の実施の形態】(実施の形態1)以下、添付図面
を参照して本発明の好適な実施の形態を詳細に説明す
る。
(Embodiment 1) Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

【0011】図1は、本発明の実施の形態の画像処理が
実行されるコンピュータ・システムの構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing a configuration of a computer system for executing image processing according to an embodiment of the present invention.

【0012】図1において、101はCPUで、ハード
ディスク106に記憶されRAM105にロードされた
プログラムに従ってシステム全体の制御を行っている。
102はキーボードで、マウス102aとともに、本実
施の形態のシステムに各種コマンドやデータを入力する
ために使用される。103は表示部で、例えばCRTや
液晶等を備えている。104はROM、105はRAM
で、本実施の形態のシステムにおける記憶部を構成し、
システムが実行するプログラムやシステムが利用するデ
ータなどを記憶している。106はハードディスク、1
07はフロッピーディスク装置で、本実施の形態のシス
テムのファイルシステムで使用される外部記憶装置を構
成している。108はプリンタである。
In FIG. 1, a CPU 101 controls the entire system according to a program stored in a hard disk 106 and loaded into a RAM 105.
A keyboard 102 is used together with the mouse 102a to input various commands and data to the system according to the present embodiment. A display unit 103 includes, for example, a CRT and a liquid crystal. 104 is ROM, 105 is RAM
Thus, the storage unit in the system of the present embodiment is configured,
It stores programs executed by the system and data used by the system. 106 is a hard disk, 1
Reference numeral 07 denotes a floppy disk device, which constitutes an external storage device used in the file system of the system according to the present embodiment. 108 is a printer.

【0013】ハードディスク106にはモザイク画の構
成要素となるタイル画像が複数(P)枚格納されてお
り、後述するプログラムに従って、この中から選択され
たM×N枚の画像を、図2に示すように、水平方向にM
枚、垂直方向にN枚並べて組み合わせることでモザイク
画像を作成する。こうして作成されたモザイク画像は、
ハードディスク106に画像ファイルとして記憶され、
CRT103に表示されたり、或はプリンタ108に出
力されて印刷される。
The hard disk 106 stores a plurality (P) of tile images serving as constituent elements of a mosaic image. M × N images selected from these are shown in FIG. 2 according to a program described later. So, M in the horizontal direction
A mosaic image is created by combining and arranging N images in the vertical direction. The mosaic image created in this way is
Stored as an image file on the hard disk 106,
The data is displayed on the CRT 103 or output to the printer 108 and printed.

【0014】図3は、モザイク手法で用いられる画像の
関係を説明する図である。
FIG. 3 is a diagram for explaining the relationship between images used in the mosaic method.

【0015】図3において、画像201は、モザイク手
法を使って画像を構成する際に元になる図案或は画像を
示している。画像202は、モザイク手法により複数の
小さな画像(タイル)を使って構成されたモザイク画像
である。素材画像203は画像202を構成するために
使われる素材画像である。これら素材画像の枚数Pは、
一般に画像202を構成するに必要となる色・テクスチ
ャの種類が用意できるだけの十分大きな数である。ここ
では説明のために、P枚の素材画像のそれぞれサイズを
タイルと同じサイズにしているが、各素材画像のサイズ
は必ずしもタイルのサイズと一致している必要はなく、
またP枚が全て同じサイズである必要はない。このよう
に各素材画像のサイズが異なる場合などでは、画像20
2の該当するタイルに貼り付ける際に、素材画像のサイ
ズを変換する必要が生じる。なお、ここで枚数Pは、上
述のM×N枚よりも十分に大きい数である。
In FIG. 3, an image 201 indicates a design or an image that is the basis for forming an image using the mosaic method. The image 202 is a mosaic image configured using a plurality of small images (tiles) by a mosaic method. The material image 203 is a material image used to compose the image 202. The number P of these material images is
Generally, the number of colors and textures required to compose the image 202 is a sufficiently large number that can be prepared. Here, for the sake of explanation, the size of each of the P material images is set to the same size as the tile, but the size of each material image does not necessarily need to match the size of the tile.
Also, it is not necessary that all P sheets have the same size. When the size of each material image is different as described above, the image 20
When pasting to the corresponding tile of No. 2, the size of the material image needs to be converted. Here, the number of sheets P is a number sufficiently larger than the above-mentioned M × N sheets.

【0016】図4乃至図7を参照して、P枚の素材画像
203から適切なM×N枚の画像を選択し、元の画像2
01に基づくモザイク画像202を作成する方法を説明
する。
Referring to FIGS. 4 to 7, appropriate M × N images are selected from P material images 203, and the original image 2 is selected.
A method for creating a mosaic image 202 based on 01 will be described.

【0017】図4は、本実施の形態のコンピュータシス
テムにおけるモザイク画像の生成方法を説明するフロー
チャートで、この処理を実行するプログラムはハードデ
ィスク106に記憶されており、RAM105にロード
されて実行される。
FIG. 4 is a flowchart illustrating a method for generating a mosaic image in the computer system according to the present embodiment. A program for executing this processing is stored in the hard disk 106 and is loaded into the RAM 105 and executed.

【0018】まずステップS31で、元の画像201を
M×N個の領域(タイルに相当)に分割する。その結
果、M×N個の矩形領域TL(0,0),TL(0,
1),…,TL(M−1,N−1)が生成される。
First, in step S31, the original image 201 is divided into M × N areas (corresponding to tiles). As a result, M × N rectangular areas TL (0,0), TL (0,
1),..., TL (M−1, N−1) are generated.

【0019】図6は、元の画像201をM×N(M=
4,N=5)個の矩形領域に分割した例を示している。
FIG. 6 shows that the original image 201 is M × N (M = N).
4, (N = 5) rectangular areas are shown.

【0020】図6において、X,Yはそれぞれ画像20
1の水平、垂直方向の画素数を示し、p,qは画像20
1をM×N個の領域{TL(0,0),…,TL(M−
1,N−1)}に分割した際の、各領域の水平、垂直方
向の画素数である。従って、X(画素)=p(画素)×
M,Y(画素)=q(画素)×Nという関係が成り立っ
ている。
In FIG. 6, X and Y are images 20 respectively.
1 indicates the number of pixels in the horizontal and vertical directions.
1 is defined as M × N areas {TL (0,0),..., TL (M−
1, (N-1)} is the number of pixels in each region in the horizontal and vertical directions. Therefore, X (pixel) = p (pixel) ×
The relationship of M, Y (pixel) = q (pixel) × N holds.

【0021】図7は、各タイル(領域)の構成を示して
いる。各タイルは3原色{赤(R)、緑(G)、青
(B)}のp×q画素から成る。
FIG. 7 shows the configuration of each tile (region). Each tile is composed of p × q pixels of three primary colors {red (R), green (G), blue (B)}.

【0022】次にステップS32で、M×N個の各領域
におけるRGB各々の平均濃度からなる領域平均濃度d
i,jを次式に従って計算する。ここで、di,jは3次元ベ
クトルの2次元配列で、di,j=(Ri,j,Gi,j、Bi,
j)で示される。
Next, in step S32, an area average density d comprising an average density of each of RGB in each of the M × N areas.
i and j are calculated according to the following equations. Here, di, j is a two-dimensional array of three-dimensional vectors, and di, j = (Ri, j, Gi, j, Bi,
j).

【0023】[0023]

【数1】(Equation 1)

【0024】di,j=(ΣR/p・q,ΣG/p・q,
ΣB/p・q) ここで、Σは各領域に含まれる全画素についての総和を
示す。また、(0≦i≦M−1,0≦j≦N−1)であ
る。
Di, j = (ΣR / p · q, ΣG / p · q,
{B / p · q) Here, Σ indicates the sum of all pixels included in each area. Also, (0 ≦ i ≦ M−1, 0 ≦ j ≦ N−1).

【0025】ステップS33で、P枚の素材画像につい
ても同様に,各素材画像のRGBの平均濃度に基づく素
材画像の平均濃度tkを計算する。これは各素材画像の
サイズをp’×q’(画素)とすると、
In step S33, the average density tk of the material images is calculated on the basis of the RGB average densities of the P material images. This means that if the size of each material image is p '× q' (pixels),

【0026】[0026]

【数2】(Equation 2)

【0027】tk=(ΣR/p’・q’,ΣG/p’・
q’,ΣB/p’・q’) (0≦k≦P−1) こうしてステップS34に進み、以下のステップS34
〜S42で、画像の2値化に用いられる公知の誤差拡散
法の手法を採用しながら各領域を置き換えるのに最も適
切な素材画像を選択する。
Tk = (ΣR / p ′ · q ′, ΣG / p ′ ·
q ′, ΣB / p ′ · q ′) (0 ≦ k ≦ P−1) Thus, the process proceeds to step S34, and the following step S34
In steps S42 to S42, the most appropriate material image for replacing each area is selected while employing a known error diffusion method used for binarizing the image.

【0028】まずステップS34で、水平方向のカウン
タ変数iを“0”で初期化し、次のステップS35で、
垂直方向のカウンタ変数jを“0”で初期化する。また
このとき、それまでの領域で計算された誤差の蓄積であ
る誤差ベクトルeを(0,0,0)に初期化する。次に
ステップS36に進み、領域(i,j)の平均濃度di,
jに誤差ベクトルeを加える。
First, in step S34, a horizontal counter variable i is initialized to "0". In the next step S35,
A vertical counter variable j is initialized to “0”. At this time, the error vector e, which is the accumulation of the errors calculated in the previous region, is initialized to (0, 0, 0). Next, proceeding to step S36, the average density di, of the area (i, j) is obtained.
An error vector e is added to j.

【0029】di,j ← di,j+e 次にステップS37に進み、その領域の平均濃度di,j
に最も近い素材画像kを選択する。この選択方法につい
ては、図5のフローチャートを参照して詳しく後述す
る。
Di, j ← di, j + e Next, the process proceeds to step S37, where the average density di, j of the area is set.
Is selected as the material image k closest to. This selection method will be described later in detail with reference to the flowchart of FIG.

【0030】こうして、その領域に最適な素材画像が選
択されるとステップS38に進み、その領域の平均濃度
di,jと、選択された素材画像の平均濃度tkとの差に基
づく誤差ベクトルeを算出する。
In this way, when the optimum material image for the region is selected, the process proceeds to step S38, where an error vector e based on the difference between the average density di, j of the region and the average density tk of the selected material image is calculated. calculate.

【0031】e ← di,j−tk こうして得られた誤差ベクトルeは、後続の処理で水平
方向の右隣りに位置する領域に拡散される。
E ← di, j-tk The error vector e obtained in this manner is diffused in a subsequent process to an area located on the right side in the horizontal direction.

【0032】即ち、ステップS39では、カウンタ変数
iをインクリメント(+1)し、ステップS40で、変
数iの値とMとを比較し、等しければ図6において水平
方向の4領域の処理が完了したと判断してステップS4
1に進み、垂直方向に1つ進めるように垂直方向のカウ
ンタ変数jを+1する。そしてステップS42で、変数
jの値とNとを比較し、等しければM×N個の領域全て
に対する処理が終了したとして処理を終了し、そうでな
ければステップS35に戻って、前述のようにその水平
方向の領域に対する処理を実行する。
That is, in a step S39, the counter variable i is incremented (+1), and in a step S40, the value of the variable i is compared with M. Judge and step S4
Then, the counter variable j in the vertical direction is incremented by one so as to advance one in the vertical direction. Then, in step S42, the value of the variable j is compared with N, and if they are equal, the processing is terminated assuming that the processing has been completed for all M × N areas. Otherwise, the processing returns to step S35, and The processing for the horizontal area is executed.

【0033】又ステップS40で、変数iの値がMに等
しくないときはステップS36に戻り、水平方向の右隣
りに位置する領域に対する処理を行う。
If it is determined in step S40 that the value of the variable i is not equal to M, the process returns to step S36, and the process is performed on the region located on the right side in the horizontal direction.

【0034】次に図5のフローチャートを参照して、図
4のステップS37における最適な素材画像の選択処理
を説明する。
Next, the process of selecting an optimum material image in step S37 of FIG. 4 will be described with reference to the flowchart of FIG.

【0035】[最適素材画像tkの選択]図5は、図4
のステップS37の素材画像の決定処理を示すフローチ
ャートである。
[Selection of Optimum Material Image tk] FIG.
It is a flowchart which shows the determination process of the material image of step S37 of FIG.

【0036】まずステップS41で、素材画像の枚数を
計数するためのカウンタ変数h、変数kを“0”で初期
化し、また、変数Dを十分大きな数で初期化する。次に
ステップS52に進み、領域(i,j)の平均濃度dj,
iと素材画像kの平均濃度tkとの差分Δdを、次式に従
い計算する。
First, in step S41, a counter variable h and a variable k for counting the number of material images are initialized to "0", and a variable D is initialized to a sufficiently large number. Next, proceeding to step S52, the average density dj, of the area (i, j) is obtained.
The difference Δd between i and the average density tk of the material image k is calculated according to the following equation.

【0037】Δd={|di,jR−tkR|の2乗}+{|
di,jG−tkG|の2乗}+{|di,jB−tKB|の2乗} 尚、この式において、|di,jR−tkR|はR成分の誤
差,|di,jG−tkG|はG成分の誤差、|di,jB−tKB
|はB成分の誤差を表わしている。
Δd = {| square of di, jR−tkR |} + {|
square of di, jG-tkG | + square of di, jB-tKB | In this equation, | di, jR-tkR | is an error of the R component, and | di, jG-tkG | G component error, | di, jB-tKB
| Represents an error of the B component.

【0038】次にステップS53に進み、この差分Δd
と変数Dの値とを比較し、Δd<DであればステップS
54に進み、変数Dに差分Δdをセットし、素材画像を
示す変数kにカウンタhの値を代入する。これによりス
テップS54で、誤差Δdが最小となったときの素材画
像を示すkの値が決定される。
Then, the process proceeds to a step S53, wherein the difference Δd
Is compared with the value of the variable D. If Δd <D, step S
In step 54, the difference Δd is set to the variable D, and the value of the counter h is substituted for the variable k indicating the material image. Thereby, in step S54, the value of k indicating the material image when the error Δd is minimized is determined.

【0039】このステップS54に続いて、或はステッ
プS53で、Δd<DでないときはステップS55に進
み、カウンタhをインクリメント(+1)する。そして
ステップS56に進み、カウンタhの値と素材画像の数
(P)とを比較し、等しければ全素材画像に対する参照
処理が終了したものとしてステップS47に進むが、そ
うでないときはステップS52に戻り、前述した処理を
繰返す。
Subsequent to step S54 or in step S53, if Δd <D is not satisfied, the process proceeds to step S55, and the counter h is incremented (+1). Then, the process proceeds to step S56, where the value of the counter h is compared with the number (P) of the material images. If the values are equal, the process proceeds to step S47 assuming that the reference process for all the material images has been completed. Are repeated.

【0040】こうしてステップS47に進むと、画像2
02の領域(i,j)に貼り付ける素材画像kが決定さ
れ、その決定された素材画像がその領域(i,j)に貼
り付けられる。
When the process proceeds to step S47, the image 2
The material image k to be pasted on the area 02 (i, j) is determined, and the decided material image is pasted on the area (i, j).

【0041】(他の実施の形態)図5のステップS52
では、元の画像の領域と素材画像との平均濃度の差分計
算を2乗距離計算を用いて行ったが、本発明はこれに限
定されるものでなく、単に絶対値(|di,jR−tkR|,
|di,jG−tkG|,|di,jB−tKB|)により求めても
良い。この場合には、2乗距離計算にの場合と比べて計
算精度は下がるが処理速度を上げることができる。
(Other Embodiment) Step S52 in FIG.
In the above, the difference calculation of the average density between the area of the original image and the material image was performed using the square distance calculation. However, the present invention is not limited to this, and simply calculates the absolute value (| di, jR− tkR |,
| Di, jG-tkG |, | di, jB-tKB |). In this case, although the calculation accuracy is lower than in the case of the square distance calculation, the processing speed can be increased.

【0042】また、誤差eの拡散方向を右方向のみとし
ているが、本発明はこれに限定されるものでなく、例え
ば右側の領域と下側の領域のそれぞれに誤差eを半分ず
つ拡散するなど、一般的な誤差拡散法で用いられる各種
の手法を適用することにより、生成されるモザイク画像
の品質をより向上させることができる。
Although the error e is diffused only in the right direction, the present invention is not limited to this. For example, the error e is diffused by half into each of the right region and the lower region. By applying various methods used in a general error diffusion method, it is possible to further improve the quality of a generated mosaic image.

【0043】なお、本発明は、複数の機器(例えばホス
トコンピュータ,インタフェイス機器,リーダ,プリン
タなど)から構成されるシステムに適用しても、一つの
機器からなる装置(例えば、複写機,ファクシミリ装置
など)に適用してもよい。
Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), a device including one device (for example, a copying machine, a facsimile machine). Device).

【0044】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても達成される。
Further, an object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer (or CPU) of the system or apparatus.
Or MPU) reads and executes the program code stored in the storage medium.

【0045】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0046】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0047】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれる。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) Performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0048】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれる。
Further, after the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, The case where the CPU of the function expansion board or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing is also included.

【0049】以上説明したように本実施の形態によれ
ば、素材とタイルの誤差の総量を減らすことができ、モ
ザイク画の品質を向上することができる。
As described above, according to the present embodiment, it is possible to reduce the total amount of error between a material and a tile, and to improve the quality of a mosaic image.

【0050】[0050]

【発明の効果】以上説明したように本発明によれば、元
の画像の分割領域と素材画像との濃度の差分を周辺領域
に分散させて、モザイク画像全体における元の画像との
濃度差を減らしたモザイク画像を作成することができ
る。
As described above, according to the present invention, the difference in density between the divided region of the original image and the material image is dispersed in the peripheral region, and the difference in density between the original image and the entire mosaic image is calculated. A reduced mosaic image can be created.

【0051】また本発明によれば、元の画像の濃度の特
徴を維持しながら高品位のモザイク画像を作成すること
ができる。
According to the present invention, a high-quality mosaic image can be created while maintaining the density characteristics of the original image.

【0052】[0052]

【図面の簡単な説明】[Brief description of the drawings]

【図1】本実施の形態のコンピュータシステムの構成を
示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a computer system according to an embodiment.

【図2】モザイク画像を説明する図である。FIG. 2 is a diagram illustrating a mosaic image.

【図3】モザイク画の生成過程を説明する図である。FIG. 3 is a diagram illustrating a process of generating a mosaic image.

【図4】本実施の形態のコンピュータシステムにおける
モザイク画の作成処理の流れを説明するフローチャート
である。
FIG. 4 is a flowchart illustrating a flow of a mosaic image creation process in the computer system of the present embodiment.

【図5】図4のステップS37の素材画像の決定処理を
示すフローチャートである。
FIG. 5 is a flowchart showing a process of determining a material image in step S37 of FIG. 4;

【図6】モザイク画像の一例を説明する図である。FIG. 6 is a diagram illustrating an example of a mosaic image.

【図7】モザイク画を構成する個々のタイルの色構成を
説明する図である。
FIG. 7 is a diagram illustrating a color configuration of individual tiles forming a mosaic image.

【符号の説明】[Explanation of symbols]

101 CPU 102 キーボード 102a マウス 103 表示部 104 ROM 105 RAM 106 ハードディスク 107 フロッピーディスク 108 プリンタ 101 CPU 102 Keyboard 102a Mouse 103 Display 104 ROM 105 RAM 106 Hard Disk 107 Floppy Disk 108 Printer

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 複数の素材画像をモザイク様に組み合わ
せてモザイク画像を生成する画像処理装置であって、 複数の素材画像を記憶する記憶手段と、 前記記憶手段に記憶されている複数の素材画像のそれぞ
れの平均濃度を算出する計算手段と、 元になる画像を複数の領域に分割し、前記分割された各
領域の平均濃度を計算する演算手段と、 前記演算手段により演算された領域の平均濃度と前記計
算手段により得られた前記複数の素材画像のそれぞれの
平均濃度に応じて前記領域に割り当てる素材画像を決定
する素材画像決定手段と、 前記素材画像決定手段により決定された素材画像と当該
領域との平均濃度の差分を当該領域の近傍領域に拡散す
る誤差拡散手段と、を有することを特徴とする画像処理
装置。
1. An image processing apparatus for generating a mosaic image by combining a plurality of material images in a mosaic manner, comprising: storage means for storing a plurality of material images; and a plurality of material images stored in the storage means. Calculating means for calculating the average density of each of the following; calculating means for dividing the original image into a plurality of areas; calculating the average density of each of the divided areas; and calculating the average of the areas calculated by the calculating means. A material image determining unit that determines a material image to be assigned to the region according to a density and an average density of each of the plurality of material images obtained by the calculating unit; and a material image determined by the material image determining unit. An error diffusion unit for diffusing a difference between the average density of the region and a region near the region.
【請求項2】 前記素材画像決定手段は、前記領域の平
均濃度と前記複数の素材画像のそれぞれの平均濃度との
差が最小になる素材画像を前記領域に割り当てる素材画
像とすることを特徴とする請求項1に記載の画像処理装
置。
2. The method according to claim 1, wherein the material image determining unit assigns a material image having a minimum difference between an average density of the area and an average density of each of the plurality of material images to the area. The image processing device according to claim 1.
【請求項3】 前記計算手段は、前記複数の素材画像の
それぞれの色成分ごとの平均濃度を求めることを特徴と
する請求項1に記載の画像処理装置。
3. The image processing apparatus according to claim 1, wherein the calculating unit obtains an average density for each color component of the plurality of material images.
【請求項4】 前記演算手段は、前記各領域の色成分ご
との平均濃度を求めることを特徴とする請求項1に記載
の画像処理装置。
4. The image processing apparatus according to claim 1, wherein said calculating means obtains an average density for each color component of each area.
【請求項5】 前記誤差拡散手段は、当該領域の右隣に
位置している領域の濃度に前記差分を分配することを特
徴とする請求項1に記載の画像処理装置。
5. The image processing apparatus according to claim 1, wherein the error diffusion unit distributes the difference to a density of an area located on the right of the area.
【請求項6】 前記誤差拡散手段は、当該領域の右隣及
び、もしくは下側に位置している領域の濃度に前記差分
を分配することを特徴とする請求項1に記載の画像処理
装置。
6. The image processing apparatus according to claim 1, wherein the error diffusion unit distributes the difference to a density of an area located on the right and / or below the area.
【請求項7】 複数の素材画像をモザイク様に組み合わ
せてモザイク画像を生成する画像処理方法であって、 複数の素材画像のそれぞれの平均濃度を算出する計算工
程と、 元になる画像を複数の領域に分割する工程と、 前記分割された各領域の平均濃度を計算する演算工程
と、 前記演算工程で演算された領域の平均濃度と前記計算工
程で得られた前記複数の素材画像のそれぞれの平均濃度
に応じて前記領域に割り当てる素材画像を決定する素材
画像決定工程と、 前記素材画像決定工程で決定された素材画像と当該領域
との平均濃度の差分を当該領域の近傍領域に拡散する誤
差拡散工程と、を有することを特徴とする画像処理方
法。
7. An image processing method for generating a mosaic image by combining a plurality of material images in a mosaic manner, comprising: a calculating step of calculating an average density of each of the plurality of material images; A step of dividing the region into regions; a calculating step of calculating an average density of each of the divided regions; and an average density of the region calculated in the calculating step and each of the plurality of material images obtained in the calculating step. A material image determining step of determining a material image to be assigned to the area according to an average density; and an error for diffusing a difference between an average density of the material image determined in the material image determining step and the area to a neighboring area of the area. An image processing method, comprising: a diffusion step.
【請求項8】 前記素材画像決定工程では、前記領域の
平均濃度と前記複数の素材画像のそれぞれの平均濃度と
の差が最小になる素材画像を前記領域に割り当てる素材
画像とすることを特徴とする請求項7に記載の画像処理
方法。
8. In the material image determining step, a material image in which a difference between an average density of the area and an average density of each of the plurality of material images is minimized is set as a material image to be assigned to the area. The image processing method according to claim 7.
【請求項9】 前記計算工程では、前記複数の素材画像
のそれぞれの色成分ごとの平均濃度を求めることを特徴
とする請求項7に記載の画像処理方法。
9. The image processing method according to claim 7, wherein, in the calculating step, an average density for each color component of the plurality of material images is obtained.
【請求項10】 前記演算工程では、前記各領域の色成
分ごとの平均濃度を求めることを特徴とする請求項7に
記載の画像処理方法。
10. The image processing method according to claim 7, wherein, in the calculating step, an average density of each color component in each of the regions is obtained.
【請求項11】 前記誤差拡散工程では、当該領域の右
隣に位置している領域の濃度に前記差分を分配すること
を特徴とする請求項7に記載の画像処理方法。
11. The image processing method according to claim 7, wherein, in the error diffusion step, the difference is distributed to densities of an area located on the right of the area.
【請求項12】 前記誤差拡散工程では、当該領域の右
隣及び、もしくは下側に位置している領域の濃度に前記
差分を分配することを特徴とする請求項7に記載の画像
処理方法。
12. The image processing method according to claim 7, wherein, in the error diffusion step, the difference is distributed to densities of a region located on the right of and / or below the region.
【請求項13】 複数の素材画像をモザイク様に組み合
わせてモザイク画像を生成する画像処理方法を実行する
プログラムを記憶するコンピュータにより読み取り可能
な記憶媒体であって、 複数の素材画像のそれぞれの平均濃度を算出する計算工
程モジュールと、 元になる画像を複数の領域に分割する工程モジュール
と、 前記分割された各領域の平均濃度を計算する演算工程モ
ジュールと、 前記演算工程モジュールで演算された領域の平均濃度と
前記計算工程モジュールで得られた前記複数の素材画像
のそれぞれの平均濃度に応じて前記領域に割り当てる素
材画像を決定する素材画像決定工程モジュールと、 前記素材画像決定工程モジュールで決定された素材画像
と当該領域との平均濃度の差分を当該領域の近傍領域に
拡散する誤差拡散工程モジュールと、を有することを特
徴とする記憶媒体。
13. A storage medium readable by a computer for storing a program for executing an image processing method for generating a mosaic image by combining a plurality of material images in a mosaic manner, wherein the average density of each of the plurality of material images is provided. A calculation process module for calculating the original image, a process module for dividing the original image into a plurality of regions, a calculation process module for calculating an average density of each of the divided regions, A material image determining step module for determining a material image to be assigned to the region according to an average density and an average density of each of the plurality of material images obtained by the calculating step module; An error diffusion process that diffuses the difference between the average density of the material image and the area to the area near the area Storage medium characterized by having a module.
【請求項14】 前記素材画像決定工程モジュールで
は、前記領域の平均濃度と前記複数の素材画像のそれぞ
れの平均濃度との差が最小になる素材画像を前記領域に
割り当てる素材画像とすることを特徴とする請求項13
に記載の記憶媒体。
14. The material image determination step module, wherein a material image that minimizes a difference between an average density of the area and an average density of each of the plurality of material images is a material image to be assigned to the area. Claim 13
A storage medium according to claim 1.
【請求項15】 前記計算工程モジュールでは、前記複
数の素材画像のそれぞれの色成分ごとの平均濃度を求め
ることを特徴とする請求項13に記載の記憶媒体。
15. The storage medium according to claim 13, wherein said calculation step module calculates an average density for each color component of said plurality of material images.
【請求項16】 前記演算工程モジュールでは、前記各
領域の色成分ごとの平均濃度を求めることを特徴とする
請求項13に記載の記憶媒体。
16. The storage medium according to claim 13, wherein said calculation step module calculates an average density for each color component of each area.
【請求項17】 前記誤差拡散工程モジュールでは、当
該領域の右隣に位置している領域の濃度に前記差分を分
配することを特徴とする請求項13に記載の記憶媒体。
17. The storage medium according to claim 13, wherein the error diffusion step module distributes the difference to a density of an area located on the right of the area.
【請求項18】 前記誤差拡散工程モジュールでは、当
該領域の右隣及び、もしくは下側に位置している領域の
濃度に前記差分を分配することを特徴とする請求項13
に記載の記憶媒体
18. The error diffusion process module according to claim 13, wherein the difference is distributed to the density of an area located on the right and / or below the area.
Storage media described in
JP10150011A 1998-05-29 1998-05-29 Method and device for picture processing Withdrawn JPH11341265A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP10150011A JPH11341265A (en) 1998-05-29 1998-05-29 Method and device for picture processing
EP99304188A EP0961230A3 (en) 1998-05-29 1999-05-28 Image processing method and apparatus therefor
US09/322,026 US6556210B1 (en) 1998-05-29 1999-05-28 Image processing method and apparatus therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10150011A JPH11341265A (en) 1998-05-29 1998-05-29 Method and device for picture processing

Publications (1)

Publication Number Publication Date
JPH11341265A true JPH11341265A (en) 1999-12-10

Family

ID=15487534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10150011A Withdrawn JPH11341265A (en) 1998-05-29 1998-05-29 Method and device for picture processing

Country Status (1)

Country Link
JP (1) JPH11341265A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001238067A (en) * 2000-02-25 2001-08-31 Canon Inc Method and device for processing picture
US6927874B1 (en) 1999-04-02 2005-08-09 Canon Kabushiki Kaisha Image processing method, apparatus and storage medium therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6927874B1 (en) 1999-04-02 2005-08-09 Canon Kabushiki Kaisha Image processing method, apparatus and storage medium therefor
JP2001238067A (en) * 2000-02-25 2001-08-31 Canon Inc Method and device for processing picture

Similar Documents

Publication Publication Date Title
US5465121A (en) Method and system for compensating for image distortion caused by off-axis image projection
EP1421795B1 (en) Multi-projector mosaic with automatic registration
US6351557B1 (en) Method and apparatus for color manipulation
US6556210B1 (en) Image processing method and apparatus therefor
US6549682B2 (en) Image data processing apparatus and method, and provision medium
JP3825916B2 (en) Image processing method and apparatus
JPH11341265A (en) Method and device for picture processing
JP3584179B2 (en) Image processing method, image processing device, and storage medium
Bern et al. Optimized color gamuts for tiled displays
JPH11341264A (en) Mosaic image generation method and recording medium
US6456295B1 (en) Method for simulating diffusion on a raster
JPH1155686A (en) Device and method for processing image, device and method for generating key signal, image synthesizing device and recording medium
JPH11345313A (en) Picture processor and picture processing method
JP3584195B2 (en) Image processing method and apparatus
JP3584198B2 (en) Image processing method and apparatus
JPH10191090A (en) Apparatus and method for manufacturing color conversion table, and recording medium
JPH11345309A (en) Picture processor and picture processing method
JP2000298722A (en) Image processing method and its device
JP2007028548A (en) Apparatus and program for editing image
JP2000276584A (en) Method and device for image processing, and storage medium
JPH11345311A (en) Picture processor and picture processing method
JPH09190538A (en) Picture processor and its processing method
JP2007026388A (en) Image editing device and image editing program
JPH11345329A (en) Picture processor and picture processing method
JP2000306083A (en) Image processor, image processing method and storage medium therefor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050802