JP2005321908A - Character string arranging device, character string arranging method, program and recording medium - Google Patents

Character string arranging device, character string arranging method, program and recording medium Download PDF

Info

Publication number
JP2005321908A
JP2005321908A JP2004138043A JP2004138043A JP2005321908A JP 2005321908 A JP2005321908 A JP 2005321908A JP 2004138043 A JP2004138043 A JP 2004138043A JP 2004138043 A JP2004138043 A JP 2004138043A JP 2005321908 A JP2005321908 A JP 2005321908A
Authority
JP
Japan
Prior art keywords
area
character string
calculating
image
character
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.)
Granted
Application number
JP2004138043A
Other languages
Japanese (ja)
Other versions
JP4074602B2 (en
Inventor
Murasaki Takato
紫 高藤
Mayumi Ishizaki
真弓 石崎
Hayato Kuki
隼人 九鬼
Masa Shiratori
政 白鳥
Makoto Katsuragawa
誠 桂川
Makoto Takeuchi
誠 竹内
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 Marketing Japan Inc
Original Assignee
Canon Marketing Japan 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 Marketing Japan Inc filed Critical Canon Marketing Japan Inc
Priority to JP2004138043A priority Critical patent/JP4074602B2/en
Publication of JP2005321908A publication Critical patent/JP2005321908A/en
Application granted granted Critical
Publication of JP4074602B2 publication Critical patent/JP4074602B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a character string arranging device or thr like for easily synthesizing a character string with an image. <P>SOLUTION: When a character string is displayed at a blank 39 part of an image 35, each time the character string is inputted to a text area 45, a character string arranging device displays a character string arrangeable region 51-2 where the character string is displayable by using different colors or the like. Each time the character string is inputted, the character string arrangeable region 51-2 is updated. When the character string input is decided, the character string is displayed on an image 35, and when the position of the character string is moved by an operator, and moved to an undisplayable region, the character string arranging device automatically moves and displays the character string in a character string arrangement region in the shortest distance. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像編集処理を行う文字列配置装置等に関するものであり、詳細には、入力された文字列をリアルタイムに画像と合成して表示装置上に反映する機能を有する文字列配置装置等に関する。   BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string arrangement device that performs image editing processing, and more specifically, a character string arrangement device that has a function of combining an input character string with an image in real time and reflecting it on a display device About.

近年、パーソナルコンピュータにおいて、「画像編集ソフト」等のアプリケーションツールにより任意形状の画像に文字列を挿入し、配置された複数の文字列の配置換えを行い、文字列を画像に収める画像編集方法が考えられている。   In recent years, an image editing method for inserting a character string into an image of an arbitrary shape by an application tool such as “image editing software” in a personal computer, rearranging a plurality of arranged character strings, and storing the character strings in an image It is considered.

その1つとして、特許文献1に文字列を任意形状の領域内に配置する画像編集方法に関し、文章と図形(挿絵など)とを組み合わせた画像の形成などを行う画像編集方法が開示されている。この画像編集方法においては、段落番号[0004]等に記載されているように、特に作業者が編集画面上で見取り図の配置位置を指定し、説明文と見取り図との合成を指示すると、画像編集処理として、説明文と見取り図との重なりの有無を文字セル(1文字分のドットマトリクス)毎に調べ、見取り図と重なる文字を行方向にずらし、且つ必要に応じて改行する文字移動処理が行われ、これによって見取り図の周囲に説明文を配置した1ページの画像が作成されるように動作するものである。また、同時に段落番号[0010]乃至[0016]にもこの画像編集方法について詳細に記載されている。   As one of such methods, Patent Document 1 discloses an image editing method for arranging a character string in an area of an arbitrary shape, and an image editing method for forming an image in which a sentence and a figure (such as an illustration) are combined is disclosed. . In this image editing method, as described in paragraph [0004] and the like, when an operator designates the layout position of a sketch drawing on the editing screen and instructs the composition of the explanatory text and the sketch drawing, image editing is performed. As a process, a character movement process is performed for checking whether or not there is an overlap between the explanatory text and the sketch for each character cell (dot matrix for one character), shifting the character overlapping the sketch to the line direction, and making a line break if necessary. Thus, an operation is performed so that an image of one page in which an explanatory note is arranged around the sketch is created. At the same time, the image editing method is described in detail in paragraph numbers [0010] to [0016].

また、特許文献2には、コンピュータシステムを用いて、カタログのレイアウトを行う際に、紙面に掲載する文章や写真等の素材データの割付作業を自動化すると共に、割付後の微調整を容易なものとする装置が開示されている。   Patent Document 2 discloses a method for automating the assignment work of material data such as texts and photographs to be published on paper when performing catalog layout using a computer system, and facilitating fine adjustment after assignment. An apparatus is disclosed.

この装置においては、段落番号[0009]等に記載されているように、特にデータベースによって関連付けられた画像データと文字データがあり、任意形状の領域に対し、画像または文字のいずれかに優先順位を付け、レイアウトする。   In this apparatus, as described in paragraph [0009] and the like, there is image data and character data particularly associated by a database, and priority is given to either an image or a character for an area of arbitrary shape. And layout.

このとき、双方の画像が任意形状の領域内に収まらない場合、コンピュータが作業者に警告するように動作するものである。また、同時に段落番号[0067]乃至[0069]にもこのシステムについて詳細に記載されている。   At this time, if both the images do not fit in the area of the arbitrary shape, the computer operates so as to warn the operator. At the same time, the system is described in detail in paragraph numbers [0067] to [0069].

特開平6−243225号公報JP-A-6-243225 特開平6−194819号公報Japanese Patent Laid-Open No. 6-194819

しかしながら、特許文献1に記載の画像編集システムでは、文字列を任意形状の領域内に配置することが可能であるが、特に文字セル(1文字分のドットマトリクス)単位での配置を行う為、1単位の文字列の移動距離が大きく、文字列の配置位置を微細に調整することが困難であるという問題点がある。   However, in the image editing system described in Patent Document 1, it is possible to arrange a character string in an area of an arbitrary shape. However, in order to perform arrangement in units of character cells (dot matrix for one character) in particular, There is a problem in that it is difficult to finely adjust the arrangement position of the character string because the moving distance of the character string of one unit is large.

また、特許文献2に記載の文字・画像割付装置においては、画像データや文字データを任意形状の領域内に自動的に配置するための技術は開示されているが、文字と画像の詳細なレイアウトを施すことが困難であるという問題点がある。   Further, in the character / image allocation device described in Patent Document 2, a technique for automatically arranging image data and character data in an area of an arbitrary shape is disclosed, but a detailed layout of characters and images is disclosed. There is a problem that it is difficult to apply.

また、画像データの余白部分を使用できず、仮に余白部分を使用するならば、画像データを一旦トリミングするなどして、修正を施す必要があり、労力的負担等が増大し、つまり、文字列等を容易に画像に納められないという問題点がある。   In addition, if the margin portion of the image data cannot be used, and if the margin portion is used, it is necessary to make a correction by trimming the image data once, etc., which increases the labor burden and the like. Etc. cannot be easily put in the image.

本発明はこのような問題を鑑みてなされたもので、その目的とするところは、文字列等を画像に容易に合成する、文字列配置装置等を提供することである。   The present invention has been made in view of such problems, and an object of the present invention is to provide a character string arrangement device or the like that easily combines a character string or the like with an image.

前述した目的を達成するための第1の発明は、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置であって、前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出して識別可能に表示する配置可能領域算出手段と、を具備することを特徴とする文字列配置装置である。   A first invention for achieving the above-described object is a character string arranging device that arranges a character string composed of at least one character together with an image in a display area, and indicates an area in which editing is not permitted in the image. Non-editable area calculating means for calculating the non-editable area, character string area calculating means for calculating a character string area that is an area occupied by the character string, and in the display area, the character string area and the non-editable area are: A character string arranging device comprising: a dispositionable area calculating unit that calculates a dispositionable area that is a region in which the character string can be disposed by calculating a non-overlapping area, and displays the recognizable area. It is.

表示領域とは、画像や文字列等を表示する領域を示し、表示装置の画面全体、或いは、アプリケーションの中で指定される表示領域のことを示す。
画像とは、写真画像、イラスト画像、ロゴマーク等を含む画像等である。例えば写真画像は、被写体部分と余白部分に分けられ、被写体部分を編集不可領域として被写体部分に重ならないように文字列が配置される。
編集不可領域とは、文字の重ね置き、合成処理等を許可しない領域であり、例えば、写真画像の場合、被写体部分であり、イラスト画像の場合、イラスト部分である。
文字列とは、字句、数字、記号、符号等、また文字列に限らず所定の形状の画像やイラスト等、合成用の画像等を含む概念である。
文字列領域は、文字列が占める領域であり、例えば、行毎に文字列を内包する矩形領域あるいは各文字毎の矩形領域を組み合わせた形状の領域等である。
配置可能領域とは、文字列領域と編集不可領域が重ならない領域であり、文字列の配置を可能とする領域である。配置可能領域の表示色を他と異なる色で表示したり斜線等を施して、他の領域との区別を行い識別可能とするようにしてもよい。
The display area indicates an area for displaying an image, a character string, and the like, and indicates an entire screen of the display device or a display area specified in an application.
An image is an image including a photographic image, an illustration image, a logo mark, or the like. For example, a photographic image is divided into a subject portion and a margin portion, and a character string is arranged so that the subject portion is not editable and does not overlap the subject portion.
The non-editable area is an area that does not allow character superposition, composition processing, and the like. For example, in the case of a photographic image, it is a subject part, and in the case of an illustration image, it is an illustration part.
The character string is a concept including a lexical word, a number, a symbol, a code, and the like, and an image for synthesis such as an image or an illustration of a predetermined shape as well as the character string.
The character string area is an area occupied by the character string. For example, the character string area is a rectangular area containing the character string for each line or a combined area of the rectangular areas for each character.
The placeable area is an area where the character string area and the non-editable area do not overlap, and is an area where the character string can be placed. The display color of the arrangementable area may be displayed in a different color from other colors, or may be hatched to distinguish it from other areas so that it can be identified.

第1の発明による文字列配置装置は、表示領域に表示される画像において、編集を許可しない領域を示す編集不可領域を算出し、入力された文字列が占める領域である文字列領域を算出し、文字列領域と編集不可領域が重ならない領域を算出することにより、文字列を配置可能な領域である配置可能領域を算出し、当該配置可能領域を色別表示等により識別可能に表示する。   The character string arrangement device according to the first invention calculates an uneditable area indicating an area where editing is not permitted in an image displayed in the display area, and calculates a character string area which is an area occupied by the input character string. Then, by calculating an area where the character string area and the non-editable area do not overlap with each other, an allocable area that is an area where the character string can be arranged is calculated, and the allocable area is displayed so as to be identifiable by color display or the like.

また、文字列配置装置は、取得した画像から編集不可領域を算出することに換えて、編集不可領域に関する情報が予め付加された画像を取得するようにしてもよい。この場合、文字列配置装置において編集不可領域を算出する必要はない。   Further, the character string arrangement device may acquire an image to which information related to the non-editable area is added in advance, instead of calculating the non-editable area from the acquired image. In this case, it is not necessary to calculate the non-editable area in the character string arrangement device.

また、文字列配置装置は、文字列を構成する各文字の入力毎に、文字列領域を算出し、配置可能領域を算出して表示することが望ましい。   In addition, it is desirable that the character string arrangement device calculates a character string area and calculates and displays an arrangement possible area for each input of each character constituting the character string.

また、文字列配置装置は、文字列領域が配置可能領域の範囲内に収まらない場合、配置可能領域の範囲内に文字列領域を移動することが望ましい。この場合、文字列配置装置は、移動に要する距離が最小となる移動先を算出し、当該移動先に文字列領域を移動させるようにしてもよい。   In addition, when the character string area does not fall within the range of the arrangeable area, the character string arrangement device desirably moves the character string area within the range of the arrangeable area. In this case, the character string arrangement device may calculate a movement destination that minimizes the distance required for movement, and move the character string area to the movement destination.

また、文字列配置装置は、文字列を構成する各文字の高さ及び幅に基づいて文字列領域を算出するようにしてもよい。
例えば、文字列配置装置は、行毎に文字列を内包する矩形領域を作成して文字列領域を算出するようにしてもよいし、各文字毎に当該文字を内包する矩形領域を作成して文字列領域を算出するようにしてもよい。
また、文字列配置装置は、表示領域上の画素を文字列領域の配置を判断しつつ走査し、当該文字列領域と編集不可領域との間に重なり部分が存在しない場合における、表示領域において当該文字列領域が占める領域の和集合を配置可能領域とすることが望ましい。
Further, the character string arrangement device may calculate the character string region based on the height and width of each character constituting the character string.
For example, the character string placement device may calculate a character string region by creating a rectangular region containing a character string for each line, or create a rectangular region containing the character for each character. The character string area may be calculated.
Further, the character string arranging device scans the pixels on the display area while judging the arrangement of the character string area, and the character string arranging device performs the scanning in the display area when there is no overlapping portion between the character string area and the non-editable area. It is desirable that the union of the areas occupied by the character string area is the placeable area.

第1の発明では、文字列配置装置は、各文字の入力毎に、リアルタイムに文字列の配置可能な画像領域を示すので、操作者は、文字列の配置可能な領域を確認しながら、画像と文字列を容易に合成・編集することができる。
また、文字列配置装置は、入力された文字列を配置可能な領域に自動的に配置するので、操作者の労力を軽減することができる。
In the first invention, the character string arranging device shows an image area in which the character string can be arranged in real time for each character input. Can be easily synthesized and edited.
Moreover, since the character string arrangement device automatically arranges the input character string in an area where the character string can be arranged, the labor of the operator can be reduced.

第2の発明は、コンピュータを、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置として機能させるプログラムであって、前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出手段、として機能させるプログラムである。   A second invention is a program for causing a computer to function as a character string arranging device that arranges a character string composed of at least one character together with an image in a display area, wherein the editing indicates an area in which editing is not permitted in the image In the non-editable area calculating means for calculating the non-editable area, the character string area calculating means for calculating the character string area which is the area occupied by the character string, and the character string area and the non-editable area overlap in the display area. This is a program that functions as an allocable area calculating unit that calculates an allocable area, which is an area where the character string can be laid, by calculating an area that should not be.

第3の発明は、コンピュータを、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置として機能させるプログラムを記録したコンピュータ読取可能な記録媒体であって、前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出手段、として機能させるプログラムを記録したコンピュータ読取可能な記録媒体である。   A third invention is a computer-readable recording medium recording a program that causes a computer to function as a character string arranging device that arranges a character string including at least one character together with an image in a display area. In the edit area, the non-editable area calculating means for calculating the non-editable area indicating the area where editing is not permitted, the character string area calculating means for calculating the character string area that is the area occupied by the character string, and the character string in the display area A computer-readable recording medium storing a program that functions as an allocable area calculating unit that calculates an allocable area that is an area where the character string can be laid out by calculating an area where the area and the non-editable area do not overlap. It is a recording medium.

第2の発明は、コンピュータを第1の発明の文字列配置装置として機能させるプログラムに関する発明である。
第3の発明は、コンピュータを第1の発明の文字列配置装置として機能させるプログラムを記録したコンピュータ読取可能な記録媒体に関する発明である。
尚、上記のプログラムをCD−ROM等の記録媒体に保持させて流通させてもよいし、このプログラムを通信回線を介して送受することもできる。
The second invention is an invention relating to a program for causing a computer to function as the character string arranging device of the first invention.
The third invention is an invention relating to a computer-readable recording medium on which a program for causing a computer to function as the character string arranging device of the first invention is recorded.
Note that the above program may be distributed by being held on a recording medium such as a CD-ROM, or the program can be transmitted and received via a communication line.

第4の発明は、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置方法であって、前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出ステップと、前記文字列が占める領域である文字列領域を算出する文字列領域算出ステップと、前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出ステップと、を具備することを特徴とする文字列配置方法である。   A fourth invention is a character string arrangement method for arranging a character string composed of at least one character together with an image in a display area, wherein the editable area for calculating an uneditable area indicating an area that is not permitted to be edited in the image is calculated. An area calculating step, a character string area calculating step for calculating a character string area that is an area occupied by the character string, and calculating an area where the character string area and the non-editable area do not overlap in the display area. An arrangement possible area calculating step of calculating an arrangement possible area that is an area in which the character string can be arranged.

第4の発明は、第1の発明の文字列配置装置における、文字列配置方法に関する発明である。   4th invention is the invention regarding the character string arrangement | positioning method in the character string arrangement | positioning apparatus of 1st invention.

本発明によれば、文字列を画像に容易に合成する、文字列配置装置等を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the character string arrangement | positioning apparatus etc. which synthesize | combine a character string easily to an image can be provided.

以下に、図面に基づいて本発明の実施の形態を詳細に説明する。図1は、本実施の形態に係る文字列配置装置1の構成を示す図である。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram showing a configuration of a character string arrangement device 1 according to the present embodiment.

(1.構成)
(1−1.文字列配置装置1の構成)
文字列配置装置1は、中央処理装置(CPU)等を備える制御部3と、ROM、RAM、HDD等の記憶部5と、ネットワークに接続するモデムやLANボード等の通信部7と、プリンタ等の印刷部9と、CRTや液晶表示装置等の表示部11と、キーボード、マウス又はマイク等の入力部13と、画像情報等をメディアを介して読み込み書き込みを行うメディア入出力部15とから構成され、それぞれがバス17で互いに接続されている。文字列配置装置1はコンピュータ等の装置であり、記憶部5等に格納される実行プログラム(アプリケーションプログラム)が起動されて動作する。
(1. Configuration)
(1-1. Configuration of Character String Arrangement Device 1)
The character string arranging device 1 includes a control unit 3 including a central processing unit (CPU), a storage unit 5 such as a ROM, a RAM, and an HDD, a communication unit 7 such as a modem or a LAN board connected to a network, a printer, and the like. A printing unit 9, a display unit 11 such as a CRT or a liquid crystal display device, an input unit 13 such as a keyboard, a mouse, or a microphone, and a media input / output unit 15 that reads and writes image information and the like via media. These are connected to each other by a bus 17. The character string arrangement device 1 is a device such as a computer, and operates by starting an execution program (application program) stored in the storage unit 5 or the like.

尚、図示していないが、メディア入出力部15には、画像情報を取得するデジタルカメラ等の画像取得装置、フレキシブルディスク等の可搬型メディアにアクセスする装置、取得した画像等を記憶する外部記憶装置等が接続される。   Although not shown, the media input / output unit 15 includes an image acquisition device such as a digital camera that acquires image information, a device that accesses portable media such as a flexible disk, and an external storage that stores the acquired image and the like. Devices etc. are connected.

(1−2.記憶部5の構成)
図2は、文字列配置装置1の記憶部5の構成を示す。記憶部5は、ROM(Read Only Memory)19とRAM(Random Access Memory)21とからなる。ROM19は、読み出し専用の記憶部であり、システム全体を管理するソフトウェアであるOS(Operating
System)25、実行プログラム23等を格納する。RAM21は、読み出し書き込みの可能な記憶部であり、本実施の形態における画像データ27、プログラム実行時の作業用データ29等を格納する領域を備える。
(1-2. Configuration of Storage Unit 5)
FIG. 2 shows the configuration of the storage unit 5 of the character string arrangement device 1. The storage unit 5 includes a ROM (Read Only Memory) 19 and a RAM (Random Access Memory) 21. The ROM 19 is a read-only storage unit and is an OS (Operating System) that is software for managing the entire system.
System) 25, an execution program 23, and the like are stored. The RAM 21 is a readable / writable storage unit, and includes an area for storing image data 27, work data 29 at the time of program execution, and the like in the present embodiment.

