JP2006092506A - Image processor - Google Patents
Image processor Download PDFInfo
- Publication number
- JP2006092506A JP2006092506A JP2004310759A JP2004310759A JP2006092506A JP 2006092506 A JP2006092506 A JP 2006092506A JP 2004310759 A JP2004310759 A JP 2004310759A JP 2004310759 A JP2004310759 A JP 2004310759A JP 2006092506 A JP2006092506 A JP 2006092506A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- unit
- image
- lines
- line
- 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
- 238000012545 processing Methods 0.000 claims abstract description 224
- 238000012546 transfer Methods 0.000 claims abstract description 137
- 238000012937 correction Methods 0.000 claims abstract description 58
- 238000000034 method Methods 0.000 claims description 26
- 230000008569 process Effects 0.000 claims description 22
- 238000001444 catalytic combustion detection Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 230000008859 change Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000006866 deterioration Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Images
Landscapes
- Image Input (AREA)
- Image Processing (AREA)
Abstract
Description
本発明は、画像処理装置に関する。 The present invention relates to an image processing apparatus.
カラー画像処理装置としては、例えば、コピー、スキャナ、プリンタ、ファクシミリおよびこれらの複合機が従来から知られている。このような装置は、スキャン機能を利用して、モノクロの画像データ、あるいはRGBまたはYMCKなどの方式からなるカラーの画像データを生成する。 As a color image processing apparatus, for example, a copy, a scanner, a printer, a facsimile, and a complex machine of these are conventionally known. Such an apparatus uses the scan function to generate monochrome image data or color image data having a method such as RGB or YMCK.
従来の画像処理装置としては、例えば特許文献1に記載されたものがある。同文献に記載された画像ファイリング装置を図9に示す。この画像ファイリング装置において、ディスク装置50には複数の画像データがタイル分割された状態で格納されている。CPU32は、インタフェース44を介してディスク装置50より画像データを1タイルずつ読み出す。DMAコントローラ40は、読み出された画像データをタイル毎に例えば90°単位で回転またはミラー反転させてタイルラインバッファに書き込んだ後、読み出す。CPU32は、読み出された画像データをインタフェース46を介して製版処理ワークステーション52に転送する。
As a conventional image processing apparatus, for example, there is one described in
特許文献1によれば、この画像ファイリング装置によれば、ディスク装置より読み出した画像データに画像変換を施す際、製版処理ワークステーション内のCPUの処理負担を軽減させ、且つ、製版処理ワークステーション内のメインメモリの利用効率を向上できる旨記載されている。
According to
また、従来の画像処理装置としては、特許文献2に記載されたものもある。同文献に記載されたカラー画像処理装置を図10に示す。このカラー画像処理装置は、R信号処理部と、G信号処理部と、B信号処理部と、ライン補正部34とを備えている。
Further, as a conventional image processing apparatus, there is one described in
R信号処理部は、CCD(R)センサ31a、アナログフロントエンド回路32a、A/D変換器33aを有する。G信号処理部は、CCD(G)センサ31b、アナログフロントエンド回路32b、A/D変換器33bを有する。B信号処理部は、CCD(B)センサ31c、アナログフロントエンド回路32c、A/D変換器33cを有する。
The R signal processing unit includes a CCD (R) sensor 31a, an analog
上記のカラー画像処理装置には、R、G、Bのそれぞれの色について、CCDで構成されるラインイメージセンサを副走査方向に少しずつずらして並列に設けられている。この種のカラー画像処理装置は、各色のラインイメージセンサが並列に設けられているので、物理的に原稿上の同一ラインをそれぞれの色が同時に読み取ることが困難である。そこで、従来より、画像データを遅延させるライン補正メモリを設け、拡大、縮小率に応じた遅延量をおいて、ライン補正メモリより画像データを取り出し、原稿上の同じラインを読んだR、G、Bの画像データを揃えるようにしている。 In the above-described color image processing apparatus, for each of R, G, and B colors, line image sensors composed of CCDs are provided in parallel while being slightly shifted in the sub-scanning direction. Since this type of color image processing apparatus is provided with line image sensors for each color in parallel, it is difficult for each color to simultaneously read the same line on the document at the same time. Therefore, conventionally, a line correction memory for delaying image data is provided, the image data is taken out from the line correction memory with a delay amount corresponding to the enlargement / reduction ratio, and the same line on the original is read. The image data of B is aligned.
特許文献2によれば、このカラー画像処理装置は、所定の計算式に基づいて、遅延量を制御するので、回路規模を拡大させることなく、低コストで所定の変倍率を達成できるカラー画像処理装置を提供する旨記載されている。
しかしながら、上記文献記載の従来技術は、以下の点で改善の余地を有していた。 However, the prior art described in the above literature has room for improvement in the following points.
特許文献1の画像ファイリング装置によれば、多値(8ビット)のカラー画像データのミラー処理(左右中心線を基準として左右対称に変換する処理)または回転処理を行った場合、RGBの各ラインの配列順序が乱れる。また、カラー画像データを読み取る際、RGBの各ラインにラインギャップが発生する。しかし、特許文献1には、RGBの各ラインの配列順序の乱れまたはラインギャップを抑制する手段は記載されていない。
According to the image filing device of
特許文献2のカラー画像処理装置によれば、画像データのミラー処理または回転処理を行うことができない。仮に、制御部のCPUが、読み込んだソフトウェアに基づいて動作することにより、ライン補正済の画像データのミラー処理または回転処理を行うとすると、ソフトウェアに基づいてミラー処理または回転処理を実現しているので、時間がかかり過ぎ、CPUの負担が増大する。
According to the color image processing apparatus of
本発明は上記事情に鑑みてなされたものであり、その目的とするところは、画像データのミラー処理または回転処理とライン補正とを迅速に行い得る画像処理装置を提供することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image processing apparatus capable of quickly performing mirror processing or rotation processing of image data and line correction.
本発明によれば、複数のラインを含む画像データを記憶する第一の記憶手段と、複数のラインを含む画像データを記憶する第二の記憶手段と、画像データを転送する際の転送単位に含まれるライン数についての指示を受け付ける第一の受付部と、画像データに含まれるラインギャップ数についての指示を受け付ける第二の受付部と、第一の記憶手段から画像データを取得し、第一の受付部から上記ライン数を取得し、画像データを、画像データの一画素に含まれるビット数からなるスワップ単位ごとにスワップし、画像データに対して転送バス幅に応じたビット数ごとに設定されるアドレスを上記ライン数からなる転送単位内でデクリメントしながら、第二の記憶手段に転送する転送制御手段と、第二の記憶手段に記憶されている画像データを取得し、第一の受付部からライン数を取得し、第二の受付部からラインギャップ数を取得し、ライン数およびラインギャップ数に基づいて画像データをラインからなる領域内で再配列するライン補正手段と、を備える画像処理装置が提供される。 According to the present invention, a first storage unit that stores image data including a plurality of lines, a second storage unit that stores image data including a plurality of lines, and a transfer unit for transferring image data A first receiving unit that receives an instruction about the number of lines included; a second receiving unit that receives an instruction about the number of line gaps included in the image data; and The number of lines is acquired from the reception unit, and the image data is swapped for each swap unit including the number of bits included in one pixel of the image data, and set for each bit number corresponding to the transfer bus width for the image data. Transfer control means for transferring to the second storage means while decrementing the address to be transferred within the transfer unit consisting of the number of lines, and image data stored in the second storage means A line for acquiring, acquiring the number of lines from the first receiving unit, acquiring the number of line gaps from the second receiving unit, and rearranging the image data within a region composed of lines based on the number of lines and the number of line gaps An image processing apparatus including a correction unit is provided.
この構成によれば、第一の記憶手段に記憶された画像データを、画像データの一画素に含まれるビット数からなるスワップ単位ごとにスワップしつつ、画像データに対して転送バス幅に応じたビット数ごとに設定されるアドレスを、受付部により受け付けたライン数からなる転送単位内でデクリメントしながら、第二の記憶手段に転送することができるので、第二の記憶部には反転処理または回転処理された画像データが記憶される。 According to this configuration, the image data stored in the first storage unit is swapped for each swap unit including the number of bits included in one pixel of the image data, and the image data according to the transfer bus width. Since the address set for each bit number can be transferred to the second storage means while being decremented within the transfer unit consisting of the number of lines received by the receiving unit, the second storing unit can perform an inversion process or The rotated image data is stored.
また、この構成によれば、第二の記憶手段に記憶されている画像データを、再配列手段によりラインからなる領域内で再配列することができるので、反転処理または回転処理されることにより生じた画像データのラインの配列の乱れおよびラインギャップを補正することができる。このため、この構成によれば、画像データのミラー処理または回転処理とライン補正とを迅速に行い得る。 Further, according to this configuration, the image data stored in the second storage unit can be rearranged within the area formed by the lines by the rearrangement unit, and thus is generated by the inversion process or the rotation process. It is possible to correct the disturbance of the line arrangement of the image data and the line gap. For this reason, according to this configuration, mirror processing or rotation processing of image data and line correction can be performed quickly.
本発明によれば、画像データのミラー処理または回転処理とライン補正とを迅速に行い得る画像処理装置が提供される。 According to the present invention, there is provided an image processing apparatus capable of quickly performing mirror processing or rotation processing of image data and line correction.
また、本発明に係る画像処理装置において、上記転送制御手段は、第一の記憶手段から読み出す画像データの読出アドレスを生成する読出アドレス生成手段と、読出アドレス生成手段から読出アドレスを取得し、読出アドレスに基づいて第一の記憶手段から画像データを読み出すデータ読出手段と、画像データの一画素に含まれるビット数からなるスワップ単位ごとに読み出された画像データをスワップするスワップ手段と、第二の記憶手段に書き込む画像データの書込アドレスを生成する書込アドレス生成手段と、書込アドレス生成手段から書込アドレスを取得し、書込アドレスに基づいて第二の記憶手段にスワップされた画像データを書き込むデータ書込手段と、を含み、読出アドレス生成手段または書込アドレス生成手段の一方は、第一の受付部から上記ライン数を取得し、前記画像データのアドレスを前記ライン数からなる前記転送単位内でデクリメントしたアドレスを生成するように構成することができる。 In the image processing apparatus according to the present invention, the transfer control means obtains a read address from the read address generation means, a read address generation means for generating a read address of the image data read from the first storage means, and reads out the read address. Data reading means for reading image data from the first storage means based on the address; swap means for swapping image data read for each swap unit comprising the number of bits included in one pixel of the image data; Write address generation means for generating a write address of image data to be written to the storage means, and an image obtained by acquiring the write address from the write address generation means and swapped to the second storage means based on the write address Data writing means for writing data, and one of the read address generating means or the write address generating means Can be the receiving unit acquires the number of the line from constituting an address of the image data so as to generate an address decrement in the transfer unit composed of the number of lines.
この構成によれば、読出アドレス生成手段または書込アドレス生成手段の一方は、第一の受付部から上記ライン数を取得し、画像データのアドレスを上記ライン数からなる転送単位内でデクリメントしたアドレスを生成するため、CPUにかける負担を抑制しつつ、画像データを反転処理または回転処理することができる。 According to this configuration, one of the read address generation unit or the write address generation unit acquires the number of lines from the first receiving unit, and decrements the address of the image data within the transfer unit including the number of lines. Therefore, the image data can be reversed or rotated while suppressing the load on the CPU.
本発明に係る画像処理装置において、上記画像データがカラー画像データまたはモノクロ画像データのいずれであるかを判断する画像タイプ判断部をさらに含み、上記スワップ手段は、画像タイプ判断部が前記画像データをカラー画像データであると判断する場合には、8ビットからなるスワップ単位ごとに画像データをスワップし、画像タイプ判断部が画像データをモノクロ画像データであると判断する場合には、1ビットからなるスワップ単位ごとに画像データをスワップするように構成することができる。 The image processing apparatus according to the present invention further includes an image type determination unit that determines whether the image data is color image data or monochrome image data, and the swap means includes the image type determination unit that stores the image data. When it is determined that the image data is color image data, the image data is swapped for each 8-bit swap unit. When the image type determination unit determines that the image data is monochrome image data, the image data is 1 bit. The image data can be swapped for each swap unit.
この構成によれば、画像タイプ判断部の判断に基づいて、カラー画像データの場合には8ビットからなるスワップ単位ごとに画像データをスワップし、モノクロ画像データの場合には1ビットからなるスワップ単位ごとに画像データをスワップできる。このため、画像タイプに応じた方式で画像データを転送することができる。その結果、簡単な構成により、カラー画像データおよびモノクロ画像データの双方のいずれかを選択して反転処理または回転処理することができる。 According to this configuration, based on the determination of the image type determination unit, the image data is swapped for each 8-bit swap unit in the case of color image data, and the 1-bit swap unit in the case of monochrome image data. Each image data can be swapped. For this reason, it is possible to transfer the image data by a method according to the image type. As a result, with either a simple configuration, either color image data or monochrome image data can be selected and inverted or rotated.
本発明に係る画像処理装置において、上記読出アドレス生成手段は、第一の記憶手段から読み出す画像データのアドレスを16ビットごとに生成するように構成することができる。 In the image processing apparatus according to the present invention, the read address generation means can be configured to generate an address of image data read from the first storage means every 16 bits.
この構成によれば、FAXなどの画像処理装置においてよく用いられる16ビットの幅からなるバスを有効に用いて、画像データを高速に反転処理または回転処理することができる。 According to this configuration, it is possible to invert or rotate image data at high speed by effectively using a bus having a 16-bit width often used in an image processing apparatus such as a FAX.
本発明に係る画像処理装置において、上記ライン補正手段は、第一の受付部から上記ライン数を取得し、上記ライン数からなる領域内で画像データのラインの配列を逆転させるライン配列逆転手段と、第二の受付部からラインギャップ数を取得し、個々のラインに対応するラインギャップ数だけ個々のラインの配列を一方向に移動させるラインギャップ補正手段とを含んでもよい。 In the image processing apparatus according to the present invention, the line correction unit obtains the number of lines from a first receiving unit, and a line arrangement reversing unit that reverses the arrangement of the lines of the image data within an area composed of the number of lines. Line gap correction means for obtaining the number of line gaps from the second receiving unit and moving the arrangement of the individual lines in one direction by the number of line gaps corresponding to the individual lines may be included.
この構成によれば、第一の受付部から取得した上記ライン数のラインからなる領域内で、ラインの配列を逆転させるライン配列逆転手段により、色相の配列が逆転した画像データの色相の配列を再逆転してもとに戻すことができる。また、個々のラインに対応するラインギャップ数だけ個々のラインの配列を一方向に移動させるラインギャップ補正手段により、画像データが有するラインギャップを解消することができる。 According to this configuration, the hue arrangement of the image data in which the hue arrangement is reversed by the line arrangement reversing means for reversing the arrangement of the lines in the region composed of the number of lines acquired from the first receiving unit. Even if it is reversed again, it can be restored. Further, the line gap of the image data can be eliminated by the line gap correction means that moves the arrangement of the individual lines in one direction by the number of line gaps corresponding to the individual lines.
本発明に係る画像処理装置において、上記画像データは、複数の互いに異なる色相のラインからなるブロックを複数本含む画像データであり、上記ライン補正手段は、転送制御手段により、ブロック内における色相の配置が逆転してなる画像データのラインを再配列し、ブロック内における色相の配置を再逆転させるように構成されていてもよい。 In the image processing apparatus according to the present invention, the image data is image data including a plurality of blocks composed of a plurality of lines having different hues, and the line correction unit is configured to arrange the hues in the blocks by the transfer control unit. May be configured to rearrange the lines of image data formed by reversing the image data and to reverse the color arrangement in the block.
この構成によれば、画像データを、カラー画像データの一画素に含まれるビット数からなるスワップ単位ごとにスワップしつつ、受付部により受け付けたライン数からなる転送単位内でデクリメントすることができる。このため、転送の際にRGBなどの各色ラインの配列が乱れるが、ライン補正を行う際に各色ラインの配列を修正し得る。その結果、画質の低下を抑制しつつ、カラー画像データのミラー処理または回転処理とライン補正とを迅速に行い得る。 According to this configuration, the image data can be decremented within a transfer unit consisting of the number of lines received by the receiving unit while being swapped for each swap unit consisting of the number of bits included in one pixel of the color image data. For this reason, the arrangement of each color line such as RGB is disturbed during transfer, but the arrangement of each color line can be corrected when performing line correction. As a result, it is possible to quickly perform color image mirror processing or rotation processing and line correction while suppressing deterioration in image quality.
本発明に係る画像処理装置において、上記第一の受付部は、画像データのミラー処理または回転処理のいずれかを選択することをオペレータに提示し、オペレータからミラー処理を選択する旨の指示を受け付けると、転送単位を3の倍数からなる本数のラインに設定し、オペレータから回転処理を選択する旨の指示を受け付けると、転送単位を画像データの1ページに設定するように構成することができる。 In the image processing apparatus according to the present invention, the first receiving unit presents to the operator to select either mirror processing or rotation processing of the image data, and receives an instruction from the operator to select the mirror processing. When the transfer unit is set to a line of multiples of 3 and an instruction to select the rotation process is received from the operator, the transfer unit can be set to one page of image data.
または、本発明に係る画像処理装置において、上記第一の受付部は、画像データのミラー処理または回転処理のいずれかを選択することをオペレータに提示し、オペレータからミラー処理を選択する旨の指示を受け付けると、転送単位を1ラインに設定し、オペレータから回転処理を選択する旨の指示を受け付けると、転送単位を画像データの1ページに設定するように構成することができる。 Alternatively, in the image processing apparatus according to the present invention, the first receiving unit presents to the operator to select either mirror processing or rotation processing of the image data, and instructs the operator to select the mirror processing. Can be configured such that the transfer unit is set to one line, and the transfer unit is set to one page of image data when an instruction to select rotation processing is received from the operator.
または、本発明に係る画像処理装置において、上記第一の受付部は、画像データのミラー処理または回転処理のいずれかを選択することをオペレータに提示し、オペレータからミラー処理を選択する旨の指示を受け付けると、転送単位を画像データの1ページに設定し、オペレータから回転処理を選択する旨の指示を受け付けると、転送単位を画像データの1ページに設定するように構成することができる。 Alternatively, in the image processing apparatus according to the present invention, the first receiving unit presents to the operator to select either mirror processing or rotation processing of the image data, and instructs the operator to select the mirror processing. Can be configured such that the transfer unit is set to one page of image data, and the transfer unit is set to one page of image data when an instruction to select rotation processing is received from the operator.
これらの構成によれば、ミラー処理および回転処理のいずれを受け付けた場合にも、ライン数の設定を行う簡単な処理により、受け付けた指示に応じた適切な画像処理を行うことができる。 According to these configurations, when either mirror processing or rotation processing is received, appropriate image processing according to the received instruction can be performed by simple processing for setting the number of lines.
以下、本発明の実施の形態について、図面を用いて説明する。尚、すべての図面において、同様な構成要素には同様の符号を付し、適宜説明を省略する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In all the drawings, the same reference numerals are given to the same components, and the description will be omitted as appropriate.
図1は、本実施形態における画像処理装置の構成を示す機能ブロック図である。本実施形態では、画像処理装置200は、カラー画像処理装置であり、スキャナ機能やコピー機能を有する。図1は、本発明に関連する主要な要素を示している。
FIG. 1 is a functional block diagram showing the configuration of the image processing apparatus according to this embodiment. In the present embodiment, the
画像処理装置200は、図示されないが、給紙部、印刷部などの通常の複合型コピー機が備える構成を有している。また、画像処置装置200は、さらにファックス通信機能などの通信機能を備え、そのための構成が設けられていてもよい。画像処理装置200は、多値(8ビット)のカラーデータのミラー処理(左右中心線を基準として左右対称に変換する処理)または回転処理(中心点基準として180°回転する処理)を行う。また、画像処理装置200は、2値(1ビット)のモノクロデータのミラー処理または回転処理も行うことができる。なお、イメージバス201およびシステムバス203のバス幅は16ビットである。すなわち、イメージバス201およびシステムバス203において同時に転送できるデータ量(バス幅)は16ビットである。
Although not shown, the
より具体的には、画像処置装置200は、複数のラインを含む画像データを記憶するイメージメモリ215(第一の記憶手段)と、複数のラインを含む画像データを記憶する第一のシステムメモリ212(第二の記憶手段)と、を備える。また、画像処置装置200は、画像データを転送する際の転送単位に含まれるライン数についての指示を受け付ける第一の受付部214(操作パネル)と、画像データに含まれるラインギャップ数についての指示を受け付ける第二の受付部204(ラインギャップ数の設定部)とを備える。
More specifically, the
画像処置装置200は、イメージメモリ215から画像データを取得し、第一の受付部214から上記ライン数を取得し、画像データを、画像データの一画素に含まれるビット数からなるスワップ単位ごとにスワップし、画像データに対して転送バス幅に応じたビット数ごとに設定されるアドレスを上記ライン数からなる転送単位内でデクリメントしながら、第一のシステムメモリ212に転送する転送制御部218を備える。さらに、画像処置装置200は、第一のシステムメモリ212に記憶されている画像データを取得し、第一の受付部214から上記ライン数を取得し、第二の受付部204からラインギャップ数を取得し、上記ライン数およびラインギャップ数に基づいて画像データをラインからなる領域内で再配列するライン補正部210を備える。画像処理装置200は、その他、予備の第二のシステムメモリ216などを備える。
The
画像データ取得部202は、スキャナの機能を有し、原稿を読み取ってRGB形式のカラー画像データ(以下、RGBデータ)を生成する。ここで、画像データ取得部202は、画像を所定ラインからなる領域内で読み取る。この画像データ取得部202には、後述するように、R、G、Bのそれぞれの色について、CCDで構成されるラインイメージセンサを副走査方向に少しずつずらして並列に設けられている。この種の画像データ取得部202には、このように各色のラインイメージセンサが並列に設けられているので、物理的に原稿上の同一ラインについてそれぞれの色を同時に読み取ることが困難である。このため、画像データ取得部202により取得された画像データには、各色のラインからなる領域内でラインギャップが生じる。
The image
イメージメモリ215は、画像データ取得部202が読み取ったRGBデータをイメージバス201を介して受け取り、記憶する。イメージメモリ215は、例えばSDRAMである。
The
転送制御部218は、イメージメモリ215に記憶されたRGBデータを第一のシステムメモリ212に転送する。転送制御部218は、画像データがカラー画像データであり、ミラー処理を行う場合には、RGBデータそれぞれを3本のラインからなる転送単位で転送する。なお、イメージメモリ215から第一のシステムメモリ212へのデータ転送は、イメージバス201およびシステムバス203を介して行われる。第一のシステムメモリ212は、例えばSDRAMである。第一のシステムメモリ212は、イメージメモリ215から転送されたRデータ、Gデータ、Bデータをそれぞれ記憶する複数のバンクを有する。
The
第一の受付部214は、画像データのミラー処理または回転処理のいずれかを選択することを液晶画面(不図示)などを介してオペレータに提示する。第一の受付部214は、オペレータからミラー処理を選択する旨の指示を受け付けると、上記転送単位を1ライン以上(例えば、RGB各1ラインからなる3ライン)に設定し、設定値を転送制御部218に送信する。第一の受付部214は、オペレータから回転処理を選択する旨の指示を受け付けると、上記転送単位を画像データに含まれるライン数(すなわち、画像データのページごと)に設定し、設定値を転送制御部218に送信する。
The
図2(a)は、実施形態に係る画像処理装置の転送制御部218の詳細な構成を示す機能ブロック図である。転送制御部218は、イメージメモリ215から読み出すデータのアドレスを生成する読出アドレス生成部221と、読出アドレス生成部221から読出アドレスを取得し、読出アドレスに基づいてイメージメモリ215から画像データを読み出すデータ読出部231と、を備える。また、転送制御部218は、第一のシステムメモリ212に書き込むデータのアドレスを生成する書込アドレス生成部223と、書込アドレス生成部223から書込アドレスを取得し、書込アドレスに基づいて第一のシステムメモリ212に画像データを書き込むデータ書込部233と、を備える。
FIG. 2A is a functional block diagram illustrating a detailed configuration of the
転送制御部218では、この読出アドレス生成部221または書込アドレス生成部223の一方は、第一の受付部214から上記転送単位に含まれるライン数を取得し、画像データのアドレスを上記ライン数からなる転送単位内でデクリメントしたアドレスを生成するように構成されている。
In the
なお、読出アドレス生成部221は、イメージメモリ215内の同一のバンクに記憶されているRデータ、Gデータ、Bデータを一連のRGBデータとして読み込む。書込アドレス生成部223は、RGBデータを第一のシステムメモリ212内の同一のバンクに書き込む。このとき、読出アドレス生成部221および書込アドレス生成部223は、イメージメモリ215から読み出す画像データのアドレスを16ビットごとに生成する。
The read address generation unit 221 reads R data, G data, and B data stored in the same bank in the
データ読出部231およびデータ書込部233は、DMAコントローラ219(ダイレクトメモリーアクセスコントローラ)を構成する。また、中央演算処理部225は、第一の受付部214から反転または回転処理についての指示を受けると、この指示を読出アドレス生成部221および書込アドレス生成部223に送信してこれらの構成要素を制御する。
The
なお、Direct Memory Access(DMA)とは、中央演算処理装置(CPU)からの干渉なく、データを計算機中である場所から別の場所に動かすための手法を意味する。DMAコントローラ219は、DMA転送のたびにアドレスをインクリメントやデクリメントさせることも、変化させないことも可能なため、データの並び順を反転させたメモリ・メモリ間転送とか、特定の値でメモリブロックをクリアしたり、あるいはメモリマップドI/Oとのデータ転送も可能である。
Note that Direct Memory Access (DMA) means a technique for moving data from one place in the computer to another place without interference from the central processing unit (CPU). The
図2(b)は、実施形態に係る画像処理装置のライン補正部210の詳細な構成を示す機能ブロック図である。ライン補正部210は、画像データに含まれるRGBの各1本ずつのラインからなる3本のラインの配置をそれぞれ反転させるRGBライン反転処理部241を備える。ライン補正部210は、RGBの各ラインについて、ラインギャップ数だけラインを下方に移動させることにより、RGBのラインギャップを低減させるラインギャップ補正部243を備える。中央演算処理部245は、第一の受付部214からアドレスをデクリメントする単位のライン数について指示を受けると、RGBライン反転処理部241に対して、指示されたライン数(たとえばRGB各1ラインからなる3ライン)ごとにラインを反転するように指示を送信して制御する。中央演算処理部245は、第2の受付部204から画像データ取得部202のラインギャップ数についてあらかじめ設定されている指示を受けると、この指示をラインギャップ補正部243に送信して制御する。
FIG. 2B is a functional block diagram illustrating a detailed configuration of the
図3は、本実施形態に係る画像処理装置200の画像データ取得部202の詳細な構成を示す機能ブロック図である。この画像データ取得部202は、B信号処理部と、G信号処理部と、R信号処理部とを備えている。
FIG. 3 is a functional block diagram showing a detailed configuration of the image
R信号処理部は、CCD(R)センサ301aと、アナログフロントエンド(AFE)回路302aと、A/D変換器303aとを備えている。また、G信号処理部は、CCD(G)センサ301bと、アナログフロントエンド(AFE)回路302bと、A/D変換器303bとを備えている。また、B信号処理部は、CCD(B)センサ301cと、アナログフロントエンド(AFE)回路302cと、A/D変換器303cとを備えている。
The R signal processing unit includes a CCD (R)
本実施形態に係る画像処理装置の動作について、以下説明する。図4は、実施形態に係る画像処理装置200の動作を説明するためのフローチャートである。画像処理装置200の操作者が第一の受付部214に対して、コピーを行う指示を入力すると、第一の受付部214は、この指示を画像データ取得部202に送信する。この指示を受け取った画像データ取得部202は、原稿台に設置された用紙などを走査してRGB形式の画像データを取得し、イメージメモリ215に記憶させる。
The operation of the image processing apparatus according to this embodiment will be described below. FIG. 4 is a flowchart for explaining the operation of the
第一の受付部214は、コピーを行う指示を受ける前に、ミラー処理または回転処理を行う旨の指示を受け付けていた場合には、その指示を転送制御部218の中央演算処理部225に送信する。中央演算処理部225は、ミラー処理または回転処理を行う旨の指示を受け付けた(S101)場合には、読出アドレス生成部221を制御して、画像メモリ(イメージメモリ215)内に格納されている画像データの書き込み終了アドレス(Bm−nアドレス)を、転送元アドレス(転送開始アドレス)Nとして設定した読出アドレスを生成させる(S102)。一方、ミラー処理または回転処理をしない場合については、後述する。
If the
次いで、転送制御部218のデータ読出部231は、この読出アドレスを読出アドレス制御部から取得して、この読出アドレスに基づいてイメージメモリ215から画像データを読み出す。この際、画像データをN番地から読み出すことになる(S103)。このように、画像データを終端のアドレスから読み出すために、画像データのアドレスはデクリメントされる。具体的には、イメージメモリ215から読み出した画像データをDMA転送する際には、後述する、図7のR0−1〜Bm−nまでを1ラインとし、Bm−nが記憶されているアドレスを転送開始アドレスとする。
Next, the
具体的には、転送制御部218の中央演算処理部225は、第一の受付部214から転送単位のライン数についての指示を取得する。中央演算処理部225は、取得した転送単位のライン数からなる領域内で画像データのアドレスをデクリメントする旨の指示を読出アドレス生成部221に送信する。指示を取得した読出アドレス生成部221は、指示されたライン数からなる領域内で画像データのアドレスをデクリメントする。指示されたライン数からなる領域内でデクリメントされたアドレスを取得したデータ読出部231は、取得したアドレスに基づいてイメージメモリ215から画像データを読み出す。
Specifically, the central processing unit 225 of the
このとき、第一の受付部214は、画像データのミラー処理または回転処理のいずれかを選択することを液晶画面(不図示)などを介してオペレータに提示する(S105)。そして、第一の受付部214は、オペレータからミラー処理を選択する旨の指示を受け付けると、転送単位をRGB各1ラインからなる3ラインに設定する(S107)。また、第一の受付部214は、オペレータから回転処理を選択する旨の指示を受け付けると、転送単位を画像データのページを構成する全ライン数に設定する(S109)。
At this time, the first accepting
次いで、DMAコントローラ219は、読み出した画像データを所定のビット数毎にバイトスワップまたは1ビット毎にビットスワップする。この際、中央演算処理部225は、読み出した画像データがカラー画像データまたはモノクロ画像データのいずれであるかを判断する(S104)。中央演算処理部225は、読み出した画像データがカラー画像データであると判断する場合には、画像データをRGB画素を構成するビット数(8ビット)からなるバイト(スワップ単位)毎にバイトスワップする(S106)。一方、中央演算処理部225は、読み出した画像データがモノクロ画像データであると判断する場合には、画像データをモノクロ画素を構成するビット数(1ビット)からなるビット(スワップ単位)毎にビットスワップする(S108)。
Next, the
まとめると、処理内容に応じて、転送時のスワップ処理およびDMA単位は、下記の表1に示すような組合せにより処理する。 In summary, the swap processing and the DMA unit at the time of transfer are processed by a combination as shown in Table 1 below according to the processing contents.
このように、画像データを所定のビット数毎にバイトスワップまた1ビット毎にビットスワップし、転送単位のライン数からなる領域内で上記のアドレスのデクリメントを行うことにより、画像データのデータ構造は、図7に示すような変化を示す。図7は、本実施形態に係る画像処理装置の転送制御部の動作による画像データのデータ構造の変化を示すデータ構造図である。すなわち、カラー画像データをミラー処理する際に、画像データのアドレスをRGB各1ラインからなる3ラインの領域内でデクリメントし、画像データのRGB画素を8ビットごとにバイトスワップした場合の画像データのデータ構造の変化を示す図である。 As described above, the image data is structured in such a manner that the image data is byte-swapped for each predetermined number of bits or bit-swapped for each bit, and the address is decremented within the area composed of the number of lines in the transfer unit. FIG. 7 shows a change as shown in FIG. FIG. 7 is a data structure diagram showing changes in the data structure of the image data due to the operation of the transfer control unit of the image processing apparatus according to the present embodiment. That is, when color image data is mirrored, the address of the image data is decremented within a three-line area consisting of one RGB line, and the RGB pixels of the image data are byte-swapped every 8 bits. It is a figure which shows the change of a data structure.
図7において、Rm−n,Gm−n,Bm−nは、多値カラーデータの場合、それぞれ左からm番目およびn番目の画素の赤,緑,青の色成分の信号を表わす。ここでは、画像データのアドレスを所定のライン数(RGB各1ラインからなる3ライン)からなる領域内でデクリメントし、画像データのRGB画素を8ビットごとにバイトスワップすることにより、RGB各1本のライン3本からなるブロック内のRGBラインの相対位置が反転している。また、いずれのラインにおいても、各画素データの左右の配列が反転している。 In FIG. 7, Rm-n, Gm-n, and Bm-n represent red, green, and blue color component signals of the mth and nth pixels from the left in the case of multi-valued color data. Here, the address of the image data is decremented within an area consisting of a predetermined number of lines (3 lines each consisting of RGB), and the RGB pixels of the image data are byte-swapped every 8 bits, so that each of the RGB data The relative positions of the RGB lines in the block consisting of three lines are reversed. In any line, the left and right arrangements of the pixel data are inverted.
なお、ビット/バイトスワップ機能とは、ビット単位/バイト単位でデータ順序を入れ替える機能を意味する。すなわち、データをD[15:0](D[15、14、・・・1、0])と定義する。この場合、このデータをビットスワップするとD[0:15]になる。一方、8ビットを1バイトとしてバイトスワップすると、D[7:0、15:8]になる。 The bit / byte swap function means a function for switching the data order in bit units / byte units. That is, the data is defined as D [15: 0] (D [15, 14,..., 1, 0]). In this case, if this data is bit-swapped, D [0:15] is obtained. On the other hand, when byte swapping is performed with 8 bits as 1 byte, D [7: 0, 15: 8] is obtained.
次いで、中央演算処理部225は、書込アドレス生成部223を制御して、所定の転送単位内でデクリメントされたアドレスにより読み出され、バイトスワップまたはビットスワップされた画像データを、そのデクリメントされたアドレス順序のままとする書込アドレスを生成する。さらに、この書込アドレスを取得したデータ書込部233は、画像データを転送先へ転送する(S111)。すなわち、画像データを第一のシステムメモリ212に書き込む。
Next, the central processing unit 225 controls the write
中央演算処理部225は、イメージメモリ215中にもはやDMA転送が完了していない画像データが残存しているか否か調べ、残存していない場合には、DMA転送を終了する(S113)。一方で、未だDMA転送が完了していない画像データが残存している場合には、N=N−1として(S115)、すなわち読み出す番地をデクリメントして、さらに転送制御部218のデータ読出部231は、イメージメモリ215から画像データのN番地(N−1番地)を読み出す(S103)。こののち、DMA転送を終了するまで、同様のステップを繰り返す。なお、この際、次のRGBに進む場合には、一旦DMA転送を終了し、新たにNに次のBm−nのアドレスを入力し、DMA転送を再度開始することとしてもよい。
The central processing unit 225 checks whether image data for which DMA transfer is no longer completed remains in the
図5は、実施形態に係る画像処理装置の動作を説明するためのフローチャートである。一方、ステップ101において、ミラー処理または回転処理をしない場合については、画像メモリの書き込み開始アドレス(R0−1)を、転送元アドレス(転送開始アドレス)Nとして設定する(S121)。そして、上記と同様に、転送制御部218のデータ読出部231がイメージメモリ215から画像データのN番地を読み出し(S123)、データ書込部233が画像データを第一のシステムメモリ212に書き込むことにより、画像データを転送先へ転送する(S125)。この転送の過程において、アドレスをデクリメントすることなく、そのままのアドレス順序で画像データが転送される。
FIG. 5 is a flowchart for explaining the operation of the image processing apparatus according to the embodiment. On the other hand, in the case where the mirror process or the rotation process is not performed in
そして、中央演算処理部225は、DMA転送が終了すると、転送制御部218の動作を終了させる(S127)。一方で、未だDMA転送が完了していない画像データが残存している場合には、N=N+1として(S129)、さらに転送制御部218のデータ読出部231は、イメージメモリ215から画像データのN番地(N+1番地)を読み出す(S123)。こののち、DMA転送を終了するまで、同様のステップを繰り返す。なお、この際、次のRGBに進む場合には、一旦DMA転送を終了し、新たにNに次のR0−1のアドレスを入力し、DMA転送を再度開始する。
Then, when the DMA transfer ends, the central processing unit 225 ends the operation of the transfer control unit 218 (S127). On the other hand, if image data for which DMA transfer has not been completed still remains, N = N + 1 is set (S129), and the
上記のようにして、DMA転送の動作を行った後に、下記のように、ライン補正の動作を行う。図6は、実施形態に係る画像処理装置のライン補正部210の動作を説明するためのフローチャートである。ライン補正部210は、RGB各1本のライン3本からなるブロック毎に、ライン補正の処理を順次行う。ライン補正部210の中央演算処理部245は、転送制御部218により、第一のシステムメモリ212に画像データが転送されてきた旨の情報を、第一のシステムメモリ212を検索することにより取得すると、第一のシステムメモリ212内の最初のブロック(n=1)のライン補正処理を開始する(S301)。
After performing the DMA transfer operation as described above, the line correction operation is performed as follows. FIG. 6 is a flowchart for explaining the operation of the
ライン補正処理が開始されると、中央演算処理部245は、第一のシステムメモリ212内の画像データのバンクから3n行目のデータを読み出し(S303)、RGBライン反転処理部241およびラインギャップ補正部243と協働して、第二のシステムメモリ216内のバンクの3n−2行目にデータを書き込む(S305)。
When the line correction processing is started, the
なお、RGBライン反転処理部241およびラインギャップ補正部243は、中央演算処理部245に隣接して設けられているメモリ中にロードされているプログラムのモジュールである。この2つのモジュールが組み合わさって一つのプログラムを構成し、中央演算部245がこのプログラムのアルゴリズムに基づいて図6に示すアルゴリズムを実行する。
The RGB line
ラインギャップ解消のための基準とするRラインについては、中央演算処理部245とRGBライン反転処理部241とが協働して、2ライン上のラインに移動させることにより、転送により反転してBGR配列となってしまった色相配列を、もとのRGB配列に相当する位置に戻す。
Regarding the R line as a reference for eliminating the line gap, the
次いで、中央演算処理部245は、第一のシステムメモリ212内の画像データのバンクから3n−1行目のデータを読み出し(S307)、RGBライン反転処理部241およびラインギャップ補正部243と協働して、第二のシステムメモリ216内のバンクの(3n−1)+6行目にデータを書き込む(S309)。
Next, the
画像データ取得部202が取得してきた当初から、Gラインは、Rラインに対してブロック2本分(ライン6本文)のラインギャップを有する。また、Gラインについては、RGB配列がBGR配列に反転しても、ブロック内での相対的位置は維持される。このため、中央演算処理部245とラインギャップ補正部243とが協働して、6ライン下のラインに移動させることにより、Gラインについてのラインギャップを解消する。
From the beginning when the image
次いで、中央演算処理部245は、第一のシステムメモリ212内の画像データのバンクから3n−2行目のデータを読み出し(S311)、RGBライン反転処理部241およびラインギャップ補正部243と協働して、第二のシステムメモリ216内のバンクの(3n−2)+2+12行目にデータを書き込む(S313)。
Next, the
画像データ取得部202が取得してきた当初から、Bラインは、Rラインに対してブロック4本分(ライン12本文)のラインギャップを有する。また、Bラインについては、RGB配列がBGR配列に反転することに伴い、ブロック内での相対的位置が反転してしまっている。このため、中央演算処理部245とRGBライン反転処理部241とラインギャップ補正部243とが協働して、2ライン+12ライン下のラインに移動させることにより、Bラインについてのラインギャップを解消し、転送により反転してBGR配列となってしまった色相配列を、もとのRGB配列に相当する位置に戻す。
From the beginning when the image
このように、画像データを転送制御部218により反転処理しつつ転送し、ライン補正部210により、ラインの再配列を行うと、画像データのデータ構造は、図8に示すような変化を示す。図8は、本実施形態に係る画像処理装置の動作による画像データのデータ構造の変化を示すデータ構造図である。
As described above, when the image data is transferred while being inverted by the
図8において、R(Ri−Lj),G(Gi−Lj),B(Bi−Lj)は、それぞれ画像データ取得部202が当初取得した画像データにおける取得した順番(i番目)にしたがって並べた後、ライン補正部210によるライン補正処理の結果ラインギャップが解消された状態では上からj番目にあたるラインであって、画素の赤,緑,青の色成分の信号からなるラインを表わす。
In FIG. 8, R (Ri-Lj), G (Gi-Lj), and B (Bi-Lj) are arranged in accordance with the order (i-th) acquired in the image data initially acquired by the image
ここでは、転送制御部218の転送処理により、画像データのアドレスを所定のライン数(RGB各1ラインからなる3ライン)からなる領域内でデクリメントし、画像データのRGB画素を8ビットごとにバイトスワップした結果、RGB各1本のライン3本からなるブロック内のRGBラインの相対位置が反転している。また、いずれのラインにおいても、各画素データの左右の配列が反転している。
Here, by the transfer process of the
そして、その転送された画像データを、ライン補正部210により、適宜RGBラインの相対位置を反転処理したり、ラインギャップを補正したりすることにより、RGBラインの相対位置を元に戻した上で、全体のラインギャップを解消されている。
本実施形態の画像処理装置による作用効果について、以下説明する。
Then, the transferred image data is restored to the original relative position of the RGB line by appropriately inverting the relative position of the RGB line or correcting the line gap by the
The effects of the image processing apparatus of this embodiment will be described below.
第一に、画像処理装置200によれば、画像データのミラー処理または回転処理とライン補正とを迅速に行い得る。すなわち、転送制御部218において、画像データのアドレスを所定のライン数(RGB各1ラインからなる3ライン)からなる領域内でデクリメントし、画像データのRGB画素を8ビットごとにバイトスワップすれば、ミラー処理を行うことができる。また、転送制御部218において、画像データのアドレスをページ単位(ページを構成する全ライン数毎)の領域内でデクリメントし、画像データのRGB画素を8ビットごとにバイトスワップすれば、回転処理を行うことができる。ミラー処理の際、RGB配列が反転してBGR配列となるが、ライン補正部において、BGR配列をRGB配列に戻し、画像データが当初から有するラインギャップを解消することができる。したがって、画像処理装置200によれば、DMA転送処理に伴う画像データの画質の低下を抑制し、むしろラインギャップの解消により画質を向上することができる。
First, according to the
第二に、画像処理装置200によれば、画像データの反転処理または回転処理を迅速に実行可能である。すなわち、転送制御部218は、DMA(ダイレクトメモリアクセスコントローラ)に転送処理を実質的に行わせるため、CPUおよびソフトウェアを用いて画像データの転送を行うよりも迅速に、デクリメントしつつビットスワップまたはバイトスワップすることができる。したがって、高速かつ正確な画像データの反転処理または回転処理が可能となる。
Secondly, according to the
第三に、画像処理装置200によれば、回路配置を簡略化できる。すなわち、ライン補正部210は、RGBライン反転処理部241およびラインギャップ補正部243の2種類のコンポーネントの組み合わせである画像データ補正プログラムと、中央演算処理部245とが協働する仕組みである。このため、中央演算処理部245は、画像データ補正プログラムを読み込み、画像データ補正プログラムを実行することにより、画像データをラインからなる領域内で再配列可能である。したがって、ソフトウェアによりライン補正を行うため、ライン補正を行うための複雑な回路配置が不要となり、画像処理装置200の回路配置を簡略化できる。
Third, according to the
また、この際、通常の複合型コピー機に備わるLSIのDMA機能は、アドレス制御において16ビット幅のデクリメント機能を備え、またデータ制御においてバイト/ビットスワップ機能を備えるので、それらの機能を使ってカラーデータの高速ミラー処理または回転処理を実現する。このため、汎用的に備えている機能をうまくカラーデータのミラー処理に活用できる。この観点からも、画像処理装置200の回路配置を簡略化できる。また、この画像処理装置200によれば、モノクロデータの場合も、同様の作用効果が得られる。
Also, at this time, the LSI DMA function provided in a normal composite type copier has a 16-bit width decrement function in address control and a byte / bit swap function in data control. Realizes high-speed mirror processing or rotation processing of color data. For this reason, the function provided for general purposes can be used effectively for mirror processing of color data. Also from this viewpoint, the circuit arrangement of the
一方、画像処理装置200の作用効果の説明のために、本実施形態とは異なる構造の画像処理装置について対比して説明すると、以下の通りである。すなわち、本実施形態とは異なる構造の画像処理装置においては、先に画像データのラインギャップを解消し、その後、画像データを転送しつつアドレスのデクリメントを行う。
On the other hand, in order to explain the operational effects of the
この場合、イメージメモリ215からライン補正済の画像データをCCDからのビデオ信号を1画素8ビットの多値データに変換し、それを2画素単位(16ビット単位)で第一のシステムメモリ212に転送する(バス幅が16ビットであるため)場合、イメージメモリ215からデータを読み出す際に、画像データのRGB配列がBGR配列に反転してしまう。このため、画像データの転送後にさらにBGR配列をRGB配列に戻す手段を回路構成として設ける場合には、全体の装置構成が複雑になる。また、同様の手段をミラー処理を実現するソフトウェアとして設ける場合には、画像データの処理時間が長時間化する。
In this case, the line-corrected image data from the
これに対して、画像処理装置200では、多値(8ビット)のカラーデータのミラー処理を行うに際して、2画素16ビット単位で読み取ったカラーデータをイメージメモリ215に記憶する機能がある。また、LSIに備わるDMAコントローラ219には、16ビット幅のイメージメモリ215に対するアドレス制御にデクリメント機能があり、またデータ制御にビット/バイトスワップ機能がある。
On the other hand, the
そして、ラインギャップのある状態でRGBのデータが記憶されたイメージメモリ215に対して、ライン終端アドレス(RGBを1ラインとした場合のライン終端アドレス)を転送開始アドレスとしてDMA転送する。DMA転送は、アドレスをデクリメントしつつ行う。またDMA転送では、データをバイトスワップさせる。
Then, DMA transfer is performed using the line end address (line end address when RGB is one line) as a transfer start address to the
これにより、RGBの各ラインでは、ミラー処理が実現できる。但し、副走査方向においてRGBの順序が逆になる。すなわち、ラインギャップを含んだRGBをミラーしたので、ラインギャップを含んだBGRになってしまう。これを、主走査のデータがミラーになっていて、且つ、ラインギャップのないRGBのデータにする必要がある。 Thereby, mirror processing can be realized in each line of RGB. However, the RGB order is reversed in the sub-scanning direction. That is, since the RGB including the line gap is mirrored, the BGR including the line gap is obtained. This needs to be RGB data in which the main scanning data is a mirror and there is no line gap.
副走査方向で逆になった順序は、後処理であるラインギャップ補正において、元の順序に戻すことができる。すなわち、BGR→RGB(副走査方向)のライン順序入れ替え処理と、ラインギャップ補正処理と、を考慮したライン操作を行う。このライン操作は、いずれもソフトウェアにより処理可能である。このため、副走査方向の順序修正のために、新たに回路を追加する必要がない。 The order reversed in the sub-scanning direction can be returned to the original order in the post-process line gap correction. That is, the line operation is performed in consideration of the line order changing process of BGR → RGB (sub-scanning direction) and the line gap correction process. Any of these line operations can be processed by software. For this reason, it is not necessary to add a new circuit for correcting the order in the sub-scanning direction.
以上、図面を参照して本発明の実施形態について述べたが、これらは本発明の例示であり、上記以外の様々な構成を採用することもできる。 As mentioned above, although embodiment of this invention was described with reference to drawings, these are the illustrations of this invention, Various structures other than the above are also employable.
例えば、上記実施形態では、イメージメモリ215(イメージバス201上)から読み出したデータは、符号化等はされずに、そのまま第一のシステムメモリ212(システムバス203上)に転送され、ライン補正処理がおこなわれる。そして、そのままの状態(符号化していない状態)で外部端末(PC)に転送されたり、液晶表示部などに表示されたり、印刷部でカラー印刷されたり、インターネット上に送信されたりする。しかし、ライン補正後であれば、特に符号化等を排除する趣旨ではなく、符号化した上で、あるいはJPEG LSIを通してJPEG圧縮を行った後、同様に符号化した画像データを活用してもよい。 For example, in the above-described embodiment, data read from the image memory 215 (on the image bus 201) is transferred to the first system memory 212 (on the system bus 203) as it is without being encoded, and line correction processing is performed. Is done. Then, the data is transferred to an external terminal (PC) as it is (unencoded), displayed on a liquid crystal display, etc., color printed by a printing unit, or transmitted over the Internet. However, after line correction, it is not intended to exclude encoding or the like, but after encoding or JPEG compression through JPEG LSI, encoded image data may be used similarly. .
また、上記実施形態では、カラー画像のミラー処理を行う場合のDMAによる転送単位を、RGB各1本からなる3本のラインの転送単位としたが、特に限定する趣旨ではない。例えば、DMAによる転送単位を、RGB合わせた3ラインではなく、RGB個別にしたときの1ラインずつにしてもよい。すなわち、最初のDMAによる転送単位の開始アドレスをRラインの最後のアドレスとすることができる。この場合、転送元のイメージメモリ215から転送された画像データを転送先の第一のシステムメモリ212に書き込む際、転送先アドレスにラインギャップ分を考慮したアドレスを設定すると、書き込まれた画像データはラインギャップ補正がされた画像データとなる。そのため、ソフトウェアによるライン補正処理を省略することができる。
In the above-described embodiment, the transfer unit by DMA in the case of performing color image mirror processing is a transfer unit of three lines of one RGB, but there is no particular limitation. For example, the transfer unit by DMA may be one line for each of RGB instead of three lines for RGB. That is, the start address of the transfer unit by the first DMA can be set as the last address of the R line. In this case, when writing the image data transferred from the transfer
あるいは、DMAによる転送単位を、RGB合わせた3ラインではなく、その整数倍(2倍以上)としてもよい。すなわち、DMAによる転送単位を、RGBRGBの計6ラインとしたり、あるいは計9ラインとしてもよい。このとき、最初のDMAによる転送単位の開始アドレスを、RGBRGBの計6ラインの場合、2つ目のBラインの最後のアドレスとすることができる。この場合、DMAによる転送回数が減少するため、転送処理が簡単になる。したがって、より一層高速かつ正確な画像データの反転処理または回転処理が可能となる。 Alternatively, the transfer unit by DMA may be an integral multiple (two times or more) of the RGB, instead of the three RGB lines. That is, the transfer unit by DMA may be a total of 6 lines of RGBRGB or a total of 9 lines. At this time, the start address of the transfer unit by the first DMA can be the last address of the second B line in the case of a total of 6 lines of RGBRGB. In this case, since the number of times of transfer by DMA is reduced, the transfer process is simplified. Therefore, it is possible to invert or rotate the image data even faster and more accurately.
また、DMAによる転送単位を、RGB合わせた3ラインではなく、画像データの1ページを構成するライン数としてもよい。すなわち、最初のDMAによる転送単位の開始アドレスを、画像データの1ページの最終のBラインの最後のアドレスとすることができる。この場合、転送元のイメージメモリ215および転送先のシステムメモリ212も1ページ分の容量を有するように構成することにより、画像データの1ページ分のデータのDMA転送を円滑に行うことができる。この場合、DMAによる転送回数が1ページにつき1回で済むため、転送処理が簡単になる。したがって、より一層高速かつ正確な画像データの反転処理または回転処理が可能となる。
Further, the transfer unit by DMA may be the number of lines constituting one page of image data instead of the three lines including RGB. That is, the start address of the transfer unit by the first DMA can be the last address of the last B line of one page of image data. In this case, by configuring the transfer
31a CCD(R)センサ
31b CCD(G)センサ
31c CCD(B)センサ
32 CPU
32a アナログフロントエンド回路
32b アナログフロントエンド回路
32c アナログフロントエンド回路
33a A/D変換器
33b A/D変換器
33c A/D変換器
34 ライン補正部
40 DMAコントローラ
44 インタフェース
46 インタフェース
50 ディスク装置
52 製版処理ワークステーション
200 画像処理装置
201 イメージバス
202 画像データ取得部
203 システムバス
204 第二の受付部
210 ライン補正部
212 第一のシステムメモリ
214 第一の受付部
215 イメージメモリ
216 第二のシステムメモリ
218 転送制御部
219 DMAコントローラ
221 読出アドレス生成部
223 書込アドレス生成部
225 中央演算処理部
231 データ読出部
233 データ書込部
241 RGBライン反転処理部
243 ラインギャップ補正部
245 中央演算処理部
301a CCD(R)センサ
301b CCD(G)センサ
301c CCD(B)センサ
302a アナログフロントエンド(AFE)回路
302b アナログフロントエンド(AFE)回路
302c アナログフロントエンド(AFE)回路
303a A/D変換器
303b A/D変換器
303c A/D変換器
31a CCD (R)
32a Analog
Claims (9)
複数のラインを含む画像データを記憶する第二の記憶手段と、
前記画像データを転送する際の転送単位に含まれるライン数についての指示を受け付ける第一の受付部と、
前記画像データに含まれるラインギャップ数についての指示を受け付ける第二の受付部と、
前記第一の記憶手段から前記画像データを取得し、前記第一の受付部から前記ライン数を取得し、前記画像データを、前記画像データの一画素に含まれるビット数からなるスワップ単位ごとにスワップし、前記画像データに対して転送バス幅に応じたビット数ごとに設定されるアドレスを前記ライン数からなる転送単位内でデクリメントしながら、前記第二の記憶手段に転送する転送制御手段と、
前記第二の記憶手段に記憶されている前記画像データを取得し、前記第一の受付部から前記ライン数を取得し、前記第二の受付部から前記ラインギャップ数を取得し、前記ライン数および前記ラインギャップ数に基づいて前記画像データを前記ラインからなる領域内で再配列するライン補正手段と、
を備えることを特徴とする画像処理装置。 First storage means for storing image data including a plurality of lines;
Second storage means for storing image data including a plurality of lines;
A first receiving unit that receives an instruction about the number of lines included in a transfer unit when transferring the image data;
A second receiving unit for receiving an instruction about the number of line gaps included in the image data;
The image data is acquired from the first storage means, the number of lines is acquired from the first receiving unit, and the image data is acquired for each swap unit including the number of bits included in one pixel of the image data. Transfer control means for swapping and transferring the image data to the second storage means while decrementing an address set for each bit number corresponding to the transfer bus width within the transfer unit consisting of the number of lines. ,
The image data stored in the second storage means is acquired, the number of lines is acquired from the first reception unit, the number of line gaps is acquired from the second reception unit, and the number of lines And line correction means for rearranging the image data in an area consisting of the lines based on the number of line gaps,
An image processing apparatus comprising:
前記転送制御手段は、
前記第一の記憶手段から読み出す画像データの詠出アドレスを生成する読出アドレス生成手段と、
前記読出アドレス生成手段から前記読出アドレスを取得し、前記読出アドレスに基づいて前記第一の記憶手段から前記画像データを読み出すデータ読出手段と、
前記画像データの一画素に含まれるビット数からなる前記スワップ単位ごとに前記読み出された画像データをスワップするスワップ手段と、
前記第二の記憶手段に書き込む画像データの書込アドレスを生成する書込アドレス生成手段と、
前記書込アドレス生成手段から前記書込アドレスを取得し、前記書込アドレスに基づいて前記第二の記憶手段に前記スワップされた画像データを書き込むデータ書込手段と、
を含み、
前記読出アドレス生成手段または前記書込アドレス生成手段の一方は、前記第一の受付部から前記ライン数を取得し、前記画像データのアドレスを前記ライン数からなる前記転送単位内でデクリメントしたアドレスを生成するように構成されている
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 1.
The transfer control means includes
Read address generation means for generating an output address of image data read from the first storage means;
Data read means for obtaining the read address from the read address generating means and reading the image data from the first storage means based on the read address;
Swap means for swapping the read image data for each swap unit comprising the number of bits included in one pixel of the image data;
Write address generation means for generating a write address of image data to be written to the second storage means;
Data writing means for acquiring the write address from the write address generating means, and writing the swapped image data in the second storage means based on the write address;
Including
One of the read address generation unit or the write address generation unit obtains the number of lines from the first reception unit, and decrements an address of the image data within the transfer unit including the number of lines. An image processing apparatus configured to generate the image processing apparatus.
前記画像データがカラー画像データまたはモノクロ画像データのいずれであるかを判断する画像タイプ判断部をさらに含み、
前記スワップ手段は、前記画像タイプ判断部が前記画像データをカラー画像データであると判断する場合には、8ビットからなる前記スワップ単位ごとに前記画像データをスワップし、前記画像タイプ判断部が前記画像データをモノクロ画像データであると判断する場合には、1ビットからなる前記スワップ単位ごとに前記画像データをスワップするように構成されている
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 2,
An image type determination unit for determining whether the image data is color image data or monochrome image data;
When the image type determination unit determines that the image data is color image data, the swap means swaps the image data for each swap unit of 8 bits, and the image type determination unit An image processing apparatus configured to swap the image data for each swap unit of 1 bit when determining that the image data is monochrome image data.
前記読出アドレス生成手段は、前記第一の記憶手段から読み出す画像データのアドレスを16ビットごとに生成するように構成されている
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 2 or 3,
The image processing apparatus, wherein the read address generation means is configured to generate an address of image data read from the first storage means every 16 bits.
前記ライン補正手段は、
前記第一の受付部から前記ライン数を取得し、前記ライン数からなる領域内で前記画像データのラインの配列を逆転させるライン配列逆転手段と、
前記第二の受付部から前記ラインギャップ数を取得し、個々の前記ラインに対応する前記ラインギャップ数だけ個々の前記ラインの配列を一方向に移動させるラインギャップ補正手段と、
を含む
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 1,
The line correction means includes
Line arrangement reversing means for obtaining the number of lines from the first receiving unit, and reversing the arrangement of the lines of the image data in an area consisting of the number of lines;
Line gap correction means for acquiring the number of line gaps from the second receiving unit and moving the arrangement of the individual lines in one direction by the number of line gaps corresponding to the individual lines;
An image processing apparatus comprising:
前記画像データは、複数の互いに異なる色相のラインからなるブロックを複数本含む画像データであり、
前記ライン補正手段は、前記転送制御手段により前記ブロック内における色相の配置が逆転してなる前記画像データのラインを再配列し、前記ブロック内における前記色相の配置を再逆転させるように構成されている
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 1,
The image data is image data including a plurality of blocks composed of a plurality of mutually different hue lines,
The line correction unit is configured to rearrange the lines of the image data obtained by reversing the hue arrangement in the block by the transfer control unit, and to reverse the hue arrangement in the block. An image processing apparatus.
前記第一の受付部は、
画像データのミラー処理または回転処理のいずれかを選択することをオペレータに提示し、オペレータからミラー処理を選択する旨の指示を受け付けると、前記転送単位を3の倍数からなる本数のラインに設定し、オペレータから回転処理を選択する旨の指示を受け付けると、前記転送単位を前記画像データの1ページに設定するように構成されている
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 1,
The first reception unit is
When the operator is instructed to select either mirror processing or rotation processing of image data and receives an instruction to select mirror processing from the operator, the transfer unit is set to a number of lines of multiples of 3. An image processing apparatus configured to set the transfer unit to one page of the image data when receiving an instruction to select rotation processing from an operator.
前記第一の受付部は、
画像データのミラー処理または回転処理のいずれかを選択することをオペレータに提示し、オペレータからミラー処理を選択する旨の指示を受け付けると、前記転送単位を1ラインに設定し、オペレータから回転処理を選択する旨の指示を受け付けると、前記転送単位を前記画像データの1ページに設定するように構成されている
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 1,
The first reception unit is
When the operator is instructed to select either mirror processing or rotation processing of image data and receives an instruction to select mirror processing from the operator, the transfer unit is set to one line, and rotation processing is performed from the operator. An image processing apparatus configured to set the transfer unit to one page of the image data when receiving an instruction to select.
前記第一の受付部は、
画像データのミラー処理または回転処理のいずれかを選択することをオペレータに提示し、オペレータからミラー処理を選択する旨の指示を受け付けると、前記転送単位を前記画像データの1ページに設定し、オペレータから回転処理を選択する旨の指示を受け付けると、前記転送単位を前記画像データの1ページに設定するように構成されている
ことを特徴とする画像処理装置。 The image processing apparatus according to claim 1,
The first reception unit is
When the operator is instructed to select either mirror processing or rotation processing of image data and receives an instruction from the operator to select mirror processing, the transfer unit is set to one page of the image data, and the operator An image processing apparatus configured to set the transfer unit to one page of the image data when receiving an instruction to select a rotation process from.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004310759A JP2006092506A (en) | 2004-08-27 | 2004-10-26 | Image processor |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004248408 | 2004-08-27 | ||
JP2004310759A JP2006092506A (en) | 2004-08-27 | 2004-10-26 | Image processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006092506A true JP2006092506A (en) | 2006-04-06 |
Family
ID=36233387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004310759A Pending JP2006092506A (en) | 2004-08-27 | 2004-10-26 | Image processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006092506A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010086401A (en) * | 2008-10-01 | 2010-04-15 | Renesas Technology Corp | Microcomputer, system including same, and data transfer device |
JP2016532970A (en) * | 2013-08-31 | 2016-10-20 | 華為技術有限公司Huawei Technologies Co.,Ltd. | Data migration method and server for memory module in server |
-
2004
- 2004-10-26 JP JP2004310759A patent/JP2006092506A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010086401A (en) * | 2008-10-01 | 2010-04-15 | Renesas Technology Corp | Microcomputer, system including same, and data transfer device |
US8886008B2 (en) | 2008-10-01 | 2014-11-11 | Renesas Electronics Corporation | Microcomputer, system including the same, and data transfer device |
US9610895B2 (en) | 2008-10-01 | 2017-04-04 | Renesas Electronics Corporation | Microcomputer, system including the same, and data transfer device |
JP2016532970A (en) * | 2013-08-31 | 2016-10-20 | 華為技術有限公司Huawei Technologies Co.,Ltd. | Data migration method and server for memory module in server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060082837A1 (en) | Image processing apparatus | |
US7633508B2 (en) | Data transfer apparatus | |
US20060126125A1 (en) | Image reading apparatus, image reading method and image processing apparatus | |
JP5222409B2 (en) | Printer device | |
JP2006092506A (en) | Image processor | |
US8649050B2 (en) | Image forming apparatus | |
US8514441B2 (en) | Image processing apparatus and control method thereof, in which an address for image data depends on whether the image data is input via a detachable image processing device | |
JPH11168610A (en) | Image processor | |
CN110072032B (en) | Image processing apparatus | |
JP4316476B2 (en) | Image processing apparatus and image forming apparatus | |
JP3785295B2 (en) | Image processing device | |
JP2001103227A (en) | Information output device | |
JP2009094604A (en) | Integrated circuit for interline correction, color copier, and color scanner | |
JP2000231631A (en) | Image rotating device | |
JP2010141488A (en) | Image processing controller, and printing device | |
JPH04297935A (en) | Input device and output device | |
JPH0863594A (en) | Memory controller for digital image processing | |
JP2002064701A (en) | Processing unit for image rotation | |
JPH0622128A (en) | Picture processing unit | |
JP2000188679A (en) | Image processor | |
JPH09179965A (en) | Image printer | |
JP2001053960A (en) | Digital image processor | |
JPH09270893A (en) | Image reader | |
JPH10327316A (en) | Image processing unit | |
JP2000196868A (en) | Image processor |