JP2007081805A - Device and method for processing image and program - Google Patents
Device and method for processing image and program Download PDFInfo
- Publication number
- JP2007081805A JP2007081805A JP2005266635A JP2005266635A JP2007081805A JP 2007081805 A JP2007081805 A JP 2007081805A JP 2005266635 A JP2005266635 A JP 2005266635A JP 2005266635 A JP2005266635 A JP 2005266635A JP 2007081805 A JP2007081805 A JP 2007081805A
- Authority
- JP
- Japan
- Prior art keywords
- image
- arrangement
- recording medium
- reference direction
- document images
- 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.)
- Pending
Links
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、複数の原稿画像を一つの記録媒体上に形成させるための、割付画像を生成する画像処理装置、画像処理方法及びプログラムに関する。 The present invention relates to an image processing apparatus, an image processing method, and a program for generating a layout image for forming a plurality of document images on a single recording medium.
プリンタや複写機などの画像形成装置に画像を形成させる場合に、複数の原稿画像を一つの記録媒体上に割り付けた割付画像として形成させる場合がある。具体的には、例えば2つの原稿画像を1枚の用紙に1行2列、又は2行1列で並べて印刷させたり、8つの原稿画像を1枚の用紙に2行4列、又は4行2列で並べて印刷させたりするなどである。 When an image is formed on an image forming apparatus such as a printer or a copying machine, a plurality of document images may be formed as assigned images allocated on one recording medium. Specifically, for example, two original images are printed in one row and two columns or two rows and one column on one sheet, or eight original images are arranged in two rows, four columns, or four rows on one sheet. For example, they are printed in two rows.
このような場合、ユーザは、一つの記録媒体上に形成させる原稿画像の数Nの指定のほか、配置指定情報(配置方向)と原稿画像の基準方向(割付方向)とを指定する。ここで、配置指定情報は、N個の原稿画像をどのような配置で記録媒体上に割り付けるかを表す情報であり、例えば記録媒体に対して左上から順に縦方向を優先して配置する「順縦方向」や、右上から順に横方向を優先して配置する「逆横方向」などにより指定する。また、原稿画像の基準方向は、それぞれの原稿画像を記録媒体に対して配置する際の基準となる向きを表し、縦長の原稿画像(縦原稿)と、横長の原稿画像(横原稿)のいずれの原稿画像の向きを優先するかによって決定する。
しかしながら、上記従来例の指定方法は、割付画像形成に独自の用語を用いた指定方法であるため、不慣れなユーザは形成される割付画像を予測することができず、分かり難い。また、原稿画像を配置する基準となる記録媒体の向きが、基準方向の指定によって自動的に変化してしまうため、ユーザにとって意図しない割付画像が形成される場合がある。特に近年では、画像形成装置の解像度、形成可能な媒体サイズなどの性能向上に伴い、16個や32個など多くの原稿画像を一つの記録媒体上に割り付ける場面も増加しており、このような状況下においては、上述した問題は顕著となる。 However, the designation method of the above-described conventional example is a designation method that uses unique terms for the allocation image formation, so that an inexperienced user cannot predict the allocation image to be formed and is difficult to understand. In addition, since the orientation of the recording medium serving as a reference for placing the document image automatically changes depending on the designation of the reference direction, an assigned image that is not intended for the user may be formed. Particularly in recent years, with the improvement in performance of image forming apparatuses such as resolution and formable medium size, the number of original images such as 16 or 32 has been increased on a single recording medium. Under circumstances, the above-mentioned problems become significant.
上記問題に対して、予めユーザの指定に基づいて形成される割付画像のイメージ画像を画面上に表示させ、ユーザに提示する技術がある(特許文献1参照)。しかしながら、この技術は例えばリナックス(商標)などのテキスト画面からユーザが画像形成の指定を行う場合には、適用できない。また、上述したように多くの原稿画像を一つの記録媒体上に割り付ける場合など、表示される割付画像のイメージ画像そのものが分かり難い場合もある。 In order to solve the above problem, there is a technique in which an image of an assigned image that is formed in advance based on user designation is displayed on a screen and presented to the user (see Patent Document 1). However, this technique cannot be applied when the user designates image formation from a text screen such as Linux (trademark). In addition, as described above, when many original images are allocated on a single recording medium, it may be difficult to understand the image of the displayed allocated image itself.
本発明は上記実情に鑑みてなされたものであって、その目的の一つは、割付画像を生成する場合に、ユーザにとって分かり易い指定方法で割付画像を生成できる画像処理装置、画像処理方法及びプログラムを提供することにある。 The present invention has been made in view of the above circumstances, and one of its purposes is an image processing apparatus, an image processing method, and an image processing apparatus that can generate an allocated image by a designation method that is easy for a user to generate when an allocated image is generated. To provide a program.
上記課題を解決するための本発明に係る画像処理装置は、複数の原稿画像を一つの記録媒体上に形成させるための、割付画像を生成する画像処理装置であって、前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得手段と、前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得手段と、前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成手段と、を含み、前記基準方向取得手段は、ユーザの指定する角度値により前記基準方向を取得することを特徴とする。 An image processing apparatus according to the present invention for solving the above-described problems is an image processing apparatus for generating a layout image for forming a plurality of document images on a single recording medium, wherein the plurality of document images Arrangement designation obtaining means for obtaining arrangement designation information representing arrangement on the recording medium; reference direction obtaining means for obtaining reference directions of the plurality of document images with respect to the recording medium; and the obtained arrangement designation information; Allocation image generation means for generating an allocation image based on the acquired reference direction, wherein the reference direction acquisition means acquires the reference direction based on an angle value specified by a user. .
これにより、本発明に係る画像処理装置は、原稿画像の基準方向を角度値により指定することができ、ユーザにとって分かり易い指定方法で割付画像を生成できる。 Thus, the image processing apparatus according to the present invention can designate the reference direction of the document image by the angle value, and can generate an assigned image by a designation method that is easy for the user to understand.
また、本発明に係る別の画像処理装置は、複数の原稿画像を一つの記録媒体上に形成させるための、割付画像を生成する画像処理装置であって、前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得手段と、前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得手段と、前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成手段と、を含み、前記配置指定取得手段は、ユーザの指定する、縦方向の配置方向パラメタ又は横方向の配置方向パラメタの少なくとも一方と、縦方向又は横方向のうち優先して配置する方向を表す優先方向パラメタと、により前記配置指定情報を取得することを特徴とする。 Another image processing apparatus according to the present invention is an image processing apparatus for generating an allocated image for forming a plurality of document images on a single recording medium, wherein the recording medium for the plurality of document images is provided. An arrangement designation obtaining unit for obtaining arrangement designation information representing an arrangement on the upper side, a reference direction obtaining unit for obtaining a reference direction of the plurality of document images with respect to the recording medium, the obtained arrangement designation information, and the obtained A layout image generation means for generating a layout image based on a reference direction, wherein the layout designation acquisition means is at least one of a vertical layout direction parameter and a horizontal layout direction parameter specified by a user And the arrangement designation information is obtained by a priority direction parameter indicating a direction to be arranged with priority in the vertical direction or the horizontal direction.
これにより、本発明に係る画像処理装置は、配置指定情報を配置方向パラメタと優先方向パラメタにより指定することができ、ユーザにとって分かり易い指定方法で割付画像を生成できる。 Thereby, the image processing apparatus according to the present invention can specify the arrangement designation information by the arrangement direction parameter and the priority direction parameter, and can generate an assigned image by a designation method that is easy for the user to understand.
また、本発明に係る別の画像処理装置は、複数の原稿画像を一つの記録媒体上に形成させるための、割付画像を生成する画像処理装置であって、前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得手段と、前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得手段と、前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成手段と、を含み、前記基準方向取得手段は、ユーザの指定する角度値により前記基準方向を取得し、前記配置指定取得手段は、ユーザの指定する、縦方向の配置方向パラメタ又は横方向の配置方向パラメタの少なくとも一方と、縦方向又は横方向のうち優先して配置する方向を表す優先方向パラメタと、により前記配置指定情報を取得することを特徴とする。 Another image processing apparatus according to the present invention is an image processing apparatus for generating an allocated image for forming a plurality of document images on a single recording medium, wherein the recording medium for the plurality of document images is provided. An arrangement designation obtaining unit for obtaining arrangement designation information representing an arrangement on the upper side, a reference direction obtaining unit for obtaining a reference direction of the plurality of document images with respect to the recording medium, the obtained arrangement designation information, and the obtained An allocation image generation unit that generates an allocation image based on a reference direction, the reference direction acquisition unit acquires the reference direction based on an angle value specified by a user, and the arrangement specification acquisition unit includes: At least one of a vertical direction parameter or a horizontal direction parameter specified by the user, and a priority direction parameter indicating a direction to be preferentially arranged in the vertical direction or the horizontal direction, Ri and acquires the arrangement-designating information.
また、本発明に係る画像処理方法は、コンピュータを用いて、複数の原稿画像を一つの記録媒体上に形成させるための、割付画像を生成する画像処理方法であって、前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得ステップと、前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得ステップと、前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成ステップと、を含み、前記基準方向取得ステップは、ユーザの指定する角度値により前記基準方向を取得することを特徴とする。 An image processing method according to the present invention is an image processing method for generating an allocated image for forming a plurality of document images on a single recording medium using a computer, wherein the plurality of document images are generated. An arrangement designation obtaining step for obtaining arrangement designation information representing an arrangement on the recording medium; a reference direction obtaining step for obtaining a reference direction of the plurality of document images with respect to the recording medium; and the obtained arrangement designation information; A layout image generation step of generating a layout image based on the acquired reference direction, wherein the reference direction acquisition step acquires the reference direction based on an angle value specified by a user. .
また、本発明に係るプログラムは、コンピュータに、複数の原稿画像を一つの記録媒体上に形成させるための、割付画像を生成させるプログラムであって、前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得手段、前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得手段、及び前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成手段、として前記コンピュータを機能させ、前記基準方向取得手段は、ユーザの指定する角度値により前記基準方向を取得することを特徴とする。 A program according to the present invention is a program for generating a layout image for causing a computer to form a plurality of document images on a single recording medium, wherein the plurality of document images are recorded on the recording medium. Arrangement designation obtaining means for obtaining arrangement designation information representing arrangement, reference direction obtaining means for obtaining reference directions of the plurality of document images with respect to the recording medium, the obtained arrangement designation information, the obtained reference direction, Based on the above, the computer is made to function as an allocated image generating unit that generates an allocated image, and the reference direction acquiring unit acquires the reference direction based on an angle value designated by a user.
以下、本発明の好適な実施の形態について、図面を参照しながら説明する。 Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.
本発明の実施の形態に係る画像処理装置10は、例えばパーソナルコンピュータ等であって、図1に示すように、制御部11、記憶部12、操作部13、表示部14及びインタフェース部15を含んで構成されている。
An
ここで、制御部11は、例えばCPU等であり、記憶部12に格納されているプログラムに従って動作する。特に本実施の形態においては、制御部11は複数の原稿画像に基づいて、割付画像を生成する処理を行う。制御部11が実行する処理の内容については、後に詳しく述べる。
Here, the
記憶部12は、RAMやROM等のメモリ素子とディスクデバイス等との少なくとも一方を含んで構成されている。この記憶部12には、制御部11によって実行されるプログラムや本実施の形態において処理の対象となる原稿画像データが格納される。また、記憶部12は、制御部11のワークメモリとしても動作する。
The
操作部13は、例えばキーボードやマウス等であり、ユーザの指示操作を受け付けて、当該指示操作の内容を制御部11に出力する。表示部14は、例えばディスプレイ等であり、制御部11からの指示に従って、情報の表示を行う。
The
インタフェース部15は、双方向にデータ通信可能なケーブル等を介して画像形成装置20に接続されており、画像形成装置20に対して画像形成の指示などを出力する。なお、本実施の形態に係る画像処理装置10は、画像形成装置20と一体に構成されていてもよく、この場合インタフェース部15はなくともよい。
The
画像形成装置20は、例えばプリンタなどであって、画像処理装置10からの指示に基づいて、紙などの記録媒体上に画像を形成する。
The
以下、画像処理装置10の制御部11が実行する処理について、図2のフロー図に基づいて説明する。なお、以下の説明においては、具体例として、図3に示すように縦原稿と横原稿の混在する原稿画像I0からI7までの8つの原稿画像に基づいて、2行4列又は4行2列に並べた割付画像を生成する場合の例について説明する。
Hereinafter, processing executed by the
まず、制御部11は、操作部13からユーザの画像形成指示を受け付ける(S1)。画像形成指示には、画像形成の対象となる原稿画像の指定、複数の原稿画像を割り付けた割付画像を形成する旨の指定、1つの割付画像に割り付けられる原稿画像の数Nの指定、及び配置指定情報と原稿画像の基準方向の指定が含まれているものとする。
First, the
ここでは、配置指定情報として、順縦、順横、逆縦、逆横のいずれかを指定する。それぞれの配置指定情報を指定した場合の記録媒体に対する原稿画像の配置は、以下のようになる。すなわち、順縦の場合、記録媒体の左上から順に、縦方向を優先して配置する。順横の場合、やはり左上から順に、横方向を優先して配置する。逆縦の場合、記録媒体の右上から順に、縦方向を優先して配置する。逆横の場合、記録媒体の左上から開始して横方向を優先して配置する。具体的に、例えば4個の原稿画像を2行2列で配置する場合の、それぞれの指定に応じた配置の例は、図4に示す通りである。なお、この図の例においては、従来の方法により基準方向を縦原稿優先又は横原稿優先で指定した場合の例について示しているが、本実施の形態においては、以下に説明するように基準方向を異なる方法で指定する。 Here, one of forward vertical, forward horizontal, reverse vertical, and reverse horizontal is designated as the arrangement designation information. The arrangement of the original image on the recording medium when the respective arrangement designation information is designated is as follows. In other words, in the case of the vertical direction, the vertical direction is preferentially arranged in order from the upper left of the recording medium. In the case of forward horizontal, the horizontal direction is also given priority in order from the upper left. In the case of reverse vertical, the vertical direction is preferentially arranged in order from the upper right of the recording medium. In the case of reverse horizontal, the horizontal direction is preferentially arranged starting from the upper left of the recording medium. Specifically, for example, when four document images are arranged in two rows and two columns, an example of arrangement according to each designation is as shown in FIG. In the example of this figure, an example is shown in which the reference direction is designated with the vertical document priority or the horizontal document priority by the conventional method, but in this embodiment, the reference direction is described as described below. Are specified differently.
本実施の形態においては、原稿画像の記録媒体に対する基準方向を、角度値により指定する。具体的に、角度値は、0度、90度、180度、270度といった90度単位の値で指定する。また、負の角度値を指定できることとしてもよい。 In the present embodiment, the reference direction of the document image with respect to the recording medium is designated by an angle value. Specifically, the angle value is specified by a value in units of 90 degrees such as 0 degrees, 90 degrees, 180 degrees, and 270 degrees. It is also possible to specify a negative angle value.
次に、制御部11は、配置指定情報を配置方向パラメタ及び優先方向パラメタに変換する(S2)。ここで、縦方向の配置方向パラメタDxは、記録媒体の縦方向について、上向き又は下向きのいずれの向きに配置していくかを表し、横方向の配置方向パラメタDyは、記録媒体の横方向について、右向き又は左向きのいずれの向きに配置していくかを表すパラメタである。また、優先方向パラメタPは、縦方向又は横方向のいずれを優先して配置するかを表すパラメタである。
Next, the
具体的に、配置方向パラメタ及び優先方向パラメタは例えば以下のようになる。すなわち、S1の処理において配置指定情報として順縦を指定した場合、縦方向の配置方向パラメタDx=+1、横方向の配置方向パラメタDy=+1、優先方向パラメタP=Yとなる。以下、順横の場合、Dx=+1、Dy=+1、P=X、逆縦の場合、Dx=−1、Dy=+1、P=Y、逆横の場合、Dx=−1、Dy=+1、P=Xとなる。ここで、縦方向の配置方向パラメタについては正の値が下向きを表し、負の値が上向きを表している。一方、横方向の配置方向パラメタについては、正の値が右向き、負の値が左向きを表している。また、優先方向パラメタについては、Xが横方向を優先することを表し、Yが縦方向を優先することを表す。 Specifically, for example, the arrangement direction parameter and the priority direction parameter are as follows. That is, when the forward / vertical direction is designated as the placement designation information in the processing of S1, the placement direction parameter Dx = + 1 in the vertical direction, the placement direction parameter Dy = + 1 in the horizontal direction, and the priority direction parameter P = Y. Hereinafter, Dx = + 1, Dy = + 1, P = X, reverse vertical, Dx = -1, Dy = + 1, P = Y, reverse horizontal, Dx = -1, Dy = + 1 , P = X. Here, with respect to the vertical direction parameter, a positive value indicates downward and a negative value indicates upward. On the other hand, for the horizontal direction parameter, a positive value indicates rightward and a negative value indicates leftward. As for the priority direction parameter, X represents that priority is given to the horizontal direction, and Y represents that priority is given to the vertical direction.
なお、ここでは、順縦、順横などの指定に基づいて、配置方向パラメタ及び優先方向パラメタを決定することとしたが、ユーザが直接配置方向パラメタ又は優先方向パラメタの少なくとも一方を指定できることとしてもよい。この場合、制御部11は、S1の処理において順縦、順横などの指定に代えて、配置方向パラメタ、優先方向パラメタをユーザの指定に基づいて取得し、取得したパラメタについてはS2の処理は行わない。ここで、指定を省略したパラメタについては標準設定値(デフォルト値)を用いることとしてもよい。これにより、順縦、順横などの指定に不慣れなユーザも、実際に画像形成装置が配置位置決定処理に用いるパラメタを使って配置指定情報を指定することができ、ユーザにとって分かり易い。また、配置指定情報として順縦、順横、逆縦、逆横のいずれかを指定する場合、縦方向の配置方向パラメタは常に+1となるが、配置方向パラメタを直接指定する方法によれば、例えばDy=−1などの指定を行うこともでき、自由度の高い指定をすることができる。なお、ここでは、1を単位として配置方向パラメタを+1又は−1のいずれかで指定したが、方向を指定可能な他のパラメタを用いてもよい。同様に、優先方向パラメタについても、例えば縦方向及び横方向に対応する数値などを用いて指定してもよい。
In this example, the placement direction parameter and the priority direction parameter are determined based on the designation of forward / vertical, forward / horizontal, etc., but the user may directly designate at least one of the placement direction parameter or the priority direction parameter. Good. In this case, the
続いて、制御部11は、各原稿画像の割付画像上の配置、向き及び大きさを決定する(S3)。制御部11は、各原稿画像に対して直接回転、拡大又は縮小などの画像処理を行い、割付画像上に配置することとしてもよいが、ここではまず各原稿画像の属性情報を取得し、この属性情報を決定した各原稿画像の配置、向き及び大きさに基づいて更新し、当該更新された属性情報に基づいて最終的に割付画像生成処理を行うこととする。これにより、拡大、縮小などの画像処理に要する時間に応じて処理の順序を選択するなど、柔軟に割付画像生成処理を実行することができる。
Subsequently, the
具体的に、制御部11は、生成しようとする割付画像上の原稿画像を割り付ける割付領域のうち、どの位置にどの原稿画像が割り付けられるか、及び割り付けられる際の原稿画像の向き及び大きさを決定する。ここで、例えば8個の原稿画像を割り付ける割付画像上の割付領域は、図5に示す例のようになる。図5に示される割付領域A0からA7までの各割付領域に対して、後述する処理により決定したいずれかの原稿画像を向き及び大きさを変化して割り付けることにより、順縦や逆横など任意の配置指定情報に応じた割付画像を生成できる。
Specifically, the
以下、S3の処理の詳細について説明する。制御部11は、S3の処理においてまず各原稿画像の属性情報を取得する。ここで、属性情報は、例えば図6に表されるように、原稿画像の幅及び高さ、割付画像上の原稿画像の幅及び高さ、割付画像上の原稿画像の向き、割付画像上の原稿画像の位置を表す情報及び原稿画像データへのポインタを含んでいる。制御部11は、S3の処理において、これらのうち、割付画像上の原稿画像の幅、高さ、向き及び位置を表す情報をそれぞれ決定する。
Details of the process of S3 will be described below. In the process of S3, the
原稿画像の属性情報のうち、割付画像上の原稿画像の位置については、配置方向パラメタ及び優先方向パラメタに基づいて決定する。具体的に、制御部11は、後に説明する処理により、各原稿画像がどの割付領域に割り付けられるかを決定する。そして、当該割付領域の情報と、画像形成要求に含まれる、又は予め定められている各原稿画像間のマージンや記録媒体の周囲の余白、及び原稿画像の拡縮率などの情報に基づいて、各原稿画像の割付画像上の位置を決定する。
Of the attribute information of the document image, the position of the document image on the allocated image is determined based on the arrangement direction parameter and the priority direction parameter. Specifically, the
次に、原稿画像の属性情報のうち、割付画像上の原稿画像の向きについては、以下のようにして決定する。すなわち、制御部11は、S1の処理により原稿画像の基準方向として指定された角度値に基づいて、所定方向(例えば時計回り)に原稿画像を回転させた向きに、割付画像上の原稿画像の向きを仮決定する。そして、所定の条件によって、原稿画像の向きをさらに所定の角度だけ回転させる向きとして、割付画像上の原稿画像の向きを決定する。
Next, among the attribute information of the document image, the orientation of the document image on the allocated image is determined as follows. That is, the
具体的に、例えば基準方向として指定された角度値に基づいて回転させた後の原稿画像の縦横比が割付領域の縦横比と一致する場合は、仮決定した向きをそのまま最終的に割付画像上の原稿画像の向きとして決定する。一方、縦横比が一致しない場合、すなわち、例えば回転後の原稿画像が横長であり、割付領域が縦長であるなどの場合、仮決定した向きをさらに90度回転させる向きに、割付画像上の原稿画像の向きを決定する。これにより、原稿画像の縦横比は割付領域の縦横比に一致する。また、制御部11は、仮決定した向きをさらに90度回転させる向きではなく、−90度回転させる向きに決定してもよい。あるいは、縦横比が一致しない場合に、原稿画像をさらに回転させることはせずに、原稿画像の拡大又は縮小により割付領域に原稿画像全体が含まれるように、後述する割付画像上の原稿画像の幅及び高さを決定することとしてもよい。
Specifically, for example, when the aspect ratio of the original image after being rotated based on the angle value designated as the reference direction matches the aspect ratio of the assigned area, the tentatively determined direction is finally applied to the assigned image as it is. Is determined as the orientation of the original image. On the other hand, when the aspect ratios do not match, that is, for example, when the rotated original image is horizontally long and the assigned area is vertically long, the original on the assigned image is rotated by 90 degrees in the tentatively determined direction. Determine the orientation of the image. Thereby, the aspect ratio of the document image matches the aspect ratio of the allocated area. The
原稿画像の属性情報のうち、割付画像上の原稿画像の幅及び高さについては、割付領域の幅及び高さに応じて、当該領域に原稿画像全体が含まれるように割付画像上の原稿画像の幅及び高さを決定する。ここで、制御部11は、画像形成要求に含まれる、又は予め定められている各原稿画像間のマージンや記録媒体の周囲の余白、及び原稿画像の拡縮率などの情報を考慮して、原稿画像の幅及び高さを決定する。
Of the attribute information of the document image, the width and height of the document image on the layout image are determined so that the entire document image is included in the area according to the width and height of the layout area. Determine the width and height. Here, the
次に、制御部11は、S3の処理により決定した各原稿画像の割付画像上の幅、高さ、向き及び位置を表す情報に基づいて、原稿画像の拡大、縮小、回転などの画像変換処理を行い、割付画像を生成する(S4)。
Next, the
具体的に、まず制御部11は、S3で決定した向きに各原稿画像を回転させ、S3で決定した幅及び高さに各原稿画像を拡大又は縮小するサイズ変更を行う。ここで、回転の処理とサイズ変更の処理の順序は、サイズ変更が拡大か縮小かに応じて、入れ替えることとしてもよい。例えば、拡大する場合には回転の処理の後に拡大の処理を行い、縮小する場合には縮小の処理の後に回転の処理を行う。これにより、制御部11は、回転の処理を画像のサイズが小さい状態で行うことで、画像処理の効率化を図ることができる。続いて、制御部11は、S3で決定した位置の情報に基づいて、画像処理を施した各原稿画像を所定の位置に配置した割付画像を生成する。
Specifically, first, the
ここで、制御部11は、画像形成要求に含まれる形成画像の属性の指定に基づいて、各原稿画像の属性を変換する画像処理を併せて実行することとしてもよい。すなわち、例えばユーザが白黒での画像形成を指定した場合において、原稿画像がカラー画像である場合には、原稿画像を白黒画像に変換する処理を行う。
Here, the
また、画像形成要求に台紙画像の指定が含まれている場合や、所定の台紙画像を用いることが予め画像処理装置10に対して設定されている場合、制御部11は台紙画像と各原稿画像を合成することにより、割付画像を生成する。これにより、画像処理装置10は、台紙画像上に複数の原稿画像が割り付けられた割付画像を生成することができる。
When the image formation request includes designation of a mount image, or when the use of a predetermined mount image is set in advance for the
以上の処理により、画像処理装置10は、割付画像を生成し、生成した割付画像を画像形成装置10に形成させる。これにより、ユーザは配置指定情報と基準方向を表す角度値の指定に基づいて、割付画像を得ることができる。
Through the above processing, the
次に、前述したS3の処理において、各原稿画像が割付画像上のどの配置領域に配置されるかを決定する配置決定処理について、図7のフロー図に基づいて説明する。この配置決定処理においては、具体的に原稿画像I0からI7までが、それぞれ割付画像上の割付領域A0からA7までのどの割付領域に割り付けられるかを決定する。以下では、割付領域A0からA7までのインデックスを0から7までの数値とし、それぞれの原稿画像が割り付けられる割付領域のインデックスを求める。 Next, an arrangement determining process for determining in which arrangement area each original image is arranged in the assigned image in the process of S3 described above will be described based on the flowchart of FIG. In this arrangement determination process, specifically, it is determined to which of the allocation areas A0 to A7 on the allocation image the original images I0 to I7 are allocated. In the following, the index from the allocation area A0 to A7 is set to a numerical value from 0 to 7, and the index of the allocation area to which each original image is allocated is obtained.
まず、制御部11は、原稿画像の基準方向に基づいて、S2の処理により決定した配置方向パラメタ及び優先方向パラメタの変換を行う(S11)。これは、ユーザから見た割付画像上の配置を表す各パラメタを、制御部11が実際に割付画像を生成する際の配置である図5に表される割付領域の配置に合わせて変換する処理である。
First, the
具体的に、前述したように配置方向パラメタDx及びDyを+1又は−1で表している場合、変換後の配置方向パラメタDx′及びDy′は、以下の式により表される。
また、優先方向パラメタPについては、基準方向を表す角度値が0度、180度といったθ=180×n(nは整数)で表される値の場合、変換後の優先方向パラメタP′は変換前のパラメタに一致する。一方、基準方向を表す角度値が90度、270度といったθ=180×n+90(nは整数)で表される値の場合、変換後の優先方向パラメタP′は、P=Xの場合P′=Y、P=Yの場合P′=Xとなり、変換前と逆になる。 As for the priority direction parameter P, when the angle value representing the reference direction is a value represented by θ = 180 × n (n is an integer) such as 0 degrees and 180 degrees, the converted priority direction parameter P ′ is converted. Matches the previous parameter. On the other hand, when the angle value representing the reference direction is a value represented by θ = 180 × n + 90 (n is an integer) such as 90 degrees and 270 degrees, the priority direction parameter P ′ after conversion is P ′ when P = X. When Y = Y and P = Y, P ′ = X, which is the reverse of that before conversion.
次に、制御部11は、起点インデックスSIを求める(S12)。起点インデックスは、割付領域のうち、1番目の原稿画像である原稿画像I0を配置する割付領域のインデックスである。
Next, the
具体的に、制御部11は、以下のようにしてSIを求める。すなわち、まず横方向の起点位置SxをDx′の正負に基づいて決定する。Dx′が正の値の場合、Sx=0となり、Dx′が負の値の場合、Sx=L−1となる。ここで、Lは横方向の割付領域の数を表し、前述した図5の例においてはL=4である。
Specifically, the
次に、縦方向の起点位置SyをDy′の正負に基づいて決定する。Dy′が正の値の場合、Sy=0となり、Dy′が負の値の場合、Sy=K−1となる。ここで、Kは縦方向の割付領域の数を表し、前述した図5の例においてはK=2である。 Next, the starting position Sy in the vertical direction is determined based on the sign of Dy ′. When Dy ′ is a positive value, Sy = 0, and when Dy ′ is a negative value, Sy = K−1. Here, K represents the number of allocation areas in the vertical direction, and K = 2 in the example of FIG. 5 described above.
以上により求めたSxとSyから、計算式SI=Sy×L+SxによりSIの値が求められる。具体的に、例えば前述した順縦を指定した例の場合、Dx′=−1、Dy′=1であるから、Sx=3、Sy=0となり、SI=3である。この場合、最初の原稿画像I0を配置する位置は、割付領域A3となり、図5における割付画像の右上になることが分かる。 From the Sx and Sy obtained as described above, the SI value is obtained by the calculation formula SI = Sy × L + Sx. Specifically, for example, in the case of specifying the above-described forward / vertical direction, since Dx ′ = − 1 and Dy ′ = 1, Sx = 3, Sy = 0, and SI = 3. In this case, it can be seen that the position where the first document image I0 is arranged is the allocation area A3, which is at the upper right of the allocated image in FIG.
続いて、制御部11は、各原稿画像を割り付ける割付領域のインデックスを求めるループ処理において用いる変数である、インデックス変化量dx及びdyと、ループ回数tc及びtrとを求める(S13)。具体的に、これらの変数は、変換後の優先方向パラメタP′に基づいて決定する。すなわち、P′=Xの場合、dx=Dx′、dy=Dy′×L、tc=L、tr=Kとなる。一方、P′=Yの場合、dx=Dy′×L、dy=Dx′、tc=K、tr=Lとなる。
Subsequently, the
次に、制御部11は、ループカウンタ変数i(0≦i<tr)及びループカウンタ変数j(0≦j<tc)による二重ループ処理により、各原稿画像を割り付ける割付領域のインデックスを決定する。具体的に、まず制御部11はiを0で初期化する(S14)。次に、jを0で初期化する(S15)。そして、(i×tc+j)番目の原稿画像を、インデックス(SI+i×dy+j×dx)の割付領域に割り付けるように決定する(S16)。
Next, the
続いて、制御部11は、jに1を加算し(S17)、jがtc未満であるか否かを判定する(S18)。tc未満であれば、S16の処理に戻ってループ処理を継続する。jがtcに一致すれば、ループを抜けて次の処理に進む。
Subsequently, the
続いて、制御部11は、iに1を加算し(S19)、iがtr未満であるか否かを判定する(S20)。tr未満であれば、S15の処理に戻ってループ処理を継続する。iがtrに一致すれば、ループを抜けて配置決定処理を終了する。
Subsequently, the
この二重ループ処理を実行することにより、全ての原稿画像を割り付ける割付領域が決定される。例えば前述した順縦の配置指定情報と、基準方向として90度を指定した場合、原稿画像I0は割付領域A3に割り付けられ、以下順に、原稿画像I1は割付領域A2、原稿画像I2は割付領域A1、原稿画像I3は割付領域A0、原稿画像I4は割付領域A7、原稿画像I5は割付領域A6、原稿画像I6は割付領域A5、原稿画像I7は割付領域A4に割り付けられる。このとき、図5の割付画像を基準方向として指定した90度だけ反時計回りに回転させると、順縦に原稿画像が配置された状態になるように、割付領域を決定したことになる。 By executing this double loop processing, an allocation area to which all document images are allocated is determined. For example, when 90 degrees is designated as the reference information for the vertical and vertical arrangements described above, the document image I0 is allocated to the allocation area A3, and the document image I1 is allocated to the allocation area A2 and the document image I2 is allocated to the allocation area A1. The document image I3 is allocated to the allocation area A0, the document image I4 is allocated to the allocation area A7, the document image I5 is allocated to the allocation area A6, the document image I6 is allocated to the allocation area A5, and the document image I7 is allocated to the allocation area A4. At this time, when the layout image in FIG. 5 is rotated counterclockwise by 90 degrees designated as the reference direction, the layout area is determined so that the document image is arranged in the vertical direction.
以上説明した処理により、画像処理装置10が生成する割付画像の例について、図8に例示する。図8(a)は、配置指定情報として順横、基準方向として0度を指定した場合に、図3の例に示す原稿画像を割り付けた割付画像として画像処理装置10が生成する画像の例である。この場合、図に示す向きのままで原稿画像は順横に配置されている。
An example of the allocated image generated by the
一方、図8(b)は、配置指定情報として順縦、基準方向として90度を指定した場合の割付画像の例である。この場合、図8(b)に示される割付画像を反時計回りに90度回転させた状態にして見ると、原稿画像は順縦に配置されていることが分かる。また、図8(c)は、配置指定情報として逆横、基準方向として180度を指定した場合の割付画像の例である。この図に示す割付画像を180度回転させると、原稿画像は逆横に配置されていることが分かる。 On the other hand, FIG. 8B is an example of an assigned image when the vertical designation is designated as the arrangement designation information and 90 degrees is designated as the reference direction. In this case, when the layout image shown in FIG. 8B is rotated 90 degrees counterclockwise, it can be seen that the document images are arranged in the vertical direction. FIG. 8C shows an example of an assigned image in the case where reverse side is designated as the arrangement designation information and 180 degrees is designated as the reference direction. When the layout image shown in this figure is rotated 180 degrees, it can be seen that the document image is arranged in the reverse side.
以上説明した本実施の形態によれば、割付画像を生成する場合に、基準方向を角度値で指定することにより、ユーザにとって分かり易い指定方法で割付画像を生成できる。 According to the present embodiment described above, when an allocated image is generated, the allocated image can be generated by a designation method that is easy for the user to specify by specifying the reference direction as an angle value.
10 画像処理装置、11 制御部、12 記憶部、13 操作部、14 表示部、15 インタフェース部、20 画像形成装置。
DESCRIPTION OF
Claims (5)
前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得手段と、
前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得手段と、
前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成手段と、
を含み、
前記基準方向取得手段は、ユーザの指定する角度値により前記基準方向を取得することを特徴とする画像処理装置。 An image processing apparatus for generating an allocated image for forming a plurality of document images on a single recording medium,
Arrangement designation obtaining means for obtaining arrangement designation information representing arrangement of the plurality of document images on the recording medium;
Reference direction acquisition means for acquiring reference directions of the plurality of document images with respect to the recording medium;
An allocated image generating means for generating an allocated image based on the acquired arrangement designation information and the acquired reference direction;
Including
The image processing apparatus according to claim 1, wherein the reference direction acquisition unit acquires the reference direction based on an angle value specified by a user.
前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得手段と、
前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得手段と、
前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成手段と、
を含み、
前記配置指定取得手段は、ユーザの指定する、縦方向の配置方向パラメタ又は横方向の配置方向パラメタの少なくとも一方と、縦方向又は横方向のうち優先して配置する方向を表す優先方向パラメタと、により前記配置指定情報を取得することを特徴とする画像処理装置。 An image processing apparatus for generating an allocated image for forming a plurality of document images on a single recording medium,
Arrangement designation obtaining means for obtaining arrangement designation information representing arrangement of the plurality of document images on the recording medium;
Reference direction acquisition means for acquiring reference directions of the plurality of document images with respect to the recording medium;
An allocated image generating means for generating an allocated image based on the acquired arrangement designation information and the acquired reference direction;
Including
The arrangement designation obtaining means specifies at least one of a vertical arrangement direction parameter or a horizontal arrangement direction parameter designated by a user, and a priority direction parameter indicating a preferential arrangement in the vertical direction or the horizontal direction, The arrangement specifying information is acquired by the image processing apparatus.
前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得手段と、
前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得手段と、
前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成手段と、
を含み、
前記基準方向取得手段は、ユーザの指定する角度値により前記基準方向を取得し、
前記配置指定取得手段は、ユーザの指定する、縦方向の配置方向パラメタ又は横方向の配置方向パラメタの少なくとも一方と、縦方向又は横方向のうち優先して配置する方向を表す優先方向パラメタと、により前記配置指定情報を取得することを特徴とする画像処理装置。 An image processing apparatus for generating an allocated image for forming a plurality of document images on a single recording medium,
Arrangement designation obtaining means for obtaining arrangement designation information representing arrangement of the plurality of document images on the recording medium;
Reference direction acquisition means for acquiring reference directions of the plurality of document images with respect to the recording medium;
An allocated image generating means for generating an allocated image based on the acquired arrangement designation information and the acquired reference direction;
Including
The reference direction acquisition means acquires the reference direction according to an angle value designated by a user,
The arrangement designation acquisition means specifies at least one of an arrangement direction parameter in the vertical direction or an arrangement direction parameter in the horizontal direction specified by the user, and a priority direction parameter indicating a preferential arrangement in the vertical direction or the horizontal direction, The arrangement specifying information is acquired by the image processing apparatus.
前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得ステップと、
前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得ステップと、
前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成ステップと、
を含み、
前記基準方向取得ステップは、ユーザの指定する角度値により前記基準方向を取得することを特徴とする画像処理方法。 An image processing method for generating a layout image for forming a plurality of document images on a single recording medium using a computer,
An arrangement designation obtaining step for obtaining arrangement designation information representing arrangement of the plurality of document images on the recording medium;
A reference direction acquisition step of acquiring reference directions of the plurality of document images with respect to the recording medium;
An allocated image generation step for generating an allocated image based on the acquired arrangement designation information and the acquired reference direction;
Including
In the image processing method, the reference direction acquisition step acquires the reference direction based on an angle value specified by a user.
前記複数の原稿画像の前記記録媒体上への配置を表す配置指定情報を取得する配置指定取得手段、
前記記録媒体に対する前記複数の原稿画像の基準方向を取得する基準方向取得手段、及び
前記取得した配置指定情報と、前記取得した基準方向と、に基づいて、割付画像を生成する割付画像生成手段、
として前記コンピュータを機能させ、
前記基準方向取得手段は、ユーザの指定する角度値により前記基準方向を取得することを特徴とするプログラム。
A program for generating a layout image for causing a computer to form a plurality of document images on a single recording medium,
Arrangement designation obtaining means for obtaining arrangement designation information representing arrangement of the plurality of document images on the recording medium;
A reference direction acquisition unit that acquires a reference direction of the plurality of document images with respect to the recording medium; and an allocation image generation unit that generates an allocation image based on the acquired arrangement designation information and the acquired reference direction;
Function the computer as
The reference direction acquisition means acquires the reference direction based on an angle value specified by a user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005266635A JP2007081805A (en) | 2005-09-14 | 2005-09-14 | Device and method for processing image and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005266635A JP2007081805A (en) | 2005-09-14 | 2005-09-14 | Device and method for processing image and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007081805A true JP2007081805A (en) | 2007-03-29 |
Family
ID=37941643
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005266635A Pending JP2007081805A (en) | 2005-09-14 | 2005-09-14 | Device and method for processing image and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007081805A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010258903A (en) * | 2009-04-27 | 2010-11-11 | Kyocera Mita Corp | Image processor |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1117862A (en) * | 1997-06-20 | 1999-01-22 | Canon Inc | Image reader |
JP2000227849A (en) * | 1999-02-05 | 2000-08-15 | Fuji Xerox Co Ltd | Final layout preparing device |
-
2005
- 2005-09-14 JP JP2005266635A patent/JP2007081805A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1117862A (en) * | 1997-06-20 | 1999-01-22 | Canon Inc | Image reader |
JP2000227849A (en) * | 1999-02-05 | 2000-08-15 | Fuji Xerox Co Ltd | Final layout preparing device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010258903A (en) * | 2009-04-27 | 2010-11-11 | Kyocera Mita Corp | Image processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4752868B2 (en) | Image processing apparatus, image processing method, and image processing program | |
US20060075362A1 (en) | Image processing apparatus, method, and recording medium on which program is recorded for displaying thumbnail/preview image | |
US8018618B2 (en) | Information processing apparatus that outputs images having same size to single page of recording sheet and computer readable medium | |
JP2019201240A (en) | Print control apparatus, print control program, and print control method | |
JP2004110773A (en) | Image forming apparatus and method thereof, program therefor, and storage medium therefor | |
JP2006268320A (en) | Print control device, method and program | |
JP2004187266A (en) | Picture arranging method, picture arranging apparatus, and picture arrangement program | |
JP5479132B2 (en) | Information processing apparatus, information processing apparatus control method, and computer program | |
KR20090126836A (en) | Image forming apparatus, image forming system and enlargement print processing method of printing data | |
JP2007081805A (en) | Device and method for processing image and program | |
JP4838655B2 (en) | Document creation support apparatus and document creation support method | |
JP2011146940A (en) | Image formation apparatus, and image processing program | |
JP4631261B2 (en) | Captured image projection apparatus, image processing method thereof, and program | |
JP3951492B2 (en) | Image processing device | |
JP2019103008A (en) | Program, information processing apparatus, and information processing method | |
JP2004054898A (en) | Printing data generating device, printing data generating method and program | |
JP2011175309A (en) | Image processing apparatus and program | |
JP2007086823A (en) | Information processor, control method and program | |
JP2000209433A (en) | Image forming device | |
JP4732142B2 (en) | Image processing method, program, and image processing apparatus | |
JP4893820B2 (en) | Control device and computer program | |
JP2005229627A (en) | Image forming apparatus, image forming method, and control program | |
JP2010128097A (en) | Information processing device, display control method, and program | |
JP4821645B2 (en) | Image processing system, image processing apparatus, and image processing program | |
JP6256258B2 (en) | Image output device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080821 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100201 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100223 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100421 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100713 |