尚、記録部5内においてROM19に実行プログラム23、OS25等が記録される例を示しているが、当然のことながらこれに限られず、CD−ROM、DVD−ROM等の可搬型メディア、HDD等の外部記憶装置等に格納されていても本実施の形態に係る発明を実現することができる。   Although an example in which the execution program 23, OS 25, etc. are recorded in the ROM 19 in the recording unit 5 is shown, of course, the present invention is not limited to this, and portable media such as CD-ROM and DVD-ROM, HDD, etc. Even if it is stored in the external storage device or the like, the invention according to this embodiment can be realized.

(2.文字列配置アプリケーションの動作について)
本実施の形態の文字列配置装置1は、記憶部5に格納されている文字列配置アプリケーションの実行プログラム23が起動されると、制御部3は、液晶表示装置などの表示部11に図3(a)に示す文字列配置アプリケーションウィンドウ31を表示する。尚、制御部3は、可搬型メディアや外部記憶装置等に格納されている実行プログラム23を、RAM21にロードして実行しても良い。
(2. About the operation of the character string placement application)
In the character string arrangement device 1 according to the present embodiment, when the execution program 23 of the character string arrangement application stored in the storage unit 5 is started, the control unit 3 displays the FIG. 3 on the display unit 11 such as a liquid crystal display device. The character string arrangement application window 31 shown in (a) is displayed. The control unit 3 may load an execution program 23 stored in a portable medium, an external storage device, or the like into the RAM 21 and execute it.

