JPH04329482A - Image rotation processing method and processing device for relevant method - Google Patents

Image rotation processing method and processing device for relevant method

Info

Publication number
JPH04329482A
JPH04329482A JP3126764A JP12676491A JPH04329482A JP H04329482 A JPH04329482 A JP H04329482A JP 3126764 A JP3126764 A JP 3126764A JP 12676491 A JP12676491 A JP 12676491A JP H04329482 A JPH04329482 A JP H04329482A
Authority
JP
Japan
Prior art keywords
image
memory
word
speed
data
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
Application number
JP3126764A
Other languages
Japanese (ja)
Inventor
Shuji Ito
修治 伊藤
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP3126764A priority Critical patent/JPH04329482A/en
Publication of JPH04329482A publication Critical patent/JPH04329482A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)
  • Memory System (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Input (AREA)

Abstract

PURPOSE:To enable a high-speed processing in a system equipped with an image memory such as a low-speed DRAM in an image rotation processing to rotate a rectangular image at an arbitrary angle corresponding to a rotation parameter. CONSTITUTION:An inside high-speed memory 7 is provided with the storage capacity of 2(words)X2(bits)/(word), and the rectangular image at a transfer source is divided into the line of (word)X(bits)/(word), read for the unit of a word for each line, drawn onto a high-speed memory by using a DDA system and transferred to a transfer destination image memory 5 for the unit of one block. Since the memory system is hierarchized and the number of times for performing access to the low-speed memory is decreased, acceleration is enabled.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、パーソナルコンピュ
ータやオフィスコンピュータ、DPS(データ・プロセ
ッシング・システム)、光ファイリング装置その他各種
のイメージデータ処理機能を備えた情報処理装置の改良
に係り、特に、矩形画像を回転パラメータに応じて任意
の角度回転させる画像回転処理、すなわち、任意角の回
転方法において、低速のDRAM等のイメージメモリを
有するシステムでの高速処理を可能にした画像回転処理
方法およびその処理装置に関する。
[Field of Industrial Application] This invention relates to the improvement of information processing devices equipped with various image data processing functions such as personal computers, office computers, DPS (data processing systems), optical filing devices, etc. An image rotation processing method that rotates an image by an arbitrary angle according to a rotation parameter, that is, an arbitrary angle rotation method, and an image rotation processing method that enables high-speed processing in a system having an image memory such as a low-speed DRAM, and its processing. Regarding equipment.

【0002】0002

【従来の技術】従来、任意角の画像回転処理においては
、マッピング方式による回転方法が知られている(例え
ば、特公平1−20788号公報)。しかし、このマッ
ピング方式では、転送元のデータについて、その進行方
向のマッピングパターンを順次作成して、転送先へ描画
しなければならないので、処理が複雑である。なお、こ
のマッピング方式では、一次元のメモリを二次元のメモ
リとして使用している。
2. Description of the Related Art Conventionally, in image rotation processing at an arbitrary angle, a rotation method using a mapping method is known (for example, Japanese Patent Publication No. 1-20788). However, in this mapping method, the processing is complicated because it is necessary to sequentially create a mapping pattern in the direction of movement of data at the transfer source and draw it to the transfer destination. Note that in this mapping method, a one-dimensional memory is used as a two-dimensional memory.

【0003】また、他の任意角の回転処理方法として、
DDA変換方式も知られている(例えば、特開昭64−
48178号公報)。このDDA( Digital 
Differential Analizer )変換
方式による画像の回転処理方法では、転送元のデータを
高速処理が可能なDDA変換方式によって、転送先のメ
モリへ描画する。この方式でも、一次元のメモリを二次
元のメモリとして使用している。
[0003] As another arbitrary angle rotation processing method,
DDA conversion methods are also known (for example, JP-A-64-
48178). This DDA (Digital
In the image rotation processing method using the Differential Analyzer (Differential Analyzer) conversion method, data at the transfer source is drawn in the memory at the transfer destination using the DDA conversion method, which allows high-speed processing. This method also uses one-dimensional memory as two-dimensional memory.

【0004】このように、従来の任意角の回転処理方式
では、いずれも、一次元のメモリを二次元のメモリとし
て使用しているので、画像がY方向に変化する毎に、メ
モリアクセスが発生する。そのため、折角、描画処理を
高速化しても、全体の処理スピードが、メモリスピード
に依存する結果となり、システム全体では、高速化に限
界が生じる。
[0004] As described above, in all conventional arbitrary angle rotation processing methods, a one-dimensional memory is used as a two-dimensional memory, so a memory access occurs every time the image changes in the Y direction. do. Therefore, even if the drawing processing is speeded up, the overall processing speed will depend on the memory speed, and there will be a limit to the speeding up of the entire system.

【0005】図3は、従来のDDA変換方式による任意
角の回転処理方法について、矩形画像の回転処理の手順
を説明する図で、(1) はソース画像、(2) は回
転後の画像を示す。図において、SSはソース画像の原
点座標で、SXはそのX方向のドット数、SYはY方向
のドット数、DSは回転後の画像の原点座標で、ΔDX
は回転後の画像のX方向のドット数、ΔDYは回転後の
画像の原点座標DSからのY方向の傾きを示すドット数
、ΔYは回転後の画像のY方向のドット数、ΔXは回転
後の画像の原点座標DSからのX方向の傾きを示すドッ
ト数を示す。
FIG. 3 is a diagram illustrating the procedure for rotating a rectangular image using the conventional DDA conversion method for arbitrary angle rotation processing. (1) is the source image, and (2) is the rotated image. show. In the figure, SS is the origin coordinate of the source image, SX is the number of dots in the X direction, SY is the number of dots in the Y direction, DS is the origin coordinate of the rotated image, and ΔDX
is the number of dots in the X direction of the rotated image, ΔDY is the number of dots indicating the tilt of the rotated image in the Y direction from the origin coordinate DS, ΔY is the number of dots in the Y direction of the rotated image, and ΔX is after rotation indicates the number of dots indicating the inclination in the X direction from the origin coordinates DS of the image.

【0006】この図3(1) に示す矩形のソース画像
を、原点座標SSを中心に左方向(反時計方向)に回転
させて、図3(2) に示すような画像を作成する場合
には、ソース画像のY,X軸方向の長さ(ドット数SY
,SX)が、それぞれ変化する。
[0006] When the rectangular source image shown in Fig. 3 (1) is rotated to the left (counterclockwise) around the origin coordinate SS to create an image as shown in Fig. 3 (2), is the length of the source image in the Y and X axis directions (the number of dots SY
, SX) respectively change.

【0007】そこで、次のような処理を行う。まず、ソ
ース画像について、その原点座標SS,X方向のドット
数SX,Y方向のドット数SYのパラメータを作成する
[0007] Therefore, the following processing is performed. First, parameters of the origin coordinate SS, the number of dots in the X direction SX, and the number of dots in the Y direction SY are created for the source image.

【0008】次に、回転後の画像の原点座標DS、また
、各ラインの回転角度のパラメータとして、X方向のド
ット数ΔDX,Y方向のドット数ΔY、さらに、各ライ
ンの開始座標(ソース画像のY軸方向のドット数SYが
、任意角度回転された回転後の画像のドットの各座標)
のパラメータを作成する。そして、この回転後の画像の
各ラインの開始座標を演算して、1ライン毎に、回転画
像を描画する。
Next, the origin coordinates DS of the image after rotation, the number of dots in the X direction ΔDX, the number of dots in the Y direction ΔY, and the starting coordinates of each line (source image The number of dots SY in the Y-axis direction is each coordinate of a dot in the rotated image rotated by an arbitrary angle)
Create parameters for Then, the starting coordinates of each line of this rotated image are calculated, and a rotated image is drawn line by line.

【0009】図4は、従来のDDA変換方式による画像
回転処理装置について、矩形画像の回転処理の動作順序
を説明する機能ブロック図である。図において、1はソ
ースデータメモリ、2はソースデータ読み出し部、3は
描画部(第1のDDA部)、4は描画開始点発生部(第
2のDDA部)、5は被回転画像のデータが格納される
転送先イメージメモリを示す。
FIG. 4 is a functional block diagram illustrating the operational order of rectangular image rotation processing in a conventional image rotation processing apparatus using the DDA conversion method. In the figure, 1 is a source data memory, 2 is a source data reading section, 3 is a drawing section (first DDA section), 4 is a drawing start point generation section (second DDA section), and 5 is data of the rotated image. Indicates the destination image memory where is stored.

【0010】ソースデータメモリ1には、図3(1) 
のようなソース画像のデータ(転送元のデータ)が格納
されている。ソースデータ読み出し部2には、レジスタ
とシフトレジスタとが内蔵されており、ソースデータメ
モリ1から各ラインのドットデータが、ライン単位、す
なわち、ワード(語)単位で読み出されて先ずレジスタ
に格納され、その後、シフトレジスタへ転送される。
[0010]The source data memory 1 contains data as shown in FIG.
Source image data (transfer source data) such as is stored. The source data reading unit 2 has a built-in register and a shift register, and the dot data of each line is read out from the source data memory 1 in units of lines, that is, in units of words, and is first stored in the register. and then transferred to the shift register.

【0011】このような処理を行う理由は、ソースデー
タの黒ドットが、ワードの境界にまたがって存在する場
合があるためである。すなわち、ソースデータの黒ドッ
トが、ワードの境界にまたがる場合には、シフトレジス
タ内の適切なシフト動作により、境界整列が行われる。
The reason for performing such processing is that black dots in the source data may exist across word boundaries. That is, if a black dot in the source data straddles a word boundary, boundary alignment is achieved by appropriate shifting operations within the shift register.

【0012】そして、ソースデータ読み出し部2のシフ
トレジスタから出力されるドットデータは、順次描画部
3へ供給される。
The dot data output from the shift register of the source data reading section 2 is sequentially supplied to the drawing section 3.

【0013】描画部3には、パターンレジスタと第1の
DDA部とが内蔵されており、ソースデータ読み出し部
2のシフトレジスタからの1ライン分のドットデータが
、パターンデータとしてパターンレジスタに格納される
。その後、このパターンレジスタに格納されたパターン
データは、同じく描画部3に内蔵されている第1のDD
A部へ供給される。
The drawing section 3 has a built-in pattern register and a first DDA section, and one line of dot data from the shift register of the source data reading section 2 is stored as pattern data in the pattern register. Ru. Thereafter, the pattern data stored in this pattern register is transferred to the first DD, which is also built in the drawing section 3.
Supplied to section A.

【0014】他方、描画開始点発生部4には、第2のD
DA部が内蔵されており、回転パラメータに対応して、
回転後の画像を構成する各ラインの描画開始座標(描画
開始アドレス)を自動的に計算して、描画部3へ供給す
る。
On the other hand, the drawing start point generating section 4 includes a second D
Built-in DA section, corresponding to rotation parameters,
The drawing start coordinates (drawing start address) of each line constituting the rotated image are automatically calculated and supplied to the drawing unit 3.

【0015】描画開始アドレスが供給されると、描画部
3の第1のDDA部は、1回の画像開始指示に応答して
1ラインの描画を開始する際、描画開始点発生部4内の
第2のDDA部から供給される情報、すなわち、回転後
の画像について、その対応する1ラインの描画開始座標
と、少なくとも回転後の画像の原点座標DSや回転角度
を含む回転パラメータに応じて、回転後の画像の対応す
る1ラインを構成する各ドットデータの座標を順次計算
する。
When the drawing start address is supplied, the first DDA section of the drawing section 3 starts drawing one line in response to one image start instruction, and the first DDA section in the drawing start point generating section 4 starts drawing one line. According to the information supplied from the second DDA unit, that is, regarding the rotated image, the drawing start coordinates of the corresponding one line, and the rotation parameters including at least the origin coordinate DS and rotation angle of the rotated image. The coordinates of each dot data constituting one corresponding line of the rotated image are sequentially calculated.

【0016】そして、先にパターンレジスタに格納され
たパターンデータを、順次、この第1のDDA部から指
定される転送先イメージメモリ5の座標(アドレス)に
描画して、回転後の画像の1ライン分のデータを作成す
る。
Then, the pattern data previously stored in the pattern register is sequentially drawn at the coordinates (address) of the destination image memory 5 specified from this first DDA section, and one part of the rotated image is drawn. Create data for the line.

【0017】以下同様に、描画部3内のパターンレジス
タに順次格納される1ライン毎のパターンデータを、第
1のDDA部によって計算した座標へ描画し、2ライン
目以降の各ラインについての回転後の画像のデータを作
成する。
Similarly, the pattern data for each line sequentially stored in the pattern register in the drawing section 3 is drawn at the coordinates calculated by the first DDA section, and the rotation of each line from the second line onward is performed. Create data for the subsequent image.

【0018】したがって、回転後の画像の全てのライン
が、1回の画像回転開始指示、すなわち、1回の描画の
起動に応答して、図3(1) のようなソース画像の各
ラインが回転処理されて、図3(2) に示すように、
回転後の画像が描画される。このように、描画開始点発
生部4内の第2のDDA部により、回転後の画像の各ラ
インについて、その描画開始座標を自動的に計算すれば
、ソフトフェア処理による描画方法に比べて、処理能率
を向上させることが可能になる。
Therefore, in response to one image rotation start instruction, that is, one drawing start, each line of the source image as shown in FIG. 3(1) After the rotation process, as shown in Figure 3 (2),
The rotated image is drawn. In this way, if the second DDA unit in the drawing start point generation unit 4 automatically calculates the drawing start coordinates for each line of the rotated image, compared to the drawing method using software processing, It becomes possible to improve processing efficiency.

【0019】しかしながら、この図4に関連して説明し
た従来のDDA変換方式による画像回転処理方法、すな
わち、DDA変換方式による任意角の回転処理方法では
、一次元のメモリを二次元として使用しているため、ソ
ース画像のデータがY方向に変化した場合には、必ず、
メモリへのアクセスが発生する。
However, in the conventional image rotation processing method using the DDA conversion method described in connection with FIG. Therefore, if the source image data changes in the Y direction,
Memory access occurs.

【0020】そのため、折角、描画処理部に高速処理が
可能なDDA部を使用しても、描画所要時間がメモリス
ピードに依存してしまい、処理速度に限界がある。した
がって、低速のDRAM等を使用したイメージメモリを
有するシステムでは、DDA部の高速化が全体の改善に
生かされない、という不都合がある。
Therefore, even if a DDA unit capable of high-speed processing is used as the drawing processing unit, the time required for drawing depends on the memory speed, and there is a limit to the processing speed. Therefore, in a system having an image memory using a low-speed DRAM or the like, there is a problem in that speeding up the DDA section is not utilized to improve the overall system.

【0021】[0021]

【発明が解決しようとする課題】この発明では、従来の
矩形等の方形画像を回転パラメータに応じて任意の角度
回転を行う任意角回転処理機能を備えた画像処理装置に
おいて生じるこのような不都合、すなわち、ソース画像
のデータがY方向に変化した場合には、必ずメモリへの
アクセスが発生するため、低速のDRAM等を使用した
イメージメモリを有するシステムでは、DDA部の高速
化が全体の改善につながらない、という不都合を解決し
、低速メモリへのアクセス回数を減少させることにより
、高速化を可能にした画像回転処理方法およびその処理
装置を提供することを目的とする。
[Problems to be Solved by the Invention] The present invention solves such inconveniences that occur in conventional image processing apparatuses equipped with an arbitrary angle rotation processing function that rotates rectangular images such as rectangles by arbitrary angles according to rotation parameters. In other words, when the source image data changes in the Y direction, memory access always occurs, so in systems with image memory using low-speed DRAM, speeding up the DDA section improves the overall performance. It is an object of the present invention to provide an image rotation processing method and a processing device thereof, which solve the problem of not being able to connect and which make it possible to increase the speed by reducing the number of accesses to a low-speed memory.

【0022】[0022]

【課題を解決するための手段】この発明では、第1に、
矩形等の方形画像を回転パラメータに応じて任意の角度
回転を行う任意角回転処理機能を備えた画像処理装置に
おいて、転送元のメモリに格納された矩形画像を(ワー
ド)×(ビット)/(ワード)のラインに分割して、1
ライン毎のワード単位(4ビットまたはその整数倍)で
読み込み、2(ワード)×2×(ビット)/(ワード)
の記憶容量を有する内部の高速メモリ上にDDA方式を
用いて描画し、前記転送元のメモリの画像の1ブロック
の高速メモリへの描画終了後、該高速メモリの1ブロッ
クのデータを、転送先のイメージメモリへ転送する画像
の回転処理方法である。
[Means for solving the problems] In this invention, firstly,
In an image processing device equipped with an arbitrary angle rotation processing function that rotates a rectangular image such as a rectangle by an arbitrary angle according to a rotation parameter, the rectangular image stored in the transfer source memory is converted into (words) × (bits) / ( word) into lines of 1
Read in word units (4 bits or an integer multiple thereof) per line, 2 (word) x 2 x (bit) / (word)
After drawing one block of the image in the transfer source memory to the high speed memory, the one block of data in the high speed memory is transferred to the transfer destination. This is a rotation processing method for images transferred to an image memory.

【0023】第2に、矩形等の方形画像の転送元のデー
タを格納するソースデータメモリと、DDA方式を用い
て描画するDDA描画手段と、回転処理された画像のデ
ータを格納する転送先イメージメモリとを具備し、矩形
等の方形画像を回転パラメータに応じて任意の角度回転
を行う任意角回転処理機能を備えた画像処理装置におい
て、転送元であるソースデータメモリ上の画像データを
(ワード)×(ビット)/(ワード)のラインに分割す
る切り出し指示手段と、2(ワード)×2×(ビット)
/(ワード)を1ブロック分とする記憶容量を有し、前
記ソースデータメモリから1ライン毎のワード単位(4
ビットまたはその整数倍)で読み込まれた被回転画像デ
ータを格納する高速メモリ手段と、前記転送先イメージ
メモリ上の転送先の領域のアドレスを計算部する転送先
発生手段と、前記高速メモリ手段から被回転画像データ
を1ブロック単位で前記転送先イメージメモリへ転送す
る転送手段、とを備え、前記高速メモリ手段へワード単
位で読み込み、ブロック単位で前記転送先イメージメモ
リへ転送するように構成している。
Second, there is a source data memory that stores the source data of a square image such as a rectangle, a DDA drawing means that draws using the DDA method, and a destination image that stores the data of the rotated image. In an image processing device equipped with a memory and an arbitrary angle rotation processing function that rotates a square image such as a rectangle at an arbitrary angle according to a rotation parameter, the image data on the source data memory that is the transfer source is )×(bit)/(word) line, and 2(word)×2×(bit).
/ (words) as one block, and has a storage capacity of one block of / (words), and data is stored in word units (4 words) per line from the source data memory.
a high-speed memory means for storing rotated image data read in bits or an integral multiple thereof); a transfer destination generating means for calculating an address of a transfer destination area on the transfer destination image memory; a transfer means for transferring the rotated image data to the destination image memory in units of blocks, and configured to read the rotated image data in units of words into the high-speed memory means and transfer it to the destination image memory in units of blocks. There is.

【0024】上記の第1または第2の画像処理装置にお
いて、高速メモリ手段は、DDA描画手段の速度に同期
する構成である。
In the first or second image processing device described above, the high-speed memory means is configured to synchronize with the speed of the DDA drawing means.

【0025】[0025]

【作用】この発明の画像回転処理方法およびその処理装
置では、速度改善を実現するために、メモリシステムを
階層化し、低速メモリへのアクセス回数を減少させるこ
とによって、高速化を達成している。
In the image rotation processing method and processing device of the present invention, in order to improve speed, the memory system is hierarchized and the number of accesses to low-speed memory is reduced, thereby achieving speedup.

【0026】すなわち、この発明の画像回転処理方法で
は、第1に、転送元の矩形画像を(ワード)×(ビット
)/(ワード)のラインに分割し、第2に、分割したラ
イン毎に、ワード単位で読み込む。
That is, in the image rotation processing method of the present invention, firstly, a rectangular image as a transfer source is divided into lines of (words)×(bits)/(words), and secondly, for each divided line, , read word by word.

【0027】そして、第3に、2(ワード)×2×(ビ
ット)/(ワード)の記憶容量を有する内部の高速メモ
リ(またはレジスタ)へ、DDA方式によりワード単位
で描画する。第4に、転送元のブロックの描画終了後、
内部の高速メモリに記憶された1ブロックのデータを、
転送先計算部で計算された転送先イメージメモリのアド
レスへ転送する。
Third, drawing is performed word by word using the DDA method into an internal high-speed memory (or register) having a storage capacity of 2 (words)×2×(bits)/(words). Fourth, after drawing the transfer source block,
One block of data stored in internal high-speed memory,
Transfer to the destination image memory address calculated by the destination calculation unit.

