JP2008015619A - Image processor, image processing method, and image processing program - Google Patents

Image processor, image processing method, and image processing program Download PDF

Info

Publication number
JP2008015619A
JP2008015619A JP2006183607A JP2006183607A JP2008015619A JP 2008015619 A JP2008015619 A JP 2008015619A JP 2006183607 A JP2006183607 A JP 2006183607A JP 2006183607 A JP2006183607 A JP 2006183607A JP 2008015619 A JP2008015619 A JP 2008015619A
Authority
JP
Japan
Prior art keywords
data
image data
image
layer
image processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2006183607A
Other languages
Japanese (ja)
Inventor
Kunihiko Kobayashi
邦彦 小林
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2006183607A priority Critical patent/JP2008015619A/en
Publication of JP2008015619A publication Critical patent/JP2008015619A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor, an image processing method and an image processing program for easily editing multi-layer image data by adding a text or graphics. <P>SOLUTION: When document data 68 are input from a data input device 62 to an image processor 60, it is decided whether or not the document data 68 input by a format decision part 70 are multi-layer image data and which format of multi-image data are the document data 68. When the input document data 68 are the multi-layer image data, such edition processing as the addition of an object to the document data 68 is accepted by an edition processing part 72. The object added by the edition processing is separated into configuring elements, and assigned to each layer configuring the multi-layer image data by a layer separation/composition part 74, and the separated configuring elements are compounded with the document data 68 for every layer so that edited data 76 can be generated. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像処理装置、画像処理方法及び画像処理プログラムに関し、特に、多層画像データに対し編集処理を施す画像処理装置、画像処理方法及び画像処理プログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and an image processing program, and more particularly, to an image processing apparatus, an image processing method, and an image processing program that perform editing processing on multilayer image data.

従来、画像データの編集処理は、保存された画像データを書き換えるものではなく、上書きデータを基に、描画時の描画値を変更して画像データ(ラスタデータ)を修正することにより実施されていた(特許文献1)。このため、文字やベクター図形など解釈できないオブジェクトを含む画像データの場合には、編集された画像データを画像処理専用ソフトウエアで処理できないという問題があった。   Conventionally, editing processing of image data is not performed by rewriting stored image data, but is performed by modifying image data (raster data) by changing a drawing value at the time of drawing based on overwritten data. (Patent Document 1). For this reason, in the case of image data including objects that cannot be interpreted, such as characters and vector graphics, there is a problem that edited image data cannot be processed by software dedicated to image processing.

一方、近時、文書データの閲覧環境の多様化に伴い、文書データを画像データに変換することが多くなっている。画像データはデータサイズが大きくなるため画像圧縮処理を行うことが通常である。文字や写真/グラフィックが混在した文書データでは、文書データを複数の層(レイヤ)に分離し、各層毎にラスタデータを作成し、各層毎に異なる方式の圧縮処理を施すことで高い圧縮率を達成することができる(特許文献2、3)。この際に、MRC(Mixed Raster Content)構造を有する画像データ(多層画像データ)が生成される。
特開2003−271978号公報 特開2002−369011号公報 特開2002−368986号公報
On the other hand, recently, with the diversification of document data browsing environments, document data is often converted into image data. Since image data has a large data size, image compression processing is usually performed. For document data with mixed text, photos / graphics, separate the document data into multiple layers, create raster data for each layer, and apply different types of compression processing to each layer to achieve a high compression ratio. This can be achieved (Patent Documents 2 and 3). At this time, image data (multilayer image data) having an MRC (Mixed Raster Content) structure is generated.
JP 2003-271978 A JP 2002-369011 A JP 2002-368986 A

しかしながら、従来、多層画像データの編集処理では、テキストやグラフィクスを簡単に追加する機能が用意されておらず、利便性に欠けるという問題があった。   However, conventionally, the editing processing of multi-layer image data has a problem that a function for easily adding text and graphics is not prepared and the convenience is lacking.

本発明は、上記問題を解決すべく成されたものであり、多層画像データをテキストやグラフィクスを追加して簡単に編集することができる画像処理装置、画像処理方法及び画像処理プログラムを提供することを目的とする。   The present invention has been made to solve the above problem, and provides an image processing apparatus, an image processing method, and an image processing program capable of easily editing multi-layer image data by adding text and graphics. With the goal.

上記目的を達成するために本発明の画像処理装置は、入力された文書データが編集可能な形式の多層画像データか否かを判定する形式判定部と、前記形式判定部で編集可能な形式の多層画像データと判定された場合に、入力された文書データに対する編集処理を受け付ける編集処理部と、前記編集処理で追加された描画オブジェクトを構成要素に分離して前記多層画像データを構成する各層に割り当て、分離された構成要素を前記文書データの各層に合成して保存データを生成する保存データ生成部と、を備えたことを特徴としている。   In order to achieve the above object, an image processing apparatus of the present invention includes a format determination unit that determines whether or not input document data is multi-layer image data in an editable format, and a format that can be edited by the format determination unit. When it is determined as multi-layer image data, an edit processing unit that receives an edit process for the input document data, and a drawing object added by the edit process is separated into constituent elements to each layer constituting the multi-layer image data And a storage data generation unit that generates storage data by combining the allocated and separated components with each layer of the document data.

本発明の画層処理装置では、入力された文書データが編集可能な形式の多層画像データと判定された場合に、入力された文書データに対する編集処理を受け付けるが、編集処理で追加された描画オブジェクトを構成要素に分離して多層画像データを構成する各層に割り当て、分離された構成要素を文書データの各層に合成して保存データを生成するので、ドキュメントにテキストやグラフィクスを追加する場合でも、画像データを簡単に編集することができる。また、多層画像データの形式で生成した編集データを保存しておくことで、編集された画像データを汎用のソフトウエアで処理することができる。   In the layer processing apparatus of the present invention, when the input document data is determined to be editable multilayer image data, editing processing for the input document data is accepted, but the drawing object added by the editing processing is accepted. Is divided into components and assigned to each layer of the multi-layer image data, and the separated components are combined with each layer of document data to generate saved data, so even if text or graphics are added to the document Data can be easily edited. Further, by saving the edit data generated in the form of multilayer image data, the edited image data can be processed with general-purpose software.

