JP2006139342A - Image processor and image processing method - Google Patents
Image processor and image processing method Download PDFInfo
- Publication number
- JP2006139342A JP2006139342A JP2004325962A JP2004325962A JP2006139342A JP 2006139342 A JP2006139342 A JP 2006139342A JP 2004325962 A JP2004325962 A JP 2004325962A JP 2004325962 A JP2004325962 A JP 2004325962A JP 2006139342 A JP2006139342 A JP 2006139342A
- Authority
- JP
- Japan
- Prior art keywords
- data
- image processing
- color
- data structure
- plotting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
Abstract
Description
本発明は、画像の描画処理を行う画像処理技術に関するものである。 The present invention relates to an image processing technique for performing image drawing processing.
一般に画像の出力を行う際には、アプリケーションプログラムやオペレーティングシステムなどから出力される描画コマンドに従って、ビットマップ画像を形成する描画処理が行われ、そのビットマップ画像が出力される。あるいは描画コマンドから一旦中間コードを生成し、その中間コードからビットマップ画像を形成する場合もある。渡される描画コマンドはそれぞれの描画オブジェクト毎に生成されており、描画処理時には複数の描画オブジェクトが重なり合うように描画する場合もある。このように描画オブジェクトが重なり合う場合、それぞれの描画オブジェクトにおける属性などの情報を保持し、重なり合う描画オブジェクトの属性を考慮しながら描画処理を進めてゆくことになる。 In general, when an image is output, a drawing process for forming a bitmap image is performed in accordance with a drawing command output from an application program or an operating system, and the bitmap image is output. Alternatively, there is a case where an intermediate code is once generated from a drawing command and a bitmap image is formed from the intermediate code. The drawn drawing command is generated for each drawing object, and there are cases where drawing is performed so that a plurality of drawing objects overlap each other during the drawing process. When drawing objects overlap in this way, information such as attributes of the respective drawing objects is held, and drawing processing proceeds while considering the attributes of the drawing objects that overlap.
このように描画オブジェクトの重なりを処理しなければならないために、従来の描画処理においては、全ての描画オブジェクトについて、重ね合わせに関係する全ての情報を保持しながら行っていた。例えばビットマップ画像として描画してゆく場合には、各ピクセルの色情報を保持するカラープレーン、透明度を表すアルファ値を保持するアルファプレーン、ぼかしを含めたクリップ形状を示すためのシェープ値を保持するシェーププレーン、図形形状を示すマスク値を保持するマスクプレーンなど、各ピクセルが持つ属性をそれぞれのピクセルごとに保持している。 In this way, since the overlapping of the drawing objects has to be processed, the conventional drawing processing is performed while holding all the information related to the overlapping for all the drawing objects. For example, when drawing as a bitmap image, a color plane that holds the color information of each pixel, an alpha plane that holds an alpha value that indicates transparency, and a shape value that indicates a clip shape including blur is held. The attributes of each pixel, such as a shape plane and a mask plane that holds a mask value indicating a figure shape, are held for each pixel.
また、重なりを有する描画処理の方法の一つとして、描画処理時に重なり部分毎に分割した図形ごとにデータを保持する、平面状マップを用いる方法がある。この方法の場合には、分割した図形ごとに、色情報、アルファ値、シェープ値、マスク値といった属性情報を保持することになる。そのため、ビットマップ画像と比較して全てのピクセルごとに保持しないので必要なメモリ量の削減と処理速度の向上が可能である。 Also, as one of the drawing processing methods having an overlap, there is a method using a planar map that holds data for each graphic divided for each overlapping portion during the drawing processing. In the case of this method, attribute information such as color information, alpha value, shape value, and mask value is held for each divided figure. Therefore, since it does not hold every pixel as compared with the bitmap image, it is possible to reduce the required memory amount and improve the processing speed.
しかし、多くの混合処理の場合には、全ての属性情報を混合に使用するわけではなく、混合の条件や入力画像の状態によっては重ね合わせ処理に影響を及ぼさない属性も多い。そのため、重ね合わせ処理に影響を及ぼさない属性が多い場合には、使われない情報に多くのメモリを使用し、処理速度の低下を招くこととなるという問題があった。 However, in many mixing processes, not all attribute information is used for mixing, and there are many attributes that do not affect the overlay process depending on the mixing conditions and the state of the input image. Therefore, when there are many attributes that do not affect the overlay process, there is a problem that a large amount of memory is used for information that is not used, resulting in a decrease in processing speed.
例えば特許文献1には、重ね合わせ処理を行った結果を圧縮することで、保持しておくデータ量を削減する技術が記載されている。しかし、処理結果についてはデータ量を削減することができるものの、重ね合わせ処理を行う際には全ての属性情報を保持しているため、重ね合わせの処理自体には多くのメモリが必要である上、処理時間もかかり、さらには重ね合わせ処理後の圧縮を行うための処理時間も必要となる。
For example,
本発明は、上述した事情に鑑みてなされたもので、描画オブジェクトの重ね合わせ処理における処理速度を向上し、必要とするメモリ容量を削減した画像処理装置及び画像処理方法を提供することを目的とするものである。 The present invention has been made in view of the above-described circumstances, and an object thereof is to provide an image processing apparatus and an image processing method that improve the processing speed in the overlay processing of drawing objects and reduce the required memory capacity. To do.
本発明は、描画命令に従って描画オブジェクトの重ね合わせ処理を含む描画処理を行って描画データを生成する画像処理装置及び画像処理方法であり、描画データとして、複数のデータ構造を取り得ることを特徴とするものである。そして、描画オブジェクトの重ね合わせ処理を行うときに、重ね合わせ後の描画データのデータ構造を、重ね合わされる2つの描画オブジェクトのデータ構造と、重ね合わせの際の条件(例えばブレンドモードや環境変数、マスクデータの有無など)によって決定する。一般にはデータ量の多い方へデータ構造をあわせてゆくことになるが、描画データの場合には、逆に重ね合わせ後の描画データが、重ね合わせ前の描画オブジェクトのデータ構造より少ないデータのデータ構造で表現できる場合がある。このような場合には、少ないデータで表現可能なデータ構造を使用するものと決定することができる。 The present invention is an image processing apparatus and an image processing method for generating drawing data by performing drawing processing including drawing object superimposition processing according to a drawing command, wherein a plurality of data structures can be taken as drawing data. To do. Then, when performing drawing object superimposition processing, the data structure of the rendered drawing data after superimposition is changed to the data structure of the two drawing objects to be superimposed and the conditions for superimposition (for example, blend mode and environment variables, It depends on whether or not there is mask data. In general, the data structure is adjusted to a larger amount of data, but in the case of drawing data, conversely, the drawing data after overlapping is less than the data structure of the drawing object before overlapping. It can be expressed in structure. In such a case, it can be determined that a data structure that can be expressed by a small amount of data is used.
データ構造として、色データ、色データと透明度、色データと透明度とシェープ値を含むデータ構造を取り得ることができ、そのうちの色データとしては、単色階調データ、3色カラーデータ、4色カラーデータのいずれかを含むようなデータ構造を選択的に用いることができる。例えば透明処理を行う場合には透明度あるいはさらにシェープ値が必要となるが、不透明化した場合などでは、透明度やシェープ値は不要であり、これらのデータを含まないデータ構造を用いることができる。 As the data structure, it is possible to take a data structure including color data, color data and transparency, color data, transparency and shape value, and the color data includes single-color gradation data, three-color color data, four-color color. A data structure that includes any of the data can be selectively used. For example, when transparency processing is performed, transparency or a shape value is required. However, when the transparency is made opaque, the transparency and the shape value are not necessary, and a data structure not including these data can be used.
描画データとしては、ビットマップデータ、上述の平面状マップデータ、あるいはスキャンラインごとに、同一の描画結果となる区間毎に分割したエッジリストデータなど、種々の形式の描画データを生成することができる。 As drawing data, various types of drawing data can be generated, such as bitmap data, the above-described planar map data, or edge list data divided for each section resulting in the same drawing result for each scan line. .
本発明によれば、記憶手段に描画データを保持する際に、必要なデータのみを保持するように構成することができ、必要とするメモリ容量を削減することができる。また、記憶手段から読み出すデータ量も描画データによっては大幅に少なくすることができることから、描画処理に要する時間を短縮することができる。さらに、重ね合わせ処理の際に重ね合わせ後の描画データのデータ構造を決定することから、最終的な描画処理結果が保持しなければならないデータも必要最低限のデータ量に抑えることができるため、変換や圧縮といった処理を行わずにそのまま保持することができ、処理速度の向上が期待できるという効果がある。 According to the present invention, when drawing data is held in the storage unit, only necessary data can be held, and a required memory capacity can be reduced. Further, since the amount of data read from the storage means can be greatly reduced depending on the drawing data, the time required for the drawing process can be shortened. Furthermore, since the data structure of the drawing data after superposition is determined at the time of superposition processing, the data that the final drawing processing result must hold can be suppressed to the minimum necessary data amount. The processing can be held as it is without performing processing such as conversion and compression, and there is an effect that an improvement in processing speed can be expected.
図1は、本発明の実施の一形態を示すブロック図である。図中、1は描画部、2は描画データ記憶部である。描画部1は、描画命令に従って描画処理を行って描画データを生成し、描画データ記憶部2に保持させる。描画命令によっては、それまでに描画処理を行った描画オブジェクトの描画データを描画データ記憶部2から読み出して、新たな描画オブジェクトとの間の重ね合わせ処理や論理演算処理なども行う。本発明では、生成する描画データのデータ構造は、含めるデータにより異なるいくつかのデータ構造のうちのいずれかをとる。取り得るデータ構造の一例については後述する。このデータ構造は、描画処理時に決定する。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a drawing unit, and 2 is a drawing data storage unit. The
例えば描画オブジェクト間の重ね合わせ処理を行う際には、重ね合わされる2つの描画オブジェクトがそれぞれ有しているデータ構造と、重ね合わせの際の条件(例えば重ね合わせ方法を示すブレンドモードや、重ね合わせ処理の時点での環境変数、マスクデータの有無など)によって、重ね合わせた描画データを表現するために必要なデータを特定し、そのデータを含む最低限のデータ構造を使用するものと決定する。そしてそのデータ構造の描画データを生成し、描画データ記憶部2に保持させる。
For example, when performing overlay processing between drawing objects, the data structure of each of the two drawing objects to be overlaid and the conditions for superposition (for example, blend mode indicating the overlay method, overlay Based on the environment variables at the time of processing, the presence / absence of mask data, etc., data necessary for expressing the superimposed drawing data is specified, and it is determined that the minimum data structure including the data is used. Then, drawing data having the data structure is generated and held in the drawing
描画処理の際にはすべての属性データが必要というわけではなく、例えば不透明を指定した上書き描画を行う場合には、透明処理の際に必要となる透明度や、透明処理時に周辺部分で透明度を変化させるためのシェープ値などのデータは不要であり、そのようなデータを保持する必要がない。一般に、2つの描画オブジェクト間で重ね合わせ処理を行う場合には、両者が有する属性のデータが必要となる場合が多く、データの種類は増加する方向にある。しかし、例えば透明度などのデータを有していた描画オブジェクトの上に、上述のような不透明の指定により上書きされた場合には、透明度のデータは不要なる、といったように、画像の描画処理においては必要とするデータの種類が減少する場合もある。そのような場合には、減少した種類のデータを含むデータ構造を使用するものと決定することができる。このようにすべての属性データを含まないデータ構造を取り得ることによって、すべての描画データがすべてのデータを含む場合に比べて、描画データ記憶部2のメモリ容量を削減することができる。
Not all attribute data is required for drawing processing. For example, when overwriting drawing with opacity specified, the transparency required for transparency processing and the transparency in the surrounding area change during transparency processing. There is no need for data such as shape values to be generated, and there is no need to hold such data. In general, when superimposing processing is performed between two drawing objects, data of attributes possessed by both of them is often required, and the type of data tends to increase. However, in the drawing process of an image, for example, when the drawing object having data such as transparency is overwritten by the above-described opaque specification, the transparency data is unnecessary. The type of data required may be reduced. In such a case, it can be decided to use a data structure containing a reduced type of data. By taking a data structure that does not include all attribute data in this way, the memory capacity of the drawing
描画データ記憶部2は、描画部1で生成された描画データを保持し、また描画部1に対して保持している描画データを渡す。上述のように描画データは必要最小限のデータを含んでいるだけであるため、メモリ容量を削減することができるとともに、例えば圧縮などの処理を行わなくても描画データを保持することができ、処理速度の向上に寄与することができる。例えば1ページ分などの所定単位の最終的な描画データは、後段の処理手段に渡される。
The drawing
描画データのデータ構造の一例について説明する。ここでは、スキャンラインごとに、同一の描画結果となる区間毎に分割したエッジリストデータを描画データとして生成する場合について説明する。図2は、エッジリストデータのデータ構造の一例の説明図である。エッジリストデータでは、図2に示すように、スキャンラインのY座標と、そのエッジリストデータが示す区間の開始X座標及び長さ、そしてその区間における属性データを一つのユニットとし、このユニットの集合で画像を表現する。 An example of the data structure of the drawing data will be described. Here, a case will be described in which edge list data divided for each section having the same drawing result is generated as drawing data for each scan line. FIG. 2 is an explanatory diagram of an example of the data structure of the edge list data. In the edge list data, as shown in FIG. 2, the Y coordinate of the scan line, the start X coordinate and length of the section indicated by the edge list data, and the attribute data in the section are defined as one unit, and this unit set Use to express the image.
属性データのフィールドには、上述のように各種の属性を示すデータが含まれる。例えば、色データ、透明度を示すアルファ値、透明処理を行う領域及び周辺部での透明処理の適用度合いを示すシェープ値、その他描画に必要なタグ情報などが含まれる。従来は、どのような描画処理を行う場合でも対応できるように、これらのデータをすべて含む単一のデータ構造を用いていた。本発明では、以下に説明するような複数のデータ構造を用いて、描画処理に必要なデータを含むデータ構造を適用できるようにしている。なお、いずれのデータ構造を用いているかを示すデータも属性データのフィールドに含めておく。 The attribute data field includes data indicating various attributes as described above. For example, color data, an alpha value indicating transparency, a shape value indicating the degree of application of transparency processing in a region where the transparency processing is performed and the peripheral portion, and other tag information necessary for rendering are included. Conventionally, a single data structure including all these data has been used so that any drawing process can be handled. In the present invention, a data structure including data necessary for drawing processing can be applied using a plurality of data structures as described below. Data indicating which data structure is used is also included in the attribute data field.
図3は、本発明の実施の一形態において使用可能なデータ構造の一例の説明図である。図3に示す例では、属性を示すデータとして色データ、アルファ値、シェープ値の3つがある場合を例として示している。なお、図3に示すそれぞれのタイプのデータが、図2に示す属性データに含まれることになる。 FIG. 3 is an explanatory diagram showing an example of a data structure that can be used in the embodiment of the present invention. In the example illustrated in FIG. 3, there are three cases where color data, an alpha value, and a shape value are included as data indicating attributes. Each type of data shown in FIG. 3 is included in the attribute data shown in FIG.
色データは、例えばモノトーンの画像などでは単色の階調データがあればよく、カラー画像では3色あるいは4色のカラーデータが必要である。ここでは単色階調データを「グレイ」と表記している。また、3色カラーデータとしてRGBのデータを、4色カラーデータとしてCMYKのデータをそれぞれ保持するものとして、それぞれ「RGB」、「CMYK」と表記している。 For color data, for example, monochromatic image data may be monochromatic gradation data, and a color image requires three or four color data. Here, the monochromatic gradation data is expressed as “gray”. In addition, RGB data as three-color data and CMYK data as four-color data are respectively stored as “RGB” and “CMYK”.
上述の各属性のデータの有無と、このような色データのいずれか(色データなしを含む)の組み合わせによって、図3に示す12種類のタイプのデータ構造を使用することができる。タイプ0〜タイプ3は、アルファ値及びシェープ値を有しない場合のデータ構造を示している。タイプ0は色データなしの場合を、タイプ1は色データとして単色階調データを有する場合を、タイプ2は色データとして3色カラーデータを有する場合を、タイプ3は色データとして4色カラーデータを有する場合を、それぞれ示している。
The 12 types of data structures shown in FIG. 3 can be used depending on the combination of the presence / absence of the data of each attribute described above and any one of such color data (including no color data). Type 0 to type 3 show data structures when there is no alpha value and shape value. Type 0 has no color data,
タイプ16〜タイプ19は、アルファ値は有するがシェープ値を有しない場合のデータ構造を示している。タイプ0〜タイプ3の場合と同様に、タイプ16は色データなしの場合、タイプ17は色データが単色階調データの場合、タイプ18は色データが3色カラーデータの場合、タイプ19は色データが4色カラーデータの場合を、それぞれ示している。 Type 16 to type 19 show data structures in the case of having an alpha value but no shape value. As in the case of type 0 to type 3, type 16 has no color data, type 17 has color data of single color gradation data, type 18 has color data of three color data, and type 19 has color. The case where the data is four-color data is shown.
タイプ32〜タイプ35は、アルファ値及びシェープ値とも有する場合のデータ構造を示している。上述の各タイプと同様に、タイプ32は色データなしの場合、タイプ33は色データが単色階調データの場合、タイプ34は色データが3色カラーデータの場合、タイプ35は色データが4色カラーデータの場合を、それぞれ示している。 Type 32 to type 35 show data structures in the case of having both an alpha value and a shape value. Similar to the above-described types, type 32 has no color data, type 33 has color data of single color gradation data, type 34 has color data of three color data, and type 35 has color data of 4. Each case of color data is shown.
描画オブジェクトの重ね合わせを行わない通常の上書き描画(アルファ値=1.0、ブレンドモード=ノーマル、マスクなし)の場合には、出力する画像の色空間に合わせてタイプ1、タイプ2、タイプ3のいずれかのデータ構造を選択して用い、描画データを作成すればよい。また、描画オブジェクト間の重ね合わせ処理を行う場合のデータ構造としては、マスクを用いない場合にはタイプ17〜19のいずれかを、マスクを用いる場合にはタイプ33〜35のいずれかを用い、描画データを作成すればよい。なお、色データを有しないタイプ0,14,32は通常は使用せず、特殊用途に利用することができる。
For normal overwriting without superimposing drawing objects (alpha value = 1.0, blend mode = normal, no mask),
具体例として、色データとして単色階調データの場合に8ビット、3色カラーデータの場合に24ビット、4色カラーデータの場合に32ビット、アルファ値として8ビット、シェープ値として8ビットのデータ幅を必要とする場合を考える。このとき、図3に示したデータ部分のデータ幅は、タイプ1で8ビット、タイプ2で24ビット、タイプ3で32ビット、タイプ17で16ビット、タイプ18で32ビット、タイプ19で40ビット、タイプ33で16ビット、タイプ34で40ビット、タイプ34で48ビットとなる。従来のようにすべての属性のデータを保持する場合、カラー画像を扱うのであればそれぞれのエッジリストデータが40ビットあるいは48ビットのデータを含むことになる。しかし本発明では、必要ない属性のデータを保持しないデータ構造を選択できるので、例えばモノクロの階調画像であれば8ビットまでデータを削減することができる。従って、データ長を短縮できるエッジリストデータが多数存在する場合には、描画データ記憶部2に保持されるデータ量を大幅に削減することが可能である。
As a specific example, 8-bit data for monochromatic gradation data, 24-bit data for 3-color data, 32-bit data for 4-color data, 8-bit alpha value, 8-bit data for shape value Consider the case where a width is required. At this time, the data width of the data portion shown in FIG. 3 is 8 bits for
描画オブジェクト間の重ね合わせ処理を行う場合には、まず、新たに描画する描画オブジェクトについてエッジリストデータを作成し、既に描画されて描画データ記憶部2に記憶されているエッジリストデータとの間で重なり合いの判断を行い、1つのエッジリストデータで重なっている部分と重なっていない部分とが存在する場合にはエッジリストデータを分割し、新たに描画する描画オブジェクトと重なっている領域のエッジリストデータについて、新たなエッジリストデータを生成して描画データ記憶部2に保持させる。新たに生成するエッジリストデータのデータ構造は、新たに描画する描画オブジェクトのエッジリストデータのデータ構造と、描画データ記憶部2に保持されている描画オブジェクトのエッジリストデータのデータ構造と、重ね合わせ処理の条件、例えばアルファ値、ブレンドモード、マスクの有無などによって決定される。
When performing a superimposition process between drawing objects, first, edge list data is created for a drawing object to be newly drawn, and the edge list data already drawn and stored in the drawing
図4は、重ね合わせる2つのデータ構造と新たなデータ構造との関係の一例の説明図である。一般には、新たなエッジリストデータのデータ構造に含まれる属性のデータの種類は、重ね合わせる2つのエッジリストデータのデータ構造に含まれる属性のデータの和、すなわち重ね合わせる2つのエッジリストデータのいずれも表現可能なデータ構造とすればよい。例えば、重ね合わせる2つのエッジリストデータのデータ構造が、図3に示すタイプ1〜3のように色データのみのデータ構造と、タイプ17〜19のようにアルファ値と色データのデータ構造であれば、新たなエッジリストデータのデータ構造は、タイプ17〜19のようにアルファ値と色データのデータ構造とすればよい(図4(A))。同様に、タイプ1〜3のように色データのみのデータ構造と、タイプ33〜35のようにアルファ値とシェープ値と色データのデータ構造であれば、新たなエッジリストデータのデータ構造は、タイプ33〜35のようにアルファ値とシェープ値と色データのデータ構造とすればよい(図4(B))。さらに、タイプ17〜19のようにアルファ値と色データのデータ構造と、タイプ33〜35のようにアルファ値とシェープ値と色データのデータ構造であれば、新たなエッジリストデータのデータ構造は、タイプ33〜35のようにアルファ値とシェープ値と色データのデータ構造とすればよい(図4(C))。
FIG. 4 is an explanatory diagram of an example of a relationship between two data structures to be overlaid and a new data structure. In general, the type of attribute data included in the data structure of the new edge list data is the sum of the attribute data included in the data structure of the two edge list data to be superimposed, that is, any of the two edge list data to be superimposed. Can be expressed as a data structure. For example, the data structure of the two edge list data to be superimposed may be a data structure of only color data as in
色データについても同様であり、タイプ1,17,33に示す単色階調データ(グレイ)のデータ構造とタイプ2,18,34に示す3色カラーデータ(RGB)のデータ構造とのエッジリストデータの重ね合わせの場合には、新たなエッジリストデータのデータ構造はタイプ2,18,34に示す3色カラーデータ(RGB)のデータ構造とすればよい(図4(D))。また、タイプ1,17,33に示す単色階調データ(グレイ)のデータ構造とタイプ3,19,35に示す4色カラーデータ(CMYK)のデータ構造とのエッジリストデータの重ね合わせの場合には、新たなエッジリストデータのデータ構造はタイプ3,19,35に示す4色カラーデータ(CMYK)のデータ構造とすればよい(図4(F))。なお図4(D)〜(F)では色データの部分のみを示しており、それぞれのタイプに応じてアルファ値あるいはアルファ値とシェープ値を含む場合がある。
The same applies to color data, and edge list data of the data structure of monochromatic gradation data (gray) shown in
さらに、重ね合わせの条件としてマスクを有する場合には、重ね合わせる2つのエッジリストデータのデータ構造にかかわらず、新たなエッジリストデータのデータ構造はシェープ値を含むタイプ33〜35のいずれかとすればよい(図4(G))。この例ではアルファ値も必ず含むことになる。 Further, when a mask is provided as a superposition condition, regardless of the data structure of the two edge list data to be superposed, the data structure of the new edge list data can be any of types 33 to 35 including shape values. Good (FIG. 4G). In this example, the alpha value is always included.
例えば、アルファ値が0.5で、マスクが無く、ブレンドモードがノーマルの場合、描画する描画オブジェクトのエッジリストデータのデータ構造がタイプ18であり、重ね合わせる描画データ記憶部2に保持されているエッジリストデータのデータ構造がタイプ2であるときには、重ね合わせた後のエッジリストデータのデータ構造はタイプ18となる。もし、描画データ記憶部2に保持されているエッジリストデータのデータ構造がタイプ33のときには、重ね合わせ後のエッジリストデータのデータ構造はタイプ34となる。
For example, when the alpha value is 0.5, there is no mask, and the blend mode is normal, the data structure of the edge list data of the drawing object to be drawn is type 18, and is held in the drawing
なお、上述の色データについて、タイプ2,18,34に示す3色カラーデータ(RGB)のデータ構造とタイプ3,19,35に示す4色カラーデータ(CMYK)のデータ構造とのエッジリストデータの重ね合わせの場合には、新たなエッジリストデータのデータ構造はタイプ2,18,34に示す3色カラーデータ(RGB)のデータ構造とする(図4(E))。すなわちデータ量が減少する方向へのデータ構造の変換を行うことになる。これは、上述のような一般のデータ量が増加する方向へのデータ構造の決定とは異なるものである。この例における3色カラーデータであるRGBと4色カラーデータであるCMYKとは、1対1の対応がとれない。RGBからCMYKへの変換は一意に決まらないが、CMYKからRGBへの変換は一意に決まるため、色の一致をはかるためにはRGBで統一した方がよい。そのために、このようなデータ量が減少する方向にデータ構造の選択を行う。
For the color data described above, edge list data of the data structure of three-color color data (RGB) shown in
描画処理においては、このようなデータ量を減少する方向にデータ構造を変更できる場合がほかにも存在する。例えば不透明(アルファ値=1.0)で上書き描画する場合、重ね合わされるエッジリストデータがアルファ値あるいはアルファ値とシェープ値を有するタイプ17〜19あるいはタイプ33〜35であったとしても、新たに生成されるエッジリストデータはタイプ1〜3を選択することができる。また、ある特定の論理演算(あるいは論理演算の並び)の場合に、上述のようなデータ量を減少する方向にデータ構造を変更できることがある。このように、描画処理においては一般的なデータ量を維持または増加する方向へのデータ構造の変更の他に、逆にデータ量を減少する方向のデータ構造の変更が可能である。
In the drawing process, there are other cases where the data structure can be changed in such a direction as to reduce the amount of data. For example, when overwriting is performed with opaqueness (alpha value = 1.0), even if the edge list data to be superimposed is type 17-19 or type 33-35 having an alpha value or an alpha value and a shape value, it is newly added.
上述のような2つの描画オブジェクト(エッジリストデータ)のデータ構造と重ね合わせの条件から、新たに生成する描画オブジェクト(エッジリストデータ)のデータ構造を決定する方法としては、例えば、上述のような全ての条件について記述しておいてもよいし、優先順位に基づく演算で決定してもよい。 As a method for determining the data structure of a newly created drawing object (edge list data) from the data structure of the two drawing objects (edge list data) and the overlay conditions as described above, for example, All conditions may be described, or may be determined by calculation based on priority.
上述の図3には色データ、アルファ値、シェープ値の3つを属性のデータとして有するデータ構造について示した。しかし図3に示したデータ構造は一例であって、並び順や含める属性のデータの種類についても任意であり、そのほかの各種の属性についても同様に必要に応じて保持するデータ構造を選択可能にし、データ量を削減することができる。 FIG. 3 described above shows a data structure having three color data, an alpha value, and a shape value as attribute data. However, the data structure shown in FIG. 3 is an example, and the order of data and the type of data to be included are also arbitrary. For other various attributes, the data structure to be held can be selected as necessary. , Can reduce the amount of data.
また、上述の例では描画データとしてエッジリストデータを生成する場合について説明した。本発明で生成する描画データはエッジリストデータに限られるものではなく、例えば平面状マップデータを生成したり、あるいはビットマップデータを生成するなど、各種の描画データを生成する際に適用可能である。なお、ビットマップデータ以外のデータを描画データとして生成する場合には、例えば1ジョブや1ページ分、1バンド分、1ライン分などの所定の描画処理が終了した後に、ビットマップ画像へ展開する処理を行うことになる。 In the above-described example, the case where edge list data is generated as drawing data has been described. The drawing data generated by the present invention is not limited to edge list data, and can be applied when generating various types of drawing data, for example, generating planar map data or generating bitmap data. . When data other than bitmap data is generated as drawing data, for example, after a predetermined drawing process for one job, one page, one band, one line, etc. is completed, the data is developed into a bitmap image. Processing will be performed.
1…描画部、2…描画データ記憶部。
DESCRIPTION OF
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004325962A JP2006139342A (en) | 2004-11-10 | 2004-11-10 | Image processor and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004325962A JP2006139342A (en) | 2004-11-10 | 2004-11-10 | Image processor and image processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006139342A true JP2006139342A (en) | 2006-06-01 |
Family
ID=36620153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004325962A Pending JP2006139342A (en) | 2004-11-10 | 2004-11-10 | Image processor and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006139342A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014000753A (en) * | 2012-06-20 | 2014-01-09 | Canon Inc | Image processing apparatus, image processing method, and program |
-
2004
- 2004-11-10 JP JP2004325962A patent/JP2006139342A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014000753A (en) * | 2012-06-20 | 2014-01-09 | Canon Inc | Image processing apparatus, image processing method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2006504191A (en) | Background color removal method for Porter-Duff composition method | |
JP2009230760A (en) | Image processor and image processing method | |
US7330196B2 (en) | Apparatus and method for image processing capable of accelerating image overlay process | |
JP2014117861A (en) | Image formation apparatus and image formation apparatus control method | |
JP4063918B2 (en) | Apparatus and method for creating an image containing graphics information for display | |
JP2006139342A (en) | Image processor and image processing method | |
JP4775723B2 (en) | Image processing apparatus and image processing program | |
JP2005235205A (en) | Compositing with clip-to-self functionality without using shape channel | |
JP6821924B2 (en) | Image processing device, image processing method | |
JP2004334533A (en) | Image processing device and method | |
JP2006103045A (en) | Image forming apparatus | |
JP2006272556A (en) | Image processor and image processing program | |
JP4840604B2 (en) | Image processing apparatus, image processing method, and program | |
JP2007144842A (en) | Image processor | |
JP2009141921A (en) | Image processor, image processing method, and program | |
JP2005316666A (en) | Image processor | |
JP2001209640A (en) | Image information converter, image processor, method therefor and recording medium | |
JPS63282886A (en) | Graphic processor | |
JP2007088825A (en) | Image processor and image processing method | |
JPH11179978A (en) | Image processing device, image processing method, and storage medium | |
JPH05250471A (en) | Picture processor with contour extraction function | |
JP2000198246A (en) | Print data processor | |
JP2000076480A (en) | Image generating device, image generating method, and storage medium | |
JP2002133430A (en) | Plotting processing device | |
JPH04101191A (en) | Superimposition display processing system |