JP4323882B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP4323882B2
JP4323882B2 JP2003187178A JP2003187178A JP4323882B2 JP 4323882 B2 JP4323882 B2 JP 4323882B2 JP 2003187178 A JP2003187178 A JP 2003187178A JP 2003187178 A JP2003187178 A JP 2003187178A JP 4323882 B2 JP4323882 B2 JP 4323882B2
Authority
JP
Japan
Prior art keywords
image
processing apparatus
images
image data
image processing
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
JP2003187178A
Other languages
Japanese (ja)
Other versions
JP2005025282A5 (en
JP2005025282A (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 JP2003187178A priority Critical patent/JP4323882B2/en
Priority to US10/874,538 priority patent/US7522174B2/en
Priority to CNB2004100626223A priority patent/CN1312619C/en
Publication of JP2005025282A publication Critical patent/JP2005025282A/en
Publication of JP2005025282A5 publication Critical patent/JP2005025282A5/ja
Application granted granted Critical
Publication of JP4323882B2 publication Critical patent/JP4323882B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、画像処理装置及び画像処理方法に関する
【0002】
【従来の技術】
近年、デジタルカメラの普及とともに、容易にデジタル写真を撮影できるようになった。また、CD−R(Compact Disc−Recordable)に代表される大容量のリムーバブルメディアも広く普及し、撮影したデジタル写真をCD−Rに保存することも行われてきた。
しかしながら、大量のデジタル写真ををリムーバブルメディアに保存する際に、内部にどのような写真が記録されているか、読み込まないとまったくわからなかった。したがって、利用者は、CD−Rのラベルに文字を書いて識別できるようにしたり、CD−Rのラベルに印刷可能なプリンタを使って文字や画像を印刷したりしていた。
【0003】
しかし、CD−Rに貼付するラベルのような円形に対して、長方形のデジタル写真の画像を複数枚配置する場合には、利用者が手動でレイアウトしていたが、バランスよく配置することは非常に困難であった。更に、配置する画像の枚数が増減する度にレイアウトをやりなおさなければ成らず、非常に煩雑な作業であった。画像を同心円状に配置する技術として、例えば[View−Master(登録商標)]という同心円状に画像を並べた製品に関する技術が開示されている(例えば、特許文献1参照。)。
【0004】
【特許文献1】
特開平7−13276号公報
【0005】
【発明が解決しようとする課題】
しかしながら、上述した従来技術では利用者が任意の枚数を自分で選択して配置するようなものではなく、あらかじめ決められた固定枚数を固定のレイアウトでのみ配置できるものであった。また、各画像はフィルムのために画像同士を重ね合わせることができないものであった。以上より、利用者が選択した画像を自動で同心円状に配置することができる技術が望まれていた。
また、非常に多数の画像を配置する場合は、一枚一枚の画像が非常に小さくなってしまうという問題があった。
【0006】
本発明は、上述した問題を鑑みてなされたものであり、円形のラベルに対して画像を配置するときに、選択した画像の枚数に応じて、画像のサイズ、配置間隔、角度、を自動調整して自動的に配置することができる画像処理装置、画像処理方法、その記録媒体およびプログラムを提供することを目的とする。
また、本発明は、好ましくは円形のラベルに対して同心円状に画像を配置するときに、選択した画像の枚数によって、画像のサイズ、配置間隔、中心からの距離、角度、を自動調整して円形に収まるように自動的に配置することができる画像処理装置、画像処理方法、その記録媒体およびプログラムを提供することを目的とする。
【0007】
また、本発明は、好ましくは円形のラベルに対して同心円状に画像を配置するときに、画像を重ね合わせて配置することができる画像処理装置、画像処理方法、その記録媒体およびプログラムを提供することを目的とする。
【0008】
また、本発明は、好ましくは円形のラベルに対して同心円状に画像を配置するときに、選択した画像の枚数によって、何重の同心円にするかを決定し、画像のサイズ、配置間隔、中心からの距離、角度、を自動調整して円形に収まるように自動的に配置することができる画像処理装置、画像処理方法、その記録媒体およびプログラムを提供することを目的とする。
【0009】
【課題を解決するための手段】
この発明は、上述した課題を解決すべくなされたもので、複数の画像データを記憶する記憶手段と、前記記憶手段より複数の前記画像データを選択する画像選択手段と、前記画像選択手段で選択された複数の前記画像データを配置するパターンの種類を選択する配置パターン選択手段と、予め定められた内径と外径に囲まれたドーナツ形内にランダムに画像を配置するパターンが選択された場合に、前記画像選択手段で選択された複数の前記画像データを、選択された画像データの数に応じてリサイズし、リサイズ後の画像である変形画像を配置した配置後画像データを生成する画像配置手段と、を有し、前記画像配置手段は、前記複数の画像の配置を、前記ドーナツ形の中心を原点とする極座標系で計算される位置と、画像の回転角度と、をランダムに決定することにより実行すると共に、配置する画像の大きさを、前記画像選択手段で選択された画像の枚数に応じて変更することを特徴とする。
【0013】
係る構成とすることにより、複数の画像データを選択して、選択した複数の画像データによる複数の画像を配置パターンに応じた形に変形して、変形後の画像である変形画像を配置パターンに応じて配置した配置後画像データを生成することができる。よって、例えば、円形のラベルに対して同心円状に画像を配置するときに、選択した画像の枚数によって、画像のサイズ、配置間隔などを自動調整して円形に収まるように配置することができる。
【0014】
【発明の実施の形態】
以下、図面を用いて本発明の実施形態について説明する。
[第1の実施形態]
まず、本発明の第1の実施形態として、一重の同心円状に画像を配置する画像処理装置について説明する。図1は、本発明の第1の実施形態における画像処理装置のハードウェア構成を示すブロック図である。CPU(中央演算装置)101は、システム全体の動作をコントロールし、一次記憶102に格納されたプログラムの実行などを行う。一次記憶102は、主にメモリであり、例えば、RAM(Random Access Memory)などである。一次記憶102は、二次記憶103に記憶されたプログラムなどを読み込んで格納する。
【0015】
二次記憶103は、不揮発性のメモリであり、例えばハードディスクなどがこれに該当する。二次記憶103は、画像処理装置が実行する種々のプログラムの他に、処理対象となる画像データを記憶する。尚、本実施形態における画像データは、例えばJPEG(Joint Photographic Experts Group)形式の画像データである。
【0016】
一般に、一次記憶102の容量は二次記憶103の容量より小さく、一次記憶102に格納しきれないプログラムやデータなどは二次記憶103に格納される。また、長時間記憶しなくてはならないデータなども二次記憶103に格納される。本実施形態では、種々のプログラムを二次記憶103に格納し、プログラム実行時に実行するプログラムを一次記憶102に読み込んでCPU101が実行処理を行う。
【0017】
また、入力デバイス104は、例えば、マウスやキーボードなどの入力装置である。この入力デバイス104は、プログラムなどに割り込み信号を送ったりするために用いる。出力デバイス105は、例えば、CRT(Cathode Ray Tube)や液晶ディスプレイ等である表示装置や印刷を行うプリンタなどである。本実施形態における画像処理装置では、CD−Rのラベルへ印刷する印刷装置としての機能が必須のため、出力デバイス105は、少なくともプリンタを必須の構成要素とする。また、出力デバイス105は、画像の出力装置としてプリンタ以外の装置を備えても構わない。また、上述した画像処理装置の構成は他にも様々な形態が考えられ、上述した構成に限定されるものではない。
【0018】
まず、本実施形態における画像処理装置の概要について述べる。本実施形態で説明する画像処理装置は、表示装置にGUI(Graphical User Interface)を表示することにより印刷対象画像、印刷対象メディア、レイアウトの指定を利用者に促すことができる。さらに、本実施形態による画像処理装置は、印刷対象画像を簡易編集する編集機能を有する。
【0019】
以下、図面を用いて画像処理装置の有する上記4つの機能について説明する。図2は、本実施形態による画像処理装置の利用者による操作手順の基本的な流れを示すフロー図である。まず、ステップS201で、利用者は、印刷対象となる画像とその枚数を選択する。次に、ステップS202で、利用者は、出力先の出力デバイス105と印刷用紙の選択を行う。例えば、CD−Rなどに印刷する場合には、利用者は、ここでCD−Rのラベルを選択する。最後に、ステップS203で、利用者は、ラベルに印刷するレイアウトを決定して、決定したレイアウトに応じて印刷を行うよう指示する。また、簡易編集の機能は、ステップS203で表示される印刷画面に用意されたボタンを押下することで編集画面に移動して行う機能である。編集後はステップS203で表示される印刷画面に復帰する。以下、図面を用いて各ステップにおける操作の詳細について説明する。
【0020】
図3は、本実施形態における画像処理装置が表示する印刷対象画像指定画面例を示す図である。この図3の印刷対象画像指定画面は、図2のステップS201において表示される画面である。フォルダツリーウィンドウ309には、画像処理装置が備える二次記憶102内に構築されたディレクトリ構成を示すツリーを表示する。利用者は、このフォルダツリーウィンドウ309のツリーを辿ることで、必要な画像データが格納されているディレクトリを選択することができる。利用者により選択されたディレクトリに複数の画像ファイルが格納されている場合、画像処理装置は、そのサムネイル画像(縮小画像)をサムネイル表示ウィンドウ310に表示する。
【0021】
サムネイル表示ウィンドウ310上で画像を選択した状態で利用者が拡大表示ボタン305を押下した場合、拡大表示ウィンドウを表示する。拡大表示ウィンドウにより、選択対象となる画像を詳細に確認することができる。
【0022】
本実施形態では、各画像の枚数選択を、図3に示すように各サムネイル下部に付与されている枚数選択ボタン302で行う。この枚数選択ボタン302は、シーソースイッチになっており、枚数選択ボタン302の右側を利用者が押下した場合、枚数選択ボタン302中央に表示された印刷指定枚数を+1する。また、枚数選択ボタン302の左を利用者が押下した場合には、印刷指定枚数を−1する。また、枚数選択ボタン302中央に表示された印刷指定枚数が0になった場合、枚数選択ボタン302の左側を押下しても無効にする。これによりマイナスの枚数となることを防ぐ。また、印刷指定枚数が99になった場合、枚数選択ボタン302の右を無効にする。
【0023】
全選択ボタン307が押下された場合、フォルダツリーウィンドウ309で選択されているディレクトリに格納された全ての画像を1枚ずつ印刷指定した状態にすることができる。また、全解除ボタン308が押下された場合、全ての画像の印刷指定を解除する。また、選択画像決定ボタン306が押下された場合、画像処理装置は、図4に示す印刷対象メディア指定画面を表示する。
【0024】
次に、上述した印刷対象メディア指定画面について説明する。
図4は、画像処理装置が表示する印刷対象メディア指定画面例を示す図である。この図4の印刷対象メディア指定画面は、図2のステップS202において表示される画面である。プリンタ選択メニュー406は、出力先となるプリンタを選択するメニューである。図4に示すように、本実施形態におけるプリンタ選択メニュー406はプルダウンメニューであり、画像処理装置に接続されているプリンタを一覧表示する。また、プリンタ選択メニュー406の右にある「VIVIDフォト」と書かれたチェックボックスは、プリンタドライバで用意された特殊処理を適用するかどうかを指定するチェックボックスである。プリンタ選択メニュー406で選択されたプリンタで「VIVIDフォト」機能が有効である場合のみ、このチェックボックスが有効になる。本実施形態ではプリンタドライバで提供される特殊処理の一例としてVIVIDフォト機能を挙げたが、他の処理であっても問題無いことは言うまでもない。
【0025】
また、プリンタ選択メニュー406で選択されている出力先プリンタの機種に応じて、画像処理装置は、印刷サイズ選択ウィンドウ408、用紙種類選択ウィンドウ407に表示する選択肢を適切なものに制限する。このように表示する選択肢を制限することで、利用者はプリンタとその対応用紙などを意識することなく印刷指定を行うことができる。さらに、印刷サイズ選択ウィンドウ408において選択された用紙サイズに応じて、画像処理装置は、用紙種類選択ウィンドウ407に表示する用紙の選択肢を制限する。したがって、出力先プリンタが変更されるたび、印刷サイズ選択ウィンドウ408、用紙種類選択ウィンドウ407の状態を更新する。また、用紙サイズが変更されるたび、用紙種類選択ウィンドウ407の状態を更新する。
【0026】
印刷対象メディア決定ボタン404もしくは印刷タブ403用紙選択タブ402が押下された場合には、画像処理装置は、後述する図5に示すレイアウト指定画面へ画面遷移する。また、画像再選択ボタン405もしくは画像選択タブが押下された場合には、画像処理装置は、図3に示した印刷対象画像指定画面へ画面遷移する。
【0027】
また、画像処理装置の初回使用時にはリストの一番先頭の選択肢が予め選択され、2回目以降の起動においては最後に利用者が選択した選択肢を予め選択した状態にする。本実施形態では、ここで用紙のサイズから「CD−Rトレイ」を選択することによって、画像処理装置は、CD−Rラベル面への画像のレイアウトが可能な、図5に示すレイアウト指定画面へ画面遷移させる。
【0028】
次に、レイアウト指定画面について説明する。図5は、画像処理装置が表示するレイアウト選択画面例を示す図である。この図5のレイアウト選択画面は、図2のステップS203において表示される画面である。レイアウト選択ウィンドウ504は、出力するためのレイアウトA・504a〜D・504dのいずれかを選択可能なウィンドウである。例えば、レイアウトA・504aは、CD−Rのような円形に、1枚、4枚、16枚、50枚といった決まった枚数のレイアウトであり、レイアウトB・504bは、同心円状に画像を変形せずに配置するレイアウトである。本実施形態では、同心円状に画像を変形しない(長方形のまま)レイアウトB・504bを選択する。
【0029】
レイアウト選択ウィンドウ504で同心円状に画像を変形しないで配置するレイアウトを選択すると、パラメータ調整ウィンドウ505と印刷プレビューウィンドウ506が表示され、レイアウトに応じたプレビュー507が印刷プレビューウィンドウ506に表示される。
【0030】
また、パラメータ調整ウィンドウ505を用いて、CD−Rのレイアウトに応じたパラメータを調整することが可能である。調整できるパラメータとしては、画像の配置順序(右回り、左回り、内側から、外側から)などである。また、利用者がCD−R設定ボタン503を押下すると、画像処理装置は、図6のCD−R設定ダイアログ601を表示する。図6は、画像処理装置が表示するCD−R設定ダイアログ画面例を示す図である。このCD−R設定ダイアログ601においては、CD−Rの内径を設定する内径設定欄602やCD−Rの外径を設定する外径設定欄603などがあり、さらにCD−Rの印刷位置の調整などを行う入力欄もある。
【0031】
以上のようにして、CD−R設定ダイアログ601においてCD−Rの内径や外径を調整することができる。また、プレビュー507で全体的なレイアウトを確認した後に印刷ボタン502を押下すると印刷が開始される。
【0032】
次に、上述した図3〜図6の画面遷移の中で利用者が設定した設定値に応じて、CD−Rのラベル上で隣合う画像同士が重ならないよう等間隔で並べてあって、さらにCD−Rのラベル内(円形内)に収まるように自動でレイアウトする方法について説明する。図7は、画像処理装置における設定に応じた自動レイアウト処理の動作を示すフロー図である。尚、図7に示すステップS701は、図2に示したステップS201に対応する処理であり、ステップS702〜S704の自動レイアウト処理は、図2に示したステップS203における処理の一部に対応する。
【0033】
図7に示すように、まず、ステップS701において、画像処理装置は、図3で利用者が選択した印刷対象の画像ファイルを二次記憶103より読み出して選択する。次に、ステップS702において、画像処理装置は、ステップS701で選択した画像ファイルの総枚数をkとすると、kが2以下の場合(ステップS702のYes)には、ステップS703に進み、以下に示す式1および式2を計算する。また、kが2より大きい場合(ステップS702のNo)には、画像処理装置は、ステップS704に進み、式4、式5を計算する。これは枚数が2以下の場合では画像を配置する際に隣接する画像が重なってしまうことがないので、この条件で分けている。
【0034】
まず、kが2以下の場合に進むステップS703における、式1、式2の計算処理について説明する。
ここで、図8に示すように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、以下の式が成り立つ。
2=w2+(aw/2)2
したがって、配置する画像の幅wは以下の式1で表される。
w=2R/√(4+a2) …式1
【0035】
また、配置するt番目の画像の中心Icの座標(x,y)は以下の式2で表される。
x=w cos(2tπ/k)/2
y=w sin(2tπ/k)/2 …式2
t=0,1,…,k−1
すなわち、中心Icが座標(x,y)の位置にあり、2tπ/k回転させた画像を配置する。
以上の式1、式2にしたがって、画像を配置することにより、画像処理装置は、画像が重ならず、CD−Rの円形内に収めることが可能になる。
【0036】
次に、ステップS702においてkが2より大きい場合に進むステップS704における式3、式4の計算処理について説明する。
ここで、図9に示すように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、以下の式3が成り立つ。
2=(aw/2)2+(w+(aw/2tan(π/k)))2 …式3
したがって、配置する画像の幅wは以下の式4で表される。
w=R/√{a2/4+(1+a/2tan(π/k))2} …式4
【0037】
また、配置するt番目の画像の中心Icの座標(x,y)は、以下の式5で表される。
x=(w/2+aw/2tan(π/k))*cos(2tπ/k)
y=(w/2+aw/2tan(π/k))*sin(2tπ/k) …式5
t=0,1,…,k−1
この位置に2tπ/k回転させた画像を配置する。
【0038】
以上の式3、4を満たすように、画像の座標の中心座標Icと、幅wを決めればCD−Rのラベルの円形内に画像を重ねずに並べることが可能になる。以上に示したように、本実施形態における画像処理装置は、円形のラベルに対して同心円状に画像を配置するときに、選択した画像の枚数によって、画像のサイズ、配置間隔、中心からの距離、角度、を自動調整して各画像が重ならずに円形に収まるように自動的に配置した画像データ(配置後画像データ)を生成することができる。
【0039】
[第2の実施形態](重ねなし、外周フチなし、一重円)
上述した第1の実施形態における画像処理装置では、CD−R内の画像同士が重ならずになおかつ円形内に等間隔に配置する例について記述したが、第2の実施形態における画像処理装置では、画像の少なくとも1辺がはみ出す配置方法について説明する。ここで、はみ出す1辺とは、CD−Rの外周部分であり、CD−Rの外周部分をはみ出してレイアウトすることにより、CD−Rの外周部分に余分な余白を出さずに画像を配置することが可能になる。
【0040】
尚、第2の実施形態における画像処理装置のハードウェア構成は、図1に示した第1の実施形態における画像処理装置のハードウェアの構成と同じであるので、説明を省略する。また、第2の実施形態における画像処理装置のラベル印刷の工程および各工程で表示されるGUIは、図2に示した第1の実施形態における画像処理装置のラベル印刷の工程および図3〜図6に示したGUIと同じであるので、説明を省略する。
【0041】
以下に、CD−Rのラベル上に画像同士が重ならずに等間隔で配置され、さらにCD−Rの外周から1辺だけがはみ出すようにレイアウトする本実施形態のレイアウト方法について説明する。図10は、第2の実施形態の画像処理装置における設定に応じた自動レイアウトの動作を示すフロー図である。尚、図10に示すステップS1001の処理は、図2に示すステップS201の処理と対応し、図10に示すステップS1002〜S1004の自動レイアウト処理は、図2に示したステップS203における処理の一部に対応する。
【0042】
図10に示すように、まず、ステップS1001において、画像処理装置は、図3で利用者が選択した印刷対象の画像ファイルを二次記憶103より読み出して選択する。次に、ステップS1002において、画像処理装置は、選択した総枚数をkとすると、kが2以下の場合(ステップS1002のYes)はステップS1003に進み、以下に示す式6および式7を計算する。また、kが2より大きい場合(ステップS1002のNo)には、画像処理装置は、ステップS1004に進み、以下に示す式9、式10を計算する。これは枚数が2以下の場合では画像を配置する際に隣接する画像が重なってしまうことがないので、この条件で分けている。
【0043】
まず、kが2以下の場合に進むステップS1003における、式6、式7の計算処理について説明する。
ここで、図16に示すように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、以下の式6が成り立つ。
w=R …式6
また、配置するt番目の画像の中心Icの座標(x,y)は以下の式7で表される。
x=w cos(2tπ/k)/2
y=w sin(2tπ/k)/2) …式7
t=0,1,…,k−1
すなわち、中心Icが座標(x,y)の位置にあり、2tπ/k回転させた画像を配置する。
【0044】
次に、ステップS1002においてkが2より大きい場合に進むステップS1004における式9、式10の計算処理について説明する。
ここで、図11に示すように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、以下の式8が成り立つ。
R=w+aw/(2*tan(π/k)) …式8
すなわち
w=R/{1+a/(2tan(π/k))} …式9
したがって、t番目の画像の中心Icの座標(x,y)は以下の式10で表される。
x=(R−w/2)*cos(2tπ/k)
y=(R−w/2)*sin(2tπ/k) …式10
t=0,1,…,k−1
この位置に2×t×π/k回転させた画像を配置する。
【0045】
以上の方法を用いることによって、画像処理処置は、円形の外周より画像の1辺がはみ出るように同心円状にレイアウトすることが可能である。以上に示したように、本実施形態における画像処理装置は、円形のラベルに対して同心円状に画像を配置するときに、選択した画像の枚数によって、画像のサイズ、配置間隔、中心からの距離、角度、を自動調整して各画像が重なる状態で画像の一部が円形よりはみ出るように自動的に配置した画像データ(配置後画像データ)を生成することができる。
【0046】
[第3の実施形態](重ねあり、一重円)
第1、第2の実施形態では、画像同士は重なり合わないのが前提であったが、第3の実施形態では、画像の一辺以外は、画像同士が重なりあっても良いレイアウトとする。すなわち、画像の特定の一辺の周辺部分が見えるように、他辺の周辺部分を重ねて配置している。
【0047】
尚、第3の実施形態における画像処理装置のハードウェア構成は、図1に示した第1の実施形態における画像処理装置のハードウェアの構成と同じであるので、説明を省略する。また、第3の実施形態における画像処理装置のラベル印刷の工程および各工程で表示されるGUIは、図2に示した第1の実施形態における画像処理装置のラベル印刷の工程および図3〜図6に示したGUIと同じであるので、説明を省略する。
【0048】
以下に、CD−Rのラベル上に同心円状に画像を重なり合わせて配置する本実施形態のレイアウト方法について説明する。図12は、第3の実施形態の画像処理装置における自動レイアウトの動作を示すフロー図である。尚、図12に示すステップS1201の処理は、図2に示したステップS201の処理に対応し、図12に示すステップS1202〜S1204の自動レイアウト処理は、図2に示したステップS203における処理の一部に対応する。
【0049】
図12に示すように、まず、ステップS1201において、画像処理装置は、図3で利用者が選択した印刷対象の画像ファイルを二次記憶103より読み出して選択する。次に、ステップS1202において、画像処理装置は、選択した総枚数をkとすると、kが2以下あるいは以下の式11の条件を満たす場合(ステップS1202のYes)はステップS1203に進み、以下に示す式12、式13を計算する。
2/√(4+a2)>=cos(π/k) …式11
また、kが2より大きいあるいは上記の式11の条件を満たさない場合(ステップS1202のNo)には、画像処理装置は、ステップS1204に進み、以下に示す式14、式15を計算する。
【0050】
まず、ステップS1202のYesの場合に進むステップS1203における、式12、式13の計算処理について説明する。
ここで、図8に示したように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、以下の式が成り立つ。
2= w2+(aw/2)2
したがって、配置する画像の幅wは以下の式12で表される。
w=2R/√(4+a2) …式12
【0051】
また、配置するt番目の画像の中心Icの座標(x,y)は以下の式13で表される。
x=w cos(2tπ/k)/2
y=w sin(2tπ/k)/2 …式13
t=0,1,…,k−1
すなわち、中心Icが座標(x,y)の位置にあり、2tπ/k回転させた画像を配置する。
【0052】
次に、ステップS1202のNoの場合に進むステップS1204における式14、式15の計算処理について説明する。
ここで、図13に示すように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、以下の式が成り立つ。
R sin(π/k)=aw/2
であるので、
w=2*R*sin(π/k)/a …式14
【0053】
したがって、t番目の画像の中心Icの座標(x,y)は以下の式15で表される。
x=(Rcos(π/k)−Rsin(π/k)/a)cos(2tπ/k)
y=(Rcos(π/k)−Rsin(π/k)/a)sin(2tπ/k)
t=0,1,…,k−1 …式15
この位置に2tπ/k回転させた画像を配置する。
以上の方法を用いることによって、画像処理処置は、CD−Rのラベル上の円形内に重ね合わせて画像をレイアウトすることが可能である。
【0054】
[第4の実施形態](重ねあり、外周フチなし、一重円)
上述した第3の実施形態では、画像の一辺以外は、画像同士が重なりあっても良いレイアウトであったがCD−Rの円形内であった、第4の実施形態では画像の一辺は円形の外に配置し、その他の辺は重なりあっても良いとする。
【0055】
尚、第4の実施形態における画像処理装置のハードウェア構成は、図1に示した第1の実施形態における画像処理装置のハードウェアの構成と同じであるので、説明を省略する。また、第4の実施形態における画像処理装置のラベル印刷の工程および各工程で表示されるGUIは、図2に示した第1の実施形態における画像処理装置のラベル印刷の工程および図3〜図6に示したGUIと同じであるので、説明を省略する。
【0056】
以下に、同心円状に画像を重なり合わせて配置する本実施形態のレイアウト方法について説明する。図14は、第4の実施形態の画像処理装置における自動レイアウトの動作を示すフロー図である。尚、図14に示すステップS1401の処理は図2に示したステップS201の処理に対応し、図14に示すステップS1402〜S1404の自動レイアウト処理は、図2に示したステップS203における処理の一部に対応する。
【0057】
図14に示すように、まず、ステップS1401において、画像処理装置は、図3で利用者が選択した印刷対象の画像ファイルを二次記憶103より読み出して選択する。ステップS1402において、画像処理装置は、選択した総枚数をkとすると、kが2以下あるいは以下の式15.5の条件を満たす場合(ステップS1402のYes)はステップS1403に進み、以下に示す式16、式17を計算する。
2sin(π/k)>=a …式15.5
また、kが2より大きいあるいは上述したの式11の条件を満たさない場合(ステップS1402のNo)には、画像処理装置は、ステップS1404に進み、以下に示す式18、式19を計算する。
【0058】
まず、ステップS1402のYesの場合に進むステップS1403における、式16、式17の計算処理について説明する。
ここで、図16に示したように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、配置する画像の幅wは以下の式16で表される。
w=R …式16
【0059】
また、配置するt番目の画像の中心Icの座標(x,y)は以下の式17で表される。
x=w cos(2tπ/k)/2
y=w sin(2tπ/k)/2 …式17
t=0,1,…,k−1
すなわち、中心Icが座標(x,y)の位置にあり、2tπ/k回転させた画像を配置する。
【0060】
次に、ステップS1402のNoの場合に進むステップS1404における式18、式19の計算処理について説明する。
ここで、図15に示すように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、以下の式が成り立つ。
R sin(π/k)=aw/2
であるので、
w=Rsin(π/k)/a …式18
【0061】
したがって、t番目の画像の中心Icの座標(x,y)は以下の式19表される。
x=(R−w/2)*cos(2tπ/k)
y=(R−w/2)*sin(2tπ/k) …式19
t=0,1,…,k−1
となり、この位置に2tπ/k回転させた画像を配置する。
以上の方法を用いることによって、画像処理処置は、円形の外周より画像の1辺がはみ出るように同心円状に重ね合わせて画像をレイアウトすることが可能である。
【0062】
以上の第1の実施形態〜第4の実施形態に示した画像の配列例を図17の(a)〜(d)に示す。また、利用者が好みに応じて第1の実施形態〜第4の実施形態のいずれかの配列を選択することができるようにしてもよい。
【0063】
[第5の実施形態](重なりあり、円形外、多重円)
上述した第1〜第4の実施形態では、画像が一重の円となるレイアウトであったが、第5の実施形態では多重の円を形成して、CD−Rに画像同士が重なり等間隔で、CD−Rのラベルにおける円周の外側にはみ出すようなレイアウトとする。
【0064】
尚、第5の実施形態における画像処理装置のハードウェア構成は、図1に示した第1の実施形態における画像処理装置のハードウェアの構成と同じであるので、説明を省略する。また、第5の実施形態における画像処理装置のラベル印刷の工程および各工程で表示されるGUIは、図2に示した第1の実施形態における画像処理装置のラベル印刷の工程および図3〜図6に示したGUIと同じであるので、説明を省略する。
【0065】
以下に、多重の円を形成して、CD−Rに画像同士が重なる間隔でかつ、CD−Rのラベルの円形の外側にはみ出すように配置する本実施形態のレイアウト方法について説明する。図18は、第5の実施形態の画像処理装置における自動レイアウトの動作を示すフロー図である。尚、図18に示すステップS1701の処理は、図2に示したステップS201の処理に対応し、図18に示すステップS1702〜S1706の自動レイアウト処理は、図2に示したステップS203における処理の一部に対応する。
【0066】
まず、ステップS1701において、画像処理装置は、図3に示す印刷対象画像指定画面で利用者が選択した印刷対象の画像を選択する。次に、ステップS1702において、選択した総枚数をkとすると、kが2以下あるいは以下の式1Aの条件を満たす場合(ステップS1702のYes)には、画像処理装置は、ステップS1703に進み、後述する式20および式21の計算を行う。
2sin(π/k)>=a …式1A
また、kが2より大きく、上記の式の条件を満たさない場合(ステップS1702のNo)には、画像処理装置は、ステップS1704に進む。
【0067】
まず、ステップS1703に進む場合の画像処理装置の処理について説明する。
ここで、図19に示すように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、配置する画像の幅wは以下の式20で表される。
w=R …式20
また、配置するt番目の画像の中心Icの座標(x,y)は以下の式21で表される。
x=w cos(2tπ/k)/2
y=w sin(2tπ/k)/2)
t=0,1,…,k−1…式21
すなわち、中心Icが座標(x,y)の位置にあり、2tπ/k回転させた画像を配置する。
【0068】
また、ステップS1704に進む場合でなおかつ、枚数kが32以下の場合(ステップS1704のYes)には、ステップS1705にすすむ。また、枚数kが32より大きい場合(ステップS1704のNo)には、ステップS1706に進む。
【0069】
まず、ステップS1705における計算について説明する。
ここで、図20に示すように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、以下の式が成り立つ。
Rsin(π/k)=aw/2
であるので、配置する画像の幅wは以下の式22で表される。
w=Rsin(π/k)/a …式22
したがって、t番目の画像の中心Icの座標(x,y)は以下の式23で表される。
x=(R−w/2)*cos(2tπ/k)
y=(R−w/2)*sin(2tπ/k) …式23
t=0,1,…,24
【0070】
次に、ステップS1706における計算について説明する。この場合、二重同心円となる。
ここで、図21に示すように、CD−Rの半径をR、外側に配置する画像の幅をw0、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とする。更に、各同心円の個数はほぼ等しい方が良いので、外側の円形に配置する画像の枚数をk0、内側の円形に配置する画像の枚数をk1とすると、k0とk1は以下のようになる。
k0=(k+1)/2
k1=k−k0
【0071】
したがって、外側の円形に配置する画像の大きさw0と配置する画像の中心位置Ic0の座標(x0,y0)は以下の式24および式25で表される。
w0=2Rsin(π/k0)/a …式24
x0=(R−R*sin(π/k0)/a)sin(2tπ/k0)
y0=(R−R*sin(π/k0)/a)cos(2tπ/k0)
t=0,1,2,…k0−1 …式25
となり、この位置に2tπ/k0回転させた画像を配置する。
【0072】
ここで、
r0=R−2*R*sin(π/k0)/a
とすると、
内側の円形に配置する画像の大きさw1と配置する画像の中心位置Ic1の座標(x1,y1)は以下の式26および式27で表される。
w1=2*R0*sin(π/k0)/a …式26
x1=(r0−r0*sin(π/k0)/a)sin(2tπ/k1)
y1=(r0−r0*sin(π/k0)/a)cos(2tπ/k1)
t=0,1,2,…k1−1 …式27
となり、この位置に2tπ/k1回転させた画像を配置する。
以上の方法を用いることによって、図22に示すような2重の同心円に画像を配置することが可能になる。
【0073】
また、3重の同心円にする場合には、
k0=(k+2)/2
k1=(k+2)/2
k2=k−k0−k1
とすると、
一重目の同心円内の画像の幅w0と中心位置Ic0の座標(x0,y0)は以下の式28および式29のようになる。
w0=2Rsin(π/k0)/a …式28
x0=(R−R*sin(π/k0)/a)sin(2tπ/k0)
y0=(R−R*sin(π/k0)/a)cos(2tπ/k0)
t=0,1,2,…k0−1 …式29
この位置に2tπ/k0回転させた画像を配置する。
【0074】
次に、外側から二重目の画像の大きさと位置について説明する。
r0=R−2*R*Sin(π/k0)/a
として、二重目の同心円内の画像の幅w1と中心位置Ic1の座標(x1,y1)は以下の式30および式31より計算される。
w1=2*r0*sin(π/k0)/a …式30
x1=(r0−r0*sin(π/k0)/a)sin(2tπ/k1)
y1=(r0−r0*sin(π/k0)/a)cos(2tπ/k1)
t=0,1,2,…k1−1 …式31
となり、この位置に2tπ/k1回転させた画像を配置する。
【0075】
次に、外側から三重目の画像の大きさと位置について説明する。
r1=r0−2*r0*sin(π/k0)/a
として、三重目の同心円内の画像の幅w2と中心位置Ic2の座標(x2,y2)は以下の式32および式33より計算される。
w2=2*r1*sin(π/k0)/a …式32
x2=(r1−r1*sin(π/k0)/a)sin(2tπ/k2)
y2=(r1−r1*sin(π/k0)/a)cos(2tπ/k2)
t=0,1,2,…k2−1 …式33
となり、この位置に2tπ/k2回転させた画像を配置する。
【0076】
以上に示すように図18に示す処理を行うことで、本実施形態における画像処理装置は、選択した画像の枚数によって、何重の同心円にするかを決定し、画像のサイズ、配置間隔、中心からの距離、角度、を自動調整して円形に収まるように自動的に配置した画像データ(配置後画像データ)を生成することができる。
【0077】
[第6の実施形態](重なりなし、円形内、多重円)
第5の実施形態では、多重の円であって画像が重なりなおかつ、画像の一辺がCD−Rのラベルにおける円周の外側にはみ出すレイアウトであったが、第6の実施形態では画像全体が必ずCD−Rのラベルの円周内に入りかつ、各画像の重なりがないレイアウトとする。
【0078】
尚、第6の実施形態における画像処理装置のハードウェア構成は、図1に示した第1の実施形態における画像処理装置のハードウェアの構成と同じであるので、説明を省略する。また、第6の実施形態における画像処理装置のラベル印刷の工程および各工程で表示されるGUIは、図2に示した第1の実施形態における画像処理装置のラベル印刷の工程および図3〜図6に示したGUIと同じであるので、説明を省略する。
【0079】
以下に、多重の円を形成して、CD−Rに画像同士が重なりのない間隔でかつ、CD−Rのラベルの円形の外側にはみ出さないように配置する本実施形態のレイアウト方法について説明する。図23は、第6の実施形態の画像処理装置における自動レイアウトの動作を示すフロー図である。尚、図23に示す自動レイアウト処理は、図2に示したステップS203における処理の一部である。
【0080】
まず、ステップS2201において、画像処理装置は、図3で利用者が選択した印刷対象の画像を選択する。次に、ステップS2202において、選択した総枚数をkとすると、kが2以下の場合(ステップS2202のYes)には、画像処理装置は、ステップS2203に進み、後述する式36および式37の計算を行う。また、kが2より大きい場合(ステップS2202のNo)には、画像処理装置は、ステップS2204に進む。
【0081】
まず、ステップS2203に進む場合の画像処理装置の処理について説明する。
ここで、図8に示すように、CD−Rの半径をR、配置する画像の幅をw、配置する画像のアスペクト(高さ/幅)をaとし、CD−Rの中心を原点とすると、以下の式が成り立つ。
2=w2+(aw/2)2
したがって、配置する画像の幅wは以下の式36で表される。
w=2R/√(4+a2) …式36
また、配置する画像の中心Icの座標(x,y)は以下の式37で表される。
x=w cos(2tπ/k)/2
y=w sin(2tπ/k)/2 …式37
t=0,1,…,k−1
となり、この位置に2tπ/k回転させた画像を配置する。
【0082】
ステップS2204において、選択枚数kが32以下の場合(ステップS2204のYes)には、ステップS2205にすすみ、kが32より大きい場合(ステップS2204のNo)には、ステップS2206にすすむ。
【0083】
まず、ステップS2205における計算について説明する。ステップS2205においては、画像の幅wは以下の式38により表される。
w=R/√(a2/4+(1+a/2tan(π/k))2) …式38
また、配置する画像の中心Icの座標(x,y)は、以下の式39により表される。
x=(w/2+aw/2tan(π/k))*cos(2tπ/k)
y=(w/2+aw/2tan(π/k))*sin(2tπ/k)
t=0,1,…,k−1 …式39
となり、この位置に2tπ/k回転させた画像を配置する。
【0084】
次に、ステップS2206における計算について説明する。選択枚数kが32より大きい場合には、
k0=(k+1)/2
k1=k−k0
として、一重目の同心円内の画像の幅w0と位置Ic0は以下の式40により表される。
w0=r/√{a2/4+(1+a/2tan(π/k))2} …式40
また、配置する画像の中心Icの座標(x0,y0)は、以下の式41により表される。
x0=(w0/2+aw0/2tan(π/k0))cos(2tπ/k0)
y0=(w0/2+aw0/2tan(π/k0))sin(2tπ/k0)
t=0,1,2,3,4,…,k0−1 …式41
となり、この位置に2tπ/k0回転させた画像を配置する。
【0085】
次に、外側から二重目の画像の大きさと位置について説明する。
r0=R−R/√{a2/4+(1+a/2tan(π/k))2
とすると、二重目の同心円内の画像の幅w1と位置Ic1(x1,y1)は以下の式42および式43により表される。
w1=r0/√{a2/4+(1+a/2tan(π/k))2} …式42
x1=(w1/2+aw1/2tan(π/k0))cos(2tπ/k1)
y1=(w1/2+aw1/2tan(π/k0))sin(2tπ/k1)
t=0,1,2,3,4,…,k1−1 …式43
となり、この位置に2tπ/k1回転させた画像を配置する。
【0086】
以上のようにして、画像処理装置は、図24に示すように、三重の同心円状に重ならずにCD−Rのラベルの円周内に入るように画像を配置させることが可能である。また、本実施形態における画像処理装置は、何重の円に関しても、第5の実施形態と同様に拡張することが可能である。すなわち、本実施形態における画像処理装置は、選択した画像の枚数によって、何重の同心円にするかを決定し、画像のサイズ、配置間隔、中心からの距離、角度、を自動調整して円形に収まるように自動的に配置した画像データ(配置後画像データ)を生成することができる。
【0087】
尚、上述した実施形態では配置する画像の枚数によって、何重の同心円にするかを決めていたが、この限りではなく、例えば、現在配置されている画像の幅によって、何重の同心円にするかを決定してもかまわない。
【0088】
[第7の実施形態](重なりあり、円形内、螺旋)
上述した第1〜第6の実施形態では、画像が同心円状に配置されるレイアウトであったが、第7の実施形態では螺旋状に画像同士を等角度で配置するレイアウトとする。
【0089】
尚、第7の実施形態における画像処理装置のハードウェア構成は、図1に示した第1の実施形態における画像処理装置のハードウェアの構成と同じであるので、説明を省略する。また、第7の実施形態における画像処理装置のラベル印刷の工程および各工程で表示されるGUIは、図2に示した第1の実施形態における画像処理装置のラベル印刷の工程および図3〜図6に示したGUIと同じであるので、説明を省略する。
【0090】
以下に、螺旋を形成して、CD−Rのラベル内に配置する本実施形態のレイアウト方法について説明する。図25は、第7の実施形態の画像処理装置における自動レイアウト処理の動作を示すフロー図である。尚、図25のステップS2501に示す処理は、図2に示すステップS201の処理に対応し、図25に示すステップS2502〜S2503の自動レイアウト処理は、図2に示したステップS203における処理の一部に対応する。
【0091】
まずステップS2501において、画像処理装置は、図3に示す印刷対象画像指定画面で利用者が選択した印刷対象の画像をk枚選択する。次に、ステップS2502において、画像処理装置は、CD−Rの内径・外径・巻き数を決定する。尚、これらの値については、あらかじめ決められていた値を用いる場合にはこのステップS2502は必要ない。
【0092】
次に、ステップS2503において、画像処理装置は、画像を螺旋状に配置する処理を行う。ここで、螺旋状に配置する配置位置の算出方法についての詳細を以下に説明する。一般に螺旋の式は、極座標系(r,θ)で以下のように表すことができる。
r=aθ
但し、上述した式において、aは、正の定数であり、rは原点からの距離、θは偏角を示す。
【0093】
本実施形態では、CD−Rの内部に画像を配置することを目的とするため、CD−Rの内径、外径と何回螺旋を巻くかを示す巻き数とを計算に用いる。図26は、内径r0、外径r1、螺旋の巻き数Rolls=2の場合の螺旋例を示す図である。ここで、内径r0、外径r1、螺旋の巻き数Rollsを定数として、螺旋の式は極座標系(r,θ)で以下のように表すことができる。
r=r1−a*θ
ここで、θ=2π*Rollsの場合は以下の式がなりたつ。
r0=r1−a*2*π*Rolls
【0094】
すなわち、定数aは以下のように表すことができる。
a=(r1−r0)/(2*π*Rolls)
したがって、螺旋状にk枚配置する際の各画像の座標は、以下に示す式により求まる。
r(t) = r1−((r1−r0)/(2*π*Rolls))θ(t)
θ(t)=(2*π*Rolls*t)/k
ただし、t=1,2,…,k
【0095】
上記の位置に画像をθ(t)回転させて配置することで、螺旋状に画像を配置することが可能になる。しかしながら、画像の大きさを一定のまま配置した場合は、円の中心に近いほど画像が重なって見にくくなってしまうという問題がある。また、画像の枚数が多ければ多いほど画像が重なって見にくくなってしまうという問題もある。よって、各画像の大きさは配置する画像の中心からの距離に比例して大きくなるように変更する。更に、配置する画像の枚数に依存して、画像の大きさを小さくしてもよい。
以上の結果、螺旋状に配置された画像は図27のようになる。
【0096】
尚、上述した実施形態においては、内径・外径・巻き数については定数として扱ったが、この限りではなく、利用者がそれぞれの値を自由に変更できるようにしてもよい。また、内径・外径・巻き数の変更があった場合には、ただちに全ての画像の配置を計算しなおして、新たな配置を行う。また、内径は螺旋の配置に限ったことではなく、前述の実施形態1〜6における同心円に画像を配置するときも同様に内径も考慮して、内径以内に画像が配置されないようにする。また、画像を内径附近まで配置する方法は上述した螺旋状の配置に限らず、同心円状の配置であっても配置済みの各画像に内接する円形・楕円形で切り抜くことにより、より多くの画像を表示させることが可能になる。
【0097】
[第8の実施形態]
第8の実施形態では画像をCD内にランダムな配置にレイアウトする方法について説明する。尚、第8の実施形態における画像処理装置のハードウェア構成は、図1に示した第1の実施形態における画像処理装置のハードウェアの構成と同じであるので、説明を省略する。また、第8の実施形態における画像処理装置のラベル印刷の工程および各工程で表示されるGUIは、図2に示した第1の実施形態における画像処理装置のラベル印刷の工程および図3〜図6に示したGUIと同じとしてもよい。
【0098】
図28は、第8の実施形態の画像処理装置における自動レイアウトの動作を示すフロー図である。尚、図28のステップS2801に示す処理は、図2に示すステップS201の処理に対応し、図85に示すステップS2802の自動レイアウト処理は、図2に示したステップS203における処理の一部に対応する。
【0099】
まず、ステップS2801において、画像処理装置は、印刷対象の画像をk枚選択する。次に、ステップS2802において、画像処理装置は、選択されたk枚の画像をランダムに配置する。ここで、ランダムに配置する方法について詳細に説明を行う。ランダムに配置する方法には、CDに外接する四角形の内部にランダムに配置する方法があるが、その場合はCDの外側や中心部分にも画像が配置され、非常に効率が悪かった。したがって、本実施形態では、以下に示す式にしたがって、極座標系でランダムに配置する。更に、円形の場合は外側ほど面積が広いので、そことを考慮してより外側に多く画像が配置されるようにする。
【0100】
すなわちt番目の画像の位置は内径をr0、外径をr1とすると、以下の式で表される。
r(t)=√(r02+(r12−r02)*Rand())
θ(t)=R(t)+2*π*Rand()/(k/2)+Rand_PI()
但し、上述した式においてRand()は0以上1未満の乱数値を返す関数である。またRand_PI()は0〜2πまでの乱数値を返す関数である。また、R(t)は0、2π/k、2π*2/k、2π*3/k、…、2π*(k−1)/kまでの数字をランダム順に出力する関数である。
【0101】
これによって、画像は極座標系でランダムに配置される。さらに、r(t)、およびθ(t)の関数により、内径と外径の間にはさまれたドーナツ型の中に満遍なく画像がランダムに配置される。また、配置された画像は、それぞれRand_PI()関数によって指定されたランダムな角度で回転されて配置される。
【0102】
また、画像のサイズは選択する画像の枚数が多ければ多いほど、画像のサイズを小さくする。画像のサイズは以下の式にしたがって決定される。
w=(π/(aspect*k))1/ α
ここで、aspectは画像の高さをh、幅をwとするとh/wで表される。また、αの値について説明する。例えばα=2の場合には、画像の重なりがなければ、円周内を画像で埋めることができるが、ランダムに配置する場合には画像も重なるためα=2よりも大きい値の方がより多くの画像を適切に表示することが可能になる。
【0103】
以上の式により、多くの画像を選択しても画像のサイズを小さくすることにより、配置することができる。例えば、図29(a)は、15枚の画像をランダムに配置した画像配置例を示す図である。また、図29(b)は、50枚の画像をランダムに配置した画像配置例を示す図である。図29(a)と図29(b)を比べても分かるように、画像処理装置は、配置する画像の総数に応じて画像の大きさを適切なものにしている。
【0104】
以上の方法により、CD−Rの内径と外径の間に画像をランダムに配置することが可能になる。また、「振りなおし」などを行うことにより、Rand関数を再度選びなおして、別のランダムなレイアウトを生成することも可能である。また、各画像に内接する円形・楕円形で切り抜くことにより、より多くの画像を表示させることが可能になる。
【0105】
[第9の実施形態]
第9の実施形態では、画像のレイアウトと印刷の解像度に応じて適切な解像度(=画像サイズ)の画像を用いることにより処理の負荷を軽減する方法について説明する。尚、第9の実施形態における画像処理装置のハードウェア構成は、図1に示した第1の実施形態における画像処理装置のハードウェアの構成と同じであるので、説明を省略する。尚、第9の実施形態における画像処理装置のラベル印刷の工程は、図2に示した第1の実施形態における画像処理装置のラベル印刷の工程と同じであるので、説明を省略する。
【0106】
上述した実施形態1〜8では、画像データは単にJPEG形式の画像であったが、本実施形態では近年普及してきたデジタルカメラのフォーマットである標準的なDCF(Design rule for Camera File system)フォーマットの画像を用いる。すなわち、本実施形態の画像処理装置の二次記憶103には、DCFフォーマットの画像データが記録されている。
【0107】
ここで、DCFフォーマットの画像データとは、JPEG画像本体に加えてデータ内にサムネイル画像を格納している画像データである。典型的には、JPEG画像本体(主画像)が1600x1200画素乃至それ以上の解像度(画像サイズ)を有し、サムネイル画像が160x120画素の解像度(画像サイズ)を有する。本実施形態の画像処理装置は、ラベル画像作成の処理においてレンダリングに必要な解像度(画像サイズ)を算出し、サムネイル画像の解像度(画像サイズ)で十分な場合に、主画像のデコードを行わないでサムネイル画像で代用することにより、処理の高速化と所要メモリ量の削減を実現する。
【0108】
尚、本実施形態の画像処理装置が作成するラベル画像として、図22や図24に示すように変形後の画像の大きさが一定でないものを主な対象とする。すなわち、図22や図24に示すように、円形の内側に配置する画像のサイズが小さい場合に、主画像ではなくサムネイル画像を代用することが有効となる。
【0109】
次に、第9の実施形態の画像処理装置における画像の自動レイアウト処理について説明する。
図30は、第9の実施形態における画像処理装置における画像の自動レイアウト処理を示すフロー図である。まず、ステップS1001において、変数tを値0で初期化する。次に、ステップS1002において、画像処理装置は、印刷の解像度を基に第t番目の画像における変形後の大きさ(変形後画像サイズ)を算出する。この値はレイアウト毎に異なるが、具体的な変形後画像サイズ(w0やw1など)の算出方法は上述した第5の実施形態において説明したのでここでは省略する。
【0110】
次に、ステップS1003において、画像処理装置は、上記変形後画像サイズに応じてレンダリングに主画像を用いるかサムネイル画像を用いるかを決定する。具体的には、変形後画像の上辺>160画素の場合(ステップS1003のYes)には、ステップS1004に進む。また、変形後画像の上辺>160画素でない場合(ステップS1003のNo)には、ステップS1005に進む。尚、本実施形態においては、図22や図24に示すように、変形後画像の上辺が比較対照となったが、この限りでは無く、画像の長辺であればよい。
【0111】
更に、具体例として、記録メディアとして典型的な直径12cmのCDラベルを作成する場合であって、出力デバイス105が600dpiの解像度で印刷を行う例について説明する。まず、CDラベルの半径に含まれる画素数Rを求めると
R=12/2/2.54*600≒1417画素
である。サムネイル画像の幅は160画素であるので、だいたいCD半径の1/9程度を目安に、それより小さく描画する画像についてはレンダリングを行う際にサムネイル画像を用いる。これにより、レンダリング処理(ラベル画像の作成処理)の効率を高めることができる。
【0112】
次に、ステップS1004に進んだ場合には、画像処理装置は、t番目の画像について主画像のデコードを行う。また、ステップS1005に進んだ場合には、画像処理装置は、t番目の画像についてサムネイル画像のデコードを行う。次に、ステップS1006において、画像処理装置は、デコードした主画像乃至サムネイル画像を用いて画像のレンダリング処理を行う。レンダリング処理(変形処理)の具体的なアルゴリズムは上述した第5の実施形態で説明したとおりである。
【0113】
次に、ステップS1007において、画像処理装置は、変数tが描画画像数Imagesと一致したか否かの判断を行う。ここで、一致した場合(ステップS1007のYes)には、ラベル画像の作成処理を終了する。また、一致しない場合(ステップS1007のNo)には、ステップS1008に進み、画像処理装置は、tを値1だけインクリメントしてからステップS1002に戻る。
【0114】
尚、上述した第9の実施形態では図22に示すように描画される画像の大きさがひとつひとつ異なる場合を説明したが、この限りではなく、図17に示すような、全ての画像が同じ大きさで描画される場合に用いても同等の効果を得ることができる。ただし同じ大きさで描画されるレイアウトであれば、画像ひとつひとつについて主画像を使うかサムネイル画像を使うかの判断を行う必要はなく、最初に一度だけ判断を行えばよい。
【0115】
また、上述した第9の実施形態ではDCFフォーマットの画像データのように2種類の解像度(画像サイズ)の画像データを含む場合を示したが、この限りではない。例えば周知のFlashpixフォーマットやJPEG2000フォーマットなどの画像データのように、階層的に複数解像度でデコードすることのできる画像フォーマットを用いても好適である。また、複数解像度(3つ以上)の画像データをデコード可能なフォーマットの画像データを用いることにより、よりきめ細かく描画に用いる画像の解像度を決定することができる。これにより、必要最低限の解像度を有する画像のデコードを行うことにより、一層の処理の高速化が可能である。
【0116】
また、上述した第9の実施形態では必要に応じてサムネイル画像か主画像を切り替えてデコードするようにしたが、この限りではなく、サムネイル画像は事前に一括してデコードを行ってキャッシュしておき、主画像のほうだけ必要に応じてデコードするようにしてもよい。例えば、サムネイル画像は、印刷に用いる画像を複数の画像中から利用者が選択するために画面に提示するために用いるなど、別の用途に用いることも多いためキャッシュすることで全体としての処理効率が良くなる場合もある。また、キャッシュすることによりサムネイル画像の処理速度は向上するが、メモリ使用量は増大するので、ラベル画像の作成処理としてはトレードオフが存在する。以上を踏まえて、実施形態に応じた適切なサムネイル画像の処理方法を選択すればよい。
【0117】
また、上述した第9の実施形態では、画像描画の大きさだけに基づいてサムネイル画像と主画像を切り替えたが、この限りではなく、サムネイル画像は単に解像度が低いだけでなく画質も低い場合がある。すなはち、画質的に印刷に適していない場合がある。具体的には、サムネイル画像を圧縮する際に主画像より高い圧縮率で圧縮したり、サムネイル画像を作成する時点で主画像から解像度変換を行う際に、簡易的なNearest−Neighbour法を用いたりすることがあるためである。従って、画面のプレビュー表示やドラフト印刷を行うときには、上述したようにサムネイル画像と主画像を切り替えてラベル画像の作成を行い、実際の印刷のときには全て主画像を用いたラベル画像の作成を行うようにしてもよい。
【0118】
尚、上述した実施形態においては、作成したラベル画像は民生用プリンタを用いてプリンタブルCD−Rメディアに印刷するとしたが、これに限るものではなく、プレス製造するCD−ROMの印刷等に適用しても良い。すなわち、CD−Rに限るものでもなく、DVD−Rなど一般に円形のディスクメディアであれば同等に適用できる。
【0119】
また、図1に示した画像処理装置(コンピュータ)は、図7や図10、図12、図14、図18、図23、図25、図28および図30に示した処理フローの機能をCPU101がプログラムを実行することで実現する。例えば、CPU101および一次記憶102に格納されるプログラムにより画像選択機能を実現して、二次記憶103より複数の画像データを選択する処理を行う。また、CPU101および一次記憶102に格納されるプログラムにより画像配置機能を実現し、上記画像選択処理で選択した複数の画像データによる複数の画像を同心円状に等間隔に配置した配置後画像データを生成する処理を行う。
【0120】
また、図1に示した画像処理装置(コンピュータ)は、図7や図10、図12、図14、図18図23、図25、図28および図30に示した処理フローの一部の機能を有する専用のハードウェアを具備してもよい。また、図1の画像処理装置が備える一次記憶102および二次記憶103は、例えば、ハードディスク装置や光磁気ディスク装置等の不揮発性のメモリや、CD−ROM等の読み出しのみが可能な記録媒体、あるいはこれらの組み合わせによるコンピュータ読み取り、書き込み可能な記録媒体より構成されるものとしてもよい。
【0121】
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムコードが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発メモリ(RAM)のように、一定時間プログラムコードを保持しているものも含むものとする。
【0122】
また、上記プログラムコードは、このプログラムコードを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムコードは、前述した機能の一部を実現する為のものであっても良い。さらに、前述した機能をコンピュータシステムに既に記録されているプログラムコードとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
【0123】
また、上記のプログラムコードを記録したコンピュータ読み取り可能な記録媒体等のプログラムプロダクトも本発明の実施形態として適用することができる。上記のプログラムコード、記録媒体、伝送媒体およびプログラムプロダクトは、本発明の範疇に含まれる。
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。
【0124】
【発明の効果】
円形のラベルに対して同心円状に画像を配置するときに、選択した画像の枚数によって、画像のサイズ、配置間隔などを自動調整して円形に収まるように配置することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施形態における画像処理装置のハードウェア構成を示すブロック図である。
【図2】本実施形態による画像処理装置の利用者による操作手順の基本的な流れを示すフロー図である。
【図3】本実施形態における画像処理装置が表示する印刷対象画像指定画面例を示す図である。
【図4】画像処理装置が表示する印刷対象メディア指定画面例を示す図である。
【図5】画像処理装置が表示するレイアウト選択画面例を示す図である。
【図6】画像処理装置が表示するCD−R設定ダイアログ画面例を示す図である。
【図7】画像処理装置における設定に応じた自動レイアウトの動作を示すフロー図である。
【図8】重ねずに円形内に画像を配置する場合のCD−Rの半径R、配置する画像の幅w、配置する画像のアスペクトを示す図である。
【図9】重ねずに円形内に画像を配置する場合のCD−Rの半径R、配置する画像の幅w、配置する画像のアスペクトおよび角度を示す図である。
【図10】第2の実施形態の画像処理装置における設定に応じた自動レイアウトの動作を示すフロー図である。
【図11】重ねずに円形よりはみ出すように画像を配置する場合のCD−Rの半径R、配置する画像の幅w、配置する画像のアスペクトおよび角度を示す図である。
【図12】第3の実施形態の画像処理装置における自動レイアウトの動作を示すフロー図である。
【図13】重ねて円形内に画像を配置する場合のCD−Rの半径R、配置する画像の幅w、配置する画像のアスペクトおよび角度を示す図である。
【図14】第4の実施形態の画像処理装置における自動レイアウトの動作を示すフロー図である。
【図15】重ねて円形からはみ出るように画像を配置する場合のCD−Rの半径R、配置する画像の幅w、配置する画像のアスペクトおよび角度を示す図である。
【図16】円形外にはみ出るように画像を配置する場合のCD−Rの半径R、配置する画像の幅w、配置する画像のアスペクトを示す図である。
【図17】第1の実施形態〜第4の実施形態に応じた画像の配置例を示す図である。
【図18】第5の実施形態の画像処理装置における自動レイアウトの動作を示すフロー図である。
【図19】円形外にはみ出るように画像を配置する場合のCD−Rの半径R、配置する画像の幅w、配置する画像のアスペクトを示す図である。
【図20】重ねて円形からはみ出るように画像を配置する場合のCD−Rの半径R、配置する画像の幅w、配置する画像のアスペクトおよび角度を示す図である。
【図21】多重の同心円状に画像を配置する場合のCD−Rの半径R、配置する画像の幅w、配置する画像のアスペクトおよび角度を示す図である。
【図22】第5の実施形態に応じた画像の配置例を示す図である。
【図23】第6の実施形態の画像処理装置における自動レイアウトの動作を示すフロー図である。
【図24】第6の実施形態に応じた画像の配置例を示す図である。
【図25】第7の実施形態の画像処理装置における自動レイアウト処理の動作を示すフロー図である。
【図26】内径r0、外径r1、螺旋の巻き数Rolls=2の場合の螺旋例を示す図である。
【図27】第7の実施形態に応じた螺旋状の画像の配置例を示す図である。
【図28】第8の実施形態の画像処理装置における自動レイアウト処理の動作を示すフロー図である。
【図29】15枚および50枚の画像をランダムに配置した画像配置例を示す図である。
【図30】第9の実施形態における画像処理装置における画像の自動レイアウト処理を示すフロー図である。
【符号の説明】
101 CPU
102 一次記憶
103 二次記憶
104 入力デバイス
105 出力デバイス
[0001]
BACKGROUND OF THE INVENTION
  The present invention, PaintingImage processing equipmentPicture and pictureImage processing method.
[0002]
[Prior art]
In recent years, with the spread of digital cameras, it has become possible to easily take digital photographs. In addition, a large-capacity removable medium represented by CD-R (Compact Disc-Recordable) has been widely used, and a photographed digital photograph has been stored on a CD-R.
However, when storing a large amount of digital photos on removable media, it was impossible to know what photos were recorded inside without reading them. Therefore, the user has made it possible to identify by writing characters on the CD-R label, or printing characters and images using a printer that can print on the CD-R label.
[0003]
However, when a plurality of rectangular digital photograph images are placed on a circular shape such as a label attached to a CD-R, the user has manually laid out the images. It was difficult. Furthermore, the layout has to be repeated every time the number of images to be arranged increases or decreases, which is a very complicated operation. As a technique for arranging images concentrically, a technique relating to a product in which images are arranged concentrically, for example, [View-Master (registered trademark)] is disclosed (for example, see Patent Document 1).
[0004]
[Patent Document 1]
Japanese Patent Laid-Open No. 7-13276
[0005]
[Problems to be solved by the invention]
However, in the above-described conventional technology, the user does not select and arrange an arbitrary number by himself, but can arrange a predetermined fixed number only with a fixed layout. In addition, the images cannot be superimposed on each other because of the film. From the above, there has been a demand for a technique that can automatically arrange concentric images selected by a user.
Further, when a very large number of images are arranged, there is a problem that each image becomes very small.
[0006]
The present invention has been made in view of the above-described problems, and automatically adjusts the image size, arrangement interval, and angle according to the number of selected images when arranging images on a circular label. It is an object of the present invention to provide an image processing apparatus, an image processing method, a recording medium, and a program that can be automatically arranged.
Also, the present invention preferably adjusts the image size, the arrangement interval, the distance from the center, and the angle automatically according to the number of selected images when arranging the images concentrically with respect to the circular label. An object of the present invention is to provide an image processing apparatus, an image processing method, a recording medium, and a program that can be automatically arranged so as to fit in a circle.
[0007]
The present invention also provides an image processing apparatus, an image processing method, a recording medium, and a program capable of superimposing images when arranging images concentrically with respect to a circular label. For the purpose.
[0008]
Further, the present invention preferably determines the number of concentric circles according to the number of selected images when arranging images concentrically with respect to a circular label, and determines the size, arrangement interval, and center of the image. An object is to provide an image processing apparatus, an image processing method, a recording medium, and a program that can be automatically arranged so as to fit in a circle by automatically adjusting the distance and angle from the image.
[0009]
[Means for Solving the Problems]
  The present invention has been made to solve the above-described problems, and includes a storage unit that stores a plurality of image data, an image selection unit that selects a plurality of the image data from the storage unit, and a selection by the image selection unit. When a pattern for randomly arranging images in a donut shape surrounded by a predetermined inner diameter and outer diameter is selected, and an arrangement pattern selecting means for selecting the type of pattern in which the plurality of image data are arranged In addition, the plurality of image data selected by the image selection means is resized according to the number of the selected image data, and image arrangement for generating post-placement image data in which a deformed image that is a resized image is arranged A position calculated by a polar coordinate system using the center of the donut as an origin, an image rotation angle, and And executes by determining at random, the size of the image to be arranged, beforeImage selectionThe number of images selected by the selection means is changed according to the number of images.
[0013]
  By adopting such a configuration, a plurality of image data is selected, a plurality of images based on the selected plurality of image data are transformed into a shape according to the arrangement pattern, and a deformed image that is a deformed image is used as the arrangement pattern. It is possible to generate post-placement image data arranged accordingly. Therefore, for example, when images are arranged concentrically with respect to a circular label, the image size, the arrangement interval, and the like can be automatically adjusted according to the number of selected images so as to fit in a circle.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[First Embodiment]
First, an image processing apparatus that arranges images in a single concentric circle will be described as a first embodiment of the present invention. FIG. 1 is a block diagram showing a hardware configuration of the image processing apparatus according to the first embodiment of the present invention. A CPU (central processing unit) 101 controls the operation of the entire system, and executes a program stored in the primary storage 102. The primary storage 102 is mainly a memory, such as a RAM (Random Access Memory). The primary storage 102 reads and stores programs and the like stored in the secondary storage 103.
[0015]
The secondary storage 103 is a non-volatile memory, such as a hard disk. The secondary storage 103 stores image data to be processed in addition to various programs executed by the image processing apparatus. Note that the image data in this embodiment is, for example, image data in JPEG (Joint Photographic Experts Group) format.
[0016]
Generally, the capacity of the primary storage 102 is smaller than the capacity of the secondary storage 103, and programs and data that cannot be stored in the primary storage 102 are stored in the secondary storage 103. Data that must be stored for a long time is also stored in the secondary storage 103. In the present embodiment, various programs are stored in the secondary storage 103, and a program to be executed when the program is executed is read into the primary storage 102, and the CPU 101 performs execution processing.
[0017]
The input device 104 is an input device such as a mouse or a keyboard. The input device 104 is used for sending an interrupt signal to a program or the like. The output device 105 is, for example, a display device such as a CRT (Cathode Ray Tube) or a liquid crystal display, or a printer that performs printing. In the image processing apparatus according to the present embodiment, since a function as a printing apparatus that prints on a label of a CD-R is essential, the output device 105 includes at least a printer as an essential component. The output device 105 may include an apparatus other than a printer as an image output apparatus. Further, the configuration of the above-described image processing apparatus may take various forms, and is not limited to the configuration described above.
[0018]
First, an outline of the image processing apparatus in the present embodiment will be described. The image processing apparatus described in this embodiment can prompt the user to specify a print target image, a print target medium, and a layout by displaying a GUI (Graphical User Interface) on the display device. Furthermore, the image processing apparatus according to the present embodiment has an editing function for simply editing an image to be printed.
[0019]
The four functions of the image processing apparatus will be described below with reference to the drawings. FIG. 2 is a flowchart showing a basic flow of an operation procedure by the user of the image processing apparatus according to the present embodiment. First, in step S201, the user selects an image to be printed and its number. In step S <b> 202, the user selects an output destination output device 105 and printing paper. For example, when printing on a CD-R or the like, the user selects the label of the CD-R here. Finally, in step S203, the user determines a layout to be printed on the label, and instructs to perform printing according to the determined layout. The simple editing function is a function performed by moving to the editing screen by pressing a button prepared on the print screen displayed in step S203. After editing, the screen returns to the print screen displayed in step S203. Hereinafter, the details of the operation in each step will be described with reference to the drawings.
[0020]
FIG. 3 is a diagram illustrating an example of a print target image designation screen displayed by the image processing apparatus according to the present embodiment. The print target image designation screen in FIG. 3 is a screen displayed in step S201 in FIG. The folder tree window 309 displays a tree showing the directory structure built in the secondary storage 102 provided in the image processing apparatus. The user can select a directory in which necessary image data is stored by tracing the tree of the folder tree window 309. When a plurality of image files are stored in the directory selected by the user, the image processing apparatus displays the thumbnail image (reduced image) on the thumbnail display window 310.
[0021]
When the user presses the enlargement display button 305 while selecting an image on the thumbnail display window 310, the enlargement display window is displayed. The image to be selected can be confirmed in detail using the enlarged display window.
[0022]
In this embodiment, the number of images is selected using the number selection button 302 provided at the bottom of each thumbnail as shown in FIG. The number selection button 302 is a seesaw switch, and when the user presses the right side of the number selection button 302, the print designation number displayed at the center of the number selection button 302 is incremented by one. When the user presses the left of the number selection button 302, the print designation number is decreased by one. If the designated number of prints displayed at the center of the number selection button 302 becomes 0, even if the left side of the number selection button 302 is pressed, it is invalidated. This prevents a negative number. When the designated number of prints reaches 99, the right of the number selection button 302 is invalidated.
[0023]
When the all selection button 307 is pressed, all the images stored in the directory selected in the folder tree window 309 can be set to be printed one by one. When the all cancel button 308 is pressed, the print designation for all images is cancelled. When the selected image determination button 306 is pressed, the image processing apparatus displays a print target medium designation screen shown in FIG.
[0024]
Next, the above-described print target medium designation screen will be described.
FIG. 4 is a diagram illustrating an example of a print target medium designation screen displayed by the image processing apparatus. The print target medium designation screen in FIG. 4 is a screen displayed in step S202 in FIG. A printer selection menu 406 is a menu for selecting a printer as an output destination. As shown in FIG. 4, the printer selection menu 406 in this embodiment is a pull-down menu, and displays a list of printers connected to the image processing apparatus. A check box written as “VIVID photo” on the right side of the printer selection menu 406 is a check box for designating whether to apply special processing prepared by the printer driver. This check box is valid only when the “VIVID photo” function is valid for the printer selected in the printer selection menu 406. In the present embodiment, the VIVID photo function is described as an example of special processing provided by the printer driver, but it goes without saying that other processing is not a problem.
[0025]
Further, the image processing apparatus limits the options displayed in the print size selection window 408 and the paper type selection window 407 to appropriate ones according to the model of the output destination printer selected in the printer selection menu 406. By restricting the display options in this way, the user can specify printing without being aware of the printer and its corresponding paper. Furthermore, the image processing apparatus restricts paper options displayed in the paper type selection window 407 according to the paper size selected in the print size selection window 408. Accordingly, every time the output destination printer is changed, the states of the print size selection window 408 and the paper type selection window 407 are updated. Each time the paper size is changed, the state of the paper type selection window 407 is updated.
[0026]
When the print target medium determination button 404 or the print tab 403 paper selection tab 402 is pressed, the image processing apparatus transitions to a layout designation screen shown in FIG. When the image reselection button 405 or the image selection tab is pressed, the image processing apparatus transitions to the print target image designation screen shown in FIG.
[0027]
Further, the first option in the list is selected in advance when the image processing apparatus is used for the first time, and the option selected last by the user is selected in advance in the second and subsequent activations. In the present embodiment, by selecting “CD-R tray” from the paper size here, the image processing apparatus goes to the layout designation screen shown in FIG. 5 where the image can be laid out on the CD-R label surface. Change the screen.
[0028]
Next, the layout designation screen will be described. FIG. 5 is a diagram illustrating an example of a layout selection screen displayed by the image processing apparatus. The layout selection screen in FIG. 5 is a screen displayed in step S203 in FIG. The layout selection window 504 is a window capable of selecting one of the layouts A.504a to D.504d for output. For example, layout A • 504a is a fixed number of layouts such as one, four, sixteen, and fifty in a circular shape like CD-R, and layout B • 504b transforms an image into concentric circles. It is a layout to arrange without. In the present embodiment, the layout B 504b that does not deform the image concentrically (remains rectangular) is selected.
[0029]
When a layout to be arranged without deforming an image concentrically is selected in the layout selection window 504, a parameter adjustment window 505 and a print preview window 506 are displayed, and a preview 507 corresponding to the layout is displayed in the print preview window 506.
[0030]
Further, it is possible to adjust parameters according to the CD-R layout using the parameter adjustment window 505. The parameters that can be adjusted include the arrangement order of images (clockwise, counterclockwise, from the inside, from the outside), and the like. When the user presses the CD-R setting button 503, the image processing apparatus displays a CD-R setting dialog 601 in FIG. FIG. 6 is a diagram illustrating an example of a CD-R setting dialog screen displayed by the image processing apparatus. The CD-R setting dialog 601 includes an inner diameter setting field 602 for setting the inner diameter of the CD-R, an outer diameter setting field 603 for setting the outer diameter of the CD-R, and the adjustment of the print position of the CD-R. There is also an input field to do.
[0031]
As described above, the inner diameter and outer diameter of the CD-R can be adjusted in the CD-R setting dialog 601. Also, when the print button 502 is pressed after confirming the overall layout in the preview 507, printing is started.
[0032]
Next, according to the setting value set by the user in the screen transitions of FIGS. 3 to 6 described above, the images adjacent to each other on the CD-R label are arranged at equal intervals, and further, A method of automatically laying out so as to fit within the CD-R label (in a circle) will be described. FIG. 7 is a flowchart showing the operation of automatic layout processing according to the setting in the image processing apparatus. Note that step S701 shown in FIG. 7 is processing corresponding to step S201 shown in FIG. 2, and the automatic layout processing of steps S702 to S704 corresponds to part of the processing in step S203 shown in FIG.
[0033]
As shown in FIG. 7, first, in step S <b> 701, the image processing apparatus reads the image file to be printed selected by the user in FIG. 3 from the secondary storage 103 and selects it. Next, in step S702, if the total number of image files selected in step S701 is k, the image processing apparatus proceeds to step S703 when k is 2 or less (Yes in step S702), as shown below. Equations 1 and 2 are calculated. If k is larger than 2 (No in step S702), the image processing apparatus proceeds to step S704 and calculates Expressions 4 and 5. When the number of sheets is 2 or less, adjacent images do not overlap when images are arranged.
[0034]
First, calculation processing of Expression 1 and Expression 2 in Step S703 that proceeds when k is 2 or less will be described.
Here, as shown in FIG. 8, if the radius of the CD-R is R, the width of the image to be arranged is w, the aspect (height / width) of the image to be arranged is a, and the center of the CD-R is the origin. The following equation holds.
R2= W2+ (Aw / 2)2
Therefore, the width w of the image to be arranged is expressed by the following formula 1.
w = 2R / √ (4 + a2... Formula 1
[0035]
Further, the coordinates (x, y) of the center Ic of the t-th image to be arranged are expressed by the following Expression 2.
x = w cos (2tπ / k) / 2
y = w sin (2tπ / k) / 2 Formula 2
t = 0, 1,..., k−1
That is, the center Ic is at the position of the coordinates (x, y), and an image rotated by 2tπ / k is arranged.
By arranging the images according to the above formulas 1 and 2, the image processing apparatus can store the images in a CD-R circle without overlapping the images.
[0036]
Next, calculation processing of Expression 3 and Expression 4 in Step S704 that is performed when k is larger than 2 in Step S702 will be described.
Here, as shown in FIG. 9, assuming that the radius of the CD-R is R, the width of the arranged image is w, the aspect (height / width) of the arranged image is a, and the center of the CD-R is the origin. The following formula 3 is established.
R2= (Aw / 2)2+ (W + (aw / 2tan (π / k)))2  ... Formula 3
Therefore, the width w of the image to be arranged is expressed by the following Expression 4.
w = R / √ {a2/ 4 + (1 + a / 2 tan (π / k))2} Equation 4
[0037]
Further, the coordinates (x, y) of the center Ic of the t-th image to be arranged are expressed by the following Expression 5.
x = (w / 2 + aw / 2tan (π / k)) * cos (2tπ / k)
y = (w / 2 + aw / 2tan (π / k)) * sin (2tπ / k) Equation 5
t = 0, 1,..., k−1
An image rotated by 2tπ / k is placed at this position.
[0038]
If the center coordinates Ic of the image coordinates and the width w are determined so as to satisfy the above expressions 3 and 4, it is possible to arrange the images without overlapping in the circle of the CD-R label. As described above, when the image processing apparatus according to the present embodiment arranges images concentrically with respect to a circular label, the image size, the arrangement interval, and the distance from the center depend on the number of selected images. Thus, the image data (post-placement image data) automatically arranged so that the respective images fit in a circle without overlapping can be generated by automatically adjusting the angle.
[0039]
[Second Embodiment] (No overlap, no outer peripheral border, single circle)
In the image processing apparatus according to the first embodiment described above, an example in which the images in the CD-R are not overlapped and arranged at equal intervals in a circle has been described. However, in the image processing apparatus according to the second embodiment, An arrangement method in which at least one side of the image protrudes will be described. Here, the one side that protrudes is the outer peripheral portion of the CD-R, and by arranging the outer peripheral portion of the CD-R so as to be laid out, an image is arranged without causing an extra margin in the outer peripheral portion of the CD-R. It becomes possible.
[0040]
Note that the hardware configuration of the image processing apparatus in the second embodiment is the same as the hardware configuration of the image processing apparatus in the first embodiment shown in FIG. Further, the label printing process of the image processing apparatus in the second embodiment and the GUI displayed in each process are the label printing process of the image processing apparatus in the first embodiment shown in FIG. Since this is the same as the GUI shown in FIG.
[0041]
Hereinafter, a layout method according to this embodiment in which images are arranged on a CD-R label at equal intervals without overlapping each other and only one side protrudes from the outer periphery of the CD-R will be described. FIG. 10 is a flowchart illustrating an automatic layout operation according to the setting in the image processing apparatus according to the second embodiment. Note that the processing in step S1001 shown in FIG. 10 corresponds to the processing in step S201 shown in FIG. 2, and the automatic layout processing in steps S1002 to S1004 shown in FIG. 10 is a part of the processing in step S203 shown in FIG. Corresponding to
[0042]
As shown in FIG. 10, first, in step S1001, the image processing apparatus reads the image file to be printed selected by the user in FIG. Next, in step S1002, if the selected total number is k, the image processing apparatus proceeds to step S1003 when k is 2 or less (Yes in step S1002), and calculates Equations 6 and 7 shown below. . If k is larger than 2 (No in step S1002), the image processing apparatus proceeds to step S1004 and calculates Expressions 9 and 10 shown below. When the number of sheets is 2 or less, adjacent images do not overlap when images are arranged.
[0043]
First, calculation processing of Expression 6 and Expression 7 in Step S1003 that proceeds when k is 2 or less will be described.
Here, as shown in FIG. 16, assuming that the radius of the CD-R is R, the width of the image to be arranged is w, the aspect (height / width) of the image to be arranged is a, and the center of the CD-R is the origin. The following equation 6 holds.
w = R Formula 6
Further, the coordinates (x, y) of the center Ic of the t-th image to be arranged are expressed by the following Expression 7.
x = w cos (2tπ / k) / 2
y = w sin (2tπ / k) / 2) Equation 7
t = 0, 1,..., k−1
That is, the center Ic is at the position of the coordinates (x, y), and an image rotated by 2tπ / k is arranged.
[0044]
Next, calculation processing of Expression 9 and Expression 10 in Step S1004 that proceeds when k is larger than 2 in Step S1002 will be described.
Here, as shown in FIG. 11, assuming that the radius of the CD-R is R, the width of the arranged image is w, the aspect (height / width) of the arranged image is a, and the center of the CD-R is the origin. The following equation 8 holds.
R = w + aw / (2 * tan (π / k)) Equation 8
Ie
w = R / {1 + a / (2 tan (π / k))} Equation 9
Therefore, the coordinates (x, y) of the center Ic of the t-th image are expressed by the following Expression 10.
x = (R−w / 2) * cos (2tπ / k)
y = (R−w / 2) * sin (2tπ / k) Equation 10
t = 0, 1,..., k−1
An image rotated by 2 × t × π / k is placed at this position.
[0045]
By using the above method, the image processing treatment can be laid out concentrically so that one side of the image protrudes from the circular outer periphery. As described above, when the image processing apparatus according to the present embodiment arranges images concentrically with respect to a circular label, the image size, the arrangement interval, and the distance from the center depend on the number of selected images. The image data (post-placement image data) automatically arranged so that a part of the image protrudes from the circular shape can be generated by automatically adjusting the angle.
[0046]
[Third embodiment] (with overlap, single circle)
In the first and second embodiments, the premise is that the images do not overlap with each other. However, in the third embodiment, the layout may be such that the images may overlap except for one side of the images. That is, the peripheral portions on the other side are arranged so as to overlap so that the peripheral portion on one specific side of the image can be seen.
[0047]
Note that the hardware configuration of the image processing apparatus in the third embodiment is the same as the hardware configuration of the image processing apparatus in the first embodiment shown in FIG. Further, the label printing process of the image processing apparatus in the third embodiment and the GUI displayed in each process are the label printing process of the image processing apparatus in the first embodiment shown in FIG. Since this is the same as the GUI shown in FIG.
[0048]
Hereinafter, a layout method according to this embodiment in which images are concentrically arranged on a CD-R label will be described. FIG. 12 is a flowchart illustrating an automatic layout operation in the image processing apparatus according to the third embodiment. The process of step S1201 shown in FIG. 12 corresponds to the process of step S201 shown in FIG. 2, and the automatic layout process of steps S1202 to S1204 shown in FIG. 12 is one of the processes in step S203 shown in FIG. Corresponding to the part.
[0049]
As shown in FIG. 12, first, in step S1201, the image processing apparatus reads the image file to be printed selected by the user in FIG. Next, in step S1202, if the selected total number is k, the image processing apparatus proceeds to step S1203 when k is 2 or less or the condition of the following expression 11 is satisfied (Yes in step S1202), and is shown below. Equations 12 and 13 are calculated.
2 / √ (4 + a2)> = Cos (π / k) Equation 11
If k is greater than 2 or does not satisfy the condition of Expression 11 (No in Step S1202), the image processing apparatus proceeds to Step S1204 and calculates Expressions 14 and 15 shown below.
[0050]
First, calculation processing of Expression 12 and Expression 13 in Step S1203 that proceeds to Yes in Step S1202 will be described.
Here, as shown in FIG. 8, the radius of the CD-R is R, the width of the image to be arranged is w, the aspect (height / width) of the image to be arranged is a, and the center of the CD-R is the origin. Then, the following formula is established.
R2= W2+ (Aw / 2)2
Therefore, the width w of the image to be arranged is expressed by the following Expression 12.
w = 2R / √ (4 + a2) Equation 12
[0051]
Further, the coordinates (x, y) of the center Ic of the t-th image to be arranged are expressed by the following Expression 13.
x = w cos (2tπ / k) / 2
y = w sin (2tπ / k) / 2 Equation 13
t = 0, 1,..., k−1
That is, the center Ic is at the position of the coordinates (x, y), and an image rotated by 2tπ / k is arranged.
[0052]
Next, the calculation processing of Expression 14 and Expression 15 in Step S1204 that proceeds in the case of No in Step S1202 will be described.
Here, as shown in FIG. 13, if the radius of the CD-R is R, the width of the image to be arranged is w, the aspect (height / width) of the image to be arranged is a, and the center of the CD-R is the origin. The following equation holds.
R sin (π / k) = aw / 2
So
w = 2 * R * sin (π / k) / a Equation 14
[0053]
Therefore, the coordinates (x, y) of the center Ic of the t-th image are represented by the following Expression 15.
x = (Rcos (π / k) −Rsin (π / k) / a) cos (2tπ / k)
y = (Rcos (π / k) −Rsin (π / k) / a) sin (2tπ / k)
t = 0, 1,..., k−1 Equation 15
An image rotated by 2tπ / k is placed at this position.
By using the above method, the image processing procedure can lay out the image by superimposing it in a circle on the label of the CD-R.
[0054]
[Fourth embodiment] (with overlapping, without outer periphery, single circle)
In the third embodiment described above, the layout is such that the images may overlap except for one side of the image, but in the fourth embodiment, which is within the CD-R circle, one side of the image is circular. It is assumed that the other sides may overlap with each other.
[0055]
Note that the hardware configuration of the image processing apparatus in the fourth embodiment is the same as the hardware configuration of the image processing apparatus in the first embodiment shown in FIG. The label printing process of the image processing apparatus in the fourth embodiment and the GUI displayed in each process are the label printing process of the image processing apparatus in the first embodiment shown in FIG. Since this is the same as the GUI shown in FIG.
[0056]
Hereinafter, a layout method according to the present embodiment in which images are concentrically arranged and arranged will be described. FIG. 14 is a flowchart illustrating an automatic layout operation in the image processing apparatus according to the fourth embodiment. 14 corresponds to the process of step S201 shown in FIG. 2, and the automatic layout process of steps S1402 to S1404 shown in FIG. 14 is a part of the process in step S203 shown in FIG. Corresponding to
[0057]
As shown in FIG. 14, first, in step S1401, the image processing apparatus reads out and selects from the secondary storage 103 the image file to be printed selected by the user in FIG. In step S1402, if the selected total number is k, the image processing apparatus proceeds to step S1403 when k is 2 or less or the condition of the following expression 15.5 is satisfied (Yes in step S1402), and the following expression is used: 16 and Equation 17 are calculated.
2sin (π / k)> = a Equation 15.5
If k is greater than 2 or does not satisfy the condition of Expression 11 described above (No in Step S1402), the image processing apparatus proceeds to Step S1404 and calculates Expressions 18 and 19 shown below.
[0058]
First, calculation processing of Expression 16 and Expression 17 in Step S1403 that proceeds to Yes in Step S1402 will be described.
Here, as shown in FIG. 16, the radius of the CD-R is R, the width of the arranged image is w, the aspect (height / width) of the arranged image is a, and the center of the CD-R is the origin. Then, the width w of the image to be arranged is expressed by Expression 16 below.
w = R Formula 16
[0059]
Further, the coordinates (x, y) of the center Ic of the t-th image to be arranged are expressed by the following Expression 17.
x = w cos (2tπ / k) / 2
y = w sin (2tπ / k) / 2 Equation 17
t = 0, 1,..., k−1
That is, the center Ic is at the position of the coordinates (x, y), and an image rotated by 2tπ / k is arranged.
[0060]
Next, calculation processing of Expression 18 and Expression 19 in Step S1404 that proceeds in the case of No in Step S1402 will be described.
Here, as shown in FIG. 15, assuming that the radius of the CD-R is R, the width of the image to be arranged is w, the aspect (height / width) of the image to be arranged is a, and the center of the CD-R is the origin. The following equation holds.
R sin (π / k) = aw / 2
So
w = Rsin (π / k) / a Equation 18
[0061]
Therefore, the coordinates (x, y) of the center Ic of the t-th image are expressed by the following Expression 19.
x = (R−w / 2) * cos (2tπ / k)
y = (R−w / 2) * sin (2tπ / k) Equation 19
t = 0, 1,..., k−1
Thus, an image rotated by 2tπ / k is arranged at this position.
By using the above method, the image processing procedure can lay out the images by concentrically overlapping them so that one side of the image protrudes from the circular outer periphery.
[0062]
17A to 17D show examples of image arrangements shown in the first to fourth embodiments. Moreover, you may enable it for a user to select the arrangement | sequence in any one of 1st Embodiment-4th Embodiment according to liking.
[0063]
[Fifth Embodiment] (Overlapping, non-circular, multiple circles)
In the first to fourth embodiments described above, the layout is such that the image is a single circle, but in the fifth embodiment, multiple circles are formed so that the images overlap each other on the CD-R at equal intervals. The layout is such that it protrudes outside the circumference of the CD-R label.
[0064]
Note that the hardware configuration of the image processing apparatus according to the fifth embodiment is the same as the hardware configuration of the image processing apparatus according to the first embodiment shown in FIG. Further, the label printing process of the image processing apparatus in the fifth embodiment and the GUI displayed in each process are the label printing process of the image processing apparatus in the first embodiment shown in FIG. Since this is the same as the GUI shown in FIG.
[0065]
The layout method of this embodiment will be described below in which multiple circles are formed and arranged so that the images overlap each other on the CD-R and protrude outside the circular shape of the CD-R label. FIG. 18 is a flowchart illustrating an automatic layout operation in the image processing apparatus according to the fifth embodiment. The processing in step S1701 shown in FIG. 18 corresponds to the processing in step S201 shown in FIG. 2, and the automatic layout processing in steps S1702 to S1706 shown in FIG. 18 is one of the processing in step S203 shown in FIG. Corresponding to the part.
[0066]
First, in step S1701, the image processing apparatus selects an image to be printed selected by the user on the print target image designation screen shown in FIG. Next, in step S1702, if the selected total number is k, if k is 2 or less or the condition of the following expression 1A is satisfied (Yes in step S1702), the image processing apparatus proceeds to step S1703, which will be described later. Equations 20 and 21 are calculated.
2sin (π / k)> = a (1A)
If k is greater than 2 and the condition of the above equation is not satisfied (No in step S1702), the image processing apparatus proceeds to step S1704.
[0067]
First, the processing of the image processing apparatus when proceeding to step S1703 will be described.
Here, as shown in FIG. 19, assuming that the radius of the CD-R is R, the width of the image to be arranged is w, the aspect (height / width) of the image to be arranged is a, and the center of the CD-R is the origin. The width w of the image to be arranged is expressed by the following equation 20.
w = R Equation 20
Further, the coordinates (x, y) of the center Ic of the t-th image to be arranged are expressed by the following Expression 21.
x = w cos (2tπ / k) / 2
y = w sin (2tπ / k) / 2)
t = 0, 1,..., k−1.
That is, the center Ic is at the position of the coordinates (x, y), and an image rotated by 2tπ / k is arranged.
[0068]
If the process proceeds to step S1704 and if the number k is 32 or less (Yes in step S1704), the process proceeds to step S1705. If the number k is larger than 32 (No in step S1704), the process proceeds to step S1706.
[0069]
First, the calculation in step S1705 will be described.
Here, as shown in FIG. 20, assuming that the radius of the CD-R is R, the width of the arranged image is w, the aspect (height / width) of the arranged image is a, and the center of the CD-R is the origin. The following equation holds.
Rsin (π / k) = aw / 2
Therefore, the width w of the image to be arranged is expressed by the following Expression 22.
w = Rsin (π / k) / a Equation 22
Accordingly, the coordinates (x, y) of the center Ic of the t-th image are expressed by the following Expression 23.
x = (R−w / 2) * cos (2tπ / k)
y = (R−w / 2) * sin (2tπ / k) Equation 23
t = 0, 1,..., 24
[0070]
Next, the calculation in step S1706 will be described. In this case, it becomes a double concentric circle.
Here, as shown in FIG. 21, the radius of the CD-R is R, the width of the image to be arranged on the outside is w0, the aspect (height / width) of the image to be arranged is a, and the center of the CD-R is the origin. And Further, since the number of concentric circles should be substantially equal, assuming that the number of images arranged in the outer circle is k0 and the number of images arranged in the inner circle is k1, k0 and k1 are as follows.
k0 = (k + 1) / 2
k1 = k−k0
[0071]
Therefore, the size w0 of the image arranged in the outer circle and the coordinates (x0, y0) of the center position Ic0 of the arranged image are expressed by the following Expression 24 and Expression 25.
w0 = 2Rsin (π / k0) / a Equation 24
x0 = (R−R * sin (π / k0) / a) sin (2tπ / k0)
y0 = (R−R * sin (π / k0) / a) cos (2tπ / k0)
t = 0, 1, 2,... k0-1.
Thus, an image rotated by 2tπ / k0 is arranged at this position.
[0072]
here,
r0 = R-2 * R * sin (π / k0) / a
Then,
The size w1 of the image arranged in the inner circle and the coordinates (x1, y1) of the center position Ic1 of the arranged image are expressed by the following Expression 26 and Expression 27.
w1 = 2 * R0 * sin (π / k0) / a Equation 26
x1 = (r0−r0 * sin (π / k0) / a) sin (2tπ / k1)
y1 = (r0−r0 * sin (π / k0) / a) cos (2tπ / k1)
t = 0, 1, 2,... k1-1 Equation 27
Thus, an image rotated by 2tπ / k1 is arranged at this position.
By using the above method, images can be arranged in double concentric circles as shown in FIG.
[0073]
If you want a triple concentric circle,
k0 = (k + 2) / 2
k1 = (k + 2) / 2
k2 = k−k0−k1
Then,
The width (w0) of the image in the first concentric circle and the coordinates (x0, y0) of the center position Ic0 are expressed by the following equations (28) and (29).
w0 = 2Rsin (π / k0) / a Equation 28
x0 = (R−R * sin (π / k0) / a) sin (2tπ / k0)
y0 = (R−R * sin (π / k0) / a) cos (2tπ / k0)
t = 0, 1, 2,... k0-1 Equation 29
An image rotated by 2tπ / k0 is arranged at this position.
[0074]
Next, the size and position of the second image from the outside will be described.
r0 = R-2 * R * Sin (π / k0) / a
As a result, the width w1 of the image in the double concentric circle and the coordinates (x1, y1) of the center position Ic1 are calculated by the following equations 30 and 31.
w1 = 2 * r0 * sin (π / k0) / a Equation 30
x1 = (r0−r0 * sin (π / k0) / a) sin (2tπ / k1)
y1 = (r0−r0 * sin (π / k0) / a) cos (2tπ / k1)
t = 0, 1, 2,... k1-1 Formula 31
Thus, an image rotated by 2tπ / k1 is arranged at this position.
[0075]
Next, the size and position of the triple image from the outside will be described.
r1 = r0-2 * r0 * sin (π / k0) / a
As a result, the width w2 of the image in the triple concentric circle and the coordinates (x2, y2) of the center position Ic2 are calculated by the following equations 32 and 33.
w2 = 2 * r1 * sin (π / k0) / a Equation 32
x2 = (r1-r1 * sin (π / k0) / a) sin (2tπ / k2)
y2 = (r1-r1 * sin (π / k0) / a) cos (2tπ / k2)
t = 0, 1, 2,... k2-1 Formula 33
Thus, an image rotated by 2tπ / k2 is arranged at this position.
[0076]
By performing the processing shown in FIG. 18 as described above, the image processing apparatus in the present embodiment determines how many concentric circles are to be formed according to the number of selected images, and determines the image size, arrangement interval, and center. The image data (post-placement image data) automatically arranged so as to fit in a circle can be generated by automatically adjusting the distance and angle from.
[0077]
[Sixth Embodiment] (No overlap, in a circle, multiple circles)
In the fifth embodiment, the layout is a multiple circle, the images are overlapped, and one side of the image protrudes outside the circumference of the CD-R label. However, in the sixth embodiment, the entire image is always displayed. The layout is within the circumference of the CD-R label and does not overlap each other.
[0078]
Note that the hardware configuration of the image processing apparatus in the sixth embodiment is the same as the hardware configuration of the image processing apparatus in the first embodiment shown in FIG. Further, the label printing process of the image processing apparatus in the sixth embodiment and the GUI displayed in each process are the label printing process of the image processing apparatus in the first embodiment shown in FIG. Since this is the same as the GUI shown in FIG.
[0079]
The layout method of this embodiment will be described below in which multiple circles are formed and arranged so that the images do not overlap each other on the CD-R and do not protrude outside the circle of the CD-R label. To do. FIG. 23 is a flowchart illustrating an automatic layout operation in the image processing apparatus according to the sixth embodiment. The automatic layout process shown in FIG. 23 is a part of the process in step S203 shown in FIG.
[0080]
First, in step S2201, the image processing apparatus selects an image to be printed selected by the user in FIG. Next, assuming that the selected total number is k in step S2202, if k is 2 or less (Yes in step S2202), the image processing apparatus proceeds to step S2203, and calculates formulas 36 and 37 described later. I do. If k is greater than 2 (No in step S2202), the image processing apparatus proceeds to step S2204.
[0081]
First, the processing of the image processing apparatus when proceeding to step S2203 will be described.
Here, as shown in FIG. 8, if the radius of the CD-R is R, the width of the image to be arranged is w, the aspect (height / width) of the image to be arranged is a, and the center of the CD-R is the origin. The following equation holds.
R2= W2+ (Aw / 2)2
Therefore, the width w of the image to be arranged is expressed by the following Expression 36.
w = 2R / √ (4 + a2... Formula 36
Further, the coordinates (x, y) of the center Ic of the image to be arranged are expressed by the following Expression 37.
x = w cos (2tπ / k) / 2
y = w sin (2tπ / k) / 2 Formula 37
t = 0, 1,..., k−1
Thus, an image rotated by 2tπ / k is arranged at this position.
[0082]
In step S2204, if the selected number k is 32 or less (Yes in step S2204), the process proceeds to step S2205. If k is larger than 32 (No in step S2204), the process proceeds to step S2206.
[0083]
First, the calculation in step S2205 will be described. In step S2205, the width w of the image is expressed by the following equation 38.
w = R / √ (a2/ 4 + (1 + a / 2 tan (π / k))2) ... Formula 38
Also, the coordinates (x, y) of the center Ic of the image to be arranged are expressed by the following Expression 39.
x = (w / 2 + aw / 2tan (π / k)) * cos (2tπ / k)
y = (w / 2 + aw / 2tan (π / k)) * sin (2tπ / k)
t = 0, 1,..., k−1 Equation 39
Thus, an image rotated by 2tπ / k is arranged at this position.
[0084]
Next, the calculation in step S2206 will be described. If the selected number k is greater than 32,
k0 = (k + 1) / 2
k1 = k−k0
The width w0 and the position Ic0 of the image in the first concentric circle are expressed by the following Expression 40.
w0 = r / √ {a2/ 4 + (1 + a / 2 tan (π / k))2} ... Formula 40
Further, the coordinates (x0, y0) of the center Ic of the image to be arranged are expressed by the following Expression 41.
x0 = (w0 / 2 + aw0 / 2tan (π / k0)) cos (2tπ / k0)
y0 = (w0 / 2 + aw0 / 2tan (π / k0)) sin (2tπ / k0)
t = 0, 1, 2, 3, 4,..., k0-1.
Thus, an image rotated by 2tπ / k0 is arranged at this position.
[0085]
Next, the size and position of the second image from the outside will be described.
r0 = R−R / √ {a2/ 4 + (1 + a / 2 tan (π / k))2}
Then, the width w1 and the position Ic1 (x1, y1) of the image in the double concentric circle are expressed by the following equations 42 and 43.
w1 = r0 / √ {a2/ 4 + (1 + a / 2 tan (π / k))2} Formula 42
x1 = (w1 / 2 + aw1 / 2tan (π / k0)) cos (2tπ / k1)
y1 = (w1 / 2 + aw1 / 2tan (π / k0)) sin (2tπ / k1)
t = 0, 1, 2, 3, 4,..., k1-1.
Thus, an image rotated by 2tπ / k1 is arranged at this position.
[0086]
As described above, as shown in FIG. 24, the image processing apparatus can arrange images so as to fall within the circumference of the CD-R label without overlapping in a triple concentric shape. In addition, the image processing apparatus according to the present embodiment can be expanded in the same way as the fifth embodiment with respect to multiple circles. That is, the image processing apparatus according to the present embodiment determines how many concentric circles are formed according to the number of selected images, and automatically adjusts the size, arrangement interval, distance from the center, and angle of the image to make a circle. It is possible to generate image data (post-placement image data) automatically arranged so as to fit.
[0087]
In the above-described embodiment, the number of concentric circles determined according to the number of images to be arranged is not limited to this. For example, the number of concentric circles depends on the width of the currently arranged image. You can decide.
[0088]
[Seventh embodiment] (with overlap, circular, spiral)
In the above-described first to sixth embodiments, the layout is such that the images are arranged concentrically. In the seventh embodiment, the layout is such that the images are spirally arranged at an equal angle.
[0089]
Note that the hardware configuration of the image processing apparatus in the seventh embodiment is the same as the hardware configuration of the image processing apparatus in the first embodiment shown in FIG. The label printing process of the image processing apparatus in the seventh embodiment and the GUI displayed in each process are the label printing process of the image processing apparatus in the first embodiment shown in FIG. Since this is the same as the GUI shown in FIG.
[0090]
Below, the layout method of this embodiment which forms a helix and arranges it in the label of CD-R is demonstrated. FIG. 25 is a flowchart showing the operation of automatic layout processing in the image processing apparatus of the seventh embodiment. The process shown in step S2501 in FIG. 25 corresponds to the process in step S201 shown in FIG. 2, and the automatic layout process in steps S2502 to S2503 shown in FIG. 25 is a part of the process in step S203 shown in FIG. Corresponding to
[0091]
First, in step S2501, the image processing apparatus selects k print target images selected by the user on the print target image designation screen shown in FIG. Next, in step S2502, the image processing apparatus determines the inner diameter / outer diameter / number of turns of the CD-R. For these values, this step S2502 is not necessary when using predetermined values.
[0092]
In step S2503, the image processing apparatus performs processing for arranging images in a spiral shape. Here, the detail about the calculation method of the arrangement position arrange | positioned helically is demonstrated below. In general, the spiral equation can be expressed as follows in the polar coordinate system (r, θ).
r = aθ
In the above formula, a is a positive constant, r is a distance from the origin, and θ is a declination.
[0093]
In this embodiment, in order to place an image inside the CD-R, the inner and outer diameters of the CD-R and the number of turns indicating how many times the spiral is wound are used in the calculation. FIG. 26 is a diagram illustrating an example of a spiral when the inner diameter r0, the outer diameter r1, and the number of spiral turns Rolls = 2. Here, with the inner diameter r0, the outer diameter r1, and the number of turns of the spiral Rolls as constants, the spiral equation can be expressed in the polar coordinate system (r, θ) as follows.
r = r1-a * θ
Here, in the case of θ = 2π * Rolls, the following equation is formed.
r0 = r1-a * 2 * π * Rolls
[0094]
That is, the constant a can be expressed as follows.
a = (r1-r0) / (2 * π * Rolls)
Therefore, the coordinates of each image when k pieces are arranged in a spiral shape can be obtained by the following expression.
r (t) = r1-((r1-r0) / (2 * π * Rolls)) θ (t)
θ (t) = (2 * π * Rolls * t) / k
Where t = 1, 2,..., K
[0095]
By arranging the image at the above position by rotating it by θ (t), it becomes possible to arrange the image in a spiral shape. However, when the images are arranged with a constant size, there is a problem that the images are more difficult to see as they are closer to the center of the circle. There is also a problem that the larger the number of images, the more difficult the images overlap. Therefore, the size of each image is changed so as to increase in proportion to the distance from the center of the image to be arranged. Furthermore, the size of the image may be reduced depending on the number of images to be arranged.
As a result, the image arranged in a spiral is as shown in FIG.
[0096]
In the above-described embodiment, the inner diameter, the outer diameter, and the number of turns are treated as constants. However, the present invention is not limited to this, and the user may be able to freely change each value. Further, when there is a change in the inner diameter / outer diameter / number of turns, the arrangement of all images is immediately recalculated and a new arrangement is performed. Further, the inner diameter is not limited to the spiral arrangement, and when an image is arranged in the concentric circles in the first to sixth embodiments, the inner diameter is also taken into consideration so that the image is not arranged within the inner diameter. In addition, the method of arranging the images close to the inner diameter is not limited to the above-described spiral arrangement, and even in the case of a concentric arrangement, a larger number of images can be obtained by cutting out each of the arranged images by a circle or an ellipse. Can be displayed.
[0097]
[Eighth Embodiment]
In the eighth embodiment, a method for laying out images in a random arrangement in a CD will be described. The hardware configuration of the image processing apparatus in the eighth embodiment is the same as the hardware configuration of the image processing apparatus in the first embodiment shown in FIG. The label printing process of the image processing apparatus in the eighth embodiment and the GUI displayed in each process are the label printing process of the image processing apparatus in the first embodiment shown in FIG. It may be the same as the GUI shown in FIG.
[0098]
FIG. 28 is a flowchart illustrating an automatic layout operation in the image processing apparatus according to the eighth embodiment. The process shown in step S2801 in FIG. 28 corresponds to the process in step S201 shown in FIG. 2, and the automatic layout process in step S2802 shown in FIG. 85 corresponds to a part of the process in step S203 shown in FIG. To do.
[0099]
First, in step S2801, the image processing apparatus selects k images to be printed. Next, in step S2802, the image processing apparatus randomly arranges the selected k images. Here, the method of arrange | positioning at random is demonstrated in detail. As a method of randomly arranging, there is a method of randomly arranging inside a rectangle circumscribing the CD, but in that case, an image is also arranged on the outside or the center portion of the CD, which is very inefficient. Accordingly, in the present embodiment, they are randomly arranged in the polar coordinate system according to the following formula. Furthermore, in the case of a circular shape, the area is wider toward the outside, so that more images are arranged on the outside in consideration of the area.
[0100]
That is, the position of the t-th image is represented by the following equation, where r0 is the inner diameter and r1 is the outer diameter.
r (t) = √ (r02+ (R12-R02) * Rand ())
θ (t) = R (t) + 2 * π * Rand () / (k / 2) + Rand_PI ()
In the above formula, Rand () is a function that returns a random value between 0 and less than 1. Rand_PI () is a function that returns a random value from 0 to 2π. R (t) is a function that outputs numbers up to 0, 2π / k, 2π * 2 / k, 2π * 3 / k,..., 2π * (k−1) / k in random order.
[0101]
As a result, the images are randomly arranged in the polar coordinate system. Furthermore, the image is randomly arranged uniformly in a donut shape sandwiched between the inner diameter and the outer diameter by the function of r (t) and θ (t). Further, the arranged images are arranged by being rotated at random angles specified by the Rand_PI () function.
[0102]
Further, the larger the number of images to be selected, the smaller the image size. The size of the image is determined according to the following formula.
w = (π / (aspect * k))1 / α
Here, aspect is represented by h / w where h is the height of the image and w is the width. The value of α will be described. For example, when α = 2, if the images do not overlap, the circumference can be filled with the image. However, when the images are arranged randomly, the images also overlap, so a value larger than α = 2 is more preferable. Many images can be appropriately displayed.
[0103]
According to the above formula, even if many images are selected, they can be arranged by reducing the image size. For example, FIG. 29A is a diagram illustrating an image arrangement example in which 15 images are randomly arranged. FIG. 29B is a diagram illustrating an image arrangement example in which 50 images are arranged randomly. As can be seen from a comparison between FIG. 29A and FIG. 29B, the image processing apparatus makes the image size appropriate in accordance with the total number of images to be arranged.
[0104]
By the above method, images can be randomly arranged between the inner diameter and the outer diameter of the CD-R. It is also possible to generate another random layout by reselecting the Rand function by performing “reshuffling” or the like. Further, it is possible to display a larger number of images by cutting out each image with a circle or an ellipse inscribed therein.
[0105]
[Ninth Embodiment]
In the ninth embodiment, a method of reducing the processing load by using an image having an appropriate resolution (= image size) according to the image layout and the printing resolution will be described. Note that the hardware configuration of the image processing apparatus in the ninth embodiment is the same as the hardware configuration of the image processing apparatus in the first embodiment shown in FIG. Note that the label printing process of the image processing apparatus in the ninth embodiment is the same as the label printing process of the image processing apparatus in the first embodiment shown in FIG.
[0106]
In Embodiments 1 to 8 described above, the image data is simply an image in JPEG format, but in this embodiment, a standard DCF (Design rule for Camera File system) format, which is a format of a digital camera that has become popular in recent years, is used. Use images. That is, image data in the DCF format is recorded in the secondary storage 103 of the image processing apparatus of the present embodiment.
[0107]
Here, the DCF format image data is image data in which thumbnail images are stored in the data in addition to the JPEG image main body. Typically, a JPEG image main body (main image) has a resolution (image size) of 1600 × 1200 pixels or more, and a thumbnail image has a resolution (image size) of 160 × 120 pixels. The image processing apparatus according to the present embodiment calculates the resolution (image size) necessary for rendering in the label image creation process, and does not decode the main image when the resolution (image size) of the thumbnail image is sufficient. By substituting thumbnail images, the processing speed is increased and the required memory amount is reduced.
[0108]
Note that, as a label image created by the image processing apparatus of the present embodiment, an image whose size after deformation is not constant as shown in FIGS. 22 and 24 is mainly targeted. That is, as shown in FIGS. 22 and 24, when the size of the image arranged inside the circle is small, it is effective to substitute the thumbnail image instead of the main image.
[0109]
Next, automatic image layout processing in the image processing apparatus according to the ninth embodiment will be described.
FIG. 30 is a flowchart showing automatic image layout processing in the image processing apparatus according to the ninth embodiment. First, in step S1001, the variable t is initialized with the value 0. In step S <b> 1002, the image processing apparatus calculates a post-deformation size (deformed image size) in the t-th image based on the printing resolution. Although this value differs for each layout, a specific method for calculating the post-deformation image size (w0, w1, etc.) has been described in the fifth embodiment, and is omitted here.
[0110]
In step S1003, the image processing apparatus determines whether to use a main image or a thumbnail image for rendering in accordance with the post-deformation image size. Specifically, if the upper side of the transformed image> 160 pixels (Yes in step S1003), the process proceeds to step S1004. On the other hand, if the upper side of the image after deformation is not more than 160 pixels (No in step S1003), the process proceeds to step S1005. In the present embodiment, as shown in FIGS. 22 and 24, the upper side of the image after deformation is a comparative reference, but this is not restrictive, and it may be the long side of the image.
[0111]
Further, as a specific example, an example in which a CD label having a diameter of 12 cm, which is a typical recording medium, is produced and the output device 105 performs printing at a resolution of 600 dpi will be described. First, the number R of pixels included in the radius of the CD label is obtained.
R = 12/2 / 2.54 * 600 ≒ 1417 pixels
It is. Since the width of the thumbnail image is 160 pixels, about 1/9 of the CD radius is used as a guide, and an image drawn smaller than that is used when rendering. Thereby, the efficiency of rendering processing (label image creation processing) can be increased.
[0112]
In step S1004, the image processing apparatus decodes the main image for the t-th image. If the processing proceeds to step S1005, the image processing apparatus decodes the thumbnail image for the t-th image. In step S1006, the image processing apparatus performs an image rendering process using the decoded main image or thumbnail image. A specific algorithm of the rendering process (deformation process) is as described in the fifth embodiment.
[0113]
In step S1007, the image processing apparatus determines whether the variable t matches the number of drawn images Images. If they match (Yes in step S1007), the label image creation process ends. If they do not match (No in step S1007), the process advances to step S1008, and the image processing apparatus increments t by the value 1, and then returns to step S1002.
[0114]
In the ninth embodiment described above, the case where the sizes of the rendered images are different one by one as shown in FIG. 22 has been described. However, this is not the case, and all the images as shown in FIG. 17 have the same size. The same effect can be obtained even if it is used for drawing. However, if the layout is drawn in the same size, it is not necessary to determine whether to use a main image or a thumbnail image for each image, and it is only necessary to make a determination once at the beginning.
[0115]
In the ninth embodiment described above, the case where image data of two types of resolution (image size) is included as in the case of image data in the DCF format is not limited to this. For example, an image format that can be hierarchically decoded at a plurality of resolutions, such as image data such as the well-known Flashpix format or JPEG2000 format, is also suitable. Further, by using image data in a format capable of decoding image data having a plurality of resolutions (three or more), it is possible to determine the resolution of an image used for drawing more finely. Thereby, it is possible to further speed up the processing by decoding an image having the minimum necessary resolution.
[0116]
In the ninth embodiment described above, the thumbnail image or the main image is switched and decoded as necessary. However, the present invention is not limited to this, and the thumbnail image is decoded in advance and cached. Only the main image may be decoded as necessary. For example, thumbnail images are often used for other purposes, such as displaying images used for printing on a screen for the user to select from a plurality of images. May improve. Further, although the processing speed of thumbnail images is improved by caching, the memory usage increases, so there is a trade-off in the label image creation processing. Based on the above, an appropriate thumbnail image processing method according to the embodiment may be selected.
[0117]
In the ninth embodiment described above, the thumbnail image and the main image are switched based only on the size of the image drawing. However, this is not the only case, and the thumbnail image may not only have low resolution but also low image quality. is there. In other words, the image quality may not be suitable for printing. Specifically, when compressing a thumbnail image at a higher compression ratio than the main image, or when converting the resolution from the main image at the time of creating the thumbnail image, a simple Nearest-Neighbour method is used. This is because there is something to do. Therefore, when performing screen preview display or draft printing, the label image is created by switching between the thumbnail image and the main image as described above, and the label image using all the main image is created during actual printing. It may be.
[0118]
In the above-described embodiment, the created label image is printed on printable CD-R media using a consumer printer. However, the present invention is not limited to this, and is applicable to printing on a CD-ROM to be manufactured by pressing. May be. That is, the present invention is not limited to a CD-R, and can be equally applied to a generally circular disk medium such as a DVD-R.
[0119]
Further, the image processing apparatus (computer) shown in FIG. 1 has the function of the processing flow shown in FIG. 7, FIG. 10, FIG. 12, FIG. 14, FIG. Is realized by executing the program. For example, an image selection function is realized by a program stored in the CPU 101 and the primary storage 102, and processing for selecting a plurality of image data from the secondary storage 103 is performed. Further, the image placement function is realized by a program stored in the CPU 101 and the primary storage 102, and post-placement image data is generated in which a plurality of images based on the plurality of image data selected in the image selection process are arranged at equal intervals in a concentric manner. Perform the process.
[0120]
Further, the image processing apparatus (computer) shown in FIG. 1 has some functions of the processing flow shown in FIG. 7, FIG. 10, FIG. 12, FIG. 14, FIG. You may comprise the hardware for exclusive use which has. Further, the primary storage 102 and the secondary storage 103 included in the image processing apparatus of FIG. 1 are, for example, a non-volatile memory such as a hard disk device or a magneto-optical disk device, a recording medium that can only be read such as a CD-ROM, Alternatively, a computer-readable and writable recording medium based on a combination of these may be used.
[0121]
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Further, the “computer-readable recording medium” refers to a volatile memory (RAM) in a computer system serving as a server or a client when a program code is transmitted via a network such as the Internet or a communication line such as a telephone line. In addition, those that hold program code for a certain period of time are also included.
[0122]
The program code may be transmitted from a computer system storing the program code in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
The program code may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program code already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.
[0123]
A program product such as a computer-readable recording medium in which the above program code is recorded can also be applied as an embodiment of the present invention. The above program code, recording medium, transmission medium, and program product are included in the scope of the present invention.
The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes designs and the like that do not depart from the gist of the present invention.
[0124]
【The invention's effect】
  When images are concentrically arranged with respect to a circular label, the image size, arrangement interval, and the like can be automatically adjusted according to the number of selected images so as to fit in a circle.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a hardware configuration of an image processing apparatus according to a first embodiment of the present invention.
FIG. 2 is a flowchart showing a basic flow of an operation procedure by a user of the image processing apparatus according to the present embodiment.
FIG. 3 is a diagram illustrating an example of a print target image designation screen displayed by the image processing apparatus according to the present embodiment.
FIG. 4 is a diagram illustrating an example of a print target medium designation screen displayed by the image processing apparatus.
FIG. 5 is a diagram illustrating an example of a layout selection screen displayed by the image processing apparatus.
FIG. 6 is a diagram illustrating an example of a CD-R setting dialog screen displayed by the image processing apparatus.
FIG. 7 is a flowchart showing an automatic layout operation according to settings in the image processing apparatus.
FIG. 8 is a diagram showing a radius R of a CD-R, a width w of an image to be arranged, and an aspect of the image to be arranged when images are arranged in a circle without being overlaid.
FIG. 9 is a diagram showing the radius R of the CD-R, the width w of the image to be arranged, the aspect and angle of the image to be arranged when images are arranged in a circle without being overlaid.
FIG. 10 is a flowchart illustrating an automatic layout operation according to settings in the image processing apparatus according to the second embodiment.
FIG. 11 is a diagram showing a radius R of a CD-R, a width w of an image to be arranged, an aspect and an angle of the image to be arranged when an image is arranged so as to protrude beyond a circle without being overlaid.
FIG. 12 is a flowchart showing an automatic layout operation in the image processing apparatus according to the third embodiment;
FIG. 13 is a diagram illustrating a radius R of a CD-R, a width w of an image to be arranged, an aspect of the image to be arranged, and an angle when images are arranged in a circle in an overlapping manner.
FIG. 14 is a flowchart showing an automatic layout operation in the image processing apparatus according to the fourth embodiment;
FIG. 15 is a diagram showing the radius R of the CD-R, the width w of the image to be arranged, the aspect and angle of the image to be arranged when images are arranged so as to protrude from a circular shape.
FIG. 16 is a diagram showing the radius R of the CD-R, the width w of the image to be arranged, and the aspect of the image to be arranged when the image is arranged so as to protrude out of a circle.
FIG. 17 is a diagram illustrating an arrangement example of images according to the first to fourth embodiments.
FIG. 18 is a flowchart showing an automatic layout operation in the image processing apparatus according to the fifth embodiment;
FIG. 19 is a diagram illustrating a radius R of a CD-R, a width w of an image to be arranged, and an aspect of the image to be arranged when the image is arranged so as to protrude out of a circle.
FIG. 20 is a diagram illustrating a radius R of a CD-R, a width w of an image to be arranged, an aspect and an angle of the image to be arranged when images are arranged so as to protrude from a circle.
FIG. 21 is a diagram showing the radius R of the CD-R, the width w of the image to be arranged, the aspect and angle of the image to be arranged when images are arranged in multiple concentric circles.
FIG. 22 is a diagram illustrating an image arrangement example according to the fifth embodiment.
FIG. 23 is a flowchart showing an automatic layout operation in the image processing apparatus according to the sixth embodiment;
FIG. 24 is a diagram illustrating an arrangement example of images according to the sixth embodiment.
FIG. 25 is a flowchart showing the operation of automatic layout processing in the image processing apparatus of the seventh embodiment.
FIG. 26 is a diagram illustrating a spiral example in the case of an inner diameter r0, an outer diameter r1, and the number of spiral turns Rolls = 2.
FIG. 27 is a diagram illustrating an arrangement example of spiral images according to the seventh embodiment.
FIG. 28 is a flowchart showing the operation of automatic layout processing in the image processing apparatus of the eighth embodiment.
FIG. 29 is a diagram illustrating an image arrangement example in which 15 and 50 images are randomly arranged.
FIG. 30 is a flowchart showing automatic image layout processing in the image processing apparatus according to the ninth embodiment;
[Explanation of symbols]
101 CPU
102 Primary memory
103 Secondary memory
104 Input device
105 Output device

Claims (6)

複数の画像データを記憶する記憶手段と、
前記記憶手段より複数の前記画像データを選択する画像選択手段と、
前記画像選択手段で選択された複数の前記画像データを配置するパターンの種類を選択する配置パターン選択手段と、
予め定められた内径と外径に囲まれたドーナツ形内にランダムに画像を配置するパターンが選択された場合に、前記画像選択手段で選択された複数の前記画像データを、選択された画像データの数に応じてリサイズし、リサイズ後の画像である変形画像を配置した配置後画像データを生成する画像配置手段と、
を有し、
前記画像配置手段は、前記複数の画像の配置を、前記ドーナツ形の中心を原点とする極座標系で計算される位置と、画像の回転角度と、をランダムに決定することにより実行すると共に、配置する画像の大きさを、前記画像選択手段で選択された画像の枚数に応じて変更することを特徴とする画像処理装置。
Storage means for storing a plurality of image data;
Image selection means for selecting a plurality of the image data from the storage means;
An arrangement pattern selection means for selecting a type of pattern for arranging the plurality of image data selected by the image selection means;
When a pattern for randomly arranging images in a donut shape surrounded by a predetermined inner diameter and outer diameter is selected, a plurality of the image data selected by the image selection means are selected as the selected image data. Image placement means for resizing according to the number of images and generating post-placement image data in which a deformed image that is a resized image is placed;
Have
The image arrangement means executes the arrangement of the plurality of images by randomly determining a position calculated in a polar coordinate system with the center of the donut shape as an origin and an image rotation angle. An image processing apparatus, wherein the size of an image to be changed is changed according to the number of images selected by the image selection means.
前記画像配置手段は、アスペクト比を変えずに前記画像データの大きさを変更して、前記配置後画像データを生成することを特徴とする請求項1に記載の画像処理装置。  The image processing apparatus according to claim 1, wherein the image placement unit generates the post-placement image data by changing a size of the image data without changing an aspect ratio. 前記画像データが複数種類の解像度を有する場合に、前記画像配置手段によって配置される前記変形画像の解像度を特定する解像度特定手段を更に有し、
前記画像配置手段は、前記解像度特定手段で特定された前記解像度を有する画像データを用いて前記配置後画像データを生成することを特徴とする請求項1に記載の画像処理装置。
When the image data has a plurality of types of resolution, the image data further includes resolution specifying means for specifying the resolution of the deformed image arranged by the image arrangement means,
The image processing apparatus according to claim 1, wherein the image placement unit generates the post-placement image data using image data having the resolution specified by the resolution specification unit.
複数の画像データを記憶する記憶手段を有する画像処理装置における画像処理方法であって、前記画像処理装置が、
前記記憶手段より複数の前記画像データを選択する画像選択ステップと、
前記画像選択ステップで選択された複数の前記画像データを配置するパターンの種類を選択する配置パターン選択ステップと、
予め定められた内径と外径に囲まれたドーナツ形内にランダムに画像を配置するパターンが選択された場合に、前記画像選択ステップで選択された複数の前記画像データを、選択された画像データの数に応じてリサイズし、リサイズ後の画像である変形画像を配置した配置後画像データを生成する画像配置ステップと、
を有し、
前記画像配置ステップでは、前記複数の画像の配置を、前記ドーナツ形の中心を原点とする極座標系で計算される位置と、画像の回転角度と、をランダムに決定することにより実行すると共に、配置する画像の大きさを、前記画像選択ステップで選択された画像の枚数に応じて変更することを特徴とする画像処理方法。
An image processing method in an image processing apparatus having storage means for storing a plurality of image data, wherein the image processing apparatus comprises:
An image selection step of selecting a plurality of the image data from the storage means;
An arrangement pattern selection step for selecting a type of pattern for arranging the plurality of image data selected in the image selection step;
When a pattern for randomly arranging images in a donut shape surrounded by a predetermined inner diameter and outer diameter is selected, the plurality of image data selected in the image selection step are selected as the selected image data. An image placement step for generating post-placement image data in which a resized image is placed according to the number of the post-resize images,
Have
In the image arrangement step, the arrangement of the plurality of images is executed by randomly determining a position calculated in a polar coordinate system having the center of the donut shape as an origin and a rotation angle of the image. An image processing method, wherein the size of an image to be changed is changed according to the number of images selected in the image selection step.
前記画像配置ステップでは、アスペクト比を変えずに前記画像データの大きさを変更して、前記配置後画像データを生成することを特徴とする請求項4に記載の画像処理方法。Wherein the image placement step, by changing the size of the image data without changing the aspect ratio, the image processing method according to請Motomeko 4, characterized in that to generate the image data after the placement. 前記画像処理装置が、前記画像データが複数種類の解像度を有する場合に、前記画像配置ステップによって配置される前記変形画像の解像度を特定する解像度特定ステップを更に有し、
前記画像配置ステップでは、前記解像度特定ステップで特定された前記解像度を有する画像データを用いて前記配置後画像データを生成することを特徴とする請求項4に記載の画像処理方法。
The image processing apparatus further includes a resolution specifying step of specifying the resolution of the deformed image arranged by the image arranging step when the image data has a plurality of types of resolution.
5. The image processing method according to claim 4, wherein in the image placement step, the post-placement image data is generated using the image data having the resolution specified in the resolution specification step.
JP2003187178A 2003-06-30 2003-06-30 Image processing apparatus and image processing method Expired - Fee Related JP4323882B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2003187178A JP4323882B2 (en) 2003-06-30 2003-06-30 Image processing apparatus and image processing method
US10/874,538 US7522174B2 (en) 2003-06-30 2004-06-24 Image processing apparatus, image processing method, program for implementing image processing method, and recording medium recording program
CNB2004100626223A CN1312619C (en) 2003-06-30 2004-06-30 Image processing apparatus, image processing method, program for implementing image processing method, and recording medium recording program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003187178A JP4323882B2 (en) 2003-06-30 2003-06-30 Image processing apparatus and image processing method

Publications (3)

Publication Number Publication Date
JP2005025282A JP2005025282A (en) 2005-01-27
JP2005025282A5 JP2005025282A5 (en) 2006-08-10
JP4323882B2 true JP4323882B2 (en) 2009-09-02

Family

ID=34186109

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003187178A Expired - Fee Related JP4323882B2 (en) 2003-06-30 2003-06-30 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4323882B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007136702A (en) * 2005-11-15 2007-06-07 Seiko Epson Corp Printer
JP2010277647A (en) * 2009-05-28 2010-12-09 Sony Corp Printing device, printing method, and printing program

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5371562A (en) * 1993-06-02 1994-12-06 Eastman Kodak Company Stereoscopic disk and viewer and method of making
JP3416390B2 (en) * 1996-05-07 2003-06-16 シャープ株式会社 Drawing equipment
JP2000156777A (en) * 1998-11-20 2000-06-06 Canon Inc Image processor, image processing method, storage medium in which program is stored and transmitter for transmitting the program
JP2000155835A (en) * 1998-11-20 2000-06-06 Canon Inc Device and method for image processing, recording medium where program is recorded, and sending-out device for sending program out
JP2000284879A (en) * 1999-01-29 2000-10-13 Square Co Ltd Game device, command input method in video game and computer readable recording medium for recording program for providing the same method
JP4325075B2 (en) * 2000-04-21 2009-09-02 ソニー株式会社 Data object management device
JP2002133723A (en) * 2000-10-20 2002-05-10 Noritsu Koki Co Ltd Recording medium and recording device
JP2002290880A (en) * 2001-03-22 2002-10-04 Canon Inc Image processor, its control method and computer readable memory

Also Published As

Publication number Publication date
JP2005025282A (en) 2005-01-27

Similar Documents

Publication Publication Date Title
US7522174B2 (en) Image processing apparatus, image processing method, program for implementing image processing method, and recording medium recording program
JP5713279B2 (en) Image classification device, electronic album creation device, image classification method, and program
JP4795149B2 (en) Information processing apparatus, information processing method, program, and storage medium
JPH11328380A (en) Image processor, method for image processing and computer-readable recording medium where program allowing computer to implement same method is recorded
JP3861964B2 (en) Printer and image data processing method in the printer
JP2007042092A (en) Electronic document processing apparatus, method, and program
US9754350B2 (en) Systems and methods of automatic image sizing
JP2006094467A (en) Image processor and method, program, and storage medium
JP4338856B2 (en) Method and system for providing editing commands
US20030179928A1 (en) Image processing method and apparatus, storage medium, and program
JP2004012633A (en) List display of multiple images
JP7154822B2 (en) Program, image processing device, and control method
JP4865528B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP4323882B2 (en) Image processing apparatus and image processing method
US20040041819A1 (en) System and method for generating an image fulfillment order
JP2004282732A (en) Image layout on page
JP2006253994A (en) Image processing apparatus
US20070002339A1 (en) Image processing apparatus and image processing method
JP2019016951A (en) Image processing apparatus and image processing method
US11301975B2 (en) Apparatus, control method, and storage medium
JPH04304768A (en) Picture storage controller
JP5365537B2 (en) Information processing apparatus and information processing program
JP4323902B2 (en) Image layout device
JP2005025283A (en) Image processing device and method, and recording medium and program thereof
JP2006203752A (en) Image display device and display control program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060627

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060627

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081014

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090113

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090324

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090402

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

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

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120612

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130612

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees