JP2006092506A - Image processor - Google Patents

Image processor Download PDF

Info

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
Application number
JP2004310759A
Other languages
Japanese (ja)
Inventor
Hiroyuki Hirakawa
博之 平川
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2004310759A priority Critical patent/JP2006092506A/en
Publication of JP2006092506A publication Critical patent/JP2006092506A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor capable of quickly performing mirror processing or turning processing and the line correction of image data. <P>SOLUTION: This image processor 200 is provided with a transfer control part 218 for acquiring image data from an image memory 215, acquiring the number of lines included in a transfer unit from a first receiving part 214, swapping the image data in each swap unit composed of the number of bits included in one pixel of the image data and transferring the image data to a first system memory 212 while decrementing the address of the image data within the transfer unit composed of the number of lines, and a line correcting part 210 for acquiring the image data stored in the first system memory 212, acquiring the number of lines from the first receiving part 214, acquiring the number of line gaps from a second receiving part 204 and rearranging the image data within an area composed of lines on the basis of the number of lines and the number of line gaps. <P>COPYRIGHT: (C)2006,JPO&NCIPI

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 Patent Document 1. FIG. 9 shows an image filing apparatus described in this document. In this image filing device, the disk device 50 stores a plurality of image data in a tiled state. The CPU 32 reads image data from the disk device 50 via the interface 44 one tile at a time. The DMA controller 40 rotates or mirror-inverts the read image data for each tile, for example, in units of 90 °, writes the tile data in the tile line buffer, and then reads the image data. The CPU 32 transfers the read image data to the plate making processing workstation 52 via the interface 46.

特許文献1によれば、この画像ファイリング装置によれば、ディスク装置より読み出した画像データに画像変換を施す際、製版処理ワークステーション内のCPUの処理負担を軽減させ、且つ、製版処理ワークステーション内のメインメモリの利用効率を向上できる旨記載されている。   According to Patent Document 1, according to this image filing device, when image conversion is performed on image data read from a disk device, the processing burden on the CPU in the plate making workstation is reduced, and the inside of the plate making workstation is It is described that the use efficiency of the main memory can be improved.

また、従来の画像処理装置としては、特許文献2に記載されたものもある。同文献に記載されたカラー画像処理装置を図10に示す。このカラー画像処理装置は、R信号処理部と、G信号処理部と、B信号処理部と、ライン補正部34とを備えている。   Further, as a conventional image processing apparatus, there is one described in Patent Document 2. A color image processing apparatus described in this document is shown in FIG. The color image processing apparatus includes an R signal processing unit, a G signal processing unit, a B signal processing unit, and a line correction unit 34.

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 front end circuit 32a, and an A / D converter 33a. The G signal processing unit includes a CCD (G) sensor 31b, an analog front end circuit 32b, and an A / D converter 33b. The B signal processing unit includes a CCD (B) sensor 31c, an analog front end circuit 32c, and an A / D converter 33c.

上記のカラー画像処理装置には、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によれば、このカラー画像処理装置は、所定の計算式に基づいて、遅延量を制御するので、回路規模を拡大させることなく、低コストで所定の変倍率を達成できるカラー画像処理装置を提供する旨記載されている。
特開平8−44855号公報 特開2004−72369号公報
According to Patent Document 2, since this color image processing device controls the delay amount based on a predetermined calculation formula, color image processing that can achieve a predetermined scaling factor at low cost without increasing the circuit scale. It is stated that a device is provided.
Japanese Patent Laid-Open No. 8-44855 JP 2004-72369 A

しかしながら、上記文献記載の従来技術は、以下の点で改善の余地を有していた。   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 Patent Document 1, when performing mirror processing (processing that converts left-right center line as a reference) or rotation processing of multi-value (8-bit) color image data, each line of RGB The arrangement order of is disturbed. Further, when reading color image data, a line gap occurs in each line of RGB. However, Patent Document 1 does not describe means for suppressing disorder in the arrangement order of RGB lines or line gaps.

特許文献2のカラー画像処理装置によれば、画像データのミラー処理または回転処理を行うことができない。仮に、制御部のCPUが、読み込んだソフトウェアに基づいて動作することにより、ライン補正済の画像データのミラー処理または回転処理を行うとすると、ソフトウェアに基づいてミラー処理または回転処理を実現しているので、時間がかかり過ぎ、CPUの負担が増大する。   According to the color image processing apparatus of Patent Document 2, it is not possible to perform mirror processing or rotation processing of image data. If the CPU of the control unit operates based on the read software to perform mirror processing or rotation processing of the line-corrected image data, the mirror processing or rotation processing is realized based on the software. Therefore, it takes too much time and the burden on the CPU increases.

本発明は上記事情に鑑みてなされたものであり、その目的とするところは、画像データのミラー処理または回転処理とライン補正とを迅速に行い得る画像処理装置を提供することにある。   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 image processing apparatus 200 is a color image processing apparatus and has a scanner function and a copy function. FIG. 1 shows the main elements relevant to the present invention.

