[go: up one dir, main page]

JP2016009268A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2016009268A
JP2016009268A JP2014128548A JP2014128548A JP2016009268A JP 2016009268 A JP2016009268 A JP 2016009268A JP 2014128548 A JP2014128548 A JP 2014128548A JP 2014128548 A JP2014128548 A JP 2014128548A JP 2016009268 A JP2016009268 A JP 2016009268A
Authority
JP
Japan
Prior art keywords
processing
flattening
image data
window
time
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
JP2014128548A
Other languages
Japanese (ja)
Other versions
JP6331752B2 (en
Inventor
領 久木宮
Ryo Kukimiya
領 久木宮
和雄 山田
Kazuo Yamada
和雄 山田
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 JP2014128548A priority Critical patent/JP6331752B2/en
Publication of JP2016009268A publication Critical patent/JP2016009268A/en
Application granted granted Critical
Publication of JP6331752B2 publication Critical patent/JP6331752B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Generation (AREA)

Abstract

PROBLEM TO BE SOLVED: To suppress the overhead of an overlapping determination time while accelerating a drawing speed by omitting an overlapping area to execute drawing flattening processing when overlapping exists in an object.SOLUTION: An image processor includes flattening processing means 26, 28 for performing flattening processing of image data with the number A (A is an integer of two or more) of pieces of image data as a group, and rasterization processing means 32 for generating a raster image from the image subjected to the flattening processing. Processing of image data constituting a group with a group number as N (N is an integer of one or more) in the rasterization processing means 32, and processing of image data constituting a group N+1 in the flattening processing means 26, 28 are executed in parallel.

Description

本発明は画像処理装置に関する。   The present invention relates to an image processing apparatus.

特許文献1には、中間データ(オブジェクト)の重なり領域を予め調べて、効率のよいオブジェクト描画処理を行う描画処理装置が記載されている。中間データ分配手段が中間データと未展開処理の中間データとの間で重なる領域があるかどうかを判定し、重なる領域のない中間データから優先順位に基づいて展開処理手段に分配する。   Patent Document 1 describes a drawing processing device that performs an efficient object drawing process by checking an overlapping area of intermediate data (objects) in advance. The intermediate data distribution unit determines whether there is an overlapping area between the intermediate data and the unexpanded intermediate data, and distributes the intermediate data having no overlapping area to the expansion processing unit based on the priority order.

特許文献2には、オブジェクトの重なり判定処理前にバウンディングボックスの大小に応じてフラットニングする/しないを分類して判定対象を間引くことが記載されている。   Japanese Patent Application Laid-Open No. 2004-228561 describes that before the object overlap determination process, the determination target is thinned out by classifying whether to flatten or not according to the size of the bounding box.

特開平10−333852号公報JP 10-333852 A 特開2010−157040号公報JP 2010-157040 A

オブジェクトの重なりの有無を判定し、重なりがある場合に重なり面積を省略して描画を実施するフラットニング処理は描画処理を効率化するのに有効であるが、オブジェクトの重なりの有無を判定するのに時間を要する問題がある。すなわち、N個のオブジェクトが存在する場合、全通りで重なりの有無を分析するのでその分析回数は、=N(N−1)/2となり、1回当たりの重なり判定時間をαとすると、トータルでα・N(N−1)/2の時間を要し、重なり判定時間がオーバヘッドとなり得る。 A flattening process that determines whether or not there are overlapping objects and performs drawing while omitting the overlapping area is effective in making the drawing process more efficient. There is a problem that takes time. That is, if there are N objects, the presence / absence of overlap is analyzed in all ways, so the number of analyzes is N C 2 = N (N−1) / 2, and the overlap determination time per time is α. Then, a total time of α · N (N−1) / 2 is required, and the overlap determination time can be an overhead.

オブジェクトの重なり判定処理前にバウンディングボックスの大小に応じてフラットニングの有無を分類する場合、全通り方式に比べて分析回数は減るものの、重なり判定時間は同様にオーバヘッドとして残り得る。   When the presence / absence of flattening is classified according to the size of the bounding box before the object overlap determination process, the number of times of analysis is reduced as compared with the whole method, but the overlap determination time may remain as overhead as well.

本発明の目的は、オブジェクトに重なりがある場合に重なり面積を省略して描画するフラットニング処理を実施して描画速度を高速化しつつ、重なり判定時間のオーバヘッドを抑制できる装置を提供することにある。   An object of the present invention is to provide an apparatus capable of suppressing the overlap determination time overhead while increasing the drawing speed by performing a flattening process for drawing without overlapping areas when objects overlap. .

請求項1記載の発明は、画像データに対し、画像データ個数A(Aは2以上の整数)をグループとしてフラットニング処理を行うフラットニング処理手段と、フラットニング処理された画像データからラスター画像を生成するラスタライザ処理手段とを備え、グループ番号をN(Nは1以上の整数)として、前記ラスタライザ処理手段におけるグループNを構成する画像データの処理と、前記フラットニング処理手段におけるグループN+1を構成する画像データの処理を並行して実行する、画像処理装置である。   According to the first aspect of the present invention, flattening processing means for performing flattening processing on the image data by grouping the number A of image data (A is an integer of 2 or more), and a raster image from the flattened image data. And a rasterizer processing means for generating, the group number is N (N is an integer of 1 or more), the processing of image data constituting the group N in the rasterizer processing means, and the group N + 1 in the flattening processing means An image processing apparatus that executes image data processing in parallel.

請求項2記載の発明は、画像データに対し、画像データ個数A(Aは1以上の整数)をグループとしてフラットニング処理を行うフラットニング処理手段と、フラットニング処理された画像データからラスター画像を生成するラスタライザ処理手段とを備え、グループ番号をN(Nは1以上の整数)として、前記ラスタライザ処理手段におけるグループNを構成する画像データの処理と、前記フラットニング処理手段におけるグループN+1を構成する画像データの処理を並行して実行し、かつ、前記グループNを構成する画像データの前記ラスタライザ処理手段における処理に先立ち、その処理予想時間に応じて、前記フラットニング処理手段におけるグループN+1を構成する画像データの処理時間が前記ラスタライザ処理手段におけるグループNを構成する画像データの処理時間以下となるように、前記グループN+1を構成する画像データ個数Aを可変設定する、画像処理装置である。   According to the second aspect of the present invention, a flattening processing means for performing a flattening process on the image data by grouping the number A of image data (A is an integer of 1 or more), and a raster image from the flattened image data. And a rasterizer processing means for generating, the group number is N (N is an integer of 1 or more), the processing of image data constituting the group N in the rasterizer processing means, and the group N + 1 in the flattening processing means Prior to processing of the image data constituting the group N in the rasterizer processing means, the group N + 1 in the flattening processing means is configured according to the expected processing time. Processing time of image data in the rasterizer processing means Such that less processing time of the image data constituting the loop N, variably setting the image data number A constituting the group N + 1, an image processing apparatus.

請求項3記載の発明は、画像データに対してその描画予想時間が相対的に長い場合にフラットニング対象、相対的に短い場合にフラットニング未対象とし、フラットニング対象とされた画像データに対してフラットニング処理を行うフラットニング処理手段と、フラットニング処理された画像データ、及びフラットニング未対象とされた画像データからラスター画像を生成するラスタライザ処理手段とを備え、前記ラスタライザ処理手段における画像データの処理と、前記フラットニング処理手段における画像データの処理を並行して実行する、画像処理装置である。   According to the third aspect of the present invention, flattening is performed when the expected rendering time of the image data is relatively long, and flattening is not performed when the image data is relatively short. Flattening processing means for performing flattening processing and rasterizer processing means for generating a raster image from flattened image data and non-flattened image data, and image data in the rasterizer processing means And an image processing apparatus that executes the processing of the image data in the flattening processing means in parallel.

請求項1乃至請求項3記載の発明によれば、オブジェクトに重なりがある場合に重なり面積を省略して描画するフラットニング処理を実施して描画速度を高速化しつつ、重なり判定時間のオーバヘッドを抑制できる。   According to the first to third aspects of the present invention, when the object overlaps, the flattening process for performing drawing while omitting the overlapping area is performed to increase the drawing speed and suppress the overhead of the overlap determination time. it can.

フラットニング処理の模式図である。It is a schematic diagram of a flattening process. 従来方式の分析・描画処理説明図である。It is analysis / drawing process explanatory drawing of a conventional system. 実施形態の分析・描画処理説明図である。It is an analysis and drawing process explanatory drawing of embodiment. 第1実施形態の構成ブロック図である。It is a block diagram of the configuration of the first embodiment. 第1実施形態の処理フローチャートである。It is a processing flowchart of a 1st embodiment. フラットニング処理とラスタライザの処理時間を示すグラフ図である。It is a graph which shows the processing time of a flattening process and a rasterizer. フラットニング処理とラスタライザの関係を示す模式図である。It is a schematic diagram which shows the relationship between a flattening process and a rasterizer. フラットニング処理とラスタライザの関係を示す模式図である。It is a schematic diagram which shows the relationship between a flattening process and a rasterizer. フラットニング処理とラスタライザの関係を示す模式図である。It is a schematic diagram which shows the relationship between a flattening process and a rasterizer. 第2実施形態の構成ブロック図である。It is a block diagram of the configuration of the second embodiment. 第2実施形態の構成ブロック図である。It is a block diagram of the configuration of the second embodiment. オブジェクトと描画時間の関係を示すグラフ図である。It is a graph which shows the relationship between an object and drawing time. オブジェクトと描画時間の関係を示すグラフ図である。It is a graph which shows the relationship between an object and drawing time. 第3実施形態の概念構成図である。It is a conceptual block diagram of 3rd Embodiment. 第3実施形態の構成ブロック図である。It is a block diagram of the configuration of the third embodiment. 第3実施形態の処理フローチャートである。It is a processing flowchart of a 3rd embodiment.

以下、図面に基づき本発明の実施形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

<第1実施形態>
まず、実施形態の説明に先立ち、フラットニング処理について説明する。ページ記述言語PDLで記述された印刷データは、高速展開処理を可能とすべく中間データに変換されるが、中間データの最小単位であるオブジェクト同士の重なりがある場合、新しく描かれるオブジェクトが既に描画されたオブジェクトを上書きすることになるため、当該重なりの部分は重複して描かれることになり処理として無駄になる。そこで、オブジェクト同士の重なりがある場合に、当該重なりの部分の描画を省略することで、描画速度の高速化が可能となる。これをフラットニング処理と称する。
<First Embodiment>
First, the flattening process will be described prior to the description of the embodiment. The print data described in the page description language PDL is converted into intermediate data to enable high-speed expansion processing. If there is an overlap between objects that are the minimum unit of the intermediate data, the newly drawn object is already drawn. Since the overwritten object is overwritten, the overlapping portion is drawn redundantly, which is a waste of processing. Therefore, when there is an overlap between objects, the drawing speed can be increased by omitting the drawing of the overlapping portion. This is called flattening processing.

図1は、フラットニング処理の模式図である。矩形で表現されるオブジェクト10とオブジェクト12の間に重なりがある場合、時系列で先に描かれるべくオブジェクト10から重なり部を省略(あるいは除去)して描画パターンを作成し、オブジェクト10とオブジェクト12を描画する。重なり部はオブジェクト12として描画されるだけであるため、重複して描画する場合に比べて描画速度が高速化する。   FIG. 1 is a schematic diagram of the flattening process. When there is an overlap between the object 10 and the object 12 expressed by a rectangle, a drawing pattern is created by omitting (or removing) the overlap portion from the object 10 so as to be drawn first in time series. Draw. Since the overlapping portion is only drawn as the object 12, the drawing speed is increased as compared with the case of overlapping drawing.

但し、印刷すべき全てのオブジェクト間で重なりが存在するか否かを判定するために、オブジェクトの総数をNとした場合に、全通りの組み合わせの数として
=N(N−1)/2
の分析が必要となる。
However, in order to determine whether or not there is an overlap between all objects to be printed, if the total number of objects is N, the total number of combinations
N C 2 = N (N−1) / 2
Analysis is required.

図2は、オブジェクトの総数Nに対し、オブジェクト間で重なりがあるか否かを判定する場合の模式図である。図2(a)に示すように、処理単位のオブジェクトがオブジェクト1〜オブジェクトNから構成されるものとすると、これらN個のオブジェクトを分析するために=N(N−1)/2回の分析を要し、その後にN個のオブジェクトの描画を行う。従って、図2(b)に示すように、トータルの処理時間はフラットニング処理に要する時間と描画に要する時間の合計となり、フラットニング処理に要する時間、すなわち分析時間がそのまま剥き出しとなってオーバヘッドとなる。この分析時間は、オブジェクトの数Nが増大するほど増大する。 FIG. 2 is a schematic diagram for determining whether or not there is an overlap between objects with respect to the total number N of objects. As shown in FIG. 2 (a), if an object of a processing unit is composed of objects 1 to N, N C 2 = N (N−1) / 2 in order to analyze these N objects. Analysis is required, after which N objects are drawn. Therefore, as shown in FIG. 2B, the total processing time is the sum of the time required for the flattening process and the time required for the drawing, and the time required for the flattening process, that is, the analysis time is exposed as it is. Become. This analysis time increases as the number N of objects increases.

そこで、本実施形態では、全通りではなく、一定オブジェクト個数ずつグループ化し、当該グループ内でフラットニング処理することで分析回数を低減する。   Therefore, in the present embodiment, the number of analyzes is reduced by grouping a certain number of objects, not all, and performing flattening processing within the group.

図3は、本実施形態におけるフラットニング処理及び描画処理の模式図である。複数のオブジェクト毎にまとめてグループ化し、これらのグループを処理単位としてフラットニング処理を行う。例えば、図3(a)に示すように、3個のオブジェクトをまとめてグループ化する。
オブジェクト1、オブジェクト2、オブジェクト3→グループ1
オブジェクト4、オブジェクト5、オブジェクト6→グループ2
オブジェクト7、オブジェクト8、オブジェクト9→グループ3
・・・
の如くである。そして、グループの中において重なりがあるか否かを判定し、あるグループのフラットニング処理が完了してその描画処理を実行している間に、並行して次のグループのフラットニング処理を行う。
FIG. 3 is a schematic diagram of flattening processing and drawing processing in the present embodiment. A plurality of objects are grouped together and a flattening process is performed using these groups as processing units. For example, as shown in FIG. 3A, three objects are grouped together.
Object 1, Object 2, Object 3 → Group 1
Object 4, Object 5, Object 6 → Group 2
Object 7, object 8, object 9 → group 3
...
It is like this. Then, it is determined whether or not there is an overlap in the group, and the flattening process of the next group is performed in parallel while the flattening process of a certain group is completed and the drawing process is executed.

図3(b)は、並行して実行されるグループ毎のフラットニング処理と描画処理の模式図である。図において、番号は3個のオブジェクトからなるグループの番号を示す。グループ1の重なり分析を含むフラットニング処理を行い、グループ1の描画処理を行うとともに、この描画処理と同時並行して次のグループ2のフラットニング処理を行う。グループ2のフラットニング処理が終了し、グループ2の描画処理を行うとともに、この描画処理と並行して次のグループ3のフラットニング処理を行う。以下、同様にして、グループN−1のフラットニング処理を行い、グループN−1の描画処理を行うとともに、これと並行して次のグループNのフラットニング処理を行う。グループNのフラットニング処理を一定の個数のオブジェクトに限定することでフラットニング処理に要する時間を抑制し、かつ、グループNのフラットニング処理をグループN−1の描画処理と並行して行うことで、グループNのフラットニング処理をグループN−1の描画処理で隠蔽し得、フラットニング処理を隠蔽することでオーバヘッドを抑制し得る。   FIG. 3B is a schematic diagram of flattening processing and drawing processing for each group executed in parallel. In the figure, the number indicates the number of a group consisting of three objects. A flattening process including an overlap analysis of group 1 is performed, a drawing process of group 1 is performed, and a flattening process of the next group 2 is performed concurrently with the drawing process. The flattening process for group 2 is completed, the drawing process for group 2 is performed, and the flattening process for the next group 3 is performed in parallel with this drawing process. Thereafter, the flattening process of the group N-1 is performed in the same manner, the drawing process of the group N-1 is performed, and the flattening process of the next group N is performed in parallel with this. By limiting the flattening process of group N to a certain number of objects, the time required for the flattening process is suppressed, and the flattening process of group N is performed in parallel with the drawing process of group N-1. The flattening process of group N can be concealed by the drawing process of group N-1, and the overhead can be suppressed by concealing the flattening process.

なお、本実施形態において、一定個数、例えば3個のオブジェクトからなるグループは、フラットニング処理及び描画処理の処理単位を規定するオブジェクトウィンドウと言うことができる。   In the present embodiment, a group of a certain number of objects, for example, three objects, can be said to be an object window that defines a processing unit for flattening processing and drawing processing.

図4は、本実施形態における画像処理装置の構成ブロック図である。画像処理装置は、入力制御部20と、オブジェクト解析部22と、処理個数決定部24と、重なり判定部26と、重なり処理部28と、処理ウィンドウ制御部30と、ラスタライザ描画部32と、出力制御部34と、再構成制御部36を備える。   FIG. 4 is a block diagram showing the configuration of the image processing apparatus according to this embodiment. The image processing apparatus includes an input control unit 20, an object analysis unit 22, a processing number determination unit 24, an overlap determination unit 26, an overlap processing unit 28, a processing window control unit 30, a rasterizer drawing unit 32, and an output. A control unit 34 and a reconstruction control unit 36 are provided.

入力制御部20は、外部から供給された中間データ(オブジェクト)を入力してオブジェクト解析部22に出力する。オブジェクトは、矩形等の単純な図形の集合で表現される。矩形の場合、矩形の角の座標でそのオブジェクトの配置を管理する。例えば、オブジェクトが1つの走査線上に占める区間を表す区間データとして管理し、個々の区間データには、その区間の開始点と終了点の座標、その区間に配置されるオブジェクト種類(文字、グラフィック、連続調イメージ等)を示す情報、区間データ上の画素値属性等が含まれる。   The input control unit 20 inputs intermediate data (object) supplied from the outside and outputs it to the object analysis unit 22. An object is represented by a set of simple figures such as rectangles. In the case of a rectangle, the arrangement of the object is managed by the coordinates of the corners of the rectangle. For example, it is managed as section data representing a section that an object occupies on one scanning line. Each section data includes the coordinates of the start point and end point of the section, and the object type (character, graphic, Information indicating a continuous tone image), pixel value attributes on section data, and the like.

オブジェクト解析部22は、オブジェクトの区間データを解析して処理個数決定部24に出力する。オブジェクト解析部22は、必要に応じてオブジェクトの区間データから当該オブジェクトを描画するのに要する時間を算出する。   The object analysis unit 22 analyzes the section data of the object and outputs it to the processing number determination unit 24. The object analysis unit 22 calculates the time required to draw the object from the section data of the object as necessary.

処理個数決定部24は、フラットニング処理を行うべきオブジェクトの個数を決定する。この個数は、予め設定された個数であって2以上の整数である。処理個数決定部24は、例えば、オブジェクトの個数を3個に設定する。オブジェクトの個数は、予め画像処理装置のメモリに記憶されていてもよく、画像処理装置の操作者がキーボード等の入力装置から入力してもよい。   The processing number determination unit 24 determines the number of objects to be flattened. This number is a preset number and is an integer of 2 or more. For example, the processing number determination unit 24 sets the number of objects to three. The number of objects may be stored in advance in the memory of the image processing apparatus, or may be input by an operator of the image processing apparatus from an input device such as a keyboard.

重なり判定部26は、3個のオブジェクト間において重なりがあるか否かを区間データに基づき判定する。具体的には、オブジェクト間の矩形座標が互いに重なり合っているか否かを判定する。3個のオブジェクトをオブジェクト1、オブジェクト2、オブジェクト3とすると、重なり判定部26は、オブジェクト1とオブジェクト2の重なり、オブジェクト2とオブジェクト3の重なり、オブジェクト1とオブジェクト3の重なりを判定する。重なり判定部26は、判定結果を重なり処理部28に出力する。   The overlap determination unit 26 determines whether there is an overlap between the three objects based on the section data. Specifically, it is determined whether or not the rectangular coordinates between the objects overlap each other. Assuming that the three objects are object 1, object 2, and object 3, the overlap determining unit 26 determines the overlap between object 1 and object 2, the overlap between object 2 and object 3, and the overlap between object 1 and object 3. The overlap determination unit 26 outputs the determination result to the overlap processing unit 28.

重なり処理部28は、オブジェクト同士が重なる場合に、当該重なる部分のマスクを生成してラスタライザ描画部32に出力する。例えば、オブジェクト1とオブジェクト2で重なる場合、オブジェクト1の当該重なる部分にマスクを生成する。オブジェクト同士が重ならない場合、マスクを生成しない。また、重なり処理部28は、処理結果を処理ウィンドウ制御部30に出力する。   When the objects overlap each other, the overlap processing unit 28 generates a mask for the overlapping portion and outputs the mask to the rasterizer drawing unit 32. For example, when the object 1 and the object 2 overlap, a mask is generated for the overlapping portion of the object 1. If the objects do not overlap, do not generate a mask. In addition, the overlap processing unit 28 outputs the processing result to the processing window control unit 30.

処理ウィンドウ制御部30は、重なり処理部28での処理結果に応じて、処理ウィンドウを制御する。具体的には、3個のオブジェクトからなるグループ1の重なり処理が終了すると、次のグループ2を構成する3個のオブジェクトを指定して重なり判定部26に出力する。グループ2を構成する3個のオブジェクトは、オブジェクト4、オブジェクト5、オブジェクト6であり、重なり判定部26は、これらのオブジェクト間の重なりを判定する。以下、同様に、処理ウィンドウ制御部30は、順次、グループ3,4、・・・グループNを構成する3個のオブジェクトを指定する。   The processing window control unit 30 controls the processing window according to the processing result in the overlap processing unit 28. Specifically, when the overlap processing of the group 1 composed of three objects is completed, the three objects constituting the next group 2 are designated and output to the overlap determination unit 26. The three objects constituting the group 2 are the object 4, the object 5, and the object 6, and the overlap determining unit 26 determines the overlap between these objects. Hereinafter, similarly, the processing window control unit 30 sequentially designates the three objects constituting the groups 3, 4,.

ラスタライザ描画部32は、フラットニング処理されたオブジェクトからラスター画像を生成して出力制御部34に出力する。ラスタライザ描画部32は、重なりがない場合には従来と同様にオブジェクトからそのままラスター画像を生成するが、重なりがありマスクが生成されている場合には、当該マスク部分においてラスター画像の生成を省略する(図1参照)。出力制御部34は、ラスター画像を図示しないプリントエンジンに出力して印刷を行う。   The rasterizer drawing unit 32 generates a raster image from the flattened object and outputs the raster image to the output control unit 34. When there is no overlap, the rasterizer drawing unit 32 generates a raster image as it is from the object as in the conventional case, but when there is an overlap and a mask is generated, generation of the raster image in the mask portion is omitted. (See FIG. 1). The output control unit 34 performs printing by outputting a raster image to a print engine (not shown).

重なり判定部26及び重なり処理部28でフラットニング処理が実行され、ラスタライザ描画部32で描画処理が実行されるが、この際、ラスタライザ描画部32でグループN−1の描画処理が実行され、これと並行してグループNのフラットニング処理が実行される。グループNのフラットニング処理が終了すると、続いてラスタライザ描画部32でグループNの描画処理が実行されるが、これと並行してグループN+1のフラットニング処理が実行される。   The flattening process is executed by the overlap determination unit 26 and the overlap processing unit 28, and the drawing process is executed by the rasterizer drawing unit 32. At this time, the drawing process of the group N-1 is executed by the rasterizer drawing unit 32. In parallel with this, the flattening process of the group N is executed. When the flattening process for group N is completed, the rasterizer drawing unit 32 subsequently executes the drawing process for group N. In parallel with this, the flattening process for group N + 1 is executed.

再構成制御部36は、オブジェクトの描画形式が複数形式存在する場合に、描画形式に合わせて使用回路を再構成する。内部の論理回路構成を動的に再構成可能なDRP(Dynamic Reconfigurable Processor)は公知であり、メモリに記憶された複数のコンフィグレーションデータを選択的に有効とし、有効とされたコンフィグレーションデータに従ってDRPを再構成することで、ハードウェアを徒に増大化することなく、複数の描画形式に適応し得る。なお、描画形式が1種類で固定されている場合には、再構成する必要がないので再構成制御部36は不要である。ラスタライザ描画部32において、オブジェクトのラスタライザ処理、カラーマッチング処理、データ圧縮処理を順次行う場合、これら一連のパイプライン処理がDRPで構成される。図4の各部はコンピュータにより構成されるが、DRPは当該コンピュータの補助処理装置として構成される。   The reconfiguration control unit 36 reconfigures a circuit to be used in accordance with the drawing format when there are a plurality of drawing formats of the object. A DRP (Dynamic Reconfigurable Processor) capable of dynamically reconfiguring an internal logic circuit configuration is known, and a plurality of configuration data stored in a memory is selectively validated, and the DRP is validated according to the validated configuration data. By reconfiguring, it is possible to adapt to a plurality of drawing formats without increasing the hardware. If the drawing format is fixed to one type, it is not necessary to reconfigure, so the reconfiguration control unit 36 is unnecessary. When the rasterizer rendering unit 32 sequentially performs object rasterizer processing, color matching processing, and data compression processing, these series of pipeline processing are configured by DRP. Each part of FIG. 4 is configured by a computer, but DRP is configured as an auxiliary processing device of the computer.

図5は、本実施形態の処理フローチャートである。なお、処理フローチャートでは、オブジェクトグループをオブジェクトウィンドウとして説明する。
まず、処理個数決定部24におけるウィンドウサイズA(2≦A)を設定する(S101)。このウィンドウサイズAによりフラットニング処理に要する時間も変動するが、詳細についてはさらに後述する。
FIG. 5 is a processing flowchart of the present embodiment. In the processing flowchart, an object group is described as an object window.
First, the window size A (2 ≦ A) in the processing number determination unit 24 is set (S101). Although the time required for the flattening process varies depending on the window size A, details will be described later.

ウィンドウサイズAを設定した後、N番目のウィンドウの重なり処理(フラットニング処理)とN−1番目のウィンドウのラスタライザ処理(描画処理)を並行して実行する(S102a、S102b)。すなわち、1番目のウィンドウの描画処理と2番目のウィンドウのフラットニング処理を並行して実行し、2番目のウィンドウの描画処理と3番目のウィンドウのフラットニング処理を並行して実行する等である。なお、1番目のウィンドウのフラットニング処理を行う際には、描画処理すべきデータが未だ存在していないので描画処理が並行して行われることはない。以上の処理を全てのオブジェクトについて完了するまで繰り返し実行する(S103)。全てのオブジェクトについて完了したか否かは、処理ウィンドウ制御部30で判定する。   After the window size A is set, the overlap processing (flattening processing) of the Nth window and the rasterizer processing (drawing processing) of the (N-1) th window are executed in parallel (S102a, S102b). That is, the drawing process for the first window and the flattening process for the second window are executed in parallel, and the drawing process for the second window and the flattening process for the third window are executed in parallel. . When the flattening process of the first window is performed, the drawing process is not performed in parallel because there is no data to be drawn yet. The above process is repeated until all the objects are completed (S103). The processing window control unit 30 determines whether or not all objects have been completed.

このように、本実施形態では、フラットニング処理を行うオブジェクトをA個に固定し、かつ、フラットニング処理と描画処理を並行して実行することでフラットニング処理を描画処理に隠蔽することで、フラットニング処理のオーバヘッドをなくし、描画までのトータル処理時間を抑制できる。   As described above, in the present embodiment, the number of objects to be flattened is fixed to A, and the flattening process and the drawing process are executed in parallel to conceal the flattening process in the drawing process. The overhead of flattening processing can be eliminated and the total processing time until drawing can be suppressed.

<第2実施形態>
第1実施形態では、ウィンドウサイズAを固定してフラットニング処理を実行しているため、重なりがあるか否かの分析時間は一定である。他方、オブジェクト毎にサイズが異なり、描画方法も異なり得るため、描画時間はオブジェクト毎に変化し得る。従って、オブジェクトによっては、フラットニング処理と描画処理を並行して実行しても、描画時間が短いために結果としてフラットニング処理を隠蔽できない場合が生じ得る。
Second Embodiment
In the first embodiment, since the flattening process is executed with the window size A fixed, the analysis time for whether or not there is an overlap is constant. On the other hand, since the size is different for each object and the drawing method can be different, the drawing time can be changed for each object. Therefore, depending on the object, even if the flattening process and the drawing process are executed in parallel, the flattening process may not be concealed as a result because the drawing time is short.

図6は、ウィンドウ番号と処理時間の関係の一例を示す図である。ウィンドウサイズA=16とした場合であり、ウィンドウ番号1はオブジェクト1、オブジェクト2、オブジェクト3、・・・、オブジェクト16からなり、ウィンドウ番号2はオブジェクト17、オブジェクト18、・・・、オブジェクト32からなる。   FIG. 6 is a diagram illustrating an example of the relationship between the window number and the processing time. When window size A = 16, window number 1 is composed of object 1, object 2, object 3,..., Object 16, and window number 2 is composed of object 17, object 18,. Become.

図6において、符号aは各ウィンドウのフラットニング処理時間を示し、符号bは各ウィンドウの描画処理時間を示す。ウィンドウサイズが一定であるためウィンドウ番号によらずフラットニング処理時間は一定であるが、これに対して描画処理時間はウィンドウ番号により変動し、特にウィンドウ番号3〜6、14〜17では処理時間が相対的に長く、ウィンドウ番号7〜13では処理時間が相対的に短い。フラットニング処理と描画処理を並行して実行する場合、フラットニング処理時間≦描画処理時間であれば、フラットニング処理を描画処理で隠蔽することが可能であるが、フラットニング処理時間>描画時間であればフラットニング処理を隠蔽することができなくなる。   In FIG. 6, the symbol a indicates the flattening processing time of each window, and the symbol b indicates the drawing processing time of each window. Since the window size is constant, the flattening processing time is constant regardless of the window number. On the other hand, the drawing processing time varies depending on the window number. In particular, the processing time for window numbers 3 to 6 and 14 to 17 is used. It is relatively long, and the processing time is relatively short in the window numbers 7 to 13. When the flattening process and the drawing process are executed in parallel, if the flattening process time is equal to or less than the drawing process time, the flattening process can be hidden by the drawing process. If so, the flattening process cannot be concealed.

図7は、フラットニング処理と描画処理を並行して実行する場合の模式図である。ウィンドウ番号6とウィンドウ番号7に着目すると、ウィンドウ番号6の描画処理とウィンドウ番号7のフラットニング処理は並行して実行され、フラットニング処理時間≦描画処理時間であるためフラットニング処理を隠蔽することができる。   FIG. 7 is a schematic diagram when the flattening process and the drawing process are executed in parallel. Focusing on window number 6 and window number 7, the drawing process of window number 6 and the flattening process of window number 7 are executed in parallel, and the flattening process is concealed because the flattening process time ≤ the drawing process time. Can do.

他方、ウィンドウ番号7とウィンドウ番号8に着目すると、ウィンドウ番号7の描画処理とウィンドウ番号8のフラットニング処理は並行して実行され、フラットニング処理時間>描画処理時間であるためフラットニング処理を隠蔽できない。   On the other hand, paying attention to window number 7 and window number 8, the drawing process of window number 7 and the flattening process of window number 8 are executed in parallel, and the flattening process is concealed because flattening process time> drawing process time. Can not.

また、ウィンドウ番号8とウィンドウ番号9に着目すると、ウィンドウ番号8の描画処理とウィンドウ番号9のフラットニング処理は並行して実行され、フラットニング処理時間>描画処理時間であるため同様にフラットニング処理を隠蔽できない。   If attention is paid to window number 8 and window number 9, the drawing process of window number 8 and the flattening process of window number 9 are executed in parallel, and since the flattening process time> the drawing process time, the flattening process is similarly performed. Cannot be concealed.

このように、オブジェクト毎に描画時間が変化し得ることに起因して、ウィンドウ毎に描画時間が変化し、フラットニング処理時間>描画処理時間となるとフラットニング処理を隠蔽できないことに鑑み、本実施形態では、ウィンドウサイズAを固定ではなく可変(すなわち、オブジェクト個数可変)とすることでフラットニング処理時間を適応的に変化させる。   Thus, in view of the fact that the drawing time may change for each object due to the fact that the drawing time may change for each object, and the flattening processing time cannot be concealed when the flattening processing time> the drawing processing time. In the embodiment, the flattening processing time is adaptively changed by making the window size A variable (that is, variable number of objects) instead of being fixed.

図8は、本実施形態によるオブジェクト個数可変方式によるフラットニング処理と描画処理の模式図である。いま、図8(a)のように、
(ウィンドウNのフラットニング処理時間)<(ウィンドウN−1の描画時間)
(ウィンドウN+1のフラットニング処理時間)>(ウィンドウNの描画時間)
(ウィンドウN+2のフラットニング処理時間)>(ウィンドウN+1の描画時間)
であるとする。このとき、図8(b)のように、ウィンドウNのフラットニング処理についてはウィンドウN−1の描画時間にほぼ等しくなるようにウィンドウサイズAを大きくし、ウィンドウN+1のフラットニング処理についてはウィンドウNの描画時間にほぼ等しくなるようにウィンドウサイズAを小さくし、ウィンドウN+2のフラットニング処理についてはウィンドウN+1の描画時間にほぼ等しくなるようにウィンドウサイズAを小さくする。このように、フラットニング処理を行うウィンドウサイズA、すなわちオブジェクト個数を増減調整することで、フラットニング処理時間を増減調整して描画時間に合わせ、フラットニング処理を隠蔽する。ウィンドウNのフラットニング処理時にウィンドウNを構成する複数のオブジェクトのサイズや属性を解析するから、ウィンドウNのフラットニング処理時に同時にウィンドウNの描画予想時間を算出することができ、このウィンドウNの描画予想時間に合わせてウィンドウN+1のウィンドウサイズAを可変設定する。すなわち、ウィンドウNのフラットニング処理時に次のウィンドウN+1のウィンドウサイズAを設定する。
FIG. 8 is a schematic diagram of flattening processing and drawing processing by the object number variable method according to the present embodiment. Now, as shown in Fig. 8 (a),
(Flatening processing time of window N) <(drawing time of window N-1)
(Flattening processing time of window N + 1)> (drawing time of window N)
(Flatening processing time for window N + 2)> (drawing time for window N + 1)
Suppose that At this time, as shown in FIG. 8B, for the flattening process of the window N, the window size A is increased so as to be approximately equal to the drawing time of the window N−1, and for the flattening process of the window N + 1, the window N The window size A is reduced so as to be substantially equal to the drawing time of the window N, and the window size A is reduced so as to be substantially equal to the drawing time of the window N + 1 for the flattening processing of the window N + 2. In this way, by adjusting the window size A for performing the flattening process, that is, the number of objects, to increase or decrease the flattening process time, the flattening process is concealed according to the drawing time. Since the size and attributes of a plurality of objects constituting the window N are analyzed during the flattening process of the window N, the estimated drawing time of the window N can be calculated at the same time as the flattening process of the window N. The window size A of the window N + 1 is variably set according to the expected time. That is, the window size A of the next window N + 1 is set during the flattening process of the window N.

図9は、ウィンドウN+1のウィンドウサイズAを設定する模式図である。図9(a)に示すように、ウィンドウNのフラットニング処理を実行する際に、ウィンドウNの描画予想時間Tが算出される(この時点では、ウィンドウNの描画は行われていない)。そこで、ウィンドウN+1のウィンドウサイズAを、ウィンドウNの描画予想時間T以内となるように設定する。ウィンドウN+1のウィンドウサイズAを可変調整後のフラットニング処理時間をtN+1とすると、T≧tN+1であり、ウィンドウN+1のフラットニング処理が隠蔽される。 FIG. 9 is a schematic diagram for setting the window size A of the window N + 1. As shown in FIG. 9A, when the flattening process of the window N is executed, the expected drawing time TN of the window N is calculated (at this time, the drawing of the window N is not performed). Therefore, the window size A of the window N + 1, is set to be within the drawing expected time T N of the window N. Assuming that the flattening processing time after variably adjusting the window size A of the window N + 1 is t N + 1 , T N ≧ t N + 1 and the flattening processing of the window N + 1 is concealed.

具体的には、ウィンドウN+1のウィンドウサイズをA、つまりオブジェクト個数をAとし、フラットニング処理1回当たりに要する時間をαとすると、
N+1=α・=α・A(A−1)/2
であるから、
≧tN+1
を満たすためには、
A≦{1+(1+8T/α)1/2}/2 ・・・(1)
となるようにウィンドウサイズA,つまりオブジェクト個数Aを設定すればよい。一例として、不等式(1)を満たす最大数をウィンドウサイズAに設定する。
Specifically, if the window size of the window N + 1 is A, that is, the number of objects is A, and the time required for one flattening process is α,
t N + 1 = α · A C 2 = α · A (A-1) / 2
Because
T N ≧ t N + 1
To meet
A ≦ {1+ (1 + 8T N / α) 1/2 } / 2 (1)
The window size A, that is, the number of objects A may be set so that As an example, the maximum number satisfying the inequality (1) is set as the window size A.

図10は、本実施形態における画像処理装置の構成ブロック図である。図4と異なるのは、次回分析個数決定部29が新たに追加される点である。   FIG. 10 is a block diagram showing the configuration of the image processing apparatus according to this embodiment. The difference from FIG. 4 is that a next analysis number determination unit 29 is newly added.

次回分析個数決定部29は、ウィンドウNのフラットニング処理時に、ウィンドウNの描画予想時間Tを用いて、上記の不等式(1)を満たすようにウィンドウサイズA、つまりオブジェクト個数Aを決定して処理個数決定部24に出力する。描画予想時間Tは、オブジェクト解析部22で算出する。 Next analysis number determining unit 29, when the flattening processing window N, using the drawing expected time T N of the window N, the window size A so as to satisfy the above inequality (1), that is, to determine the object number A It outputs to the processing number determination part 24. The estimated drawing time TN is calculated by the object analysis unit 22.

図11は、本実施形態の処理フローチャートである。まず、処理個数決定部24におけるウィンドウサイズA(2≦A)を初期値A1に設定する(S201)。初期値A1は任意でよく、例えば3あるいは16等に設定する。   FIG. 11 is a processing flowchart of the present embodiment. First, the window size A (2 ≦ A) in the processing number determination unit 24 is set to the initial value A1 (S201). The initial value A1 may be arbitrary, and is set to 3 or 16, for example.

ウィンドウサイズAを初期値A1に設定した後、N番目のウィンドウのオブジェクトA個の重なり処理(フラットニング処理)とN−1番目のウィンドウのオブジェクトAN−1個のラスタライザ処理(描画処理)を並行して実行する(S202a、S202b)。 After the window size A is set to the initial value A1, the Nth window object A N overlap processing (flattening processing) and the N−1th window object A N−1 rasterizer processing (drawing processing) Are executed in parallel (S202a, S202b).

次に、N番目のウィンドウのラスタライザ処理個数Aを算出し(S203)、この処理個数Aを用いてN+1番目のウィンドウのフラットニング処理個数AN+1を決定する(S204)。フラットニング処理個数はフラットニング処理時間と実質的に同じであるから、S203はラスタライザ処理時間を算出するといえる。S204では、不等式(1)を満たすようにAN+1が決定される。以上の処理を全てのオブジェクトについて完了するまで繰り返し実行する(S205)。従って、1番目のウィンドウについては、初期値のA1でフラットニング処理されるとともに描画処理されるが、2番目のウィンドウについては、1番目のウィンドウのフラットニング処理個数(処理時間)に応じて処理個数が決定され(初期値A1と同一の場合もあれば、これと異なる場合もある)、決定された個数でフラットニング処理及び描画処理が実行される。同様に、3番目のウィンドウについても、2番目のウィンドウのフラットニング処理個数(フラットニング処理時間)に応じて処理個数が決定される。 Then, to calculate the N-th window rasterizer processing number A N (S203), determines a flattening process number A N + 1 of the (N + 1) th window using the process number A N (S204). Since the number of flattening processes is substantially the same as the flattening process time, it can be said that S203 calculates the rasterizer processing time. In S204, A N + 1 is determined so as to satisfy the inequality (1). The above process is repeated until all objects are completed (S205). Accordingly, the first window is flattened and drawn with the initial value A1, while the second window is processed according to the number of flattening processes (processing time) of the first window. The number is determined (may be the same as the initial value A1 or may be different from this), and the flattening process and the drawing process are executed with the determined number. Similarly, for the third window, the number of processes is determined according to the number of flattening processes (flattening process time) of the second window.

このように、本実施形態では、フラットニング処理を行うオブジェクト個数を描画時間に合わせて可変調整することで、フラットニング処理を確実に隠蔽できる。勿論、予めオブジェクトの属性がほぼ均一であって、フラットニング処理時間≦描画時間となることが明らかであれば、第1実施形態で示したようにオブジェクト個数を初期値A1のまま固定してもよい。   Thus, in this embodiment, the flattening process can be reliably concealed by variably adjusting the number of objects to be flattened according to the drawing time. Of course, if it is clear that the object attributes are almost uniform and the flattening processing time ≦ the drawing time, the number of objects can be fixed at the initial value A1 as shown in the first embodiment. Good.

なお、不等式(1)から明らかなように、Tが増大するほどAも増大し、Tが減少するほどAも減少するから、両者の間に正の相関があるといえる。 As is clear from inequality (1), A is also increased as T N is increased, because A also decreases as T N is decreased, it can be said that there is a positive correlation between the two.

本願出願人は、
(i)オブジェクト500個、ページ内で30%の重なりがある場合
(ii)オブジェクト1000個、ページ内で50%の重なりがある場合
(iii)オブジェクト500個、ページ内で70%の重なりがある場合
のそれぞれにおいて、従来方式(図2に示す方式)のトータル処理時間と本実施形態の方式のトータル処理時間を比較したところ、以下の結果が得られることを確認している。
(i)の場合
従来方式:1.4秒
実施形態方式:0.18秒
(ii)の場合
従来方式:5.2秒
実施形態方式:0.35秒
(iii)の場合
従来方式:126秒
実施形態方式:1.7秒
Applicant
(I) 500 objects with 30% overlap in the page (ii) 1000 objects with 50% overlap in the page (iii) 500 objects with 70% overlap in the page In each case, the total processing time of the conventional method (the method shown in FIG. 2) is compared with the total processing time of the method of this embodiment, and it is confirmed that the following results are obtained.
Case (i) Conventional method: 1.4 seconds Embodiment method: 0.18 seconds (ii) Conventional method: 5.2 seconds Embodiment method: 0.35 seconds (iii) Conventional method: 126 seconds Embodiment method: 1.7 seconds

これらの結果より、本実施形態による処理時間短縮化あるいは処理速度高速化の効果は明らかである。   From these results, the effect of shortening the processing time or increasing the processing speed according to the present embodiment is clear.

<第3実施形態>
第2実施形態では、ウィンドウサイズ、つまりオブジェクト個数を可変調整することでフラットニング処理を確実に隠蔽することが可能であるが、さらに、フラットニング処理を効率化することも可能である。
<Third Embodiment>
In the second embodiment, the flattening process can be reliably hidden by variably adjusting the window size, that is, the number of objects, but the flattening process can be made more efficient.

図12は、オブジェクト毎の描画時間の一例を示す図である。オブジェクト毎にサイズや描画方式が異なり得るため、その描画時間も異なる。例えば、オブジェクト1〜オブジェクト100は描画時間が相対的に長く、オブジェクト110〜オブジェクト230は描画時間が相対的に短い。図には、第2実施形態におけるオブジェクト個数可変調整の一例も合わせて示す。最初は2個、次は12個、その次は29個、その次は46個、その次は111個と変化(増大)していくが、オブジェクトm、オブジェクトm+1、オブジェクトm+2、・・・のように連続する複数個のオブジェクトの間のみでフラットニング処理を行うため、全通りの重なりを考慮する場合に比べてフラットニング処理の効果が出難い。フラットニング処理の効果を極大化するためには、図13に示すように、描画時間が相対的に長い領域Aと領域Cの間でフラットニング処理を行うのが効率的であり、元々描画時間が相対的に短い領域Bや領域Dについてフラットニング処理を行ってもその効果は限定的とならざるを得ない。   FIG. 12 is a diagram illustrating an example of the drawing time for each object. Since the size and drawing method can be different for each object, the drawing time is also different. For example, the objects 1 to 100 have a relatively long drawing time, and the objects 110 to 230 have a relatively short drawing time. The drawing also shows an example of the object number variable adjustment in the second embodiment. The first is 2, the next is 12, the next is 29, the next is 46, and the next is 111 (changes), but object m, object m + 1, object m + 2,. As described above, since the flattening process is performed only between a plurality of continuous objects, the effect of the flattening process is less likely to occur compared to the case where all the overlaps are considered. In order to maximize the effect of the flattening process, as shown in FIG. 13, it is efficient to perform the flattening process between the area A and the area C with a relatively long drawing time. However, even if the flattening process is performed on the relatively short region B or region D, the effect is inevitably limited.

以上の事実に鑑み、本実施形態では、描画時間が相対的に長い領域についてフラットニング処理を行い、描画時間が相対的に短い領域についてはフラットニング処理を行わないことで、トータル処理時間をさらに短縮する。描画時間が相対的に長い領域は、オブジェクトのサイズや描画方式からオブジェクトの描画時間を算出し、これを閾値と大小比較することで抽出し得る。図13に即して説明すると、領域A及び領域Cを抽出し、領域Aを構成するオブジェクトと領域Cを構成するオブジェクトでフラットニング処理を実行する。   In view of the above facts, in this embodiment, the flattening process is performed for an area with a relatively long drawing time, and the flattening process is not performed for an area with a relatively short drawing time, thereby further reducing the total processing time. Shorten. An area having a relatively long drawing time can be extracted by calculating the drawing time of the object from the size and drawing method of the object and comparing it with a threshold value. Explaining with reference to FIG. 13, the area A and the area C are extracted, and the flattening process is executed on the object constituting the area A and the object constituting the area C.

この方式によれば、連続していないオブジェクトであってもフラットニング処理を行い得る。   According to this method, flattening processing can be performed even for non-continuous objects.

図14は、本実施形態の概念構成図である。本実施形態の画像処理装置は、閾値Sth判定部40と、フラットニング処理部42と、ラスタライザ描画部44,46を備える。   FIG. 14 is a conceptual configuration diagram of the present embodiment. The image processing apparatus according to the present embodiment includes a threshold Sth determination unit 40, a flattening processing unit 42, and rasterizer drawing units 44 and 46.

閾値Sth判定部は、中間データ(中間言語)としてのオブジェクトを入力し、当該オブジェクトのサイズや描画方式から算出される描画予想時間を予め定められた閾値Sthと大小比較する。閾値Sth以上のオブジェクトに対しては、フラットニング処理対象としてフラットニング処理部42でフラットニング処理を実行した後にラスタライザ描画部44で描画処理を実行する。他方、閾値Sth未満のオブジェクトに対しては、フラットニング処理未対象(非対象)としてフラットニング処理を行うことなくラスタライザ描画部46で描画処理を実行して出力する。   The threshold value Sth determination unit inputs an object as intermediate data (intermediate language), and compares the estimated drawing time calculated from the size and drawing method of the object with a predetermined threshold value Sth. For an object equal to or greater than the threshold value Sth, the flattening processing unit 42 executes the flattening process as a flattening process target, and then the rasterizer drawing unit 44 executes the drawing process. On the other hand, with respect to an object less than the threshold value Sth, the rasterizer rendering unit 46 executes the rendering process without performing the flattening process as an untargeted (non-target) flattening process, and outputs the object.

図15は、本実施形態における画像処理装置の構成ブロック図である。図10と異なるのは、重なり省略対象判定部23が新たに追加された点である。   FIG. 15 is a block diagram showing the configuration of the image processing apparatus according to this embodiment. The difference from FIG. 10 is that an overlap omission target determination unit 23 is newly added.

重なり省略対象判定部23は、図14における閾値Sth判定部40に相当し、オブジェクト解析部22でオブジェクトを解析して得られる描画予想時間を閾値Sthと比較し、その結果を用いて重なり省略対象オブジェクトに対しフラグを設定する。勿論、重なり省略対象でないオブジェクトに対しフラグを設定してもよく、要するに、閾値Sthと大小比較して各オブジェクトをフラットニング処理の対象/非対象に分類する。描画予想時間が閾値Sth以上でフラットニング処理の対象に分類されたオブジェクトは、第2実施形態と同様に重なり判定部26等でフラットニング処理され、ラスタライザ描画部32で描画処理される。他方、描画予想時間が閾値Sth未満でフラットニング処理の対象に分類されなかったオブジェクトは、重なり判定部26等でフラットニング処理されることなく、ラスタライザ描画部32で描画処理される。
例えば、オブジェクト1〜オブジェクト6に対し、
オブジェクト1:対象
オブジェクト2:対象
オブジェクト3:未対象
オブジェクト4:未対象
オブジェクト5:対象
オブジェクト6:対象
と分類された場合、オブジェクト1、オブジェクト2、オブジェクト5、オブジェクト6でウィンドウが構成され、フラットニング処理が実行される。オブジェクト1、オブジェクト2と、オブジェクト5、オブジェクト6は連続していないが重なり分析の対象となり、互いに重なりがあればフラットニング処理される。
The overlap omission target determination unit 23 corresponds to the threshold value Sth determination unit 40 in FIG. 14, compares the expected drawing time obtained by analyzing the object with the object analysis unit 22 with the threshold value Sth, and uses the result for the overlap omission target. Set a flag for the object. Of course, a flag may be set for an object that is not subject to overlap omission. In short, each object is classified as flattening target / non-target by comparing with a threshold value Sth. An object classified as a target for flattening processing with an estimated drawing time equal to or greater than the threshold value Sth is flattened by the overlap determination unit 26 and the like, and is drawn by the rasterizer drawing unit 32 as in the second embodiment. On the other hand, an object that has not been classified as a flattening process target because the estimated drawing time is less than the threshold value Sth is drawn by the rasterizer drawing unit 32 without being flattened by the overlap determination unit 26 or the like.
For example, for objects 1 to 6,
Object 1: Target Object 2: Target Object 3: Untargeted Object 4: Untargeted Object 5: Target Object 6: When classified as a target, a window is composed of object 1, object 2, object 5, and object 6 and is flat. Processing is executed. Object 1, object 2, object 5, and object 6 are not continuous but are subject to overlap analysis, and if there is an overlap, flattening processing is performed.

図16は、本実施形態の処理フローチャートである。図11と異なるのは、全オブジェクトをフラットニング対象/未対象(非対象)に分類する処理を行う点である(S301)。具体的には、各オブジェクトの描画予想時間を閾値Sthと大小比較し、閾値Sth以上をフラットニング対象、閾値Sth未満をフラットニング未対象(非対象)に分類する。   FIG. 16 is a process flowchart of the present embodiment. 11 is different from FIG. 11 in that processing for classifying all objects as flattening target / non-target (non-target) is performed (S301). Specifically, the estimated drawing time of each object is compared with the threshold value Sth, and the threshold value Sth or higher is classified as a flattening target, and less than the threshold value Sth is classified as non-flattening target (non-target).

なお、「描画予想時間」とあるのは、言うまでもなくその時点では実際に描画されていないことを考慮したものである。   Note that the “expected drawing time” is, of course, considered that drawing is not actually performed at that time.

以後は、図11の処理と基本的に同様であり、処理個数決定部24におけるウィンドウサイズA(2≦A)を初期値A1に設定し(S302)、N番目のウィンドウのオブジェクトA個の重なり処理(フラットニング処理)とN−1番目のウィンドウのオブジェクトBN−1個のラスタライザ処理(描画処理)を並行して実行する(S303a、S303b)。 Thereafter, the processing is basically the same as the processing in FIG. 11, the window size A (2 ≦ A) in the processing number determination unit 24 is set to the initial value A1 (S302), and the N objects of the Nth window A N The overlap process (flattening process) and the N−1th rasterizer process (drawing process) of the object B N−1 window are executed in parallel (S303a, S303b).

次に、N番目のウィンドウのラスタライザ処理個数Bを算出し(S304)、この処理個数Bを用いてN+1番目のウィンドウのフラットニング処理個数AN+1を決定する(S305)。S305では、不等式(1)を満たすようにAN+1が決定される。以上の処理を全てのオブジェクトについて完了するまで繰り返し実行する(S306)。 Then, to calculate the N-th window rasterizer processes the number B N (S304), determines a flattening process number A N + 1 of the (N + 1) th window using the process number B N (S305). In S305, A N + 1 is determined so as to satisfy the inequality (1). The above process is repeated until all objects are completed (S306).

但し、本実施形態では、ラスタライザ処理個数Bは条件により変化する。すなわち、フラットニング処理個数が連続している場合には、フラットニング処理個数をM個としてB=Mとなる。他方、フラットニング処理個数が飛び飛びの場合(フラットニング対象と未対象(非対象)が混在する場合)、M個カウントされるまでの未対象(非対象)個数の総和をβとして、B=M+βである。   However, in the present embodiment, the rasterizer processing number B varies depending on conditions. That is, when the number of flattening processes is continuous, the number of flattening processes is M and B = M. On the other hand, when the number of flattening processes is skipped (when flattening target and non-target (non-target) are mixed), the sum of the number of non-target (non-target) until M counts is set as β, and B = M + β It is.

具体的に説明すると、以下の通りである。
すなわち、オブジェクト1〜オブジェクト10があり、ウィンドウサイズの初期値A1をA1=3とする。各オブジェクトの描画時間を閾値Sthと大小比較し、
オブジェクト1:対象
オブジェクト2:対象
オブジェクト3:未対象
オブジェクト4:未対象
オブジェクト5:対象
オブジェクト6:対象
オブジェクト7:対象
オブジェクト8:対象
オブジェクト9:未対象
オブジェクト10:対象
に分類されたものとする。
Specifically, it is as follows.
That is, there are objects 1 to 10 and the initial value A1 of the window size is set to A1 = 3. Compare the drawing time of each object with the threshold value Sth,
Object 1: Target Object 2: Target Object 3: Untargeted Object 4: Untargeted Object 5: Target Object 6: Target Object 7: Target Object 8: Target Object 9: Untargeted Object 10: Targeted .

フラットニング処理対象は、オブジェクト1、オブジェクト2、オブジェクト5であり、これらをウィンドウとしてフラットニング処理を行う。そして、フラットニング処理されたオブジェクト1、オブジェクト2、オブジェクト5と、これらの間の未対象のオブジェクト3、オブジェクト4の5個のオブジェクトを描画処理する。これとともに、オブジェクト1〜オブジェクト5の処理個数(処理時間)を用いて次の処理個数を不等式(1)を用いて決定する。その結果、4個に決定されたものとすると、オブジェクト6、オブジェクト7、オブジェクト8、オブジェクト10をウィンドウとしてフラットニング処理を行う。また、描画処理は、これらのオブジェクトにオブジェクト9を加え、オブジェクト6〜10で実行する。本実施形態では、描画時間が相対的に長いオブジェクト同士でフラットニング処理が実行される点に留意されたい。   The flattening process targets are object 1, object 2, and object 5, and the flattening process is performed using these as windows. Then, the object 1, object 2, and object 5 subjected to the flattening process, and the five untargeted objects 3 and 4 between them are drawn. At the same time, the next processing number is determined using the inequality (1) using the processing number (processing time) of the objects 1 to 5. As a result, assuming that the number is determined to be four, flattening processing is performed using the object 6, object 7, object 8, and object 10 as windows. Further, the drawing process is executed with the objects 6 to 10 by adding the object 9 to these objects. In this embodiment, it should be noted that the flattening process is executed between objects having a relatively long drawing time.

本実施形態においても、本願出願人は、
(i)オブジェクト500個、ページ内で30%の重なりがある場合
(ii)オブジェクト1000個、ページ内で50%の重なりがある場合
(iii)オブジェクト500個、ページ内で70%の重なりがある場合
のそれぞれにおいて、従来方式(図2に示す方式)のトータル処理時間と本実施形態の方式のトータル処理時間を比較したところ、以下の結果が得られることを確認している。
(i)の場合
従来方式:1.4秒
実施形態方式:0.16秒(従来比1/9)
(ii)の場合
従来方式:5.2秒
実施形態方式:0.23秒(従来比1/22)
(iii)の場合
従来方式:126秒
実施形態方式:0.86秒 (従来比1/176)
これらの結果より、本実施形態では従来方式に比べて約10倍〜100倍程度の速度が得られ、本実施形態による処理時間短縮化あるいは処理速度高速化の効果は明らかである。
Also in this embodiment, the applicant of the present application is
(I) 500 objects with 30% overlap in the page (ii) 1000 objects with 50% overlap in the page (iii) 500 objects with 70% overlap in the page In each case, the total processing time of the conventional method (the method shown in FIG. 2) is compared with the total processing time of the method of this embodiment, and it is confirmed that the following results are obtained.
In the case of (i) Conventional method: 1.4 seconds Embodiment method: 0.16 seconds (1/9 compared with the conventional method)
In the case of (ii) Conventional method: 5.2 seconds Embodiment method: 0.23 seconds (1/22 compared to the conventional method)
In the case of (iii) Conventional method: 126 seconds Embodiment method: 0.86 seconds (1/176 compared with the conventional method)
From these results, the speed of about 10 to 100 times is obtained in this embodiment compared with the conventional method, and the effect of shortening the processing time or increasing the processing speed according to this embodiment is clear.

以上、本発明の実施形態について説明したが、本発明はこれらの実施形態に限定されず、種々の変形が可能である。   As mentioned above, although embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation is possible.

例えば、第2実施形態では、ウィンドウN+1のオブジェクト個数をウィンドウNの描画時間に応じて可変調整しているが、可変調整した結果、オブジェクト個数が1個となる場合もあり得る。従って、第1実施形態ではオブジェクト個数は2以上の整数であるが、第2実施形態ではオブジェクト個数は1以上の整数であり、2以上に制限されない。   For example, in the second embodiment, the number of objects in the window N + 1 is variably adjusted according to the drawing time of the window N. However, as a result of variably adjusting, the number of objects may be one. Therefore, in the first embodiment, the number of objects is an integer of 2 or more, but in the second embodiment, the number of objects is an integer of 1 or more and is not limited to 2 or more.

また、第3実施形態では、第2実施形態と同様にオブジェクト個数を可変調整しているが、より簡易的にオブジェクト個数を固定(1以上の整数に固定)とした上で、オブジェクトをフラットニング対象/未対象(比対象)に分類し、閾値Sth以上のオブジェクトを対象としてフラットニング処理を行ってもよい。すなわち、第3実施形態は、必ずしも第1実施形態あるいは第2実施形態の構成を前提とする必要はない。この場合においても、フラットニング未対象とされたオブジェクトはフラットニング処理から除外されるので、全通りのフラットニング処理を行う場合に比べて処理時間が短縮化される。勿論、フラットニング処理を確実に隠蔽するためには、不等式(1)を満たすようにオブジェクト個数を決定するのが望ましい。   In the third embodiment, the number of objects is variably adjusted in the same manner as in the second embodiment. However, the object number is more simply fixed (fixed to an integer of 1 or more), and the object is flattened. The flattening process may be performed by classifying the target / non-target (ratio target) and objects having a threshold value Sth or higher. That is, the third embodiment is not necessarily based on the configuration of the first embodiment or the second embodiment. Even in this case, the object that is not targeted for flattening is excluded from the flattening process, so that the processing time is shortened compared to the case where the entire flattening process is performed. Of course, in order to reliably hide the flattening process, it is desirable to determine the number of objects so as to satisfy the inequality (1).

さらに、各実施形態における画像処理装置は、例えば汎用コンピュータに各機能モジュールの処理を記述したプログラムを実行させることで実現され得る。コンピュータは、ハードウェアとして、CPU等のマイクロプロセッサ、ROM、RAM等のメモリ、各種I/O(入出力)インタフェース、ローカルエリアネットワーク等のネットワーク接続のための制御を行うネットワークインタフェース等を備える。   Furthermore, the image processing apparatus in each embodiment can be realized by causing a general-purpose computer to execute a program describing the processing of each functional module, for example. The computer includes, as hardware, a microprocessor such as a CPU, a memory such as a ROM and a RAM, various I / O (input / output) interfaces, a network interface that performs control for network connection such as a local area network, and the like.

20 入出力制御部、22 オブジェクト解析部、23 重なり省略対象判定部、24 処理個数決定部、26 重なり判定部、28 重なり処理部、29 次回分析個数決定部、30 処理ウィンドウ制御部、32 ラスタライザ描画部、34 出力制御部、36 再構成制御部。

20 Input / output control unit, 22 Object analysis unit, 23 Overlap omission target determination unit, 24 Processing number determination unit, 26 Overlap determination unit, 28 Overlap processing unit, 29 Next analysis number determination unit, 30 Processing window control unit, 32 Rasterizer drawing Part, 34 output control part, 36 reconstruction control part.

Claims (3)

画像データに対し、画像データ個数A(Aは2以上の整数)をグループとしてフラットニング処理を行うフラットニング処理手段と、
フラットニング処理された画像データからラスター画像を生成するラスタライザ処理手段と、
を備え、グループ番号をN(Nは1以上の整数)として、前記ラスタライザ処理手段におけるグループNを構成する画像データの処理と、前記フラットニング処理手段におけるグループN+1を構成する画像データの処理を並行して実行する、画像処理装置。
Flattening processing means for performing flattening processing on image data by grouping image data number A (A is an integer of 2 or more);
Rasterizer processing means for generating a raster image from the flattened image data;
And processing the image data constituting the group N in the rasterizer processing means and the processing of the image data constituting the group N + 1 in the flattening processing means in parallel, where the group number is N (N is an integer of 1 or more) And executing the image processing apparatus.
画像データに対し、画像データ個数A(Aは1以上の整数)をグループとしてフラットニング処理を行うフラットニング処理手段と、
フラットニング処理された画像データからラスター画像を生成するラスタライザ処理手段と、
を備え、グループ番号をN(Nは1以上の整数)として、前記ラスタライザ処理手段におけるグループNを構成する画像データの処理と、前記フラットニング処理手段におけるグループN+1を構成する画像データの処理を並行して実行し、かつ、前記グループNを構成する画像データの前記ラスタライザ処理手段における処理に先立ち、その処理予想時間に応じて、前記フラットニング処理手段におけるグループN+1を構成する画像データの処理時間が前記ラスタライザ処理手段におけるグループNを構成する画像データの処理時間以下となるように、前記グループN+1を構成する画像データ個数Aを可変設定する、画像処理装置。
Flattening processing means for performing flattening processing on image data by grouping image data number A (A is an integer of 1 or more);
Rasterizer processing means for generating a raster image from the flattened image data;
And processing the image data constituting the group N in the rasterizer processing means and the processing of the image data constituting the group N + 1 in the flattening processing means in parallel, where the group number is N (N is an integer of 1 or more) And processing time of the image data constituting the group N + 1 in the flattening processing means according to the expected processing time prior to the processing in the rasterizer processing means of the image data constituting the group N. An image processing apparatus that variably sets the number A of image data constituting the group N + 1 so that the processing time of the image data constituting the group N in the rasterizer processing means is less than the processing time.
画像データに対してその描画予想時間が相対的に長い場合にフラットニング対象、相対的に短い場合にフラットニング未対象とし、フラットニング対象とされた画像データに対してフラットニング処理を行うフラットニング処理手段と、
フラットニング処理された画像データ、及びフラットニング未対象とされた画像データからラスター画像を生成するラスタライザ処理手段と、
を備え、前記ラスタライザ処理手段における画像データの処理と、前記フラットニング処理手段における画像データの処理を並行して実行する、画像処理装置。

Flattening that performs flattening processing on image data that is subject to flattening when the expected rendering time of the image data is relatively long, and flattening is not targeted when it is relatively short Processing means;
Rasterizer processing means for generating a raster image from the image data that has been flattened and the image data that has not been flattened;
An image processing apparatus that executes image data processing in the rasterizer processing means and image data processing in the flattening processing means in parallel.

JP2014128548A 2014-06-23 2014-06-23 Image processing device Expired - Fee Related JP6331752B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014128548A JP6331752B2 (en) 2014-06-23 2014-06-23 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014128548A JP6331752B2 (en) 2014-06-23 2014-06-23 Image processing device

Publications (2)

Publication Number Publication Date
JP2016009268A true JP2016009268A (en) 2016-01-18
JP6331752B2 JP6331752B2 (en) 2018-05-30

Family

ID=55226796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014128548A Expired - Fee Related JP6331752B2 (en) 2014-06-23 2014-06-23 Image processing device

Country Status (1)

Country Link
JP (1) JP6331752B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004054763A (en) * 2002-07-23 2004-02-19 Ricoh Co Ltd Image processing apparatus, image processing method, image forming apparatus, printing apparatus, and host PC
US20100123726A1 (en) * 2008-11-17 2010-05-20 Canon Kabushiki Kaisha Image processing method, image processing apparatus, and program for executing the image processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004054763A (en) * 2002-07-23 2004-02-19 Ricoh Co Ltd Image processing apparatus, image processing method, image forming apparatus, printing apparatus, and host PC
US20100123726A1 (en) * 2008-11-17 2010-05-20 Canon Kabushiki Kaisha Image processing method, image processing apparatus, and program for executing the image processing method
JP2010120196A (en) * 2008-11-17 2010-06-03 Canon Inc Image processing method, image processing apparatus and program for executing the image processing method

Also Published As

Publication number Publication date
JP6331752B2 (en) 2018-05-30

Similar Documents

Publication Publication Date Title
US7505043B2 (en) Cache efficient rasterization of graphics data
US9250848B2 (en) Dynamically adjusting the complexity of worker tasks in a multi-threaded application
CN111031346A (en) Method and device for enhancing video image quality
US20210248729A1 (en) Superpixel merging
JP5254250B2 (en) Method and system for generating boundaries in the process of rasterizing vector graphics, and method for manufacturing the system
KR20190136493A (en) Method for dividing image and apparatus for executing the method
CN117495993A (en) A method and system for constructing an image generation model
JP2013171424A (en) Image forming apparatus and image forming method
KR102482874B1 (en) Apparatus and Method of rendering
JP6331752B2 (en) Image processing device
US10049487B2 (en) Identifying duplicate indices in an input index stream
JP6643056B2 (en) Image processing apparatus, image processing method, data generation method, and program
US9710736B2 (en) Rendering apparatus and rendering method
US11436442B2 (en) Electronic apparatus and control method thereof
JP2011197951A (en) Image processor and image processing method
US11321832B2 (en) Image analysis device
Kanazawa et al. High-speed calculation of convex hull in 2D images using FPGA
JP4394692B2 (en) Graphic reading apparatus and method, and program thereof
US20240354899A1 (en) Information processing apparatus, information processing method, and storage medium
US12277685B2 (en) Image processing apparatus, image processing method, and computer recording medium for synthesizing a corrected image with a target image to be processed to generate a new image
Lozano et al. Acceleration of the pre-processing stage of the MVS workflow using graphics processors
US20250200944A1 (en) Method, systems, and apparatuses for heatmap regression in a neural network
Jo et al. GS-TG: 3D Gaussian Splatting Accelerator with Tile Grouping for Reducing Redundant Sorting while Preserving Rasterization Efficiency
JP2009075805A (en) Image forming apparatus
JP7146455B2 (en) Drawing processing device, drawing processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170522

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180206

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180319

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: 20180403

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180416

R150 Certificate of patent or registration of utility model

Ref document number: 6331752

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees