JP3584198B2 - Image processing method and apparatus - Google Patents

Image processing method and apparatus Download PDF

Info

Publication number
JP3584198B2
JP3584198B2 JP2000063661A JP2000063661A JP3584198B2 JP 3584198 B2 JP3584198 B2 JP 3584198B2 JP 2000063661 A JP2000063661 A JP 2000063661A JP 2000063661 A JP2000063661 A JP 2000063661A JP 3584198 B2 JP3584198 B2 JP 3584198B2
Authority
JP
Japan
Prior art keywords
image
color
regions
monochrome
calculating
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.)
Expired - Fee Related
Application number
JP2000063661A
Other languages
Japanese (ja)
Other versions
JP2001251496A (en
Inventor
邦浩 山本
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 JP2000063661A priority Critical patent/JP3584198B2/en
Priority to US09/538,223 priority patent/US6927874B1/en
Publication of JP2001251496A publication Critical patent/JP2001251496A/en
Application granted granted Critical
Publication of JP3584198B2 publication Critical patent/JP3584198B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、複数の素材画像をモザイク様に組み合わせてモザイク画像を生成する画像処理方法及び装置に関するものである。
【0002】
【従来の技術】
従来モザイクとは、「種々の色彩の石・ガラス・大理石などの小片を組み合わせて、床・壁などにはめ込み、図案化したもの,またはその技法」(三省堂 現代国語辞典)として広く知られてきた。この技法を用いて、多数の写真画像を組み合わせて図案或は一つの写真画像を構成することが可能である。
【0003】
【発明が解決しようとする課題】
このようなモザイク画像を作成する場合、元になる原画像を複数の領域(タイル領域)に分割し、これら各領域(タイル領域)にモザイク画像を構成する素材画像(タイル画像)を組み込んでモザイク画像を作成する。この場合、その原画像の分割されたタイル領域の色に近い素材画像を複数の素材画像の中から選択して機械的に貼り付けるようにしている。
【0004】
このとき、各々のタイル領域の色に十分似た素材画像が存在しなかった場合、その生成されるモザイク画像の品質がよくないという問題があった。
【0005】
本発明は上記従来例に鑑みてなされたもので、原画像の色差成分ではなく輝度成分に着目して、対応する素材画像を選択して貼り付ける処理を行ないモノクロ化したモザイク画像を生成する画像処理装置及びその方法を提供することを目的とする。
【0006】
【課題を解決するための手段】
上記目的を達成するために本発明の画像処理装置は以下のような構成を備える。即ち、
複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理装置であって、
原画像を複数の領域に分割する分割手段と、
前記分割手段により分割された前記複数の領域のそれぞれの各色の平均濃度及び平均輝度を算出する算出手段と、
前記算出手段により算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択する画像選択手段と、
前記画像選択手段により選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ手段と、
前記画像貼り合わせ手段により貼り合わされたカラー画像の品質を検査する検査手段と、
前記検査手段による検査結果に応じて、前記カラー画像をモノクロ化するか否かを判断する手段とを備え、
前記モノクロ化に際して、前記画像選択手段は前記算出手段により算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をモノクロ化してそれぞれ対応する領域に貼付けてモノクロ画像を生成することを特徴とする。
上記目的を達成するために本発明の画像処理装置は以下のような構成を備える。即ち、
複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理装置であって、
原画像を複数の領域に分割する分割手段と、
前記分割手段により分割された前記複数の領域のそれぞれの各色の平均濃度及 び平均輝度を算出する算出手段と、
前記算出手段により算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択する画像選択手段と、
前記画像選択手段により選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ手段と、
前記画像貼り合わせ手段により貼り合わされたカラー画像の品質を検査する検査手段と、
前記検査手段による検査結果に応じて、前記カラー画像をモノクロ化するか否かを判断する手段とを備え、
前記モノクロ化に際して、前記画像選択手段は前記算出手段により算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成し、生成された前記カラー画像全体をモノクロ化することを特徴とする。
【0007】
上記目的を達成するために本発明の画像処理方法は以下のような工程を備える。即ち、
複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理方法であって、
原画像を複数の領域に分割する分割工程と、
前記分割工程で分割された前記複数の領域のそれぞれの各色の平均濃度及び平均輝度を算出する算出工程と、
前記算出工程で算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択する画像選択工程と、
前記画像選択工程で選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ工程と、
前記画像貼り合わせ工程で貼り合わされたカラー画像の品質を検査する検査工程と、
前記検査工程による検査結果に応じて、前記カラー画像をモノクロ化するか否かを判断する工程とを備え、
前記モノクロ化に際して、前記画像選択工程では前記算出工程で算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をモノクロ化してそれぞれ対応する領域に貼付けてモノクロ画像を生成することを特徴とする。
上記目的を達成するために本発明の画像処理方法は以下のような工程を備える。即ち、
複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理方法であって、
原画像を複数の領域に分割する分割工程と、
前記分割工程で分割された前記複数の領域のそれぞれの各色の平均濃度及び平均輝度を算出する算出工程と、
前記算出工程で算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択する画像選択工程と、
前記画像選択工程で選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ工程と、
前記画像貼り合わせ工程で貼り合わされたカラー画像の品質を検査する検査工程と、
前記検査工程による検査結果に応じて、前記カラー画像をモノクロ化するか否かを判断する工程とを備え、
前記モノクロ化に際して、前記画像選択工程では前記算出工程で算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成し、生成された前記カラー画像全体をモノクロ化することを特徴とする。
【0008】
【発明の実施の形態】
以下、添付図面を参照して本発明の好適な実施の形態を詳細に説明する。
【0009】
図1は、本発明の実施の形態に係る画像処理装置の概略構成を示すブロック図である。
【0010】
図1において、101はCPUで、RAM105に記憶されたプログラムに従って、この装置全体の動作制御を行なっている。102はキーボードで、ポインティングデバイス102aであるマウス等とともにユーザにより使用され、この装置に各種データを入力するために使用される。103は表示部で、例えばCRTや液晶等で構成されている。104はROM、105はRAMで、この装置で使用されるプログラムや、各種データが記憶されている。106はハードディスク装置で、フロッピィディスク107や不図示のCD−ROMドライブ等からインストールされたプログラムやデータを記憶している。これはハードディスク装置106及びフロッピィディスク装置107はまた、この画像処理装置のファイルシステムに使用される外部記憶装置を構成している。108はプリンタで、例えばカラーインクジェットプリンタや電子写真式プリンタ等である。
【0011】
ハードディスク装置106には、モザイク画の構成要素となるタイル画像(素材画像)が複数(P枚)格納されており、後述するプログラムに従って、この中から選択されたM×N枚の画像を、図2に示すように、水平方向にM枚、垂直方向にN枚並べて組み合わせることによりモザイク画像を作成する。こうして作成されたモザイク画像は、ハードディスク装置106に画像ファイルとして記憶され、また或はCRT103に表示されたり、或はプリンタ108に出力されて印刷される。
【0012】
尚、このハードディスク装置106には、素材画像とともに、それら各素材画像の平均輝度が記憶されていてもよい。
【0013】
図3は、本実施の形態に係るモザイク手法で用いられる複数種類の画像の関係を示す図である。
【0014】
図3において、画像201は、モザイク手法を使って画像を構成する際、元となる図案或は画像である。画像202は、モザイク手法により複数の小さな画像(タイル画像)を使って構成された画像で、画像201を複数のタイル領域に分割し、各タイル領域に相応しい素材画像を選択して貼付けて構成されている。素材画像203は、画像202を構成するために使われる素材画像で、ここではP(複数)枚用意されているものとする。これら素材画像の枚数Pは、一般に画像202を構成するに必要となる色・テクスチャの種類を準備できるだけの十分大きな数である。
【0015】
尚、ここでは説明のために、P枚の素材画像203のそれぞれのサイズをタイル領域と同じサイズにしているが、各素材画像のサイズは必ずしもタイル領域のサイズと一致している必要はなく、またP枚が全て同じサイズである必要はない。このように各素材画像のサイズが異なる場合には,画像202の該当する各タイル領域に貼り付ける際に、素材画像203のサイズを変換する必要が生じる。なお、ここで枚数Pは、上述のM×N枚よりも十分に大きい数とする。
【0016】
図4は、画像201を4×5のタイル領域に分割した例を示す図で、画像201の横方向の画素数をX、縦方向の画素数をYとし、各タイル領域の横方向の画素数をp、縦方向の画素数をqで示している(X=4p,Y=5q)。又、各タイル領域は、その位置に応じてTL(x,y:x=0〜3,y=0〜4)で示されている。
【0017】
図5は、画像201がカラー画像の場合、各タイル領域が赤(R)、緑(G)、青(B)のカラープレーンで構成される様子を示している。
【0018】
[カラーモザイク画の生成処理]
図6は本実施の形態に係る画像処理装置によるモザイク画像の生成処理を示すフローチャートである。
【0019】
まずステップ11で、元の画像201をM×N個の領域(タイル領域)に分割する。この分割の結果、例えば前述の図4に示すように、第一の画像201はM×N個の矩形タイルTL(0,0),TL(1,0),TL(2,0),....,TL(2,4),TL(3,4)に分割される。図4において、X、Yはそれぞれ画像201の水平方向、垂直方向の画素数を示し、p,qは各タイル領域の水平方向、垂直方向の画素数を示している。従って、X=p×M,Y=q×Nという関係が成り立っている。尚、ここでは説明を簡単にするために、各タイル領域のサイズは全て等しいものとするが、本実施の形態では、必ずしもその必要はない。
【0020】
図5は、個々のタイル領域のデータ構成を示す図で、各タイル領域の各画素はp×q個の3原色、赤(R)、緑(G)、青(B)に分解される。
【0021】
次にステップS12に進み、ステップS11で分割したM×N個の各タイル領域について、次式に従いRGBの平均濃度を計算する。
【0022】
Rd_av=ΣRi/(p×q)
Gd_av=ΣGi/(p×q)
Bd_av=ΣBi/(p×q)
ここで、d_avは、destination(元の画像201)の平均値を意味している。よって、Rd−av,Gd−av,Bd−avのそれぞれは、各タイル領域における赤、緑及び青のそれぞれの平均濃度を示している。またΣは、i=0〜(pq−1)までの総和を示している。
【0023】
次にステップS13に進み、P枚の素材画像203のそれぞれについて次式に従い、それぞれR,G,Bの平均濃度を算出し、それをRAM105に記憶する。尚、前述したように、予めこれら素材画像203の平均濃度が求められて、これら素材画像のそれぞれに対応してハードディスク装置106に記憶されている場合は、この計算は不要であることはいうまでもない。
【0024】
Rs−av=ΣRi/(p×q)
Gs−av=ΣGi/(p×q)
Bs−av=ΣBi/(p×q)
ここで、s−avはソース(source:素材画像203)の平均値を意味している。よって、Rs−av,Gs−av,Bs−avのそれぞれは、各素材画像における赤、緑及び青のそれぞれの平均濃度を示している。またΣは、i=0〜(pq−1)までの総和を示している。
【0025】
次にステップS14に進み、対象とするタイル領域の位置を示すカウンタXpos(0≦Xpos≦M−1),Ypos(0≦Ypos≦N−1)を共に“0”として、画像201の左上端のタイル領域(タイル:TL(0,0))を処理開始位置とする。
【0026】
次にステップS15に進み、その対象となるタイル領域の平均濃度との差が最も小さい素材画像をP枚の素材画像203の中から選択する。この選択方法は、例えば、RGB3刺激値の距離ΔEを算出し、その刺激値の最も小さいものを選択する。この評価式を以下に示す。
【0027】
ΔE=(Rs−av−Rd−av)^2+(Gs−av−Gd−av)^2+(Bs−av−Bd−av)^2
ここで、「(Rs−av−Rd−av)^2」は、(Rs−av−Rd−av)の2乗を表している。
【0028】
この評価式に基づいて、P枚の素材画像203の中からRGB3刺激値の距離ΔEが最も小さい素材画像を選択し、その処理対象のタイル領域に貼付ける。
【0029】
次にステップS16に進み、処理対象となる画像201のタイル領域を次の位置に移動し、ステップS17では、画像201の全てのタイル領域に対する処理が終了したかを調べ、終了するまで上述のステップS15,S16の処理を繰り返し実行する。
【0030】
[モノクロモザイク画の生成処理]
次にモノクロ画像の場合で説明する。
【0031】
図7は、本実施の形態に係るモノクロモザイク画像を合成する処理の流れを示したフローチャートである。
【0032】
まずステップ61で画像201をM×N個の領域(タイル領域)に分割する。この分割の結果、図4に示すように、第一の画像201はM×N個のタイルTL(0,0),TL(1,0),TL(2,0),…,TL(2,4),TL(3,4)に分割される。
【0033】
尚、ここでも説明を簡単にするために、タイル領域のサイズは全て等しいものとするが、本実施の形態としては必ずしもその必要はない。図5は、個々のタイル領域の構成を示しており、各タイル領域はp×q個の3原色、赤(R)、緑(G)、青(B)に分解される。
【0034】
次にステップS62に進み、ステップS61で分割したM×N個の各タイル領域の平均輝度を計算する。ここでは、前述のステップS12と同様にして、まずR,G,Bの平均濃度を計算する。
【0035】
Rd_av=ΣRi/(p×q)
Gd_av=ΣGi/(p×q)
Bd_av=ΣBi/(p×q)
この値から、次式に基づき平均輝度を計算する。
【0036】
Ys_av=(Rd_av×77+Gd_av×150+Bd_av×29+128)/256
次にステップS63に進み、P枚の素材画像203のそれぞれについて平均輝度を計算する。ここではまず、前述のステップS13と同様にして、R,G,Bの平均濃度を算出する。
【0037】
Rs_av=ΣR/(p×q)
Gs_av=ΣGi/(p×q)
Bs_av=ΣBi/(p×q)
この値から、次式に基づき平均輝度を計算する。
【0038】
Ys_av=(Rs_av×77+Gs_av×150+Bs_av×29+128)/256
次にステップS64に進み、前述のステップS14と同様にして、処理中のタイル領域の位置を示すカウンタXpos(0≦Xpos≦M−1),Ypos(0≦Ypos≦N−1)をともに“0”に初期化する。ここで、(Xpos,Ypos)=(0,0)は、画像201の左上端のタイル領域を示している。
【0039】
次にステップS65に進み、位置カウンタXpos,Yposが指示するタイル領域に最も相応しい素材画像をP枚の素材画像203の中から選択する。この選択方法は、たとえばY刺激値の距離ΔEを算出し、その刺激値ΔEの最も小さいものを選択する。この評価式を以下に示す。
【0040】
ΔE= |Ys_av−Yd_av|
この評価式に基づいてP枚の素材画像の中から刺激値ΔEの最も小さいものを選択する。
【0041】
次にステップS66に進み、この選択された素材画像203をハードディスク106から読み出してデコードし、更にモノクロ化して貼り付ける。
【0042】
次にステップS67に進み、対象となる画像201のタイル領域を次のタイル位置に移動し、ステップS68では、画像201の全てのタイル領域に対する処理が終了したかを調べ、その処理が終了するまで、上述のステップS65乃至S68の処理を繰り返し実行する。
【0043】
尚、前述の図6の説明に従って作成したカラーモザイク画像をモノクロ画像に変換することによりモノクロモザイク画像を得ることもできるが、素材画像の選択過程で余分な色情報を考慮しているため、得られるモザイク画像の品質が悪くなる虞がある。
【0044】
これに対し本実施例のように、各タイル領域と各素材画像の平均輝度同士を比較して、対象となるタイル領域に最適な素材画像を選択することにより、高品位のモノクロモザイク画像を生成することができる。
【0045】
[その他の実施の形態]
本実施の形態のように、最初からモノクロのモザイク画像にするかどうかを決めておくのでなく、モノクロ化するか否かを、作成されたモザイク画の品質に応じて自動的に判別しても良い。この場合には、まず最初にカラーのモザイク画像を作成し、そこで十分な品質のモザイク画像が得られない場合は、モノクロのモザイク画像を得るようにしてもよい。
【0046】
この場合のモザイク画像の品質の判断基準としては、例えば周知のS/N比を用い、原画像201と、形成されたモザイク画像202のS/N比が一定基準値に達しない場合はモノクロ化するようにしても良い。
【0047】
この場合の処理を図8のフローチャートで示す。
【0048】
図8において、まずステップS71で、前述の図6のフローチャートにより作成されたモザイク画像のS/N比を検査し、ステップS72で、その検査したS/N比が所定の基準値以下かどうかをみる。以下であればステップS73に進み、そのモザイク画像をモノクロ画像に変換する。
【0049】
また前述の実施の形態では、素材画像を貼り付ける際、各素材画像をモノクロ化してから、各対応するタイル領域に貼り付けるように説明したが、素材画像をカラーのまま貼り付けてカラーのモザイク画像を生成してから、そのモザイク画像全体をモノクロ化しても同等の結果が得られる。
【0050】
また上記実施の形態では、タイル領域及び素材画像の画像データのRGB値からY平均輝度を計算したが、周知のJPEG画像のように元々YUV色空間で表現している画像データを用いれば、このY平均輝度の計算を省略できる。
【0051】
また、作成したモノクロのモザイク画像に対し、更に周知のセピア調化処理を行うことで、セピア調のモザイク画像にすることもできる。
【0052】
以上説明したように本実施の形態によれば、モザイク画像の品質を向上することができる。
【0053】
【発明の効果】
以上説明したように本発明によれば、原画像の色差成分ではなく輝度成分に着目して、対応する素材画像を選択して貼り付ける処理を行ないモノクロ化したモザイク画像を生成することができる。
【0054】
又本発明によれば、得られるモザイク画像の品質を向上することができるという効果がある。
【図面の簡単な説明】
【図1】本実施の形態に係る画像処理装置の構成を示すブロック図である。
【図2】モザイク画像を説明する図である。
【図3】モザイク画の生成過程を説明する図である。
【図4】元画像をタイル領域に分割する例を説明する図である。
【図5】モザイク画を構成する個々のタイル領域の色構成を説明する図である。
【図6】本実施の形態に係るカラーモザイク画像の生成処理の流れを説明するフローチャートである。
【図7】本実施の形態に係るモノクロのモザイク画像の生成処理の流れを説明するフローチャートである。
【図8】本発明の他の実施の形態に係るカラーモザイク画像をモノクロモザイク画像に変換する処理を説明するフローチャートである。
[0001]
TECHNICAL 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 like a mosaic.
[0002]
[Prior art]
Conventionally, mosaic has been widely known as "a combination of small pieces of stone, glass, marble, etc. of various colors, fitted into floors, walls, etc., and designed, or the technique" (Sanseido Modern Japanese Dictionary). . Using this technique, a number of photographic images can be combined to form a design or a single photographic image.
[0003]
[Problems to be solved by the invention]
When creating such a mosaic image, the original image is divided into a plurality of areas (tile areas), and a material image (tile image) constituting the mosaic image is incorporated into each of these areas (tile areas). Create an image. In this case, a material image close to the color of the divided tile area of the original image is selected from a plurality of material images and mechanically pasted.
[0004]
At this time, if there is no material image sufficiently similar to the color of each tile area, there is a problem that the quality of the generated mosaic image is not good.
[0005]
The present invention has been made in view of the above conventional example, and focuses on a luminance component, not a color difference component of an original image, and performs processing of selecting and pasting a corresponding material image to generate a monochrome mosaic image. It is an object to provide a processing device and a method thereof.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, an image processing apparatus according to the present invention has the following configuration. That is,
An image processing apparatus that creates an image imitating an original image by combining a plurality of material images selected from a plurality of material images,
Dividing means for dividing the original image into a plurality of regions;
Calculating means for calculating an average density and an average luminance of each color of each of the plurality of regions divided by the dividing means;
Based on the average density of each color of each of the material image and the average density of each color of calculating said plurality of regions by said calculating means, an image selection means for selecting a material images corresponding to each of the plurality of regions ,
Image pasting means for generating a color image by pasting the material images selected by the image selecting means to the corresponding areas,
Inspection means for inspecting the quality of the color image bonded by the image bonding means,
Means for determining whether or not to convert the color image to monochrome, according to an inspection result by the inspection means,
At the time of the monochrome conversion, the image selection unit is configured to calculate the material image corresponding to each of the plurality of regions based on the average luminance of the plurality of regions and the average luminance of the material image calculated by the calculation unit. Is selected, the selected material image is converted to a monochrome image, and the monochrome image is generated by pasting the selected material image on a corresponding area .
In order to achieve the above object, an image processing apparatus according to the present invention has the following configuration. That is,
An image processing apparatus that creates an image imitating an original image by combining a plurality of material images selected from a plurality of material images,
Dividing means for dividing the original image into a plurality of regions;
Calculation means for calculating the respective average density及 beauty average luminance of each color of the plurality of regions divided by the dividing means,
An image selection unit that selects a material image corresponding to each of the plurality of regions based on an average density of each color of each of the plurality of regions and an average density of each color of the material image calculated by the calculation unit; ,
Image pasting means for generating a color image by pasting the material images selected by the image selecting means to the corresponding areas,
Inspection means for inspecting the quality of the color image bonded by the image bonding means,
Means for determining whether or not to convert the color image to monochrome, according to an inspection result by the inspection means,
At the time of the monochrome conversion, the image selection unit is configured to calculate the material image corresponding to each of the plurality of regions based on the average luminance of the plurality of regions and the average luminance of the material image calculated by the calculation unit. Is selected, and the selected material images are pasted to corresponding areas to generate color images, and the entirety of the generated color images is converted to monochrome.
[0007]
In order to achieve the above object, the image processing method of the present invention includes the following steps. That is,
An image processing method for creating an image imitating an original image by combining a plurality of material images selected from a plurality of material images,
A dividing step of dividing the original image into a plurality of regions;
A calculating step of calculating an average density and an average luminance of each color of each of the plurality of regions divided in the dividing step;
Based on the average density of each color of each of the material image and the average density of each color of the plurality of areas calculated in the calculating step, an image selection step of selecting the material images corresponding to each of the plurality of regions ,
Image pasting step of pasting the material image selected in the image selecting step to the corresponding area to generate a color image,
An inspection step of inspecting the quality of the color image bonded in the image bonding step,
A step of determining whether or not to convert the color image to monochrome according to the inspection result of the inspection step,
At the time of the monochrome conversion, in the image selecting step, based on the average luminance of each of the plurality of areas and the average luminance of the material image calculated in the calculating step, the material image corresponding to each of the plurality of areas. Is selected, the selected material image is converted to a monochrome image, and the monochrome image is generated by pasting the selected material image on a corresponding area .
In order to achieve the above object, the image processing method of the present invention includes the following steps. That is,
An image processing method for creating an image imitating an original image by combining a plurality of material images selected from a plurality of material images,
A dividing step of dividing the original image into a plurality of regions;
A calculating step of calculating an average density and an average luminance of each color of each of the plurality of regions divided in the dividing step;
An image selection step of selecting a material image corresponding to each of the plurality of regions based on the average density of each color of each of the plurality of regions and the average density of each color of the material image calculated in the calculation step; ,
Image pasting step of pasting the material image selected in the image selecting step to the corresponding area to generate a color image,
An inspection step of inspecting the quality of the color image bonded in the image bonding step,
A step of determining whether or not to convert the color image to monochrome according to the inspection result of the inspection step,
At the time of the monochrome conversion, in the image selecting step, based on the average luminance of each of the plurality of areas and the average luminance of the material image calculated in the calculating step, the material image corresponding to each of the plurality of areas. Is selected, and the selected material images are pasted to corresponding areas to generate color images, and the entirety of the generated color images is converted to monochrome.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0009]
FIG. 1 is a block diagram illustrating a schematic configuration of an image processing apparatus according to an embodiment of the present invention.
[0010]
In FIG. 1, reference numeral 101 denotes a CPU, which controls the operation of the entire apparatus according to a program stored in a RAM 105. A keyboard 102 is used by a user together with a mouse or the like serving as a pointing device 102a, and is used to input various data to the apparatus. A display unit 103 includes, for example, a CRT or a liquid crystal. A ROM 104 and a RAM 105 store programs used in this apparatus and various data. A hard disk device 106 stores programs and data installed from a floppy disk 107 or a CD-ROM drive (not shown). The hard disk device 106 and the floppy disk device 107 also constitute an external storage device used for the file system of the image processing device. Reference numeral 108 denotes a printer, such as a color inkjet printer or an electrophotographic printer.
[0011]
The hard disk device 106 stores a plurality (P) of tile images (material images) serving as constituent elements of a mosaic image. According to a program described later, M × N images selected from these images are stored in the hard disk device 106. As shown in FIG. 2, a mosaic image is created by arranging and combining M images in the horizontal direction and N images in the vertical direction. The mosaic image thus created is stored as an image file on the hard disk device 106, or displayed on the CRT 103, or output to the printer 108 and printed.
[0012]
Note that the hard disk device 106 may store the average brightness of each of the material images together with the material images.
[0013]
FIG. 3 is a diagram illustrating a relationship between a plurality of types of images used in the mosaic method according to the present embodiment.
[0014]
In FIG. 3, an image 201 is an original design or image when an image is formed using a mosaic method. The image 202 is an image formed by using a plurality of small images (tile images) by a mosaic method. The image 201 is configured by dividing the image 201 into a plurality of tile areas, and selecting and pasting a material image suitable for each tile area. ing. The material image 203 is a material image used to compose the image 202. Here, it is assumed that P (plural) sheets are prepared. The number P of these material images is generally large enough to prepare the types of colors and textures necessary to form the image 202.
[0015]
Here, for the sake of explanation, the size of each of the P material images 203 is set to the same size as the tile area. However, the size of each material image does not necessarily need to match the size of the tile area. 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, it is necessary to convert the size of the material image 203 when pasting the image to the corresponding tile area of the image 202. Here, the number of sheets P is a number sufficiently larger than the above-mentioned M × N sheets.
[0016]
FIG. 4 is a diagram showing an example in which the image 201 is divided into 4 × 5 tile areas, where the number of pixels in the horizontal direction of the image 201 is X, the number of pixels in the vertical direction is Y, and the number of pixels in the horizontal direction of each tile area. The number is indicated by p, and the number of pixels in the vertical direction is indicated by q (X = 4p, Y = 5q). Each tile area is indicated by TL (x, y: x = 0 to 3, y = 0 to 4) according to its position.
[0017]
FIG. 5 shows a state where each tile area is composed of red (R), green (G), and blue (B) color planes when the image 201 is a color image.
[0018]
[Color mosaic image generation processing]
FIG. 6 is a flowchart showing a mosaic image generation process by the image processing apparatus according to the present embodiment.
[0019]
First, in step 11, the original image 201 is divided into M × N areas (tile areas). As a result of this division, for example, as shown in FIG. 4 described above, the first image 201 has M × N rectangular tiles TL (0,0), TL (1,0), TL (2,0),. . . . , TL (2, 4) and TL (3, 4). In FIG. 4, X and Y indicate the number of pixels in the horizontal and vertical directions of the image 201, respectively, and p and q indicate the number of pixels in the horizontal and vertical directions of each tile area. Therefore, the following relationship holds: X = p × M, Y = q × N. Here, for the sake of simplicity, it is assumed that all tile areas have the same size, but this is not necessarily required in the present embodiment.
[0020]
FIG. 5 is a diagram showing a data configuration of each tile area. Each pixel of each tile area is decomposed into p × q three primary colors, red (R), green (G), and blue (B).
[0021]
Next, the process proceeds to step S12, and the average density of RGB is calculated for each of the M × N tile areas divided in step S11 according to the following equation.
[0022]
Rd_av = ΣRi / (p × q)
Gd_av = ΣGi / (p × q)
Bd_av = ΣBi / (p × q)
Here, d_av means the average value of the destination (the original image 201). Therefore, each of Rd-av, Gd-av, and Bd-av indicates the average density of each of red, green, and blue in each tile region. Σ indicates the sum of i = 0 to (pq−1).
[0023]
Next, in step S13, the average density of R, G, and B is calculated for each of the P material images 203 according to the following equation, and the average density is stored in the RAM 105. Note that, as described above, if the average density of these material images 203 has been previously obtained and stored in the hard disk device 106 corresponding to each of these material images, this calculation is not necessary. Nor.
[0024]
Rs-av = ΣRi / (p × q)
Gs-av = ΣGi / (p × q)
Bs-av = ΣBi / (p × q)
Here, s-av means an average value of a source (source image 203). Therefore, each of Rs-av, Gs-av, and Bs-av indicates the average density of each of red, green, and blue in each material image. Σ indicates the sum of i = 0 to (pq−1).
[0025]
Next, the process proceeds to step S14, where the counters Xpos (0 ≦ Xpos ≦ M−1) and Ypos (0 ≦ Ypos ≦ N−1) indicating the position of the target tile area are both set to “0”, and the upper left corner of the image 201 The tile area (tile: TL (0, 0)) is set as the processing start position.
[0026]
Next, the process proceeds to step S15, and the material image having the smallest difference from the average density of the target tile area is selected from the P material images 203. In this selection method, for example, the distance ΔE of the RGB3 stimulus values is calculated, and the one with the smallest stimulus value is selected. The evaluation formula is shown below.
[0027]
ΔE = (Rs-av-Rd-av) ^ 2 + (Gs-av-Gd-av) ^ 2 + (Bs-av-Bd-av) ^ 2
Here, “(Rs−av−Rd−av) ^ 2” represents the square of (Rs−av−Rd−av).
[0028]
Based on this evaluation formula, a material image having the smallest distance ΔE of the RGB three stimulus values is selected from the P material images 203 and pasted to the tile area to be processed.
[0029]
Next, the process proceeds to step S16, in which the tile area of the image 201 to be processed is moved to the next position. In step S17, it is determined whether or not the processing for all the tile areas of the image 201 has been completed. The processes of S15 and S16 are repeatedly executed.
[0030]
[Monochrome mosaic image generation processing]
Next, a case of a monochrome image will be described.
[0031]
FIG. 7 is a flowchart showing a flow of processing for synthesizing a monochrome mosaic image according to the present embodiment.
[0032]
First, in step 61, the image 201 is divided into M × N areas (tile areas). As a result of this division, as shown in FIG. 4, the first image 201 has M × N tiles TL (0,0), TL (1,0), TL (2,0),. , 4), and TL (3, 4).
[0033]
Here, for the sake of simplicity, the sizes of the tile regions are all assumed to be equal, but this is not necessarily required in the present embodiment. FIG. 5 shows the configuration of each tile area. Each tile area is decomposed into p × q three primary colors, red (R), green (G), and blue (B).
[0034]
Next, the process proceeds to step S62, and the average luminance of each of the M × N tile areas divided in step S61 is calculated. Here, the average density of R, G, and B is calculated first in the same manner as in step S12 described above.
[0035]
Rd_av = ΣRi / (p × q)
Gd_av = ΣGi / (p × q)
Bd_av = ΣBi / (p × q)
From this value, the average luminance is calculated based on the following equation.
[0036]
Ys_av = (Rd_av × 77 + Gd_av × 150 + Bd_av × 29 + 128) / 256
Next, the process proceeds to step S63, where the average luminance is calculated for each of the P material images 203. Here, first, the average density of R, G, and B is calculated in the same manner as in step S13 described above.
[0037]
Rs_av = ΣR / (p × q)
Gs_av = ΣGi / (p × q)
Bs_av = ΣBi / (p × q)
From this value, the average luminance is calculated based on the following equation.
[0038]
Ys_av = (Rs_av × 77 + Gs_av × 150 + Bs_av × 29 + 128) / 256
Next, proceeding to step S64, similarly to step S14, the counters Xpos (0 ≦ Xpos ≦ M−1) and Ypos (0 ≦ Ypos ≦ N−1) indicating the position of the tile area being processed are both set to “ Initialize to 0 ". Here, (Xpos, Ypos) = (0, 0) indicates the tile area at the upper left corner of the image 201.
[0039]
Next, the process proceeds to step S65, and the material image most suitable for the tile area specified by the position counters Xpos and Ypos is selected from the P material images 203. In this selection method, for example, the distance ΔE of the Y stimulus value is calculated, and the one with the smallest stimulus value ΔE is selected. The evaluation formula is shown below.
[0040]
ΔE = | Ys_av−Yd_av |
Based on this evaluation formula, the one with the smallest stimulus value ΔE is selected from the P material images.
[0041]
Next, proceeding to step S66, the selected material image 203 is read from the hard disk 106, decoded, further converted to monochrome, and pasted.
[0042]
Next, the process proceeds to step S67, in which the tile area of the target image 201 is moved to the next tile position. In step S68, it is determined whether the processing for all the tile areas of the image 201 has been completed. , The above-described processes of steps S65 to S68 are repeatedly executed.
[0043]
Note that a monochrome mosaic image can be obtained by converting a color mosaic image created according to the above-described description of FIG. 6 into a monochrome image. However, since extra color information is considered in the process of selecting a material image, the There is a possibility that the quality of the mosaic image to be obtained will deteriorate.
[0044]
On the other hand, as in the present embodiment, a high-quality monochrome mosaic image is generated by comparing the average luminance of each tile region and each material image and selecting the most suitable material image for the target tile region. can do.
[0045]
[Other embodiments]
Instead of deciding whether or not to make a monochrome mosaic image from the beginning as in the present embodiment, whether or not to make a monochrome mosaic image may be automatically determined according to the quality of the created mosaic image. good. In this case, a color mosaic image is first created, and if a mosaic image of sufficient quality cannot be obtained there, a monochrome mosaic image may be obtained.
[0046]
As a criterion for determining the quality of the mosaic image in this case, for example, a well-known S / N ratio is used, and if the S / N ratio of the original image 201 and the formed mosaic image 202 does not reach a certain reference value, it is converted to monochrome. You may do it.
[0047]
The processing in this case is shown in the flowchart of FIG.
[0048]
In FIG. 8, first, at step S71, the S / N ratio of the mosaic image created according to the flowchart of FIG. 6 is checked, and at step S72, it is determined whether the checked S / N ratio is equal to or less than a predetermined reference value. View. If so, the process proceeds to step S73, where the mosaic image is converted to a monochrome image.
[0049]
Further, in the above-described embodiment, when pasting the material images, it is described that each material image is converted to a monochrome image and then pasted to each corresponding tile region. Even after the image is generated, the same result can be obtained even if the entire mosaic image is converted to monochrome.
[0050]
In the above embodiment, the Y average luminance was calculated from the RGB values of the image data of the tile area and the material image. However, if image data originally expressed in the YUV color space like a well-known JPEG image is used, The calculation of the Y average luminance can be omitted.
[0051]
Further, a well-known sepia tone processing is further performed on the created monochrome mosaic image, so that a sepia tone mosaic image can be obtained.
[0052]
As described above, according to the present embodiment, the quality of a mosaic image can be improved.
[0053]
【The invention's effect】
As described above, according to the present invention, it is possible to generate a monochrome mosaic image by performing a process of selecting and pasting a corresponding material image by focusing on a luminance component instead of a color difference component of an original image.
[0054]
Further, according to the present invention, there is an effect that the quality of the obtained mosaic image can be improved.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment.
FIG. 2 is a diagram illustrating a mosaic image.
FIG. 3 is a diagram illustrating a process of generating a mosaic image.
FIG. 4 is a diagram illustrating an example in which an original image is divided into tile areas.
FIG. 5 is a diagram illustrating a color configuration of each tile area forming a mosaic image.
FIG. 6 is a flowchart illustrating a flow of a color mosaic image generation process according to the present embodiment.
FIG. 7 is a flowchart illustrating a flow of a monochrome mosaic image generation process according to the present embodiment.
FIG. 8 is a flowchart illustrating a process of converting a color mosaic image into a monochrome mosaic image according to another embodiment of the present invention.