画像処理装置200は、図示されないが、給紙部、印刷部などの通常の複合型コピー機が備える構成を有している。また、画像処置装置200は、さらにファックス通信機能などの通信機能を備え、そのための構成が設けられていてもよい。画像処理装置200は、多値(8ビット)のカラーデータのミラー処理(左右中心線を基準として左右対称に変換する処理)または回転処理(中心点基準として180°回転する処理)を行う。また、画像処理装置200は、2値(1ビット)のモノクロデータのミラー処理または回転処理も行うことができる。なお、イメージバス201およびシステムバス203のバス幅は16ビットである。すなわち、イメージバス201およびシステムバス203において同時に転送できるデータ量(バス幅)は16ビットである。   Although not shown, the image processing apparatus 200 has a configuration provided in a normal complex type copying machine such as a paper feeding unit or a printing unit. Further, the image processing apparatus 200 may further include a communication function such as a fax communication function, and a configuration for that purpose may be provided. The image processing apparatus 200 performs mirror processing of multi-value (8-bit) color data (processing to convert left-right symmetrically with respect to the left-right center line) or rotation processing (processing to rotate 180 ° with respect to the center point). The image processing apparatus 200 can also perform mirror processing or rotation processing of binary (1 bit) monochrome data. Note that the bus width of the image bus 201 and the system bus 203 is 16 bits. That is, the amount of data (bus width) that can be transferred simultaneously on the image bus 201 and the system bus 203 is 16 bits.

より具体的には、画像処置装置200は、複数のラインを含む画像データを記憶するイメージメモリ215(第一の記憶手段)と、複数のラインを含む画像データを記憶する第一のシステムメモリ212(第二の記憶手段)と、を備える。また、画像処置装置200は、画像データを転送する際の転送単位に含まれるライン数についての指示を受け付ける第一の受付部214(操作パネル)と、画像データに含まれるラインギャップ数についての指示を受け付ける第二の受付部204(ラインギャップ数の設定部)とを備える。   More specifically, the image processing apparatus 200 includes an image memory 215 (first storage unit) that stores image data including a plurality of lines, and a first system memory 212 that stores image data including a plurality of lines. (Second storage means). The image processing apparatus 200 also includes a first receiving unit 214 (operation panel) that receives an instruction about the number of lines included in a transfer unit when transferring image data, and an instruction about the number of line gaps included in the image data. And a second receiving unit 204 (line gap number setting unit).

画像処置装置200は、イメージメモリ215から画像データを取得し、第一の受付部214から上記ライン数を取得し、画像データを、画像データの一画素に含まれるビット数からなるスワップ単位ごとにスワップし、画像データに対して転送バス幅に応じたビット数ごとに設定されるアドレスを上記ライン数からなる転送単位内でデクリメントしながら、第一のシステムメモリ212に転送する転送制御部218を備える。さらに、画像処置装置200は、第一のシステムメモリ212に記憶されている画像データを取得し、第一の受付部214から上記ライン数を取得し、第二の受付部204からラインギャップ数を取得し、上記ライン数およびラインギャップ数に基づいて画像データをラインからなる領域内で再配列するライン補正部210を備える。画像処理装置200は、その他、予備の第二のシステムメモリ216などを備える。   The image processing device 200 acquires image data from the image memory 215, acquires the number of lines from the first reception unit 214, and stores the image data for each swap unit including the number of bits included in one pixel of the image data. A transfer control unit 218 that swaps and transfers the image data to the first system memory 212 while decrementing the address set for each bit number corresponding to the transfer bus width within the transfer unit consisting of the number of lines. Prepare. Further, the image processing apparatus 200 acquires image data stored in the first system memory 212, acquires the number of lines from the first reception unit 214, and acquires the number of line gaps from the second reception unit 204. A line correction unit 210 is provided for acquiring and rearranging image data within an area composed of lines based on the number of lines and the number of line gaps. In addition, the image processing apparatus 200 includes a spare second system memory 216 and the like.

画像データ取得部202は、スキャナの機能を有し、原稿を読み取ってRGB形式のカラー画像データ(以下、RGBデータ)を生成する。ここで、画像データ取得部202は、画像を所定ラインからなる領域内で読み取る。この画像データ取得部202には、後述するように、R、G、Bのそれぞれの色について、CCDで構成されるラインイメージセンサを副走査方向に少しずつずらして並列に設けられている。この種の画像データ取得部202には、このように各色のラインイメージセンサが並列に設けられているので、物理的に原稿上の同一ラインについてそれぞれの色を同時に読み取ることが困難である。このため、画像データ取得部202により取得された画像データには、各色のラインからなる領域内でラインギャップが生じる。   The image data acquisition unit 202 has a scanner function and reads an original to generate RGB color image data (hereinafter, RGB data). Here, the image data acquisition unit 202 reads an image within an area composed of predetermined lines. As will be described later, the image data acquisition unit 202 is provided with a line image sensor composed of a CCD for each color of R, G, and B that is slightly shifted in the sub-scanning direction in parallel. Since this type of image data acquisition unit 202 is provided with line image sensors of each color in this way, it is difficult to physically read the colors of the same line on the document simultaneously. For this reason, in the image data acquired by the image data acquisition unit 202, a line gap is generated in an area composed of lines of each color.

イメージメモリ215は、画像データ取得部202が読み取ったRGBデータをイメージバス201を介して受け取り、記憶する。イメージメモリ215は、例えばSDRAMである。   The image memory 215 receives and stores the RGB data read by the image data acquisition unit 202 via the image bus 201. The image memory 215 is, for example, an SDRAM.

転送制御部218は、イメージメモリ215に記憶されたRGBデータを第一のシステムメモリ212に転送する。転送制御部218は、画像データがカラー画像データであり、ミラー処理を行う場合には、RGBデータそれぞれを3本のラインからなる転送単位で転送する。なお、イメージメモリ215から第一のシステムメモリ212へのデータ転送は、イメージバス201およびシステムバス203を介して行われる。第一のシステムメモリ212は、例えばSDRAMである。第一のシステムメモリ212は、イメージメモリ215から転送されたRデータ、Gデータ、Bデータをそれぞれ記憶する複数のバンクを有する。   The transfer control unit 218 transfers the RGB data stored in the image memory 215 to the first system memory 212. When the image data is color image data and mirror processing is performed, the transfer control unit 218 transfers each of the RGB data in units of transfer composed of three lines. Note that data transfer from the image memory 215 to the first system memory 212 is performed via the image bus 201 and the system bus 203. The first system memory 212 is, for example, an SDRAM. The first system memory 212 has a plurality of banks each storing R data, G data, and B data transferred from the image memory 215.

第一の受付部214は、画像データのミラー処理または回転処理のいずれかを選択することを液晶画面(不図示)などを介してオペレータに提示する。第一の受付部214は、オペレータからミラー処理を選択する旨の指示を受け付けると、上記転送単位を1ライン以上(例えば、RGB各1ラインからなる3ライン)に設定し、設定値を転送制御部218に送信する。第一の受付部214は、オペレータから回転処理を選択する旨の指示を受け付けると、上記転送単位を画像データに含まれるライン数(すなわち、画像データのページごと)に設定し、設定値を転送制御部218に送信する。   The first reception unit 214 presents to the operator via a liquid crystal screen (not shown) or the like to select either image data mirror processing or rotation processing. When the first receiving unit 214 receives an instruction to select mirror processing from the operator, the first receiving unit 214 sets the transfer unit to one line or more (for example, three lines including one line for each of RGB), and transfers the set value. To the unit 218. When the first receiving unit 214 receives an instruction from the operator to select the rotation process, the first receiving unit 214 sets the transfer unit to the number of lines included in the image data (that is, for each page of the image data) and transfers the set value. It transmits to the control part 218.

図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 transfer control unit 218 of the image processing apparatus according to the embodiment. The transfer control unit 218 acquires a read address from the read address generation unit 221 and a read address generation unit 221 that generates an address of data to be read from the image memory 215, and reads out image data from the image memory 215 based on the read address A reading unit 231. Further, the transfer control unit 218 obtains a write address from the write address generation unit 223 and a write address generation unit 223 that generates an address of data to be written to the first system memory 212, and based on the write address A data writing unit 233 that writes image data to the first system memory 212.

転送制御部218では、この読出アドレス生成部221または書込アドレス生成部223の一方は、第一の受付部214から上記転送単位に含まれるライン数を取得し、画像データのアドレスを上記ライン数からなる転送単位内でデクリメントしたアドレスを生成するように構成されている。   In the transfer control unit 218, one of the read address generation unit 221 or the write address generation unit 223 obtains the number of lines included in the transfer unit from the first reception unit 214, and sets the address of the image data as the number of lines. The decremented address is generated within the transfer unit consisting of:

なお、読出アドレス生成部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 image memory 215 as a series of RGB data. The write address generation unit 223 writes the RGB data to the same bank in the first system memory 212. At this time, the read address generation unit 221 and the write address generation unit 223 generate the address of the image data read from the image memory 215 every 16 bits.

データ読出部231およびデータ書込部233は、DMAコントローラ219(ダイレクトメモリーアクセスコントローラ)を構成する。また、中央演算処理部225は、第一の受付部214から反転または回転処理についての指示を受けると、この指示を読出アドレス生成部221および書込アドレス生成部223に送信してこれらの構成要素を制御する。   The data reading unit 231 and the data writing unit 233 constitute a DMA controller 219 (direct memory access controller). In addition, when the central processing unit 225 receives an instruction about the inversion or rotation process from the first reception unit 214, the central processing unit 225 transmits the instruction to the read address generation unit 221 and the write address generation unit 223 to transmit these components. To control.

なお、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 DMA controller 219 can increment or decrement the address at each DMA transfer or not change it, so the memory block is cleared with a specific value, such as memory-to-memory transfer with the data order reversed. Or data transfer with a memory mapped I / O is possible.

図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 line correction unit 210 of the image processing apparatus according to the embodiment. The line correction unit 210 includes an RGB line inversion processing unit 241 that inverts the arrangement of three lines each composed of one RGB line included in the image data. The line correction unit 210 includes a line gap correction unit 243 that reduces the RGB line gap by moving the lines downward by the number of line gaps for each of the RGB lines. When the central processing unit 245 receives an instruction from the first receiving unit 214 regarding the number of lines in the unit for decrementing the address, the central processing unit 245 instructs the RGB line inversion processing unit 241 to specify the number of lines (for example, from one RGB line). Control is performed by transmitting an instruction to invert the line every three lines. When the central processing unit 245 receives an instruction set in advance for the number of line gaps of the image data acquisition unit 202 from the second reception unit 204, the central processing unit 245 transmits this instruction to the line gap correction unit 243 to control it.

図3は、本実施形態に係る画像処理装置200の画像データ取得部202の詳細な構成を示す機能ブロック図である。この画像データ取得部202は、B信号処理部と、G信号処理部と、R信号処理部とを備えている。   FIG. 3 is a functional block diagram showing a detailed configuration of the image data acquisition unit 202 of the image processing apparatus 200 according to the present embodiment. The image data acquisition unit 202 includes a B signal processing unit, a G signal processing unit, and an R signal processing unit.

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) sensor 301a, an analog front end (AFE) circuit 302a, and an A / D converter 303a. The G signal processing unit includes a CCD (G) sensor 301b, an analog front end (AFE) circuit 302b, and an A / D converter 303b. The B signal processing unit includes a CCD (B) sensor 301c, an analog front end (AFE) circuit 302c, and an A / D converter 303c.

本実施形態に係る画像処理装置の動作について、以下説明する。図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 image processing apparatus 200 according to the embodiment. When the operator of the image processing apparatus 200 inputs an instruction to perform copying to the first reception unit 214, the first reception unit 214 transmits this instruction to the image data acquisition unit 202. Upon receiving this instruction, the image data acquisition unit 202 scans a sheet or the like placed on the document table, acquires RGB format image data, and stores it in the image memory 215.

第一の受付部214は、コピーを行う指示を受ける前に、ミラー処理または回転処理を行う旨の指示を受け付けていた場合には、その指示を転送制御部218の中央演算処理部225に送信する。中央演算処理部225は、ミラー処理または回転処理を行う旨の指示を受け付けた(S101)場合には、読出アドレス生成部221を制御して、画像メモリ(イメージメモリ215)内に格納されている画像データの書き込み終了アドレス(Bm−nアドレス)を、転送元アドレス(転送開始アドレス)Nとして設定した読出アドレスを生成させる(S102)。一方、ミラー処理または回転処理をしない場合については、後述する。   If the first reception unit 214 has received an instruction to perform mirror processing or rotation processing before receiving an instruction to perform copying, the first reception unit 214 transmits the instruction to the central processing unit 225 of the transfer control unit 218. To do. When the central processing unit 225 receives an instruction to perform mirror processing or rotation processing (S101), the central processing unit 225 controls the read address generation unit 221 and stores it in the image memory (image memory 215). A read address in which the image data write end address (Bm-n address) is set as the transfer source address (transfer start address) N is generated (S102). On the other hand, the case where the mirror process or the rotation process is not performed will be described later.

次いで、転送制御部218のデータ読出部231は、この読出アドレスを読出アドレス制御部から取得して、この読出アドレスに基づいてイメージメモリ215から画像データを読み出す。この際、画像データをN番地から読み出すことになる(S103)。このように、画像データを終端のアドレスから読み出すために、画像データのアドレスはデクリメントされる。具体的には、イメージメモリ215から読み出した画像データをDMA転送する際には、後述する、図7のR0−1〜Bm−nまでを1ラインとし、Bm−nが記憶されているアドレスを転送開始アドレスとする。   Next, the data reading unit 231 of the transfer control unit 218 acquires the read address from the read address control unit, and reads image data from the image memory 215 based on the read address. At this time, the image data is read from address N (S103). Thus, in order to read the image data from the end address, the address of the image data is decremented. Specifically, when the image data read from the image memory 215 is DMA-transferred, R0-1 to Bm-n in FIG. 7, which will be described later, is one line, and the address where Bm-n is stored is set. This is the transfer start address.

具体的には、転送制御部218の中央演算処理部225は、第一の受付部214から転送単位のライン数についての指示を取得する。中央演算処理部225は、取得した転送単位のライン数からなる領域内で画像データのアドレスをデクリメントする旨の指示を読出アドレス生成部221に送信する。指示を取得した読出アドレス生成部221は、指示されたライン数からなる領域内で画像データのアドレスをデクリメントする。指示されたライン数からなる領域内でデクリメントされたアドレスを取得したデータ読出部231は、取得したアドレスに基づいてイメージメモリ215から画像データを読み出す。   Specifically, the central processing unit 225 of the transfer control unit 218 acquires an instruction regarding the number of lines in the transfer unit from the first reception unit 214. The central processing unit 225 transmits to the read address generation unit 221 an instruction to decrement the address of the image data within the area composed of the acquired number of lines in the transfer unit. The read address generation unit 221 that has acquired the instruction decrements the address of the image data within an area having the specified number of lines. The data reading unit 231 that has acquired the decremented address in the area having the designated number of lines reads the image data from the image memory 215 based on the acquired address.

このとき、第一の受付部214は、画像データのミラー処理または回転処理のいずれかを選択することを液晶画面(不図示)などを介してオペレータに提示する(S105)。そして、第一の受付部214は、オペレータからミラー処理を選択する旨の指示を受け付けると、転送単位をRGB各1ラインからなる3ラインに設定する(S107)。また、第一の受付部214は、オペレータから回転処理を選択する旨の指示を受け付けると、転送単位を画像データのページを構成する全ライン数に設定する(S109)。   At this time, the first accepting unit 214 presents to the operator via the liquid crystal screen (not shown) or the like to select either image data mirroring or rotation (S105). Then, when receiving an instruction to select mirror processing from the operator, the first receiving unit 214 sets the transfer unit to three lines including one line for each of RGB (S107). In addition, when the first reception unit 214 receives an instruction to select rotation processing from the operator, the first reception unit 214 sets the transfer unit to the total number of lines constituting the page of image data (S109).

次いで、DMAコントローラ219は、読み出した画像データを所定のビット数毎にバイトスワップまたは1ビット毎にビットスワップする。この際、中央演算処理部225は、読み出した画像データがカラー画像データまたはモノクロ画像データのいずれであるかを判断する(S104)。中央演算処理部225は、読み出した画像データがカラー画像データであると判断する場合には、画像データをRGB画素を構成するビット数(8ビット)からなるバイト(スワップ単位)毎にバイトスワップする(S106)。一方、中央演算処理部225は、読み出した画像データがモノクロ画像データであると判断する場合には、画像データをモノクロ画素を構成するビット数(1ビット)からなるビット(スワップ単位)毎にビットスワップする(S108)。   Next, the DMA controller 219 performs byte swap for the read image data for each predetermined number of bits or bit swap for each bit. At this time, the central processing unit 225 determines whether the read image data is color image data or monochrome image data (S104). When the central processing unit 225 determines that the read image data is color image data, the image data is byte-swapped for each byte (swap unit) consisting of the number of bits (8 bits) constituting the RGB pixel. (S106). On the other hand, when the central processing unit 225 determines that the read image data is monochrome image data, the central processing unit 225 converts the image data into bits for each bit (swap unit) consisting of the number of bits (1 bit) constituting the monochrome pixel. Swap (S108).

