JP2012160120A - Image processing device, image processing method, and program - Google Patents

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

Info

Publication number
JP2012160120A
JP2012160120A JP2011020825A JP2011020825A JP2012160120A JP 2012160120 A JP2012160120 A JP 2012160120A JP 2011020825 A JP2011020825 A JP 2011020825A JP 2011020825 A JP2011020825 A JP 2011020825A JP 2012160120 A JP2012160120 A JP 2012160120A
Authority
JP
Japan
Prior art keywords
pixel group
pixel
affine transformation
data
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
JP2011020825A
Other languages
Japanese (ja)
Inventor
Satoshi Imaizumi
聡 今泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2011020825A priority Critical patent/JP2012160120A/en
Publication of JP2012160120A publication Critical patent/JP2012160120A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Generation (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform drawing without eliminating a line while securing a depth feeling.SOLUTION: A normal transformation matrix drawing processing unit 113 applies inverse affine transformation to a second pixel group to thereby calculate a first pixel group before the affine transformation corresponding to the second pixel group, and draws the second pixel group based on data of the first pixel group. An inverse transformation matrix drawing processing unit 112 applies the affine transformation to a first pixel corresponding to data not used in drawing processing among the first pixel group to thereby calculate the second pixel group corresponding to the first pixel. Then, the inverse transformation matrix drawing processing unit 112 draws the calculated second pixel group based on data of the first pixel.

Description

本発明は、第1のピクセル群に対してアフィン変換を施すことにより第2のピクセル群を描画する技術に関するものである。   The present invention relates to a technique for drawing a second pixel group by performing affine transformation on the first pixel group.

2次元グラフィックスデータに3次元変形を施して描画するには、一般に、2次元グラフィックスデータをテクスチャに対して描画し、描画されたテクスチャデータを3次元変形してスクリーンに射影する。テクスチャデータを3次元変形して射影する一般的な方法は、スクリーンの各ピクセルについて、3次元変形の逆行列を掛けてテクスチャデータにおいて参照されるピクセル(参照ピクセル)を算出し、参照ピクセルのデータで描画する。しかし、この方法では、テクスチャデータの中で参照されないピクセルが発生することがあり、線の消失等が生じる原因となっている。   In order to draw two-dimensional graphics data with three-dimensional deformation, generally, the two-dimensional graphics data is drawn on a texture, and the drawn texture data is three-dimensionally deformed and projected onto a screen. A general method of projecting texture data by three-dimensional transformation is to calculate a pixel (reference pixel) referred to in the texture data by multiplying each pixel of the screen by the inverse matrix of the three-dimensional transformation, and to obtain reference pixel data. Draw with. However, in this method, pixels that are not referred to in the texture data may occur, which causes the disappearance of lines and the like.

このような問題を解決するために、2次元グラフィックスデータを3次元変形して描画するとき、2次元グラフィックスデータが線であるかどうかを判別し、線である場合には、一定の太さで画面に描画するものが知られている(例えば、特許文献1参照)。   In order to solve such a problem, when two-dimensional graphics data is three-dimensionally deformed and drawn, it is determined whether or not the two-dimensional graphics data is a line. Now, what draws on a screen is known (see, for example, Patent Document 1).

特開2002−203256号公報JP 2002-203256 A

しかしながら、従来のように、線を一定の太さで画面に描画する手法では、3次元変形の奥行き感を出すことができないという問題があった。また、射影する際に、線であるオブジェクトを認識する必要があった。   However, the conventional method of drawing lines on the screen with a constant thickness has a problem that the depth of three-dimensional deformation cannot be obtained. Also, when projecting, it is necessary to recognize an object that is a line.

そこで、本発明の目的は、奥行き感を確保しつつ、線を消失することなく描画することにある。   Therefore, an object of the present invention is to draw a line without disappearing while ensuring a sense of depth.

本発明の画像処理装置は、第1のピクセル群に対してアフィン変換を施すことにより第2のピクセル群を描画する画像処理装置であって、前記第2のピクセル群に対して逆アフィン変換を施すことにより、前記第2のピクセル群に対応するアフィン変換前の前記第1のピクセル群を算出する第1の算出手段と、前記第1の算出手段により算出された前記第1のピクセル群のデータに基づいて前記第2のピクセル群を描画する第1の描画手段と、前記第1のピクセル群のうち、前記第1の描画手段による描画処理に用いられなかったデータに対応する第1のピクセルにアフィン変換を施すことにより、前記第1のピクセルに対応する前記第2のピクセル群を算出する第2の算出手段と、前記第1のピクセルのデータに基づいて、前記第2の算出手段により算出された前記第2のピクセル群を描画する第2の描画手段とを有することを特徴とする。   An image processing apparatus according to the present invention is an image processing apparatus that draws a second pixel group by performing affine transformation on the first pixel group, and performs inverse affine transformation on the second pixel group. By applying, a first calculation unit that calculates the first pixel group before the affine transformation corresponding to the second pixel group, and the first pixel group calculated by the first calculation unit First drawing means for drawing the second pixel group based on data, and first data corresponding to data not used for drawing processing by the first drawing means among the first pixel group. Second calculation means for calculating the second pixel group corresponding to the first pixel by performing affine transformation on the pixel, and the second calculation based on the data of the first pixel; And having a second drawing means for drawing the second group of pixels calculated by the stage.

本発明によれば、奥行き感を確保しつつ、線を消失することなく描画することが可能となる。   According to the present invention, it is possible to draw without losing a line while ensuring a sense of depth.

本発明の実施形態に係るグラフィックス描画装置の構成を示す図である。It is a figure which shows the structure of the graphics drawing apparatus which concerns on embodiment of this invention. 逆アフィン変換による描画処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the drawing process by reverse affine transformation. アフィン変換前後における矩形領域を説明するための図である。It is a figure for demonstrating the rectangular area | region before and behind an affine transformation. 逆アフィン変換による描画結果を説明するための図である。It is a figure for demonstrating the drawing result by reverse affine transformation. 原画像にアフィン変換を施して算出された矩形領域内の参照先ピクセルと、当該矩形領域に対して逆アフィン変換を施すことにより得られる参照元ピクセルとの対応関係を示す図である。It is a figure which shows the correspondence of the reference pixel in the rectangular area calculated by performing an affine transformation to an original image, and the reference source pixel obtained by performing a reverse affine transformation with respect to the said rectangular area. 本発明の実施形態における描画処理を示すフローチャートである。It is a flowchart which shows the drawing process in embodiment of this invention. 参照フラグバッファの初期状態と描画処理後の状態とを示す図である。It is a figure which shows the initial state of a reference flag buffer, and the state after a drawing process. 本発明の実施形態における描画処理による描画結果を説明するための図である。It is a figure for demonstrating the drawing result by the drawing process in embodiment of this invention. 参照元ピクセルと参照先ピクセルとの対応関係を示す図である。It is a figure which shows the correspondence of a reference source pixel and a reference destination pixel.

以下、本発明を適用した好適な実施形態を、添付図面を参照しながら詳細に説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments to which the invention is applied will be described in detail with reference to the accompanying drawings.

図1は、本発明の実施形態に係るグラフィックス描画装置の構成を示す図である。図1において、100はグラフィックス描画装置であり、メモリ110及びCPU120を備える。また、グラフィックス描画装置100は、ディスプレイ200及び入力装置300と接続されている。メモリ110には、参照フラグバッファ管理部111、逆変換行列描画処理部112、正変換行列描画処理部113としてCPU120を機能させるためのプログラムが格納されている。なお、グラフィックス描画装置100は、画像処理装置の適用例となる構成である。   FIG. 1 is a diagram showing a configuration of a graphics drawing apparatus according to an embodiment of the present invention. In FIG. 1, reference numeral 100 denotes a graphics drawing apparatus, which includes a memory 110 and a CPU 120. The graphics drawing device 100 is connected to the display 200 and the input device 300. The memory 110 stores a program for causing the CPU 120 to function as the reference flag buffer management unit 111, the inverse transformation matrix drawing processing unit 112, and the normal transformation matrix drawing processing unit 113. The graphics drawing apparatus 100 is a configuration that is an application example of an image processing apparatus.

先ず、図2〜図5を用いて、逆アフィン変換による描画処理について説明する。図2は、逆アフィン変換による描画処理の流れを示すフローチャートである。ステップS2001において、CPU120は、アフィン変換後の矩形領域を算出する。ここでは、図3(A)に示す矩形領域に対してアフィン変換を施し、図3(B)に示す矩形領域に変換する場合について考える。このときのアフィン変換行列は式1に示す行列であるものとする。また、変換前のピクセル(x,y)は、式1のアフィン変換行列を用いて、式2のように変換後のピクセル(x1,y1)に変換されるものとする。なお、図3に示す矩形領域における一つ一つの矩形の部分がピクセルに相当するものである。   First, drawing processing by inverse affine transformation will be described with reference to FIGS. FIG. 2 is a flowchart showing a flow of drawing processing by inverse affine transformation. In step S2001, the CPU 120 calculates a rectangular area after affine transformation. Here, a case is considered in which affine transformation is performed on the rectangular area shown in FIG. 3A to convert it into the rectangular area shown in FIG. The affine transformation matrix at this time is assumed to be a matrix shown in Equation 1. In addition, the pixel (x, y) before conversion is converted to the pixel (x1, y1) after conversion using the affine transformation matrix of Expression 1 as shown in Expression 2. Each rectangular portion in the rectangular area shown in FIG. 3 corresponds to a pixel.

Figure 2012160120
Figure 2012160120

正変換行列描画処理部113は、アフィン変換前の4つの頂点についてそれぞれアフィン変換を施すことにより、アフィン変換後の矩形領域を算出する。次に、アフィン変換後の矩形領域内の各ピクセルについて、以下に説明するステップS2002〜S2004の処理が繰り返し実行される。以下では、アフィン変換後の矩形領域内の各ピクセルを参照先ピクセルと称す。ステップS2002において、逆変換行列描画処理部112は、式3に示すように、変換後の矩形領域内の各参照先ピクセルに対して逆アフィン変換を施すことにより、各参照先ピクセルに対応する、変換前の領域におけるピクセルを算出する。ステップS2003において、逆変換行列描画処理部112は、ステップS2002で算出したピクセルから最近傍法によって参照されるピクセル(以下、参照元ピクセルと称す)を求め、参照元ピクセルの値をスクリーンの各参照先ピクセルに描画する。本実施形態では、最近傍法によって参照元ピクセルを求めるが、線形補間法等の他の方法で求めるようにしてもよい。   The normal transformation matrix drawing processing unit 113 calculates a rectangular area after affine transformation by performing affine transformation on each of the four vertices before affine transformation. Next, the processing of steps S2002 to S2004 described below is repeatedly executed for each pixel in the rectangular area after the affine transformation. Hereinafter, each pixel in the rectangular area after the affine transformation is referred to as a reference pixel. In step S2002, the inverse transformation matrix drawing processing unit 112 performs inverse affine transformation on each reference destination pixel in the converted rectangular area, as shown in Expression 3, thereby corresponding to each reference destination pixel. Pixels in the area before conversion are calculated. In step S2003, the inverse transformation matrix drawing processing unit 112 obtains a pixel referred to by the nearest neighbor method (hereinafter referred to as a reference source pixel) from the pixel calculated in step S2002, and refers to the value of the reference source pixel on each screen. Draw on the destination pixel. In the present embodiment, the reference source pixel is obtained by the nearest neighbor method, but may be obtained by another method such as a linear interpolation method.

Figure 2012160120
Figure 2012160120

いま、図4(A)に示すようなビットマップデータである原画像にアフィン変換を施して描画する例を考える。原画像は2値のビットマップデータとし、図4(D)に示すように黒く塗りつぶされているピクセルの値を1とし、その他のピクセルの値を0とする。ここでは、2値のビットマップデータを例に挙げているが、多値のビットマップデータでもよいし、カラービットマップデータでもよい。図5は、図4(A)に示す原画像にアフィン変換を施して算出された矩形領域内の参照先ピクセル(図5(A))と、当該矩形領域に対して逆アフィン変換を施すことにより得られる参照元ピクセル(図5(B))との対応関係を示す図である。即ち、図5に示す対応関係に従って、図4(A)に示す原画像に対してアフィン変換を施すと、図4(B)に示す描画結果となる。図4(B)に示すようにアフィン変換後は矩形領域が小さくなっているため、図4(C)に示すように原画像内に参照されないピクセルである非参照ピクセル(図4(E))が生じている。そのため、原画像の全てのピクセルの値が描画結果に反映されず、図4(B)に示すように横線が欠落することがある。なお、図4(A)に示す矩形領域は第1のピクセル群の一例であり、図4(B)に示す矩形領域は第2のピクセル群の一例である。   Consider an example in which an affine transformation is applied to an original image that is bitmap data as shown in FIG. The original image is binary bitmap data. As shown in FIG. 4D, the value of a pixel painted black is set to 1, and the values of other pixels are set to 0. Here, binary bitmap data is taken as an example, but multi-value bitmap data or color bitmap data may be used. FIG. 5 shows a reference pixel (FIG. 5A) in a rectangular area calculated by performing affine transformation on the original image shown in FIG. 4A and inverse affine transformation on the rectangular area. It is a figure which shows the correspondence with the reference source pixel (FIG.5 (B)) obtained by (5). That is, when affine transformation is performed on the original image shown in FIG. 4A according to the correspondence shown in FIG. 5, the drawing result shown in FIG. 4B is obtained. As shown in FIG. 4B, since the rectangular area becomes smaller after the affine transformation, a non-reference pixel (FIG. 4E) that is a pixel that is not referred to in the original image as shown in FIG. 4C. Has occurred. For this reason, the values of all pixels of the original image are not reflected in the drawing result, and horizontal lines may be lost as shown in FIG. Note that the rectangular area illustrated in FIG. 4A is an example of the first pixel group, and the rectangular area illustrated in FIG. 4B is an example of the second pixel group.

次に、図6〜図9を用いて、本発明の実施形態における描画処理について説明する。ステップS6001において、参照フラグバッファ管理部111は、逆アフィン変換によって原画像の各ピクセルが参照されたかどうかを示すフラグを格納するバッファをメモリ110に確保して初期化する。以下では、上記バッファを参照フラグバッファと称す。即ち、参照フラグバッファ管理部111は、図7(A)に示すように、原画像と同じサイズの参照フラグバッファを確保し、全参照フラグバッファを0に初期化する。ステップS6002において、正変換行列描画処理部113は、アフィン変換後の矩形領域を算出する。   Next, drawing processing according to the embodiment of the present invention will be described with reference to FIGS. In step S6001, the reference flag buffer management unit 111 secures a buffer for storing a flag indicating whether or not each pixel of the original image has been referred to by inverse affine transformation and initializes the buffer. Hereinafter, the buffer is referred to as a reference flag buffer. That is, as shown in FIG. 7A, the reference flag buffer management unit 111 secures a reference flag buffer having the same size as the original image and initializes all reference flag buffers to 0. In step S6002, the positive transformation matrix drawing processing unit 113 calculates a rectangular area after affine transformation.

ステップS6003〜S6005は、ステップS6002で算出された矩形領域の全参照先ピクセルに対して繰り返し実行される。ステップS6003において、逆変換行列描画処理部112は、アフィン変換後の参照先ピクセルについて、逆アフィン変換を施して原画像の参照元ピクセルを算出する。ステップS6004において、逆変換行列描画処理部112は、参照元ピクセルの値(色情報)をスクリーン上の参照先ピクセルに描画する。ステップS6005において、参照フラグバッファ管理部111は、ステップS6003で算出された参照元ピクセルと同じ位置における参照フラグバッファの値を1に更新する。ステップS6005までの処理が完了した時点では、描画結果は逆アフィン変換による描画結果と同様である。また、参照フラグバッファは図7(B)に示すように更新される。図7(B)において、0となっているピクセルが参照されなかったことを示している。なお、ステップS6003は、第1の算出手段の処理例であり、ステップS6004は、第1の描画手段の処理例である。   Steps S6003 to S6005 are repeatedly executed for all reference destination pixels in the rectangular area calculated in step S6002. In step S6003, the inverse transformation matrix drawing processing unit 112 performs inverse affine transformation on the reference pixel after the affine transformation to calculate a reference source pixel of the original image. In step S6004, the inverse transformation matrix drawing processing unit 112 draws the value of the reference source pixel (color information) on the reference destination pixel on the screen. In step S6005, the reference flag buffer management unit 111 updates the value of the reference flag buffer at the same position as the reference source pixel calculated in step S6003 to 1. When the processing up to step S6005 is completed, the drawing result is the same as the drawing result by inverse affine transformation. Further, the reference flag buffer is updated as shown in FIG. FIG. 7B shows that the pixel that is 0 has not been referenced. Step S6003 is a processing example of the first calculation unit, and step S6004 is a processing example of the first drawing unit.

以上の処理に続き、ステップS6006〜S6008の処理が原画像の色情報が有効な全ピクセルについて繰り返し実行される。ここでいう色情報が有効なピクセルとは、本実施形態では、ピクセルの値が1であるピクセルであるが、多値のビットマップデータやカラービットマップデータである場合には、ピクセルの値が0以外の全てのピクセルである。ステップS6006において、参照フラグバッファ管理部111は、色情報が有効なピクセルに対応する参照フラグバッファの値が0であるか否かを判定する。参照フラグバッファの値が0である場合、処理はステップS6007に移行する。一方、参照フラグバッファの値が0ではなく、1である場合、ステップS6007、S6008はスキップされる。   Subsequent to the above processing, the processing in steps S6006 to S6008 is repeatedly executed for all pixels in which the color information of the original image is valid. In this embodiment, the pixel having effective color information is a pixel having a pixel value of 1, but in the case of multi-value bitmap data or color bitmap data, the pixel value is All pixels other than 0. In step S6006, the reference flag buffer management unit 111 determines whether the value of the reference flag buffer corresponding to a pixel for which color information is valid is zero. If the value of the reference flag buffer is 0, the process proceeds to step S6007. On the other hand, if the value of the reference flag buffer is 1, not 0, steps S6007 and S6008 are skipped.

ステップS6007において、正変換行列描画処理部113は、現在のピクセルに対してアフィン変換を施して、スクリーン上で対応するピクセルを算出する。ステップS6008において、正変換行列描画処理部113は、ステップS6007で算出したピクセルを、原画像における現在のピクセルの色情報で描画する。なお、ステップS6007は、第2の算出手段の処理例であり、ステップS6008は、第2の描画手段の処理例である。   In step S6007, the positive transformation matrix drawing processing unit 113 performs affine transformation on the current pixel and calculates a corresponding pixel on the screen. In step S6008, the positive transformation matrix drawing processing unit 113 draws the pixel calculated in step S6007 with the color information of the current pixel in the original image. Step S6007 is a processing example of the second calculation unit, and step S6008 is a processing example of the second drawing unit.

図8(A)は、ステップS6005までの処理が終了した時点における、原画像のピクセルの値が1であり、且つ参照フラグバッファの値が0であるピクセルを表している。図9は、図8(A)に示す参照元ピクセルと、参照先ピクセルとの対応関係を示す図である。ここでは、同じアルファベットについて、小文字で示した参照元ピクセルから大文字で示した参照先ピクセルに変換されるものとする。一部、小文字のアルファベットで表された参照元ピクセルに対応する大文字のアルファベットで表された参照先ピクセルがないが、これは、異なる参照元ピクセルから同一の参照先ピクセルに変換されたためである。図6の処理全体による描画結果は、図8(C)に示すようになる。また、図6の処理のうち、ステップS6006〜ステップS6008の処理による描画結果は、図8(B)に示すようになる。図8(C)に示す最終的な描画結果は、逆アフィン変換参照による描画処理による描画結果(図4(B))に、本実施形態で追加した描画処理による描画結果(図8(B))を追加したものになる。   FIG. 8A shows a pixel in which the pixel value of the original image is 1 and the value of the reference flag buffer is 0 when the processing up to step S6005 is completed. FIG. 9 is a diagram illustrating a correspondence relationship between the reference source pixel and the reference destination pixel illustrated in FIG. Here, it is assumed that the same alphabet is converted from a reference source pixel indicated by lowercase letters to a reference destination pixel indicated by uppercase letters. Some of the reference pixels represented by the uppercase alphabet corresponding to the reference pixels represented by the lowercase alphabet are partly because they have been converted from different reference pixels to the same reference pixel. The drawing result of the entire process of FIG. 6 is as shown in FIG. In addition, among the processes in FIG. 6, the drawing result by the processes in steps S6006 to S6008 is as shown in FIG. The final drawing result shown in FIG. 8C is the drawing result (FIG. 8B) obtained by the drawing process added in this embodiment to the drawing result (FIG. 4B) obtained by the drawing process based on the inverse affine transformation reference. ) Is added.

以上のように、本実施形態によれば、細い線を含む文字のような図形を3次元変形した場合であっても、3次元変形による奥行き感を確保しつつ、線を消失することなく描画することが可能となる。   As described above, according to the present embodiment, even when a figure such as a character including a thin line is three-dimensionally deformed, drawing without losing the line while ensuring a sense of depth by the three-dimensional deformation. It becomes possible to do.

本実施形態では、ビットマップデータにアフィン変換を施す例を示したが、ベクトルデータをラスタライズしたビットマップデータでも同様の処理を適用することができる。また、本実施形態では、3x3のアフィン行列の例を示したが、3x3によって2次元変形又は3次元変形を施すことができる。   In the present embodiment, an example in which affine transformation is performed on bitmap data has been described. However, similar processing can be applied to bitmap data obtained by rasterizing vector data. In the present embodiment, an example of a 3 × 3 affine matrix is shown, but two-dimensional deformation or three-dimensional deformation can be performed by 3 × 3.

また、本実施形態では、参照元ピクセルからのアフィン変換で参照先ピクセルを求める方法に最近傍法を用いたが、線形補間法を用いてもよい。また、参照元ピクセルのアフィン変換後の大きさを考慮して、参照元ピクセルからアフィン変換で参照先ピクセルを求めてもよい。例えば、アフィン変換によって参照先ピクセルの大きさが大きくなる場合、アフィン変換後の複数の参照先ピクセルに影響を及ぼす。逆に、アフィン変換によって参照先ピクセルの大きさが小さくなる場合、アフィン変換後の参照先ピクセルの一部に影響を及ぼすため、透明度をつけるようにしてもよい。さらに、本実施形態では、参照フラグバッファをビットマップデータとは別の領域に確保したが、共有して処理するようにしてもよい。   In this embodiment, the nearest neighbor method is used as a method for obtaining a reference destination pixel by affine transformation from a reference source pixel, but a linear interpolation method may be used. Further, in consideration of the size of the reference source pixel after affine transformation, the reference destination pixel may be obtained from the reference source pixel by affine transformation. For example, when the size of the reference pixel is increased by affine transformation, the plurality of reference pixels after affine transformation are affected. On the other hand, when the size of the reference pixel is reduced by affine transformation, a part of the reference pixel after affine transformation is affected, and therefore transparency may be added. Furthermore, in the present embodiment, the reference flag buffer is secured in an area different from the bitmap data, but may be shared and processed.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

100:グラフィックス描画装置、110:メモリ、111:参照フラグバッファ管理部、112:逆変換行列描画処理部、113:正変換行列描画処理部、200:ディスプレイ、300:入力装置   DESCRIPTION OF SYMBOLS 100: Graphics drawing apparatus, 110: Memory, 111: Reference flag buffer management part, 112: Inverse transformation matrix drawing process part, 113: Positive transformation matrix drawing process part, 200: Display, 300: Input device

Claims (9)

第1のピクセル群に対してアフィン変換を施すことにより第2のピクセル群を描画する画像処理装置であって、
前記第2のピクセル群に対して逆アフィン変換を施すことにより、前記第2のピクセル群に対応するアフィン変換前の前記第1のピクセル群を算出する第1の算出手段と、
前記第1の算出手段により算出された前記第1のピクセル群のデータに基づいて前記第2のピクセル群を描画する第1の描画手段と、
前記第1のピクセル群のうち、前記第1の描画手段による描画処理に用いられなかったデータに対応する第1のピクセルにアフィン変換を施すことにより、前記第1のピクセルに対応する前記第2のピクセル群を算出する第2の算出手段と、
前記第1のピクセルのデータに基づいて、前記第2の算出手段により算出された前記第2のピクセル群を描画する第2の描画手段とを有することを特徴とする画像処理装置。
An image processing apparatus that draws a second pixel group by performing an affine transformation on the first pixel group,
First calculating means for calculating the first pixel group before affine transformation corresponding to the second pixel group by performing inverse affine transformation on the second pixel group;
First drawing means for drawing the second pixel group based on the data of the first pixel group calculated by the first calculating means;
The second pixel corresponding to the first pixel is subjected to affine transformation on the first pixel corresponding to the data not used in the drawing process by the first drawing unit in the first pixel group. Second calculating means for calculating a pixel group of:
An image processing apparatus comprising: second drawing means for drawing the second pixel group calculated by the second calculation means based on the data of the first pixel.
前記アフィン変換は、2次元変形及び3次元変形のうちの少なくとも何れか一方を含むことを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the affine transformation includes at least one of two-dimensional deformation and three-dimensional deformation. 最近傍法を用いて、前記第1のピクセル群から前記第2のピクセル群にアフィン変換を行うことを特徴とする請求項1又は2に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein affine transformation is performed from the first pixel group to the second pixel group using a nearest neighbor method. 線形補間法を用いて、前記第1のピクセル群から前記第2のピクセル群にアフィン変換を行うことを特徴とする請求項1又は2に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein an affine transformation is performed from the first pixel group to the second pixel group using a linear interpolation method. アフィン変換後の前記第2のピクセル群の大きさに基づいて、前記第1のピクセル群から前記第2のピクセル群にアフィン変換を行うことを特徴とする請求項1又は2に記載の画像処理装置。   3. The image processing according to claim 1, wherein affine transformation is performed from the first pixel group to the second pixel group based on a size of the second pixel group after affine transformation. apparatus. 前記データは、ベクトルデータをラスタライズしたビットマップデータを含むことを特徴とする請求項1乃至5の何れか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the data includes bitmap data obtained by rasterizing vector data. 前記第1のピクセル群のうち、前記第1の描画手段による描画処理に用いられなかったデータに対応する第1のピクセルを管理するための情報を記憶する記憶領域と、前記データが格納される領域とを共有することを特徴とする請求項1乃至6の何れか1項に記載の画像処理装置。   A storage area for storing information for managing a first pixel corresponding to data not used in the drawing process by the first drawing unit in the first pixel group, and the data are stored. The image processing apparatus according to claim 1, wherein the image processing apparatus shares an area. 第1のピクセル群に対してアフィン変換を施すことにより第2のピクセル群を描画する画像処理装置によって実行される画像処理方法であって、
前記第2のピクセル群に対して逆アフィン変換を施すことにより、前記第2のピクセル群に対応するアフィン変換前の前記第1のピクセル群を算出する第1の算出ステップと、
前記第1の算出ステップにより算出された前記第1のピクセル群のデータに基づいて前記第2のピクセル群を描画する第1の描画ステップと、
前記第1のピクセル群のうち、前記第1の描画ステップによる描画処理に用いられなかったデータに対応する第1のピクセルにアフィン変換を施すことにより、前記第1のピクセルに対応する前記第2のピクセル群を算出する第2の算出ステップと、
前記第1のピクセルのデータに基づいて、前記第2の算出ステップにより算出された前記第2のピクセル群を描画する第2の描画ステップとを有することを特徴とする画像処理方法。
An image processing method executed by an image processing apparatus that draws a second pixel group by performing an affine transformation on the first pixel group,
A first calculation step of calculating the first pixel group before the affine transformation corresponding to the second pixel group by performing inverse affine transformation on the second pixel group;
A first drawing step of drawing the second pixel group based on the data of the first pixel group calculated by the first calculation step;
The second pixel corresponding to the first pixel is subjected to affine transformation on the first pixel corresponding to the data not used in the drawing process in the first drawing step in the first pixel group. A second calculation step of calculating a pixel group of
And a second drawing step of drawing the second pixel group calculated in the second calculation step based on the data of the first pixel.
第1のピクセル群に対してアフィン変換を施すことにより第2のピクセル群を描画する画像処理装置によって実行される画像処理方法をコンピュータに実行させるためのプログラムであって、
前記第2のピクセル群に対して逆アフィン変換を施すことにより、前記第2のピクセル群に対応するアフィン変換前の前記第1のピクセル群を算出する第1の算出ステップと、
前記第1の算出ステップにより算出された前記第1のピクセル群のデータに基づいて前記第2のピクセル群を描画する第1の描画ステップと、
前記第1のピクセル群のうち、前記第1の描画ステップによる描画処理に用いられなかったデータに対応する第1のピクセルにアフィン変換を施すことにより、前記第1のピクセルに対応する前記第2のピクセル群を算出する第2の算出ステップと、
前記第1のピクセルのデータに基づいて、前記第2の算出ステップにより算出された前記第2のピクセル群を描画する第2の描画ステップとをコンピュータに実行させるためのプログラム。
A program for causing a computer to execute an image processing method executed by an image processing apparatus that draws a second pixel group by performing affine transformation on the first pixel group,
A first calculation step of calculating the first pixel group before the affine transformation corresponding to the second pixel group by performing inverse affine transformation on the second pixel group;
A first drawing step of drawing the second pixel group based on the data of the first pixel group calculated by the first calculation step;
The second pixel corresponding to the first pixel is subjected to affine transformation on the first pixel corresponding to the data not used in the drawing process in the first drawing step in the first pixel group. A second calculation step of calculating a pixel group of
A program for causing a computer to execute a second drawing step of drawing the second pixel group calculated in the second calculation step based on data of the first pixel.
JP2011020825A 2011-02-02 2011-02-02 Image processing device, image processing method, and program Withdrawn JP2012160120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011020825A JP2012160120A (en) 2011-02-02 2011-02-02 Image processing device, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011020825A JP2012160120A (en) 2011-02-02 2011-02-02 Image processing device, image processing method, and program

Publications (1)

Publication Number Publication Date
JP2012160120A true JP2012160120A (en) 2012-08-23

Family

ID=46840577

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011020825A Withdrawn JP2012160120A (en) 2011-02-02 2011-02-02 Image processing device, image processing method, and program

Country Status (1)

Country Link
JP (1) JP2012160120A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107833266A (en) * 2017-11-02 2018-03-23 青岛擎鹰信息科技有限责任公司 A kind of hologram image acquisition methods based on color lump matching and motion correction

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107833266A (en) * 2017-11-02 2018-03-23 青岛擎鹰信息科技有限责任公司 A kind of hologram image acquisition methods based on color lump matching and motion correction

Similar Documents

Publication Publication Date Title
US8970580B2 (en) Method, apparatus and computer-readable medium rendering three-dimensional (3D) graphics
EP1004988A2 (en) Method, apparatus and computer program product for generating perspective corrected data from warped information
JP2005301902A (en) Image processing apparatus and image processing system
US10937195B2 (en) Label based approach for video encoding
US20220405878A1 (en) Image processing apparatus, image processing method, and image processing program
CN111179159A (en) Method and device for eliminating target image in video, electronic equipment and storage medium
JP3892016B2 (en) Image processing apparatus and image processing method
CN111192190A (en) Method and device for eliminating image watermark and electronic equipment
US9563937B2 (en) High-resolution image generation apparatus, high-resolution image generation method, and high-resolution image generation program
JP4370438B2 (en) Vector image drawing apparatus, vector image drawing method and program
JP2021165888A (en) Information processing apparatus, information processing method of information processing apparatus, and program
JP5254250B2 (en) Method and system for generating boundaries in the process of rasterizing vector graphics, and method for manufacturing the system
US20150242988A1 (en) Methods of eliminating redundant rendering of frames
CN112598687A (en) Image segmentation method and device, storage medium and electronic equipment
CN102654914A (en) Method for accelerating image haze removal by utilizing image processing unit
US20160314615A1 (en) Graphic processing device and method for processing graphic images
JP2012160120A (en) Image processing device, image processing method, and program
JP6487671B2 (en) Image processing apparatus and image processing method. And programs
EP3696773A1 (en) Apparatus and method for generating a light intensity image
JP4055908B2 (en) Wipe pattern generator
JPH11242753A (en) Method and device for three-dimensional plotting
Arranz et al. Multiresolution energy minimisation framework for stereo matching
JP4214644B2 (en) 2D pattern generator
EP2988269B1 (en) A system and method for scaling and copying graphics
JP6317180B2 (en) Image generating apparatus and program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140513