図3(a)に示すように、文字列配置アプリケーションウィンドウ31には、アプリケーションを終了するためのアプリケーション終了ボタン46、画像表示領域33、テキストエリア45、OKボタン47等が配置される。   As shown in FIG. 3A, an application end button 46 for ending the application, an image display area 33, a text area 45, an OK button 47, and the like are arranged in the character string arrangement application window 31.

画像表示領域33には、通信部7を介して取得したネットワーク上の画像35、或いはメディア入出力部15を介して可搬型メディアや外部記憶装置等から取得した画像35が表示される。   In the image display area 33, an image 35 on the network acquired via the communication unit 7 or an image 35 acquired from a portable medium or an external storage device via the media input / output unit 15 is displayed.

尚、本実施の形態で説明する画像35が、例えば写真画像であるとすると、画像35は被写体37部分と余白39部分に分けられる。テキストエリア45に入力する文字列は余白39部分に配置するものとする。   If the image 35 described in the present embodiment is, for example, a photographic image, the image 35 is divided into a subject 37 portion and a margin 39 portion. It is assumed that the character string input to the text area 45 is arranged in the margin 39.

また、後述するが、画像表示領域33と画像35の左上を揃えて配置し、画像表示領域33の左上を基準点として、横方向に座標軸X41、縦方向に座標軸Y43をとり、座標の単位をドットとして、画像35中のドットの位置を指定するものとする。   As will be described later, the image display area 33 and the upper left of the image 35 are aligned, and the upper left of the image display area 33 is used as a reference point, the coordinate axis X41 in the horizontal direction and the coordinate axis Y43 in the vertical direction, and the coordinate unit is Assume that the dot position in the image 35 is designated as a dot.

図3(b)、図3(c)は、テキストエリア45に文字等が入力されると、画像35上にどのように文字が配置されていくかを示す図である。図3(b)は、「あい」の2文字が入力された場合、画像35の左上に「あい」が配置される文字列領域49−1が示され、同時に、「あい」が配置可能な文字配置可能領域51−1が、表示色等を変えて表示される(図3(b)では文字配置可能領域51−1を斜線で示す)。   FIGS. 3B and 3C are diagrams showing how characters are arranged on the image 35 when characters or the like are input to the text area 45. FIG. 3B shows a character string area 49-1 in which “Ai” is arranged at the upper left of the image 35 when two characters “Ai” are input, and “Ai” can be arranged at the same time. The character allocable area 51-1 is displayed with a different display color or the like (in FIG. 3B, the character allocable area 51-1 is indicated by hatching).

入力文字列が、「あい」+「う」+「え」・・と1文字ずつ増加するに従って、入力の都度、図3(c)のように文字列領域49−2に表示され、文字配置可能領域51−2は、図3(b)の領域よりも縮小されている。   As the input character string increases by one character, “Ai” + “U” + “E”..., The character string is displayed in the character string area 49-2 as shown in FIG. The possible area 51-2 is smaller than the area shown in FIG.

操作者は文字列領域49−2を、画面35上の希望する位置にドラッグアンドドロップすることで文字配置可能領域51−2の範囲の中で移動することができる。また、後述するが、本実施の形態では、文字列の移動された領域が文字配置可能領域51−2から外れた場合、文字列領域49−2の左上の座標に最も近い位置の文字配置可能領域51−2に、文字列領域49−2を自動的に移動する機能を備える。   The operator can move the character string area 49-2 within the range of the character arrangement possible area 51-2 by dragging and dropping the character string area 49-2 to a desired position on the screen 35. Further, as will be described later, in the present embodiment, when the area where the character string is moved deviates from the character arrangement possible area 51-2, the character arrangement at the position closest to the upper left coordinates of the character string area 49-2 is possible. The area 51-2 has a function of automatically moving the character string area 49-2.

(3.処理手順)
(3−1.主処理手順)
次に、図4乃至図10に示すフローチャートに従って、本実施の形態の文字列配置装置1の処理手順を示す。尚、図11乃至図19はフローチャートを説明する図であり、適宜説明する。
また、文字列配置装置1は、記憶部5(HDD等)等に格納するプログラム(実行プログラム23、OS25のプログラム等)をRAM21上にロードしてCPU(制御部3)の制御の下に以下の各ステップを実行する。
(3. Processing procedure)
(3-1. Main processing procedure)
Next, a processing procedure of the character string arrangement device 1 according to the present embodiment will be described according to the flowcharts shown in FIGS. Note that FIGS. 11 to 19 are flowcharts for explaining the flowcharts.
Further, the character string arranging device 1 loads a program (execution program 23, OS 25 program, etc.) stored in the storage unit 5 (HDD or the like) onto the RAM 21 and controls the following under the control of the CPU (control unit 3). Execute each step.

図4は、本実施の形態の文字列配置装置1の主処理手順を示す。まず、文字列配置装置1の制御部3は、画像取得等の初期設定情報取得処理1000を行う。詳細については後述する。初期設定情報取得処理1000が終了すると、制御部3はイベント監視2000を行う。   FIG. 4 shows a main processing procedure of the character string arrangement device 1 of the present embodiment. First, the control unit 3 of the character string arrangement device 1 performs initial setting information acquisition processing 1000 such as image acquisition. Details will be described later. When the initial setting information acquisition process 1000 ends, the control unit 3 performs event monitoring 2000.

イベント監視2000とは、マウスやキーボード等の入力部13から得られる操作を監視することである。図3に示すアプリケーション終了ボタン46がクリックされると、イベント監視2000が終了し、文字列配置アプリケーションが終了する。詳細については後述する。   The event monitoring 2000 is to monitor an operation obtained from the input unit 13 such as a mouse or a keyboard. When the application end button 46 shown in FIG. 3 is clicked, the event monitoring 2000 ends, and the character string arrangement application ends. Details will be described later.

(3−2.初期設定情報取得処理)
図5は、初期設定情報取得処理1000を示すフローチャートである。まず、操作者が本実施の形態の文字列配置装置1において文字列配置アプリケーションを起動する。制御部3は、記憶部5のROM19に格納されている文字列配置アプリケーションの実行プログラム23を、適宜RAM21にロードして実行する。尚、実行プログラム23は、可搬型メディアや、外部記録装置等に格納されるものであっても良い。
(3-2. Initial setting information acquisition process)
FIG. 5 is a flowchart showing the initial setting information acquisition process 1000. First, the operator activates a character string arrangement application in the character string arrangement device 1 of the present embodiment. The control unit 3 appropriately loads the execution program 23 of the character string arrangement application stored in the ROM 19 of the storage unit 5 into the RAM 21 and executes it. The execution program 23 may be stored in a portable medium or an external recording device.

制御部3は、液晶表示装置等の表示部11に、図3(a)に示す文字列配置アプリケーションウィンドウ31を表示する。操作者が、文字列を入力合成する基になる画像35を指定すると(画像35の指定方法についての説明は省略する)、制御部3は指定された画像35を取得し(ステップ1001)、該文字列配置アプリケーションウィンドウ31の画像表示領域33の左上に、画像35の左上を合わせて配置し表示させる。即ち、画像35の基準点53(0,0)(図11に示す)と、画像表示領域33の座標の基準点(0,0)とを一致させる。   The control unit 3 displays a character string arrangement application window 31 shown in FIG. 3A on the display unit 11 such as a liquid crystal display device. When the operator designates an image 35 that is a base for inputting and synthesizing a character string (the description of the designation method of the image 35 is omitted), the control unit 3 acquires the designated image 35 (step 1001), and The upper left of the image 35 is aligned and displayed on the upper left of the image display area 33 of the character string arrangement application window 31. That is, the reference point 53 (0, 0) (shown in FIG. 11) of the image 35 is matched with the reference point (0, 0) of the coordinates of the image display area 33.

尚、画像35は、記憶部5、可搬型メディア、又は外部記録装置等に格納されている。また、画像35を通信部7からネットワーク経由で読み込むようにしても良い。   The image 35 is stored in the storage unit 5, a portable medium, an external recording device, or the like. The image 35 may be read from the communication unit 7 via a network.

図11に、取得した画像35を示す。画像35は、被写体37部分と余白39部分から成るものとする。本実施の形態では、被写体37部分に文字列が重なることを回避し、余白39部分に文字列を配置する。   FIG. 11 shows the acquired image 35. The image 35 is composed of a subject 37 portion and a margin 39 portion. In the present embodiment, the character string is prevented from overlapping the subject 37 portion, and the character string is arranged in the margin 39 portion.

図11において、画像35の左上の画素を基準点53(0,0)とし、画像35の右下の画素を対角点54とすると、対角点54のX座標は、画像幅55を示すMax_Xであり、Y座標は画像高56を示すMax_Yである。制御部3は、画像幅55(Max_X)と、画像高56(Max_Y)のデータを記憶部5(RAM21)に作業用データ29として格納する(ステップ1002)。   In FIG. 11, assuming that the upper left pixel of the image 35 is the reference point 53 (0, 0) and the lower right pixel of the image 35 is the diagonal point 54, the X coordinate of the diagonal point 54 indicates the image width 55. Max_X, and the Y coordinate is Max_Y indicating the image height 56. The control unit 3 stores the data of the image width 55 (Max_X) and the image height 56 (Max_Y) as work data 29 in the storage unit 5 (RAM 21) (step 1002).

例えば、VGA(640×480)の画像であれば、Max_X=640、Max_Y=480を得る。また、200万画素程度の写真画像(例えば、1600×1200)であれば、Max_X=1600、Max_Y=1200を得る。   For example, if the image is VGA (640 × 480), Max_X = 640 and Max_Y = 480 are obtained. For a photographic image of about 2 million pixels (for example, 1600 × 1200), Max_X = 1600 and Max_Y = 1200 are obtained.

次に、図12に示すように、制御部3は、画像35の全画素について、被写体37部分をビット情報「1」に変換し、余白39部分をビット情報[0]に変換し、画像データ27として記憶部5のRAM21に格納する(ステップ1003)。   Next, as shown in FIG. 12, the control unit 3 converts the subject 37 portion into bit information “1” and the margin 39 portion into bit information [0] for all the pixels of the image 35, 27 is stored in the RAM 21 of the storage unit 5 (step 1003).

尚、上記に示した、画像データをビット情報に変換する処理に関しては、被写体部分のビット情報を[1]、余白部分のビット情報を[0]などとする技術が開示されており、この技術を用いることができる(特開2003−224819号公報参照)。   Regarding the above-described processing for converting image data into bit information, a technique is disclosed in which the bit information of the subject portion is [1], the bit information of the margin portion is [0], and the like. Can be used (see JP 2003-224819 A).

