JP4168938B2 - Image processing apparatus, image processing program, and image processing method - Google Patents
Image processing apparatus, image processing program, and image processing method Download PDFInfo
- Publication number
- JP4168938B2 JP4168938B2 JP2004013135A JP2004013135A JP4168938B2 JP 4168938 B2 JP4168938 B2 JP 4168938B2 JP 2004013135 A JP2004013135 A JP 2004013135A JP 2004013135 A JP2004013135 A JP 2004013135A JP 4168938 B2 JP4168938 B2 JP 4168938B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- area
- playback area
- digital image
- template
- 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
Links
- 238000012545 processing Methods 0.000 title description 35
- 238000003672 processing method Methods 0.000 title description 3
- 238000009966 trimming Methods 0.000 description 30
- 238000010586 diagram Methods 0.000 description 20
- 238000000034 method Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 7
- 238000012790 confirmation Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000004397 blinking Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
Images
Landscapes
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Description
本発明は画像処理装置、画像処理プログラム及び画像処理方法に関する。 The present invention relates to an image processing apparatus, an image processing program, and an image processing method.
ディジタル画像を印刷用紙やディスプレイなどの描画空間上に再生するレイアウトを定義するテンプレートが知られている。テンプレートには、具体的には例えば描画空間上の領域であってディジタル画像が割り付けられる再生領域を定義する情報、文字列が割り付けられる再生領域を定義する情報、再生領域の背景として再生されるディジタル画像(背景画像)を特定する情報などが定義されている。テンプレートは年賀状、誕生日、クリスマス、旅行などといったテーマに応じて予め用意され、ユーザはテンプレートを選択することによってディジタル画像を目的に応じたレイアウトで再生できる。 A template that defines a layout for reproducing a digital image on a drawing space such as a printing paper or a display is known. Specifically, the template includes, for example, information defining a reproduction area that is an area on the drawing space to which a digital image is allocated, information defining a reproduction area to which a character string is allocated, and digital that is reproduced as the background of the reproduction area Information for specifying an image (background image) is defined. Templates are prepared in advance according to themes such as New Year's cards, birthdays, Christmas, and travel, and the user can reproduce a digital image with a layout according to the purpose by selecting the template.
従来のテンプレートでは再生領域のアスペクト比が予め固定されている。このため再生領域に割り付けられるディジタル画像のアスペクト比と再生領域のアスペクト比とが一致しない場合、ディジタル画像を再生領域にどのように割り付けるかを何等かの方法で指定する必要がある。特許文献1にはディジタル画像のアスペクト比と再生領域のアスペクト比とが一致しない場合にどのように割り付けるかをテンプレート中に指定できる画像処理装置が開示されている。特許文献1に記載のプログラム編集装置(画像処理装置)では、ディジタル画像を再生領域に割り付ける方法をフィッティング規則として規定し、いずれかのフィッティング規則を設定プログラム(テンプレート)中に指定できるようにしている。
In the conventional template, the aspect ratio of the reproduction area is fixed in advance. For this reason, when the aspect ratio of the digital image assigned to the reproduction area does not match the aspect ratio of the reproduction area, it is necessary to specify how the digital image is assigned to the reproduction area by some method.
しかし、特許文献1のプログラム編集装置によると、再生の際にディジタル画像の一部が切り捨てられたり、再生領域に画像が割り付けられない領域が生じたりするという問題がある。ディジタル画像のアスペクト比と再生領域のアスペクト比とが一致しないとこのような問題が生じるため、ディジタル画像はそのアスペクト比が再生領域のアスペクト比に一致していることが望ましい。
However, according to the program editing apparatus of
トリミングを行うと任意のアスペクト比のディジタル画像を生成できる。この場合、ユーザがマウス操作でディジタル画像上のトリミング領域を選択できるようにすると、再生領域に割り付けられるトリミング領域(被再生領域)をユーザが自由に選択できる。
しかしながら、ユーザがマウス操作で被再生領域を選択する場合、再生領域のアスペクト比に一致するアスペクト比で被再生領域を選択することは容易ではない。
When trimming is performed, a digital image having an arbitrary aspect ratio can be generated. In this case, if the user can select the trimming area on the digital image by operating the mouse, the user can freely select the trimming area (reproduced area) allocated to the reproduction area.
However, when the user selects the playback area by operating the mouse, it is not easy to select the playback area with an aspect ratio that matches the aspect ratio of the playback area.
本発明は、かかる問題に鑑みて創作されたものであって、テンプレートで定義されている再生領域のアスペクト比と等しいアスペクト比の被再生領域を選択することを容易にする画像処理装置、画像処理プログラム及び画像処理方法を提供することを目的とする。 The present invention has been made in view of such a problem, and is an image processing apparatus and an image processing that make it easy to select a playback area having an aspect ratio equal to the aspect ratio of the playback area defined in the template. It is an object to provide a program and an image processing method.
上記目的を達成するため、本発明に係る画像処理装置は、ディジタル画像とディジタル画像が割り付けられる描画空間上の再生領域を定義する再生領域情報が格納されているテンプレートとを入力する入力手段と、前記入力手段により入力されたディジタル画像を表示する表示手段と、前記入力手段により入力されたテンプレートで定義されている再生領域の形状を表す枠を前記ディジタル画像上に表示し、前記枠を移動あるいは変形させて前記再生領域に割り付けられる被再生領域を選択するトリミング設定手段と、前記トリミング設定手段で選択された被再生領域に基づいて所定の処理を実行する処理手段と、を備えることを特徴とする。この画像処理装置によると、テンプレートで定義されている再生領域の形状を表す枠がディジタル画像上に表示されるため、テンプレートで定義されている再生領域のアスペクト比と等しいアスペクト比の被再生領域を容易に選択できる。 In order to achieve the above object, an image processing apparatus according to the present invention includes an input means for inputting a digital image and a template storing reproduction area information defining a reproduction area on a drawing space to which the digital image is allocated, Display means for displaying the digital image input by the input means, and a frame representing the shape of the reproduction area defined by the template input by the input means are displayed on the digital image, and the frame is moved or Trimming setting means for selecting a playback area to be deformed and allocated to the playback area; and processing means for executing a predetermined process based on the playback area selected by the trimming setting means, To do. According to this image processing apparatus, since a frame representing the shape of the playback area defined in the template is displayed on the digital image, a playback area having an aspect ratio equal to the aspect ratio of the playback area defined in the template is displayed. Easy to select.
さらに本発明に係る画像処理装置では、前記処理手段は、前記ディジタル画像を特定する情報と前記トリミング設定手段で選択された被再生領域を前記ディジタル画像の座標系で定義する被再生領域情報とを前記再生領域情報に関連付けて前記テンプレートに格納し、格納後の前記テンプレートを出力することを特徴とする。この画像処理装置によると、出力されたテンプレートに基づいて被再生領域を特定できるため、テンプレートとディジタル画像とを配布された側ではテンプレートに基づいて被再生領域を特定して再生領域に割り付けて再生することができる。この場合、トリミングされていないディジタル画像が配布されるため、配布された側では必要であればテンプレートを用いずディジタル画像の全体を再生することもできる。従って配布された側の利便性が向上する。 Further, in the image processing apparatus according to the present invention, the processing means includes information for specifying the digital image and playback area information for defining the playback area selected by the trimming setting means in the coordinate system of the digital image. The template is stored in the template in association with the reproduction area information, and the template after storage is output. According to this image processing apparatus, the playback area can be specified based on the output template. Therefore, on the side where the template and the digital image are distributed, the playback area is specified based on the template and assigned to the playback area for playback. can do. In this case, an untrimmed digital image is distributed, and the distributed side can reproduce the entire digital image without using a template if necessary. Therefore, the convenience of the distribution side is improved.
さらに本発明に係る画像処理装置では、前記再生領域情報は、ディジタル画像を再生する向きを定義する方向情報を更に含み、前記表示手段は、方向情報で定義されている向きに応じて前記ディジタル画像を回転させて表示することを特徴とする。この画像処理装置によると、方向情報に応じてディジタル画像を回転させるため、再生した際に縦横がずれてしまうことを防止できる。 Furthermore, in the image processing apparatus according to the present invention, the reproduction area information further includes direction information that defines a direction in which the digital image is reproduced, and the display means is configured to display the digital image according to the direction defined by the direction information. It is characterized by rotating and displaying. According to this image processing apparatus, since the digital image is rotated in accordance with the direction information, it is possible to prevent the vertical and horizontal shifts during reproduction.
さらに本発明に係る画像処理装置では、前記トリミング設定手段は、前記枠のアスペクト比を変更したとき、前記再生領域の全域に画像が割り付けられ且つ前記再生領域からはみ出す領域が最小になるように前記被再生領域が表す画像を拡大あるいは縮小した場合に前記再生領域からはみ出す前記画像上の領域をディジタル画像上で視認可能に表示することを特徴とする。この画像処理装置によると、再生領域の全域に画像が割り付けられ且つ再生領域からはみ出す領域が最小になるように被再生領域が表す画像を拡大あるいは縮小して割り付ける場合に、再生領域からはみ出す領域を再生前に確認できる。従って被再生領域を適切に選択できる。 Furthermore, in the image processing apparatus according to the present invention, the trimming setting unit is configured so that when the aspect ratio of the frame is changed, an image is assigned to the entire reproduction area and an area protruding from the reproduction area is minimized. When the image represented by the playback area is enlarged or reduced, the area on the image that protrudes from the playback area is displayed so as to be visible on the digital image. According to this image processing apparatus, when an image represented by a playback area is enlarged or reduced so that an image is allocated to the entire playback area and the area protruding from the playback area is minimized, the area protruding from the playback area is determined. Can be confirmed before playback. Therefore, it is possible to appropriately select the playback area.
さらに本発明に係る画像処理装置では、前記枠が所定の倍率以下まで縮小されると警告を発する警告手段を更に備えることを特徴とする。この画像処理装置によると、再生の際に被再生領域が過度に拡大されて画質が低下することを再生前に知ることができる。
さらに本発明に係る電子機器では、前記表示手段は、ディジタル画像と、前記再生領域を描画空間上に配置した状態を表すレイアウト画像とを同時に表示し、選択されている被再生領域が表す画像を前記レイアウト画像上の前記再生領域に合成表示することを特徴とする。この画像処理装置によると、再生領域に割り付けられた結果を確認しながら被再生領域を選択することができるため、被再生領域の選択が容易になる。
Furthermore, the image processing apparatus according to the present invention further includes warning means for issuing a warning when the frame is reduced to a predetermined magnification or less. According to this image processing apparatus, it is possible to know before reproduction that an area to be reproduced is excessively enlarged during reproduction and the image quality is lowered.
Furthermore, in the electronic device according to the present invention, the display means simultaneously displays a digital image and a layout image representing a state in which the reproduction area is arranged on the drawing space, and displays an image represented by the selected reproduction area. The composite image is displayed in the reproduction area on the layout image. According to this image processing apparatus, the playback area can be selected while confirming the result assigned to the playback area, so that the playback area can be easily selected.
尚、本発明に備わる複数の手段の各機能は、構成自体で機能が特定されるハードウェア資源、プログラムにより機能が特定されるハードウェア資源、又はそれらの組み合わせにより実現される。また、これら複数の手段の各機能は、各々が物理的に互いに独立したハードウェア資源で実現されるものに限定されない。
また、本発明は装置の発明として特定できるだけでなく、プログラムの発明としても、そのプログラムを記録した記録媒体の発明としても、方法の発明としても特定することができる。
The functions of the plurality of means provided in the present invention are realized by hardware resources whose functions are specified by the configuration itself, hardware resources whose functions are specified by a program, or a combination thereof. The functions of the plurality of means are not limited to those realized by hardware resources that are physically independent of each other.
The present invention can be specified not only as an apparatus invention but also as a program invention, a recording medium recording the program, and a method invention.
以下、本発明を実施するための最良の形態を実施例に基づいて説明する。
図2は、本発明の一実施例に係る画像処理装置としてのパーソナルコンピュータ(PC)1のハードウェア構成を示すブロック図である。PC1は、CPU11、ROM12、RAM13、操作部14、表示装置15、外部記憶装置16、及びデバイスインタフェース(I/F)17を備え、これらはバス18で相互に接続されている。操作部14はマウスやキーボードなどで構成され、トリミング設定手段として機能する。表示装置15はCRTやLCDなどのディスプレイやディスプレイコントローラなどで構成され、表示手段及び警告手段として機能する。入力手段としての外部記憶装置16はハードディスク、フレキシブルディスク、リムーバブルメモリ、CD−ROMなどの記録媒体を利用する記憶装置であり、記録媒体に記憶されているデータを読み込むことでデータを入力する。本実施例の外部記憶装置16はハードディスクを利用するものであり、ハードディスクにはオペレーティングシステム(OS)、画像処理プログラム、一つ以上のディジタル画像、一つ以上のテンプレート、その他各種のプログラムやデータなどが記憶されている。なお、ネットワークインタフェースを備え、通信ネットワークに接続されている所定のサーバから通信ネットワークを介してデータを入力するようにしてもよい。デバイスI/F17はRS−232C、USB、Bluetoothなどの通信規格に準拠して構成されており、プリンタ2に通信可能に接続されている。CPU11はROM12や外部記憶装置16に記憶されているプログラムを実行してPC1の全体を制御する。また、CPU11は外部記憶装置16に記憶されている画像処理プログラムを実行することで入力手段、表示手段、トリミング設定手段、処理手段、及び警告手段としても機能する。ROM12は各種のプログラムやデータを予め記憶しているメモリであり、RAM13は各種のプログラムやデータを一時的に記憶するメモリである。これら各種のプログラムやデータは所定のサーバから通信ネットワークを介してダウンロードして入力してもよいし、リムーバブルメモリ等のコンピュータ読み取り可能な記録媒体から読み出して入力してもよい。
Hereinafter, the best mode for carrying out the present invention will be described based on examples.
FIG. 2 is a block diagram showing a hardware configuration of a personal computer (PC) 1 as an image processing apparatus according to an embodiment of the present invention. The PC 1 includes a
次に、テンプレートについて説明する。
図3(A)はテンプレートを示す模式図であり、図3(B)はテンプレートで定義されている背景画像を示す模式図である。テンプレート21には、例えば描画空間のサイズ(例えば「ハガキ」)、描画空間の向きを規定する情報(例えば「縦長」)、ディジタル画像が割り付けられる描画空間上の再生領域を定義する再生領域情報(例えば右上座標「(X1,Y1)」と枠の左下座標「(X2,Y2)」)、ディジタル画像を再生する向きを定義する方向情報(例えば「縦」)、描画空間上の再生領域以外の領域に背景として割り付けられる背景画像を特定する情報(例えば「年賀状背景1.eff」)が格納されている。方向情報は再生領域情報に含まれているものとする。再生領域情報以外の情報についてはテンプレート21に含めるか否かは適宜選択可能である。なお、本実施例では矩形の再生領域を例に説明するが、再生領域の形状は数値で規定できる形状であれば任意の形状であってよく、例えば円、楕円、三角、菱形などであってもよい。
Next, the template will be described.
FIG. 3A is a schematic diagram showing a template, and FIG. 3B is a schematic diagram showing a background image defined by the template. The
次に、画像処理プログラムについて説明する。
図4は、画像処理プログラムの論理的な構成を示すブロック図である。画像処理プログラムは、表示部31、トリミング設定部32、警告部33、及び処理部34を備える。
表示部31は、ディジタル画像及びレイアウト画像を表示装置15に表示する処理などを行う。具体的には、トリミング設定画面41(図5参照)を表示装置15に表示する処理、外部記憶装置16に記憶されているディジタル画像を選択するためのメニューを表示する処理、選択されたディジタル画像をトリミング設定画面41に表示する処理、レイアウト確認画面42(図5参照)を表示装置15に表示する処理、外部記憶装置16に記憶されているテンプレートを選択するためのメニューを表示する処理、選択されたテンプレートを解釈してレイアウト画像を生成し、生成したレイアウト画像をレイアウト確認画面42に表示する処理などを行う。また、表示部31は、トリミング設定部32で被再生領域が選択されると、選択されている被再生領域が表す画像をレイアウト画像上の再生領域に合成表示する処理も行う。
Next, the image processing program will be described.
FIG. 4 is a block diagram showing a logical configuration of the image processing program. The image processing program includes a
The
図5は、表示部31によって表示される画面を示す模式図である。
トリミング設定画面41は、ディジタル画像43を表示する画像領域44と、各種のメニューが表示されるメニュー領域45とを備えている。メニュー領域45の[ファイル]メニューをマウスでクリックするとディジタル画像を選択するためのメニュー項目とテンプレートを選択するためのメニュー項目とを含むプルダウンメニューが表示され、ユーザは当該メニューをマウスで操作することによりディジタル画像及びテンプレートを選択できる。ディジタル画像を選択すると画像領域44に当該ディジタル画像43が表示される。テンプレートを選択するとレイアウト確認画面42が表示される。図5に示すトリミング設定画面41では、方向情報に「縦」が定義されている場合を示している。方向情報に「横」が定義されている場合はテンプレートが選択された時点でディジタル画像43は右90度回転されて横置きで表示される。方向情報に応じてディジタル画像を回転させると、再生した際に縦横がずれてしまうことを防止できる。
FIG. 5 is a schematic diagram showing a screen displayed by the
The
レイアウト確認画面42は、レイアウト画像領域46を備えている。レイアウト画像領域46には、トリミング設定画面41で選択したテンプレートに基づいて、再生領域を描画空間上に配置した状態を表すレイアウト画像47が表示される。
図4に示すトリミング設定部32は、選択されたテンプレートで定義されている再生領域の形状を表す枠をトリミング設定画面41に表示する処理、表示している枠を移動あるいは変形させて再生領域に割り付けられる被再生領域を選択する処理、枠のアスペクト比を変更したとき再生領域からはみ出す領域を視認可能に表示する処理などを行う。
The
The
図1は、再生領域の形状を表す枠を説明するための模式図である。選択されているテンプレートの再生領域情報に縦横比(アスペクト比)が例えば3:4の矩形の再生領域が定義されているとする。ここで縦横比とは縦幅(=Y2−Y1)と横幅(=X2−X1)との比のことをいう。この場合、表示部31はアスペクト比が3:4の矩形の枠48をディジタル画像43上に表示する。従って、表示直後の枠48はテンプレートで定義されている再生領域の形状を表していることになる。枠48を移動させる場合、ユーザは枠48にマウスポインタ51を合わせてマウスの左ボタンをクリックし、クリックしたままマウスを移動させる操作を行う。この操作が行われるとOSからトリミング設定部32へ当該操作に応じたイベントの発生が通知され、当該イベントが発生するとトリミング設定部32は枠48をマウスの移動量に応じて移動させる。これにより表示装置15上で枠48が移動する。枠48を変形させる場合、ユーザは所定のキーを押下した状態で移動と同じ操作を行う。この場合も当該操作に応じたイベントの発生が通知され、トリミング設定部32はマウスの移動量に応じて枠48を変形する。これによりマウスの移動量に応じて表示装置15上で枠48が変形する。枠48を変形させる場合、枠48の四隅にマウスポインタ51を合わせて操作が行われたときは枠48を縦横等倍に変形させる。この場合は枠48のアスペクト比は変化せず枠48は拡大あるいは縮小されることになる。一方、四隅以外の場合は縦横等倍ではなく枠48を任意のアスペクト比に変形させる。移動あるいは変形させた後の枠48で特定される領域がそのとき選択されている被再生領域となる。前述した表示部31は、トリミング設定部32によって被再生領域の選択が行われる度に選択されている被再生領域が表す画像をレイアウト画像47上の再生領域50に合成して表示する。なお、枠を回転させることを可能にしてもよいし、四角の枠を菱形にするような変形を可能にしてもよい。
FIG. 1 is a schematic diagram for explaining a frame representing the shape of the reproduction area. It is assumed that a rectangular playback area having an aspect ratio (aspect ratio) of, for example, 3: 4 is defined in the playback area information of the selected template. Here, the aspect ratio means the ratio of the vertical width (= Y2-Y1) to the horizontal width (= X2-X1). In this case, the
図6は、再生領域からはみ出す領域を視認可能に表示した状態を示す模式図である。前述したようにトリミング設定部32は枠48の変形も受け付けるため、ユーザによって枠48のアスペクト比が変更される場合がある。しかしながら、再生領域のアスペクト比は一定である。このため、枠48のアスペクト比を変更したとき被再生領域を再生領域にどのように割り付けるかを予め決めておく必要がある。例えば図6は枠48が縦長に変形された場合を示している。縦長の被再生領域を相対的に横長の再生領域に割り付ける場合、被再生領域の全体が再生されるように再生領域に割り付けて再生すると、再生領域において割り付けられた画像の右辺と再生領域の右辺との間、及び割り付けられた画像の左辺と再生領域の左辺との間に画像が割り付けられない領域が生じてしまう。そこで、本実施例では再生領域の全域に画像が割り付けられ且つ再生領域からはみ出す領域が最小になるように被再生領域が表す画像を拡大あるいは縮小して割り付けるものとする。具体的には、図6に示す例の場合であれば、被再生領域が表す画像の中心と再生領域の中心とが一致するように配置した状態で、被再生領域が表す画像の右辺が再生領域の右辺に、且つ被再生領域が表す画像の左辺が再生領域の左辺に重なるように縦横等倍に拡大、あるいは縮小して再生するものとする。このように再生すると被再生領域が表す画像の上側と下側とが再生領域からはみ出してしまうため被再生領域が表す画像の上側の一部と下側の一部とが再生されなくなるが、そのかわり再生領域の全体に画像を割り付けることができ、また、はみ出す領域を最小にできる。トリミング設定部32は、枠48のアスペクト比を変更したとき、再生領域からはみ出す領域をディジタル画像上で網掛け表示する。この結果、ユーザはアスペクト比を変更する操作を行ったとき、どの領域がはみ出すかを視認できる。従って再生領域からはみ出す領域を確認しながら枠48のアスペクト比を変更でき、アスペクト比を変更した場合の再生結果を再生を行うことなく知ることができる。レイアウト確認画面42の再生領域50には被再生領域が上述したように割り付けられて合成表示される。
FIG. 6 is a schematic diagram showing a state in which an area protruding from the reproduction area is displayed so as to be visible. As described above, since the
警告部33は、枠48が所定の倍率以下まで縮小されると警告を発する。選択された被再生領域が表す画像は再生時に拡大あるいは縮小されて再生領域に割り付けられる。その場合、拡大する倍率が大きすぎると再生したときの画質が著しく低下する。このため警告部33は、枠48が変形される度に拡大しなければならない倍率を計算し、ある倍率以上になるときは表示装置15に警告ダイアログを表示する。特許請求の範囲に記載の所定の倍率とは、表示直後の枠48の大きさと、被再生領域が表す画像を前述したある倍率以上に拡大しなければならなくなるまで縮小したときの枠48の大きさとの比のことをいう。例えば表示直後の枠48の面積を1とし、被再生領域が表す画像をある倍率以上に拡大しなければならなくなるまで枠48を縮小したときの面積を0.5とした場合、面積比で枠48の大きさが0.5倍以下まで縮小されると警告が表示されることになる。
The
図7は、警告部33が表示する警告ダイアログを示す模式図である。ユーザは図示する警告ダイアログ52が表示されることで再生時に画質が低下する可能性があることを再生する前に知ることができる。なお、例えば警告を案内する音声が録音された音声データを再生して警告してもよいし、枠48を点滅させて警告してもよい。警告の方法は適宜選択可能な設計事項である。
FIG. 7 is a schematic diagram showing a warning dialog displayed by the
処理部34は、トリミング設定部32で選択された被再生領域に基づいて所定の処理を実行する。本実施例の処理部34は、具体的には選択されたディジタル画像を特定する情報と、トリミング設定部32で選択された被再生領域をディジタル画像の座標系で定義する被再生領域情報とを、再生領域情報に関連付けて選択されたテンプレートに格納し、格納後のテンプレートを出力する。具体的には、格納後のテンプレートを外部記憶装置16に記憶させる。なお、ネットワークインタフェースを介して他の装置に送信することによって出力するようにしてもよい。
The
図8は、処理部34によって情報が格納されたテンプレートを示す模式図である。図示する例では、旅行01.jpgという画像が選択され、当該画像データが表すディジタル画像上において(P1,S1)を左上座標、(P2,S2)を右下座標とする矩形の領域が被再生領域として選択されたことを意味している。ここで(P1,S1)及び(P2,S2)はディジタル画像の座標系で定義される座標であり、描画空間の座標系で定義されているものではない。再生領域を定義する座標(X1,Y1)及び(X2,Y2)は描画空間の座標系で定義されている座標である。図8では、選択されたディジタル画像を特定する情報、被再生領域情報及び再生領域情報を”{”と”}”とで括ることで互いに関連付けている。選択されているディジタル画像を特定する情報と、被再生領域情報とを再生領域情報に関連付けてテンプレートに格納すると、被再生領域情報に基づいて画像データから被再生領域を切り出すことができるため、被再生領域をトリミングして一つのディジタル画像として記憶させる必要がない。このためファイルが複数にならず管理の手間を低減できる。また、例えばテンプレートと当該テンプレートで特定されるディジタル画像とを配布する場合、トリミングを行う前のディジタル画像を配布することになるため、配布される側ではテンプレートを用いずディジタル画像の全体を再生することも、テンプレートを用いて再生することもでき、配布される側の利便性が向上する。
FIG. 8 is a schematic diagram showing a template in which information is stored by the
次に、PC1の処理の流れについて説明する。
図9は、PC1の処理の流れを示すフローチャートである。
S105では、トリミング設定画面41を表示し、ディジタル画像の選択を受け付ける。
S110では、選択されたディジタル画像を表示する。
Next, the process flow of the
FIG. 9 is a flowchart showing a process flow of the
In S105, the
In S110, the selected digital image is displayed.
S115では、テンプレートの選択を受け付ける。
S120では、選択されたテンプレートで定義されている再生領域の形状を表す枠48をディジタル画像上に表示する
S125では、テンプレートを解釈してレイアウト確認画面42を表示する。この結果、ディジタル画像とレイアウト画像とが同時に表示される。
In S115, a template selection is accepted.
In S120, a
S130では、枠48を移動あるいは変形させる操作を受け付け、その操作に応じて枠48を移動あるいは変形させるとともに、選択された被再生領域が表す画像をレイアウト画像47上の再生領域50に合成表示する。
S135では、枠48の倍率を判定する。倍率が所定の倍率以下の時はS140に進む。所定の倍率より大きいときはS145に進む。
In S130, an operation for moving or deforming the
In S135, the magnification of the
S140では、警告を発してS130に戻る。
S145では、選択されたディジタル画像を特定する情報と、枠48を移動あるいは変形させることによって選択された被再生領域情報とを、再生領域情報に関連付けてテンプレートに格納し、格納後のテンプレートを外部記憶装置16に記憶させる。
In S140, a warning is issued and the process returns to S130.
In S145, the information specifying the selected digital image and the playback area information selected by moving or deforming the
次に、テンプレートに基づくディジタル画像の再生について説明する。再生はPC1の表示装置15に表示することによって行うようにしてもよいし、PC1に接続されているプリンタ2で印刷することによって行うようにしてもよい。また、テンプレートと当該テンプレートで特定されるディジタル画像とをパーソナルコンピュータやプリンタなどの他の装置に送信して当該他の装置で行うようにしてもよい。表示装置15に表示する場合は表示領域が描画空間に相当し、プリンタ2で印刷する場合は印刷用紙が描画空間に相当する。
Next, reproduction of a digital image based on the template will be described. The reproduction may be performed by displaying on the
図10(A)はテンプレートに基づくディジタル画像の再生を説明するための模式図であり、図10(B)は再生されたディジタル画像を示す平面図である。図10(A)及び図10(B)では図8に示すテンプレートに基づいて印刷する場合を示している。また、図10(A)の点Rはディジタル画像の座標系の原点を示しており、点Wは描画空間の座標系の原点を示している。テンプレートに基づいて印刷を行う場合、(P1,S1)及び(P2,S2)で特定される被再生領域をトリミングし、トリミングした被再生領域が表す画像を、ハガキ上の(X1,Y1)及び(X2,Y2)で特定される再生領域に印刷されるよう拡大あるいは縮小する。背景画像についても同様に拡大あるいは縮小し、それらを合成して合成画像を生成する。この合成では被再生領域が表す画像がハガキ上の再生領域(X1,Y1)及び(X2,Y2)に印刷されるよう位置決めして合成される。この結果、図10(B)に示すようにディジタル画像がテンプレートに基づいて印刷される。 FIG. 10A is a schematic diagram for explaining the reproduction of a digital image based on a template, and FIG. 10B is a plan view showing the reproduced digital image. 10A and 10B show a case where printing is performed based on the template shown in FIG. Further, a point R in FIG. 10A indicates the origin of the coordinate system of the digital image, and a point W indicates the origin of the coordinate system of the drawing space. When printing based on the template, the playback area specified by (P1, S1) and (P2, S2) is trimmed, and the image represented by the trimmed playback area is represented by (X1, Y1) and The image is enlarged or reduced so as to be printed in the reproduction area specified by (X2, Y2). Similarly, the background image is enlarged or reduced and synthesized to generate a synthesized image. In this composition, the image represented by the area to be reproduced is synthesized by positioning so as to be printed in the reproduction areas (X1, Y1) and (X2, Y2) on the postcard. As a result, a digital image is printed based on the template as shown in FIG.
以上説明した本発明の一実施例に係るPC1によると、テンプレートで定義されている再生領域のアスペクト比と等しいアスペクト比の枠48がディジタル画像上に表示されるため、テンプレートで定義されている再生領域のアスペクト比と等しいアスペクト比の被再生領域を容易に選択できる。
なお、本実施例ではディジタル画像を特定する情報と被再生領域情報とを再生領域に関連付けてテンプレートに格納する場合を例に説明したが、ディジタル画像を特定する情報と被再生領域情報とは必ずしもテンプレートに格納する必要はない。例えば被再生領域が選択されたとき、処理部34は選択されているディジタル画像と選択されている被再生領域と選択されているテンプレートとに基づいて印刷データを生成し、生成した印刷データをプリンタ2に出力して再生する処理を実行してもよい。ただし、この場合は再生を行う度に被再生領域を選択しなければならない。また、選択された被再生領域をトリミングして別のディジタル画像を作成し、当該ディジタル画像を特定する情報を再生領域情報に関連付けてテンプレートに格納するようにしてもよい。
According to the
In this embodiment, the case where the information for specifying the digital image and the playback area information are stored in the template in association with the playback area has been described as an example. However, the information for specifying the digital image and the playback area information are not necessarily the same. There is no need to store it in the template. For example, when the playback area is selected, the
また、本実施例では画像処理装置としてパーソナルコンピュータを例に説明したが、画像処理装置は、ディジタルカメラ、PDA、ディジタルカメラ付き携帯電話などであってもよいし、それら各装置とプリンタとで構成してもよい。 In this embodiment, a personal computer has been described as an example of the image processing apparatus. However, the image processing apparatus may be a digital camera, a PDA, a mobile phone with a digital camera, or the like, and includes each of these apparatuses and a printer. May be.
1 パーソナルコンピュータ(画像処理装置)、2 プリンタ、11 CPU(入力手段、表示手段、トリミング設定手段、処理手段、警告手段)、14 操作部(トリミング設定手段)、15 表示装置(表示手段、警告手段)、16 外部記憶装置(入力手段)、21 テンプレート、43 ディジタル画像、47 レイアウト画像、48 枠、50 再生領域
DESCRIPTION OF
Claims (7)
前記入力手段により入力されたディジタル画像を表示する表示手段と、
前記入力手段により入力されたテンプレートで定義されている再生領域の形状を表す枠を前記ディジタル画像上に表示し、前記枠を移動あるいは変形させて前記再生領域に割り付けられる被再生領域を選択するトリミング設定手段と、
前記トリミング設定手段で選択された被再生領域に基づいて所定の処理を実行する処理手段と、を備え、
前記トリミング設定手段は、前記枠のアスペクト比を変更して縦長の前記被再生領域を相対的に横長の前記再生領域に割り付けるとき、前記被再生領域が表す画像の中心と再生領域の中心とが一致する状態で、前記被再生領域が表す画像の右辺、左辺がそれぞれ前記再生領域の右辺、左辺に重なるように、前記被再生領域が表す画像を縦横等倍に拡大あるいは縮小し、
前記表示手段は、前記拡大あるいは縮小した場合に前記再生領域からはみ出す前記画像上の領域をディジタル画像上で視認可能に表示することを特徴とする画像処理装置。 Input means for inputting a digital image and a template storing reproduction area information defining a reproduction area on a drawing space to which the digital image is assigned;
Display means for displaying a digital image input by the input means;
Trimming for displaying a frame representing the shape of the reproduction area defined by the template input by the input means on the digital image, and selecting a reproduction area allocated to the reproduction area by moving or deforming the frame. Setting means;
Processing means for executing a predetermined process based on the playback area selected by the trimming setting means ,
The trimming setting means, when changing the aspect ratio of the frame and allocating the vertically long playback area to the relatively horizontally long playback area, the center of the image represented by the playback area and the center of the playback area are Enlarging or reducing the image represented by the region to be reproduced in the same size vertically or horizontally so that the right side and the left side of the image represented by the region to be reproduced overlap the right side and the left side of the reproduction region, respectively,
The image processing apparatus , wherein the display means displays an area on the image that protrudes from the reproduction area when the image is enlarged or reduced so as to be visible on a digital image .
ディジタル画像が割り付けられる描画空間上の再生領域を定義する再生領域情報が格納されているテンプレートを入力するテンプレート入力段階と、 A template input stage for inputting a template in which reproduction area information defining a reproduction area on a drawing space to which a digital image is assigned is stored;
前記画像入力段階で入力されたディジタル画像を表示する表示段階と、 A display step for displaying the digital image input in the image input step;
前記テンプレート入力段階で入力されたテンプレートで定義されている再生領域の形状を表す枠を前記ディジタル画像上に表示し、前記枠を移動あるいは変形させて前記再生領域に割り付けられる被再生領域を選択するトリミング設定段階と、 A frame representing the shape of the playback area defined by the template input in the template input stage is displayed on the digital image, and the playback area to be allocated to the playback area is selected by moving or deforming the frame. Trimming setting stage,
前記トリミング設定段階で選択された被再生領域に基づいて所定の処理を実行する処理段階と、をコンピュータに実行させる画像処理プログラムであって、 An image processing program for causing a computer to execute a predetermined process based on a playback area selected in the trimming setting stage,
前記枠のアスペクト比を変更して縦長の前記被再生領域を相対的に横長の前記再生領域に割り付けるとき、前記被再生領域が表す画像の中心と再生領域の中心とが一致する状態で、前記被再生領域が表す画像の右辺、左辺がそれぞれ前記再生領域の右辺、左辺に重なるように、前記被再生領域が表す画像を縦横等倍に拡大あるいは縮小し、 When the aspect ratio of the frame is changed and the vertically long playback area is assigned to the relatively horizontally long playback area, the center of the image represented by the playback area matches the center of the playback area, Enlarging or reducing the image represented by the playback area vertically and horizontally so that the right side and the left side of the image represented by the playback area overlap the right side and the left side of the playback area, respectively.
前記拡大あるいは縮小した場合に前記再生領域からはみ出す前記画像上の領域をディジタル画像上で視認可能に表示させることを特徴とする画像処理プログラム。 An image processing program for displaying an area on the image that protrudes from the reproduction area when the image is enlarged or reduced so as to be visible on a digital image.
ディジタル画像が割り付けられる描画空間上の再生領域を定義する再生領域情報が格納されているテンプレートを入力するテンプレート入力段階と、
前記画像入力段階で入力されたディジタル画像を表示する表示段階と、
前記テンプレート入力段階で入力されたテンプレートで定義されている再生領域の形状を表す枠を前記ディジタル画像上に表示し、前記枠を移動あるいは変形させて前記再生領域に割り付けられる被再生領域を選択するトリミング設定段階と、
前記トリミング設定段階で選択された被再生領域に基づいて所定の処理を実行する処理段階と、
を含み、
前記枠のアスペクト比を変更して縦長の前記被再生領域を相対的に横長の前記再生領域に割り付けるとき、前記被再生領域が表す画像の中心と再生領域の中心とが一致する状態で、前記被再生領域が表す画像の右辺、左辺がそれぞれ前記再生領域の右辺、左辺に重なるように、前記被再生領域が表す画像を縦横等倍に拡大あるいは縮小し、
前記拡大あるいは縮小した場合に前記再生領域からはみ出す前記画像上の領域をディジタル画像上で視認可能に表示させることを特徴とする画像処理方法。 An image input stage for inputting a digital image;
A template input stage for inputting a template in which reproduction area information defining a reproduction area on a drawing space to which a digital image is assigned is stored;
A display step for displaying the digital image input in the image input step;
A frame representing the shape of the playback area defined by the template input in the template input stage is displayed on the digital image, and the playback area to be allocated to the playback area is selected by moving or deforming the frame. Trimming setting stage,
A processing stage for executing a predetermined process based on the playback area selected in the trimming setting stage;
Only including,
When the aspect ratio of the frame is changed and the vertically long playback area is assigned to the relatively horizontally long playback area, the center of the image represented by the playback area matches the center of the playback area, Enlarging or reducing the image represented by the playback area vertically and horizontally so that the right side and the left side of the image represented by the playback area overlap the right side and the left side of the playback area, respectively.
An image processing method, wherein an area on the image that protrudes from the reproduction area when enlarged or reduced is displayed on a digital image so as to be visible .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004013135A JP4168938B2 (en) | 2004-01-21 | 2004-01-21 | Image processing apparatus, image processing program, and image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004013135A JP4168938B2 (en) | 2004-01-21 | 2004-01-21 | Image processing apparatus, image processing program, and image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2005208815A JP2005208815A (en) | 2005-08-04 |
| JP4168938B2 true JP4168938B2 (en) | 2008-10-22 |
Family
ID=34899309
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2004013135A Expired - Fee Related JP4168938B2 (en) | 2004-01-21 | 2004-01-21 | Image processing apparatus, image processing program, and image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4168938B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105453132A (en) * | 2013-08-15 | 2016-03-30 | 日本电气株式会社 | Information processing device and image processing method for performing image processing |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009065313A (en) * | 2007-09-05 | 2009-03-26 | Sharp Corp | Editing device and playback device |
-
2004
- 2004-01-21 JP JP2004013135A patent/JP4168938B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105453132A (en) * | 2013-08-15 | 2016-03-30 | 日本电气株式会社 | Information processing device and image processing method for performing image processing |
| CN105453132B (en) * | 2013-08-15 | 2019-04-05 | 日本电气株式会社 | Information processing apparatus and image processing method implementing image processing |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2005208815A (en) | 2005-08-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2010033551A (en) | Design editing apparatus, design editing method, and design editing program | |
| JPH11328380A (en) | IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE RECORDING MEDIUM RECORDING PROGRAM FOR CAUSING COMPUTER TO EXECUTE THE METHOD | |
| JP2004118477A (en) | Information processing apparatus and method, recording medium, and program | |
| JP2002111995A (en) | Image editing device and method and image print control device and method | |
| JP2012008884A (en) | Editing device, and layout editing method and program in editing device | |
| CN115438396A (en) | Package design method and device | |
| JP4200384B2 (en) | PRINT CONTROL DEVICE, PRINT CONTROL METHOD, PRINT CONTROL PROGRAM, MEDIUM RECORDING PRINT CONTROL PROGRAM, IMAGE PROCESSING DEVICE, IMAGE PROCESSING COMPUTER | |
| JP6759552B2 (en) | Information processing equipment and information processing programs | |
| JP4168938B2 (en) | Image processing apparatus, image processing program, and image processing method | |
| JP2006134230A (en) | Image editing device | |
| JP2010009167A (en) | Screen display device, screen display method, and screen display program | |
| JP2020074507A (en) | Information processing device, recording system, and program | |
| JP6690340B2 (en) | Information processing device and program | |
| JP4776998B2 (en) | Image layout editing apparatus, control method thereof, and program | |
| JP4123168B2 (en) | Image processing system, image processing method, template generation system, and template data structure | |
| JP6810719B2 (en) | Information processing equipment, recording systems, and programs | |
| JP2006140591A (en) | Image editing device | |
| JP2006331301A (en) | Image editing apparatus, image editing method, program, and storage medium | |
| JP7718509B2 (en) | Information processing device, layout support method, and support program | |
| JP2006065807A (en) | Procedure manual creation method and program | |
| KR102658042B1 (en) | Electronic device for developing data management software and method of operation thereof | |
| JP6675932B2 (en) | Image processing device | |
| JP2007172344A (en) | Image editing program and image editing apparatus | |
| JP2006134229A (en) | Image editing device | |
| JP5292662B2 (en) | Document display device, document display device control method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20051025 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20060815 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20061222 |
|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20061226 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20070403 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080422 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080620 |
|
| 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: 20080715 |
|
| 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: 20080728 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110815 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4168938 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120815 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130815 Year of fee payment: 5 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |