JP2005176125A - Image processing method and image processor - Google Patents
Image processing method and image processor Download PDFInfo
- Publication number
- JP2005176125A JP2005176125A JP2003415665A JP2003415665A JP2005176125A JP 2005176125 A JP2005176125 A JP 2005176125A JP 2003415665 A JP2003415665 A JP 2003415665A JP 2003415665 A JP2003415665 A JP 2003415665A JP 2005176125 A JP2005176125 A JP 2005176125A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- data
- image
- line
- page
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 7
- 230000017105 transposition Effects 0.000 claims abstract description 23
- 230000004044 response Effects 0.000 abstract 1
- 238000000034 method Methods 0.000 description 24
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 239000002131 composite material Substances 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Landscapes
- Record Information Processing For Printing (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、ページメモリに蓄積されている画像データを転置させる画像処理方法及び画像処理装置に関する。 The present invention relates to an image processing method and an image processing apparatus for transposing image data stored in a page memory.
ファクシミリ装置、ディジタル複写機、プリンタ、またはそれらの機能を統合した複合機などの画像データを処理する画像処理装置にあっては、自身が読み取った画像データ、または外部装置から入力された画像データを、時計回りまたは反時計回りに90度回転させて用紙に記録する機能を備えているものがある(例えば、特許文献1参照)。このような画像データの回転処理は、画像データによって描画される図形の長短方向を用紙の長短方向に一致させて見やすくする場合、所定の方向にセットされた用紙がなくなってもこれと90度方向を変えてセットされている他の用紙で記録処理を継続する場合などに、有用である。 In an image processing apparatus that processes image data, such as a facsimile machine, a digital copying machine, a printer, or a multifunction machine that integrates these functions, it reads image data read by itself or image data input from an external device. Some have a function of rotating 90 degrees clockwise or counterclockwise and recording on paper (see, for example, Patent Document 1). In such a rotation process of image data, when the long and short directions of the graphic drawn by the image data are made coincident with the long and short directions of the paper for easy viewing, even if there is no paper set in the predetermined direction, the direction of 90 degrees This is useful, for example, when the recording process is continued with other sheets set with different colors.
画像処理装置における画像データの回転処理は、ページメモリを使用して、従来、以下のように行われることが一般的である。自身が読み取った画像データ、または外部装置から入力された画像データを、一旦バッファに蓄積していき、何ページ分かの画像データがバッファに蓄積された段階で、後の読み出しを考慮して計算されたページメモリの所定のアドレスに、バッファに蓄積された1ページ分の画像データを展開し、展開された画像データを読み出して記録部へ送出する。また、特許文献1に開示されている画像処理装置では、画像データが2値形式または多値形式のいずれであっても、従来の2値データ用の回転回路を使用して多値データの回転処理を行うことができる。
しかしながら、前述した画像処理装置は、回転処理前のデータを格納するエリアと、データの行方向と列方向とを入れ替えた転置処理後、すなわち回転処理後のデータを格納するエリアとを確保したメモリが必要であり、構成の大嵩化及び高コスト化が避けられないという問題があった。 However, the above-described image processing apparatus has a memory that secures an area for storing data before rotation processing and an area for storing data after rotation processing in which the row direction and column direction of data are switched, that is, data after rotation processing. However, there is a problem that an increase in structure and cost are unavoidable.
本発明は斯かる事情に鑑みてなされたものであり、画像データが2値形式または多値形式のいずれであっても、従来より小型及び低コストの構成で画像データの転置処理を行える画像処理方法及び画像処理装置を提供することを目的とする。 The present invention has been made in view of such circumstances, and image processing that can perform transposition processing of image data with a smaller and lower-cost configuration than conventional ones, regardless of whether the image data is in binary format or multi-value format. It is an object to provide a method and an image processing apparatus.
第1発明に係る画像処理方法は、メモリに2次元に展開された1ページ分の画像データを転置する画像処理方法において、前記画像データの各画素を構成するビット数に応じて行方向及び列方向が同数の画素を単位として画像データを読み出し、読み出した画像データに対して転置処理を実行し、転置処理後のデータを前記メモリの元のアドレスに書き込むことを特徴とする。 An image processing method according to a first aspect of the present invention is an image processing method in which image data for one page expanded two-dimensionally in a memory is transposed, in a row direction and a column according to the number of bits constituting each pixel of the image data. Image data is read in units of pixels having the same direction, transposition processing is executed on the read image data, and the data after transposition processing is written to the original address of the memory.
第1発明の画像処理方法にあっては、メモリに2次元に展開された1ページ分の画像データに対して、画像データの各画素を構成するビット数(階調数)に応じて決定される行方向及び列方向が同数の画素、つまりn×n(n:自然数)の方形の複数画素を単位として読み取って行方向と列方向とを入れ替えた転置処理を施し、転置処理後のデータをメモリのn×nの元のアドレス領域に書き込むという動作を、1ページ分の画像データに対して順次行う。よって、画像データが2値形式または多値形式のいずれであっても、メモリに転置処理前のデータと転置処理後のデータとを別々に格納することが不要であり、構成の小型化及び低コスト化を図れる。 In the image processing method according to the first aspect of the present invention, it is determined according to the number of bits (the number of gradations) constituting each pixel of image data for one page of image data expanded two-dimensionally in a memory. The row direction and the column direction are the same number of pixels, that is, a plurality of square pixels of n × n (n: natural number) are read as a unit, and the transposition process is performed by switching the row direction and the column direction, and the data after the transposition process is obtained. The operation of writing to the n × n original address area of the memory is sequentially performed on the image data for one page. Therefore, it is not necessary to store the data before the transposition process and the data after the transposition process separately in the memory regardless of whether the image data is in the binary format or the multi-value format. Cost can be reduced.
第2発明に係る画像処理装置は、1ページ分の画像データを転置する画像処理装置において、前記画像データを2次元に展開して蓄積するページメモリと、該ページメモリに蓄積されている画像データの各画素を構成するビット数に応じて行方向及び列方向が同画素数の部分画像データを蓄積するバッファと、前記部分画像データの該バッファヘの読み出し及び前記部分画像データの該バッファから前記ページメモリへの書き込みによって前記部分画像データの転置処理を実行する転置処理手段とを備えることを特徹とする。 An image processing apparatus according to a second aspect of the invention is an image processing apparatus for transposing image data for one page, a page memory for expanding and storing the image data in two dimensions, and image data stored in the page memory. A buffer for accumulating partial image data having the same number of pixels in the row direction and the column direction according to the number of bits constituting each pixel, and reading the partial image data into the buffer and reading the partial image data from the buffer to the page A transposition processing means for performing transposition processing of the partial image data by writing to a memory is provided.
第2発明の画像処理装置にあっては、1ページ分の画像データをページメモリに展開し、その画像データに対して、画像データの各画素を構成するビット数(階調数)に応じて決定される行方向及び列方向が同数の画素、つまりn×n(n:自然数)の方形の複数画素を単位としてページメモリからバッファに行方向に書き込んで列方向にバッファからページメモリに読み出すことで行方向と列方向とを入れ替えた転置処理を施し、転置処理後のデータをページメモリのn×nの元のアドレス領域に書き込むという動作を、1ページ分の画像データに対して順次行う。よって、画像データが2値形式または多値形式のいずれであっても、メモリに転置処理前のデータと転置処理後のデータとを別々に格納することが不要であるとともに、n×n画素の容量のバッファを設けておくだけで良く、構成の小型化及び低コスト化を図れる。 In the image processing apparatus according to the second aspect of the present invention, image data for one page is expanded in the page memory, and according to the number of bits (the number of gradations) constituting each pixel of the image data for the image data. Writing in the row direction from the page memory to the buffer in the row direction and reading from the buffer to the page memory in the column direction in units of a plurality of pixels having the same number of rows and columns determined, that is, n × n (n: natural number) square pixels Then, a transposition process in which the row direction and the column direction are exchanged is performed, and the operation of writing the data after the transposition process in the n × n original address area of the page memory is sequentially performed on the image data for one page. Therefore, regardless of whether the image data is in binary format or multi-value format, it is not necessary to store the data before transposition processing and the data after transposition processing separately in the memory, and n × n pixels. It is only necessary to provide a buffer having a capacity, and the configuration can be reduced in size and cost.
第3発明に係る画像処理装置は、第2発明において、前記ページメモリはSDRAMであることを特徴とする。 An image processing apparatus according to a third invention is characterized in that, in the second invention, the page memory is an SDRAM.
第3発明の画像処理装置にあっては、ページメモリとしてSDRAM(Synchronous Dynamic Random Access Memory)を使用する。よって、安価なメモリを用いて簡単な構成で画像データの転置処理を行える。 In the image processing apparatus of the third invention, an SDRAM (Synchronous Dynamic Random Access Memory) is used as a page memory. Therefore, transposition processing of image data can be performed with a simple configuration using an inexpensive memory.
本発明では、乗算などの複雑なアドレス計算を行う回路が不要であり、また、画像データが2値形式または多値形式のいずれであっても、メモリに転置処理前のデータと転置処理後のデータとを別々に格納することが不要であり、ページメモリの一面分で転置した画像データを生成するようにしたので、回路規模が小さい構成で、しかも必要最低限の容量のバッファを設けるだけで、画像データの転置処理を行うことができる。この結果、小規模に構成されても画像データの転置処理を行える画像処理装置を実現することができる。 In the present invention, a circuit for performing a complicated address calculation such as multiplication is unnecessary, and the data before transposition processing and the data after transposition processing are stored in the memory regardless of whether the image data is in binary format or multi-value format. Since it is not necessary to store data separately and image data that has been transposed on one side of the page memory is generated, a circuit with a small circuit size and a buffer with the minimum necessary capacity can be provided. The image data can be transposed. As a result, it is possible to realize an image processing apparatus that can perform transposition processing of image data even if it is configured on a small scale.
以下、本発明をその実施の形態を示す図面を参照して具体的に説明する。図1は、本発明の画像処理装置としてのファクシミリ複合装置20の構成を示すブロック図である。
Hereinafter, the present invention will be described in detail with reference to the drawings showing embodiments thereof. FIG. 1 is a block diagram showing a configuration of a facsimile
ファクシミリ複合装置20は、制御部1,読取部2,記録部3,表示部4,操作部5,ROM6,RAM7,コーデック部8,画像メモリ9,ページメモリ10,バッファ11,モデム12,NCU(Network Control Unit)13,PCインタフェース部14などを備えている。ファクシミリ複合装置20は、読取部2にて原稿を読み取って画像データを得る読取機能、読み取った画像データ、ファクシミリ通信により受信した画像データ、または外部接続されたPCから受信した画像データに応じた画像を記録部3にて記録する記録機能、及び、読み取った画像データまたは受信した画像データをファクシミリ送信する送信機能を併せ持っている。
The
制御部1は、具体的にはCPUで構成されており、バス15を介してファクシミリ複合装置20の上述したようなハードウェア各部と接続されていて、それらを制御すると共に、ROM6に格納された制御プログラムに従って、種々のソフトウェア的機能を実行する。読取部2は、例えばCCDイメージセンサを利用して原稿を読み取り、読み取った画像データを出力する。プラテンガラスに給送された原稿を光学ユニットが照射して走査し、原稿からの反射光をミラー,レンズなどを介してCCDイメージセンサに取り込んで、走査された原稿の画像データを読み取る。読み取られた画像データは、シェーディング処理などが施された後に出力される。
Specifically, the
記録部3は、電子写真方式のプリンタ装置であって、読取部2にて読み取った原稿の画像データ、ファクシミリ通信により受信した画像データ、外部のPCから送られてきた画像データなどに応じた画像を用紙にプリントアウトする。表示部4は、液晶表示装置またはCRTディスプレイ等の表示装置であり、ファクシミリ複合装置20の動作状態を表示したり、ユーザへ操作入力を促す画面を表示したり、送信すべく読み取った原稿の画像データ、他のファクシミリ装置またはPCから送信された画像データなどの表示を行う。
The
操作部5は、ファクシミリ複合装置20を操作するために必要な文字キー,テンキー,短縮デイヤルキー,ワンクッチダイヤルキー,各種のファンクションキーなどを備えている。操作部5は、ファンクションキーとして、ページメモリ10及びバッファ11を使用して画像データの回転処理を行うか否かを設定する回転処理設定キー5aを有する。なお、表示部4をタッチパネル方式とすることにより、操作部5の各種のキーの内の一部または全部を代用することも可能である。ROM6は、ファクシミリ複合装置20の動作に必要な種々のソフトウェアのプログラムを予め格納している。RAM7は、SRAMまたはフラッシュメモリ等で構成され、ソフトウェアの実行時に発生する一時的なデータを記憶する。コーデック部8は、画像データを符号化圧縮すると共に、符号化圧縮されている画像データを復号する。画像メモリ9は、原稿を読み取って符号化した画像データ、他のファクシミリ装置またはPCから受信して符号化した画像データなどを蓄積する。
The
ページメモリ10は、SDRAMにて構成されており、読取部2にて読み取られた1ページ分の画像データ、他のファクシミリ装置またはPCから受信された1ページ分の画像データを蓄積する。ページメモリ10に蓄積して展開された1ページ分の画像データは記録部3に読み出されて、その画像データに応じた画像が記録されるようになっている。バスラインが8ビット(ライン)である場合、バッファ11は、8×8のマトリクス状に構成された64個のフリップフロップを有しており、各フリップフロップは各画素のデータを保持する。
The
ページメモリ10とバッファ11との間では、画像データの各画素を構成するビット数に応じてページメモリ10のデータの書き込み/読み出しが行えるようになっており、必要に応じて、このデータの書き込み/読み出し制御によって、画像データの回転処理における転置画像データの生成が行われる。例えば、画像データの形式が1画素あたりのビット数が1ビット(2値)である場合には、ページメモリ10の8×8の64画素のデータを単位としてデータの書き込み/読み出しが行えるようになっており、画像データの形式が1画素あたりのビット数が2ビット(4値)である場合には、ページメモリ10の4×4の16画素のデータを単位としてデータの書き込み/読み出しが行えるようになっている。すなわち、バッファ11は、画像データの各画素を構成するビット数に応じてページメモリ10へのデータの書き込み/読み出しを行う画素数を調整することにより、画像データの形式が2値形式または4値形式であっても、データの書き込み/読み出しを行える。
Between the
モデム12は、バス15に接続されており、ファクシミリ通信が可能なファクシミリモデムから構成されている。また、モデム12は、同様にバス15に接続されたNCU13と直接的に接続されている。NCU13は、公衆電話回線網(PSTN:Public Switched Telephone Network)との回線L1の閉結及び開放の動作を行うハードウェアであり、必要に応じてモデム12をPSTNと接続する。そして、ファクシミリ複合装置20は、PSTNによって他のファクシミリ装置と接続されており、通常のファクシミリ通信が行えるようになっている。PCインタフェース部14は、LAN等の通信線L2を介して外部のPCに接続されており、PCとの間でデータのやりとりを行う。そして、外部のPCで作成・編集された各種の画像データが通信線L2を介してファクシミリ複合装置20(PCインタフェース部14)へ送信され、送信された画像データに応じた画像がファクシミリ複合装置20(記録部3)にて用紙にプリントアウトされるようになっている。
The
以下、このような構成をなすファクシミリ複合装置20における記録処理の動作について説明する。図2は、この記録処理の動作手順を示すフローチャート、図3〜図7は、画像データの時計回り方向への90度回転処理を説明するための図である。以下、説明を簡略化するため、画像データの形式が2値または4値のいずれかの形式であるものとして説明するが、画像データの形式が8値,16値など、画像データを構成する各画素のビット数は任意であってよい。
The operation of the recording process in the
読取部2にて読み取られた画像データ、または他のファクシミリ装置,PCから受信された画像データの1ページ分をページメモリ10に蓄積する(ステップS1)。制御部1は、回転処理設定キー5aの押下の有無に基づいて、回転処理が設定されているか否かを判断する(ステップS2)。回転処理が設定されていない場合(S2:NO)、ページメモリ10に書き込まれた順序と同じ順序で画像データをページメモリ10から記録部3へ読み出し(ステップS12)、読み出した画像データに応じた画像を記録部3にて用紙にプリントアウトする(ステップS13)。
One page of image data read by the
画像データの回転処理が設定されている場合(S2:YES)、ページメモリ10に蓄積されている画像データが2値形式であるか否かを判定する(ステップS3)。S3にて画像データが2値形式であると判定された場合(S3:YES)は、ページメモリ10に蓄積されている画像データ中の8×8の方形状の64個の画素を単位(ブロック)として、その1つのブロックのデータをページメモリ10から読み出してバッファ11に書き込む(ステップS4)。この場合、バッファ11の行方向にデータを書き込んでいく。この書き込みが終了した後、バッファ11に書き込まれているデータをその列方向から読み出し、読み出したデータをページメモリ10の元の8×8のメモリ領域に書き込む(ステップS5)。このようにして、回転処理のための中間データとしての転置画像データが生成される。
If image data rotation processing has been set (S2: YES), it is determined whether the image data stored in the
制御部1は、ページメモリ10に蓄積されている1ページにわたって、画像データが2値形式の場合は8×8画素を単位とする転置画像データの生成が完了したか否かを判断し(ステップS6)、完了していない場合には(S6:NO)、動作がS4に戻って、次のブロックにおける転置画像データを生成する。
The
一方、S3にて画像データが2値形式でないと判定された場合、すなわち画像データが4値形式であると判定された場合(S3:NO)は、ページメモリ10に蓄積されている画像データ中の4×4の方形状の16個の画素を単位(ブロック)として、その1つのブロックのデータをページメモリ10から読み出してバッファ11に書き込む(ステップS7)。この場合、バッファ11の行方向にデータを書き込んでいく。この書き込みが終了した後、バッファ11に書き込まれているデータをその列方向から読み出し、読み出したデータをページメモリ10の元の4×4のメモリ領域に書き込む(ステップS8)。このようにして、回転処理のための中間データとしての転置画像データが生成される。
On the other hand, if it is determined in S3 that the image data is not in binary format, that is, if it is determined that the image data is in quaternary format (S3: NO), the image data stored in the
制御部1は、ページメモリ10に蓄積されている1ページにわたって、画像データが4値形式の場合は4×4画素を単位とする転置画像データの生成が完了したか否かを判断し(ステップS9)、完了していない場合には(S9:NO)、動作がS7に戻って、次のブロックにおける転置画像データを生成する。
The
そして、1ページにわたって転置画像データ生成が完了した場合(S6:YES,S9:YES)には、読出アドレスを制御して、転置画像データをページメモリ10から記録部3へ読み出し(ステップS10)、読み出した転置画像データに応じた回転画像を記録部3にて用紙にプリントアウトする(ステップS11)。
When the generation of the transposed image data is completed for one page (S6: YES, S9: YES), the read address is controlled to read the transposed image data from the
図3は、画像データが2値形式である場合におけるページメモリ10での最初のデータ蓄積状態を示しており、1ページ分の画像データは、行方向3個、列方向2個ずつの計6個のブロックに分けられる。図4は、バッファ11との間でのデータの読み出し/書き込みによって得られた転置画像データを示す。画像データが2値形式である場合のページメモリ10からの各ラインの読み出しは、図4の左端に記載した順序で行われ、2つのブロックで交互に1ラインずつ読み出される。
FIG. 3 shows the initial data storage state in the
図5は、画像データが4値形式である場合におけるページメモリ10での最初のデータ蓄積状態を示しており、1ページ分の画像データは、行方向3個、列方向2個ずつの計6個のブロックに分けられる。図6は、バッファ11との間でのデータの読み出し/書き込みによって得られた転置画像データを示す。画像データが4値形式である場合のページメモリ10からの各ラインの読み出しは、図6の左端に記載した順序で行われ、2つのブロックで交互に1ラインずつ読み出される。画像データが2値形式である場合でも、画像データが4値形式である場合でも、上述したような読出アドレスの制御によって、図7に示すような時計回りに90度回転した画像が得られる。
FIG. 5 shows the initial data accumulation state in the
次に、SDRAMを使用するページメモリ10のアドレス制御について説明する。SDRAMは、内部でパイプライン処理されるために高速処理が可能である。図8は、SDRAMにおけるデータの書き込み/読み出し動作を示すタイミングチャートである。SDRAMは4つのバンク(Bank0,1,2,3)から構成されており、制御部1は、クロック信号(CLK信号)の立ち上がりエッジに同期して、ロウアドレスストローブ信号(/RAS信号)、コラムアドレスストローブ信号(/CAS信号)、及びライトイネーブル信号(/WE信号)をページメモリ(SDRAM)10へ出力することにより、SDRAMのメモリ空間の行番号及び列番号で指定されるメモリアドレスにおけるデータの書き込み/読み出し動作を制御する。なお、信号名の先頭に「/」が付加されている信号はローアクティブ(ローレベルである場合に有意)であることを意味している。
Next, address control of the
制御部1が、/RAS信号=L(ローレベル),/CAS信号=H(ハイレベル),及び/WE信号=HをSDRAMへ出力した場合は、SDRAMは、バンクアクティブであると判断して、SDRAMにおけるバンク0,1,2,3のいずれかのバンクと、当該バンクにおけるロウアドレス(Addr0R ,1R ,2R ,3R )とを決定する。
When the
また、制御部1が、/RAS信号=H,/CAS信号=L,及び/WE信号=LをSDRAMへ出力した場合は、SDRAMは、ライト/オートプリチャージであると判断して、SDRAMにおけるバンク0,1,2,3のいずれかのバンクと、当該バンクにおけるコラムアドレス(Addr0C ,1C ,2C ,3C)とを決定し、当該バンクにおけるコラムアドレス、及び、前述したバンクアクティブによって決定された、当該バンクにおけるロウアドレスにData(D0 ,D1 ,D2 ,D3)を書き込む。
When the
一方、制御部1が、/RAS信号=H,/CAS信号=L,及び/WE信号=HをSDRAMへ出力した場合は、SDRAMは、リード/オートプリチャージであると判断して、SDRAMにおけるバンク0,1,2,3のいずれかのバンクと、当該バンクにおけるコラムアドレス(Addr0C ,1C ,2C ,3C )とを決定し、当該バンクにおけるコラムアドレス、及び、前述したバンクアクティブによって決定された、当該バンクにおけるロウアドレスに記憶されているData(D0 ,D1 ,D2 ,D3)を読み出す。なお、SDRAMは、一般的に動作の実行に遅延が発生するCASレイテンシが存在する。図8においては、CASレイテンシが「2」、すなわち、2クロック遅延した時刻に、Data(D0 ,D1 ,D2 ,D3 )を読み出す場合を示した。
On the other hand, when the
このようにして、0〜4の4個のバンクを順次切り換えながら4ワード(1ワードは8ビット)を一組としてデータの書き込みと読み出しとを連続して行う。なお、/RAS信号=H、/CAS信号=H、及び/WE信号=HをSDRAMへ出力した場合は、SDRAMは何の動作も行わない(ノーオペレーションNOP(No OPeration))。
In this manner, data writing and reading are continuously performed with 4 words (1 word is 8 bits) as a set while sequentially switching the four
まず、転置画像データを生成する場合について説明する。転置画像データを生成する際には、横方向(主走査方向)ではなく縦方向(副走査方向)にデータの書き込み/読み出しを行う。図9(a),(b),図10(c),(d)はそれぞれ、kを整数とした場合に、1ラインが4kワード,(4k+1)ワード,(4k+2)ワード,(4k+3)ワードで構成される場合のアドレスとバンクとを示す図である。1ラインが(4k+1)ワードまたは(4k+3)ワード、すなわち奇数ワードで構成される場合には、1列目のアクセスバンクがそれぞれ0,1,2,3,…または0,3,2,1,…となり、4ワードの連続したアクセスが可能である。これに対して、1ラインが4kワードまたは(4k+2)ワード、すなわち偶数ワードで構成される場合には、1列目のアクセスバンクがそれぞれ0,0,0,0,…または0,2,0,2,…となり、4ワードの連続したアクセスが行えない。 First, a case where transposed image data is generated will be described. When generating transposed image data, data is written / read in the vertical direction (sub-scanning direction) instead of in the horizontal direction (main scanning direction). 9A, 9B, 10C, and 10D, when k is an integer, one line is 4k words, (4k + 1) words, (4k + 2) words, and (4k + 3) words. It is a figure which shows the address and bank in the case of comprising. When one line is composed of (4k + 1) words or (4k + 3) words, that is, odd words, the access banks in the first column are 0, 1, 2, 3,. ..., and continuous access of 4 words is possible. On the other hand, when one line is composed of 4k words or (4k + 2) words, that is, even words, the access bank in the first column is 0, 0, 0, 0,. , 2,..., 4 words cannot be accessed continuously.
そこで、1ラインが偶数ワード(4kワード、(4k+2)ワード)で構成される場合には、各ラインの最後に実データが存在しない1個のアドレスを設ける。つまり、各ラインを奇数ワードにするために、1ワードのダミーデータを最後尾に付加している。このようにした場合のアドレスとバンクとを、図11(a),(b)にそれぞれ示す。これによって、1列目のアクセスバンクがそれぞれ0,1,2,3,…または0,3,2,1,…の順序で周回するようになり、4ワードの連続したアクセスが可能となる。 Therefore, when one line is composed of even-numbered words (4k words, (4k + 2) words), one address at which no actual data exists is provided at the end of each line. That is, in order to make each line an odd word, dummy data of one word is added at the end. Addresses and banks in such a case are shown in FIGS. 11 (a) and 11 (b), respectively. As a result, the access banks in the first column circulate in the order of 0, 1, 2, 3,... Or 0, 3, 2, 1,.
次に、生成した転置画像データを回転画像データとしてページメモリ10から読み出す場合について説明する。先ず、画像データが2値形式である場合について説明する。図12は、画像データが2値形式である場合の各ブロックの各ラインにおけるバンクを示す図である。8×8画素を単位として転置画像データを生成しているため、図12において、1ブロックの1ライン1ワード,2ブロックの1ライン1ワード,3ブロックの1ライン1ワード,…,最終ブロックの1ライン1ワード,1ブロックの2ライン1ワード,2ブロックの2ライン1ワード,…,最終ブロックの2ライン1ワード,…,1ブロックの8ライン1ワード,…,最終ブロックの8ライン1ワード,1ブロックの1ライン2ワード,…,最終ブロックの8ライン最終ワードの順でアクセスすることになる。このとき、アクセスするバンクは、各ブロックの1ライン1ワードで0,0,0,…,0、各ブロックの2ライン1ワードで1,1,1,…,1となり、同じバンクを周回することになるので、連続したアクセスが行えない。
Next, a case where the generated transposed image data is read from the
そこで、各ブロックでの8ライン(最終ライン)目の最後に実データが存在しない1個のアドレスを設ける。つまり、8ライン(最終ライン)目で、1ワードのダミーデータを最後尾に付加している。このようにした場合のアドレスとバンクとを図13に示す。図13は、1ラインが4kワードで構成される場合の例を示しており、各ブロックの8ライン目の最後にダミーアドレスを設けている。1ラインが4kワードで構成されているので、前述したように各ラインの最後にダミーアドレスを設けており、8ライン目では2個のダミーアドレスが設けられることになる。なお、1ラインが(4k+1)ワード,(4k+2)ワード,(4k+3)ワードで構成される場合にも、図示省略するが、同様に各ブロックの8ライン目の最後に1つのダミーアドレスを付加する。 Therefore, one address where no actual data exists is provided at the end of the eighth line (final line) in each block. That is, dummy data of one word is added at the end of the eighth line (final line). FIG. 13 shows addresses and banks in such a case. FIG. 13 shows an example in which one line is composed of 4k words, and a dummy address is provided at the end of the eighth line of each block. Since one line is composed of 4k words, a dummy address is provided at the end of each line as described above, and two dummy addresses are provided in the eighth line. Even when one line is composed of (4k + 1) words, (4k + 2) words, and (4k + 3) words, a dummy address is similarly added to the end of the eighth line of each block. .
このようにダミーアドレスを8ライン(最終ライン)目に設けることにより、図14に示す如く、1ブロックの1ライン1ワード,2ブロックの1ライン1ワード,3ブロックの1ライン1ワード,…の順にアクセスバンクが0,1,2,…となり、異なるバンクで周回するようになり、4ワードの連続したアクセスが可能となる。
By providing dummy addresses on the 8th line (final line) in this way, as shown in FIG. 14, 1
次に、画像データが4値形式である場合について説明する。図15は、画像データが4値形式である場合の各ブロックの各ラインにおけるバンクを示す図である。4×4画素を単位として転置画像データを生成しているため、図15において、1ブロックの1ライン1ワード,2ブロックの1ライン1ワード,3ブロックの1ライン1ワード,…,最終ブロックの1ライン1ワード,1ブロックの2ライン1ワード,2ブロックの2ライン1ワード,…,最終ブロックの2ライン1ワード,…,1ブロックの4ライン1ワード,…,最終ブロックの4ライン1ワード,1ブロックの1ライン2ワード,…,最終ブロックの4ライン最終ワードの順でアクセスすることになる。このとき、アクセスするバンクは、各ブロックの1ライン1ワードで0,0,0,…,0、各ブロックの2ライン1ワードで1,1,1,…,1となり、同じバンクを周回することになるので、連続したアクセスが行えない。
Next, a case where the image data is in a quaternary format will be described. FIG. 15 is a diagram showing a bank in each line of each block when the image data is in a quaternary format. Since transposed image data is generated in units of 4 × 4 pixels, in FIG. 15, 1
そこで、各ブロックでの4ライン(最終ライン)目の最後に実データが存在しない1個のアドレスを設ける。つまり、4ライン(最終ライン)目で、1ワードのダミーデータを最後尾に付加している。このようにした場合のアドレスとバンクとを図16に示す。図16は、1ラインが4kワードで構成される場合の例を示しており、各ブロックの4ライン目の最後にダミーアドレスを設けている。1ラインが4kワードで構成されているので、前述したように各ラインの最後にダミーアドレスを設けており、4ライン目では2個のダミーアドレスが設けられることになる。なお、1ラインが(4k+1)ワード,(4k+2)ワード,(4k+3)ワードで構成される場合にも、図示省略するが、同様に各ブロックの4ライン目の最後に1つのダミーアドレスを付加する。 Therefore, one address where no actual data exists is provided at the end of the fourth line (final line) in each block. That is, dummy data of one word is added at the end of the fourth line (final line). FIG. 16 shows addresses and banks in such a case. FIG. 16 shows an example in which one line is composed of 4k words, and a dummy address is provided at the end of the fourth line of each block. Since one line is composed of 4k words, a dummy address is provided at the end of each line as described above, and two dummy addresses are provided in the fourth line. Even when one line is composed of (4k + 1) words, (4k + 2) words, and (4k + 3) words, although not shown, similarly, one dummy address is added to the end of the fourth line of each block. .
このようにダミーアドレスを4ライン(最終ライン)目に設けることにより、図17に示す如く、1ブロックの1ライン1ワード,2ブロックの1ライン1ワード,3ブロックの1ライン1ワード,…の順にアクセスバンクが0,1,2,…となり、異なるバンクで周回するようになり、4ワードの連続したアクセスが可能となる。
By providing dummy addresses on the 4th line (final line) in this way, as shown in FIG. 17, 1
なお、上述した実施の形態では、バスラインが8ラインであって、バッファ11が8×8のマトリクス状に構成された64個のフリップフロップを有している場合を示したが、これは一例であり、例えばバスラインが16ラインである場合には、16×16のマトリクス状に構成された256個のフリップフロップを備えるバッファを用いてもよく、正方の画素ブロックを単位とするのであればnの値は任意であってよい。そして、SDRAMからなるページメモリ10において連続したバンクアクセスを行えるように、各ブロックの最終ラインの最後にダミーアドレスを付加すればよい。
In the above-described embodiment, the bus line has 8 lines and the
さらに、ファクシミリ複合装置を例として説明したが、ファクシミリ装置、ディジタル複写機、プリンタなど、取得した画像データを回転して出力する全ての装置に本発明を適用できることは勿論である。 Further, although the facsimile complex apparatus has been described as an example, it is needless to say that the present invention can be applied to all apparatuses such as a facsimile apparatus, a digital copying machine, and a printer that rotate and output acquired image data.
1 制御部
2 読取部
3 記録部
5 操作部
5a 回転処理設定キー
6 ROM
7 RAM
10 ページメモリ
11 バッファ
DESCRIPTION OF
7 RAM
10
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003415665A JP2005176125A (en) | 2003-12-12 | 2003-12-12 | Image processing method and image processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003415665A JP2005176125A (en) | 2003-12-12 | 2003-12-12 | Image processing method and image processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005176125A true JP2005176125A (en) | 2005-06-30 |
Family
ID=34735081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003415665A Pending JP2005176125A (en) | 2003-12-12 | 2003-12-12 | Image processing method and image processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005176125A (en) |
-
2003
- 2003-12-12 JP JP2003415665A patent/JP2005176125A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH06275069A (en) | Serial memory | |
JP2002259208A (en) | Device and method for controlling memory | |
JP4165391B2 (en) | Image processing method and image processing apparatus | |
JP4201031B2 (en) | Image processing device | |
JP2005176125A (en) | Image processing method and image processor | |
JPH11306343A (en) | Rotational processing device for two-dimensional data | |
JP2005174141A (en) | Memory address management method and image processor | |
JP2005174142A (en) | Image processing device | |
US5712714A (en) | Image processing apparatus | |
JP4158695B2 (en) | Image processing method and image processing apparatus | |
JP2008136125A (en) | Image processing apparatus | |
JP3167684B2 (en) | Context generation circuit and method for small screen | |
JP2005176127A (en) | Image processing method and image processor | |
JP2005176129A (en) | Image processing method and image processor | |
JP4172410B2 (en) | Image processing method and image processing apparatus | |
JP2005176130A (en) | Image recording method and image recording apparatus | |
JP4144544B2 (en) | Image processing method and image processing apparatus | |
JP4144548B2 (en) | Image processing device | |
JP2008035035A (en) | Image processing apparatus | |
US20050213163A1 (en) | Image processing device and image processing method | |
JP2005174139A (en) | Image processing method and device | |
JP2005286542A (en) | Image processing apparatus | |
JP2005276296A (en) | Memory refreshing method | |
JP3346916B2 (en) | Image rotation device | |
JP4390822B2 (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061017 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080410 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080415 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080805 |