また、上記技術を採用したカメラ等で撮影した画像であれば、カメラ等において、被写体部分のビット情報を[1]、余白部分のビット情報を[0]とする処理が行われているため、文字列配置装置1において変換する処理は必要なくなる。   In addition, in the case of an image shot with a camera or the like that employs the above technique, since the bit information of the subject portion is [1] and the bit information of the margin portion is [0] in the camera or the like, The conversion processing in the character string arrangement device 1 is not necessary.

制御部3は、初期設定情報取得処理1000を終了し、イベント監視2000のステップに進む。   The control unit 3 ends the initial setting information acquisition processing 1000 and proceeds to the event monitoring 2000 step.

(3−3.イベント監視)
マウスやキーボード等の入力部13から得られる操作をイベントとする。制御部3は、イベントを監視、即ち入力待ち状態である。図6にイベント監視2000のフローチャートを示す。
(3-3. Event monitoring)
An operation obtained from the input unit 13 such as a mouse or a keyboard is defined as an event. The control unit 3 monitors events, that is, waits for input. FIG. 6 shows a flowchart of the event monitoring 2000.

制御部3は、イベントが発生すると(ステップ2001)、イベント情報を読み取り、イベントが「アプリケーション終了」の場合、即ち図3にてアプリケーション終了ボタン46がクリックされた場合には(ステップ2002のYES)、処理中のイベントを中断し(ステップ2003)、アプリケーションを終了する。   When an event occurs (step 2001), the control unit 3 reads the event information, and when the event is “application end”, that is, when the application end button 46 is clicked in FIG. 3 (YES in step 2002). The event being processed is interrupted (step 2003), and the application is terminated.

イベントが、「アプリケーション終了」以外、例えばテキストエリア45への文字入力やOKボタン47のクリック、また文字列の移動操作等の場合(ステップ2002のNO)、制御部3は、既にイベント処理が動作中であれば(ステップ2004のYES)、当該イベント処理を中断して(ステップ2005)、イベント処理3000のステップに移る。イベント処理が動作中でなければ(ステップ2004のNO)、そのままイベント処理3000のステップに移る。   When the event is other than “application end”, for example, when a character is input to the text area 45, the OK button 47 is clicked, or a character string is moved (NO in step 2002), the control unit 3 has already started the event processing. If it is medium (YES in step 2004), the event processing is interrupted (step 2005), and the process proceeds to the step of event processing 3000. If the event process is not in operation (NO in step 2004), the process proceeds to the event process 3000 step.

尚、図6に示すイベント監視は、イベント処理3000とは別個のスレッド(又はプロセス)として実行されており、制御部3は、常にイベント発生を監視する。   Note that the event monitoring shown in FIG. 6 is executed as a thread (or process) separate from the event processing 3000, and the control unit 3 always monitors the occurrence of an event.

従って、イベント処理3000にステップが移って、図7に示すイベント処理が実行されていても、制御部3が、イベント監視スレッド(又はプロセス)においてイベントの発生を検知するとイベント発生2001のステップに移る。   Therefore, even if the step moves to the event processing 3000 and the event processing shown in FIG. 7 is executed, when the control unit 3 detects the occurrence of the event in the event monitoring thread (or process), the step moves to the event generation 2001 step. .

このようにイベント監視スレッド(又はプロセス)とイベント処理スレッド(又はプロセス)を同時に実行し、制御部3が、イベント監視スレッド(又はプロセス)においてイベント発生を検知した場合には、制御部3は、図6に示すイベント監視のステップ2005において、既に実行されているイベント処理を中断して、ステップ3000において新たなイベント処理を再度実行することになる。   In this way, when the event monitoring thread (or process) and the event processing thread (or process) are simultaneously executed and the control unit 3 detects an event occurrence in the event monitoring thread (or process), the control unit 3 In the event monitoring step 2005 shown in FIG. 6, the already executed event processing is interrupted, and in step 3000, a new event processing is executed again.

上述したように、イベント処理スレッド(又はプロセス)の実行中に、割り込みを認めることにより、画像上に最新の文字列領域を反映することができるようになるため、リアルタイムな表示を可能にする。   As described above, since the latest character string area can be reflected on the image by allowing an interrupt during the execution of the event processing thread (or process), real-time display is possible.

(3−3−0.イベント処理)
次に、図7に示すイベント処理3000のフローチャートを説明する。制御部3は、イベント処理3000を開始すると、まず文字列の形データ取得処理4000を行う。詳細については図8で説明するが、入力文字列を1行毎に矩形領域として算出し、少なくとも1行からなる文字列の形を、矩形領域が合成されたデータとして取得する。
(3-3-0. Event processing)
Next, a flowchart of the event process 3000 shown in FIG. 7 will be described. When the event process 3000 is started, the control unit 3 first performs a character string shape data acquisition process 4000. Although details will be described with reference to FIG. 8, the input character string is calculated as a rectangular area for each line, and the shape of the character string including at least one line is acquired as data obtained by synthesizing the rectangular area.

次に制御部3は、配置可能エリア表示処理5000を行う。詳細については図9で説明するが、入力文字列が配置可能な領域(図3で示す文字配置可能領域51)を表示する。   Next, the control unit 3 performs an arrangement area display process 5000. Although details will be described with reference to FIG. 9, an area where the input character string can be arranged (character arrangement area 51 shown in FIG. 3) is displayed.

引き続き文字列が入力されている場合(ステップ3001:文字列入力)は、文字列の形データ取得処理4000に戻り、文字列が入力されるごとにステップ4000及びステップ5000の処理を繰り返し、文字列の形データ取得、及び配置可能エリア表示の更新を行う。   If a character string is continuously input (step 3001: character string input), the process returns to the character string shape data acquisition process 4000. The process of steps 4000 and 5000 is repeated each time a character string is input. The shape data acquisition and the arrangement area display are updated.

文字列入力が終了して、操作者によりOKボタン47がクリックされると(ステップ3001:OKボタンクリック)、制御部3は文字列レイアウト配置処理6000を行う。詳細については、図10で説明する。制御部3は、文字列レイアウト配置処理6000が終了すると、イベント処理3000を終了し、イベント監視2000に戻る。   When the input of the character string is completed and the OK button 47 is clicked by the operator (step 3001: OK button click), the control unit 3 performs a character string layout arrangement process 6000. Details will be described with reference to FIG. When the character string layout arrangement processing 6000 ends, the control unit 3 ends the event processing 3000 and returns to the event monitoring 2000.

(3−3−1.文字列の形データ取得処理)
図8は、文字列の形データ取得処理4000のフローチャートを示す。制御部3は、図3(a)に示すテキストエリア45内にイベントが発生すると、入力された文字列を読み取り、文字列の形をデータとして取得する。テキストエリア45内のイベントとは、文字入力、入力文字の確定、文字の大きさ変更、書式変更、改行等の操作である。入力モードが直接入力の時は1文字ごと、直接モード以外は、文字の下の点線が消えた時点で確定とし、確定されるごとにテキストエリア45内の文字列を全て読み込んで文字列の形を取得するものとする。
(3-3-1. Character string shape data acquisition processing)
FIG. 8 is a flowchart of character string shape data acquisition processing 4000. When an event occurs in the text area 45 shown in FIG. 3A, the control unit 3 reads the input character string and acquires the shape of the character string as data. The events in the text area 45 are operations such as character input, input character confirmation, character size change, format change, and line feed. When the input mode is direct input, it is determined for each character. When the input mode is other than direct mode, it is determined when the dotted line below the character disappears. Shall be obtained.

図13は、テキストエリア45に入力された文字列の1行目(i=1)を示す。jの値は、その文字が行の初めから何文字目であるかを示す。1行の中に含まれる複数の文字の大きさが様々であっても、文字列1行分毎に矩形データとして得るものとする。即ち1行を構成する文字のうち最も文字高の高いものを該文字列1行分の矩形データの高さとし、1行分の文字幅の累計を該文字列1行分の矩形データの幅とする。   FIG. 13 shows the first line (i = 1) of the character string input to the text area 45. The value of j indicates how many characters the character is from the beginning of the line. Even if the size of a plurality of characters included in one line varies, it is assumed that rectangular data is obtained for each line of the character string. That is, the character having the highest character height among the characters constituting one line is set as the height of the rectangular data for one line of the character string, and the total character width for one line is set as the width of the rectangular data for one line of the character string. To do.

例えば図13に示す文字列は、行(i=1)の行基準点57を(0,0)とすると、対角点が行サイズ59を示す座標となり、対角点のX座標をRow_Width、Y座標をRow_Heightと定義する。「Row」は、「行の」という意味である。後述する図15に示すが、Row_Widthは行幅67を示し、Row_Heightは行最大高さ69を示す。尚、テキストエリア45の座標の単位は、ドット(画像を再現するための最小の単位)であり、データ(行幅67、行最大高さ69等)の単位もドットとする。   For example, in the character string shown in FIG. 13, when the row reference point 57 of the row (i = 1) is (0, 0), the diagonal point becomes a coordinate indicating the row size 59, and the X coordinate of the diagonal point is set to Row_Width, The Y coordinate is defined as Row_Height. “Row” means “of line”. As shown in FIG. 15 to be described later, Row_Width indicates a row width 67 and Row_Height indicates a row maximum height 69. The coordinate unit of the text area 45 is a dot (minimum unit for reproducing an image), and the unit of data (line width 67, maximum line height 69, etc.) is also a dot.

図14は、改行されつつさらに文字列が入力されていき、複数行からなる文字列データ60を示す。図14は3行からなる文字列データ60を示し、1、2、3行目の行幅67はそれぞれW、W、Wであり、1、2,3行目の行最大高さ69はそれぞれH、H、Hである。また、文字列データ60としての文字列最大幅61をMax_Width、文字列高63をTotal_Heightと定める。 FIG. 14 shows character string data 60 composed of a plurality of lines as a character string is further input while a line feed is made. FIG. 14 shows character string data 60 consisting of three lines, the line widths 67 of the first , second and third lines are W 0 , W 1 and W 2 , respectively, and the maximum line height of the first , second and third lines. 69 is H 0 , H 1 , H 2 , respectively. Further, the maximum character string width 61 as the character string data 60 is defined as Max_Width, and the character string height 63 is defined as Total_Height.

後述するが、上記データ(W、W、W、H、H、H、Max_Width、Total_Height等)は、図8の文字列の形データ取得処理4000のフローチャートに従って算出され、図15、図16に示す作業用データ29として記憶部5のRAM21に格納される。 As will be described later, the data (W 0 , W 1 , W 2 , H 0 , H 1 , H 2 , Max_Width, Total_Height, etc.) is calculated according to the flowchart of the character string shape data acquisition process 4000 in FIG. 15 is stored in the RAM 21 of the storage unit 5 as work data 29 shown in FIG.

図8の文字列の形データ取得処理4000をフローチャートに沿って説明する。まず、制御部3は初期値としてi=1(1行目)、j=1(1文字目)、行ごとの文字の累計幅:Width=0、行の最大高さ:Hight=0を設定する(ステップ4001)。尚、図8に示すWidthは、図15、図16のRow_Width(行幅67)のことであり、Hightは、Row_Height(行最大高さ69)のことである。   The character string shape data acquisition processing 4000 in FIG. 8 will be described with reference to a flowchart. First, the control unit 3 sets i = 1 (first line), j = 1 (first character) as initial values, the cumulative character width per line: Width = 0, and the maximum line height: Hight = 0. (Step 4001). Note that Width shown in FIG. 8 is Row_Width (row width 67) of FIGS. 15 and 16, and High is Row_Height (row maximum height 69).

制御部3は、i行目、j番目の文字情報を取得する(ステップ4002)。例えば図13に示す1行目(i=1)、1番目(j=1)の文字「あ」は、文字幅w、高さhの情報を持つ。更に文字のフォントの種類、編集の有無などの情報を取得しても良い。   The control unit 3 acquires the i-th and j-th character information (step 4002). For example, the first line (i = 1) and the first (j = 1) character “A” shown in FIG. 13 have information on the character width w and the height h. Furthermore, information such as the font type of the character and the presence / absence of editing may be acquired.

取得した文字情報の高さhと、行の最大高さ:Heightとを比較し、Height<hであれば(ステップ4003のYES)、Heightをhの値に置き換えて(ステップ4004)、ステップ4005に進む。Height≧hならば(ステップ4003のNO)、Heightの値は変更せずステップ4005に進む。   The height h of the acquired character information and the maximum height of the line: Height are compared. If Height <h (YES in step 4003), the height is replaced with the value of h (step 4004), and step 4005. Proceed to If Height ≧ h (NO in step 4003), the value of Height is not changed and the process proceeds to step 4005.

次に、入力された文字が改行コードであるとき(ステップ4005のYES)、制御部3は、i行目の文字列を矩形データとして得て、配列Row[i]=(Width、Height)を、図15に示す作業用データ29として記憶部5に格納する(ステップ4006)。即ち、行65(i)毎に、行幅67(Row_Width)、行最大高さ69(Row_Height)を格納する。例えば1行目の行幅67は30(ドット)、行最大高さ69は10(ドット)である。   Next, when the input character is a line feed code (YES in Step 4005), the control unit 3 obtains the character string of the i-th row as rectangular data and sets the array Row [i] = (Width, Height). Then, it is stored in the storage unit 5 as work data 29 shown in FIG. 15 (step 4006). That is, for each row 65 (i), a row width 67 (Row_Width) and a row maximum height 69 (Row_Height) are stored. For example, the row width 67 of the first row is 30 (dots), and the row maximum height 69 is 10 (dots).

尚、図15の、行幅67(Row_Width)、行最大高さ69(Row_Height)は、図13に示す行サイズ59のX座標(Row_Width)、Y座標(Row_Height)に対応し、異なる文字サイズから構成される行であっても、1行毎に1つの矩形データに変換する。   In FIG. 15, the line width 67 (Row_Width) and the maximum line height 69 (Row_Height) correspond to the X coordinate (Row_Width) and Y coordinate (Row_Height) of the row size 59 shown in FIG. Even for the configured lines, each line is converted into one rectangular data.

次に、制御部3は、行ごとの行幅と、行最大高さを初期化する。即ちWidth=0、Height=0とする。また、行を1行加算し(i=i+1)、j=0として(ステップ4007)、ステップ4010に進む。   Next, the control unit 3 initializes the row width and the row maximum height for each row. That is, Width = 0 and Height = 0. Further, one row is added (i = i + 1), j = 0 is set (step 4007), and the process proceeds to step 4010.

一方、ステップ4005において、入力された文字が改行コードでなければ(ステップ4005のNO)、即ち、文字が入力された場合は、文字の累計幅(行幅67)に文字幅wを加算し、行幅67:Width=Width+wとして更新する(ステップ4008)。   On the other hand, if the input character is not a line feed code in step 4005 (NO in step 4005), that is, if a character is input, the character width w is added to the cumulative width of characters (line width 67), Update as line width 67: Width = Width + w (step 4008).

制御部3は、i行目の文字列の矩形データとして配列Row[i]=(Width、Height)を得る(ステップ4009)。また、制御部3は図15のデータ(i、Row_Width、Row_Height)を更新して記憶部5の作業用データ29に格納し、ステップ4010に進む。   The control unit 3 obtains an array Row [i] = (Width, Height) as rectangular data of the character string in the i-th row (step 4009). Further, the control unit 3 updates the data (i, Row_Width, Row_Height) in FIG. 15 and stores it in the work data 29 of the storage unit 5, and proceeds to Step 4010.

ステップ4010進み、テキストエリア45に次の文字があると(ステップ4010のYES)、制御部3はj=j+1を実行し(ステップ4011)、次の文字に対してステップ4002からの処理を繰り返す。   In step 4010, if there is a next character in the text area 45 (YES in step 4010), the control unit 3 executes j = j + 1 (step 4011), and repeats the processing from step 4002 for the next character.

テキストエリア45に次の文字がなくなると(ステップ4010のNO)、制御部3は、図15に示す行幅67(Row_Width)の最大値をMax_Widthとして記憶部5に作業用データ29として格納する(ステップ4012)。例えば図15では、Max_Widthは、2行目Row(2)の場合の50(ドット)である。   When there is no next character in the text area 45 (NO in step 4010), the control unit 3 stores the maximum value of the line width 67 (Row_Width) shown in FIG. 15 as Max_Width as work data 29 in the storage unit 5 ( Step 4012). For example, in FIG. 15, Max_Width is 50 (dots) in the case of Row (2) in the second row.

次に制御部3は、図15に示す行最大高さ69(Row_Height)の和を、Total_Hightとして記憶部5の作業用データ29として格納する(ステップ4013)。例えば図15では、Total_Hight=10+18+12=40(ドット)である。以上、文字列の形データ取得処理4000を終了し、図7に示す配置可能エリア表示処理5000に移る。   Next, the control unit 3 stores the sum of the row maximum height 69 (Row_Height) shown in FIG. 15 as work data 29 in the storage unit 5 as Total_High (step 4013). For example, in FIG. 15, Total_High = 10 + 18 + 12 = 40 (dots). As described above, the character string shape data acquisition process 4000 is terminated, and the process proceeds to the arrangement area display process 5000 shown in FIG.

(3−3−2.配置可能エリア表示処理)
図9は、配置可能エリア表示処理5000のフローチャートを示す。配置可能エリア表示処理5000とは、図3(b)に示すように、テキストエリア45に入力された文字列が配置可能な領域(文字配置可能領域51−1)を、算出して色等を変えて表示する処理である。文字が入力される都度、文字配置可能領域51−1が更新される。即ち文字列データの占める領域が拡大するに従い、文字配置可能な領域は縮小されていく。
(3-3-2. Arrangeable area display processing)
FIG. 9 shows a flowchart of the arrangeable area display processing 5000. As shown in FIG. 3B, the arrangeable area display processing 5000 calculates an area (character arrangeable area 51-1) in which a character string input to the text area 45 can be arranged, and displays a color or the like. This is a process of changing and displaying. Each time a character is input, the character arrangement possible area 51-1 is updated. That is, as the area occupied by the character string data expands, the area where characters can be arranged is reduced.

図9のフローチャートは、初期設定情報取得処理1000で得られた画像35の画像データ27(図12)に基づき、まず、合成しようとする文字列データ60が被写体37部分(即ちドットデータが[1]の部分)に重ならないかどうかを基準点53(0,0)から順に走査する。次に、文字列データ60の配置が可能であれば、文字列データ60の左上が配置される座標、X座標83、Y座標85を図18の文字列配置可能座標リスト81のFlag_X、Flag_Yとして格納していく。   The flowchart of FIG. 9 is based on the image data 27 (FIG. 12) of the image 35 obtained in the initial setting information acquisition process 1000. First, the character string data 60 to be synthesized is the subject 37 portion (that is, the dot data is [1]. ] In order from the reference point 53 (0, 0). Next, if the character string data 60 can be arranged, the coordinates where the upper left of the character string data 60 is arranged, the X coordinate 83 and the Y coordinate 85, are set as Flag_X and Flag_Y in the character string arrangeable coordinate list 81 of FIG. Store it.

図9のフローチャートを、図17を参照して説明する。まず制御部3は、初期値としてx=0、y=0を設定する(ステップ5001)。即ち図17の画像データ27の基準点53(0,0)から処理を開始する。座標(x,y)の画像データ27が[0]であるかどうかを判断し、[0]でない場合(即ちそのドットが被写体37部分であるとき)は(ステップ5002のNO)、座標軸X方向に走査を進めx=x+1として(ステップ5008)、ステップ5009に進む。   The flowchart of FIG. 9 will be described with reference to FIG. First, the control unit 3 sets x = 0 and y = 0 as initial values (step 5001). That is, the processing starts from the reference point 53 (0, 0) of the image data 27 in FIG. It is determined whether or not the image data 27 of the coordinates (x, y) is [0]. If it is not [0] (that is, when the dot is the subject 37 portion) (NO in step 5002), the coordinate axis X direction The scanning is advanced to x = x + 1 (step 5008), and the process proceeds to step 5009.

座標(x,y)の画像データ27が[0]、即ち画像データ27が余白39部分であれば(ステップ5002のYES)、合成しようとする文字列データ60を構成するドット全体が余白39部分に配置できるかどうかを判定する処理に移る。   If the image data 27 at the coordinates (x, y) is [0], that is, if the image data 27 is a margin 39 portion (YES in step 5002), the entire dot constituting the character string data 60 to be synthesized is the margin 39 portion. It moves to the process which determines whether it can arrange | position to.

座標(x,y)、及び図15に示す行(i)65ごとの行幅67(Row_Width)、行最大高さ69(Row_Height)を基に、図16に示す文字列データ60の配置位置情報を算出し記憶部5に格納する(ステップ5003)。   Based on the coordinates (x, y), the row width 67 (Row_Width) and the row maximum height 69 (Row_Height) for each row (i) 65 shown in FIG. 15, the arrangement position information of the character string data 60 shown in FIG. Is calculated and stored in the storage unit 5 (step 5003).

次に、制御部3は、図16の配置位置情報に基づき、文字列データ60の左上の座標(x,y)、行幅67、行最大高さ69情報から、文字列データ60全体のドットをBit情報75として得て登録し、記憶部5に格納する(ステップ5004)。即ち、文字列データ60を配置する位置の画像データ27([0]又は[1])をBit情報75[0000110001・・・]として得て、Bit情報75がすべて[0]であれば(ステップ5005のYES)、文字列データ60の左上の座標77を座標(x,y)に配置することが可能であると判断する。   Next, based on the arrangement position information of FIG. 16, the control unit 3 determines the dots of the entire character string data 60 from the upper left coordinates (x, y), the line width 67, and the line maximum height 69 information of the character string data 60. Is obtained and registered as bit information 75 and stored in the storage unit 5 (step 5004). That is, the image data 27 ([0] or [1]) at the position where the character string data 60 is arranged is obtained as the bit information 75 [000001110001...], And if the bit information 75 is all [0] (step (YES in 5005), it is determined that the upper left coordinate 77 of the character string data 60 can be arranged at the coordinate (x, y).

制御部3は、座標77(x,y)を図18の文字列配置可能座標リスト81のX座標83、Y座標85に登録する(ステップ5006)。座標77(x,y)が図17に示す位置にあるとすると、文字列データ60−1を配置することが可能であり、文字列データ60−1の全てのドットが占有する範囲(文字列データ60−1を示す斜線部分)の色を変えて表示する(ステップ5007)。或いは該当領域に斜線等を施しても良い。   The control unit 3 registers the coordinate 77 (x, y) in the X coordinate 83 and the Y coordinate 85 of the character string arrangement possible coordinate list 81 of FIG. 18 (step 5006). If the coordinate 77 (x, y) is at the position shown in FIG. 17, the character string data 60-1 can be arranged, and the range occupied by all the dots of the character string data 60-1 (character string) The color of the hatched portion indicating the data 60-1) is changed and displayed (step 5007). Alternatively, the corresponding area may be shaded.

次に、制御部3は、座標軸X方向に走査を進めx=x+1として(ステップ5008)、ステップ5009に進む。   Next, the control unit 3 advances scanning in the direction of the coordinate axis X, sets x = x + 1 (step 5008), and proceeds to step 5009.

一方、ステップ5005において、Bit情報75に1つでも[1]が含まれていれば(ステップ5005のNO)、例えば図17の文字列データ60−2の位置のように、文字列が被写体37部分にかかるので(文字列の一部あるいは全部が被写体37部分に重なるので)、その座標(x,y)の位置には文字列配置ができないと判断される。制御部3は、座標軸X方向に走査を進めx=x+1として(ステップ5008)、ステップ5009に進む。尚、図17の文字列データ60−2、60−3は、配置可能エリアの算出を説明するために示したものであり、実際には被写体37部分にかかるので図17の様に表示されるわけではない。   On the other hand, if at least one [1] is included in the bit information 75 in step 5005 (NO in step 5005), for example, the character string is the subject 37 as in the position of the character string data 60-2 in FIG. Since it is applied to the portion (because part or all of the character string overlaps the subject 37 portion), it is determined that the character string cannot be arranged at the position of the coordinates (x, y). The control unit 3 advances scanning in the direction of the coordinate axis X, sets x = x + 1 (step 5008), and proceeds to step 5009. Note that the character string data 60-2 and 60-3 in FIG. 17 are shown for explaining the calculation of the arrangementable area, and are actually displayed as shown in FIG. Do not mean.

次に、座標xの値がx>Max_X−Max_Widthであれば(ステップ5009のYES)、X座標を0とし座標軸Y方向に走査を進める(x=0、y=y+1)(ステップ5010)。座標xの値がx>Max_X−Max_Widthでなければステップ5002に戻る。   Next, if the value of the coordinate x is x> Max_X-Max_Width (YES in Step 5009), the X coordinate is set to 0 and scanning is advanced in the direction of the coordinate axis Y (x = 0, y = y + 1) (Step 5010). If the value of the coordinate x is not x> Max_X-Max_Width, the process returns to Step 5002.

ステップ5010に続き、座標yの値がy>Max_Y−Total_Heightであれば(ステップ5011のYES)、配置可能エリア表示処理5000を終了し、座標yの値がy>Max_Y−Total_Heightでなければ、ステップ5002に戻る。即ち、ステップ5009とステップ5011とで決まる最終走査位置は、図17に示す座標79の位置である。   Following step 5010, if the value of the coordinate y is y> Max_Y-Total_Height (YES in step 5011), the placement area display processing 5000 is terminated, and if the value of the coordinate y is not y> Max_Y-Total_Height, step Return to 5002. That is, the final scanning position determined by step 5009 and step 5011 is the position of the coordinate 79 shown in FIG.

尚、文字列データ60の左上の座標(x,y)が、画像データ27上で走査されていくと、図16の配置位置情報の値は、走査の都度、更新される。また、文字列配置可能座標リスト81(図18)は、文字列配置可能位置が得られる都度(即ちステップ5005のBit情報75が全て[0]である位置が得られる都度)、X座標83、Y座標85のデータ数が増加する。   When the upper left coordinate (x, y) of the character string data 60 is scanned on the image data 27, the value of the arrangement position information in FIG. 16 is updated each time scanning is performed. Further, the character string allocable coordinate list 81 (FIG. 18) includes an X coordinate 83, every time a character string allocable position is obtained (that is, every time the bit information 75 in step 5005 is all [0]). The number of data of the Y coordinate 85 increases.

配置可能エリア表示処理5000が終了すると、図7に戻り、文字列入力が続けられている場合(ステップ3001:文字列入力)、文字列の形データ取得処理4000を繰り返す。文字列入力が終了し、OKボタン47がクリックされると(ステップ3001:OKボタンクリック)、制御部3は文字列レイアウト配置処理6000に移る。尚、図6のイベント監視2000に示したように、図7のイベント処理3000は割り込み可能であり、文字列が入力される都度、新たにイベント処理3000がなされる。   When the arrangement area display processing 5000 is completed, the processing returns to FIG. 7. When the character string input is continued (step 3001: character string input), the character string shape data acquisition processing 4000 is repeated. When the character string input is completed and the OK button 47 is clicked (step 3001: OK button click), the control unit 3 moves to a character string layout arrangement process 6000. As shown in the event monitoring 2000 in FIG. 6, the event processing 3000 in FIG. 7 can be interrupted, and a new event processing 3000 is performed each time a character string is input.

(3−3−3.文字列レイアウト配置処理)
次に、図10に示す文字列レイアウト配置処理6000について説明する。文字列レイアウト配置処理6000は、図19のように文字列データ60を画像35上に表示する機能である。また操作者が、文字列データ60をマウスなどでドラッグアンドドロップして文字配置可能領域外の位置に移動させたとき、例えば図19の座標89の位置に文字列データ60−3を置くと、最も距離の近い文字配置可能位置に自動的に文字列データ60−4として移動して表示させる機能である。
(3-3-3. Character String Layout Arrangement Processing)
Next, the character string layout arrangement process 6000 shown in FIG. 10 will be described. The character string layout arrangement process 6000 is a function for displaying the character string data 60 on the image 35 as shown in FIG. Further, when the operator drags and drops the character string data 60 with a mouse or the like and moves it to a position outside the character arrangement possible area, for example, if the character string data 60-3 is placed at the position of the coordinate 89 in FIG. This is a function for automatically moving and displaying the character string data 60-4 at the closest possible character placement position.

まず、制御部3は、図18に示す文字列配置可能座標リスト81の1行目の座標(即ち、座標(0,0))に文字列データ60の左上座標を合わせて表示する(図19参照、ステップ6001)。   First, the control unit 3 displays the upper left coordinate of the character string data 60 in alignment with the coordinates of the first row of the character string arrangement possible coordinate list 81 shown in FIG. 18 (that is, coordinates (0, 0)) (FIG. 19). See step 6001).

表示された文字列データの配置位置を決定するOKボタン47がクリックされると(ステップ6002のYES)、制御部3は文字列レイアウト配置処理6000を終了して、イベント監視2000の待機状態に戻る。   When the OK button 47 for determining the arrangement position of the displayed character string data is clicked (YES in step 6002), the control unit 3 ends the character string layout arrangement processing 6000 and returns to the event monitoring 2000 standby state. .

制御部3は、一定時間毎に、文字列データの左上の座標89(a,b)を監視する(ステップ6003)。即ち、文字列データが、画像35上で移動されたかどうかを一定時間毎に監視する。   The control unit 3 monitors the upper left coordinate 89 (a, b) of the character string data at regular time intervals (step 6003). That is, it is monitored at regular intervals whether or not the character string data has been moved on the image 35.

座標(x,y)=(a,b)のとき、即ち文字列データが移動されていない場合(ステップ6004のYES)は、ステップ6002に戻り文字列移動の監視を続ける。   When the coordinates (x, y) = (a, b), that is, when the character string data is not moved (YES in step 6004), the process returns to step 6002 to continue monitoring the character string movement.

座標(x,y)=(a,b)でないとき、即ち文字列データが画像35上を移動された場合(ステップ6004のNO)、制御部3は、移動後の文字列データ60の左上の座標89(a,b)が、文字列配置可能座標リスト81(図18)の中にあるかどうかを判定する。文字列配置可能座標リスト81に文字列データ60の左上の座標89(a,b)があるということは、当該位置に文字列データ60の配置が可能であることを示す。   When the coordinates (x, y) = (a, b) is not satisfied, that is, when the character string data is moved on the image 35 (NO in step 6004), the control unit 3 controls the upper left of the character string data 60 after the movement. It is determined whether or not the coordinates 89 (a, b) are in the character string arrangement possible coordinate list 81 (FIG. 18). The fact that the upper left coordinate 89 (a, b) of the character string data 60 is in the character string arrangeable coordinate list 81 indicates that the character string data 60 can be arranged at the position.

文字列配置可能座標リスト81の中に文字列データ60の左上の座標89(a,b)があると(ステップ6005のYES)、制御部3は文字列データ60をその位置のまま、画像35上に表示し(ステップ6006)、ステップ6002に戻る。   If the upper left coordinate 89 (a, b) of the character string data 60 is present in the character string disposition-possible coordinate list 81 (YES in step 6005), the control unit 3 keeps the character string data 60 at that position and the image 35. Displayed above (step 6006), the process returns to step 6002.

文字列配置可能座標リスト81に文字列データ60の左上の座標89(a,b)が無い場合(ステップ6005のNO)、制御部3は座標89(a,b)と文字列配置可能座標リスト81に表示されている全部の座標(Flag_X、Flag_Y)とからそれぞれLength87を算出する(図18参照)。制御部3は、Length87を、座標89(a,b)と座標(Flag_X、Flag_Y)との距離を示す数値指標として、下記の式(1)を用いて算出する。
Length=(Flag_X―a)+(Flag_Y―b)……(1)
If there is no upper left coordinate 89 (a, b) of the character string data 60 in the character string arrangeable coordinate list 81 (NO in step 6005), the control unit 3 determines the coordinate 89 (a, b) and the character string arrangeable coordinate list. Length 87 is calculated from all the coordinates (Flag_X, Flag_Y) displayed in 81 (see FIG. 18). The control unit 3 calculates the Length 87 using the following formula (1) as a numerical index indicating the distance between the coordinates 89 (a, b) and the coordinates (Flag_X, Flag_Y).
Length = (Flag_X−a) 2 + (Flag_Y−b) 2 (1)

