JPH11168610A - Image processor - Google Patents
Image processorInfo
- Publication number
- JPH11168610A JPH11168610A JP34086097A JP34086097A JPH11168610A JP H11168610 A JPH11168610 A JP H11168610A JP 34086097 A JP34086097 A JP 34086097A JP 34086097 A JP34086097 A JP 34086097A JP H11168610 A JPH11168610 A JP H11168610A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- image processing
- scanning direction
- image
- pixels
- 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
Landscapes
- Image Input (AREA)
- Image Processing (AREA)
- Storing Facsimile Image Data (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、画像処理装置に関
し、より詳細には、カラー画像信号を転送して画像処理
を行うカラー複写機、カラースキャナ、カラープリンタ
等の画像処理装置に関する。[0001] 1. Field of the Invention [0002] The present invention relates to an image processing apparatus, and more particularly, to an image processing apparatus such as a color copier, a color scanner, and a color printer for transferring a color image signal and performing image processing.
【0002】[0002]
【従来の技術】画像処理装置でラスタースキャンされた
画像データを取り扱う場合において、副走査方向の近傍
画素を参照するフィルタ演算や副走査補間演算を行う際
には、主走査方向の1ラインの全ての画素を記憶するラ
インメモリを複数ライン分用意して、複数ラインの画像
データを参照して演算処理を行っている。2. Description of the Related Art When processing image data that has been raster-scanned by an image processing apparatus, when performing a filtering operation or a sub-scanning interpolation operation that refers to neighboring pixels in the sub-scanning direction, all of one line in the main scanning direction is required. Are prepared for a plurality of lines, and the arithmetic processing is performed with reference to the image data of the plurality of lines.
【0003】図10は、カラースキャナにおいて、スキ
ャナ装置(図示せず)から取り込んだRGB画像データ
を処理して、カラーのプリンタ装置(図示せず)に出力
する従来の一般的なシステムのブロック図である。副走
査補間回路1001は、RGB画像データのうちB画像
データに位置合わせされたR画像データ及びG画像デー
タを演算処理により求めて、スキャナγ部1002に出
力する。スキャナγ回路1002では、入力された各画
像データのγ補正をしてマスキング処理回路1003に
出力する。マスキング処理回路1003では、入力され
た加色系のRGB画像データを、記録色用の減色系のデ
ジタル画像信号に色度座標変換して、UCR処理回路1
004に出力する。UCR処理回路1004では、下地
除去の処理を行って階調処理回路1005に出力する。
階調処理回路1005では、主走査方向の変倍処理やプ
リンタγ補正処理等を行ってプリンタ装置に出力する。FIG. 10 is a block diagram of a conventional general system in which a color scanner processes RGB image data captured from a scanner device (not shown) and outputs the processed RGB image data to a color printer device (not shown). It is. The sub-scanning interpolation circuit 1001 obtains, by arithmetic processing, R image data and G image data that are aligned with the B image data among the RGB image data, and outputs the obtained data to the scanner γ unit 1002. The scanner γ circuit 1002 performs γ correction on each input image data and outputs the result to the masking processing circuit 1003. The masking processing circuit 1003 performs chromaticity coordinate conversion of the input additive RGB image data into a subtractive color digital image signal for recording colors,
004. The UCR processing circuit 1004 performs background removal processing and outputs the result to the gradation processing circuit 1005.
The gradation processing circuit 1005 performs scaling processing in the main scanning direction, printer γ correction processing, and the like, and outputs the result to the printer device.
【0004】図11は、図10の画像処理装置における
副走査補間回路1001の構成を示すブロック図であ
る。この副走査補間回路1001では、B画像データに
合わせてR画像データ及びG画像データの副走査補間処
理を行う。このため、R画像データの副走査補間回路1
101、G画像データの副走査補間回路1102が設け
られている。また、副走査補間回路1101には、補間
演算処理で求める仮想位置の1ラインの画像データの前
後2ライン分の画像データを参照するため、合計3ライ
ン分のラインメモリ1103が設けられている。同様
に、副走査補間回路1102には、合計3ライン分のラ
インメモリ1104が設けられている。副走査補間の演
算を行わないB画像データについては、1ライン分のみ
のラインメモリ1105が設けられている。FIG. 11 is a block diagram showing a configuration of a sub-scanning interpolation circuit 1001 in the image processing apparatus shown in FIG. The sub-scanning interpolation circuit 1001 performs sub-scanning interpolation processing of R image data and G image data in accordance with B image data. Therefore, the sub-scanning interpolation circuit 1 for the R image data
101, a sub-scanning interpolation circuit 1102 for G image data is provided. In addition, the sub-scanning interpolation circuit 1101 is provided with a line memory 1103 for a total of three lines in order to refer to image data for two lines before and after the image data for one line at the virtual position obtained by the interpolation calculation processing. Similarly, the sub-scanning interpolation circuit 1102 is provided with a line memory 1104 for a total of three lines. For B image data for which sub-scanning interpolation is not performed, a line memory 1105 for only one line is provided.
【0005】各ラインメモリは、主走査方向の全画素数
と同じビット数又はそれ以上のビット数で構成され、書
き込み制御タイミング信号に応じて、ラスタースキャン
の画素順に画像データをシーケンシャルに記憶し、読み
出しタイミング信号に応じて、書き込みされた画素順す
なわちラスタースキャンの画素順に画像データをシーケ
ンシャルに出力するFIFO(先入れ先き出し)メモリ
である。Each line memory has the same number of bits or more than the total number of pixels in the main scanning direction, and sequentially stores image data in raster scan pixel order in accordance with a write control timing signal. This is a FIFO (first-in, first-out) memory that sequentially outputs image data in the order of pixels written, that is, in the order of raster scan pixels in response to a read timing signal.
【0006】また、図に示さないが、図10におけるマ
スキング処理回路1003における平滑化フィルタ、及
びUCR処理回路1004におけるエッジ強調フィルタ
にも同様に、主走査方向に1ライン分の容量をもつ複数
のラインメモリが使用されている。Although not shown, the smoothing filter in the masking processing circuit 1003 in FIG. 10 and the edge enhancement filter in the UCR processing circuit 1004 similarly have a plurality of lines each having a capacity of one line in the main scanning direction. Line memory is used.
【0007】[0007]
【発明が解決しようとする課題】しかしながら、上記従
来の画像処理装置においては、汎用メモリに比較してビ
ット単価が高いラインメモリを多用しているため、製品
コストが高くなるという問題があった。しかも近年にお
いては、高画質化の要求も強くなり、高密度の画素を処
理する必要に迫られている。このため、主走査方向の1
ラインの画素数も必然的に多くなる。したがって、高画
質化対応のラインメモリの価格が高騰することになり、
その結果、より一層製品コストが高くなることが懸念さ
れている。また一方、画像処理装置に対する高速化への
要求も強くなっており、このため従来のラインメモリで
は高速アクセスに対応できなくなってきている。However, in the above-mentioned conventional image processing apparatus, a line memory having a higher unit cost per bit than a general-purpose memory is frequently used, so that there is a problem that the product cost is increased. Moreover, in recent years, the demand for higher image quality has become stronger, and it is necessary to process high-density pixels. For this reason, 1 in the main scanning direction
The number of pixels in the line also inevitably increases. Therefore, the price of the line memory corresponding to high image quality will rise,
As a result, there is a concern that the product cost will be further increased. On the other hand, demands for high-speed image processing apparatuses have been increasing, so that conventional line memories cannot support high-speed access.
【0008】本発明は上記に鑑みてなされたものであ
り、本発明の課題は、高速バースト動作による高速アク
セスが可能で、かつ、ラインメモリよりも安価な汎用メ
モリを使用してコストダウンを実現した画像処理装置を
提供することを目的とする。The present invention has been made in view of the above, and it is an object of the present invention to realize a cost reduction by using a general-purpose memory which can be accessed at a high speed by a high-speed burst operation and is cheaper than a line memory. It is an object of the present invention to provide an image processing apparatus having the above configuration.
【0009】[0009]
【課題を解決するための手段】上記目的を達成するため
に、請求項1に係る画像処理装置は、ラスタースキャン
された画像データを任意のアドレスに書き込み可能な第
1の記憶手段と、画像データを主走査方向の全画素の1
ラインごとに第1の記憶手段に書き込んで記憶させ、第
1の記憶手段に記憶された複数ライン分の画像データを
主走査方向の全画素数のうち所定の画素数及び副走査方
向の所定のライン数からなるブロックごとに読み出す第
1の記憶制御手段と、第1の記憶制御手段によって第1
の記憶手段から読み出されたブロックごとの画像データ
に対して所定の画像処理を施す画像処理手段と、画像処
理された画像データを任意のアドレスに書き込み可能な
第2の記憶手段と、画像処理手段によって画像処理され
た画像データをブロックごとに第2の記憶手段に書き込
んで記憶させ、第2の記憶手段に記憶された画像データ
を主走査方向の全画素の1ラインごとに読み出して出力
する第2の記憶制御手段と、を備えた構成になってい
る。According to a first aspect of the present invention, there is provided an image processing apparatus comprising: first storage means capable of writing raster-scanned image data at an arbitrary address; To 1 of all pixels in the main scanning direction.
Each line is written and stored in the first storage means, and the image data of a plurality of lines stored in the first storage means is stored in the predetermined number of pixels in the main scanning direction and the predetermined number of pixels in the sub-scanning direction. First storage control means for reading out each block consisting of the number of lines, and first storage control means
Image processing means for performing predetermined image processing on the image data for each block read from the storage means of the above, a second storage means capable of writing the image-processed image data to an arbitrary address, The image data processed by the means is written and stored in the second storage means for each block, and the image data stored in the second storage means is read out and output for every line of all pixels in the main scanning direction. And a second storage control means.
【0010】請求項1に係る画像処理装置によれば、ス
キャナ装置等の外部装置によってラスタースキャンされ
た画像データを、画像処理前においては、主走査方向の
全画素の1ラインごとに任意のアドレスに書き込み可能
なSRAM等の汎用の第1の記憶手段に書き込み、記憶
された画像データを読み出す際は、全画素の1ラインで
はなく、所定の画素数及び副走査方向の所定のライン数
からなるブロックごとに読み出し、そのブロックごとに
画像処理を施す。画像処理後においては、画像データを
ブロックごとに任意のアドレスに書き込み可能なSRA
M等の汎用の第2の記憶手段に書き込み、画像処理され
た画像データを読み出す際は、主走査方向の全画素の1
ラインごとに読み出して、プリンタ等の外部装置に出力
する。According to the image processing apparatus of the first aspect, before image processing, image data raster-scanned by an external device such as a scanner device has an arbitrary address for each line of all pixels in the main scanning direction. When reading out the stored image data by writing to a general-purpose first storage unit such as an SRAM which can be written to the memory, it is not a single line of all pixels but a predetermined number of pixels and a predetermined number of lines in the sub-scanning direction. Reading is performed for each block, and image processing is performed for each block. After image processing, an SRA capable of writing image data to an arbitrary address for each block
When writing to the general-purpose second storage means such as M and reading out image-processed image data, one pixel of all pixels in the main scanning direction is read.
The data is read out line by line and output to an external device such as a printer.
【0011】また、請求項2に係るは画像処理装置は、
請求項1において、画像処理手段が、少なくとも前記所
定の画素数のビット数を有し、ブロックごとの画像処理
のための所定のライン数のラインメモリを有することを
特徴とする。According to a second aspect of the present invention, an image processing apparatus comprises:
2. The image processing apparatus according to claim 1, wherein the image processing means has a line memory having at least the predetermined number of pixels and a predetermined number of lines for image processing for each block.
【0012】請求項2に係る画像処理装置によれば、ラ
インメモリによって、補間処理等の画像処理をブロック
単位で行う。According to the image processing apparatus of the second aspect, image processing such as interpolation processing is performed in block units by the line memory.
【0013】また、請求項3に係る画像処理装置は、請
求項1又は2において、第1及び第2の記憶手段が、主
走査方向の全画素数及び副走査方向の所定のライン数の
画像データを記憶するバンクエリアを少なくとも2個以
上有し、第1の記憶制御手段が、2つのバンクエリアに
所定量の画像データを重複して書き込むことを特徴とす
る。According to a third aspect of the present invention, in the image processing apparatus according to the first or second aspect, the first and second storage means store the image data of all pixels in the main scanning direction and a predetermined number of lines in the sub scanning direction. It is characterized by having at least two or more bank areas for storing data, and wherein the first storage control means duplicately writes a predetermined amount of image data to the two bank areas.
【0014】請求項3に係る画像処理装置によれば、2
つのバンクエリアに、例えば主走査方向の全画素の1ラ
イン等の、所定量の同じ画像データを重複して書き込
む。According to the image processing apparatus of the third aspect,
In one bank area, a predetermined amount of the same image data such as one line of all pixels in the main scanning direction is redundantly written.
【0015】請求項4に係る画像処理装置は、請求項1
又は2において、第1の記憶制御手段が、ラスタースキ
ャンされた主走査方向の全画素及び副走査方向の所定数
のラインで構成される所定の矩形範囲の画像データのう
ち、任意の部分矩形範囲の画像データを主走査方向に反
転させて第1の記憶手段に書き込むことを特徴とする。According to a fourth aspect of the present invention, there is provided an image processing apparatus according to the first aspect.
Or in 2, the first storage control means selects an arbitrary partial rectangular area out of the image data of the predetermined rectangular area formed by raster-scanning all pixels in the main scanning direction and a predetermined number of lines in the sub-scanning direction. Is written in the first storage means after inverting the image data in the main scanning direction.
【0016】請求項4に係る画像処理装置によれば、1
ページ等の所定の矩形範囲の画像データのうち、任意の
部分矩形範囲の画像データを左右を反転させて書き込
み、部分ミラー処理を行う。According to the image processing apparatus of the fourth aspect, 1
Of the image data of a predetermined rectangular range such as a page, image data of an arbitrary partial rectangular range is written by inverting left and right, and partial mirror processing is performed.
【0017】請求項5に係る画像処理装置は、請求項1
又は2において、第1の記憶制御手段が、ラスタースキ
ャンされた主走査方向の全画素及び副走査方向の所定数
のラインで構成される所定の矩形範囲の画像データのう
ち、任意の部分の画像データをラスタースキャンされた
画像データ以外の他の画像データに変更することを特徴
とする。According to a fifth aspect of the present invention, there is provided an image processing apparatus according to the first aspect.
Or in 2, the first storage control means is configured to execute an image of an arbitrary portion of the raster-scanned image data of a predetermined rectangular range including all pixels in the main scanning direction and a predetermined number of lines in the sub-scanning direction. It is characterized in that data is changed to image data other than raster-scanned image data.
【0018】請求項5に係る画像処理装置によれば、1
ページ等の所定の矩形範囲の画像データのうち、任意の
部分を他の画像データに差し替える編集処理を行う。According to the image processing apparatus of claim 5, 1
An editing process is performed to replace an arbitrary part of the image data of a predetermined rectangular range such as a page with another image data.
【0019】請求項6に係る画像処理装置は、請求項1
〜5のいずれかにおいて、第1の記憶制御手段が、第1
の記憶手段から読み出した画像データが有効画像データ
であることを示す有効画像信号を画像処理手段に出力
し、画像処理手段が、有効画像信号の有無に応じて画像
処理を行うことを特徴とする。An image processing apparatus according to claim 6 is the image processing apparatus according to claim 1.
In any one of (a) to (d), the first storage control means includes
Outputting an effective image signal indicating that the image data read from the storage means is effective image data to the image processing means, and performing image processing according to the presence or absence of the effective image signal. .
【0020】請求項6に係る画像処理装置によれば、画
像処理前の画像データが有効画像データである場合に、
隣接するラインの画素を参照する補間処理等の画像処理
を行い、有効画像データでない場合には、補間処理等の
画像処理は行わない。According to the image processing apparatus of the present invention, when the image data before image processing is valid image data,
Image processing such as interpolation processing that refers to pixels on adjacent lines is performed. If the image data is not valid image data, image processing such as interpolation processing is not performed.
【0021】請求項7に係る画像処理装置は、請求項1
又は2において、第1の記憶制御手段が、ラスタースキ
ャンされた主走査方向の全画素及び副走査方向の所定数
のラインで構成される所定の矩形範囲の画像データを主
走査方向に反転させて第1の記憶手段から読み出すこと
を特徴とする。According to a seventh aspect of the present invention, there is provided the image processing apparatus according to the first aspect.
Or in 2, the first storage control means inverts, in the main scanning direction, image data of a predetermined rectangular range formed by raster-scanning all pixels in the main scanning direction and a predetermined number of lines in the sub-scanning direction. It is characterized by reading from the first storage means.
【0022】請求項7に係る画像処理装置によれば、1
ページ等の所定の矩形範囲の画像データを左右を反転さ
せて読み出し、1ページ等の所定の矩形範囲のすべてに
ついてミラー処理を行う。According to the image processing apparatus of claim 7, 1
The image data of a predetermined rectangular range such as a page is read by inverting left and right, and mirror processing is performed on the entire predetermined rectangular range such as one page.
【0023】[0023]
【発明の実施の形態】以下、本発明の画像処理装置の実
施形態を図1〜図7を参照して説明する。図1は、本発
明による画像処理装置を適用したシステムのブロック図
である。スキャナ装置101は、ラスタースキャンされ
たRGB画像データを主走査方向の全画素を1ラインご
とに出力する。画像処理部102は、入力されたRGB
画像データに対して画像処理を行って、印刷用のCMY
K画像データをプリンタ装置103に出力する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an image processing apparatus according to the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram of a system to which an image processing device according to the present invention is applied. The scanner device 101 outputs raster image scanned RGB image data for all pixels in the main scanning direction line by line. The image processing unit 102 receives the input RGB
Performs image processing on image data and prints CMY
The K image data is output to the printer device 103.
【0024】図2は、図1における画像処理部102の
構成を示すブロック図である。CPU201は、システ
ムバスを介して接続されたROM202、RAM20
3、及び画像処理回路との間でコマンド、データを授受
してこの画像処理部102全体を制御する。ROM20
2は、CPU201が実行するプログラム、初期値デー
タ等を格納している。RAM203は、CPU201に
よって処理されたデータを記憶するワークエリアであ
る。FIG. 2 is a block diagram showing the configuration of the image processing unit 102 in FIG. The CPU 201 includes a ROM 202 and a RAM 20 connected via a system bus.
3 and a command and data are exchanged with the image processing circuit to control the entire image processing unit 102. ROM20
Reference numeral 2 stores a program executed by the CPU 201, initial value data, and the like. The RAM 203 is a work area for storing data processed by the CPU 201.
【0025】画像処理回路は、第1及び第2の記憶手
段、それぞれの記憶手段を制御する第1及び第2の記憶
制御手段、並びに、実際の画像処理を行う画像処理手段
で構成されている。メモリ204(第1の記憶手段)
は、バンク1及びバンク2の2バンクエリアで構成さ
れ、任意のアドレスに書き込み可能な汎用メモリであ
り、例えばSDRAM(シンクロナスDRAM)で構成
される。メモリ制御回路205(第1の記憶制御手段)
は、メモリ204を制御し、入力されたRGB画像デー
タをメモリ204に書き込んで記憶させるとともに、記
憶されたRGB画像データをメモリ204から読み出し
て、画像処理手段に出力する。The image processing circuit comprises first and second storage means, first and second storage control means for controlling the respective storage means, and image processing means for performing actual image processing. . Memory 204 (first storage unit)
Is a general-purpose memory which is composed of two bank areas, bank 1 and bank 2, and which can be written to an arbitrary address, for example, an SDRAM (synchronous DRAM). Memory control circuit 205 (first storage control means)
Controls the memory 204 to write and store the input RGB image data in the memory 204, read out the stored RGB image data from the memory 204, and output it to the image processing means.
【0026】画像処理手段は、図に示すように、副走査
補間回路206、スキャナγ回路207、マスキング処
理回路208、UCR処理回路209、及び階調処理回
路210で構成されている。副走査補間回路206は、
メモリ制御回路205によってメモリ204から読み出
されたRGB画像データに対して副走査方向の補間演算
を行い、変倍時や画像圧縮時に間引きされた画像データ
を補間してスキャナγ回路207に出力する。The image processing means comprises a sub-scanning interpolation circuit 206, a scanner γ circuit 207, a masking processing circuit 208, a UCR processing circuit 209, and a gradation processing circuit 210, as shown in FIG. The sub-scanning interpolation circuit 206
An interpolation operation in the sub-scanning direction is performed on the RGB image data read from the memory 204 by the memory control circuit 205, and the image data thinned out at the time of scaling or image compression is interpolated and output to the scanner γ circuit 207. .
【0027】スキャナγ回路207は、スキャナ装置に
おける反射率リニアのγ特性を補正して、濃度リニアの
画像データに変換してマスキング回路208に出力す
る。マスキング回路208は、加色系のRGB画像デー
タを減色系のCMYK画像データに変換する。すなわ
ち、印刷可能な記録色のY(イエロー)、M(マゼン
タ)、C(シアン)及び、K(ブラック)のYMCK画
像データに変換する。このCMYK画像データは、UC
R処理回路209に出力される。The scanner γ circuit 207 corrects the linear reflectance γ characteristic of the scanner device, converts the corrected linear γ characteristic into linear density image data, and outputs the image data to the masking circuit 208. The masking circuit 208 converts the additive RGB image data into the subtractive CMYK image data. That is, the image data is converted into Y (yellow), M (magenta), C (cyan), and K (black) YMCK image data of printable recording colors. This CMYK image data is UC
Output to the R processing circuit 209.
【0028】UCR処理回路209は、YMCK画像デ
ータに対してエッジ強調処理その他の下地除去処理を行
って、階調処理回路210に出力する。階調処理回路2
10は、主走査方向の変倍処理、プリンタ装置のγ特性
に適応させるためのプリンタγ補正処理、及びディザ処
理を行って、画像処理手段からの画像データとしてメモ
リ制御回路211に出力する。The UCR processing circuit 209 performs edge enhancement processing and other background removal processing on the YMCK image data, and outputs the processed data to the gradation processing circuit 210. Gradation processing circuit 2
Reference numeral 10 performs scaling processing in the main scanning direction, printer γ correction processing for adapting to the γ characteristic of the printer device, and dither processing, and outputs the image data from the image processing means to the memory control circuit 211.
【0029】メモリ制御回路211(第2の記憶制御手
段)は、メモリ212(第2の記憶手段)を制御し、入
力されたCMYK画像データをメモリ212に書き込ん
で記憶させるとともに、記憶されたCMYK画像データ
をメモリ212から読み出して、プリンタ装置103に
出力する。メモリ212も、メモリ204と同様に、バ
ンク1及びバンク2の2バンクエリアで構成され、任意
のアドレスに書き込み可能な汎用メモリ、例えばSDR
AMで構成される。The memory control circuit 211 (second storage control means) controls the memory 212 (second storage means) to write and store the input CMYK image data in the memory 212 and to store the stored CMYK image data. The image data is read from the memory 212 and output to the printer device 103. Similarly to the memory 204, the memory 212 is composed of two bank areas of a bank 1 and a bank 2, and is a general-purpose memory that can write to an arbitrary address, for example, an SDR.
AM.
【0030】次に、メモリ制御回路205及び211の
構成及び機能について説明する。図3は、図2における
メモリ制御回路205の構成を示す回路図である。バン
クアドレス制御回路301は、メモリ204のバンク1
及びバンク2のリードモードとライトモードを、入力さ
れる水平同期信号に基づいて制御する。バンク1アドレ
ス制御回路302及び303は、ラスタースキャンされ
たRGB画像データをバッファリングする際のバンク1
及びバンク2のアドレスを、バンクアドレス制御回路3
01からのアドレス制御信号に応じて制御する。Next, the configurations and functions of the memory control circuits 205 and 211 will be described. FIG. 3 is a circuit diagram showing a configuration of the memory control circuit 205 in FIG. The bank address control circuit 301 controls the bank 1 of the memory 204
And the read mode and the write mode of the bank 2 are controlled based on the input horizontal synchronization signal. The bank 1 address control circuits 302 and 303 are used to buffer the raster-scanned RGB image data.
And the address of bank 2 is transferred to bank address control circuit 3
Control is performed in accordance with the address control signal from address 01.
【0031】マルチプレクサ(MUX)回路304、3
05は、バンク1及びバンク2のアドレスを、バンク1
アドレス制御回路302及び303からのアドレス、又
はCPU201からのCPUアドレスに切り替える。マ
ルチプレクサ回路306、307は、バンク1及びバン
ク2のデータを、スキャナ装置101からのスキャナR
GBデータ、又はCPUデータに切り替える。これら4
つのマルチプレクサ回路304、305、306、30
7は、CPU201から出力されるCPUイネーブル信
号によって入力選択が切り替えられる。Multiplexer (MUX) circuits 304, 3
05 indicates the addresses of Bank 1 and Bank 2 and Bank 1
The address is switched to the address from the address control circuits 302 and 303 or the CPU address from the CPU 201. The multiplexer circuits 306 and 307 transfer the data of the banks 1 and 2 to the scanner R from the scanner device 101.
Switch to GB data or CPU data. These four
Multiplexer circuits 304, 305, 306, 30
The input selection 7 is switched by a CPU enable signal output from the CPU 201.
【0032】マルチプレクサ回路308は、リードモー
ド時に、バンク1とバンク2とをバンクアドレス制御回
路301からのバンク切替信号によって切り替える。3
ステートバッファ309は、リードモード時に、CPU
201からのリード信号(CPU−RD)によって導通
し、画像データをCPUデータバスに出力する。3ステ
ートバッファ310及び311は、ライトモード時に、
バンクアドレス制御回路301からのライト信号によっ
て導通し、マルチプレクサ回路306、307から入力
される画像データをバンク1及びバンク2に書き込む。In the read mode, the multiplexer circuit 308 switches between bank 1 and bank 2 according to a bank switching signal from the bank address control circuit 301. 3
The state buffer 309 stores the CPU in the read mode.
Conduction is performed by a read signal (CPU-RD) from 201, and image data is output to a CPU data bus. In the write mode, the three-state buffers 310 and 311
It becomes conductive by a write signal from the bank address control circuit 301, and writes image data input from the multiplexer circuits 306 and 307 to the bank 1 and the bank 2.
【0033】図4は、メモリ204に対する画像データ
の処理順序を示し、図4(A)はライトモード時の処
理、図4(B)はリードモード時の処理である。メモリ
204のバンク1及びバンク2へのライトモード時の書
き込みデータは、ラスタースキャンされた画像データで
あるので、図4(A)に示すように、主走査方向の全画
素の画像データを副走査方向にN分割ラインずつ、バン
ク1及びバンク2に交互に入力していく。一方、リード
モード時には、図4(B)に示すように、主走査方向に
M分割した所定の画素数及び各バンクにおける副走査方
向の所定のライン数からなる1ブロックごとに、副走査
方向に画像データの読み出しを繰り返す。1ブロックの
読み出しが終了した時は、同じバンクの次の1ブロック
の画像データを読み出し、バンクの境界部における画像
データの読み出しが終了してそのバンクの全ての画像デ
ータを読み出した時は、次のバンクの画像データを1ブ
ロックごとに読み出す。FIG. 4 shows the processing order of the image data in the memory 204. FIG. 4A shows the processing in the write mode, and FIG. 4B shows the processing in the read mode. Since the write data to the banks 1 and 2 of the memory 204 in the write mode is raster-scanned image data, the image data of all pixels in the main scanning direction is sub-scanned as shown in FIG. The data is alternately input to the bank 1 and the bank 2 by N divided lines in the direction. On the other hand, in the read mode, as shown in FIG. 4B, in the sub-scanning direction, each block including a predetermined number of pixels divided into M in the main scanning direction and a predetermined number of lines in each bank in the sub-scanning direction. The reading of the image data is repeated. When the reading of one block is completed, the image data of the next one block in the same bank is read, and when the reading of the image data at the boundary of the bank is completed and all the image data of the bank are read, the next Is read out block by block.
【0034】図5は、メモリ204及び212における
1ページ分の画像データの処理を時系列的に示した図で
ある。まず、メモリ204のバンク1に対し、副走査方
向N分割分の画像データを図4(A)に示す順序で入力
する。次に、メモリ204のバンク2に対し、副走査方
向N分割分の画像データを図4(A)に示す順序で入力
すると同時に、メモリ204のバンク1から図4(B)
に示す順序で画像データを読み出し、画像処理手段の初
段の回路である副走査補間回路206に対して出力す
る。この処理をメモリ204のバンク1及びバンク2に
対して1ページが終了するまで交互に行う。メモリ21
2に対しては、バンク1に対し副走査方向N分割分の画
像データを図4(B)に示す順序で入力する。次に、バ
ンク2に対し、副走査方向N分割分の画像データを図4
(B)に示す順序で入力すると同時に、バンク1から図
4(A)に示す順序で画像データを読み出し、プリンタ
装置103に対して出力する。この処理をメモリ212
のバンク1及びバンク2に対して1ページが終了するま
で交互に行う。FIG. 5 is a diagram showing the processing of one page of image data in the memories 204 and 212 in chronological order. First, image data for N divisions in the sub-scanning direction is input to the bank 1 of the memory 204 in the order shown in FIG. Next, image data for N divisions in the sub-scanning direction is input to the bank 2 of the memory 204 in the order shown in FIG.
The image data is read out in the order shown in FIG. This process is performed alternately on the banks 1 and 2 of the memory 204 until one page is completed. Memory 21
4B, image data for N divisions in the sub-scanning direction is input to the bank 1 in the order shown in FIG. Next, image data for N divisions in the sub-scanning direction is applied to the bank 2 in FIG.
Simultaneously with the input in the order shown in FIG. 4B, the image data is read from the bank 1 in the order shown in FIG. This processing is performed by the memory 212
Are performed alternately until one page is completed for banks 1 and 2.
【0035】この場合において、バンク切り替えライン
近傍では、図5に示すように、バンク1及びバンク2に
同時に画像データを入力することにより、2つのバンク
に所定量の重複データを書き込み、バンク切り替えライ
ン近傍のフィルタ演算処理を可能にしている。In this case, in the vicinity of the bank switching line, as shown in FIG. 5, by inputting image data to the banks 1 and 2 at the same time, a predetermined amount of overlapping data is written to the two banks, The filter operation processing of the neighborhood is enabled.
【0036】メモリ204への画像データの入力速度は
スキャナ装置101の出力速度に依存し、メモリ212
からの画像データの出力速度はプリンタ装置103の画
像データ処理速度に依存するが、画像処理部102内に
おける画像処理速度はスキャナ装置101及びプリンタ
装置103の処理速度より速ければよいので、画像処理
部の画像処理速度が十分速い場合には、画像処理部がメ
モリ204又はメモリ212にアクセスしていない間
は、図3に示したマルチプレクサ304、305、30
6、307をCPU201からのイネーブル信号によっ
てCPUデータバスに切り替えることにより、CPU2
01による画像処理が可能になる。The input speed of image data to the memory 204 depends on the output speed of the scanner device 101,
The output speed of the image data from the printer unit 103 depends on the image data processing speed of the printer device 103. However, the image processing speed in the image processing unit 102 is only required to be faster than the processing speed of the scanner device 101 and the printer device 103. When the image processing speed is sufficiently fast, the multiplexers 304, 305, and 30 shown in FIG.
6 and 307 are switched to the CPU data bus by the enable signal from the CPU 201,
01 enables image processing.
【0037】図6は、図3におけるバンク1アドレス制
御回路302及び303の内部構成を示す回路図であ
る。シーケンサ601は、バンクアドレス制御回路30
1からのアドレス制御信号を処理して、メモリ204に
対するコマンド信号(CMD)と、副走査補間回路20
6に対する有効画素信号(EN)を出力するとともに、
1回分のバーストアクセス処理の終了に応じた信号をブ
ロックカウンタ302に出力する。FIG. 6 is a circuit diagram showing the internal configuration of the bank 1 address control circuits 302 and 303 in FIG. The sequencer 601 includes the bank address control circuit 30
1 to process the command signal (CMD) to the memory 204 and the sub-scanning interpolation circuit 20.
6 and outputs an effective pixel signal (EN) for
A signal corresponding to the end of one burst access process is output to the block counter 302.
【0038】ブロックカウンタ602は、シーケンサ6
01からのバーストアクセス処理回数をカウントしてM
分割された主走査方向の1ラインの終了を検知してライ
ン終了信号をブロックアドレスポインタ603に出力
し、1ブロックの終了を検知してブロック終了信号をス
タートアドレスポインタ604に出力する。The block counter 602 has the sequencer 6
Counting the number of burst access processing from 01
The end of one divided line in the main scanning direction is detected, and a line end signal is output to a block address pointer 603. The end of one block is detected, and a block end signal is output to a start address pointer 604.
【0039】スタートアドレスポインタ604は、次に
アクセスするブロックのスタートアドレスを設定するた
めのスタートポインタを保持し、ブロックカウンタ60
2からのブロック終了信号に応じて、保持しているスタ
ートポインタをブロックアドレスポインタ603に出力
する。The start address pointer 604 holds a start pointer for setting a start address of a block to be accessed next, and the block counter 60
The stored start pointer is output to the block address pointer 603 in response to the block end signal from the block 2.
【0040】ブロックアドレスポインタ603は、ブロ
ックカウンタ602からのライン終了信号に応じて、次
にアクセスするラインのアドレスを出力し、スタートア
ドレスポインタ604からのスタートポインタの信号に
応じて、次にアクセスするブロックのアドレスを出力す
る。The block address pointer 603 outputs the address of the next line to be accessed according to the line end signal from the block counter 602, and accesses the next according to the signal of the start pointer from the start address pointer 604. Output block address.
【0041】アドレスカウンタ605は、ブロックカウ
ンタ602からのライン終了信号に応じて、ブロックア
ドレスポインタ603からのアドレスをロードして、ア
クセスするバンクのアドレスとしてメモリ204に出力
する。The address counter 605 loads the address from the block address pointer 603 in response to the line end signal from the block counter 602, and outputs the address to the memory 204 as the address of the bank to be accessed.
【0042】次に、図6に示したバンク1アドレス制御
回路302及びバンク2アドレス制御回路303の動作
について説明する。図7は、メモリ204の任意のバン
クにおいて、M分割された主走査方向の2つのブロック
に対するリードモード時のアクセス順序を示す図であ
り、図7(A)はm番目のブロックのアクセス順序、図
7(B)は次のm+1番目のブロックのアクセス順序で
ある。ライトモード時においては、メモリ204への画
像データの入力はアドレス「0」から画素クロックにし
たがってインクリメントされ、主走査方向順である。と
ころが、リードモード時においては、M分割された各ブ
ロックごとにアクセスするので、読み出しアドレスが連
続的でなく、1ラインごとに飛び飛びのアドレスにな
る。Next, the operation of the bank 1 address control circuit 302 and the bank 2 address control circuit 303 shown in FIG. 6 will be described. FIG. 7 is a diagram showing an access order in an arbitrary bank of the memory 204 in the read mode for two blocks in the main scanning direction divided into M, and FIG. 7A shows an access order of the m-th block. FIG. 7B shows the access order of the next (m + 1) th block. In the write mode, the input of the image data to the memory 204 is incremented from the address “0” according to the pixel clock and in the main scanning direction. However, in the read mode, since access is performed for each of the blocks divided into M, the read address is not continuous, but is a discrete address for each line.
【0043】いま、ブロックアドレスポインタ603か
らアドレスカウンタ605にセットしたmブロックのス
タートアドレスを示すポインタがaであるとする。この
とき、スタートアドレスポインタ604には、ポインタ
aに差分bを加算したポインタa’が次のm+1ブロッ
クのスタートアドレスとして保持されている。しかも、
この差分bはブロックの1ラインの画素数(アドレス差
分d)よりも小さい値になっている。Now, it is assumed that the pointer indicating the start address of the m-th block set in the address counter 605 from the block address pointer 603 is a. At this time, the start address pointer 604 holds a pointer a ′ obtained by adding the difference b to the pointer a as the start address of the next m + 1 block. Moreover,
The difference b has a value smaller than the number of pixels in one line of the block (address difference d).
【0044】図7(A)において、1ライン目の読み出
しが終了すると、ブロックカウンタ602からブロック
アドレスポインタ603にライン終了信号が出力され、
アドレスカウンタ605にセットされるアドレスは、ポ
インタaにcが加算されて同じmブロックの2ライン目
のスタートアドレスがセットされる。そして、mブロッ
クの1ラインの読み出しが終了するごとに、次のライン
のスタートアドレスがセットされて、読み出しが開始す
る。そして、mブロックの最後のラインの読み出しが終
了すると、ブロックカウンタ602からスタートアドレ
スポインタ604にブロック終了信号が出力され、保持
していたポインタa’がブロックアドレスポインタ60
3にセットされる。In FIG. 7A, when reading of the first line is completed, a line end signal is output from the block counter 602 to the block address pointer 603.
As for the address set in the address counter 605, the start address of the second line of the same m block is set by adding c to the pointer a. Each time the reading of one line of the m-th block is completed, the start address of the next line is set and the reading starts. When reading of the last line of the m-th block is completed, a block end signal is output from the block counter 602 to the start address pointer 604, and the held pointer a 'is changed to the block address pointer 60.
Set to 3.
【0045】したがって、図7(B)に示すように、m
+1ブロックの1ラインの初めの所定量の画像データ
は、mブロックの1ラインの終わりの画像データと重複
して読み出される。この重複データは、ブロックの全て
のラインにおいても同様である。すなわち、隣接するブ
ロックの境界においては、所定量の画像データを重複し
て読み出す構成になっている。したがって、パラメータ
a、b、c、dを管理することにより、主走査方向にお
いてもブロック境界における近傍画素を重複処理するこ
とが可能になる。また、シーケンサ601が発生する有
効画素信号の有無によって、有効画素が連続しない場合
でも有効画素のみを処理することができる。Therefore, as shown in FIG.
The predetermined amount of image data at the beginning of one line of the +1 block is read out overlapping with the image data at the end of one line of the m block. This overlapping data is the same for all lines of the block. That is, at the boundary between adjacent blocks, a predetermined amount of image data is read redundantly. Therefore, by managing the parameters a, b, c, and d, it becomes possible to perform overlapping processing on neighboring pixels at the block boundary also in the main scanning direction. Also, depending on the presence or absence of an effective pixel signal generated by the sequencer 601, only effective pixels can be processed even when effective pixels are not continuous.
【0046】このように、上記実施形態によれば、スキ
ャナ装置101によってラスタースキャンされた画像デ
ータを、画像処理前においては、主走査方向の全画素の
1ラインごとに任意のアドレスに書き込み可能なSRA
M等の汎用のメモリ204に書き込み、記憶された画像
データを読み出す際は、全画素の1ラインではなく、所
定の画素数及び副走査方向の所定のライン数からなるブ
ロックごとに読み出し、そのブロックごとに画像処理を
施す。画像処理後においては、画像データをブロックご
とに任意のアドレスに書き込み可能なSRAM等の汎用
のメモリ212に書き込み、画像処理された画像データ
を読み出す際は、主走査方向の全画素の1ラインごとに
読み出して、プリンタ等の外部装置に出力する。したが
って、高速バースト動作による高速アクセスが可能なS
RAM等の汎用メモリを使用して、ラスタースキャンさ
れた画像データを任意に画像処理するとともに、ライン
メモリよりも安価な汎用メモリの使用によりコストダウ
ンを実現できる。As described above, according to the above embodiment, the image data raster-scanned by the scanner device 101 can be written to an arbitrary address for each line of all pixels in the main scanning direction before image processing. SRA
When the image data written and stored in the general-purpose memory 204 such as M is read, the image data is read not for one line of all pixels but for each block including a predetermined number of pixels and a predetermined number of lines in the sub-scanning direction. The image processing is performed for each of them. After the image processing, the image data is written to a general-purpose memory 212 such as an SRAM which can write the image data at an arbitrary address for each block, and when the image-processed image data is read, the image data is read for each line of all the pixels in the main scanning direction. And outputs it to an external device such as a printer. Therefore, S which enables high-speed access by high-speed burst operation
Using a general-purpose memory such as a RAM, the raster-scanned image data can be arbitrarily image-processed, and the cost can be reduced by using a general-purpose memory that is cheaper than the line memory.
【0047】また、上記実施形態によれば、画像処理前
の画像データが有効画像データである場合に、隣接する
ラインの画素を参照する補間処理等の画像処理を行い、
有効画像データでない場合には、補間処理等の画像処理
は行わない。したがって、DRAMやSDRAM等のバ
ッファメモリを使用する際において、メモリをバースト
アクセスした場合においても、複数段で構成される画像
処理回路に画像データと同期して有効画素データを示す
信号を発生させて、有効な画像データを出力した時のみ
画像処理回路を動作させる方法で画像処理を可能にす
る。また、DRAMやSDRAM等のバッファメモリを
使用する場合において、高速動作を可能にする。According to the above embodiment, when the image data before the image processing is the effective image data, the image processing such as the interpolation processing referring to the pixels of the adjacent line is performed.
If it is not valid image data, no image processing such as interpolation processing is performed. Therefore, when a buffer memory such as a DRAM or an SDRAM is used, even when the memory is burst-accessed, a signal indicating valid pixel data is generated in synchronization with the image data by an image processing circuit including a plurality of stages. In addition, image processing can be performed by operating the image processing circuit only when valid image data is output. Further, when a buffer memory such as a DRAM or an SDRAM is used, high-speed operation is enabled.
【0048】また、上記実施形態によれば、1ページ等
の所定の矩形範囲の画像データを左右を反転させて読み
出し、1ページ等の所定の矩形範囲のすべてについてミ
ラー処理を行うこともできる。したがって、1ページ単
位の全面ミラー処理を可能にする。Further, according to the above-described embodiment, it is also possible to read out image data of a predetermined rectangular range such as one page by inverting left and right, and perform mirror processing on the entire predetermined rectangular range such as one page. Therefore, it is possible to perform the full-page mirror processing in units of one page.
【0049】次に、図8及び図9を参照して実施形態の
変形例について説明する。図8は、変形例におけるバン
ク1アドレス制御回路及びバンク2アドレス制御回路の
構成を示す回路図である。図9は、変形例における1ペ
ージの画像データの構成を示す図であり、任意の部分矩
形範囲の破線部のエリア901の画像データを主走査方
向に反転表示する。図8において、破線内におけるブロ
ックカウンタ602、ブロックアドレスポインタ60
3、及びスタートアドレスポインタ604については、
図6に示した構成と同じであるが、アドレスカウンタ6
05はアップダウンカウンタになっている。そして、新
たに追加された回路がエリア901の画像データを反転
処理する回路である。ただし、この変形例では、バース
ト動作ではなく、ランダムアクセスのみに対応している
ので、図6に示すシーケンサ601は不要となる。Yス
タートレジスタ801、Yエンドレジスタ802、Xス
タートレジスタ803、及びXエンドレジスタ804
は、それぞれエリア901のYスタートアドレス、Yエ
ンドアドレス、Xスタートアドレス、及びXエンドアド
レスを記憶している。Next, a modification of the embodiment will be described with reference to FIGS. FIG. 8 is a circuit diagram showing a configuration of a bank 1 address control circuit and a bank 2 address control circuit in a modification. FIG. 9 is a diagram showing a configuration of one page of image data in a modification, in which image data of an area 901 of a dashed portion within an arbitrary partial rectangular range is displayed in a reversed manner in the main scanning direction. In FIG. 8, the block counter 602 and the block address pointer 60 within the broken line
3, and the start address pointer 604,
The configuration is the same as that shown in FIG.
05 is an up-down counter. The newly added circuit is a circuit for inverting the image data in the area 901. However, since this modification corresponds to only random access, not burst operation, the sequencer 601 shown in FIG. 6 is unnecessary. Y start register 801, Y end register 802, X start register 803, and X end register 804
Store the Y start address, Y end address, X start address, and X end address of the area 901 respectively.
【0050】副走査カウンタ805は、アドレスカウン
タ605から出力されるYアドレスをカウントするとと
もに、Yスタートレジスタ801及びYエンドレジスタ
802からのYスタートアドレス及びYエンドアドレス
を入力し、YスタートアドレスからYエンドアドレスま
での間、イネーブル信号を生成して主走査カウンタ80
6に出力する。主走査カウンタ806は、副走査カウン
タ805からのイネーブル信号によってアクティブ状態
になり、アドレスカウンタ605から出力されるXアド
レスをカウントするとともに、Xスタートレジスタ80
3からXスタートアドレスを入力したときにトリガ信号
を生成して出力する。3ステートバッファ807は、主
走査カウンタ806からのトリガ信号に応じて、Xエン
ドレジスタ804から入力されているXエンドアドレス
を出力する。The sub-scanning counter 805 counts the Y address output from the address counter 605, and inputs the Y start address and the Y end address from the Y start register 801 and the Y end register 802. During the period up to the end address, the enable signal is generated and the main scanning counter 80 is generated.
6 is output. The main scanning counter 806 is activated by an enable signal from the sub-scanning counter 805, counts the X address output from the address counter 605, and sets the X start register 80.
A trigger signal is generated and output when an X start address is input from 3. The 3-state buffer 807 outputs the X end address input from the X end register 804 in response to a trigger signal from the main scanning counter 806.
【0051】マルチプレクサ回路808は、その一方の
入力Aに主走査カウンタ806からのトリガ信号を入力
し、他方の入力Bにブロックカウンタ602からのライ
ン終了信号を入力する。マルチプレクサ回路809は、
その一方の入力Aにバッファ807からのXエンドアド
レスを入力し、他方の入力Bにブロックアドレスポイン
タ603からのアドレスを入力する。これら2つのマル
チプレクサ回路808及び809は、切替信号R/Wに
よって、ライトモードの時は入力Aが選択され、リード
モードの時は入力Bが選択される。カウントモード切替
のフリップフロップ810は、主走査カウンタ806か
らのトリガ信号をT入力に受けると、アドレスカウンタ
605のカウントモードを切り替えるトグルスイッチで
ある。なお、初期値のカウンタモードはアップカウント
モードに設定されている。したがって、リードモードの
時は、主走査カウンタ806からはトリガ信号が出力さ
れないので、常時アップカウントモードになっている。The multiplexer circuit 808 inputs a trigger signal from the main scanning counter 806 to one input A, and inputs a line end signal from the block counter 602 to the other input B. The multiplexer circuit 809 includes:
The X end address from the buffer 807 is input to one input A, and the address from the block address pointer 603 is input to the other input B. In these two multiplexer circuits 808 and 809, the input A is selected in the write mode and the input B is selected in the read mode by the switching signal R / W. The count mode switching flip-flop 810 is a toggle switch that switches the count mode of the address counter 605 when receiving a trigger signal from the main scanning counter 806 at the T input. The initial value counter mode is set to the up-count mode. Therefore, in the read mode, the trigger signal is not output from the main scanning counter 806, so that the mode is always the up-count mode.
【0052】次に、この変形例の動作について、図8及
び図9を参照して説明する。いま、Yスタートレジスタ
801、Yエンドレジスタ802、Xスタートレジスタ
803、及びXエンドレジスタ804に、図9のエリア
901のYスタートアドレスYs、YエンドアドレスY
e、XスタートアドレスXs、及びXエンドアドレスX
eがセットされているとする。Next, the operation of this modified example will be described with reference to FIGS. Now, the Y start address 801, the Y end address 802, the X start register 803, and the X end register 804 are stored in the area 901 in FIG.
e, X start address Xs and X end address X
It is assumed that e is set.
【0053】ライトモードにおいて、副走査カウンタ8
05は、Yアドレスをカウントしそのカウント値がYs
になるとイネーブル信号を出力する。すると、主走査カ
ウンタ806は、Xアドレスをカウントしそのカウント
値がXsになると、バッファ807、マルチプレクサ回
路808の入力A、及びフリップフロップ810にトリ
ガ信号を与える。したがって、バッファ807はマルチ
プレクサ回路809を介して、アドレスカウンタ605
にXeのXアドレスを与えるとともに、マルチプレクサ
回路808を介してトリガ信号がアドレスカウンタ60
5にロード信号として入力される。また同時に、フリッ
プフロップ810によって、カウンタモードが反転す
る。In the write mode, the sub-scanning counter 8
05 counts the Y address and the count value is Ys
Then, an enable signal is output. Then, the main scanning counter 806 counts the X address, and when the count value reaches Xs, gives a trigger signal to the buffer 807, the input A of the multiplexer circuit 808, and the flip-flop 810. Therefore, the buffer 807 is supplied to the address counter 605 via the multiplexer circuit 809.
To the address counter 60 via the multiplexer circuit 808.
5 is input as a load signal. At the same time, the flip-flop 810 inverts the counter mode.
【0054】この結果、図9において、副走査方向の書
き込みが進んで、そのYアドレスがYsになると、主走
査カウンタ806がアクティブになる。そして、主走査
方向のXアドレスがページの左端から右に順に画素の書
き込みが進んでXsになると、Xアドレスがジャンプし
てアドレスカウンタ605からはXeが出力される。そ
して、アドレスカウンタ605がダウンモードに反転
し、主走査方向の書き込みが右から左に反転する。この
後、再びXアドレスがXsに戻ると、Xアドレスがジャ
ンプしてアドレスカウンタ605からはXeが出力され
る。この場合は、アドレスカウンタ605がアップモー
ドに戻り、主走査方向の書き込みがXeの画素からは左
から右端部まで正規の順序になる。As a result, in FIG. 9, when the writing in the sub-scanning direction proceeds and the Y address becomes Ys, the main scanning counter 806 becomes active. Then, when the X address in the main scanning direction becomes Xs by writing pixels in order from the left end of the page to the right, the X address jumps and Xe is output from the address counter 605. Then, the address counter 605 is inverted to the down mode, and the writing in the main scanning direction is inverted from right to left. Thereafter, when the X address returns to Xs again, the X address jumps, and Xe is output from the address counter 605. In this case, the address counter 605 returns to the up mode, and writing in the main scanning direction is performed in a regular order from the left to the right end from the pixel of Xe.
【0055】そして、主走査方向の1ラインの書き込み
が完了すると、Yアドレスがインクリメントされ、次の
1ラインの書き込みを同じように行う。YアドレスがY
eになると、副走査カウンタ805のイネーブル信号が
停止する。したがって、主走査カウンタ806がノンア
クティブになるので、反転した書き込みは行われず、通
常の書き込みとなる。When the writing of one line in the main scanning direction is completed, the Y address is incremented, and the writing of the next one line is performed in the same manner. Y address is Y
At e, the enable signal of the sub-scanning counter 805 stops. Therefore, since the main scanning counter 806 becomes non-active, inverted writing is not performed and normal writing is performed.
【0056】上記変形例によれば、1ページ等の所定の
矩形範囲の画像データのうち、任意の部分矩形範囲の画
像データを左右を反転させて書き込み、部分ミラー処理
を行う。したがって、複雑な画像処理が可能となる。According to the above modification, image data of an arbitrary partial rectangular range among image data of a predetermined rectangular range such as one page is written by inverting left and right, and partial mirror processing is performed. Therefore, complicated image processing becomes possible.
【0057】また、上記変形例の応用として、1ページ
等の所定の矩形範囲の画像データのうち、任意の部分を
他の画像データに差し替える編集処理を行う構成にする
こともできる。したがって、専用のハードウェアを用意
することなく、特殊画像パターン等を画像データに追加
することが可能になる。Further, as an application of the above-described modified example, it is also possible to adopt a configuration in which an editing process for replacing an arbitrary portion of image data of a predetermined rectangular range such as one page with another image data is performed. Therefore, a special image pattern or the like can be added to the image data without preparing dedicated hardware.
【0058】なお、上記実施形態及びその変形例におけ
るメモリ204及び212は、スキャナ装置101から
の画像データを画像処理してプリンタ装置103に出力
する場合に用いる構成であるが、他の用途として、カラ
ー複写機の表示部に画像編集用としてRGB画像データ
を縮小表示する場合のワークエリアや、ホストとの接続
手段を有する場合に、ホストからの印字データをビット
マップに展開して印字するためのプリンタコントローラ
のワークエリアとしても使用可能である。Note that the memories 204 and 212 in the above-described embodiment and its modifications are used when image data from the scanner device 101 is image-processed and output to the printer device 103. A work area for displaying reduced RGB image data for image editing on a display unit of a color copier, or a method for developing print data from a host into a bitmap and printing when a connection means with a host is provided. It can also be used as a work area for the printer controller.
【0059】[0059]
【発明の効果】請求項1に係る発明によれば、スキャナ
装置等の外部装置によってラスタースキャンされた画像
データを、画像処理前においては、主走査方向の全画素
の1ラインごとに任意のアドレスに書き込み可能なSR
AM等の汎用の第1の記憶手段に書き込み、記憶された
画像データを読み出す際は、全画素の1ラインではな
く、所定の画素数及び副走査方向の所定のライン数から
なるブロックごとに読み出し、そのブロックごとに画像
処理を施す。画像処理後においては、画像データをブロ
ックごとに任意のアドレスに書き込み可能なSRAM等
の汎用の第2の記憶手段に書き込み、画像処理された画
像データを読み出す際は、主走査方向の全画素の1ライ
ンごとに読み出して、プリンタ等の外部装置に出力す
る。したがって、高速バースト動作による高速アクセス
が可能なSRAM等の汎用メモリを使用して、ラスター
スキャンされた画像データを任意に画像処理するととも
に、ラインメモリよりも安価な汎用メモリの使用により
コストダウンを実現できる。According to the first aspect of the present invention, image data raster-scanned by an external device such as a scanner device is converted into an arbitrary address for each line of all pixels in the main scanning direction before image processing. SR that can be written to
When writing and reading the stored image data in the general-purpose first storage means such as the AM, the image data is read not for one line of all pixels but for each block including a predetermined number of pixels and a predetermined number of lines in the sub-scanning direction. , Image processing is performed for each block. After the image processing, the image data is written into a general-purpose second storage unit such as an SRAM capable of writing the image data at an arbitrary address for each block, and when the image-processed image data is read, all the pixels in the main scanning direction are read. The data is read out line by line and output to an external device such as a printer. Therefore, using a general-purpose memory such as an SRAM that can be accessed at a high speed by a high-speed burst operation, the raster-scanned image data is arbitrarily processed, and the cost is reduced by using a general-purpose memory that is cheaper than the line memory. it can.
【0060】請求項2に係る発明によれば、ラインメモ
リによって、補間処理等の画像処理をブロック単位で行
う。したがって、画像処理に使用するラインメモリの容
量を減らすことにより、高画質化に対応した大規模の画
像処理回路を半導体部品内部に実装可能にするととも
に、画像処理回路の実装された半導体部を変更すること
なく、バッファメモリの容量を変更することにより、容
易に高画素密度に対応させ、高画質化に対応した画像処
理装置を提供できる。According to the second aspect of the present invention, image processing such as interpolation processing is performed in block units by the line memory. Therefore, by reducing the capacity of the line memory used for image processing, a large-scale image processing circuit compatible with high image quality can be mounted inside semiconductor components, and the semiconductor part on which the image processing circuit is mounted is changed. Without changing the capacity of the buffer memory, it is possible to easily provide a high pixel density and provide an image processing apparatus capable of achieving high image quality.
【0061】請求項3に係る発明によれば、2つのバン
クエリアに、例えば主走査方向の全画素の1ライン等
の、所定量の同じ画像データを重複して書き込む。した
がって、近傍画素を参照する必要のあるフィルタ演算処
理等が可能になり、画像処理の単位であるブロックの分
割境界部においても支障のない画像処理ができる。According to the third aspect of the present invention, a predetermined amount of the same image data, for example, one line of all pixels in the main scanning direction is redundantly written in two bank areas. Therefore, it is possible to perform a filter operation process or the like that needs to refer to the neighboring pixels, and it is possible to perform image processing without any trouble even at a division boundary of a block which is a unit of image processing.
【0062】請求項4に係る発明によれば、1ページ等
の所定の矩形範囲の画像データのうち、任意の部分矩形
範囲の画像データを左右を反転させて書き込み、部分ミ
ラー処理を行う。したがって、複雑な画像編集による画
像処理が可能となる。According to the fourth aspect of the present invention, image data of an arbitrary partial rectangular range among image data of a predetermined rectangular range such as one page is written by inverting left and right, and partial mirror processing is performed. Therefore, image processing by complicated image editing becomes possible.
【0063】請求項5に係る発明によれば、1ページ等
の所定の矩形範囲の画像データのうち、任意の部分を他
の画像データに差し替える編集処理を行う。したがっ
て、専用のハードウェアを用意することなく、特殊画像
パターン等を画像データに追加することが可能になる。According to the fifth aspect of the present invention, an editing process for replacing an arbitrary portion of image data of a predetermined rectangular range such as one page with another image data is performed. Therefore, a special image pattern or the like can be added to the image data without preparing dedicated hardware.
【0064】請求項6に係る発明によれば、画像処理前
の画像データが有効画像データである場合に、隣接する
ラインの画素を参照する補間処理等の画像処理を行い、
有効画像データでない場合には、補間処理等の画像処理
は行わない。したがって、DRAMやSDRAM等のバ
ッファメモリを使用する際において、メモリをバースト
アクセスした場合においても、複数段で構成される画像
処理回路に画像データと同期して有効画素データを示す
信号を発生させて、有効な画像データを出力した時のみ
画像処理回路を動作させる方法で画像処理を可能にす
る。また、DRAMやSDRAM等のバッファメモリを
使用する場合において、高速動作を可能にする。According to the invention of claim 6, when the image data before image processing is valid image data, image processing such as interpolation processing referring to pixels on adjacent lines is performed.
If it is not valid image data, no image processing such as interpolation processing is performed. Therefore, when a buffer memory such as a DRAM or an SDRAM is used, even when the memory is burst-accessed, a signal indicating valid pixel data is generated in synchronization with the image data by an image processing circuit including a plurality of stages. In addition, image processing can be performed by operating the image processing circuit only when valid image data is output. Further, when a buffer memory such as a DRAM or an SDRAM is used, high-speed operation is enabled.
【0065】請求項7に係る発明によれば、1ページ等
の所定の矩形範囲の画像データを左右を反転させて読み
出し、1ページ等の所定の矩形範囲のすべてについてミ
ラー処理を行う。したがって、1ページ単位の全面ミラ
ー処理を可能にする。According to the seventh aspect of the present invention, image data in a predetermined rectangular range such as one page is read by inverting left and right, and mirror processing is performed on the entire predetermined rectangular range such as one page. Therefore, it is possible to perform the full-page mirror processing in units of one page.
【図1】本発明による画像処理装置を適用したシステム
のブロック図である。FIG. 1 is a block diagram of a system to which an image processing device according to the present invention is applied.
【図2】図1における画像処理部の構成を示すブロック
図である。FIG. 2 is a block diagram illustrating a configuration of an image processing unit in FIG. 1;
【図3】図2における2つのメモリ制御回路の構成を示
す回路図である。FIG. 3 is a circuit diagram showing a configuration of two memory control circuits in FIG. 2;
【図4】メモリに対する画像データの処理順序を示し、
(A)はライトモード時の処理、(B)はリードモード
時の処理である。FIG. 4 shows a processing order of image data to a memory;
(A) is a process in the write mode, and (B) is a process in the read mode.
【図5】1ページ分の画像データの処理を時系列的に示
した図である。FIG. 5 is a diagram showing the processing of image data for one page in a time-series manner.
【図6】図3の2つのバンク1アドレス制御回路の内部
構成を示す回路図である。FIG. 6 is a circuit diagram showing an internal configuration of two bank 1 address control circuits of FIG. 3;
【図7】2つのブロックに対するリードモード時のアク
セス順序を示す図であり、(A)はm番目のブロックの
アクセス順序、(B)はm+1番目のブロックのアクセ
ス順序である。7A and 7B are diagrams illustrating an access order of two blocks in a read mode, wherein FIG. 7A illustrates an access order of an m-th block and FIG. 7B illustrates an access order of an (m + 1) -th block.
【図8】変形例におけるバンク1アドレス制御回路及び
バンク2アドレス制御回路の構成を示す回路図である。FIG. 8 is a circuit diagram showing a configuration of a bank 1 address control circuit and a bank 2 address control circuit in a modification.
【図9】変形例における1ページの画像データの構成を
示す図である。FIG. 9 is a diagram illustrating a configuration of image data of one page in a modified example.
【図10】従来の画像処理装置におけるRGB画像デー
タを処理して出力する一般的なシステムのブロック図で
ある。FIG. 10 is a block diagram of a general system for processing and outputting RGB image data in a conventional image processing apparatus.
【図11】図10の従来の画像処理装置における副走査
補間回路の構成を示すブロック図である。11 is a block diagram showing a configuration of a sub-scanning interpolation circuit in the conventional image processing device of FIG.
101 スキャナ装置 102 画像処理部 103 プリンタ装置 DESCRIPTION OF SYMBOLS 101 Scanner device 102 Image processing unit 103 Printer device
Claims (7)
意のアドレスに書き込み可能な第1の記憶手段と、 前記画像データを主走査方向の全画素の1ラインごとに
前記第1の記憶手段に書き込んで記憶させ、前記第1の
記憶手段に記憶された複数ライン分の画像データを主走
査方向の全画素数のうち所定の画素数及び副走査方向の
所定のライン数からなるブロックごとに読み出す第1の
記憶制御手段と、 前記第1の記憶制御手段によって前記第1の記憶手段か
ら読み出された前記ブロックごとの画像データに対して
所定の画像処理を施す画像処理手段と、 画像処理された画像データを任意のアドレスに書き込み
可能な第2の記憶手段と、 前記画像処理手段によって画像処理された前記画像デー
タを前記ブロックごとに前記第2の記憶手段に書き込ん
で記憶させ、前記第2の記憶手段に記憶された画像デー
タを主走査方向の全画素の1ラインごとに読み出して出
力する第2の記憶制御手段と、 を備えたことを特徴とする画像処理装置。A first storage unit capable of writing raster-scanned image data at an arbitrary address; and writing the image data into the first storage unit for each line of all pixels in the main scanning direction. A first method of storing and reading out image data for a plurality of lines stored in the first storage means for each block including a predetermined number of pixels and a predetermined number of lines in the sub-scanning direction among the total number of pixels in the main scanning direction. Storage control means, image processing means for performing predetermined image processing on the image data of each block read from the first storage means by the first storage control means, and an image processed image A second storage unit capable of writing data to an arbitrary address; and the image data processed by the image processing unit in the second storage unit for each of the blocks. And second storage control means for reading out and outputting the image data stored in the second storage means for each line of all pixels in the main scanning direction. Image processing device.
定の画素数のビット数を有し、前記ブロックごとの画像
処理のための前記所定のライン数のラインメモリを有す
ることを特徴とする請求項1に記載の画像処理装置。2. The image processing device according to claim 1, wherein the image processing unit has at least the bit number of the predetermined number of pixels and has a line memory of the predetermined number of lines for image processing for each of the blocks. 2. The image processing device according to 1.
方向の全画素数及び副走査方向の所定のライン数の画像
データを記憶するバンクエリアを少なくとも2個以上有
し、 前記第1の記憶制御手段は、2つのバンクエリアに所定
量の画像データを重複して書き込むことを特徴とする請
求項1又は2に記載の画像処理装置。3. The first and second storage units have at least two or more bank areas for storing image data of a total number of pixels in a main scanning direction and a predetermined number of lines in a sub-scanning direction. 3. The image processing apparatus according to claim 1, wherein the first storage control unit writes a predetermined amount of image data in two bank areas in a redundant manner.
キャンされた主走査方向の全画素及び副走査方向の所定
数のラインで構成される所定の矩形範囲の画像データの
うち、任意の部分矩形範囲の画像データを主走査方向に
反転させて前記第1の記憶手段に書き込むことを特徴と
する請求項1又は2に記載の画像処理装置。4. The image processing apparatus according to claim 1, wherein the first storage control unit is configured to perform any part of the raster-scanned image data of a predetermined rectangular range including all pixels in the main scanning direction and a predetermined number of lines in the sub-scanning direction. The image processing apparatus according to claim 1, wherein image data in a rectangular range is written in the first storage unit after being inverted in a main scanning direction.
キャンされた主走査方向の全画素及び副走査方向の所定
数のラインで構成される所定の矩形範囲の画像データの
うち、任意の部分の画像データをラスタースキャンされ
た画像データ以外の他の画像データに変更することを特
徴とする請求項1又は2に記載の画像処理装置。5. The image processing apparatus according to claim 1, wherein the first storage control unit is configured to perform any part of the raster-scanned image data in a predetermined rectangular range including all pixels in the main scanning direction and a predetermined number of lines in the sub-scanning direction. 3. The image processing apparatus according to claim 1, wherein the image data is changed to image data other than the raster-scanned image data.
記憶手段から読み出した画像データが有効画像データで
あることを示す有効画像信号を前記画像処理手段に出力
し、 前記画像処理手段は、当該有効画像信号の有無に応じて
画像処理を行うことを特徴とする請求項1〜5のいずれ
かに記載の画像処理装置。6. The image processing means, wherein the first storage control means outputs to the image processing means a valid image signal indicating that the image data read from the first storage means is valid image data. The image processing apparatus according to any one of claims 1 to 5, wherein image processing is performed according to the presence or absence of the effective image signal.
キャンされた主走査方向の全画素及び副走査方向の所定
数のラインで構成される所定の矩形範囲の画像データを
主走査方向に反転させて前記第1の記憶手段から読み出
すことを特徴とする請求項1又は2に記載の画像処理装
置。7. The first storage control means inverts, in the main scanning direction, image data of a predetermined rectangular range formed by raster-scanning all pixels in the main scanning direction and a predetermined number of lines in the sub-scanning direction. 3. The image processing apparatus according to claim 1, wherein the image data is read from the first storage unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34086097A JPH11168610A (en) | 1997-09-30 | 1997-11-27 | Image processor |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9-281095 | 1997-09-30 | ||
JP28109597 | 1997-09-30 | ||
JP34086097A JPH11168610A (en) | 1997-09-30 | 1997-11-27 | Image processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH11168610A true JPH11168610A (en) | 1999-06-22 |
Family
ID=26554054
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP34086097A Pending JPH11168610A (en) | 1997-09-30 | 1997-11-27 | Image processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH11168610A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007114489A (en) * | 2005-10-20 | 2007-05-10 | Fujitsu Ltd | Image display device and control method thereof |
US7352494B2 (en) | 2002-06-28 | 2008-04-01 | Matsushita Electric Industrial Co., Ltd. | Pixel block data generating device and pixel block data generating method |
JP2009159631A (en) * | 2002-02-13 | 2009-07-16 | Canon Inc | Image processor, image processing method, computer program, and recording medium |
US7822296B2 (en) | 2002-02-13 | 2010-10-26 | Canon Kabushiki Kaisha | Data processing apparatus, image processing apparatus, and method therefor |
-
1997
- 1997-11-27 JP JP34086097A patent/JPH11168610A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009159631A (en) * | 2002-02-13 | 2009-07-16 | Canon Inc | Image processor, image processing method, computer program, and recording medium |
US7822296B2 (en) | 2002-02-13 | 2010-10-26 | Canon Kabushiki Kaisha | Data processing apparatus, image processing apparatus, and method therefor |
US7889935B2 (en) | 2002-02-13 | 2011-02-15 | Canon Kabushiki Kaisha | Data processing apparatus, image processing apparatus, and method therefor |
US7899275B2 (en) | 2002-02-13 | 2011-03-01 | Canon Kabushiki Kaisha | Data processing apparatus, image processing apparatus, and method therefor |
US8165427B2 (en) | 2002-02-13 | 2012-04-24 | Canon Kabushiki Kaisha | Data processing apparatus, image processing apparatus, and method therefor |
US8867864B2 (en) | 2002-02-13 | 2014-10-21 | Canon Kabushiki Kaisha | Data processing apparatus, image processing apparatus, and method therefor |
US9361664B2 (en) | 2002-02-13 | 2016-06-07 | Canon Kabushiki Kaisha | Data processing apparatus, image processing apparatus, and method therefor |
US7352494B2 (en) | 2002-06-28 | 2008-04-01 | Matsushita Electric Industrial Co., Ltd. | Pixel block data generating device and pixel block data generating method |
JP2007114489A (en) * | 2005-10-20 | 2007-05-10 | Fujitsu Ltd | Image display device and control method thereof |
KR100770234B1 (en) * | 2005-10-20 | 2007-10-26 | 후지쯔 가부시끼가이샤 | Image display system and control method therefor |
EP1806732A3 (en) * | 2005-10-20 | 2007-11-28 | Fujitsu Limited | Image display system and control method therefor |
US7975081B2 (en) | 2005-10-20 | 2011-07-05 | Fujitsu Semiconductor Limited | Image display system and control method therefor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9531911B2 (en) | Data processing apparatus, data processing method and storage medium for storing image data | |
US10225425B2 (en) | Information processing apparatus and method for controlling the same | |
US6633975B1 (en) | Data processing system having plurality of processors and executing series of processings in prescribed order | |
JPH11168610A (en) | Image processor | |
JP3554237B2 (en) | Image processing apparatus and method | |
JP6463437B2 (en) | Image processing apparatus, control method therefor, and program | |
JP5567790B2 (en) | Image processing apparatus, control method therefor, and program | |
JPH02132967A (en) | Picture processor | |
US7145700B1 (en) | Image processing system including synchronous type processing unit and asynchronous type processing unit and image processing method | |
JP4316476B2 (en) | Image processing apparatus and image forming apparatus | |
JP6808712B2 (en) | Image processing device, its control method, and program | |
JP4863846B2 (en) | Color image forming apparatus and color image processing apparatus | |
JP2024087384A (en) | Image Processing Module | |
JP6225202B2 (en) | Image processing apparatus, control method therefor, and program | |
JPH09179973A (en) | Picture processor and its method | |
JP2006092506A (en) | Image processor | |
JP5885780B2 (en) | Image processing apparatus, control method therefor, and program | |
JP2993618B2 (en) | Image processing method | |
JP3877054B2 (en) | Image reduction scaling device | |
JP3489450B2 (en) | Image data processing circuit | |
JP2000032258A (en) | Image processing unit and image processing method | |
JPH04297935A (en) | Input device and output device | |
JPH09331445A (en) | Image processor | |
JPH02108170A (en) | Frame memory device | |
JPH05244388A (en) | Picture recorder |