まとめると、処理内容に応じて、転送時のスワップ処理および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.

Figure 2006092506
Figure 2006092506

このように、画像データを所定のビット数毎にバイトスワップまた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 address generation unit 223 to read out the byte-swapped or bit-swapped image data read by the address decremented within a predetermined transfer unit. Write addresses that remain in address order are generated. Further, the data writing unit 233 that has acquired the write address transfers the image data to the transfer destination (S111). That is, the image data is written into the first system memory 212.

中央演算処理部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 image memory 215, and ends DMA transfer if it does not remain (S113). On the other hand, if image data for which DMA transfer has not been completed still remains, N = N−1 (S115), that is, the address to be read is decremented, and the data reading unit 231 of the transfer control unit 218 is further decremented. Reads out the N address (N-1 address) of the image data from the image memory 215 (S103). Thereafter, similar steps are repeated until the DMA transfer is completed. In this case, when proceeding to the next RGB, the DMA transfer may be temporarily ended, the next Bm-n address may be newly input to N, and the DMA transfer may be started again.

図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 step 101, the write start address (R0-1) of the image memory is set as the transfer source address (transfer start address) N (S121). Similarly to the above, the data reading unit 231 of the transfer control unit 218 reads the N address of the image data from the image memory 215 (S123), and the data writing unit 233 writes the image data to the first system memory 212. Thus, the image data is transferred to the transfer destination (S125). In this transfer process, the image data is transferred in the same address order without decrementing the address.

そして、中央演算処理部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 data reading unit 231 of the transfer control unit 218 further stores the image data N from the image memory 215. The address (N + 1 address) is read (S123). Thereafter, similar steps are repeated until the DMA transfer is completed. At this time, when proceeding to the next RGB, the DMA transfer is once ended, the address of the next R0-1 is newly input to N, and the DMA transfer is started again.

上記のようにして、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 line correction unit 210 of the image processing apparatus according to the embodiment. The line correction unit 210 sequentially performs line correction processing for each block including three lines of one RGB. When the central processing unit 245 of the line correction unit 210 acquires information indicating that the image data has been transferred to the first system memory 212 by the transfer control unit 218 by searching the first system memory 212. The line correction processing for the first block (n = 1) in the first system memory 212 is started (S301).

ライン補正処理が開始されると、中央演算処理部245は、第一のシステムメモリ212内の画像データのバンクから3n行目のデータを読み出し(S303)、RGBライン反転処理部241およびラインギャップ補正部243と協働して、第二のシステムメモリ216内のバンクの3n−2行目にデータを書き込む(S305)。   When the line correction processing is started, the central processing unit 245 reads out the 3n-th row data from the image data bank in the first system memory 212 (S303), and the RGB line inversion processing unit 241 and the line gap correction are read out. In cooperation with the unit 243, data is written to the 3n-2th row of the bank in the second system memory 216 (S305).

なお、RGBライン反転処理部241およびラインギャップ補正部243は、中央演算処理部245に隣接して設けられているメモリ中にロードされているプログラムのモジュールである。この2つのモジュールが組み合わさって一つのプログラムを構成し、中央演算部245がこのプログラムのアルゴリズムに基づいて図6に示すアルゴリズムを実行する。   The RGB line inversion processing unit 241 and the line gap correction unit 243 are program modules loaded in a memory provided adjacent to the central processing unit 245. The two modules are combined to form one program, and the central processing unit 245 executes the algorithm shown in FIG. 6 based on the algorithm of this program.

ラインギャップ解消のための基準とするRラインについては、中央演算処理部245とRGBライン反転処理部241とが協働して、2ライン上のラインに移動させることにより、転送により反転してBGR配列となってしまった色相配列を、もとのRGB配列に相当する位置に戻す。   Regarding the R line as a reference for eliminating the line gap, the central processing unit 245 and the RGB line inversion processing unit 241 cooperate to move to a line on two lines, thereby reversing by transfer and BGR. The hue array that has become the array is returned to the position corresponding to the original RGB array.

次いで、中央演算処理部245は、第一のシステムメモリ212内の画像データのバンクから3n−1行目のデータを読み出し(S307)、RGBライン反転処理部241およびラインギャップ補正部243と協働して、第二のシステムメモリ216内のバンクの(3n−1)+6行目にデータを書き込む(S309)。   Next, the central processing unit 245 reads the 3n-1 line data from the bank of image data in the first system memory 212 (S307), and cooperates with the RGB line inversion processing unit 241 and the line gap correction unit 243. Then, data is written in the (3n-1) + 6th row of the bank in the second system memory 216 (S309).