さらに、制御部3は、Length87が最小となる文字列配置可能座標リスト81の中の座標(x,y)を抽出する(ステップ6007)。   Further, the control unit 3 extracts the coordinates (x, y) in the character string disposition-possible coordinate list 81 that minimizes the Length 87 (Step 6007).

制御部3は、図19に示すように、座標89(a,b)の位置に文字列データ60−3を点線で表示する(ステップ6008)。文字列データ60−3は、被写体37に重なるのでこの位置に配置することはできないという意味で、点線で示される。   As shown in FIG. 19, the control unit 3 displays the character string data 60-3 with a dotted line at the position of coordinates 89 (a, b) (step 6008). The character string data 60-3 is indicated by a dotted line in the sense that it cannot be placed at this position because it overlaps the subject 37.

制御部3は、Length87が最小となる文字列配置可能座標リスト81の座標(x,y)の位置に、図19に示すように文字列データ60−4を移動して実線で表示し(ステップ6009)、ステップ6002に戻る。即ち、制御部3は、操作者によって文字列データ60が移動された位置が被写体37に重なる場合は、移動距離が最小となる文字配置可能領域51(図19)の位置に自動的に文字列データ60を移動して表示する。   The control unit 3 moves the character string data 60-4 to the position of the coordinates (x, y) of the character string disposition-possible coordinate list 81 where the length 87 is the minimum as shown in FIG. 6009), and returns to Step 6002. That is, when the position where the character string data 60 has been moved by the operator overlaps the subject 37, the control unit 3 automatically sets the character string to the position of the character arrangement possible area 51 (FIG. 19) where the movement distance is minimized. The data 60 is moved and displayed.

操作者は、ステップ6002の「OKボタン」47がクリックされるまで、一度画像35上に移動配置された文字列データ60を何度でもマウスでドラッグアンドドロップして配置する位置を検討することができる。   The operator can consider the position where the character string data 60 once moved and arranged on the image 35 is dragged and dropped with the mouse repeatedly until the “OK button” 47 in step 6002 is clicked. it can.

また、本実施の形態では、配置可能エリア表示処理5000のステップでは、文字列を入力しつつ配置可能領域の色表示や斜線表示を行うものであったが、同時に次のステップである文字列配置可能座標リスト81の1行目の座標位置に文字列データ60を表示させるようにしても良い。   In the present embodiment, in the step of the arrangeable area display processing 5000, the color display and the hatched display of the arrangeable area are performed while inputting the character string. The character string data 60 may be displayed at the coordinate position of the first line of the possible coordinate list 81.

尚、本発明では、自動的に画像35の被写体37部分に文字列が重ならないように文字列の配置位置を移動させるものであったが、操作者が文字列配置を禁止する画像領域を、任意に指定するようにしてもよい。   In the present invention, the arrangement position of the character string is automatically moved so that the character string does not overlap the portion of the subject 37 of the image 35. However, the image area where the operator prohibits the character string arrangement is It may be arbitrarily specified.

また、画像35上に配置するのは文字列に限らず、別の小画像やイラスト、記号等であってもよい。文字列の場合と同様に、画像35上に配置可能な領域を算出し、当該配置可能領域に自動的に小画像、イラスト、記号等を配置するようにする。   Moreover, what is arranged on the image 35 is not limited to a character string, and may be another small image, an illustration, a symbol, or the like. As in the case of the character string, an area that can be arranged on the image 35 is calculated, and small images, illustrations, symbols, and the like are automatically arranged in the arrangementable area.

また、本発明では文字列等をテキストエリア45に直接操作者が入力していくものとして説明したが、ファイルデータから文字列等をテキストエリア45に読み込むようにしても良い。   In the present invention, the character string or the like is directly input to the text area 45 by the operator. However, the character string or the like may be read from the file data into the text area 45.

また、本発明では、画像35の被写体37部分を避けて文字配置可能領域を表示させるようにしたが、例えば画像35の画素の色情報(RGB成分)を取得して、R成分が一定値以下の画素部分を文字配置可能領域にする等、文字配置可能領域の設定方法には種々の応用が考えられる。   Further, in the present invention, the character arrangement possible region is displayed avoiding the subject 37 portion of the image 35. However, for example, the color information (RGB component) of the pixel of the image 35 is acquired, and the R component is equal to or less than a certain value. Various application methods are conceivable for the method for setting the character arrangeable area, such as making the pixel portion of this area a character arrangeable area.

また、上述の説明では、文字列配置装置は、行毎に文字列を内包する矩形領域を作成して文字列領域を算出するものとしたが、これに限られない。例えば、各文字毎に当該文字を内包する矩形領域を作成し当該矩形領域の和集合を文字列領域として算出するようにしてもよい。また、矩形領域に限らず各文字の形態に応じて種々の形状の領域を文字列領域としてもよく、例えば、各文字の線の周縁部から所定の距離範囲内を文字列領域として算出するようにしてもよい。   In the above description, the character string arrangement device calculates a character string area by creating a rectangular area containing a character string for each line. However, the present invention is not limited to this. For example, a rectangular area containing the character may be created for each character, and a union of the rectangular areas may be calculated as a character string area. Further, not only a rectangular area but also an area having various shapes according to the form of each character may be used as a character string area. It may be.

(4.効果等)
このように、本実施の形態では、文字列等を入力しつつ、リアルタイムに文字列の配置可能な画像領域を確認しながら、画像35と文字列を容易に合成・編集できる効果がある。
(4. Effects, etc.)
As described above, the present embodiment has an effect that the image 35 and the character string can be easily combined and edited while inputting the character string or the like and confirming the image area where the character string can be arranged in real time.

また、本実施の形態では、画像35上の写真の被写体やロゴマークなどに、入力した文字列を重ならないように自動的に配置することができ、操作者の労力を軽減する効果がある。   Further, in the present embodiment, it is possible to automatically arrange the input character string so as not to overlap the subject of the photograph on the image 35, the logo mark, etc., and there is an effect of reducing the labor of the operator.

また、本実施の形態によれば、文字列の配置位置はドット単位で移動できるので、文字列の配置位置のずれを微細に調整することができる。   Further, according to the present embodiment, since the character string arrangement position can be moved in dot units, the deviation of the character string arrangement position can be finely adjusted.

また、本実施の形態では、静止画像だけではなく、動画上に表示されている文字列が、被写体やマーク等に重ならないように自動的に移動するシステムに応用することができる。   Further, the present embodiment can be applied to a system in which not only a still image but also a character string displayed on a moving image automatically moves so as not to overlap an object or a mark.

尚、本発明の技術的範囲は、前述した実施の形態に限られるものではない。当業者であれば、本願で開示した技術的思想の範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   The technical scope of the present invention is not limited to the embodiment described above. It will be apparent to those skilled in the art that various changes or modifications can be conceived within the scope of the technical idea disclosed in the present application, and these are naturally within the technical scope of the present invention. Understood.

本実施の形態における文字列配置装置1の構成を示す図The figure which shows the structure of the character string arrangement | positioning apparatus 1 in this Embodiment. 記憶部5の構成を示す図The figure which shows the structure of the memory | storage part 5. 本実施の形態における文字列配置アプリケーションウィンドウCharacter string placement application window in this embodiment 文字列2文字を入力した図Figure with two characters entered 複数の文字列を入力した図Figure with multiple character strings entered 主処理手順Main procedure 初期設定情報取得処理1000のサブルーチンを示す図The figure which shows the subroutine of the initial setting information acquisition process 1000 イベント監視2000のサブルーチンを示す図The figure which shows the subroutine of event monitoring 2000 イベント処理3000のサブルーチンを示す図The figure which shows the subroutine of event processing 3000 文字列の形のデータ取得処理4000のサブルーチンを示す図The figure which shows the subroutine of the data acquisition process 4000 of the character string form 配置可能エリア表示処理5000のサブルーチンを示す図The figure which shows the subroutine of the arrangement | positioning area display process 5000 文字列レイアウト配置処理6000のサブルーチンを示す図The figure which shows the subroutine of the character string layout arrangement | positioning process 6000 画像35を示す図The figure which shows the image 35 [0]、[1]に変換された画像データ27を示す図The figure which shows the image data 27 converted into [0] and [1] 文字列i=1を示す図Diagram showing character string i = 1 文字列データ60を示す図The figure which shows the character string data 60 文字列データ60の矩形情報を示す図The figure which shows the rectangle information of the character string data 60 文字列データ60と画像の重なりの算出を示す図The figure which shows calculation of the overlap of the character string data 60 and an image 文字列データ60の配置位置の算出を説明する図The figure explaining calculation of the arrangement position of the character string data 60 文字列配置可能座標リスト81を示す図The figure which shows the character string arrangement | positioning coordinate list 81 文字列データ60の配置と位置移動を説明する図The figure explaining arrangement and position movement of character string data 60

符号の説明Explanation of symbols

1………文字列配置装置
3………制御部
5………記憶部
7………通信部
9………印刷部
11………表示部
13………入力部
15………メディア入出力部
17………バス
19………ROM
21………RAM
23………実行プログラム
25………OS
27………画像データ
29………作業用データ
31………文字列配置アプリケーションウィンドウ
33………画像表示領域
35………画像
37………被写体
39………余白
41………座標軸X
43………座標軸Y
45………テキストエリア
46………アプリケーション終了ボタン
47………OKボタン
49−1、49−2………文字列領域
51−1、51−2………文字配置可能領域
53………基準点
54………対角点
55………画像幅
56………画像高
57………行基準点
59………行サイズ
60、60−1、60−2、60−3………文字列データ
61………文字列最大幅
63………文字列高
65………行
67………行の幅
69………行の最大高さ
71………座標(x)
73………座標(y)
75………Bit情報
77、79、89………座標
81………文字列配置可能座標リスト
83………X座標
85………Y座標
87………Length
DESCRIPTION OF SYMBOLS 1 ......... Character arrangement device 3 ......... Control part 5 ......... Storage part 7 ......... Communication part 9 ......... Print part 11 ... …… Display part 13 ......... Input part 15 ......... Media input Output section 17 ……… Bus 19 ……… ROM
21 ……… RAM
23 ………… Execution program 25 ……… OS
27 ......... Image data 29 ......... Working data 31 ......... Character string arrangement application window 33 ......... Image display area 35 ......... Image 37 ... …… Subject 39 ......... Margin 41 ......... Coordinate axis X
43 ... Coordinate axis Y
45... Text area 46... Application end button 47... OK button 49-1, 49-2 ... Character string area 51-1, 51-2. Reference point 54 ......... Diagonal point 55 ......... Image width 56 ......... Image height 57 ......... Line reference point 59 ......... Line sizes 60, 60-1, 60-2, 60-3 ......... Character string data 61 ......... Maximum character string width 63 ......... Character string height 65 ......... Line 67 ......... Line width 69 ......... Maximum line height 71 ......... Coordinates (x)
73 ..... coordinates (y)
75 ......... Bit information 77, 79, 89 ... ... Coordinates 81 ... ... Character string arrangement possible coordinate list 83 ... ... X coordinates 85 ... ... Y coordinates 87 ... ... Length

Claims (11)

表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置であって、
前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、
前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出して識別可能に表示する配置可能領域算出手段と、
を具備することを特徴とする文字列配置装置。
A character string arranging device that arranges a character string composed of at least one character together with an image in a display area,
A non-editable area calculating means for calculating a non-editable area indicating a non-editable area in the image;
A character string area calculating means for calculating a character string area that is an area occupied by the character string;
In the display area, by calculating an area in which the character string area and the non-editable area do not overlap with each other, a placeable area that is an area where the character string can be placed is calculated and displayed in an identifiable manner. A calculation means;
A character string arranging device comprising:
表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置であって、
前記画像において編集を許可しない領域を示す編集不可領域情報が付加された画像を取得する取得手段と、
前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出して識別可能に表示する配置可能領域算出手段と、
を具備することを特徴とする文字列配置装置。
A character string arranging device that arranges a character string composed of at least one character together with an image in a display area,
An acquisition means for acquiring an image to which non-editable area information indicating an area where editing is not permitted is added in the image;
A character string area calculating means for calculating a character string area that is an area occupied by the character string;
In the display area, by calculating an area in which the character string area and the non-editable area do not overlap with each other, a placeable area that is an area where the character string can be placed is calculated and displayed in an identifiable manner. A calculation means;
A character string arranging device comprising:
前記文字列を構成する各文字の入力毎に、前記文字列領域算出手段は前記文字列領域を算出し、前記配置可能領域算出手段は前記配置可能領域を算出することを特徴とする請求項1又は2に記載の文字列配置装置。   2. The character string area calculating unit calculates the character string area for each input of characters constituting the character string, and the arrangeable area calculating unit calculates the arrangeable area. Or the character string arrangement | positioning apparatus of 2. 前記文字列領域が前記配置可能領域の範囲内に収まらない場合、前記配置可能領域の範囲内に前記文字列領域を移動する文字列領域移動手段を具備することを特徴とする請求項1又は2に記載の文字列配置装置。   The character string area moving means for moving the character string area within the range of the arrangeable area when the character string area does not fit within the range of the arrangeable area is provided. The character string arrangement device described in 1. 文字列領域移動手段は、前記移動に要する距離が最小となる移動先を算出し、当該移動先に前記文字列領域を移動することを特徴とする請求項4に記載の文字列配置装置。   The character string arrangement device according to claim 4, wherein the character string area moving unit calculates a movement destination that minimizes the distance required for the movement, and moves the character string area to the movement destination. 前記文字列領域算出手段は、前記文字列を構成する各文字の高さ及び幅に基づいて前記文字列領域を算出することを特徴とする請求項1又は2に記載の文字列配置装置。   The character string arrangement device according to claim 1, wherein the character string region calculation unit calculates the character string region based on a height and a width of each character constituting the character string. 前記文字列領域算出手段は、行毎に文字列を内包する矩形領域を作成して前記文字列領域を算出することを特徴とする請求項1又は2に記載の文字列配置装置。   3. The character string arrangement device according to claim 1, wherein the character string area calculating unit calculates the character string area by creating a rectangular area including a character string for each line. 4. 前記配置可能領域算出手段は、前記表示領域上の画素を前記文字列領域の配置を判断しつつ走査し、当該文字列領域と前記編集不可領域との間に重なり部分が存在しない場合における、前記表示領域において当該文字列領域が占める領域の和集合を前記配置可能領域とすることを特徴とする請求項1又は2に記載の文字列配置装置。   The arrangement-possible area calculation means scans the pixels on the display area while determining the arrangement of the character string area, and when there is no overlapping portion between the character string area and the non-editable area, The character string arrangement device according to claim 1 or 2, wherein a union of areas occupied by the character string area in the display area is set as the arrangementable area. コンピュータを、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置として機能させるプログラムであって、
前記画像において編集を許可しない領域を示す編集不可領域を算出する編集許可領域算出手段と、
前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出手段、
として機能させるプログラム。
A program that causes a computer to function as a character string arranging device that arranges a character string composed of at least one character together with an image in a display area,
Edit-permitted area calculating means for calculating an uneditable area indicating an area where editing is not permitted in the image;
A character string area calculating means for calculating a character string area that is an area occupied by the character string;
In the display area, an arrangementable area calculating unit that calculates an arrangementable area that is an area in which the character string can be arranged by calculating an area in which the character string area and the non-editable area do not overlap.
Program to function as.
コンピュータを、表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置装置として機能させるプログラムを記録したコンピュータ読取可能な記録媒体であって、
前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出手段と、
前記文字列が占める領域である文字列領域を算出する文字列領域算出手段と、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出手段、
として機能させるプログラムを記録したコンピュータ読取可能な記録媒体。
A computer-readable recording medium recording a program that causes a computer to function as a character string arranging device that arranges a character string composed of at least one character together with an image in a display area,
A non-editable area calculating means for calculating a non-editable area indicating a non-editable area in the image;
A character string area calculating means for calculating a character string area that is an area occupied by the character string;
In the display area, an arrangementable area calculating unit that calculates an arrangementable area that is an area in which the character string can be arranged by calculating an area in which the character string area and the non-editable area do not overlap.
The computer-readable recording medium which recorded the program made to function as.
表示領域に画像と共に少なくとも1の文字から構成される文字列を配置する文字列配置方法であって、
前記画像において編集を許可しない領域を示す編集不可領域を算出する編集不可領域算出ステップと、
前記文字列が占める領域である文字列領域を算出する文字列領域算出ステップと、
前記表示領域において、前記文字列領域と前記編集不可領域とが重ならない領域を算出することにより、前記文字列を配置可能な領域である配置可能領域を算出する配置可能領域算出ステップと、
を具備することを特徴とする文字列配置方法。
A character string arrangement method for arranging a character string composed of at least one character together with an image in a display area,
A non-editable area calculating step for calculating a non-editable area indicating an area where editing is not permitted in the image;
A character string area calculating step for calculating a character string area that is an area occupied by the character string;
In the display area, by calculating an area where the character string area and the non-editable area do not overlap, an arrangeable area calculating step of calculating an arrangeable area that is an area where the character string can be arranged;
A character string arranging method comprising:
JP2004138043A 2004-05-07 2004-05-07 Character string arranging device, character string arranging method, program, and recording medium Expired - Fee Related JP4074602B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004138043A JP4074602B2 (en) 2004-05-07 2004-05-07 Character string arranging device, character string arranging method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004138043A JP4074602B2 (en) 2004-05-07 2004-05-07 Character string arranging device, character string arranging method, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2005321908A true JP2005321908A (en) 2005-11-17
JP4074602B2 JP4074602B2 (en) 2008-04-09

Family

ID=35469167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004138043A Expired - Fee Related JP4074602B2 (en) 2004-05-07 2004-05-07 Character string arranging device, character string arranging method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP4074602B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011055039A (en) * 2009-08-31 2011-03-17 Furyu Kk Image editing device, image editing method, and program
JP2012108493A (en) * 2010-10-25 2012-06-07 Xing Inc Picture reproducer and picture reproduction system
JP2014158166A (en) * 2013-02-15 2014-08-28 Konica Minolta Inc Image forming apparatus
JP2018019330A (en) * 2016-07-29 2018-02-01 キヤノン株式会社 Layout edition device, layout edition method, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011055039A (en) * 2009-08-31 2011-03-17 Furyu Kk Image editing device, image editing method, and program
JP2012108493A (en) * 2010-10-25 2012-06-07 Xing Inc Picture reproducer and picture reproduction system
JP2014158166A (en) * 2013-02-15 2014-08-28 Konica Minolta Inc Image forming apparatus
US9818052B2 (en) 2013-02-15 2017-11-14 Konica Minolta, Inc. Image forming apparatus for printing copy of id card with utlization purpose text overlapped thereon, and image forming method and tangible computer-readable recording medium for the same
JP2018019330A (en) * 2016-07-29 2018-02-01 キヤノン株式会社 Layout edition device, layout edition method, and program

Also Published As

Publication number Publication date
JP4074602B2 (en) 2008-04-09

Similar Documents

Publication Publication Date Title
US5262760A (en) Modifying a graphics display image
US7703011B2 (en) Digital content creation system, digital content creation method, and program product
EP0864987B1 (en) Document processing method and apparatus, corresponding program and storage unit
EP0361911A2 (en) Word processor with text layout display function
JP4074602B2 (en) Character string arranging device, character string arranging method, program, and recording medium
EP1927923A2 (en) Document edit support device, document edit device, program and computer-readable storage medium
US7295221B2 (en) Image processing apparatus and method, and computer-readable memory
US7417761B2 (en) Information processing apparatus and information processing method for processing document data having a plurality of objects different in attribution
JPH0916566A (en) Document processor and method therefor
JP4232625B2 (en) Magazine layout device and magazine layout program
JP2000231556A (en) Information processor, information processing method and storage medium
JP3813499B2 (en) OUTPUT PROCESSING METHOD, OUTPUT PROCESSING DEVICE, OUTPUT PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING OUTPUT PROCESSING PROGRAM
JP2008108187A (en) Cad data converter, cad data conversion method, and cad data conversion program
JP2006065891A (en) Method of processing ruled line and its device
JPH02230419A (en) Character processor
JPH06202305A (en) Layout processor
JPH07262258A (en) Graphic processor
JPH08292992A (en) Device and method for document processing
JPH0744607A (en) Layout design device
JPH06231222A (en) Device and method for processing graphic
JPH10289231A (en) Document editing, displaying, and printing device
JP2009080839A (en) Method and apparatus for processing character string with ruled line
JP2008077674A (en) Method and device for processing ruled line
JP2008251035A (en) Method and device for processing ruled line
JPH06131435A (en) Graphic editing device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070625

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070703

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070829

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071023

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071214

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080122

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080125

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

Free format text: PAYMENT UNTIL: 20110201

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110201

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120201

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120201

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130201

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140201

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees