JP2008136102A - Object arrangement device, method, program and storage medium - Google Patents

Object arrangement device, method, program and storage medium Download PDF

Info

Publication number
JP2008136102A
JP2008136102A JP2006322015A JP2006322015A JP2008136102A JP 2008136102 A JP2008136102 A JP 2008136102A JP 2006322015 A JP2006322015 A JP 2006322015A JP 2006322015 A JP2006322015 A JP 2006322015A JP 2008136102 A JP2008136102 A JP 2008136102A
Authority
JP
Japan
Prior art keywords
color
boundary
line
image
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
Application number
JP2006322015A
Other languages
Japanese (ja)
Inventor
Naoko Murasato
尚子 村里
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 IT Solutions Inc
Original Assignee
Canon Software 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 Software Inc filed Critical Canon Software Inc
Priority to JP2006322015A priority Critical patent/JP2008136102A/en
Publication of JP2008136102A publication Critical patent/JP2008136102A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an object arrangement device which makes a boundary between objects easy to be discriminated by a user without inserting lines and blanks not intended by the user between the adjacent objects. <P>SOLUTION: The object arrangement device judges whether or not the boundary between the adjacently arranged objects can be discriminated and draws a line on the boundary when it is judged that the boundary can not be discriminated. In this case, whether or not a color of an object in a boundary area between images and a color of the other adjacent object are the same color or approximate color is judged, when it is judged that the color is the same color or the approximated color, specifications of the line drawn on the boundary are determined based on the color of the object in the boundary area between the objects and the color of the other object. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、オブジェクト配置装置及び方法、プログラム、並びに記憶媒体に関し、特にオブジェクトとなる画像を複数隣接して配置する際に、各画像間の境界を容易に判別可能にするオブジェクト配置装置及び方法、プログラム、並びに記憶媒体に関する。   The present invention relates to an object placement apparatus and method, a program, and a storage medium, and in particular, an object placement apparatus and method that makes it possible to easily determine a boundary between images when placing a plurality of adjacent images. The present invention relates to a program and a storage medium.

従来、その場で撮影した複数の画像を1枚のシール紙に印刷する写真シール作成装置が提供されている。このような写真シール作成装置では、ユーザがシール紙に印刷された複数の画像を1枚ずつ正確に切り取れるように、画像間に切り取り線(分断線)が印刷される。例えば、図20(a)に示すように、すべての画像の周りに切断用ガイド線2001が印刷された場合、ユーザは切断用ガイド線2001に沿ってカットすることにより容易に画像を切り分けることができる。   2. Description of the Related Art Conventionally, there has been provided a photo sticker creating apparatus that prints a plurality of images taken on the spot on a sticker sheet. In such a photo sticker creating apparatus, a cut line (cut line) is printed between images so that the user can cut out a plurality of images printed on the sticker sheet one by one accurately. For example, as illustrated in FIG. 20A, when the cutting guide line 2001 is printed around all the images, the user can easily cut the image by cutting along the cutting guide line 2001. it can.

また、ユーザが用紙上に隣接して印刷された複数の画像を1枚ずつ正確に切り取らせるために、図20(b)に示すように、画像間に空白を挿入してもよい。これも、空白が画像間の境界を示すため、ユーザが各画像を容易に切断することができる。   Further, in order for the user to accurately cut out a plurality of images printed adjacent to each other on the paper one by one, a blank space may be inserted between the images as shown in FIG. Again, since the blank space indicates the boundary between images, the user can easily cut each image.

また、図20(c)に示すように、画像の切断位置を示すカットマークを画像に加えて印刷した場合は、印刷された切断用ガイド線が切り分けられた画像の縁に残ることなく、画像部分のみを切断することができる(例えば、特許文献1参照)。
特開平05−116429号公報
Further, as shown in FIG. 20C, when a cut mark indicating the cutting position of the image is added to the image and printed, the printed cutting guide line does not remain on the edge of the cut image, and the image Only a portion can be cut (see, for example, Patent Document 1).
JP 05-116429 A

しかしながら、上記従来技術には以下の問題点がある。   However, the above prior art has the following problems.

1.すべての画像の周りに切断用ガイド線を印刷した場合、切断用ガイド線2001が画像間の境界領域の色(背景色)を考慮した線色でないことから、ユーザが意図していない線が画像の縁に残ることになる。   1. When a cutting guide line is printed around all images, the cutting guide line 2001 is not a line color that takes into account the color (background color) of the boundary area between images. Will remain at the edge.

2.画像間に空白を挿入する場合、切断用ガイド線が画像の縁に残ることは無くなるが、空白を挿入するための空間が必要となり、用紙上に配置する画像のサイズや数が制限されるおそれがある。また、画像間に挿入された空白部分を除去するために、画像を切り分ける際に切断回数が増えてしまい、手間がかかる。   2. When a blank is inserted between images, the cutting guide line does not remain at the edge of the image, but a space for inserting a blank is required, and the size and number of images placed on the paper may be limited. There is. Further, in order to remove the blank portion inserted between the images, the number of times of cutting increases when the images are divided, which is troublesome.

また、上記特許文献1では、画像の周囲に切断用ガイド線がないため、画像部分を切断する際に切断位置がずれてしまうおそれがある。また、カットマークとカットマークとの間にユーザがペンで直接線を引くこともできるが、ペンで引いた線が画像の縁に残るおそれがあり、さらに線と引く手間もかかる。また、カットマークを印刷するための空間が用紙上に必要となり、画像のサイズや数が制限されるおそれがある。   In Patent Document 1, since there is no guide line for cutting around the image, the cutting position may be shifted when the image portion is cut. In addition, although the user can draw a line directly between the cut marks with the pen, there is a possibility that the line drawn with the pen may remain on the edge of the image. In addition, a space for printing the cut mark is required on the paper, which may limit the size and number of images.

本発明は、上記問題に鑑みて成されたものであり、隣り合うオブジェクト間にユーザが意図しない線や空白を挿入することなく、該オブジェクト間の境界をユーザに判別し易くすることができるオブジェクト配置装置及び方法、プログラム、並びに記憶媒体を提供することを目的とする。   The present invention has been made in view of the above-described problem, and can make it easier for the user to determine the boundary between objects without inserting a line or a blank that the user does not intend between adjacent objects. An object is to provide an arrangement device and method, a program, and a storage medium.

上記目的を達成するために、請求項1記載のオブジェクト配置装置は、画像または文書を含むオブジェクトを複数隣接して配置するオブジェクト配置手段を備えるオブジェクト配置装置において、前記オブジェクト配置手段により隣接して配置されたオブジェクト間の境界が判別可能か否かを判断する判断手段と、前記判断手段により前記境界が判別可能でないと判断された場合は、前記境界に線を引く制御を行う境界線描画制御手段とを備えることを特徴とする。   In order to achieve the above object, the object placement device according to claim 1, wherein the object placement device includes object placement means for placing a plurality of objects including images or documents adjacent to each other. Determining means for determining whether or not a boundary between the determined objects can be determined; and boundary line drawing control means for performing control to draw a line on the boundary when the determining means determines that the boundary cannot be determined It is characterized by providing.

上記目的を達成するために、請求項6記載のオブジェクト配置方法は、画像または文書を含むオブジェクトを複数隣接して配置するオブジェクト配置工程と、前記オブジェクト配置工程にて隣接して配置されたオブジェクト間の境界がユーザに判別可能か否かを判断する判断工程と、前記判断工程にて前記境界が判別可能でないと判断された場合は、前記境界に線を引く制御を行う境界線描画制御工程とを備えることを特徴とする。   In order to achieve the above object, an object placement method according to claim 6 includes an object placement step of placing a plurality of objects including images or documents adjacent to each other, and an object placed adjacently in the object placement step. A determination step for determining whether or not the boundary of the boundary is discriminable by the user, and a boundary line drawing control step for performing control to draw a line on the boundary when it is determined in the determination step that the boundary is not distinguishable; It is characterized by providing.

本発明によれば、隣り合うオブジェクト間にユーザが意図しない線や空白を挿入することなく、該オブジェクト間の境界をユーザに判別し易くすることができる。   According to the present invention, it is possible to make it easier for the user to determine the boundary between objects without inserting a line or a blank that the user does not intend between adjacent objects.

以下、本発明の実施の形態を図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[第1の実施形態]
図1は、本発明の第1の実施形態に係るオブジェクト配置装置の構成例を示すブロック図である。
[First Embodiment]
FIG. 1 is a block diagram illustrating a configuration example of an object placement device according to the first exemplary embodiment of the present invention.

図1において、オブジェクト配置装置は、例えば、パーソナルコンピュータ(以下、単に「PC」という。)1から成る。PC1は、CRT(Cathode Ray Tube)や液晶パネル等から成るディスプレイ2と、PC1等から印刷コマンドを受信して印刷を実行するプリンタ3に接続されている。なお、本実施の形態では、PC1は、ディスプレイ2及びプリンタ3にローカルに接続されているが、ネットワーク等を介して接続されていてもよい。   In FIG. 1, the object placement apparatus is composed of, for example, a personal computer (hereinafter simply referred to as “PC”) 1. The PC 1 is connected to a display 2 composed of a CRT (Cathode Ray Tube) or a liquid crystal panel, and a printer 3 that receives a print command from the PC 1 or the like and executes printing. In the present embodiment, the PC 1 is connected locally to the display 2 and the printer 3, but may be connected via a network or the like.

PC1は、該PC内の各部の制御を行うCPU12と、CPU12と各部を接続するインターフェース部(I/F)13と、データ記憶部14と、境界判定部15と、色作成部16と、レイアウト作成部17と、レイアウト記憶部18とを備える。   The PC 1 includes a CPU 12 that controls each unit in the PC, an interface unit (I / F) 13 that connects the CPU 12 and each unit, a data storage unit 14, a boundary determination unit 15, a color creation unit 16, a layout, A creation unit 17 and a layout storage unit 18 are provided.

I/F13は、CPU12と、上記装置内の各部とを接続するためのインターフェースである。データ記憶部14は、RAMやハードディスク等の記憶装置で構成され、ユーザにより設定された印刷設定の情報を格納する。   The I / F 13 is an interface for connecting the CPU 12 and each unit in the apparatus. The data storage unit 14 is configured by a storage device such as a RAM or a hard disk, and stores print setting information set by the user.

境界判定部15は、画像位置データベース20に格納された画像位置の情報から隣り合う画像の色、画像と用紙の色をそれぞれ比較し、画像間または画像と用紙との間に線(分割線)を引くか否かの判断を行う。分割線は、画像間の切断位置を示す線である。色作成部16は、分割線の線色や線幅を決定する。   The boundary determination unit 15 compares the colors of adjacent images and the colors of the images and the paper based on the information on the image positions stored in the image position database 20, and a line (dividing line) between the images or between the images and the paper. It is determined whether or not The dividing line is a line indicating a cutting position between images. The color creation unit 16 determines the line color and line width of the dividing line.

レイアウト作成部17は、画像間に分割線を引いたり、画像を移動して配置変更して画像のレイアウトを作成する。レイアウト記憶部18は、作成されたレイアウトの情報を記憶する。レイアウト作成部17により作成された画像のレイアウトは、レイアウト記憶部18にレイアウト情報として記憶され、後述する印刷レイアウト画面としてディスプレイ1に表示される。ユーザは、印刷レイアウト画面を確認した後に印刷指示を行うと、プリンタ2により印刷が実行される。なお、境界判定部15、色作成部16、レイアウト作成部17、及びレイアウト記憶部18は、ハードウェアで構成されていてもソフトウェアで構成されていてもよい。また、PC1は、通常のPCと同様に、RAMやROM、ハードディスク等の記憶装置を備えると共に、マウスやキーボード等の入力装置(不図示)を備える。   The layout creating unit 17 creates a layout of the image by drawing a dividing line between the images or moving the images to change the arrangement. The layout storage unit 18 stores information on the created layout. The layout of the image created by the layout creation unit 17 is stored as layout information in the layout storage unit 18 and displayed on the display 1 as a print layout screen to be described later. When the user gives a print instruction after confirming the print layout screen, printing is executed by the printer 2. The boundary determination unit 15, the color creation unit 16, the layout creation unit 17, and the layout storage unit 18 may be configured by hardware or software. Similarly to a normal PC, the PC 1 includes a storage device such as a RAM, a ROM, and a hard disk, and an input device (not shown) such as a mouse and a keyboard.

また、PC1は、画像位置データベース20と、画像情報データベース21と、Rレンジ値取得データベース22と、R計算値取得データベース23と、Gレンジ値取得データベース24と、G計算値取得データベース25と、Bレンジ値取得データベース26と、B計算値取得データベース27と、空白位置情報データベース28とを備える。これらのデータベースは、PC1内のハードディスク等の記憶装置に格納されるが、PCに接続された外部記憶装置に格納されていてもよい。   The PC 1 also includes an image position database 20, an image information database 21, an R range value acquisition database 22, an R calculation value acquisition database 23, a G range value acquisition database 24, a G calculation value acquisition database 25, and a B A range value acquisition database 26, a B calculation value acquisition database 27, and a blank position information database 28 are provided. These databases are stored in a storage device such as a hard disk in the PC 1, but may be stored in an external storage device connected to the PC.

図2、図3(a)及び図4(a)〜図4(f)、図5(a)及び図5(b)は、PC1が備える各種データベースの内容を示す図である。   2, FIG. 3 (a) and FIG. 4 (a) to FIG. 4 (f), FIG. 5 (a) and FIG. 5 (b) are diagrams showing the contents of various databases provided in the PC 1. FIG.

図2において、画像位置データベース20には、用紙上に配置される画像の位置情報が格納される。画像位置情報は、画像位置No.と、画像開始位置X,Y(mm)と、画像終了位置X,Y(mm)とで構成される。これらの画像開始位置や画像終了位置の単位はmmであっても、ドット単位であってもよい。   In FIG. 2, the image position database 20 stores position information of images arranged on the paper. The image position information is the image position No. And an image start position X, Y (mm) and an image end position X, Y (mm). The unit of these image start positions and image end positions may be mm or dot units.

画像位置No.は、用紙上の各画像に対して任意に割り当てられた番号である。本実施の形態では、図3(b)に示すように、4×4=16の画像に対して1〜16の画像位置No.が割り当てられている。なお、この画像の数や割り当て順は、図示例に限定されるものではない。   Image position No. Is a number arbitrarily assigned to each image on the paper. In the present embodiment, as shown in FIG. 3B, image positions No. 1 to 16 for 4 × 4 = 16 images. Is assigned. The number of images and the order of allocation are not limited to the illustrated example.

画像開始位置X,Y及び画像終了位置X,Yは、用紙上の座標位置である。本実施の形態では、図3(b)に示すように、用紙上端または左端からX軸またはY軸方向へ長さがそれぞれX,Y(mm)で表されている。また、画像の形状が一般的に四角形であることから、画像開始位置は四角形の左上の頂点を示す。一方、画像終了位置は、四角形の右下の頂点を示す。なお、画像の形状は四角形に限定されず、円や楕円、三角形、その他の多角形でもよい。円の場合は中心位置と半径、楕円の場合は中心位置と短半径、長半径、三角形の場合は3つの頂点などが画像位置データベース20に格納されている。   The image start positions X and Y and the image end positions X and Y are coordinate positions on the paper. In the present embodiment, as shown in FIG. 3B, the lengths are expressed as X and Y (mm) in the X-axis or Y-axis direction from the upper end or the left end of the sheet, respectively. Further, since the shape of the image is generally a quadrangle, the image start position indicates the upper left vertex of the quadrangle. On the other hand, the image end position indicates the lower right vertex of the rectangle. The shape of the image is not limited to a quadrangle, and may be a circle, an ellipse, a triangle, or another polygon. In the case of a circle, the center position and radius are stored in the image position database 20, and in the case of an ellipse, the center position and short radius, long radius, and in the case of a triangle, three vertices are stored.

図3(a)において、画像情報データベース21には、画像の辺ごとの分割線等の画像情報が格納される。画像情報は、画像位置No.と、画像No.と、辺No.と、分割線フラグ(flag)と、辺値と、分割線の線色と、分割線の線幅と、判定済みフラグ(flag)とで構成される。例えば、4×4の用紙レイアウトであれば、画像及びその画像に対する4辺にそれぞれに番号が割り当てられ、画像情報データベース21に格納される。   In FIG. 3A, the image information database 21 stores image information such as a dividing line for each side of the image. The image information includes an image position No. And image No. And side No. A dividing line flag (flag), an edge value, a line color of the dividing line, a line width of the dividing line, and a determined flag (flag). For example, in the case of a 4 × 4 paper layout, numbers are assigned to the image and the four sides of the image, respectively, and stored in the image information database 21.

図4(a)において、Rレンジ値取得データベース22には、R(Red)0−255に対して設定されたプリンタごとに固有Rのレンジが格納される。ここでレンジとは、ユーザの目視に基づく色味を数値化したものである。RレンジはR成分、GレンジはG成分、BレンジはB成分について数値化されている。この数値は、画像を出力するプリンタの仕様に応じて変更される。   4A, the R range value acquisition database 22 stores a unique R range for each printer set for R (Red) 0-255. Here, the range is a numerical value of the color based on the visual observation of the user. The R range is quantified for the R component, the G range for the G component, and the B range for the B component. This numerical value is changed according to the specification of the printer that outputs the image.

図4(b)において、R計算値取得データベース23には、Rのレンジごとに使用されるR値が格納される。   In FIG. 4B, the R calculation value acquisition database 23 stores R values used for each R range.

図4(c)において、Gレンジ値取得データベース24には、G(Green)0−255に対して設定されたプリンタごとに固有Gのレンジが格納される。   In FIG. 4C, the G range value acquisition database 24 stores a unique G range for each printer set for G (Green) 0-255.

図4(d)において、G計算値取得データベース25には、Gのレンジごとに使用されるG値が格納される。   In FIG. 4D, the G calculated value acquisition database 25 stores G values used for each G range.

図4(e)において、Bレンジ値取得データベース26には、B(Blue)0−255に対して設定されたプリンタごとに固有Bのレンジが格納される。   4E, the B range value acquisition database 26 stores a unique B range for each printer set for B (Blue) 0-255.

図4(f)において、B計算値取得データベース27には、Bのレンジごとに使用されるB値が格納される。   In FIG. 4F, the B calculated value acquisition database 27 stores B values used for each B range.

図5(a)及び図5(b)において、空白位置情報データベース28には、画像移動処理の際に使用される空白位置情報が格納される。空白位置情報は、各空白に割り当てられた空白IDと、位置No.とで構成される。位置No.は、図5(b)に示すように、空白で配置される可能性のある用紙上の領域に番号が割り当てられたものである。   5A and 5B, the blank position information database 28 stores blank position information used in the image moving process. The blank position information includes a blank ID assigned to each blank and a position number. It consists of. Position No. As shown in FIG. 5B, numbers are assigned to areas on the paper that may be arranged in a blank space.

次に、図1のPC1で実行されるオブジェクト配置処理の流れについて説明する。本実施の形態では、オブジェクトの一例として画像を用いている。   Next, the flow of object placement processing executed by the PC 1 in FIG. 1 will be described. In this embodiment, an image is used as an example of an object.

図6は、図1のPC1にて実行されるオブジェクト配置処理の流れを示すフローチャートである。本処理は、オブジェクト配置処理を実行するためのアプリケーションまたはプリンタドライバをユーザが起動することで、CPU12がROM等から該当するプログラムを読み出して実行する処理である。図7〜図11は、図6の処理の実行時にディスプレイに表示される各種UI(User Interface)の一例を示す図である。   FIG. 6 is a flowchart showing the flow of object placement processing executed by the PC 1 of FIG. This process is a process in which the CPU 12 reads out and executes a corresponding program from the ROM or the like when a user starts an application or a printer driver for executing the object arrangement process. 7 to 11 are diagrams showing examples of various UIs (User Interfaces) displayed on the display when the processing of FIG. 6 is executed.

図6において、アプリケーションが起動すると、CPU12は、図7に示す印刷設定画面700または図8に示す詳細設定画面800をディスプレイ2に表示し、ユーザからの各種印刷設定を受け付ける(ステップS601)。そして、印刷設定画面700及び詳細設定画面800上で設定された印刷設定の情報と画像配置順序情報とをデータ記憶部14に格納する(ステップS601)。なお、画像配置順序情報は、どの画像がどの位置に配置されるかの情報である。   In FIG. 6, when the application is activated, the CPU 12 displays a print setting screen 700 shown in FIG. 7 or a detailed setting screen 800 shown in FIG. 8 on the display 2, and accepts various print settings from the user (step S601). Then, the print setting information and the image arrangement order information set on the print setting screen 700 and the detailed setting screen 800 are stored in the data storage unit 14 (step S601). The image arrangement order information is information indicating which image is arranged at which position.

ステップS602では、CPU12は、印刷設定を受け付けた後、「印刷プレビュー画面」ボタン705が押下されたか否かを判断する。CPU12は、「印刷プレビュー画面」ボタン705が押下されたと判断したときは、印刷設定の情報をデータ記憶部14から読み出す(ステップS603)。   In step S <b> 602, the CPU 12 determines whether or not the “print preview screen” button 705 has been pressed after accepting print settings. When the CPU 12 determines that the “print preview screen” button 705 has been pressed, the CPU 12 reads print setting information from the data storage unit 14 (step S603).

ステップS604では、CPU12は、読み出した印刷設定情報を解析し、印刷設定画面700上の「画像間の線」欄702において「画像間の境界が判断できない部分がある場合線を引く」が選択されているか否かを判断する。選択されていた場合は、ステップS605へ移行し、CPU12は画像境界処理を実行する。画像境界処理の詳細については後述する。   In step S <b> 604, the CPU 12 analyzes the read print setting information, and “Draw a line when there is a part where the boundary between images cannot be determined” is selected in the “Line between images” column 702 on the print setting screen 700. Judge whether or not. If it has been selected, the process proceeds to step S605, and the CPU 12 executes image boundary processing. Details of the image boundary processing will be described later.

ステップS606では、CPU12は、レイアウト作成部17により作成された印刷レイアウトを後述する印刷レイアウト画面としてディスプレイ2に表示する。ステップS607では、CPU12は、「印刷」ボタン903が押下されたと判断したときは、ステップS608にて印刷処理を実行する。   In step S606, the CPU 12 displays the print layout created by the layout creation unit 17 on the display 2 as a print layout screen described later. In step S607, when the CPU 12 determines that the “print” button 903 has been pressed, the CPU 12 executes print processing in step S608.

図7は、図6の処理の実行時にディスプレイ2に表示される印刷設定画面の一例を示す図である。   FIG. 7 is a diagram illustrating an example of a print setting screen displayed on the display 2 when the processing of FIG. 6 is executed.

図7において、印刷設定画面700には、「画像と枚数を選択」欄701と、「画像間の線」欄702と、「画像間の線色」欄703と、「画像移動」欄704と、「印刷プレビュー画面」ボタン705と、「詳細設定」ボタン706と、「画像間の線幅変更」欄707とが配置されている。   In FIG. 7, the print setting screen 700 includes a “select image and number” column 701, a “line between images” column 702, a “line color between images” column 703, and an “image move” column 704. , A “print preview screen” button 705, a “detail setting” button 706, and a “line width change between images” column 707 are arranged.

「画像と枚数を選択」欄701では、印刷する画像をユーザに選択させ、該画像の印刷枚数を設定させることができる。図7では、「画像0001」が3つ、「画像0007」が4つ、「画像0002」,「画像0003」,「画像0005」,「画像0009」,「画像0011」〜「画像0015」が各1つずつ、合計16の画像を印刷するように設定されている。画像上に表示されている「画像0001」等は、画像のファイル名であり、図示に限られたものではない。   In the “select image and number of sheets” column 701, the user can select an image to be printed, and can set the number of printed sheets of the image. In FIG. 7, there are three “image 0001”, four “image 0007”, “image 0002”, “image 0003”, “image 0005”, “image 0009”, and “image 0011” to “image 0015”. A total of 16 images are set to be printed one by one. “Image 0001” or the like displayed on the image is a file name of the image, and is not limited to the illustration.

「画像間の線」欄702では、画像間に自動的に分割線を引かせるか否かをユーザに選択させることができる。「画像間の境界に判別できない部分がある場合線を引く」のラジオボタンが選択された場合、境界判定部15が隣り合う画像間の境界が判別できないと判定したときは画像間に分割線を引く。一方、「線を引かない」のラジオボタンが選択された場合、上記判定を行わず、分割線も引かない。   In the “line between images” column 702, the user can select whether or not to automatically draw a dividing line between images. When the radio button “Draw a line when there is an indistinguishable part in the boundary between images” is selected, the boundary determination unit 15 determines that the boundary between adjacent images cannot be determined. Pull. On the other hand, when the radio button “Do not draw a line” is selected, the above determination is not performed, and no dividing line is drawn.

「画像間の線色」欄703では、画像間に引かれる分割線の線色をユーザに設定させることができる。設定された線色は、境界判定部15が隣り合う画像間の境界が判別できないと判定したときに、分割線の線色として反映される。例えば、「画像の色の近似色」のラジオボタンが選択された場合、分割線の色を自動的に画像の近似色に決定する。一方、「色固定」のラジオボタンが選択されユーザにより好みの色が設定された場合、該設定された色を分割線の色として決定する。   In the “line color between images” column 703, the user can set the line color of the dividing line drawn between the images. The set line color is reflected as the line color of the dividing line when the boundary determination unit 15 determines that the boundary between adjacent images cannot be determined. For example, when the radio button “approximate color of image” is selected, the color of the dividing line is automatically determined as the approximate color of the image. On the other hand, when the radio button “fixed color” is selected and a desired color is set by the user, the set color is determined as the color of the dividing line.

「画像移動」欄704では、「ON」のラジオボタンが選択された場合、境界判定部15により画像間の境界が判別できないと判定されたときに、画像の配置が変更される。これにより、画像間の境界が判別できるようにする。   In the “image move” column 704, when the radio button “ON” is selected, the image layout is changed when the boundary determination unit 15 determines that the boundary between images cannot be determined. Thereby, the boundary between images can be discriminated.

「画像間の線幅変更」欄707では、「ON」のラジオボタンが選択された場合、分割線の線色を決定する際に、線色の色味を変えないと分割線がわかりづらいと判断したときは、色味を変えずに線幅が変更される。   In the “change line width between images” column 707, when the radio button “ON” is selected, it is difficult to determine the dividing line unless the line color is changed when determining the line color of the dividing line. When judged, the line width is changed without changing the color.

「詳細設定」ボタン706が押下されると、さらに詳細に設定を行うことができる詳細設定画面800が表示される。画面上で設定された設定情報はすべてデータ記憶部14に格納される。   When a “detailed setting” button 706 is pressed, a detailed setting screen 800 on which more detailed settings can be made is displayed. All the setting information set on the screen is stored in the data storage unit 14.

「印刷プレビュー画面」ボタン705が押下されると、設定された印刷設定に応じて図9〜図11に示す印刷レイアウト画面のいずれか1つがディスプレイ2に表示される。   When the “print preview screen” button 705 is pressed, any one of the print layout screens shown in FIGS. 9 to 11 is displayed on the display 2 in accordance with the set print settings.

図8は、図7の印刷設定画面700上で「詳細設定」ボタン706が押下されたときに表示され詳細設定画面の一例を示す図である。なお、本実施の形態では、詳細設定画面800が印刷設定画面700上にポップアップ画面等の子画面として表示させる形態について説明するが、これに限定されず、印刷設定画面700から切り替わりディスプレイ2に全画面表示されてもよい。   FIG. 8 is a diagram showing an example of the detailed setting screen displayed when the “detailed setting” button 706 is pressed on the print setting screen 700 of FIG. In the present embodiment, a mode in which the detailed setting screen 800 is displayed as a sub-screen such as a pop-up screen on the print setting screen 700 will be described. However, the present invention is not limited to this. It may be displayed on the screen.

図8において、詳細設定画面800には、「画像枚数の最大値」入力欄801,802と、「分割線」入力欄803と、「濃さ」設定スライダ804と、「境界の色の差」入力欄805と、「デフォルト」ボタン806と、「OK」ボタン807と、「キャンセル」ボタン808とが配置されている。   In FIG. 8, the detailed setting screen 800 includes “maximum number of images” input fields 801 and 802, “dividing line” input field 803, “darkness” setting slider 804, and “border color difference”. An input field 805, a “default” button 806, an “OK” button 807, and a “cancel” button 808 are arranged.

「画像枚数の最大値」入力欄801,802では、用紙の縦方向に配置する画像の数と横方向に配置する画像の数の最大数をそれぞれユーザに設定させることができる。例えば、「縦」に「4」、「横」に「4」と入力された場合、4×4=16の画像をレイアウトすることができる。なお、サイズの異なる画像が複数混在するレイアウトの場合は、設定された各最大数に応じてレイアウト作成部17が自動的に印刷レイアウトを作成し、その印刷レイアウトの情報がデータ記憶部14に格納される。   In the “maximum number of images” input fields 801 and 802, the user can set the maximum number of images arranged in the vertical direction and the maximum number of images arranged in the horizontal direction. For example, when “4” is input to “Vertical” and “4” is input to “Horizontal”, 4 × 4 = 16 images can be laid out. In the case of a layout in which a plurality of images of different sizes are mixed, the layout creation unit 17 automatically creates a print layout according to each set maximum number, and information on the print layout is stored in the data storage unit 14. Is done.

「分割線」入力欄803では、隣り合う画像間の境界部分が画像長に対して、どの程度判別不可と判断された場合に分割線を引くのかを割合(%)としてユーザに設定させることができる。画像長とは、隣り合う画像が上下に配置されている場合は画像間の境界部分における横方向の画像長であり、隣り合う画像が左右に配置されている場合は画像間の境界部分の縦方向の画像長である。   In the “partition line” input field 803, the user can set the ratio (%) to which the parting line is drawn when it is determined that the boundary between adjacent images is indistinguishable with respect to the image length. it can. The image length is the horizontal image length at the boundary between images when adjacent images are arranged vertically, and the vertical length of the boundary between images when adjacent images are arranged left and right. The image length in the direction.

「濃さ」設定スライダ804では、分割線の色を隣り合う画像の背景色より明るくするか暗くするかをユーザに設定させることができる。本実施の形態では、「明るい」または「暗い」のいずれか一方を選択することが可能であるが、複数の段階を設けてスライダをスライドさせることにより明暗を微調整させてもよい。   A “darkness” setting slider 804 allows the user to set whether the color of the dividing line is brighter or darker than the background color of adjacent images. In this embodiment, it is possible to select either “bright” or “dark”, but the brightness may be finely adjusted by sliding a slider with a plurality of stages.

「境界の色の差」入力欄805では、隣り合う画像間の境界部分の色の違いがどの程度異なれば分割線を引くのかを割合(%)としてユーザに設定させることができる。割合を低くすると少しの色の違いで分割線を引く。   In the “border color difference” input field 805, the user can set the percentage (%) of how much the difference in the color of the border portion between adjacent images is different. Lowering the percentage draws a dividing line with a slight color difference.

「デフォルト」ボタン806は、上述した設定をプリンタにとってより適切な値に戻すものである。この値はプリンタが独自で保持していてもよいし、ユーザが設定してもよい。   A “default” button 806 returns the above setting to a more appropriate value for the printer. This value may be held by the printer or may be set by the user.

「OK」ボタン807が押下されると、上述した設定をデータ記憶部14に格納し、印刷設定画面700へ戻る。一方、「キャンセル」ボタン808が押下されると、上記設定をキャンセルして印刷設定画面700へ戻る。なお、印刷設定画面700上に詳細設定800に表示された内容が組み込まれていてもよい。   When the “OK” button 807 is pressed, the above-described settings are stored in the data storage unit 14 and the print setting screen 700 is displayed again. On the other hand, when a “Cancel” button 808 is pressed, the above settings are canceled and the screen returns to the print setting screen 700. Note that the content displayed in the detailed setting 800 may be incorporated on the print setting screen 700.

図9〜図11は、「印刷プレビュー画面」ボタン705が押下された後にディスプレイ2に表示される印刷レイアウト画面の一例を示す図である。   9 to 11 are diagrams illustrating an example of a print layout screen displayed on the display 2 after the “print preview screen” button 705 is pressed.

印刷設定画面700及び詳細設定画面800にて印刷設定が行われたときは、その印刷設定の情報に基づいて、境界判定部15が画像間に分割線を引くか否かを判定する。そして、色作成部16が分割線の色を決定し、レイアウト作成部17がレイアウト設定を行う。その結果、図9〜図11に示す印刷レイアウト画面のいずれか1つが表示される。   When the print setting is performed on the print setting screen 700 and the detailed setting screen 800, the boundary determination unit 15 determines whether to draw a dividing line between images based on the information of the print setting. Then, the color creation unit 16 determines the color of the dividing line, and the layout creation unit 17 performs layout setting. As a result, any one of the print layout screens shown in FIGS. 9 to 11 is displayed.

まず、印刷設定画面700上の「画像間の線」欄702において「線を引かない」ラジオボタンが選択された場合、例えば、図9に示す印刷レイアウト画面900が表示される。印刷レイアウト画面900上には、レイアウト結果901として画像間に分割線が引かれていない印刷レイアウトが表示される。   First, when the “do not draw a line” radio button is selected in the “line between images” column 702 on the print setting screen 700, for example, a print layout screen 900 shown in FIG. 9 is displayed. On the print layout screen 900, a print layout in which no dividing line is drawn between images is displayed as a layout result 901.

一方、「画像間の線」欄702において、「画像間の境界が判断できない部分がある場合線を引く」のラジオボタンが選択された場合、画像移動が「OFF」に設定され且つ境界判定部15が分割線を引くと判定したときは、例えば、図10に示す印刷レイアウト画面1000が表示される。印刷レイアウト画面1000上の印刷レイアウトでは、画像間の必要な部分にのみ分割線が引かれているので、画像間の境界線(切断位置)を判別しやすい。印刷設定画面700上の「画像移動」欄704で「ON」が選択されていた場合は、画像移動が行われ、例えば、図11に示す印刷レイアウト画面1100が表示される。   On the other hand, in the “line between images” column 702, when the radio button “draw a line when there is a part where the boundary between images cannot be determined” is selected, the image movement is set to “OFF” and the boundary determination unit When it is determined that 15 draws a dividing line, for example, a print layout screen 1000 shown in FIG. 10 is displayed. In the print layout on the print layout screen 1000, a dividing line is drawn only at a necessary portion between images, so that it is easy to determine a boundary line (cutting position) between images. If “ON” is selected in the “image move” field 704 on the print setting screen 700, the image is moved, and for example, a print layout screen 1100 shown in FIG. 11 is displayed.

このように、印刷レイアウト画面では、レイアウト結果901,1001,1101が表示されることにより、どの部分に分割線が引かれるかを確認することが可能である。ここでユーザは、不必要と感じた分割線に関しては、当該分割線を選択して「削除」ボタン901を押下することで分割線を削除することが可能である。また、分割線が必要であると感じた境界部に関しては、その場所を選択して「追加」ボタン902を押下することで分割線を追加することができる。分割線の色は、画像情報データベース21から取得される。再度、印刷設定画面700に戻るには「戻る」ボタン904を押下する。一方、表示されている印刷レイアウトで印刷を行う場合は、「印刷」ボタン903を押下する。   In this way, on the print layout screen, the layout results 901, 1001, and 1101 are displayed, so that it is possible to confirm which part the dividing line is drawn on. Here, regarding the dividing line that is felt unnecessary, the user can delete the dividing line by selecting the dividing line and pressing a “delete” button 901. In addition, regarding a boundary part that feels that a dividing line is necessary, the dividing line can be added by selecting the location and pressing an “add” button 902. The color of the dividing line is acquired from the image information database 21. To return to the print setting screen 700 again, a “return” button 904 is pressed. On the other hand, when printing with the displayed print layout, the “print” button 903 is pressed.