以上説明したように本発明によれば、多層画像データをテキストやグラフィクスを追加して簡単に編集することができ、ユーザの利便性が向上する、という効果がある。   As described above, according to the present invention, it is possible to easily edit multi-layer image data by adding text and graphics, and there is an effect that convenience for the user is improved.

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

(多層画像データ)
図1(A)乃至(C)は、多層画像データの層構成を説明するための図である。
図1(A)は文書(ドキュメント)の構成例を示している。このドキュメント10は、黒色で描かれたテキスト12とグラフィックス14、赤色で描かれたテキスト16とグラフィックス18、及び写真などの画像データを取り込んで作成されたイメージ20から構成されている。
(Multilayer image data)
1A to 1C are diagrams for explaining a layer configuration of multilayer image data.
FIG. 1A shows a configuration example of a document (document). The document 10 is composed of text 12 and graphics 14 drawn in black, text 16 and graphics 18 drawn in red, and an image 20 created by taking in image data such as a photograph.

図1(B)はこのドキュメント10をN層MRC構造と称される多層画像データ22で表現したものである。N層MRC構造の多層画像データ22は、イメージを含む部分を集めた背景画像データ24と、複数のマスク画像データ26、28との組み合わせで構成される。マスク画像データ26、28の各々は、2値データ、色データ、及び位置・サイズで表現される。この例では、黒色の文字・図形がマスク画像データ26として表現され、赤色の文字・図形がマスク画像データ28として表現されている。   FIG. 1B represents the document 10 as multilayer image data 22 called an N-layer MRC structure. The multilayer image data 22 having an N-layer MRC structure is composed of a combination of background image data 24 obtained by collecting portions including an image and a plurality of mask image data 26 and 28. Each of the mask image data 26 and 28 is expressed by binary data, color data, and position / size. In this example, black characters / graphics are represented as mask image data 26, and red characters / graphics are represented as mask image data 28.

また、図1(C)は上記のドキュメント10を3層MRC構造と称される多層画像データ30で表現したものである。3層MRC構造の多層画像データ30は、イメージを含む部分を集めた背景画像データ32と、文字・図形の形状が表現されたマスク画像データ34と、色情報を表現した前景画像データ36との3つの層で構成される。この例では、マスク画像データ34には、テキスト12の形状12A、グラフィックス14の形状14A、テキスト16の形状16A、及びグラフィックス18の形状18Aが表現されている。また、前景画像データ36には、色情報(黒)領域38と色情報(赤)領域39とが含まれている。   FIG. 1C shows the document 10 expressed by multilayer image data 30 called a three-layer MRC structure. The multilayer image data 30 having the three-layer MRC structure includes background image data 32 in which portions including images are collected, mask image data 34 in which character / graphic shapes are expressed, and foreground image data 36 in which color information is expressed. It consists of three layers. In this example, the mask image data 34 represents the shape 12A of the text 12, the shape 14A of the graphics 14, the shape 16A of the text 16, and the shape 18A of the graphics 18. The foreground image data 36 includes a color information (black) area 38 and a color information (red) area 39.

(編集処理の概要)
次に、本発明で実施される編集処理の概要を説明する。
図2(A)は編集前のドキュメント10の構成例を示し、図2(B)は編集処理後のドキュメント40の構成例を示している。なお、図2(A)に示すドキュメントは、図1(A)に示すドキュメントと同じ構成であるため、同じ構成部分には同じ符号を付して説明を省略する。編集処理後のドキュメント40には、ドキュメントの左下にグラフィクスでグラフ42が追加されている。
(Overview of editing process)
Next, the outline of the editing process performed in the present invention will be described.
FIG. 2A shows a configuration example of the document 10 before editing, and FIG. 2B shows a configuration example of the document 40 after editing processing. Note that the document shown in FIG. 2A has the same configuration as the document shown in FIG. 1A, so the same components are denoted by the same reference numerals and description thereof is omitted. In the document 40 after the editing process, a graph 42 is added as graphics at the lower left of the document.

図3はドキュメント10の編集処理の概要を表す概念図である。ここでは、図1(C)に示した通り、ドキュメント10は3層MRC構造と称される多層画像データ30として表現されている。グラフィックスとして追加したグラフ42は、塗りつぶし42Aを含む背景画像データ46と、枠線42Bを含むマスク画像データ48と、色情報を表現した前景画像データ50の3層に分離することができる。即ち、追加する画像データは、背景画像データ46、マスク画像データ48、及び前景画像データ50の3層から構成された多層画像データ44として表現される。   FIG. 3 is a conceptual diagram showing an outline of the editing process of the document 10. Here, as shown in FIG. 1C, the document 10 is expressed as multilayer image data 30 called a three-layer MRC structure. The graph 42 added as graphics can be separated into three layers: background image data 46 including a fill 42A, mask image data 48 including a frame line 42B, and foreground image data 50 expressing color information. That is, the image data to be added is expressed as multilayer image data 44 composed of three layers of background image data 46, mask image data 48, and foreground image data 50.

なお、描画オブジェクトとしては、テキスト、グラフィクス、イメージ、ベクター図形、ラスター図形等が挙げられる。また、描画オブジェクト構成要素の何をどの層に割り当てるか(分離規則)は予め指定しておくことができる。例えば、文字、線画(表の枠線など)は前景画像データに、その他の塗りつぶしやイメージは背景画像データに各々割り当てることができる。   Note that examples of drawing objects include text, graphics, images, vector graphics, raster graphics, and the like. In addition, what layer of drawing object components is assigned to which layer (separation rule) can be designated in advance. For example, characters and line drawings (table borders, etc.) can be assigned to foreground image data, and other fills and images can be assigned to background image data.

元の多層画像データ30と追加する多層画像データ44とは同種の層毎に合成され、背景画像データ32と背景画像データ46とからは背景画像データ54が生成され、マスク画像データ34とマスク画像データ48とからはマスク画像データ56生成され、前景画像データ36と前景画像データ50とからは前景画像データ58が生成される。これにより、背景画像データ54、マスク画像データ56、及び前景画像データ58の3層から構成された多層画像データ52が、編集後の画像データとして得られるのである。   The original multilayer image data 30 and the multilayer image data 44 to be added are synthesized for each layer of the same type, and background image data 54 is generated from the background image data 32 and the background image data 46. The mask image data 34 and the mask image Mask data 56 is generated from the data 48, and foreground image data 58 is generated from the foreground image data 36 and the foreground image data 50. As a result, multi-layer image data 52 composed of three layers of background image data 54, mask image data 56, and foreground image data 58 is obtained as edited image data.

上述したように多層画像データを層毎に合成することで、ドキュメントにテキストやグラフィクスを追加する場合でも、画像データを簡単に編集することができる。また、多層画像データの形式で生成した編集データを保存しておくことで、編集された画像データを汎用の画像処理専用ソフトウエアで処理することができる。   As described above, by synthesizing the multilayer image data for each layer, even when text or graphics is added to the document, the image data can be easily edited. Further, by saving the edit data generated in the form of multilayer image data, the edited image data can be processed by general-purpose image processing software.

(画像処理装置の構成例)
図4(A)には、本実施の形態に適用した画像処理システムの概略構成を示している。この画像処理システムは、CPU、ROM、RAMを備えたパーソナルコンピュータで構成され、後述する編集処理を実行する画像処理装置60を備えている。画像処理装置60には、文書データを画像データに変換して画像処理装置60に入力するデータ入力装置62と、処理した文書データを保存するデータ保存装置64と、各種のユーザ・インターフェイス(UI)画面を表示すると共にユーザからの指示を入力するUI部66と、が接続されている。UI部66は、ディスプレイ等の表示装置とマウスやキーボード等の入力装置とで構成されている。
(Configuration example of image processing apparatus)
FIG. 4A shows a schematic configuration of an image processing system applied to this embodiment. The image processing system includes a personal computer including a CPU, a ROM, and a RAM, and includes an image processing device 60 that executes an editing process described later. The image processing device 60 includes a data input device 62 that converts document data into image data and inputs the image data, a data storage device 64 that stores the processed document data, and various user interfaces (UI). A UI unit 66 that displays a screen and inputs an instruction from a user is connected. The UI unit 66 includes a display device such as a display and an input device such as a mouse and a keyboard.

図4(B)は画像処理装置60の機能ブロック図である。画像処理装置60は、文書データの形式を判定する形式判定部70と、入力された文書データに対する編集処理を受け付ける編集処理部72と、編集処理で追加されたオブジェクトを構成要素に分離して文書データに合成するレイヤ分離合成部74と、から構成されている。   FIG. 4B is a functional block diagram of the image processing apparatus 60. The image processing apparatus 60 includes a format determination unit 70 that determines the format of document data, an editing processing unit 72 that receives an editing process for input document data, and an object added by the editing process as a constituent element. And a layer separation / synthesis unit 74 that synthesizes the data.

データ入力装置62から文書データ68が画像処理装置60に入力されると、形式判定部70で入力された文書データ68が多層画像データか否かと、その文書データ68がどの形式の多層画像データかとが判定される(形式判定処理)。入力された文書データ68が多層画像データの場合には、編集処理部72で、文書データ68に対するオブジェクトの追加、消去、戻し(元に戻す処理)等の編集処理を受け付ける。そして、レイヤ分離合成部74で、編集処理で追加されたオブジェクトを構成要素に分離して多層画像データを構成する各層に割り当て、分離された構成要素を文書データ68に層毎に合成して編集データ76を生成する(レイヤ分離合成処理)。   When the document data 68 is input from the data input device 62 to the image processing device 60, whether or not the document data 68 input by the format determination unit 70 is multi-layer image data and what type of multi-layer image data the document data 68 is. Is determined (format determination processing). If the input document data 68 is multi-layer image data, the editing processing unit 72 accepts editing processing such as object addition, deletion, and return (return processing) to the document data 68. Then, the layer separation / combination unit 74 separates the object added by the editing process into constituent elements and assigns them to each layer constituting the multilayer image data, and synthesizes the separated constituent elements into the document data 68 for editing each layer. Data 76 is generated (layer separation / synthesis processing).

(編集処理の手順)
図9に、上記の画像処理装置60で実行される編集処理の処理ルーチンを示す。
このフローチャートでは、まず、ステップ100でイベントが取得される。イベント取得によりUI部66のディスプレイには、図5(A)に示す編集画面78が表示される。編集画面78の左上方のツールボックス80内には、「ファイル」ボタン82と「編集」ボタン84と「ヘルプ」ボタン86とが表示されている。また、編集画面78の右上方には、ページめくりのための「△」アイコン88、拡大縮小のための「虫眼鏡」アイコン90などが表示されている。
(Editing process)
FIG. 9 shows a processing routine of editing processing executed by the image processing device 60 described above.
In this flowchart, first, an event is acquired in step 100. As a result of the event acquisition, an editing screen 78 shown in FIG. 5A is displayed on the display of the UI unit 66. A “file” button 82, an “edit” button 84, and a “help” button 86 are displayed in the tool box 80 at the upper left of the edit screen 78. In the upper right part of the editing screen 78, a “Δ” icon 88 for turning pages, a “magnifying glass” icon 90 for enlargement / reduction, and the like are displayed.

編集画面78で「ファイル」ボタン82をクリックすると、図5(B)に示すプルダウンメニュー92が表示され、「開く」、「保存」、「終了」の何れかを選択することができる。また、「編集」ボタン84をクリックすると、図5(C)に示すプルダウンメニュー94が表示され、「データ追加」、「追加データの消去」、「元に戻す」の何れかの編集指示を選択することができる。   When the “file” button 82 is clicked on the edit screen 78, a pull-down menu 92 shown in FIG. 5B is displayed, and one of “open”, “save”, and “end” can be selected. When the “edit” button 84 is clicked, a pull-down menu 94 shown in FIG. 5C is displayed, and an edit instruction of “add data”, “delete additional data”, or “restore” is selected. can do.

次のステップ102でファイルイベント(「開く」、「保存」、「終了」の何れか)が指定されたか否か判断する。ファイルイベントが指定された場合は、ステップ102で肯定判定してステップ104に進み、入力指定(「開く」の選択)か否かを判断する。入力指定の場合は、ステップ104で肯定判定してステップ106に進み、ステップ106で形式判定処理を実行してループに戻る。なお、形式判定処理の詳細については後述する(図10参照)。   In the next step 102, it is determined whether or not a file event (any one of “Open”, “Save”, and “End”) is designated. If a file event is specified, an affirmative determination is made in step 102 and the process proceeds to step 104 to determine whether or not an input is specified (selection of “open”). In the case of input designation, an affirmative determination is made in step 104 and the process proceeds to step 106, a format determination process is executed in step 106, and the loop is returned to. Details of the format determination process will be described later (see FIG. 10).

ファイルが指定され「開く」が選択されると、指定されたファイル(文書データ)が開かれて、図6に示すように、編集画面78には文書データに応じたドキュメント10が表示される。即ち、図1(C)に示した多層画像データ30の各層(背景画像データ32、マスク画像データ34、前景画像データ36の3層)の画像を重ね合わせて表示する。「データ追加」、「追加データの消去」、「元に戻す」等の編集指示もこの編集画面78上で行なわれる。   When the file is specified and “Open” is selected, the specified file (document data) is opened, and the document 10 corresponding to the document data is displayed on the editing screen 78 as shown in FIG. That is, the images of the respective layers (the three layers of the background image data 32, the mask image data 34, and the foreground image data 36) of the multilayer image data 30 shown in FIG. Editing instructions such as “add data”, “delete additional data”, “restore” are also performed on this editing screen 78.

ステップ104で否定判定の場合は、ステップ108に進み、保存指定(「保存」の選択)か否かを判断する。保存指定の場合は、ステップ108で肯定判定してステップ110に進み、ステップ110でレイヤ分離合成処理を実行してループに戻る。なお、レイヤ分離合成処理の詳細については後述する(図11参照)。ステップ108で否定判定の場合は、ステップ112に進み、終了指定(「終了」の選択)か否かを判断する。終了指定の場合は、ステップ112で肯定判定してルーチンを終了し、終了指定でない場合は、ステップ112で否定判定してループに戻る。   If the determination in step 104 is negative, the process proceeds to step 108, and it is determined whether or not the storage is specified (selection of “save”). In the case of storage designation, an affirmative determination is made in step 108 and the process proceeds to step 110. In step 110, a layer separation / synthesis process is executed, and the process returns to the loop. Details of the layer separation / synthesis processing will be described later (see FIG. 11). If a negative determination is made in step 108, the process proceeds to step 112, and it is determined whether or not the end is specified (selection of “end”). If the end designation is made, an affirmative determination is made at step 112 and the routine is terminated. If the end designation is not made, a negative judgment is made at step 112 and the process returns to the loop.

ファイルイベントが指定されていない場合は、ステップ102で否定判定してステップ114に進み、編集イベント(「データ追加」、「追加データの消去」、「元に戻す」の何れか)が指定されたか否か判断する。編集イベントが指定された場合は、指定された編集内容が追加(「データ追加」の選択)か否かを判断する。追加の場合はステップ114で肯定判定してステップ116に進み、ステップ118で追加処理を実行してループに戻る。   If the file event is not specified, a negative determination is made in step 102 and the process proceeds to step 114, where an edit event ("data addition", "erasure of additional data", or "restore") has been specified. Judge whether or not. When an editing event is designated, it is determined whether or not the designated editing content is added (selection of “data addition”). In the case of addition, an affirmative determination is made in step 114 and the process proceeds to step 116. In step 118, an additional process is executed and the process returns to the loop.

図7(A)は「データ追加」が行われた場合の編集画面78を示している。編集処理後のドキュメント96には、ドキュメントの右下にテキストで日付98が追加されている。   FIG. 7A shows an editing screen 78 when “data addition” is performed. In the edited document 96, a date 98 is added as text to the lower right of the document.

ステップ116で否定判定の場合はステップ120に進み、指定された編集内容が消去(「追加データの消去」の選択)か否かを判断する。消去の場合はステップ120で肯定判定してステップ122に進み、ステップ122で消去処理を実行してループに戻る。ステップ120で否定判定の場合はステップ124に進み、指定された編集内容が元に戻す(「元に戻す」の選択)か否かを判断する。元に戻すの場合はステップ124で肯定判定してステップ126に進み、ステップ126で元に戻す処理を実行してループに戻る。ステップ124で否定判定の場合にもループに戻る。   In the case of negative determination in step 116, the process proceeds to step 120, and it is determined whether or not the designated editing content is to be deleted (“delete additional data” is selected). In the case of erasure, an affirmative decision is made in step 120 and the process proceeds to step 122. In step 122, an erasure process is executed and the process returns to the loop. If the determination in step 120 is negative, the process proceeds to step 124, where it is determined whether or not the designated editing content is to be restored (selection of “undo”). In the case of returning to the original state, an affirmative determination is made in step 124 and the process proceeds to step 126. In step 126, the process of returning to the original is executed and the process returns to the loop. Even in the case of negative determination in step 124, the process returns to the loop.