【0028】したがって、転送先イメージメモリが、D
RAM等を使用した低速のメモリでも、そのアクセス回
数が減少されるので、高速度の画像回転処理が可能にな
る。
Therefore, the destination image memory is D
Even with a low-speed memory such as a RAM, the number of accesses is reduced, making it possible to perform high-speed image rotation processing.

【0029】[0029]

【実施例】次に、この発明の画像回転処理方法および画
像処理装置について、図面を参照しながら、その実施例
を詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the image rotation processing method and image processing apparatus of the present invention will be described in detail with reference to the drawings.

【0030】図1は、この発明の画像処理装置について
、その要部構成の一実施例を示す機能ブロック図である
。図における符号は図4と同様であり、また、6は切り
出し指示部、7は内部高速メモリ(またはレジスタ)、
8は転送部、9は転送先発生部を示し、また、■〜■は
内部高速メモリ7の各アドレス、◎は画像処理によって
塗り潰されたドット、a〜dは転送先イメージメモリ5
の各領域、矢印Pは描画方向を示す。
FIG. 1 is a functional block diagram showing an embodiment of the main structure of an image processing apparatus according to the present invention. The symbols in the figure are the same as those in FIG. 4, and 6 is an extraction instruction section, 7 is an internal high-speed memory (or register),
8 indicates a transfer unit, 9 indicates a transfer destination generation unit, ■ to ■ are addresses of the internal high-speed memory 7, ◎ is a dot filled in by image processing, and a to d are transfer destination image memory 5
In each area, the arrow P indicates the drawing direction.

【0031】この図1に示すこの発明の画像処理装置で
は、メモリシステムを階層化し、新たに設けた内部高速
メモリ(またはレジスタ)7へ、1ライン単位で読み出
したソースデータを、回転させて一旦描画し、この内部
高速メモリ7から、1ブロック単位で、先の図4に示し
た従来の装置と同様の被回転画像のデータが格納される
転送先イメージメモリ5(低速メモリ)へ転送するよう
にしている。なお、内部高速メモリ(またはレジスタ)
7は、描画部3内の第1のDDA部の速度に同期して動
作する。
In the image processing apparatus of the present invention shown in FIG. 1, the memory system is layered, and the source data read out line by line is rotated and once stored in the newly provided internal high-speed memory (or register) 7. The image data is drawn and transferred from the internal high-speed memory 7 in block units to the destination image memory 5 (low-speed memory) where the data of the rotated image similar to the conventional device shown in FIG. 4 is stored. I have to. In addition, internal high-speed memory (or register)
7 operates in synchronization with the speed of the first DDA section in the drawing section 3.

【0032】したがって、従来の装置の場合には、1ラ
イン毎に、低速メモリである転送先イメージメモリ5の
アクセスを必要としたが、この発明の画像処理装置では
、1ブロック毎に1回だけアクセスすればよいので、低
速メモリへのアクセス回数を減少させることができる。
Therefore, in the case of the conventional apparatus, it was necessary to access the transfer destination image memory 5, which is a low-speed memory, for each line, but in the image processing apparatus of the present invention, access is required only once for each block. Since it is only necessary to access the memory, the number of accesses to the low-speed memory can be reduced.

【0033】切り出し指示部6は、転送元であるソース
データメモリ1から、語単位(1ライン毎)で画像デー
タを取り出す際、ソースデータ読み出し部2に対して各
ラインの指示を行う。転送先発生部9は、転送先イメー
ジメモリ5上の領域a〜dのアドレスを計算する機能を
有しており、転送部8に対して、計算したアドレスを出
力する。
The cutout instruction section 6 instructs the source data reading section 2 for each line when extracting image data word by word (line by line) from the source data memory 1, which is the transfer source. The transfer destination generation section 9 has a function of calculating the addresses of areas a to d on the transfer destination image memory 5, and outputs the calculated addresses to the transfer section 8.

【0034】なお、この図1では、周囲ドットとの関係
によって画像処理を行い、◎印のドットを塗り潰した状
態を示しているので、一層高画質の回転画像が得られる
。しかし、被回転画像の回転処理に際しては、必ずしも
このような塗り潰し処理を行う必要はない。
Note that in FIG. 1, image processing is performed based on the relationship with surrounding dots, and the dots marked with ◎ are filled out, so that a rotated image of even higher quality can be obtained. However, when rotating an image to be rotated, it is not always necessary to perform such filling processing.

【0035】この発明の画像処理装置では、ソースデー
タ読み出し部2が、転送元のデータが格納されているソ
ースデータメモリ1から、語単位(1ライン毎)で内部
高速メモリ7へ転送元のデータを取り込む。
In the image processing apparatus of the present invention, the source data reading unit 2 reads the source data from the source data memory 1 in which the source data is stored to the internal high-speed memory 7 word by word (every line). Incorporate.

【0036】描画部3は、描画開始点発生部4から、内
部高速メモリ7上の■のアドレス情報を受け取り、矢印
Pの方向に描画を行う。この1語データの処理が終了す
ると、ソースデータメモリ1上で、次の2ライン目の処
理を、1ライン目と同様に行う。
The drawing section 3 receives the address information indicated by ■ on the internal high-speed memory 7 from the drawing start point generating section 4, and draws in the direction of the arrow P. When the processing of this one-word data is completed, the next second line is processed on the source data memory 1 in the same manner as the first line.

【0037】すなわち、内部高速メモリ7の■のアドレ
スから、同様に、矢印Pの方向に描画を行う。
That is, drawing is similarly performed in the direction of arrow P from the address ◯ in the internal high-speed memory 7.

【0038】このようにして、ソースデータメモリ1か
らの1ブロック(4ライン分)のデータの取り出しと、
内部高速メモリ7の■〜■のアドレスからの描画が終了
すると、転送部8は、転送先発生部9から与えられるア
ドレスにより、転送先イメージメモリ5上の領域aに、
任意角の回転処理が終了した内部高速メモリ7のデータ
を二次元で転送する。
In this way, one block (four lines) of data is retrieved from the source data memory 1,
When the drawing from addresses ■ to ■ of the internal high-speed memory 7 is completed, the transfer unit 8 transfers the data to the area a on the transfer destination image memory 5 according to the address given from the transfer destination generation unit 9.
The data in the internal high-speed memory 7 for which the arbitrary angle rotation process has been completed is transferred in two dimensions.

【0039】したがって、ソースデータメモリ1上の○
印の1ブロックのソースデータが、回転処理されて、転
送先イメージメモリ5上の領域aに描画されることにな
る。次に、同様に、ソースデータメモリ1上の×印の1
ブロックについて、ソースデータメモリ1から取り出し
て、内部高速メモリ7の■〜■のアドレスから順次描画
し、その描画処理が終了すると、転送部8が、転送先イ
メージメモリ5上の領域bへ転送する。
Therefore, ○ on the source data memory 1
One block of source data marked with a mark is rotated and drawn in area a on the destination image memory 5. Next, in the same way, 1
The block is taken out from the source data memory 1 and drawn sequentially from addresses ① to ② in the internal high-speed memory 7, and when the drawing process is completed, the transfer unit 8 transfers it to area b on the destination image memory 5. .

【0040】このような処理を、ソースデータメモリ1
の分割回数(この図1の場合、4分割であるから4回)
だけ繰り返えすことによって、ソースデータメモリ1上
のソース画像に対する任意角の回転処理が終了する。
[0040] Such processing is performed in the source data memory 1.
Number of divisions (in the case of this figure 1, it is divided into 4, so 4 times)
By repeating this process, the arbitrary angle rotation process for the source image on the source data memory 1 is completed.

【0041】この場合に、内部高速メモリ7上に回転処
理された画像について、すでに述べた公知の画像処理、
すなわち、周囲ドットとの関係によって、その隙間を埋
める塗り潰し処理を行えば、一層高画質の回転画像が得
られる。
In this case, the rotationally processed image stored in the internal high-speed memory 7 is subjected to the known image processing described above.
That is, if a filling process is performed to fill in the gaps depending on the relationship with the surrounding dots, a rotated image of even higher quality can be obtained.

【0042】以上のように、この発明の画像処理装置で
は、メモリシステムを従来の1メモリから2メモリに階
層化して、高速メモリである内部高速メモリ7(または
レジスタ)へ、任意角の回転処理を行つた画像を1ライ
ン単位で一旦描画し、この内部高速メモリ7から、1ブ
ロック単位で、低速メモリで構成された転送先イメージ
メモリ5へ転送する。
As described above, in the image processing apparatus of the present invention, the memory system is layered from the conventional one memory to two memories, and rotation processing at arbitrary angles is performed in the internal high speed memory 7 (or register) which is a high speed memory. The resulting image is once drawn line by line, and transferred from internal high-speed memory 7 to destination image memory 5, which is comprised of low-speed memory, block by block.

【0043】その結果、ソース画像の任意角の回転処理
において、低速メモリである転送先イメージメモリ5へ
のアクセス回数を少なくすることができる。したがって
、安価なメモリで構成されたイメージメモリを使用して
も、処理速度が改善される。
As a result, the number of accesses to the destination image memory 5, which is a low-speed memory, can be reduced in processing for rotating a source image by any angle. Therefore, processing speed can be improved even if an image memory configured with inexpensive memory is used.

【0044】以上の実施例では、4ビット/語の場合を
説明したが、例えば、8ビット/語の場合には約2倍、
16ビット/語の場合には約4倍、32ビット/語の場
合には約8倍、の高速化が実現される。
In the above embodiment, the case of 4 bits/word has been explained, but for example, in the case of 8 bits/word, the
In the case of 16 bits/word, the speed is increased by about 4 times, and in the case of 32 bits/word, the speed is increased by about 8 times.

【0045】次に、この発明の画像処理装置による任意
角の回転処理について、フローチャートを示す。図2は
、この発明の画像処理装置について、矩形等の方形画像
の任意角回転時の主要な処理の流れを示すフローチャー
トである。図において、#1〜#7はステップを示す。
Next, a flowchart will be shown regarding arbitrary angle rotation processing by the image processing apparatus of the present invention. FIG. 2 is a flowchart showing the main process flow when rotating a square image such as a rectangle by an arbitrary angle in the image processing apparatus of the present invention. In the figure, #1 to #7 indicate steps.

【0046】ステップ#1で、転送元のアドレスを算出
する。次のステップ#2で、主走査の1語のデータを読
み込む。ステップ#3へ進み、内部の高速メモリに指定
角度で描画する。
[0046] In step #1, the transfer source address is calculated. In the next step #2, one word of main scanning data is read. Proceed to step #3 and draw at the specified angle in the internal high-speed memory.

【0047】ステップ#4で、1ブロックの処理が終了
したかどうか判断する。もし、1ブロックの処理が終了
していなければ、再び先のステップ#1へ戻って、同様
に、ステップ#1〜#4の処理を繰り返えす。ステップ
#4で判断した結果、1ブロックの処理が終了したとき
は、ステップ#5へ進み、転送先のアドレスを算出する
[0047] In step #4, it is determined whether the processing of one block has been completed. If the processing of one block has not been completed, the process returns to the previous step #1 and the processing of steps #1 to #4 can be repeated in the same manner. As a result of the determination in step #4, if the processing of one block has been completed, the process proceeds to step #5, where the transfer destination address is calculated.

【0048】次のステップ#6で、内部の高速メモリか
ら転送先に、二次元で転送する。ステップ#7で、全て
のブロックの処理が終了したかどうか判断する。もし、
全てのブロックの処理が終了していなければ、再び先の
ステップ#1へ戻り、以下、同様の処理を繰り返えす。
In the next step #6, data is transferred from the internal high-speed memory to the transfer destination in two dimensions. In step #7, it is determined whether processing of all blocks has been completed. if,
If all blocks have not been processed, the process returns to step #1 and the same process is repeated.

【0049】ステップ#7で判断した結果、全てのブロ
ックの処理が終了したときは、この図2のフローを終了
する。以上のステップ#1〜#7の処理により、この発
明の画像処理装置による矩形等の方形画像の任意角の回
転処理が実行される。
As a result of the determination in step #7, if all blocks have been processed, the flow of FIG. 2 is ended. Through the processing of steps #1 to #7 above, the image processing apparatus of the present invention performs rotation processing of a rectangular image such as a rectangle by an arbitrary angle.

【0050】[0050]

【発明の効果】この発明によれば、任意の角度回転を行
う任意角の回転処理において、低速メモリへのアクセス
回数を少なくすることが可能になる(請求項1と請求項
2の発明に対応する効果)。
Effects of the Invention According to the present invention, it is possible to reduce the number of accesses to the low-speed memory in arbitrary angle rotation processing that performs arbitrary angle rotation (corresponding to the inventions of claims 1 and 2). effect).

【0051】したがって、安価なメモリで構成されたイ
メージメモリを使用しても、処理速度を改善することが
できる。例えば、8ビット/語の場合には約2倍、16
ビット/語の場合には約4倍、32ビット/語の場合に
は約8倍、のように処理速度が高められ、システムの処
理能率が向上される。
Therefore, processing speed can be improved even if an image memory constructed of inexpensive memory is used. For example, in the case of 8 bits/word, approximately twice as much, 16
The processing speed is increased by about 4 times in the case of bits/word and about 8 times in the case of 32 bits/word, and the processing efficiency of the system is improved.

【0052】また、内部に高速のメモリ(またはレジス
タ)を設けているので、DDA描画手段の速度に同期し
て回転処理を行うことが可能となり、回転処理時の速度
が著しく向上される(請求項3の発明に対応する効果)
、等の多くの優れた効果が奏せられる。
Furthermore, since a high-speed memory (or register) is provided internally, it is possible to perform rotation processing in synchronization with the speed of the DDA drawing means, and the speed during rotation processing is significantly improved. Effects corresponding to the invention in Section 3)
, etc., many excellent effects can be achieved.

【図面の簡単な説明】[Brief explanation of drawings]

【図1】この発明の画像処理装置について、その要部構
成の一実施例を示す機能ブロック図である。
FIG. 1 is a functional block diagram showing an embodiment of the main configuration of an image processing apparatus of the present invention.

【図2】この発明の画像処理装置について、矩形等の方
形画像の任意角回転時の主要な処理の流れを示すフロー
チャートである。
FIG. 2 is a flowchart showing the main process flow when rotating a square image such as a rectangle by an arbitrary angle in the image processing apparatus of the present invention.

【図3】従来のDDA変換方式による任意角の回転処理
方法について、矩形画像の回転処理の手順を説明する図
である。
FIG. 3 is a diagram illustrating a procedure for rotating a rectangular image in an arbitrary angle rotation processing method using a conventional DDA conversion method.

【図4】従来のDDA変換方式による画像回転処理装置
について、矩形画像の回転処理の動作順序を説明する機
能ブロック図である。
FIG. 4 is a functional block diagram illustrating the operation sequence of rotation processing of a rectangular image in a conventional image rotation processing device using the DDA conversion method.

【符号の説明】[Explanation of symbols]

1  ソースデータメモリ 2  ソースデータ読み出し部 3  描画部 4  描画開始点発生部 5  転送先イメージメモリ 6  切り出し指示部 7  内部高速メモリ 8  転送部 9  転送先発生部 1 Source data memory 2 Source data reading section 3 Drawing section 4 Drawing start point generation part 5 Destination image memory 6 Cutting instruction section 7 Internal high-speed memory 8 Transfer section 9 Transfer destination generation part

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  矩形等の方形画像を回転パラメータに
応じて任意の角度回転を行う任意角回転処理機能を備え
た画像処理装置において、転送元のメモリに格納された
矩形画像を(ワード)×(ビット)/(ワード)のライ
ンに分割して、1ライン毎のワード単位(4ビットまた
はその整数倍)で読み込み、2(ワード)×2×(ビッ
ト)/(ワード)の記憶容量を有する内部の高速メモリ
上にDDA方式を用いて描画し、前記転送元のメモリの
画像の1ブロックの高速メモリへの描画終了後、該高速
メモリの1ブロックのデータを、転送先のイメージメモ
リへ転送することを特徴とする画像回転処理方法。
Claim 1: In an image processing apparatus equipped with an arbitrary angle rotation processing function that rotates a rectangular image such as a rectangle by an arbitrary angle according to a rotation parameter, a rectangular image stored in a transfer source memory is rotated by (word) × It is divided into (bits)/(words) lines and read in word units (4 bits or an integral multiple thereof) per line, and has a storage capacity of 2 (words) x 2 x (bits)/(words). Drawing is performed on an internal high-speed memory using the DDA method, and after drawing one block of the image in the transfer source memory to the high-speed memory is completed, one block of data in the high-speed memory is transferred to the transfer destination image memory. An image rotation processing method characterized by:
【請求項2】  矩形等の方形画像の転送元のデータを
格納するソースデータメモリと、DDA方式を用いて描
画するDDA描画手段と、回転処理された画像のデータ
を格納する転送先イメージメモリとを具備し、矩形等の
方形画像を回転パラメータに応じて任意の角度回転を行
う任意角回転処理機能を備えた画像処理装置において、
転送元であるソースデータメモリ上の画像データを(ワ
ード)×(ビット)/(ワード)のラインに分割する切
り出し指示手段と、2(ワード)×2×(ビット)/(
ワード)を1ブロック分とする記憶容量を有し、前記ソ
ースデータメモリから1ライン毎のワード単位(4ビッ
トまたはその整数倍)で読み込まれた被回転画像データ
を格納する高速メモリ手段と、前記転送先イメージメモ
リ上の転送先の領域のアドレスを計算部する転送先発生
手段と、前記高速メモリ手段から被回転画像データを1
ブロック単位で前記転送先イメージメモリへ転送する転
送手段、とを備え、前記高速メモリ手段へワード単位で
読み込み、ブロック単位で前記転送先イメージメモリへ
転送することを特徴とする画像処理装置。
2. A source data memory for storing source data of a rectangular image such as a rectangle, a DDA drawing means for drawing using a DDA method, and a destination image memory for storing data of a rotated image. In an image processing device equipped with an arbitrary angle rotation processing function that rotates a rectangular image such as a rectangle at an arbitrary angle according to a rotation parameter,
A cutout instruction means for dividing the image data on the source data memory, which is the transfer source, into lines of (word) x (bit)/(word), and 2 (word) x 2 x (bit)/(
a high-speed memory means having a storage capacity of one block of word) and storing rotated image data read in word units (4 bits or an integral multiple thereof) per line from the source data memory; Transfer destination generating means for calculating the address of a transfer destination area on the transfer destination image memory;
An image processing apparatus comprising: transfer means for transferring to the destination image memory in blocks, the image processing apparatus reading in words to the high-speed memory means and transferring to the destination image memory in blocks.
【請求項3】  請求項1または請求項2の画像処理装
置において、高速メモリ手段は、DDA描画手段の速度
に同期することを特徴とする画像処理装置。
3. The image processing apparatus according to claim 1, wherein the high-speed memory means is synchronized with the speed of the DDA drawing means.
JP3126764A 1991-04-30 1991-04-30 Image rotation processing method and processing device for relevant method Pending JPH04329482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3126764A JPH04329482A (en) 1991-04-30 1991-04-30 Image rotation processing method and processing device for relevant method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3126764A JPH04329482A (en) 1991-04-30 1991-04-30 Image rotation processing method and processing device for relevant method

Publications (1)

Publication Number Publication Date
JPH04329482A true JPH04329482A (en) 1992-11-18

Family

ID=14943351

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3126764A Pending JPH04329482A (en) 1991-04-30 1991-04-30 Image rotation processing method and processing device for relevant method

Country Status (1)

Country Link
JP (1) JPH04329482A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5838837A (en) * 1995-04-10 1998-11-17 Sharp Kabushiki Kaisha Image synthesizing device
JP2011253218A (en) * 2010-05-31 2011-12-15 Canon Inc Image processing apparatus and image processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5838837A (en) * 1995-04-10 1998-11-17 Sharp Kabushiki Kaisha Image synthesizing device
JP2011253218A (en) * 2010-05-31 2011-12-15 Canon Inc Image processing apparatus and image processing method

Similar Documents

Publication Publication Date Title
US5940087A (en) Graphic processing apparatus and method
JP3586991B2 (en) Texture data reading device and rendering device
US5621866A (en) Image processing apparatus having improved frame buffer with Z buffer and SAM port
JPS62262188A (en) Picture processor
JP2634851B2 (en) Image processing device
JPH04329482A (en) Image rotation processing method and processing device for relevant method
JPH0481231B2 (en)
JPH0370431B2 (en)
JPS59224892A (en) Rotation/movement control system for image data
US7667714B2 (en) Patterned polygon rendering apparatus
JP3818951B2 (en) Data array conversion apparatus, display control apparatus using the same, and data array conversion method
JP2694805B2 (en) Image playback method
JPH0785266A (en) Image rotating device
JPH0736772A (en) Device and method for fast bit map access control
JPS59214969A (en) Rotating processing system of picture
JPS59188761A (en) Write system of picture memory
JPS5979673A (en) Expanding and contracting method of picture
JPS61267095A (en) Display indication system
JPH11312238A (en) Image data transfer device
JPH11205576A (en) Image processor
JP3004993B2 (en) Image processing device
JPS58113981A (en) Screen memory control system
JPH07118006B2 (en) Image processing device
JPH07146932A (en) Image display device
JPH04278652A (en) Graphic drawing device and its memory access system