図12は、図6のステップS605における画像境界処理の詳細を示すフローチャートである。   FIG. 12 is a flowchart showing details of the image boundary processing in step S605 of FIG.

図12において、まず、ステップS1201では、CPU12は、データ記憶部14から分割数を取得する。分割数とは、「画像枚数の最大値」入力欄801,802で設定された最大数に基づく数値であり、入力欄にそれぞれ「4」が設定されたときは4×4=16が分割数となる。本実施の形態では、レイアウトする画像の画像サイズがすべて同一の場合について説明するが、サイズの異なる画像が複数混在する場合、データ記憶部14からサイズの異なる画像の配置に関するレイアウト情報が取得される。   In FIG. 12, first, in step S <b> 1201, the CPU 12 acquires the number of divisions from the data storage unit 14. The number of divisions is a numerical value based on the maximum number set in the “maximum number of images” input fields 801 and 802. When “4” is set in each of the input fields, 4 × 4 = 16 is the number of divisions. It becomes. In the present embodiment, a case will be described where the image sizes of the images to be laid out are all the same. However, when a plurality of images having different sizes are mixed, layout information regarding the arrangement of images having different sizes is acquired from the data storage unit 14. .

ステップS1202では、CPU12は、ステップS1201で取得した分割数から画像の位置を算出する。ここでは、上述した画像開始位置及び終了位置がそれぞれ算出される。また、各画像に対して画像位置No.が割り当てられる。   In step S1202, the CPU 12 calculates the position of the image from the number of divisions acquired in step S1201. Here, the above-described image start position and end position are calculated. For each image, the image position No. Is assigned.

ステップS1203では、CPU12は、ステップS1202で算出した各画像位置の情報を画像位置データベース20に格納する。ステップS1204では、CPU12は、境界判定部15により画像間の境界に分割線を引くかどうかを判定させる(境界判定処理)。境界判定処理の詳細については後述する。   In step S1203, the CPU 12 stores information on each image position calculated in step S1202 in the image position database 20. In step S1204, the CPU 12 causes the boundary determination unit 15 to determine whether to draw a dividing line at the boundary between images (boundary determination processing). Details of the boundary determination processing will be described later.

ステップS1205では、CPU12は、データ記憶部14から「画像移動」欄704の「ON」が選択されているか否かの情報を取得する。そして、「ON」が選択されていた場合には、CPU12は、レイアウト作成部17により画像移動処理を実行させ(ステップS1206)、画像移動処理は、境界判定処理で境界の判別がし難いと判断された場合、その画像同士が極力隣り合わないように画像を移動させる処理である。これにより、余計な分割線を引くことがなくなる。画像移動処理の詳細については後述する。そして、画像移動が行われた印刷レイアウトに対して再度境界判定処理が実行される(ステップS1207)。一方、ステップS1205において、「OFF」が選択されていた場合は、ステップS1208へ進む。   In step S <b> 1205, the CPU 12 acquires information from the data storage unit 14 as to whether “ON” in the “image movement” column 704 has been selected. If “ON” is selected, the CPU 12 causes the layout creation unit 17 to execute the image moving process (step S1206), and the image moving process determines that it is difficult to determine the boundary in the boundary determining process. In such a case, the image is moved so that the images are not adjacent to each other as much as possible. As a result, an unnecessary dividing line is not drawn. Details of the image moving process will be described later. Then, the boundary determination process is performed again on the print layout in which the image has been moved (step S1207). On the other hand, if “OFF” is selected in step S1205, the process advances to step S1208.

ステップS1208では、CPU12は、分割線を引くと判定された部分にのみ分割線を引かせ、レイアウト作成部17により作成された印刷レイアウトをレイアウト記憶部18に格納する(ステップS1209)。   In step S1208, the CPU 12 causes the dividing line to be drawn only in the portion determined to draw the dividing line, and stores the print layout created by the layout creating unit 17 in the layout storage unit 18 (step S1209).

図13は、図12のステップS124,127における境界判定処理の詳細を示すフローチャートである。ここで、画像位置データベース20に格納されている画像位置情報とデータ記憶部14に格納されている画像配置順序情報から、各画像の各辺についての情報が画像情報データベース21に格納される。なお、画像位置No.及び辺No.のみが格納され、他の情報は図13の処理中に画像情報データベースに格納される。画像配置順序情報は、どの画像がどの位置に配置されるかの情報である。   FIG. 13 is a flowchart showing details of the boundary determination processing in steps S124 and 127 of FIG. Here, information about each side of each image is stored in the image information database 21 from the image position information stored in the image position database 20 and the image arrangement order information stored in the data storage unit 14. The image position No. And side no. Only the other information is stored, and other information is stored in the image information database during the processing of FIG. The image arrangement order information is information indicating which image is arranged at which position.

図13において、ステップS1301では、境界判定部15は、画像情報データベース21から1つ目の画像を取得する。   In FIG. 13, in step S <b> 1301, the boundary determination unit 15 acquires the first image from the image information database 21.

ステップS1302では、境界判定部15は、ステップS1301で取得した画像の一つめの辺を検索する。ステップS1303では、境界判定部15は、ステップS1302で検索された1つ目の辺の判定済みflagが0(未判定)の場合、ステップS1304へ進む。一方、1(判定済み)であった場合は、ステップS1306へ進む。境界判定部15は、画像情報データベース21内の判定済みflagを参照することにより判断する。   In step S1302, the boundary determination unit 15 searches for the first side of the image acquired in step S1301. In step S1303, if the determined flag of the first side searched in step S1302 is 0 (undecided), the boundary determination unit 15 proceeds to step S1304. On the other hand, if it is 1 (judged), the process proceeds to step S1306. The boundary determination unit 15 makes a determination by referring to the determined flag in the image information database 21.

ステップS1304では、境界判定部15は、検索された辺と隣り合う画像の辺を取得する。ここでは、画像位置データベース20の画像位置情報を参照し、ステップS1301で取得した画像と隣り合う画像を検索する。そして、取得した画像の辺と隣り合う画像の辺をそれぞれ画像情報データベース21から取得する。例えば、図3(b)において、画像1の辺3が検索された場合、画像1と隣り合う画像2の辺5が取得される。また、画像1の辺1,2のように、隣り合う画像の辺がないものは検索された画像の辺と接している用紙における線分を仮想的に「辺」(以下、「仮想辺」とする)とし(画像1の1a,2a,画像2の6a等)、当該仮想辺上における色情報が取得される。ここで取得した仮想辺の情報は、辺の情報と同様に図3(a)の画像情報データベース21に設定される。なお、仮想辺の色情報はデフォルトでは白に設定されているが、図示しない入力画面によってユーザからの入力も可能である。   In step S1304, the boundary determination unit 15 acquires a side of the image adjacent to the searched side. Here, the image position information in the image position database 20 is referred to search for an image adjacent to the image acquired in step S1301. Then, each side of the image adjacent to the acquired image side is acquired from the image information database 21. For example, in FIG. 3B, when the side 3 of the image 1 is searched, the side 5 of the image 2 adjacent to the image 1 is acquired. Also, if there are no adjacent image sides, such as sides 1 and 2 of image 1, a line segment on the paper in contact with the searched image side is virtually “side” (hereinafter, “virtual side”). (1a, 2a of image 1, 6a of image 2, etc.), and color information on the virtual side is acquired. The acquired virtual side information is set in the image information database 21 in FIG. 3A in the same manner as the side information. Note that the color information of the virtual side is set to white by default, but input from the user is also possible using an input screen (not shown).

ステップS1305では、検索された辺と当該辺に隣り合う辺との間に引く分割線の色が色作成部16により決定される(色判定処理)。色判定処理の詳細については後述する。   In step S1305, the color creation unit 16 determines the color of the dividing line drawn between the searched side and the side adjacent to the side (color determination processing). Details of the color determination processing will be described later.

ステップS1306では、境界判定部15は、判定を行った2辺に対して、画像情報データベース21内の判定済みflagを1にして判定済みに変更する。ステップS1307では、境界判定部15は、画像情報データベース21の辺No.からステップS1301で取得した画像の辺のすべてについて、色判定を行ったか否かを判断する。まだ、判定済みでない辺が存在する場合はステップS1308で次の辺に移動して、ステップS1303以降の処理を行う。一方、すべての辺が判定済みである場合はステップS1309に進む。   In step S1306, the boundary determination unit 15 sets the determined flag in the image information database 21 to 1 for the determined two sides and changes the determination to completed. In step S <b> 1307, the boundary determination unit 15 determines the side No. From step S1301, it is determined whether or not color determination has been performed for all of the sides of the image acquired in step S1301. If there is still a side that has not been determined, the process moves to the next side in step S1308, and the processes in and after step S1303 are performed. On the other hand, if all sides have been determined, the process advances to step S1309.

ステップS1309では、境界判定部15は、画像情報データベース21からまだ判定済みでない辺のある画像が存在するか否かを判定する。この結果、判定済みでない辺のある画像が存在する場合にはステップS1310で次の画像に移動し、ステップS1302以降の処理を行う。一方、すべての画像が判定済みである場合はリターンする。   In step S1309, the boundary determination unit 15 determines whether there is an image having a side that has not been determined from the image information database 21 yet. As a result, if there is an image having a side that has not been determined, the process moves to the next image in step S1310, and the processes in and after step S1302 are performed. On the other hand, if all the images have been determined, the process returns.

図14は、図13のステップS1305における色判定処理の詳細を示すフローチャートである。   FIG. 14 is a flowchart showing details of the color determination processing in step S1305 of FIG.

図14において、ステップS1401では、色作成部16は、色判定の対象となる2辺の先頭の点(二点)をそれぞれ検索する。2辺の先頭の点とは、例えば、図3(b)に示す符号301の点である。なお、判定を開始する点は辺の先頭でなくともよい。   In FIG. 14, in step S <b> 1401, the color creation unit 16 searches for the leading points (two points) of the two sides that are subject to color determination. The leading point of the two sides is, for example, a point 301 shown in FIG. Note that the point where the determination is started does not have to be at the beginning of the side.

ステップS1402では、色作成部16は、二点の色が同色または近似色か否かを判定する。判定の方法は以下の2つの方法で判定される。   In step S1402, the color creation unit 16 determines whether the two colors are the same color or an approximate color. The determination method is determined by the following two methods.

1.R,G,Bレンジ値取得データベース22,24,26を利用して二点の色が近いかどうかを判定する。   1. Using the R, G, B range value acquisition databases 22, 24, and 26, it is determined whether or not the two colors are close.

2.(1.で近いと判定された場合)下式(1),(2)で得た結果(Value1とValue2)を比較し、分割線の必要な点であると判定する。   2. (When it is determined to be close in 1.) The results (Value1 and Value2) obtained by the following expressions (1) and (2) are compared, and it is determined that this is a necessary point of the dividing line.

Value1=a×R1+b×G1+c×B1 (1)
Value2=a×R2+b×G2+c×B2 (2)
R1:1つ目の辺のRの値、G1:1つ目の辺のGの値、B1:1つ目のBの値、R2:2つ目の辺のRの値をR2、G2:2つ目の辺のGの値、B2:2つ目の辺のBの値、abcはいずれも変数
まず、1.について説明する。R,G,Bレンジ値取得データベース22,24,26にそれぞれR,G,Bの0から255までの値を適当な幅ごとにレンジで分けて格納しておく。また、R,G,B計算値取得データベース23,25,27には、各レンジごとに使用する計算値を格納しておく。ただし、プリンタごとに色の精度が異なるため、これも考慮しなければならない。データベースの値は、ユーザにより予め設定されても、プリンタドライバ等により保持されていてもかまわない。
Value1 = a * R1 + b * G1 + c * B1 (1)
Value2 = a * R2 + b * G2 + c * B2 (2)
R1: R value of the first side, G1: G value of the first side, B1: First B value, R2: R value of the second side R2, G2: The value of G on the second side, B2: the value of B on the second side, abc are all variables. Will be described. The R, G, B range value acquisition databases 22, 24, 26 store the values of R, G, B from 0 to 255 separately for each appropriate width. The R, G, B calculated value acquisition databases 23, 25, 27 store the calculated values used for each range. However, since the accuracy of the color differs from printer to printer, this must also be taken into consideration. The database value may be preset by the user or held by a printer driver or the like.

R1,G1,B1,R2,G2,B2の値からそれぞれレンジ値取得データベース22,24,26が検索され、各値に対応するレンジが取得される。取得したR1’,R2’のレンジ値、G1’,G2’のレンジ値、B1’,B2’のレンジ値をそれぞれRGBごとに比較する。RGBそれぞれのレンジが一つでもある一定以上離れているものがあれば、2点間は分割線を必要としないと判断する。1.で分割線が必要であると判断された場合は、2.の判定を行う。   Range value acquisition databases 22, 24, and 26 are searched from the values of R1, G1, B1, R2, G2, and B2, respectively, and ranges corresponding to the respective values are acquired. The acquired R1 ′ and R2 ′ range values, G1 ′ and G2 ′ range values, and B1 ′ and B2 ′ range values are compared for each RGB. If there is at least a certain range of R, G, and B, it is determined that no dividing line is required between the two points. 1. If it is determined that a dividing line is necessary in 2. Judgment is made.

次に、2.について説明する。R1,G1,B1,R2,G2,B2を利用し、上式(1),(2)に基づいて算出されたValue1,Value2の値から分割線が必要か否かの判定を行う。変数abcは、輝度計算の値a=0.299,b=0.587,c=0.114が使用される。なお、プリンタの種類に応じてこれらの値が変更されてもかまわない。   Next, 2. Will be described. Using R1, G1, B1, R2, G2, and B2, it is determined whether or not a dividing line is necessary from the values of Value1 and Value2 calculated based on the above formulas (1) and (2). As the variable abc, luminance calculation values a = 0.299, b = 0.487, and c = 0.114 are used. Note that these values may be changed according to the type of printer.

1.で取得した各レンジ値に基づいてR,G,B計算値取得データベース23,25,27を検索し、実際に計算に使用する値を取得する。取得した値をR1’,G1’,B1’,R2’,G2’,B2’とする。例えば、R1の値が244の場合は、データベース22,23より244はRレンジ値が18で、Rレンジ18の計算値が206なので、R1’には206が使用される。同様に、G1の値が103の場合は、データベース24,25より103はGレンジ値が7で、Gレンジ7の計算値が96なので、G1’には96が使用される。同様に、B1の値が11の場合は、データベース26,27より11はBレンジ値が2で、Bレンジ2の計算値が10なので、B1’には10が使用される。   1. The R, G, and B calculated value acquisition databases 23, 25, and 27 are searched based on the range values acquired in step 1, and values that are actually used for calculation are acquired. The acquired values are R1 ', G1', B1 ', R2', G2 ', B2'. For example, when the value of R1 is 244, the database 22 and 23 indicate that the R range value 18 is 244 and the calculated value of the R range 18 is 206, so 206 is used for R1 '. Similarly, when the value of G1 is 103, since the G range value 7 is 103 and the calculated value of the G range 7 is 96 from the databases 24 and 25, 96 is used for G1 '. Similarly, when the value of B1 is 11, since the B range value is 2 and the calculated value of B range 2 is 10 from the databases 26 and 27, 10 is used for B1 '.

式(1),(2)に上記を考慮した式が下式となる。   A formula that takes the above into consideration in formulas (1) and (2) is the following formula.

Value1’=a×R1’+b×G1’+c×B1’ (1)’
Value2’=a×R2’+b×G2’+c×B2’ (2)’
Value1’とValue2’の関係がある一定の値以下である場合、隣り合う点の色が同色または2点間の判断がつき難い色であると判定する(分割線を引く可能性のある点とする)。なお、境界の判定に関しては、3Dルックアップテーブルを使用し、2点間の距離から判断することも可能である。
Value1 ′ = a × R1 ′ + b × G1 ′ + c × B1 ′ (1) ′
Value2 ′ = a × R2 ′ + b × G2 ′ + c × B2 ′ (2) ′
When the relationship between Value 1 ′ and Value 2 ′ is equal to or less than a certain value, it is determined that the color of adjacent points is the same color or a color that is difficult to determine between two points (the possibility of drawing a dividing line) To do). Note that the boundary can be determined from the distance between two points using a 3D lookup table.

図14に戻り、ステップS1403では、色作成部16は、判定がすべて終了したか否かを判断する。なお、検索する点はすべての点でなくともかまわない。ステップS1403において、色作成部16は、終了していないと判断した場合は、次の検索点に移動して(ステップS1404)、ステップS1402以降の処理を行う。一方、色作成部16は、終了したと判断した場合はステップS1405へ進む。なお、検索点は、画像の1画素ごと設定されていても、任意に設定されて点であってもよい。設定については、PC1側で自動的に設定しても、ユーザに設定させてもよい。   Returning to FIG. 14, in step S <b> 1403, the color creation unit 16 determines whether all the determinations are completed. The points to be searched may not be all points. If it is determined in step S1403 that the color creation unit 16 has not ended, the color creating unit 16 moves to the next search point (step S1404), and performs the processing from step S1402. On the other hand, if the color creating unit 16 determines that the process has ended, the process proceeds to step S1405. The search point may be set for each pixel of the image or may be set arbitrarily. The setting may be set automatically on the PC 1 side or may be set by the user.

ステップS1405では、色作成部16は、ステップS1402において色が同色か近似色であると判定された二点の割合が一定の割合を超えたか否かを判断する。この結果、色作成部16は、一定の割合を超えたと判断したときは、分割線を引くことを決定して(ステップS1406)、ステップS1408へ進む。ステップS1406では、色作成部16は、詳細設定画面800上の「境界の色の差」入力欄805に入力され、データ記憶部14に格納された割合をデータ記憶部14から取得する。   In step S1405, the color creating unit 16 determines whether the ratio of the two points determined to be the same color or approximate color in step S1402 exceeds a certain ratio. As a result, when the color creating unit 16 determines that the predetermined ratio has been exceeded, it determines to draw a dividing line (step S1406), and the process proceeds to step S1408. In step S <b> 1406, the color creation unit 16 acquires the ratio input to the “border color difference” input field 805 on the detailed setting screen 800 and stored in the data storage unit 14 from the data storage unit 14.

ステップS1405において、色作成部16は、超えていないと判断した場合は、ステップS1408に進む。ステップS1407では、色作成部16は、画像情報データベース21における「分割線flag」に、判定した2辺に対して1(分割線を引く)をたて、それぞれ辺のレンジ値を「レンジ(RGB)」に設定し、Value1、Value2の値を「value」に設定する。   In step S1405, if the color creation unit 16 determines that the number does not exceed, the process proceeds to step S1408. In step S <b> 1407, the color creating unit 16 sets 1 (draws a dividing line) for the determined two sides to the “dividing line flag” in the image information database 21, and sets the range value of each side to “range (RGB ) ”, And the values of Value 1 and Value 2 are set to“ value ”.

ステップS1408では、色作成部16は、線決定処理を行い、分割線の仕様即ち線色及び線幅を決定する。この線決定処理の詳細については詳述する。ステップS1409では、色作成部16は、ステップS1408の線決定処理で決定した分割線の線色及び線幅を画像情報データベース21に格納する。また、印刷レイアウト画面上で「追加」ボタン902が押下された場合、画像情報データベース21における線色の値を利用し、線色を引くことができる。また、図12のステップS1206で画像移動処理を行う際には、画像情報データベース21における辺値の値を使用し、隣り合う画像の境界が判別しづらくならないように並び替えることができる。   In step S1408, the color creation unit 16 performs line determination processing to determine the specifications of the dividing lines, that is, the line color and line width. Details of this line determination processing will be described in detail. In step S1409, the color creating unit 16 stores the line color and line width of the dividing line determined in the line determination process in step S1408 in the image information database 21. When the “add” button 902 is pressed on the print layout screen, the line color can be drawn using the line color value in the image information database 21. In addition, when performing the image moving process in step S1206 of FIG. 12, it is possible to use the side value values in the image information database 21 and rearrange the images so that it is not difficult to determine the boundary between adjacent images.

図15は、図12のステップS1206における画像移動処理の詳細を示すフローチャートである。   FIG. 15 is a flowchart showing details of the image moving process in step S1206 of FIG.

図15において、ステップS1501では、レイアウト作成部17は、1つ目の画像を任意の位置に配置する。1つ目の画像は、画像情報データベースに基づいて選択される。   In FIG. 15, in step S1501, the layout creation unit 17 arranges the first image at an arbitrary position. The first image is selected based on the image information database.

次に、ステップS1502では、レイアウト作成部17は、まだ配置が決定していない画像が存在するか否かを判定する。この結果、存在しないと判定した場合はリターンする一方、存在する場合は、ステップS1503へ進み、次の画像を取得する。   Next, in step S1502, the layout creation unit 17 determines whether there is an image whose arrangement has not yet been determined. As a result, when it is determined that it does not exist, the process returns. On the other hand, when it exists, the process proceeds to step S1503, and the next image is acquired.

次に、ステップS1504では、レイアウト作成部17は、空白位置情報データベース28を参照し、空白データが存在するか否かを判定する。この結果、存在しないと判定した場合は、ステップS1509に進む。一方、レイアウト作成部17は、存在すると判定した場合は、次の空白を取得する(ステップS1505)。   Next, in step S1504, the layout creating unit 17 refers to the blank position information database 28 and determines whether or not blank data exists. As a result, if it is determined that it does not exist, the process proceeds to step S1509. On the other hand, if the layout creation unit 17 determines that it exists, it acquires the next blank (step S1505).

次に、ステップS1506では、レイアウト作成部17は、ステップS1505で取得した空白に画像を配置した場合、既に配置されている画像と隣り合う辺の色が同色または近似色か否かを判断する。ここでは上述した色判定処理と同じ処理が行われる。   Next, in step S1506, when the image is arranged in the blank acquired in step S1505, the layout creating unit 17 determines whether the color of the side adjacent to the already arranged image is the same color or an approximate color. Here, the same processing as the color determination processing described above is performed.

ステップS1506において、レイアウト作成部17は、同色又は近似色でないと判断した場合は、ステップS1507へ進む。一方、同色または近似色であると判断した場合はステップS1504に戻り、他の空白で判定を行う。   If the layout creation unit 17 determines in step S1506 that the colors are not the same color or approximate colors, the process advances to step S1507. On the other hand, if it is determined that they are the same color or an approximate color, the process returns to step S1504, and determination is performed using another blank.

ステップS1507では、レイアウト作成部17は画像を配置する。そして、ステップS1508では、レイアウト作成部17は空白IDを削除し、ステップS1502に戻る。ステップS1509では、レイアウト作成部17は、次の画像配置位置を取得する。次に、ステップS1510では、新しい配置位置が画像配置可能最大数(例えば、縦に4枚横に4枚配置できるものなら16枚)を超えていないかを判断し、超えていない場合はステップS1511へ進み、超える場合はステップS1514へ進む。   In step S1507, the layout creating unit 17 arranges images. In step S1508, the layout creating unit 17 deletes the blank ID, and the process returns to step S1502. In step S1509, the layout creating unit 17 acquires the next image arrangement position. Next, in step S1510, it is determined whether or not the new arrangement position exceeds the maximum number of images that can be arranged (for example, 16 if 4 sheets can be arranged horizontally and 4 sheets horizontally). If not, step S1511 is performed. If it exceeds, the process proceeds to step S1514.

ステップS1511では、レイアウト作成部17は、既に配置されている画像と隣り合う辺の色が同色または近似色か否かを判断する。ここでは上述した色判定処理と同じ処理が行われる。ステップS1511において、レイアウト作成部17は、同色または近似色でないと判断した場合は、ステップS1513へ進む。一方、同色または近似色であると判断した場合は、レイアウト作成部17は、現在の位置を空白として保持すると決定し、空白位置情報データベース28に位置情報を設定して(ステップS1512)、ステップS1509に戻る。   In step S1511, the layout creating unit 17 determines whether the color of the side adjacent to the image that has already been arranged is the same color or an approximate color. Here, the same processing as the color determination processing described above is performed. If the layout creation unit 17 determines in step S1511 that the colors are not the same color or approximate colors, the process advances to step S1513. On the other hand, if it is determined that they are the same color or an approximate color, the layout creation unit 17 determines to hold the current position as a blank, sets position information in the blank position information database 28 (step S1512), and step S1509. Return to.

ステップS1513では、レイアウト作成部17は、新しい配置位置に画像を配置して、ステップS152に戻る。ステップS1514では、レイアウト作成部17は、空白に画像を配置する。そして、ステップS1512で空白IDを削除して、ステップS1502に戻る。図9に示した印刷レイアウトから画像移動した場合の印刷レイアウトを図11に示す。   In step S1513, the layout creating unit 17 arranges the image at a new arrangement position, and returns to step S152. In step S1514, the layout creating unit 17 arranges an image in a blank space. In step S1512, the blank ID is deleted, and the process returns to step S1502. FIG. 11 shows a print layout when an image is moved from the print layout shown in FIG.

このように、印刷設定画面700上でユーザが「画像移動」ONを選択することで、隣り合う画像の背景色が同じかまたは境界を判別できないような近似色とならないように画像の移動を行う。これにより、分割線が過度に引かれることが無くなる。なお、上記処理に代えて、すべての画像の組み合わせパターンを検証し、境界が判別できないと判断される回数が一番少ないパターンに移動する方法であってもよい。   As described above, when the user selects “image movement” ON on the print setting screen 700, the images are moved so that the background colors of the adjacent images are the same or the approximate colors cannot be determined. . As a result, the dividing line is not drawn excessively. Instead of the above processing, a method may be used in which the combination pattern of all images is verified, and the pattern is moved to the pattern with the smallest number of times when it is determined that the boundary cannot be determined.

図16及び図17は、図14のステップS1408における線決定処理の詳細を示すフローチャートである。   16 and 17 are flowcharts showing details of the line determination process in step S1408 of FIG.

分割線の線色は、図4(a)〜図4(f)に示すデータベース22〜27に基づいて決定される。分割線の線色は、背景色に近い色で且つ背景色と区別が付く色に決定する必要があることから、決定したRGBの各レンジの値よりもある程度高いまたは低いレンジ値の計算値を使用して、設定される。   The line color of the dividing line is determined based on the databases 22 to 27 shown in FIGS. 4 (a) to 4 (f). Since the line color of the dividing line needs to be determined to be a color that is close to the background color and can be distinguished from the background color, a calculated value of a range value that is somewhat higher or lower than the determined values of each RGB range is used. Use and set.

図16において、ステップ1601では、色作成部16は、データ記憶部14からライン(分割線)の濃さの設定情報を取得する。ラインの濃さの設定情報は、詳細設定画面800上で「濃さ」のスライダが「暗い」に設定されたか、「明るい」に設定されたかを示すものである。   In FIG. 16, in step 1601, the color creation unit 16 acquires line (partition line) darkness setting information from the data storage unit 14. The line darkness setting information indicates whether the “darkness” slider on the detailed setting screen 800 is set to “dark” or “light”.

次に、ステップ1602では、色作成部16は、ステップ1601で取得した設定情報がラインの濃さを暗くする設定(「暗い」)であるか否かを判定する。この結果、ラインの濃さを暗くする設定であるときは、ステップS1603へ進む。一方、ラインの濃さを明るくする設定であるときは、図17のステップS1609へ進む。   Next, in step 1602, the color creating unit 16 determines whether or not the setting information acquired in step 1601 is a setting for darkening the line density (“dark”). As a result, if the setting is to darken the line, the process proceeds to step S1603. On the other hand, if the setting is to increase the darkness of the line, the process proceeds to step S1609 in FIG.

ステップS1603では、色作成部16は、R1,R2,B1,B2,G1,G2のどのレンジ値を使用するかを決定する。ここでは、R1,R2でレンジ値が小さい方、B1,B2でレンジ値が小さい方、G1,G2でレンジ値が小さい方が使用される。   In step S1603, the color creation unit 16 determines which range value of R1, R2, B1, B2, G1, and G2 is to be used. Here, the smaller range value is used for R1, R2, the smaller range value for B1, B2, and the smaller range value for G1, G2.

ステップS1604では、色作成部16は、RGBのすべてのレンジ値を下げられるか否かの判断を行い、RGBのすべてのレンジ値を下げられると判断した場合、RGBのレンジ値をすべて下げた値でデータベース23,25,27を検索し、それぞれに対応する計算値で線色を決定して(ステップS1605)、リターンする。   In step S1604, the color creation unit 16 determines whether or not all the RGB range values can be lowered. If it is determined that all the RGB range values can be lowered, the value obtained by lowering all the RGB range values. Then, the databases 23, 25, and 27 are searched for, the line color is determined by the calculated value corresponding to each of them (step S1605), and the process returns.

一方、ステップS1604において、色作成部16は、RGBのすべてのレンジ値を下げることができないと判断した場合、下げることのできないレンジが一つであるか否かを判定する(ステップS1606)。この結果、一つである場合は、色作成部16は、RGBのレンジ値を下げられるものは下げ、下げられないものは上げた値でデータベース23,25,27を検索し、それぞれに対応する計算値から線色を決定して(ステップS1607)、リターンする。   On the other hand, if it is determined in step S1604 that all the RGB RGB range values cannot be lowered, the color creating unit 16 determines whether there is one range that cannot be lowered (step S1606). As a result, if there is one, the color creating unit 16 searches the databases 23, 25, and 27 using the increased values for those that can lower the RGB range value, and for those that cannot be decreased, and corresponds to each. The line color is determined from the calculated value (step S1607), and the process returns.

一方、ステップS1606において、一つでない場合は、色作成部16は、「レンジを上げる」設定に変更して(ステップS1608)、図17のステップS1610へ進む。   On the other hand, if the number is not one in step S1606, the color creating unit 16 changes the setting to “increase range” (step S1608) and proceeds to step S1610 in FIG.

図17において、ステップS1604では、色作成部16は、R1,R2,B1,B2,G1,G2のどのレンジ値を使用するかを決定する。ここでは、R1,R2でレンジ値が大きい方、B1,B2でレンジ値が大きい方、G1,G2でレンジ値が大きい方が使用される。   In FIG. 17, in step S1604, the color creating unit 16 determines which range value of R1, R2, B1, B2, G1, and G2 is to be used. Here, the larger range value is used for R1, R2, the larger range value is used for B1, B2, and the larger range value is used for G1, G2.

ステップS1610では、色作成部16は、RGBのすべてのレンジ値を上げることができるか否かの判断を行い、RGBのすべてのレンジ値を上げられると判断した場合、RGBのレンジ値をすべて上げた値でデータベース23,25,27を検索し、それぞれに対応する計算値で線色を決定して(ステップS1611)、リターンする。   In step S1610, the color creating unit 16 determines whether or not all the RGB range values can be increased. If it is determined that all the RGB range values can be increased, the color creating unit 16 increases all the RGB range values. The database 23, 25, 27 is searched with the obtained values, the line color is determined with the calculated value corresponding to each of them (step S1611), and the process returns.

一方、ステップS1610において、色作成部16は、RGBのすべてのレンジ値を上げることができないと判断した場合、上げることができないレンジが一つであるか否かを判定する(ステップS1612)。この結果、一つである場合は、色作成部16は、RGBのレンジ値を上げられるものは上げ、上げられないものは下げた値でデータベース23,25,27を検索し、それぞれに対応する計算値から線色を決定して(ステップS1613)、リターンする。   On the other hand, if it is determined in step S1610 that all the RGB range values cannot be increased, the color creating unit 16 determines whether there is one range that cannot be increased (step S1612). As a result, when there is one, the color creating unit 16 searches the databases 23, 25, and 27 with the values that can increase the RGB range value and decreases the values that cannot be increased, and corresponds to each. The line color is determined from the calculated value (step S1613), and the process returns.

一方、ステップS1612において、一つでない場合は、色作成部16は「レンジを下げる」設定に変更して(ステップS1614)、図16のステップS1604へ進む。   On the other hand, if the number is not one in step S1612, the color creating unit 16 changes the setting to “reduce range” (step S1614), and proceeds to step S1604 in FIG.

なお、分割線の線色は、ユーザの好みに合わせて明暗の差がつけられるようにしてもよい。この場合、詳細設定画面800上の濃さ設定スライダ804で明暗を微調整できるようにする。その設定値をレンジ値を変更する際に考慮する(例えば、「明るい」の度合いが大きいほどレンジ値を下げる割合を大きくする)ことにより、分割線の線色にさまざまな色を設定することができる。   Note that the line colors of the dividing lines may be provided with a difference in brightness according to the user's preference. In this case, the brightness setting can be finely adjusted with the density setting slider 804 on the detailed setting screen 800. By considering the setting value when changing the range value (for example, increasing the ratio of decreasing the range value as the degree of “brightness” increases), various colors can be set as the line color of the dividing line. it can.

上記実施の形態によれば、隣り合う画像間にユーザが意図しない線が印刷されたり、空白が挿入されることなく、画像間の境界の判別をユーザに判別し易くすることができる。これにより、ユーザが画像を1枚ずつ正確に切り分けることができ、切り分けられた画像の縁に線が残ることを防止することができる。   According to the above-described embodiment, it is possible to make it easier for the user to determine the boundary between images without printing a line unintended by the user between adjacent images or inserting a blank. Thus, the user can accurately separate the images one by one, and it is possible to prevent a line from remaining on the edge of the separated image.

また、印刷設定画面700上で「画像間の境界に判別できない部分がある場合線を引く」をユーザが選択した場合、隣り合う画像間の境界領域の色が画像間で同色かまたは境界を判別できない近似色であるときは、その境界に対してのみ適切な色の線を引く。そのため、ユーザが画像を切り分ける際に境界の判別が困難であったり、画像に余計な線がかぶってしまったり、切断回数が必要以上に多くなってしまうという課題を解決することができる。また、画像間に余計な空間を挿入する必要がないので、画像サイズや数に制限を受けることが無くなる。   Further, when the user selects “Draw a line when there is a part that cannot be discriminated at the boundary between images” on the print setting screen 700, the color of the border area between adjacent images is the same color between the images or the border is discriminated. If it is an approximate color that is not possible, draw an appropriate color line only for the boundary. Therefore, it is possible to solve the problems that it is difficult for the user to determine the boundary when the image is cut, the image is covered with an extra line, or the number of times of cutting becomes more than necessary. In addition, since there is no need to insert an extra space between images, there is no limitation on the image size and number.

上記実施の形態では、ユーザが線色の判定を行うのではなく、PC側で線色を自動的に判定していたが、ユーザが線色を決めるようにしてもよい。この場合、分割線が判別できるか否かの基準や線色の濃さをユーザが変更可能な構成にすると、ユーザの好みに合わせることができる。   In the above embodiment, the user does not determine the line color, but automatically determines the line color on the PC side. However, the user may determine the line color. In this case, if the user can change the criteria for determining whether or not the dividing line can be discriminated and the density of the line color, the user's preference can be met.

[第2の実施形態]
本発明の第2の実施の形態に係るオブジェクト配置装置を含むシステムは、図1で説明したシステムと同じであり、上記第1の実施形態と同様の部分については、同一の符号を用いてその説明を省略する。以下に、上記第1の実施の形態と異なる点のみを説明する。
[Second Embodiment]
The system including the object placement device according to the second exemplary embodiment of the present invention is the same as the system described with reference to FIG. 1, and the same parts as those in the first exemplary embodiment are denoted by the same reference numerals. Description is omitted. Only differences from the first embodiment will be described below.

上記第1の実施形態では、図16及び図17に示したように、分割線の線色のみを決定する線決定処理について説明したが、線決定処理にて分割線の線色及び線幅を決定するようにしてもよい。   In the first embodiment, as illustrated in FIGS. 16 and 17, the line determination process for determining only the line color of the dividing line has been described. However, in the line determination process, the line color and the line width of the dividing line are determined. It may be determined.

図18及び図19は、本発明の第2の実施形態に係る画像境界作成システムにおける線決定処理を示すフローチャートである。   18 and 19 are flowcharts showing the line determination process in the image boundary creation system according to the second embodiment of the present invention.

境界判定部15により線色の色味を変えないと分割線がわかりづらいと判断された場合、印刷設定画面700上の「画像間の線幅変更」欄707でONが選択されているときは分割線の線幅を太くする。これにより、分割線は、色味が極力変わらず、背景色に近い色で境界線が判別可能なものとなる。   If it is determined by the boundary determination unit 15 that the dividing line is difficult to understand unless the color of the line color is changed, when ON is selected in the “Change line width between images” field 707 on the print setting screen 700 Increase the line width of the dividing line. As a result, the dividing line can be discriminated by a color that is as close as possible to the background color without changing the color as much as possible.

図18において、ステップS1701では、色作成部16は、データ記憶部14からライン(分割線)の濃さの設定情報を取得する。ラインの濃さの設定情報は、詳細設定画面800上で「濃さ」のスライダが「暗い」に設定されたか、「明るい」に設定されたかを示すものである。   In FIG. 18, in step S <b> 1701, the color creation unit 16 acquires the setting information of the line (partition line) darkness from the data storage unit 14. The line darkness setting information indicates whether the “darkness” slider on the detailed setting screen 800 is set to “dark” or “light”.

次に、ステップS1702では、色作成部16は、ステップ1701で取得した設定情報がラインの濃さを暗くする設定(「暗い」)であるか否かを判定する。この結果、ラインの濃さを暗くする設定であるときは、ステップS1703へ進む。一方、ラインの濃さを明るくする設定であるときは、図19のステップS1713へ進む。   Next, in step S1702, the color creating unit 16 determines whether or not the setting information acquired in step 1701 is a setting for darkening the line density ("dark"). As a result, if it is set to darken the line, the process proceeds to step S1703. On the other hand, if it is set to increase the darkness of the line, the process proceeds to step S1713 in FIG.

ステップS1703では、色作成部16は、R1,R2,B1,B2,G1,G2のどのレンジ値を使用するかを決定する。ここでは、R1,R2でレンジ値が小さい方、B1,B2でレンジ値が小さい方、G1,G2でレンジ値が小さい方が使用される。   In step S1703, the color creation unit 16 determines which range value of R1, R2, B1, B2, G1, and G2 is to be used. Here, the smaller range value is used for R1, R2, the smaller range value for B1, B2, and the smaller range value for G1, G2.

次に、ステップS1704では、色作成部16は、RGBのすべてのレンジ値を下げられるか否かの判断を行い、RGBのすべてのレンジ値を下げられると判断した場合、RGBのレンジ値をすべて下げた値でデータベース23,25,27を検索し、それぞれに対応する計算値で線色を決定して(ステップS1705)、リターンする。   Next, in step S1704, the color creating unit 16 determines whether or not all the RGB range values can be reduced. If it is determined that all the RGB range values can be decreased, all the RGB range values are determined. The databases 23, 25, and 27 are searched with the lowered values, the line color is determined with the corresponding calculated values (step S1705), and the process returns.

一方、ステップS1704において、色作成部16は、RGBのすべてのレンジ値を下げることができないと判断した場合、下げることができないレンジが一つであるか否かを判定する(ステップS1706)。この結果、一つである場合は、色作成部16は、データ記憶部14から画像間の線幅変更設定値を取得して(ステップS1707)、ステップS1708へ進む。一方、一つでない場合は、色作成部16は「レンジを上げる」設定に変更して(ステップS1711)、図19のステップS1713へ進む。   On the other hand, if it is determined in step S1704 that all the RGB range values cannot be lowered, the color creating unit 16 determines whether there is one range that cannot be lowered (step S1706). As a result, when there is one, the color creation unit 16 acquires the line width change setting value between the images from the data storage unit 14 (step S1707), and the process proceeds to step S1708. On the other hand, if not one, the color creating unit 16 changes the setting to “increase range” (step S1711), and proceeds to step S1713 in FIG.

ステップS1708では、色作成部16は、画像間の線幅変更設定値がONであるか否かを判別し、画像間の線幅変更設定値がONであった場合、線幅を「太い」に決定して(ステップS1709)、ステップS1710へ進む。ステップS1710では、色作成部16は、RGBのレンジ値を下げられるもののみ下げた値でデータベース23,25,27を検索し、それぞれに対応する計算値から線色を決定して、リターンする。   In step S1708, the color creating unit 16 determines whether or not the line width change setting value between images is ON. If the line width change setting value between images is ON, the line width is “thick”. (Step S1709), the process proceeds to step S1710. In step S1710, the color creation unit 16 searches the databases 23, 25, and 27 with values that can only reduce the RGB range values, determines line colors from the corresponding calculated values, and returns.

一方、ステップS1708において、画像間の線幅変更設定値がOFFであった場合は、色作成部16は、RGBのレンジ値を下げられるものは下げ、下げられないものは上げた値でデータベース23,25,27を検索し、それぞれに対応する計算値から線色を決定して(ステップS1712)、リターンする。   On the other hand, if the line width change setting value between the images is OFF in step S1708, the color creating unit 16 lowers the RGB range value if it can be lowered, and raises the value that cannot be lowered in the database 23. , 25, 27 are searched, the line color is determined from the calculated values corresponding to each of them (step S1712), and the process returns.

図19において、ステップS1713では、色作成部16は、R1,R2,B1,B2,G1,G2のどのレンジ値を使用するかを決定する。ここでは、R1,R2でレンジ値が大きい方、B1,B2でレンジ値が大きい方、G1,G2でレンジ値が大きい方が使用される。   In FIG. 19, in step S1713, the color creation unit 16 determines which range value of R1, R2, B1, B2, G1, and G2 is to be used. Here, the larger range value is used for R1, R2, the larger range value is used for B1, B2, and the larger range value is used for G1, G2.

次に、ステップS1714では、色作成部16は、RGBのすべてのレンジ値を上げることができるか否かの判断を行い、RGBのすべてのレンジ値を上げられると判断した場合、RGBのレンジ値をすべて上げた値でデータベース23,25,27を検索し、それぞれに対応する計算値で線色を決定して(ステップS1715)、リターンする。   In step S <b> 1714, the color creation unit 16 determines whether all the RGB range values can be increased. If it is determined that all the RGB range values can be increased, the RGB range values are determined. The databases 23, 25, and 27 are searched with the values obtained by increasing all the values, the line colors are determined with the calculated values corresponding to the values (step S1715), and the process returns.

一方、ステップS1714において、色作成部16は、RGBのすべてのレンジ値が上げることができないと判断した場合、上げることができないレンジが一つであるか否かを判定する(ステップS1716)。この結果、一つである場合は、色作成部16は、データ記憶部14から画像間の線幅変更設定値を取得して(ステップS1717)、ステップS1718へ進む。一方、一つでない場合は、色作成部16は「レンジを下げる」設定に変更して(ステップS1721)、ステップS1704へ進む。   On the other hand, if it is determined in step S1714 that all the RGB range values cannot be increased, the color creating unit 16 determines whether there is one range that cannot be increased (step S1716). As a result, if there is one, the color creation unit 16 acquires the line width change setting value between the images from the data storage unit 14 (step S1717), and proceeds to step S1718. On the other hand, if there is not one, the color creating unit 16 changes the setting to “reduce range” (step S1721), and proceeds to step S1704.

ステップS1718では、色作成部16は、画像間の線幅変更設定値がONであるか否かを判別し、画像間の線幅変更設定値がONであった場合、線幅を「太い」に決定して(ステップS1719)、ステップS1720へ進む。ステップS1720では、色作成部16は、RGBのレンジ値を上げられるもののみ上げた値でデータベース23,25,27を検索し、それぞれに対応する計算値から線色を決定して、リターンする。   In step S1718, the color creating unit 16 determines whether or not the line width change setting value between images is ON. If the line width change setting value between images is ON, the line width is “thick”. (Step S1719), the process proceeds to step S1720. In step S1720, the color creation unit 16 searches the databases 23, 25, and 27 using only values that can raise the RGB range values, determines the line color from the corresponding calculated values, and returns.

一方、ステップS1719において、画像間の線幅変更設定がOFFであった場合は、色作成部16は、RGBのレンジ値を上げられるものは上げ、上げられないものは下げた値でデータベース23,25,27を検索し、それぞれに対応する計算値から線色を決定して(ステップS1722)、リターンする。   On the other hand, if the line width change setting between the images is OFF in step S1719, the color creating unit 16 increases the values that can increase the RGB range value, and decreases the values that cannot be increased in the database 23. 25 and 27 are searched, the line color is determined from the calculated value corresponding to each (step S1722), and the process returns.

上記第2の実施の形態によれば、上記第1の実施の形態による効果を更に奏することができる。   According to the second embodiment, the effects of the first embodiment can be further exhibited.

上記第1及び第2の実施の形態では、オブジェクトの一例として画像(画像データ)を想定して説明したが、これに限定されるものではなく、文書(文書データ)や文書と画像の合成物であってもよい。   In the first and second embodiments, an image (image data) has been described as an example of an object. However, the present invention is not limited to this, and a document (document data) or a composite of a document and an image is not limited to this. It may be.

また、本発明の目的は、以下の処理を実行することによって達成される。即ち、上述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。   The object of the present invention is achieved by executing the following processing. That is, a storage medium that records a program code of software that realizes the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus is stored in the storage medium. This is the process of reading the code.

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

また、プログラムコードを供給するための記憶媒体としては、次のものを用いることができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等である。または、プログラムコードをネットワークを介してダウンロードしてもよい。   Moreover, the following can be used as a storage medium for supplying the program code. For example, floppy (registered trademark) disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM or the like. Alternatively, the program code may be downloaded via a network.

また、コンピュータが読み出したプログラムコードを実行することにより、上記実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。   Further, the present invention includes a case where the function of the above-described embodiment is realized by executing the program code read by the computer. In addition, an OS (operating system) running on the computer performs part or all of the actual processing based on an instruction of the program code, and the functions of the above-described embodiments are realized by the processing. Is also included.

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

また、コンピュータが読み出したプログラムコードを実行することにより、前述した各実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOSなどが実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現する場合も含まれる。この場合、上記プログラムは、該プログラムを記憶した記憶媒体から直接、またはインターネット、商用ネットワーク、若しくはローカルエリアネットワーク等に接続された不図示の他のコンピュータやデータベース等からダウンロードすることにより供給される。   Further, the present invention includes a case where the functions of the above-described embodiments are realized by executing the program code read by the computer. In addition, there is a case where the OS running on the computer performs part or all of the actual processing based on the instruction of the program code, and the functions of the above-described embodiments are realized by the processing. In this case, the program is supplied by downloading directly from a storage medium storing the program or from another computer or database (not shown) connected to the Internet, a commercial network, a local area network, or the like.

上記プログラムの形態は、オブジェクトコード、インタプリタにより実行されるプログラムコード、OS(オペレーティングシステム)に供給されるスクリプトデータ等の形態から成ってもよい。   The form of the program may be in the form of object code, program code executed by an interpreter, script data supplied to an OS (operating system), and the like.

本発明の第1の実施形態に係るオブジェクト配置装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the object arrangement | positioning apparatus which concerns on the 1st Embodiment of this invention. 図1のPC内の画像位置データベースの一例を示す図である。It is a figure which shows an example of the image position database in PC of FIG. (a)は画像情報データベースの一例を示す図であり、(b)は画像位置データベース及び画像情報データベースに格納された情報に基づいて作成された印刷レイアウトの一例を示す図である。(A) is a figure which shows an example of an image information database, (b) is a figure which shows an example of the print layout produced based on the information stored in the image position database and the image information database. (a)〜(f)は境界判別処理に利用される色情報に関するデータベースの一例を示す図である。(A)-(f) is a figure which shows an example of the database regarding the color information utilized for a boundary discrimination | determination process. (a)は空白位置情報データベースの一例を示す図であり、(b)は画像の配置位置を示す図である。(A) is a figure which shows an example of a blank position information database, (b) is a figure which shows the arrangement position of an image. 図1のPCにて実行されるオブジェクト配置処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the object arrangement | positioning process performed with PC of FIG. 図6の処理の実行時にディスプレイに表示される印刷設定画面の一例を示す図である。It is a figure which shows an example of the print setting screen displayed on a display at the time of execution of the process of FIG. 図7の印刷設定画面上で「詳細設定」ボタンが押下されたときに表示され詳細設定画面の一例を示す図である。FIG. 8 is a diagram illustrating an example of a detailed setting screen displayed when a “detailed setting” button is pressed on the print setting screen of FIG. 7. 通常の分割線を引かない場合の印刷レイアウト画面の一例を示す図である。It is a figure which shows an example of the printing layout screen when not drawing a normal dividing line. 分割線を引いた場合の印刷レイアウト画面の一例を示す図である。It is a figure which shows an example of the print layout screen at the time of drawing a dividing line. 画像移動処理を実行した場合の印刷レイアウト画面の一例を示す図である。FIG. 10 is a diagram illustrating an example of a print layout screen when image movement processing is executed. 図6のステップS605における画像境界判定処理の詳細を示すフローチャートである。7 is a flowchart showing details of image boundary determination processing in step S605 of FIG. 6. 図12のステップS1204,S1207における境界判定処理の詳細を示すフローチャートである。13 is a flowchart showing details of boundary determination processing in steps S1204 and S1207 in FIG. 図13のステップS1305における色判定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the color determination process in step S1305 of FIG. 図12のステップS1206における画像移動処理の詳細を示すフローチャートである。13 is a flowchart showing details of image movement processing in step S1206 of FIG. 図14のステップS1408における線決定処理の詳細を示すフローチャート(その1)である。It is a flowchart (the 1) which shows the detail of the line determination process in step S1408 of FIG. 図14のステップS1408における線決定処理の詳細を示すフローチャート(その2)である。It is a flowchart (the 2) which shows the detail of the line determination process in step S1408 of FIG. 本発明の第2の実施形態に係るオブジェクト配置装置にて実行される線決定処理の詳細を示すフローチャート(その1)である。It is a flowchart (the 1) which shows the detail of the line determination process performed with the object arrangement | positioning apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施形態に係るオブジェクト配置装置にて実行される線決定処理の詳細を示すフローチャート(その2)である。It is a flowchart (the 2) which shows the detail of the line determination process performed with the object arrangement | positioning apparatus which concerns on the 2nd Embodiment of this invention. (a)は複数の画像間に従来の切断用ガイド線が印刷された印刷結果の一例を示す図、(b)は画像間に空白を挿入して印刷された印刷結果の一例を示す図、(c)は画像間に画像の切断位置を示すカットマークを加えて印刷された印刷結果の一例を示す図である。(A) is a diagram showing an example of a printing result in which a conventional cutting guide line is printed between a plurality of images, (b) is a diagram showing an example of a printing result printed with a blank inserted between images, (C) is a diagram showing an example of a printing result printed by adding a cut mark indicating a cutting position of an image between images.

符号の説明Explanation of symbols

1 パーソナルコンピュータ(PC)
2 ディスプレイ
3 プリンタ
12 CPU
14 データ記憶部
15 境界判定部
16 色作成部
17 レイアウト作成部
18 レイアウト記憶部
20 画像位置データベース
21 画像情報データベース
28 空白位置情報データベース
1 Personal computer (PC)
2 Display 3 Printer 12 CPU
14 Data storage unit 15 Boundary determination unit 16 Color generation unit 17 Layout generation unit 18 Layout storage unit 20 Image position database 21 Image information database 28 Blank position information database

Claims (8)

画像または文書を含むオブジェクトを複数隣接して配置するオブジェクト配置手段を備えるオブジェクト配置装置において、
前記オブジェクト配置手段により隣接して配置されたオブジェクト間の境界が判別可能か否かを判断する判断手段と、
前記判断手段により前記境界が判別可能でないと判断された場合は、前記境界に線を引く制御を行う境界線描画制御手段とを備えることを特徴とするオブジェクト配置装置。
In an object placement device comprising object placement means for placing a plurality of objects including images or documents adjacent to each other,
A determination means for determining whether or not a boundary between objects arranged adjacent by the object placement means can be determined;
An object placement apparatus comprising: a boundary line drawing control unit that performs control for drawing a line on the boundary when the determination unit determines that the boundary cannot be determined.
前記判断手段は、前記オブジェクト間の境界領域における前記オブジェクトの色と隣接する他のオブジェクトの色とが同色または近似色か否かを判断し、
前記境界線制御手段は、前記判断手段により同色または近似色と判断された場合、前記オブジェクト間の境界領域における前記オブジェクトの色と前記他のオブジェクトの色に基づいて、前記境界に引く線の仕様を決定する境界線仕様決定手段を更に備えることを特徴とする請求項1記載のオブジェクト配置装置。
The determination means determines whether the color of the object in the boundary region between the objects and the color of another adjacent object are the same color or an approximate color;
The boundary line control means is a specification of a line to be drawn on the boundary based on the color of the object and the color of the other object in the boundary area between the objects when the determination means determines that the color is the same color or an approximate color. The object placement apparatus according to claim 1, further comprising boundary line specification determination means for determining.
前記境界線仕様決定手段は、前記境界に引く線の線色を、前記オブジェクト間の境界領域における前記オブジェクトの色と前記他のオブジェクトの色に近似する線色であってユーザに判別可能な線色に決定する境界線色決定手段を備えることを特徴とする請求項2記載のオブジェクト配置装置。   The boundary line specification determining means is a line color that is a line color that approximates the color of the object and the color of the other object in the boundary area between the objects, and is distinguishable by the user. 3. The object placement apparatus according to claim 2, further comprising boundary color determination means for determining a color. 前記境界線仕様決定手段は、前記境界に引く線の幅を変更する境界線幅変更手段を更に備え、
前記境界線幅変更手段は、前記境界に引く線の線色が前記オブジェクト間の境界領域における前記オブジェクトの色と前記他のオブジェクトの色に近似する線色であってもユーザに判別し難い線色であるときは、当該境界に引く線の線幅を太くすることを特徴とする請求項3記載のオブジェクト配置装置。
The boundary line specification determining means further includes boundary line width changing means for changing a width of a line drawn on the boundary,
The boundary line width changing means is a line that is difficult for the user to distinguish even if the line color of the line drawn on the boundary is a line color that approximates the color of the object and the color of the other object in the boundary region between the objects. 4. The object placement apparatus according to claim 3, wherein when the color is set, the line width of the line drawn on the boundary is increased.
前記オブジェクト配置手段は、隣接するオブジェクト間の境界領域の色が互いに同色または近似色にならないようにオブジェクトを移動するオブジェクト移動手段を備えることを特徴とする請求項1乃至4のいずれか1項に記載のオブジェクト配置装置。   5. The object placement unit according to claim 1, wherein the object placement unit includes an object movement unit that moves the object so that colors of boundary regions between adjacent objects are not the same color or an approximate color. The object placement device described. 画像または文書を含むオブジェクトを複数隣接して配置するオブジェクト配置工程と、
前記オブジェクト配置工程にて隣接して配置されたオブジェクト間の境界がユーザに判別可能か否かを判断する判断工程と、
前記判断工程にて前記境界が判別可能でないと判断された場合は、前記境界に線を引く制御を行う境界線描画制御工程とを備えることを特徴とするオブジェクト配置方法。
An object placement process for placing a plurality of objects including images or documents adjacent to each other;
A determination step of determining whether or not a user can determine a boundary between objects arranged adjacently in the object placement step;
An object placement method comprising: a boundary line drawing control step of performing control to draw a line on the boundary when it is determined in the determination step that the boundary cannot be determined.
請求項6記載のオブジェクト配置方法をコンピュータに実行させるためのコンピュータに読み取り可能なプログラム。   A computer-readable program for causing a computer to execute the object placement method according to claim 6. 請求項6記載のオブジェクト配置方法をコンピュータに実行させるためのコンピュータに読み取り可能なプログラムを記憶した記憶媒体。   A storage medium storing a computer-readable program for causing a computer to execute the object placement method according to claim 6.
JP2006322015A 2006-11-29 2006-11-29 Object arrangement device, method, program and storage medium Pending JP2008136102A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006322015A JP2008136102A (en) 2006-11-29 2006-11-29 Object arrangement device, method, program and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006322015A JP2008136102A (en) 2006-11-29 2006-11-29 Object arrangement device, method, program and storage medium

Publications (1)

Publication Number Publication Date
JP2008136102A true JP2008136102A (en) 2008-06-12

Family

ID=39560606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006322015A Pending JP2008136102A (en) 2006-11-29 2006-11-29 Object arrangement device, method, program and storage medium

Country Status (1)

Country Link
JP (1) JP2008136102A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020028014A (en) * 2018-08-10 2020-02-20 シャープ株式会社 Image processing device
JP2020032577A (en) * 2018-08-28 2020-03-05 キヤノン株式会社 Printing device and control method of the same, program and memorizing medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020028014A (en) * 2018-08-10 2020-02-20 シャープ株式会社 Image processing device
JP7033033B2 (en) 2018-08-10 2022-03-09 シャープ株式会社 Image processing equipment
JP2020032577A (en) * 2018-08-28 2020-03-05 キヤノン株式会社 Printing device and control method of the same, program and memorizing medium
JP7137405B2 (en) 2018-08-28 2022-09-14 キヤノン株式会社 PRINTING DEVICE AND CONTROL METHOD THEREOF, PROGRAM, STORAGE MEDIUM

Similar Documents

Publication Publication Date Title
US8418059B2 (en) Editing apparatus and editing method
JP3895492B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method
US7735004B2 (en) Layout control method, layout control apparatus, and layout control program
KR100716084B1 (en) Layout adjustment method and apparatus
US8601369B2 (en) Image processing apparatus, image processing method, and image processing program
CN102087578B (en) Color designation control device and color designation control method
JP2003231323A (en) Printing apparatus, printing method, image processing apparatus, image processing method, storage medium, and program
RU2005125831A (en) IMPROVED USER INTERFACE FOR DISPLAYING SELECTABLE CONTROLS OF THE PROGRAM FUNCTIONALITY CONTEXTUALLY RELEVANT WITH RESPECT TO THE SELECTED OBJECT
JP2006059359A5 (en)
US20080120071A1 (en) Scrapbook server, method of controlling same, and control program therefor
EP1624384A2 (en) Template document layout
US20180217743A1 (en) Image processing apparatus, control method, and computer readable medium
JP2010041663A (en) Image reading apparatus and guidance display for image reading system
US7847971B2 (en) Layout processing method, information processing apparatus, and computer program
US20080117455A1 (en) Apparatus for controlling printing of part images of scrapbook, method of controlling same, and control program therefor
US10742846B2 (en) Information processing apparatus and non-transitory computer readable medium for presenting visual effect of spot color
US9606752B2 (en) Associating print settings to individual print objects in a print preview
JP2008269557A (en) Image search apparatus and image search method
JP2008136102A (en) Object arrangement device, method, program and storage medium
JP3974105B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method
JP7377046B2 (en) Information processing device and its control method
US8059138B2 (en) Image processing and arranging system, image processing and arranging method, and computer readable medium for image processing and arranging
JP2011015280A (en) Image editing apparatus, program and image playback apparatus
JP2010165070A (en) Drawing editing method and drawing editing device
JP2003162278A (en) Display device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091112

A072 Dismissal of procedure

Free format text: JAPANESE INTERMEDIATE CODE: A073

Effective date: 20110322