画像データ取得部202が取得してきた当初から、Gラインは、Rラインに対してブロック2本分(ライン6本文)のラインギャップを有する。また、Gラインについては、RGB配列がBGR配列に反転しても、ブロック内での相対的位置は維持される。このため、中央演算処理部245とラインギャップ補正部243とが協働して、6ライン下のラインに移動させることにより、Gラインについてのラインギャップを解消する。   From the beginning when the image data acquisition unit 202 has acquired, the G line has a line gap of two blocks (the text of the line 6) with respect to the R line. As for the G line, even if the RGB array is inverted to the BGR array, the relative position in the block is maintained. For this reason, the central arithmetic processing unit 245 and the line gap correction unit 243 cooperate to move to the line 6 lines below, thereby eliminating the line gap for the G line.

次いで、中央演算処理部245は、第一のシステムメモリ212内の画像データのバンクから3n−2行目のデータを読み出し(S311)、RGBライン反転処理部241およびラインギャップ補正部243と協働して、第二のシステムメモリ216内のバンクの(3n−2)+2+12行目にデータを書き込む(S313)。   Next, the central processing unit 245 reads the 3n-2nd row data from the image data bank in the first system memory 212 (S311), and cooperates with the RGB line inversion processing unit 241 and the line gap correction unit 243. Then, data is written to the (3n−2) + 2 + 12th row of the bank in the second system memory 216 (S313).

画像データ取得部202が取得してきた当初から、Bラインは、Rラインに対してブロック4本分(ライン12本文)のラインギャップを有する。また、Bラインについては、RGB配列がBGR配列に反転することに伴い、ブロック内での相対的位置が反転してしまっている。このため、中央演算処理部245とRGBライン反転処理部241とラインギャップ補正部243とが協働して、2ライン+12ライン下のラインに移動させることにより、Bラインについてのラインギャップを解消し、転送により反転してBGR配列となってしまった色相配列を、もとのRGB配列に相当する位置に戻す。   From the beginning when the image data acquisition unit 202 has acquired, the B line has a line gap of four blocks (the text of the line 12) with respect to the R line. As for the B line, the relative position in the block is inverted as the RGB array is inverted to the BGR array. For this reason, the central processing unit 245, the RGB line inversion processing unit 241 and the line gap correction unit 243 cooperate to move to the line 2 lines + 12 lines, thereby eliminating the line gap for the B line. The hue array that has been inverted by transfer to become the BGR array is returned to the position corresponding to the original RGB array.

このように、画像データを転送制御部218により反転処理しつつ転送し、ライン補正部210により、ラインの再配列を行うと、画像データのデータ構造は、図8に示すような変化を示す。図8は、本実施形態に係る画像処理装置の動作による画像データのデータ構造の変化を示すデータ構造図である。   As described above, when the image data is transferred while being inverted by the transfer control unit 218, and the lines are rearranged by the line correction unit 210, the data structure of the image data changes as shown in FIG. FIG. 8 is a data structure diagram showing a change in the data structure of the image data due to the operation of the image processing apparatus according to the present embodiment.

図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 data acquisition unit 202. Thereafter, in a state in which the line gap is eliminated as a result of the line correction processing by the line correction unit 210, it is the jth line from the top, and represents a line composed of signals of red, green, and blue color components of the pixel.

ここでは、転送制御部218の転送処理により、画像データのアドレスを所定のライン数(RGB各1ラインからなる3ライン)からなる領域内でデクリメントし、画像データのRGB画素を8ビットごとにバイトスワップした結果、RGB各1本のライン3本からなるブロック内のRGBラインの相対位置が反転している。また、いずれのラインにおいても、各画素データの左右の配列が反転している。   Here, by the transfer process of the transfer control unit 218, the address of the image data is decremented within an area consisting of a predetermined number of lines (three lines each consisting of one RGB line), and the RGB pixels of the image data are byte converted every 8 bits. As a result of the swapping, the relative positions of the RGB lines in the block composed of three lines for each of RGB are reversed. In any line, the left and right arrangements of the pixel data are inverted.

そして、その転送された画像データを、ライン補正部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 line correction unit 210. The entire line gap has been eliminated.
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 image processing apparatus 200, mirror processing or rotation processing of image data and line correction can be quickly performed. That is, in the transfer control unit 218, if the address of the image data is decremented within an area consisting of a predetermined number of lines (three lines each consisting of RGB), and the RGB pixels of the image data are byte-swapped every 8 bits, Mirror processing can be performed. In addition, the transfer control unit 218 decrements the address of the image data within the area of the page unit (for every total number of lines constituting the page), and byte swaps the RGB pixels of the image data every 8 bits. It can be carried out. In the mirror process, the RGB array is inverted to become a BGR array, but the line correction unit can return the BGR array to the RGB array to eliminate the line gap that the image data originally has. Therefore, according to the image processing apparatus 200, it is possible to suppress the deterioration of the image quality of the image data associated with the DMA transfer process, and to improve the image quality by eliminating the line gap.

第二に、画像処理装置200によれば、画像データの反転処理または回転処理を迅速に実行可能である。すなわち、転送制御部218は、DMA(ダイレクトメモリアクセスコントローラ)に転送処理を実質的に行わせるため、CPUおよびソフトウェアを用いて画像データの転送を行うよりも迅速に、デクリメントしつつビットスワップまたはバイトスワップすることができる。したがって、高速かつ正確な画像データの反転処理または回転処理が可能となる。   Secondly, according to the image processing apparatus 200, it is possible to quickly execute the inversion processing or rotation processing of the image data. That is, the transfer control unit 218 causes the DMA (direct memory access controller) to perform transfer processing substantially, so that bit swap or byte decrementing is performed more quickly than transfer of image data using a CPU and software. Can be swapped. Therefore, high-speed and accurate image data inversion processing or rotation processing can be performed.

第三に、画像処理装置200によれば、回路配置を簡略化できる。すなわち、ライン補正部210は、RGBライン反転処理部241およびラインギャップ補正部243の2種類のコンポーネントの組み合わせである画像データ補正プログラムと、中央演算処理部245とが協働する仕組みである。このため、中央演算処理部245は、画像データ補正プログラムを読み込み、画像データ補正プログラムを実行することにより、画像データをラインからなる領域内で再配列可能である。したがって、ソフトウェアによりライン補正を行うため、ライン補正を行うための複雑な回路配置が不要となり、画像処理装置200の回路配置を簡略化できる。   Third, according to the image processing apparatus 200, the circuit arrangement can be simplified. That is, the line correction unit 210 is a mechanism in which an image data correction program that is a combination of two types of components, the RGB line inversion processing unit 241 and the line gap correction unit 243, and the central processing unit 245 cooperate. For this reason, the central processing unit 245 can read the image data correction program and execute the image data correction program, so that the image data can be rearranged within an area composed of lines. Therefore, since line correction is performed by software, a complicated circuit arrangement for performing line correction is not required, and the circuit arrangement of the image processing apparatus 200 can be simplified.

また、この際、通常の複合型コピー機に備わる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 image processing apparatus 200 can be simplified. Further, according to the image processing apparatus 200, the same effect can be obtained even in the case of monochrome data.

一方、画像処理装置200の作用効果の説明のために、本実施形態とは異なる構造の画像処理装置について対比して説明すると、以下の通りである。すなわち、本実施形態とは異なる構造の画像処理装置においては、先に画像データのラインギャップを解消し、その後、画像データを転送しつつアドレスのデクリメントを行う。   On the other hand, in order to explain the operational effects of the image processing apparatus 200, an image processing apparatus having a structure different from that of the present embodiment will be described as follows. That is, in the image processing apparatus having a structure different from that of the present embodiment, the line gap of the image data is first eliminated, and then the address is decremented while transferring the image data.

この場合、イメージメモリ215からライン補正済の画像データをCCDからのビデオ信号を1画素8ビットの多値データに変換し、それを2画素単位(16ビット単位)で第一のシステムメモリ212に転送する(バス幅が16ビットであるため)場合、イメージメモリ215からデータを読み出す際に、画像データのRGB配列がBGR配列に反転してしまう。このため、画像データの転送後にさらにBGR配列をRGB配列に戻す手段を回路構成として設ける場合には、全体の装置構成が複雑になる。また、同様の手段をミラー処理を実現するソフトウェアとして設ける場合には、画像データの処理時間が長時間化する。   In this case, the line-corrected image data from the image memory 215 is converted from a video signal from the CCD into multi-value data of 8 bits per pixel, and the converted data is stored in the first system memory 212 in units of 2 pixels (16 bits). When data is transferred (because the bus width is 16 bits), when data is read from the image memory 215, the RGB array of the image data is inverted to the BGR array. For this reason, when a means for returning the BGR arrangement to the RGB arrangement after the transfer of the image data is provided as a circuit configuration, the entire apparatus configuration becomes complicated. Further, when the same means is provided as software for realizing the mirror process, the processing time of the image data becomes longer.

これに対して、画像処理装置200では、多値(8ビット)のカラーデータのミラー処理を行うに際して、2画素16ビット単位で読み取ったカラーデータをイメージメモリ215に記憶する機能がある。また、LSIに備わるDMAコントローラ219には、16ビット幅のイメージメモリ215に対するアドレス制御にデクリメント機能があり、またデータ制御にビット/バイトスワップ機能がある。   On the other hand, the image processing apparatus 200 has a function of storing color data read in units of 16 bits of 2 pixels in the image memory 215 when performing mirror processing of multi-value (8 bits) color data. The DMA controller 219 provided in the LSI has a decrement function for address control with respect to the image memory 215 having a 16-bit width, and a bit / byte swap function for data control.

そして、ラインギャップのある状態で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 image memory 215 in which RGB data is stored in a state where there is a line gap. DMA transfer is performed while the address is decremented. In DMA transfer, data is byte-swapped.

これにより、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 source image memory 215 to the transfer destination first system memory 212, if an address considering the line gap is set as the transfer destination address, the written image data is The image data is subjected to line gap correction. Therefore, the line correction process by software can be omitted.

あるいは、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 source image memory 215 and the transfer destination system memory 212 to have a capacity of one page, DMA transfer of data of one page of image data can be performed smoothly. In this case, since the number of times of transfer by DMA is only once per page, the transfer process is simplified. Therefore, it is possible to invert or rotate the image data even faster and more accurately.

実施形態における画像処理装置の構成を示す機能ブロック図である。1 is a functional block diagram illustrating a configuration of an image processing apparatus according to an embodiment. 実施形態に係る画像処理装置の転送制御部およびライン補正部の詳細な構成を示す機能ブロック図である。3 is a functional block diagram illustrating a detailed configuration of a transfer control unit and a line correction unit of the image processing apparatus according to the embodiment. FIG. 実施形態に係る画像処理装置の画像データ取得部の詳細な構成を示す機能ブロック図である。It is a functional block diagram which shows the detailed structure of the image data acquisition part of the image processing apparatus which concerns on embodiment. 実施形態に係る画像処理装置の転送制御部の動作を説明するためのフローチャートである。5 is a flowchart for explaining an operation of a transfer control unit of the image processing apparatus according to the embodiment. 実施形態に係る画像処理装置の転送制御部の動作を説明するためのフローチャートである。5 is a flowchart for explaining an operation of a transfer control unit of the image processing apparatus according to the embodiment. 実施形態に係る画像処理装置のライン補正部の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of the line correction part of the image processing apparatus which concerns on embodiment. 実施形態に係る画像処理装置の転送制御部の動作による画像データのデータ構造の変化を示すデータ構造図である。FIG. 6 is a data structure diagram showing a change in the data structure of image data by the operation of the transfer control unit of the image processing apparatus according to the embodiment. 実施形態に係る画像処理装置の動作による画像データのデータ構造の変化を示すデータ構造図である。It is a data structure figure which shows the change of the data structure of the image data by operation | movement of the image processing apparatus which concerns on embodiment. 従来の画像ファイリング装置の構成を説明するための機能ブロック図である。It is a functional block diagram for demonstrating the structure of the conventional image filing apparatus. 従来のカラー画像処理装置の構成を説明するための機能ブロック図である。It is a functional block diagram for demonstrating the structure of the conventional color image processing apparatus.

符号の説明Explanation of symbols

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) sensor 31b CCD (G) sensor 31c CCD (B) sensor 32 CPU
32a Analog front end circuit 32b Analog front end circuit 32c Analog front end circuit 33a A / D converter 33b A / D converter 33c A / D converter 34 Line correction unit 40 DMA controller 44 Interface 46 Interface 50 Disk device 52 Plate making process Workstation 200 Image processing device 201 Image bus 202 Image data acquisition unit 203 System bus 204 Second reception unit 210 Line correction unit 212 First system memory 214 First reception unit 215 Image memory 216 Second system memory 218 Transfer Control unit 219 DMA controller 221 Read address generation unit 223 Write address generation unit 225 Central processing unit 231 Data read unit 233 Data write unit 241 RGB line inversion processing unit 2 3 Line gap correction unit 245 Central processing unit 301a CCD (R) sensor 301b CCD (G) sensor 301c CCD (B) sensor 302a Analog front end (AFE) circuit 302b Analog front end (AFE) circuit 302c Analog front end (AFE) ) Circuit 303a A / D converter 303b A / D converter 303c A / D converter

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:
請求項1に記載の画像処理装置において、
前記転送制御手段は、
前記第一の記憶手段から読み出す画像データの詠出アドレスを生成する読出アドレス生成手段と、
前記読出アドレス生成手段から前記読出アドレスを取得し、前記読出アドレスに基づいて前記第一の記憶手段から前記画像データを読み出すデータ読出手段と、
前記画像データの一画素に含まれるビット数からなる前記スワップ単位ごとに前記読み出された画像データをスワップするスワップ手段と、
前記第二の記憶手段に書き込む画像データの書込アドレスを生成する書込アドレス生成手段と、
前記書込アドレス生成手段から前記書込アドレスを取得し、前記書込アドレスに基づいて前記第二の記憶手段に前記スワップされた画像データを書き込むデータ書込手段と、
を含み、
前記読出アドレス生成手段または前記書込アドレス生成手段の一方は、前記第一の受付部から前記ライン数を取得し、前記画像データのアドレスを前記ライン数からなる前記転送単位内でデクリメントしたアドレスを生成するように構成されている
ことを特徴とする画像処理装置。
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.
請求項2に記載の画像処理装置において、
前記画像データがカラー画像データまたはモノクロ画像データのいずれであるかを判断する画像タイプ判断部をさらに含み、
前記スワップ手段は、前記画像タイプ判断部が前記画像データをカラー画像データであると判断する場合には、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.
請求項2または3に記載の画像処理装置において、
前記読出アドレス生成手段は、前記第一の記憶手段から読み出す画像データのアドレスを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.
請求項1乃至4いずれかに記載の画像処理装置において、
前記ライン補正手段は、
前記第一の受付部から前記ライン数を取得し、前記ライン数からなる領域内で前記画像データのラインの配列を逆転させるライン配列逆転手段と、
前記第二の受付部から前記ラインギャップ数を取得し、個々の前記ラインに対応する前記ラインギャップ数だけ個々の前記ラインの配列を一方向に移動させるラインギャップ補正手段と、
を含む
ことを特徴とする画像処理装置。
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:
請求項1乃至5いずれかに記載の画像処理装置において、
前記画像データは、複数の互いに異なる色相のラインからなるブロックを複数本含む画像データであり、
前記ライン補正手段は、前記転送制御手段により前記ブロック内における色相の配置が逆転してなる前記画像データのラインを再配列し、前記ブロック内における前記色相の配置を再逆転させるように構成されている
ことを特徴とする画像処理装置。
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.
請求項1乃至6いずれかに記載の画像処理装置において、
前記第一の受付部は、
画像データのミラー処理または回転処理のいずれかを選択することをオペレータに提示し、オペレータからミラー処理を選択する旨の指示を受け付けると、前記転送単位を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乃至6いずれかに記載の画像処理装置において、
前記第一の受付部は、
画像データのミラー処理または回転処理のいずれかを選択することをオペレータに提示し、オペレータからミラー処理を選択する旨の指示を受け付けると、前記転送単位を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乃至6いずれかに記載の画像処理装置において、
前記第一の受付部は、
画像データのミラー処理または回転処理のいずれかを選択することをオペレータに提示し、オペレータからミラー処理を選択する旨の指示を受け付けると、前記転送単位を前記画像データの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.
JP2004310759A 2004-08-27 2004-10-26 Image processor Pending JP2006092506A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (4)

* Cited by examiner, † Cited by third party
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