ファイルイベント及び編集イベントの何れも指定されていない場合には、ステップ114で否定判定してステップ100に戻り、ファイルイベントで終了指定がされるまで上記の処理を繰り返す。   If neither a file event nor an edit event is specified, a negative determination is made at step 114 and the process returns to step 100, and the above processing is repeated until an end is specified by the file event.

図10に、図9のステップ106で実行される形式判定処理の処理ルーチンを示す。形式判定処理のサブルーチンが開始されると、まず、ステップ200で判定対象となるファイルが指定され、データ入力装置62から文書データ68が画像処理装置60に入力される。既に保存データがある場合には、データ保存装置64から文書データ68が読み出され、画像処理装置60に入力される。保存データが存在する場合には、文書データ68は多層画像データである。   FIG. 10 shows a processing routine of the format determination process executed in step 106 of FIG. When the format determination processing subroutine is started, first, a file to be determined is specified in step 200, and document data 68 is input from the data input device 62 to the image processing device 60. If there is already stored data, the document data 68 is read from the data storage device 64 and input to the image processing device 60. If there is stored data, the document data 68 is multilayer image data.

文書データ68が画像処理装置60に入力されると、次のステップ202で、入力された文書データ68が既定形式の多層画像データか否かと、その文書データ68がどの形式の多層画像データかとが判定される。ここで、既定形式の多層画像データとは、3層MRC構造の多層画像データ及びN層MRC構造の多層画像データの何れかであること意味している。   When the document data 68 is input to the image processing apparatus 60, in the next step 202, whether or not the input document data 68 is multilayer image data of a predetermined format and what format of the document data 68 is multilayer image data are determined. Determined. Here, the multilayer image data in the predetermined format means either multilayer image data having a three-layer MRC structure or multilayer image data having an N-layer MRC structure.

多層画像データの形式判定が終了すると、次のステップ204で、ステップ202の判定結果に基づいて、入力された文書データ68が編集処理が実施可能な多層画像データか否かを判断する。既定形式の多層画像データの場合には、ステップ204で肯定判定してステップ206に進み、ステップ206で編集画面にドキュメントを表示してルーチンを終了する。ステップ206では、指定されたファイル(文書データ)が開かれて、編集画面にドキュメントが表示される(図6参照)。これにより、オブジェクトの追加、消去、戻し(元に戻す処理)等、多層画像データで表現されたドキュメントの編集処理が実行可能になる。   When the determination of the format of the multilayer image data is completed, it is determined in the next step 204 based on the determination result in step 202 whether the input document data 68 is multilayer image data that can be edited. In the case of the multilayer image data in the default format, an affirmative determination is made in step 204 and the process proceeds to step 206. In step 206, the document is displayed on the editing screen and the routine is terminated. In step 206, the designated file (document data) is opened and the document is displayed on the editing screen (see FIG. 6). As a result, editing processing of a document expressed by multilayer image data, such as addition, deletion, and return (return processing) of an object, can be executed.

一方、既定形式の多層画像データでない場合には、ステップ204で否定判定してステップ208に進み、ステップ208でエラー表示を行いルーチンを終了する。例えば、UI部66のディスプレイに「編集処理は実行できません。」等のメッセージを表示する。   On the other hand, if it is not the default format multi-layer image data, a negative determination is made in step 204 and the process proceeds to step 208, an error is displayed in step 208, and the routine is terminated. For example, a message such as “Editing cannot be executed” is displayed on the display of the UI unit 66.

図11に、図9のステップ110で実行されるレイヤ分離合成処理の処理ルーチンを示す。レイヤ分離合成処理のサブルーチンが開始されると、まず、ステップ300で、編集処理で追加されたオブジェクトを構成要素に分離して多層画像データを構成する各層に割り当てる。なお、図3で説明した通り、オブジェクト構成要素の何をどの層に割り当てるか(分離規則)は予め指定しておくことができる。   FIG. 11 shows a processing routine of the layer separation / synthesis processing executed in step 110 of FIG. When the subroutine for the layer separation / synthesis process is started, first, in step 300, the object added by the editing process is separated into constituent elements and assigned to each layer constituting the multilayer image data. As described with reference to FIG. 3, what layer of object components is assigned to which layer (separation rule) can be designated in advance.

次のステップ302で、分離された構成要素を元の文書データ68に層毎に合成して、多層画像データで表現された編集データ76を生成し、ステップ304で、生成した編集データ76をデータ保存装置64に保存してルーチンを終了する。   In the next step 302, the separated components are combined with the original document data 68 for each layer to generate edit data 76 expressed by multilayer image data. In step 304, the generated edit data 76 is converted into data. The routine is terminated after saving in the storage device 64.

図7(A)に示すようにドキュメント96にテキストで日付98が追加されたケース(文字の色は黒色とする)では、元の多層画像データが図1(B)に示すN層MRC構造である場合には、図7(B)に示すように、日付98を表す文字は黒色のマスク画像データに割り当てられ、図1(B)のマスク画像データ26に合成される。これにより、ドキュメント96を背景画像データ102、黒色のマスク画像データ104、及び赤色のマスク画像データ106の3層で構成した多層画像データ100が生成され、編集データとして保存される。   As shown in FIG. 7A, in the case where the date 98 is added to the document 96 as text (the character color is black), the original multilayer image data has the N-layer MRC structure shown in FIG. In some cases, as shown in FIG. 7B, the character representing the date 98 is assigned to the black mask image data and is combined with the mask image data 26 of FIG. As a result, multilayer image data 100 composed of three layers of the document 96, which is the background image data 102, the black mask image data 104, and the red mask image data 106, is generated and stored as editing data.

なお、図3で説明したドキュメント40にグラフィクスでグラフ42が追加されたケースでは、編集画面には図8(A)に示すドキュメントが表示され、図8(B)に示すように、ドキュメント40を背景画像データ54、マスク画像データ56、及び前景画像データ58の3層で構成した多層画像データ52が生成され、編集データとして保存される。   In the case where a graph 42 is added by graphics to the document 40 described in FIG. 3, the document shown in FIG. 8A is displayed on the editing screen, and the document 40 is displayed as shown in FIG. 8B. Multi-layer image data 52 composed of three layers of background image data 54, mask image data 56, and foreground image data 58 is generated and saved as edit data.

以上説明した通り、本実施の形態では、編集処理で追加されたオブジェクトを構成要素に分離して多層画像データを構成する各層に割り当て、分離された構成要素を元の文書データに層毎に合成して、多層画像データで表現された編集データを生成するので、ドキュメントにテキストやグラフィクスを追加する場合でも、画像データを簡単に編集することができる。   As described above, in this embodiment, the object added in the editing process is separated into constituent elements and assigned to each layer constituting the multilayer image data, and the separated constituent elements are combined with the original document data for each layer. Then, since the editing data expressed by the multilayer image data is generated, the image data can be easily edited even when text or graphics is added to the document.

また、多層画像データの形式で生成した編集データを保存しておくことで、画像処理専用ソフトウェアのように文字やベクターなどを解釈できないものであっても、編集結果を反映したドキュメントを扱うことが可能になる。   In addition, by saving edit data generated in the form of multi-layer image data, it is possible to handle a document that reflects the edit results even if it cannot interpret characters, vectors, etc. like image processing software. It becomes possible.

なお、上記の実施の形態では、UI部を備えた画像処理システムについて説明したが、UI部を備えていない画像処理システムでは、処理操作を指定するスクリプトを記述し、この処理スクリプトに従って編集処理を実行することができる。図12に処理スクリプトの記述例を示す。この処理スクリプトは、<ファイルを開く処理>→<テキストを追加する処理>→<グラフィックスを追加する処理>→<保存する処理>を指定している。なお、データを追加する場合には、データ種類に必要なパラメータ(色、位置等)を記述することができる。   In the above embodiment, the image processing system including the UI unit has been described. However, in the image processing system not including the UI unit, a script for designating a processing operation is described, and editing processing is performed according to the processing script. Can be executed. FIG. 12 shows a description example of the processing script. This process script designates <file open process> → <text add process> → <graphics add process> → <save process>. When data is added, parameters (color, position, etc.) necessary for the data type can be described.

図13には、図12に示す処理スクリプトに従って編集処理(追加処理)を実行する場合の処理ルーチンを示す。   FIG. 13 shows a processing routine when an editing process (addition process) is executed in accordance with the processing script shown in FIG.

このフローチャートでは、まず、ステップ400で処理スクリプトを読み込む。処理スクリプトが読み込まれると、次のステップ402で、「open(開く)」が指定されたか否か判断する。「open」が指定された場合は、ステップ402で肯定判定してステップ404に進み、ステップ404で判定対象となるファイルが指定され、文書データ68が画像処理装置60に入力される。文書データ68が画像処理装置60に入力されると、次のステップ406で、入力された文書データ68の形式が判定される。   In this flowchart, first, in step 400, a processing script is read. When the processing script is read, in the next step 402, it is determined whether or not “open” is designated. If “open” is specified, an affirmative determination is made in step 402 and the process proceeds to step 404, a file to be determined is specified in step 404, and document data 68 is input to the image processing apparatus 60. When the document data 68 is input to the image processing apparatus 60, the format of the input document data 68 is determined in the next step 406.

形式判定が終了すると次のステップ408に進み、判定結果に基づいて入力された文書データ68が編集処理が実施可能な多層画像データか否かを判断する。既定形式の多層画像データの場合には、ステップ408で肯定判定してステップ410に進み、編集画面にドキュメントを表示してループに戻り、処理を繰り返す。一方、既定形式の多層画像データでない場合には、ステップ408で否定判定してルーチンを終了する。   When the format determination is completed, the process proceeds to the next step 408, where it is determined whether the input document data 68 is multilayer image data that can be edited. In the case of the multilayer image data in the default format, an affirmative determination is made in step 408 and the process proceeds to step 410, the document is displayed on the editing screen, the process returns to the loop, and the process is repeated. On the other hand, if the multilayer image data is not in the default format, a negative determination is made in step 408 and the routine is terminated.

「open」が指定されなかった場合には、ステップ402で否定判定してステップ412に進み、「save(保存)」が指定されたか否か判断する。「save」が指定された場合は、ステップ414で、編集処理で追加されたオブジェクトを構成要素に分離して多層画像データを構成する各層に割り当てる。次のステップ416で、分離された構成要素を元の文書データ68に層毎に合成して、多層画像データで表現された編集データ76を生成する。そして、ステップ418で、生成した編集データ76をデータ保存装置64に保存してルーチンを終了する。   If “open” is not specified, a negative determination is made in step 402 and the process proceeds to step 412 to determine whether or not “save” is specified. If “save” is designated, in step 414, the object added by the editing process is separated into constituent elements and assigned to each layer constituting the multilayer image data. In the next step 416, the separated components are combined with the original document data 68 layer by layer to generate edit data 76 expressed by multilayer image data. In step 418, the generated editing data 76 is stored in the data storage device 64, and the routine is terminated.

「save」が指定されなかった場合には、ステップ412で否定判定してステップ420に進み、「add−text(テキストの追加)」が指定されたか否か判断する。「add−text」が指定された場合は、ステップ422に進み、テキストの追加処理を実行してループに戻る。   If “save” is not specified, a negative determination is made in step 412 and the process proceeds to step 420 to determine whether or not “add-text (add text)” is specified. If “add-text” is designated, the process proceeds to step 422, the text addition process is executed, and the process returns to the loop.

「add−text」が指定されなかった場合には、ステップ420で否定判定してステップ424に進み、「add−graphics(グラフィクスの追加)」が指定されたか否か判断する。「add−graphics」が指定された場合は、ステップ426に進み、グラフィクスの追加処理を実行してループに戻る。   If “add-text” is not specified, a negative determination is made in step 420 and the process proceeds to step 424 to determine whether or not “add-graphics (addition of graphics)” is specified. If “add-graphics” is designated, the process proceeds to step 426, the graphics adding process is executed, and the process returns to the loop.

「add−graphics」が指定されなかった場合には、ステップ424で否定判定してステップ428に進み、「add−image(イメージの追加)」が指定されたか否か判断する。「add−image」が指定された場合は、ステップ430に進み、イメージの追加処理を実行してループに戻る。また、「add−image」が指定されなかった場合もループに戻る。   If “add-graphics” is not specified, a negative determination is made in step 424 and the process proceeds to step 428 to determine whether or not “add-image (add image)” is specified. If “add-image” is designated, the process proceeds to step 430 to execute image addition processing and return to the loop. Also, if “add-image” is not designated, the process returns to the loop.

(A)乃至(C)は多層画像データの層構成を説明するための図である。(A) thru | or (C) is a figure for demonstrating the layer structure of multilayer image data. (A)は編集前のドキュメントの構成例を示し、(B)は編集処理後のドキュメント40の構成例を示す図である。(A) shows a configuration example of a document before editing, and (B) shows a configuration example of a document 40 after editing processing. ドキュメントの編集処理の概要を表す概念図である。It is a conceptual diagram showing the outline | summary of the edit process of a document. (A)は本実施の形態に適用した画像処理システムの概略構成を示す図であり、(B)は画像処理装置の機能ブロック図である。(A) is a figure which shows schematic structure of the image processing system applied to this Embodiment, (B) is a functional block diagram of an image processing apparatus. (A)乃至(C)はUI部に表示される編集画面を示す図である。(A) thru | or (C) is a figure which shows the edit screen displayed on UI part. ドキュメントが表示された編集画面を示す図である。It is a figure which shows the edit screen on which the document was displayed. (A)はテキスト追加が行われた場合の編集画面を示す図であり、(B)は編集データの層構成を示す図である。(A) is a figure which shows the edit screen when a text addition is performed, (B) is a figure which shows the layer structure of edit data. (A)はグラフィクス追加が行われた場合の編集画面を示す図であり、(B)は編集データの層構成を示す図である。(A) is a figure which shows the edit screen at the time of graphics addition, (B) is a figure which shows the layer structure of edit data. 編集処理の処理ルーチンを示すフローチャートである。It is a flowchart which shows the process routine of an edit process. 形式判定処理の処理ルーチンを示すフローチャートである。It is a flowchart which shows the processing routine of a format determination process. レイヤ分離合成処理の処理ルーチンを示すフローチャートである。It is a flowchart which shows the processing routine of a layer isolation | separation synthetic | combination process. 処理スクリプトの記述例を示す図である。It is a figure which shows the example of a description of a process script. 処理スクリプトに従って編集処理を実行する場合の処理ルーチンを示すフローチャートである。It is a flowchart which shows the process routine in the case of performing an edit process according to a process script.

符号の説明Explanation of symbols

10 ドキュメント
12 テキスト
14 グラフィックス
16 テキスト
18 グラフィックス
20 イメージ
22、30、44、52、100 多層画像データ
24、32、46、54、102 背景画像データ
26、28、34、48、56、104、106 マスク画像データ
36、50、58 前景画像データ
38 色情報(黒)領域
39 色情報(赤)領域
40 ドキュメント
42 グラフ
42A 塗りつぶし
42B 枠線
60 画像処理装置
62 データ入力装置
64 データ保存装置
68 文書データ
70 形式判定部
72 編集処理部
74 レイヤ分離合成部
76 編集データ
78 編集画面
80 ツールボックス
82、84、86 ボタン
88、90 アイコン
92、94 プルダウンメニュー
96 ドキュメント
98 日付
10 Document 12 Text 14 Graphics 16 Text 18 Graphics 20 Images 22, 30, 44, 52, 100 Multi-layer image data 24, 32, 46, 54, 102 Background image data 26, 28, 34, 48, 56, 104, 106 Mask image data 36, 50, 58 Foreground image data 38 Color information (black) area 39 Color information (red) area 40 Document 42 Graph 42A Fill
42B frame 60 image processing device 62 data input device 64 data storage device 68 document data 70 format determination unit 72 editing processing unit 74 layer separation / synthesis unit 76 editing data 78 editing screen 80 tool box 82, 84, 86 button 88, 90 icon 92, 94 pull-down menu 96 document 98 date

Claims (10)

入力された文書データが編集可能な形式の多層画像データか否かを判定する形式判定部と、
前記形式判定部で編集可能な形式の多層画像データと判定された場合に、入力された文書データに対する編集処理を受け付ける編集処理部と、
前記編集処理で追加された描画オブジェクトを構成要素に分離して前記多層画像データを構成する各層に割り当て、分離された構成要素を前記文書データの各層に合成して保存データを生成する保存データ生成部と、
を備えた画像処理装置。
A format determination unit that determines whether the input document data is editable multilayer image data;
An editing processing unit that receives an editing process for input document data when the format determining unit determines that the image data is in a format that can be edited;
The drawing object added by the editing process is separated into constituent elements and assigned to each layer constituting the multilayer image data, and the saved constituent data is generated by combining the separated constituent elements with each layer of the document data. And
An image processing apparatus.
前記形式判定部は、文書データが、イメージを含む背景画像データと、2値データ、色データ、及び位置・サイズで表現された複数のマスク画像データとの組み合わせで構成される多層画像データである場合に、編集可能な形式の多層画像データと判定する請求項1に記載の画像処理装置。   The format determination unit is multi-layer image data in which the document data is composed of a combination of background image data including an image, binary data, color data, and a plurality of mask image data represented by positions and sizes. The image processing apparatus according to claim 1, wherein the image processing apparatus determines that the editable format is multilayer image data. 前記形式判定部は、文書データが、イメージを含む背景画像データと、文字・図形の形状が表現されたマスク画像データと、色情報を表現した前景画像データとの組み合わせで構成される多層画像データである場合に、編集可能な形式の多層画像データと判定する請求項1に記載の画像処理装置。   The format determination unit is a multi-layer image data in which the document data is composed of a combination of background image data including an image, mask image data expressing the shape of a character / graphic, and foreground image data expressing color information. 2. The image processing apparatus according to claim 1, wherein the image processing apparatus determines that the editable format is multilayer image data. 前記描画オブジェクトが、少なくとも、テキスト、ベクター図形、及びラスター図形の何れかである請求項1乃至3の何れか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the drawing object is at least one of a text, a vector graphic, and a raster graphic. 前記保存データ生成部は、予め定めた規則に基づいて、前記描画オブジェクトの構成要素を前記多層画像データを構成する各層に割り当てる請求項1乃至4の何れか1項に記載の画像処理装置。   5. The image processing apparatus according to claim 1, wherein the storage data generation unit assigns the components of the drawing object to each layer constituting the multilayer image data based on a predetermined rule. 6. 前記保存データ生成部は、文字及び線画をマスク画像データに割り当てる請求項2に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the saved data generation unit assigns characters and line drawings to mask image data. 前記保存データ生成部は、文字及び線画を前景画像データに割り当てる請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein the storage data generation unit assigns characters and line drawings to foreground image data. 前記保存データ生成部は、塗りつぶし又はイメージを前景画像データに割り当てる請求項2又は3に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the storage data generation unit assigns a fill or an image to foreground image data. 入力された文書データが編集可能な形式の多層画像データか否かを判定し、
編集可能な形式の多層画像データと判定された場合に、入力された文書データに対する編集処理を受け付け、
前記編集処理で追加された描画オブジェクトを構成要素に分離して前記多層画像データを構成する各層に割り当て、分離された構成要素を前記文書データの各層に合成して保存データを生成する、
画像処理方法。
Determine whether the input document data is multi-layer image data in an editable format,
When it is determined that the image data is editable format multilayer image data, it accepts editing processing for the input document data,
The drawing object added in the editing process is separated into constituent elements and assigned to each layer constituting the multilayer image data, and the separated constituent elements are combined with each layer of the document data to generate saved data.
Image processing method.
コンピュータにより、
入力された文書データが編集可能な形式の多層画像データか否かを判定するステップと、
編集可能な形式の多層画像データと判定された場合に、入力された文書データに対する編集処理を受け付けるステップと、
前記編集処理で追加された描画オブジェクトを構成要素に分離して前記多層画像データを構成する各層に割り当て、分離された構成要素を前記文書データの各層に合成して保存データを生成するステップとを、
実行させる画像処理プログラム。
By computer
Determining whether the input document data is multi-layer image data in an editable format;
A step of accepting an editing process for input document data when it is determined that the image data is editable multilayer image data;
Separating the drawing object added in the editing process into constituent elements and assigning them to each layer constituting the multilayer image data, and combining the separated constituent elements into each layer of the document data to generate saved data; ,
An image processing program to be executed.
JP2006183607A 2006-07-03 2006-07-03 Image processor, image processing method, and image processing program Withdrawn JP2008015619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006183607A JP2008015619A (en) 2006-07-03 2006-07-03 Image processor, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006183607A JP2008015619A (en) 2006-07-03 2006-07-03 Image processor, image processing method, and image processing program

Publications (1)

Publication Number Publication Date
JP2008015619A true JP2008015619A (en) 2008-01-24

Family

ID=39072593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006183607A Withdrawn JP2008015619A (en) 2006-07-03 2006-07-03 Image processor, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP2008015619A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600558A (en) * 2018-07-11 2019-04-09 北京字节跳动网络技术有限公司 Method and apparatus for generating information
CN110706313A (en) * 2019-09-29 2020-01-17 杭州洋驼网络科技有限公司 Method for dynamically generating picture

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600558A (en) * 2018-07-11 2019-04-09 北京字节跳动网络技术有限公司 Method and apparatus for generating information
CN109600558B (en) * 2018-07-11 2021-08-13 北京字节跳动网络技术有限公司 Method and apparatus for generating information
CN110706313A (en) * 2019-09-29 2020-01-17 杭州洋驼网络科技有限公司 Method for dynamically generating picture

Similar Documents

Publication Publication Date Title
US5675753A (en) Method and system for presenting an electronic user-interface specification
US6230174B1 (en) Method of generating a markup language document containing image slices
TWI613553B (en) Method and system for editing a circuit design layout and non-transitory computer-readable medium thereof
US8792116B2 (en) Printing controller, GUI display method, printer driver, and recording medium
US8156431B2 (en) Eliminating inconsistencies between objects and page attributes in an electronic document
JP2006277056A (en) Information processor and program
US9406159B2 (en) Print-ready document editing using intermediate format
US8584005B1 (en) Previewing redaction content in a document
JP2008234457A (en) User interface control program and user interface control method
JP2009515276A (en) Drafting style domains
JP4508745B2 (en) Information processing apparatus, image editing apparatus, control method therefor, computer program, and computer-readable storage medium
JP2002207725A (en) Processor for concealing electronic document
JP2011188291A (en) Image processor and image processing program
JP2008176479A (en) Information processor, information processing method and information processing program
JP2008015619A (en) Image processor, image processing method, and image processing program
JP2007179261A (en) Image processor, image processing method and control program
JP6851853B2 (en) Expansion of redacting function
JP4305325B2 (en) Sticky note information processing method, sticky note information processing system, and sticky note information processing program
JP2005235205A (en) Compositing with clip-to-self functionality without using shape channel
JP3965836B2 (en) Image processing system
JP2005258589A (en) Character display device, character display method, and program
JP4911585B2 (en) Image processing apparatus, image processing method, program, and information recording medium
WO2015145670A1 (en) Device for creating user interface screen and program for creating user interface screen
JP2014023006A (en) Information processing device, information processing method, and information processing program
JP4130128B2 (en) Graphic display method and graphic processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090212

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20110823