Claims (9)

複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理装置であって、
原画像を複数の領域に分割する分割手段と、
前記分割手段により分割された前記複数の領域のそれぞれの各色の平均濃度及び平均輝度を算出する算出手段と、
前記算出手段により算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択する画像選択手段と、
前記画像選択手段により選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ手段と、
前記画像貼り合わせ手段により貼り合わされたカラー画像の品質を検査する検査手段と、
前記検査手段による検査結果に応じて、前記カラー画像をモノクロ化するか否かを判断する手段とを備え、
前記モノクロ化に際して、前記画像選択手段は前記算出手段により算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をモノクロ化してそれぞれ対応する領域に貼付けてモノクロ画像を生成することを特徴とする画像処理装置。
An image processing apparatus that creates an image imitating an original image by combining a plurality of material images selected from a plurality of material images,
Dividing means for dividing the original image into a plurality of regions;
Calculating means for calculating an average density and an average luminance of each color of each of the plurality of regions divided by the dividing means;
Based on the average density of each color of each of the material image and the average density of each color of calculating said plurality of regions by said calculating means, an image selection means for selecting a material images corresponding to each of the plurality of regions ,
Image pasting means for generating a color image by pasting the material images selected by the image selecting means to the corresponding areas,
Inspection means for inspecting the quality of the color image bonded by the image bonding means,
Means for determining whether or not to convert the color image to monochrome, according to an inspection result by the inspection means,
At the time of the monochrome conversion, the image selection unit is configured to calculate the material image corresponding to each of the plurality of regions based on the average luminance of the plurality of regions and the average luminance of the material image calculated by the calculation unit. An image processing apparatus comprising : selecting a material image, converting the selected material image to monochrome, and pasting the selected material image to a corresponding area to generate a monochrome image .
複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理装置であって、An image processing apparatus that creates an image imitating an original image by combining a plurality of material images selected from a plurality of material images,
原画像を複数の領域に分割する分割手段と、Dividing means for dividing the original image into a plurality of regions;
前記分割手段により分割された前記複数の領域のそれぞれの各色の平均濃度及び平均輝度を算出する算出手段と、Calculating means for calculating an average density and an average luminance of each color of each of the plurality of regions divided by the dividing means;
前記算出手段により算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応Based on the average density of each color of each of the plurality of areas and the average density of each color of the material image calculated by the calculation unit, each of the plurality of areas corresponds to each of the plurality of areas. する素材画像を選択する画像選択手段と、Image selection means for selecting a material image to be
前記画像選択手段により選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ手段と、Image pasting means for generating a color image by pasting the material images selected by the image selecting means to the corresponding areas,
前記画像貼り合わせ手段により貼り合わされたカラー画像の品質を検査する検査手段と、Inspection means for inspecting the quality of the color image bonded by the image bonding means,
前記検査手段による検査結果に応じて、前記カラー画像をモノクロ化するか否かを判断する手段とを備え、Means for determining whether or not to convert the color image to monochrome, according to an inspection result by the inspection means,
前記モノクロ化に際して、前記画像選択手段は前記算出手段により算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成し、生成された前記カラー画像全体をモノクロ化することを特徴とする画像処理装置。At the time of the monochrome conversion, the image selecting unit sets the material image corresponding to each of the plurality of regions based on the average luminance of the plurality of regions and the average luminance of the material image calculated by the calculating unit. And generating a color image by pasting the selected material images to corresponding areas, respectively, and converting the generated color image into a monochrome image.
前記モノクロ化された画像をセピア化する手段を更に有することを特徴とする請求項1又は2に記載の画像処理装置。The image processing apparatus according to claim 1 , further comprising a unit configured to convert the monochrome image into a sepia image. 複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理方法であって、
原画像を複数の領域に分割する分割工程と、
前記分割工程で分割された前記複数の領域のそれぞれの各色の平均濃度及び平均輝度を算出する算出工程と、
前記算出工程で算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択する画像選択工程と、
前記画像選択工程で選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ工程と、
前記画像貼り合わせ工程で貼り合わされたカラー画像の品質を検査する検査工程と、
前記検査工程による検査結果に応じて、前記カラー画像をモノクロ化するか否 かを判断する工程とを備え、
前記モノクロ化に際して、前記画像選択工程では前記算出工程で算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をモノクロ化してそれぞれ対応する領域に貼付けてモノクロ画像を生成することを特徴とする画像処理方法。
An image processing method for creating an image imitating an original image by combining a plurality of material images selected from a plurality of material images,
A dividing step of dividing the original image into a plurality of regions;
A calculating step of calculating an average density and an average luminance of each color of each of the plurality of regions divided in the dividing step;
Based on the average density of each color of each of the material image and the average density of each color of the plurality of areas calculated in the calculating step, an image selection step of selecting the material images corresponding to each of the plurality of regions ,
Image pasting step of pasting the material image selected in the image selecting step to the corresponding area to generate a color image,
An inspection step of inspecting the quality of the color image bonded in the image bonding step,
A step of determining whether or not to convert the color image to monochrome according to the inspection result of the inspection step ,
At the time of the monochrome conversion, in the image selecting step, based on the average luminance of each of the plurality of areas and the average luminance of the material image calculated in the calculating step, the material image corresponding to each of the plurality of areas. And generating a monochrome image by converting the selected material image into a monochrome image and pasting the monochrome image in a corresponding area .
複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理方法であって、An image processing method for creating an image imitating an original image by combining a plurality of material images selected from a plurality of material images,
原画像を複数の領域に分割する分割工程と、A dividing step of dividing the original image into a plurality of regions;
前記分割工程で分割された前記複数の領域のそれぞれの各色の平均濃度及び平均輝度を算出する算出工程と、A calculating step of calculating an average density and an average luminance of each color of each of the plurality of regions divided in the dividing step;
前記算出工程で算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択する画像選択工程と、An image selection step of selecting a material image corresponding to each of the plurality of regions based on the average density of each color of each of the plurality of regions and the average density of each color of the material image calculated in the calculation step; ,
前記画像選択工程で選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ工程と、Image pasting step of pasting the material image selected in the image selecting step to the corresponding area to generate a color image,
前記画像貼り合わせ工程で貼り合わされたカラー画像の品質を検査する検査工程と、An inspection step of inspecting the quality of the color image bonded in the image bonding step,
前記検査工程による検査結果に応じて、前記カラー画像をモノクロ化するか否かを判断する工程とを備え、A step of determining whether or not to convert the color image to monochrome according to the inspection result of the inspection step,
前記モノクロ化に際して、前記画像選択工程では前記算出工程で算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成し、生成された前記カラー画像全体をモノクロ化することを特徴とする画像処理方法。At the time of the monochrome conversion, in the image selecting step, a material image corresponding to each of the plurality of areas is based on the average luminance of each of the plurality of areas and the average luminance of the material image calculated in the calculating step. And generating a color image by pasting the selected material images to corresponding regions, and converting the generated color image into a monochrome image.
前記モノクロ化された画像をセピア化する工程を更に有することを特徴とする請求項4又は5に記載の画像処理方法。The image processing method according to claim 4, further comprising a step of converting the monochrome image into a sepia image. 複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理方法を実行するプログラムを記憶した、コンピュータにより読取り可能な記憶媒体であって、Combining a plurality of material images selected from a plurality of material images, storing a program for executing an image processing method of creating an image imitating the original image, a computer-readable storage medium,
前記プログラムは、The program is
原画像を複数の領域に分割する分割手段と、Dividing means for dividing the original image into a plurality of regions;
前記分割手段により分割された前記複数の領域のそれぞれの各色の平均濃度及び平均輝度を算出する算出手段と、Calculating means for calculating an average density and an average luminance of each color of each of the plurality of regions divided by the dividing means;
前記算出手段により算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択する画像選択手段と、An image selection unit that selects a material image corresponding to each of the plurality of regions based on an average density of each color of each of the plurality of regions and an average density of each color of the material image calculated by the calculation unit; ,
前記画像選択手段により選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ手段と、Image pasting means for generating a color image by pasting the material images selected by the image selecting means to the corresponding areas,
前記画像貼り合わせ手段により貼り合わされたカラー画像の品質を検査する検査手段と、Inspection means for inspecting the quality of the color image bonded by the image bonding means,
前記検査手段による検査結果に応じて、前記カラー画像をモノクロ化するか否かを判断する手段とを有し、Means for determining whether or not to convert the color image to monochrome, according to an inspection result by the inspection means,
前記モノクロ化に際して、前記画像選択手段は前記算出手段により算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をモノクロ化してそれぞれ対応する領域に貼付けてモノクロ画像を生成することを特徴とするコンピュータにより読取り可能な記憶媒体。At the time of the monochrome conversion, the image selecting unit sets the material image corresponding to each of the plurality of regions based on the average luminance of the plurality of regions and the average luminance of the material image calculated by the calculating unit. A computer-readable storage medium characterized in that a computer-readable storage medium is selected, and a monochrome image is generated by converting the selected material image into a monochrome image and attaching the monochrome image to a corresponding area.
複数の素材画像の中から選択した素材画像を複数を組み合わせて、原画像を模した画像を作成する画像処理方法を実行するプログラムを記憶した、コンピュータにより読取り可能な記憶媒体であって、Combining a plurality of material images selected from a plurality of material images, storing a program for executing an image processing method of creating an image imitating the original image, a computer-readable storage medium,
前記プログラムは、The program is
原画像を複数の領域に分割する分割手段と、Dividing means for dividing the original image into a plurality of regions;
前記分割手段により分割された前記複数の領域のそれぞれの各色の平均濃度及The average density of each color of each of the plurality of areas divided by the dividing means び平均輝度を算出する算出手段と、Calculating means for calculating the average brightness and average brightness;
前記算出手段により算出された前記複数の領域のそれぞれの各色の平均濃度と前記素材画像の各色の平均濃度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択する画像選択手段と、An image selection unit that selects a material image corresponding to each of the plurality of regions based on an average density of each color of each of the plurality of regions and an average density of each color of the material image calculated by the calculation unit; ,
前記画像選択手段により選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成する画像貼り合わせ手段と、Image pasting means for generating a color image by pasting the material images selected by the image selecting means to the corresponding areas,
前記画像貼り合わせ手段により貼り合わされたカラー画像の品質を検査する検査手段と、Inspection means for inspecting the quality of the color image bonded by the image bonding means,
前記検査手段による検査結果に応じて、前記カラー画像をモノクロ化するか否かを判断する手段とを有し、Means for determining whether or not to convert the color image to monochrome, according to an inspection result by the inspection means,
前記モノクロ化に際して、前記画像選択手段は前記算出手段により算出された前記複数の領域のそれぞれの前記平均輝度と前記素材画像の平均輝度とに基づいて、前記複数の領域のそれぞれに対応する素材画像を選択し、選択された素材画像をそれぞれ対応する領域に貼付けてカラー画像を生成し、生成された前記カラー画像全体をモノクロ化することを特徴とするコンピュータにより読取り可能な記憶媒体。At the time of the monochrome conversion, the image selecting unit sets the material image corresponding to each of the plurality of regions based on the average luminance of the plurality of regions and the average luminance of the material image calculated by the calculating unit. A computer-readable storage medium characterized in that a color image is generated by selecting a selected material image in a corresponding area, and the generated color image is converted into a monochrome image.
前記プログラムは、前記モノクロ化された画像をセピア化する手段を更に有することを特徴とする請求項7又は8に記載のコンピュータにより読取り可能な記憶媒体。The computer-readable storage medium according to claim 7, wherein the program further includes a unit configured to convert the monochrome image into a sepia image.
JP2000063661A 1999-04-02 2000-03-08 Image processing method and apparatus Expired - Fee Related JP3584198B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2000063661A JP3584198B2 (en) 2000-03-08 2000-03-08 Image processing method and apparatus
US09/538,223 US6927874B1 (en) 1999-04-02 2000-03-30 Image processing method, apparatus and storage medium therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000063661A JP3584198B2 (en) 2000-03-08 2000-03-08 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JP2001251496A JP2001251496A (en) 2001-09-14
JP3584198B2 true JP3584198B2 (en) 2004-11-04

Family

ID=18583491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000063661A Expired - Fee Related JP3584198B2 (en) 1999-04-02 2000-03-08 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3584198B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101918979B (en) * 2008-01-15 2012-05-23 佩特媒体株式会社 Mosaic image generation device and method
JP5288961B2 (en) 2008-09-17 2013-09-11 キヤノン株式会社 Image processing apparatus and image processing method
JP5659272B2 (en) * 2013-06-28 2015-01-28 オリンパス株式会社 Image composition apparatus and image composition method

Also Published As

Publication number Publication date
JP2001251496A (en) 2001-09-14

Similar Documents

Publication Publication Date Title
US6556210B1 (en) Image processing method and apparatus therefor
US6927874B1 (en) Image processing method, apparatus and storage medium therefor
JP3584198B2 (en) Image processing method and apparatus
JP3814412B2 (en) Image processing method and apparatus
JP3584179B2 (en) Image processing method, image processing device, and storage medium
JP3825916B2 (en) Image processing method and apparatus
JPH11341264A (en) Mosaic image generation method and recording medium
JPH11345309A (en) Picture processor and picture processing method
JP2005252804A (en) Image correction method for multiprojection system
JP3652167B2 (en) Image processing apparatus and method and storage medium therefor
JP3584195B2 (en) Image processing method and apparatus
JP3495948B2 (en) Image processing method, image processing apparatus, and storage medium
JP3834322B2 (en) Image display device and image display method
JP4136073B2 (en) Image processing apparatus and method
JP3984704B2 (en) Image processing apparatus and method
JP2005149439A (en) Image processor and image processing method
JP3530765B2 (en) Image processing method, image processing apparatus, and storage medium
JP2007028548A (en) Apparatus and program for editing image
JP3503136B2 (en) Pixel interpolation device and pixel interpolation method
JP2000298722A (en) Image processing method and its device
JP3647348B2 (en) Image processing apparatus and image processing method
JP2000276584A (en) Method and device for image processing, and storage medium
JPH11341265A (en) Method and device for picture processing
JPH11345311A (en) Picture processor and picture processing method
JP3647262B2 (en) Image processing apparatus and method

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

Effective date: 20040726

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040802

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20070806

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20080806

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080806

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090806

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090806

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100806

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110806

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees