JPH04134957A - Image processor - Google Patents
Image processorInfo
- Publication number
- JPH04134957A JPH04134957A JP2255196A JP25519690A JPH04134957A JP H04134957 A JPH04134957 A JP H04134957A JP 2255196 A JP2255196 A JP 2255196A JP 25519690 A JP25519690 A JP 25519690A JP H04134957 A JPH04134957 A JP H04134957A
- Authority
- JP
- Japan
- Prior art keywords
- buffer
- image data
- data
- read
- image
- 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
- 238000000034 method Methods 0.000 claims abstract description 41
- 238000013500 data storage Methods 0.000 claims description 6
- 239000000872 buffer Substances 0.000 abstract description 140
- 230000015654 memory Effects 0.000 abstract description 68
- 238000010586 diagram Methods 0.000 description 22
- 238000004891 communication Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- GJJFMKBJSRMPLA-HIFRSBDPSA-N (1R,2S)-2-(aminomethyl)-N,N-diethyl-1-phenyl-1-cyclopropanecarboxamide Chemical compound C=1C=CC=CC=1[C@@]1(C(=O)N(CC)CC)C[C@@H]1CN GJJFMKBJSRMPLA-HIFRSBDPSA-N 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000009792 diffusion process Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Scanning Arrangements (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は画像処理装置に関し、特にカラーファクシミリ
やスキャナプリンタ等カラー画像データをバッファメモ
リに格納して画像処理を行なう画像処理装置に関するも
のである。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an image processing device, and particularly relates to an image processing device such as a color facsimile or scanner printer that stores color image data in a buffer memory and performs image processing. .
[従来の技術]
従来、この種の画像処理装置において、第8図に示した
ように、画像データを転送する際に一時的に数ライン分
をバッファメモリ50に保存して、書き込まれた方法と
同じ順序で読み出すのが一般的である。このバッファメ
モリを介する方法は、書き込み側と読み出し側とで処理
速度の違いがある場合や途中の画像処理部で前後数ライ
ン分のデータが必要とされる場合等でよく用いられる。[Prior Art] Conventionally, in this type of image processing apparatus, as shown in FIG. 8, when image data is transferred, several lines are temporarily stored in a buffer memory 50 and written. Generally, they are read in the same order. This method using a buffer memory is often used when there is a difference in processing speed between the writing side and the reading side, or when an intermediate image processing section requires data for several lines before and after.
ここで、従来の画像データの読み出し、及び書き込み順
序について説明する。Here, the conventional image data reading and writing order will be explained.
スキャナとプリンタが一体化したスキャナプリンタとバ
ッファメモリとの接続を考慮した場合、第9図(a)に
示したように、スキャナでは読み取りセンサ(図示せず
)が、プリンタではプリントヘッド(図示せず)がそれ
ぞれ原稿、或は印字用紙に対して縦方向(図中、Y方向
)に並び、原稿(印字用紙)に対して横方向(図中、X
方向)にスキャンする方式とする。これをシャトルスキ
ャン方式と呼ぶ。When considering the connection between a scanner printer, which is an integrated scanner and printer, and a buffer memory, as shown in Figure 9(a), the scanner uses a reading sensor (not shown), and the printer uses a print head (not shown). ) are arranged in the vertical direction (Y direction in the figure) with respect to the original or printing paper, and in the horizontal direction (X direction in the figure) with respect to the original (print paper).
(direction). This is called the shuttle scan method.
〈シャトルスキャンフォーマット〉
第9図(a)に示すように、スキャナプリンタでは画像
を128画素単位でシリアルスキャンする。即ち、第9
図(a)のY方向にスキャナのセンサまたはプリンタの
ヘッドが128画素並び、そのセンサ(或は、ヘッド)
が図中X方向に走査される。従って、画像が転送されて
(る順序、または転送する順序は、第9図(b)のよう
に原稿、或は用紙の上で左上の1画素から始まり、セン
サ(或は、ヘッド)が並ぶ方向に128画素送り、次に
シリアルスキャン方向に1画素ずれた位置の128画素
を送る。同様の操作を用紙の右端まで繰り返す。<Shuttle Scan Format> As shown in FIG. 9(a), a scanner printer serially scans an image in units of 128 pixels. That is, the ninth
The scanner sensor or printer head is lined up with 128 pixels in the Y direction in Figure (a), and the sensor (or head)
is scanned in the X direction in the figure. Therefore, the order in which images are transferred starts from the upper left pixel on the document or paper, and the sensors (or heads) are lined up as shown in Figure 9(b). Send 128 pixels in the serial scan direction, then send 128 pixels at a position shifted by one pixel in the serial scan direction. Repeat the same operation until the right edge of the paper.
くラスタースキャンフォーマット〉
ラスタースキャンフォーマットは、第9図(C)に示す
ように用紙の先頭から横方同番こ1ラインづつ、128
ライン分順次送る方式である。Raster scan format〉 As shown in Figure 9 (C), the raster scan format scans 128 lines of the same number horizontally from the top of the paper.
This is a method of sending lines sequentially.
通常のコンピュータや通信で扱われる画像データはこの
形式を採る。Image data handled by ordinary computers and communications uses this format.
第10図はバッファメモリに格納された画像データが処
理される順序、特に注目画素周辺の画素データを必要と
する処理を示す。FIG. 10 shows the order in which the image data stored in the buffer memory is processed, particularly the processing that requires pixel data around the pixel of interest.
第10図(a)は2値化データを扱うノ\ツファメモリ
からの画像データが、後段の処理で2値化データから多
値化データへ変換処理を行なわれる場合の例を示す。こ
こで、多値化処理とit、2値化データ、即ち、1bi
tデータを画像データの冗長性を利用して注目画素周辺
のデータ番こ重みづけをして、nbit(nは整数)の
多値画像データに復元する処理である。FIG. 10(a) shows an example in which image data from a buffer memory that handles binary data is converted from binary data to multivalued data in subsequent processing. Here, multivalue processing and it, binary data, that is, 1bit
This is a process of restoring t data to n-bit (n is an integer) multivalued image data by weighting the data around the pixel of interest using the redundancy of the image data.
第10図(b)では、バッファメモリ多値化データータ
を扱う場合で、メモリに格納されたデータが既に多値化
データであるため、多値化処理なせずにバッファメモリ
より読み出されるデータを直ちに画像処理し、次に2値
化処理する。In Figure 10(b), when dealing with buffer memory multilevel data, the data stored in the memory is already multilevel data, so the data read from the buffer memory is immediately read out without performing multilevel conversion processing. Image processing is performed, and then binarization processing is performed.
上述の処理では、多値化処理の後、画像処理等の各種処
理を行ない、次に2値化処理を行なっている。この2値
化処理はプリンタで印字できる形態にするための処理で
あり、例えば、インクジェットプリンタ等の出力装!は
インクを打つか、打たないかの2種類の選択によりプリ
ントするため、プリンタに送る画像データも2値化デー
タを与える必要がある。In the above-mentioned processing, after multi-value processing, various processes such as image processing are performed, and then binarization processing is performed. This binarization process is a process for converting the data into a format that can be printed by a printer, such as an output device such as an inkjet printer! Since printing is performed by selecting two types of printing, either applying ink or not, the image data sent to the printer must also be given as binary data.
尚、ここでの2値化処理とは、誤差拡散法や平均誤差最
小法等の2値化法であるが、そのアルゴリズムは公知で
あるため、詳細な説明は省略する。Note that the binarization process here refers to a binarization method such as an error diffusion method or a minimum average error method, but since the algorithm thereof is well known, a detailed explanation will be omitted.
次に、従来の多値化処理の例を示す。Next, an example of conventional multivalue processing will be shown.
第11図(a)は、注目画素55近辺における画素の様
子を示す図であり、黒丸で示したところに、ビット“1
”が立っており、白丸で示したところが、ビット“0″
が立っている。FIG. 11(a) is a diagram showing the state of pixels in the vicinity of the pixel of interest 55, where the bit "1" is indicated by a black circle.
” stands, and the white circle indicates bit “0”.
is standing.
そこで、この画素と第11図(b)に示した3×3のウ
ィンドマトリクスの重み値とを合わせることにより、多
値データを復元することができる。この例では、第11
図(C)に示す1111゜(10は10進を示す)が多
値復元データである。Therefore, by combining this pixel with the weight value of the 3×3 window matrix shown in FIG. 11(b), the multivalued data can be restored. In this example, the 11th
1111° (10 indicates decimal) shown in Figure (C) is multi-value restored data.
第12図にシャトルスキャン方式の場合の3×5の重み
係数ウィンドの例を示した。同図(a)が重み係数であ
り、この処理もウィンドを用いて、2値化時の誤差を注
目画素近辺に各重み係数に従って配分していく方法であ
る。尚、第12図(b)は、誤差の伝搬を示す。FIG. 12 shows an example of a 3×5 weighting coefficient window in the case of the shuttle scan method. The weighting coefficients are shown in (a) of the figure, and this process also uses a window to allocate the error during binarization to the vicinity of the pixel of interest according to each weighting coefficient. Note that FIG. 12(b) shows the propagation of errors.
上述の2つの処理は、注目画素とその近辺の画素データ
を必要とするウィンド処理が入るため、ブロックバッフ
ァメモリのつなぎ目で、現在処理中の画素の前のブロッ
クバッファメモリの値が必要となったり、或はその次の
ブロックバッファのデータが必要となったりする。The above two processes include window processing that requires the pixel of interest and its surrounding pixel data, so at the junction of the block buffer memories, the value of the block buffer memory before the pixel currently being processed is required. , or the data in the next block buffer may be required.
そこで、第13図にバッファつなぎ目でのウィンド処理
の様子を示す。Therefore, FIG. 13 shows the window processing at the buffer joint.
第13図(a)は3×3ウインドを用いた、多値化処理
時のバッファメモリのつなぎ目での処理の様子を示して
おり、前後のバッファメモリの各1ラインづつのデータ
が必要となる。また、第13図(b)は2値化処理時の
つなぎ目の様子を示しており、この処理では次段のブロ
ックバッファメモリのデータmライン(処理方法により
多少相違はあるが、通常mは7ライン程度)必要となる
。Figure 13(a) shows the processing at the junction of buffer memories during multi-value processing using a 3x3 window, and one line of data is required for each of the buffer memories before and after. . FIG. 13(b) shows the state of the joint during binarization processing, and in this processing, m lines of data in the next stage block buffer memory (usually m is 7 lines, although there are some differences depending on the processing method). line) is required.
[発明が解決しようとしている課題]
しかしながら、上記従来例では、バッファメモリへ画像
データを書き込む順序と読み出す順序とが同一でなけれ
ばならず、同じバッファメモリに対して、2つの異なる
画像データ読み出しと書き込み順序を実現できないとい
う欠点がある。[Problems to be Solved by the Invention] However, in the conventional example described above, the order in which image data is written to the buffer memory and the order in which it is read out must be the same, and two different image data reading operations are performed with respect to the same buffer memory. The disadvantage is that the writing order cannot be realized.
また、シャトルスキャン方式でバッファメモリより画像
データを読み出すときに、バッファメモリのつなぎ目で
データがとぎれてしまうため、バッファメモリに格納し
た画像データに対して画像処理としてのウィンド処理を
施すのに必要な注目画素周辺の画素データを抽出できず
、全体の画像処理を円滑に行えないという欠点がある。Also, when reading image data from the buffer memory using the shuttle scan method, the data is interrupted at the joints of the buffer memory, so it is necessary to perform window processing as image processing on the image data stored in the buffer memory. This method has the disadvantage that pixel data around the pixel of interest cannot be extracted, and overall image processing cannot be performed smoothly.
[課題を解決するための手段]
本発明は、上述の課題を解決することを目的として成さ
れたもので、上述の課題を解決する一手段として以下の
構成を備える。[Means for Solving the Problems] The present invention has been made for the purpose of solving the above-mentioned problems, and includes the following configuration as one means for solving the above-mentioned problems.
即ち、1個の画素データに1アドレスを対応させて画像
データを格納する複数個の画像データ格納手段と、前記
画像データ格納手段ヘラスタースキャン方式にて画像デ
ータの書き込みを行なう書き込み制御手段と、前記書き
込み制御手段基こて書き込みを行なった画像データ格納
手段からシャトルスキャン方式にて画像データを読み出
す読み出し制御手段とを備え、前記読み畠し制御手段は
シャトルスキャン方式にて画像データを読み出すときに
、シャトルスキャン方向に任意に読み出し画像データ長
を変える。That is, a plurality of image data storage means for storing image data by associating one address with one pixel data, a write control means for writing image data in the image data storage means using a Herastar scan method; readout control means for reading image data from the image data storage means on which writing has been performed using the shuttle scan method; , arbitrarily change the read image data length in the shuttle scan direction.
[作用]
以上の構成において、同一バッファメモリ上で2つの異
なる画像データ読み出しと書き込み順序を実現し、バッ
ファつなぎ目での画像処理を円滑に実行する。[Operation] With the above configuration, two different image data reading and writing orders are realized on the same buffer memory, and image processing at the buffer joint is smoothly executed.
[実施例]
以下、添付図面を参照して本発明に係る好適な一実施例
について詳細に説明する。[Embodiment] Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.
第1図は、本発明の一実施例である画像処理装置全体の
ブロック図である。FIG. 1 is a block diagram of an entire image processing apparatus that is an embodiment of the present invention.
第1図において、画像処理装置100は通信回線101
からのデータを通信制御部102にて受信し、CPU1
03の制御によりバッファメモリ104に格納したり、
バッファメモリ10,4内のデータを通信制御部102
を介して通信回線101に送り込む。CPU103は、
これらのデータ送受信に関与する以外に、ROM105
に格納された制御プログラムに従って、画像処理装置1
00全体を制御する。In FIG. 1, an image processing device 100 is connected to a communication line 101.
The communication control unit 102 receives data from the CPU 1.
03 to store it in the buffer memory 104,
The data in the buffer memories 10 and 4 are transferred to the communication control unit 102.
is sent to the communication line 101 via. The CPU 103 is
In addition to being involved in these data transmission and reception, the ROM105
Image processing device 1 according to the control program stored in
Controls the entire 00.
バッファメモリ104に格納されたデータは、必要に応
じて画像表示部107に表示される。The data stored in the buffer memory 104 is displayed on the image display section 107 as necessary.
第2図は、本実施例の画像処理装置のバッファメモリ1
04、及びその周辺回路の詳細ブロック図である。FIG. 2 shows the buffer memory 1 of the image processing device of this embodiment.
04 and its peripheral circuitry. FIG.
第2図において、バッファ11〜13は画像データを一
時的に保存するためのメモリであり、これらのメモリに
対するアドレスとデータとの関係は1画素データ(lp
ixel : RGB、CMY。In FIG. 2, buffers 11 to 13 are memories for temporarily storing image data, and the relationship between addresses and data for these memories is 1 pixel data (lp
ixel: RGB, CMY.
CMYK等)に1アドレスを与えている。CMYK, etc.) is given one address.
つまり、画素データの各色に1bitを対応させたRG
Bデータ(2値化データ)のためのバッファメモリであ
るとした場合、例えばメモリのOO番地に“110□
(2は2進を示す)という値が格納されていることは
、RGのみが色画素データとして存在するということを
意味する。このためのバッファメモリは、メモリデバイ
ス構成として、例えば1bitデータ出力のRAMを3
個並列に並べることにより実現される。In other words, RG with one bit corresponding to each color of pixel data
If the buffer memory is for B data (binarized data), for example, "110□" is stored at address OO of the memory.
The fact that the value (2 indicates binary) is stored means that only RG exists as color pixel data. The buffer memory for this purpose has a memory device configuration that includes, for example, 3 RAMs with a 1-bit data output.
This is achieved by arranging them in parallel.
同様に、CMYKデータのためのバッファメモリの場合
は、1bitデータ出力のRAMを4個並列に並べるか
、或は4bitデータ出力のRAM1個構成とすればよ
い。Similarly, in the case of a buffer memory for CMYK data, four 1-bit data output RAMs may be arranged in parallel, or one 4-bit data output RAM may be configured.
また、各色8bitのRGBデータ(多値化データ)の
ためのバッファメモリであると、例えば00番地に格納
された“80EEFFH(Hは16進を示す)という値
は、Rの値が80.、Gの値がEE、、Bの値がFF、
の色画素データとして存在するということである。これ
は、通常のマイクロプロセッサにおけるメモリ配置と同
様、8bitデータ出力のRAMを3個並列に並べるこ
とにより実現できる。Furthermore, if the buffer memory is for 8-bit RGB data (multilevel data) for each color, for example, the value "80EEFFH (H indicates hexadecimal)" stored at address 00 means that the R value is 80. The value of G is EE, the value of B is FF,
This means that it exists as color pixel data. This can be achieved by arranging three 8-bit data output RAMs in parallel, similar to the memory arrangement in a normal microprocessor.
本実施例の画像処理装置のバッファメモリは、第2図に
示すように1画素データ1アドレス構成としたバッファ
を3個有している。このバッファメモリにおいて、後述
するように、シャトルスキャン方式による読み出しは、
重複データ読み出しの部分があるためバッファ3個構成
とし、バッファメモリへのデータ書き込みと読み出しを
同時に並列にできるようになっている。As shown in FIG. 2, the buffer memory of the image processing apparatus of this embodiment has three buffers each having a configuration of one pixel data and one address. In this buffer memory, reading using the shuttle scan method is performed as described later.
Since there is a portion where data is read repeatedly, it is configured with three buffers so that data can be written and read from the buffer memory simultaneously in parallel.
第2図のバッファメモリにおいて、アドレス発生部1が
データ読み出しのためのアドレスを生成する。そして、
制御信号AEO−AE2の制御によりアドレスバスのパ
スバッファ2,4.6を介してアドレスがかけられ、ま
た、制御信号DEO〜DE2の制御によりデータバスの
パスバッファ8〜10を介してデータが出力される。In the buffer memory shown in FIG. 2, an address generator 1 generates an address for reading data. and,
Addresses are applied via the path buffers 2, 4.6 of the address bus under the control of the control signals AEO-AE2, and data is output via the path buffers 8-10 of the data bus under the control of the control signals DEO-DE2. be done.
その結果、3個構成のバッファの内の任意のバッファに
アドレスをかけて、データを読み出すことができる。ま
た、デコーダ3,5.7は、アドレス発生部1からの読
み込みアドレスと制御信号AEO−AE2とを受けて、
選択すべきバッファにチップセレクト信号を出力する。As a result, data can be read by addressing any one of the three buffers. Further, the decoders 3, 5.7 receive the read address from the address generator 1 and the control signal AEO-AE2, and
A chip select signal is output to the buffer to be selected.
第3図にバッファメモリのメモリブロック構成と読み出
し、及び書き込みアクセス順序との関係を示す。FIG. 3 shows the relationship between the memory block configuration of the buffer memory and the read and write access orders.
第3図に示したバッファメモリの各バッファは、Y方向
に128bit (ブロックバッファと呼ぶ)の2倍の
256bit、X方向には5Kbitの大きさを有して
いる(400dpiのA3サイズを想定)。この大きさ
のバッファがバッファ1〜3の順に並んでいる。Each buffer in the buffer memory shown in Figure 3 has a size of 256 bits in the Y direction, which is twice the size of 128 bits (called a block buffer), and a size of 5 Kbits in the X direction (assuming A3 size at 400 dpi). . Buffers of this size are lined up in the order of buffers 1 to 3.
バッファメモリへの画像データの書き込みは、第3図の
右側に示した番号順に繰り返される。ここでの書き込み
は、ラスタースキャン方式でX方向に書き込み、X方向
の書き込みが終了する度にY方向のアドレスをカウント
アツプしてゆく。そして、カウントアツプがバッファの
Y方向に128に達すると、1ブロツクの画像データの
書き込みが終了する。これを■−■−■−■−■−■→
■と繰り返す。Writing of image data to the buffer memory is repeated in the numerical order shown on the right side of FIG. Writing here is performed in the X direction using a raster scan method, and the address in the Y direction is counted up every time writing in the X direction is completed. When the count-up reaches 128 in the Y direction of the buffer, writing of one block of image data is completed. This ■−■−■−■−■−■→
■Repeat.
一方、バッファメモリから画像データの読み出しは、第
3図の左側に示した番号順に繰り返される。ここでの読
み出しは、シャトルスキャン方式でY方向に読み出し、
X方向へカウントアツプしてゆく。このメモリ読み出し
では、画像データ読み出し後の画像処理で必要なブロッ
クバッファの前後数ライン分の画像データを重複して読
み出している。第3図の左側に示した番号に付随する矢
印は、その重複部分も考慮されている。この読み出しは
、■→■→■−■→■−■→■の順に繰り返す。On the other hand, the reading of image data from the buffer memory is repeated in the numerical order shown on the left side of FIG. The readout here is performed in the Y direction using the shuttle scan method.
Count up in the X direction. In this memory reading, image data for several lines before and after the block buffer, which is necessary for image processing after reading the image data, is read out redundantly. The arrows attached to the numbers shown on the left side of FIG. 3 also take into account their overlapping parts. This reading is repeated in the order of ■→■→■−■→■−■→■.
本バッファメモリでの画像データ読み出し処理で注目す
るべき点は、例えば、読み出し順序番号■に付随する矢
印は、バッファ1の前半のブロックバッファの最終ライ
ンとバッファ2の前半のブロックバッファの数ラインを
含んでいる点である。従って、読み出し順序番号■の処
理を行っているときは、バッファlとバッファ2が読み
出し側でアクセス状態となり、書き込み側でアクセスで
きるバッファは、バッファ3だけとなる。このように読
み出し側では、常に、6ブロツクに分けたブロックバッ
ファの2つを占有する。それ故、書き込み側と読み出し
側のバッファアクセス制御は、両者のアドレスやデータ
が互いに衝突しないようにするため、本バッファメモリ
はバッファ対応に3つの独立したアドレスバス、及びデ
ータバスを有する。What should be noted in the image data read processing in this buffer memory is that, for example, the arrow accompanying the read order number This is the point that it includes. Therefore, when processing with read order number ■ is being performed, buffers 1 and 2 are accessed on the read side, and only buffer 3 can be accessed on the write side. In this way, on the reading side, two of the block buffers divided into six blocks are always occupied. Therefore, in order to perform buffer access control on the write side and the read side to prevent addresses and data from colliding with each other, this buffer memory has three independent address buses and data buses corresponding to the buffers.
そこで、第2図に示したバッファメモリにおける、メモ
リ読み出し動作について説明する。Therefore, a memory read operation in the buffer memory shown in FIG. 2 will be explained.
第4図は、第2図に示したアドレス発生部1の構成を示
すブロック図であり、バッファメモリの下位アドレスを
メモリY方向に配置し、上位アドレスをX方向に配置す
る。このようなアドレス配置とすることにより、メモリ
読み畠し側ではY方向カウンタを先にカウントアツプし
、目的とするシャトルスキャンを実現している。FIG. 4 is a block diagram showing the configuration of the address generating section 1 shown in FIG. 2, in which the lower addresses of the buffer memory are arranged in the memory Y direction, and the upper addresses are arranged in the X direction. By arranging the addresses in this way, the Y-direction counter is counted up first on the memory reading side, thereby realizing the desired shuttle scan.
第4図ノラッチ31には、CPU103がらY方向のカ
ウント値としてYアドレスカウンタ33へのプリセット
値が入力される。これにより、アドレスバスA。−A、
に出力される128十α(aはシャトルスキャン読み出
しにおける、重複データ読み出しの部分の値であり、2
値化処理、或は多値化処理時のウィンドサイズで決定さ
れる)のカウント開始位置と終了位置が設定される。ま
た、ラッチ32には、CPU103がらX方向のカウン
ト終了値(ここでは、5kbit)が入力される。その
結果、Yアドレスカウンタ33における128+(2が
カウントアツプする度にリップルアウト信号が出力され
、Xアドレスカウンタ34からアドレスバスA8〜A2
゜に対して出力されるアドレスが更新される。A preset value to the Y address counter 33 is inputted to the Noratch 31 in FIG. 4 as a count value in the Y direction from the CPU 103. This causes address bus A. -A,
1280α (a is the value of the redundant data readout part in shuttle scan readout, 2
(determined by the window size during digitization processing or multi-value quantization processing) count start and end positions are set. Further, the CPU 103 inputs the count end value in the X direction (here, 5 kbit) to the latch 32 . As a result, each time the Y address counter 33 counts up 128+(2, a ripple out signal is output, and the X address counter 34 outputs a ripple out signal from the address buses A8 to A2.
The address output for ゜ is updated.
次に、本バッファメモリにおける、書き込み動作につい
て説明する。Next, a write operation in this buffer memory will be explained.
第5図は、第2図に示したアドレス発生部25の構成を
示すブロック図であり、本バッフアメそりにおける書き
込みはうスタースキャン方式であるため、X方向を先に
カウントアツプし、次にY方向を順次カウントアツプす
る。即ち、バッファメモリの下位アドレスをメモリX方
向に配置し、上位アドレスをY方向に配置する。FIG. 5 is a block diagram showing the configuration of the address generation section 25 shown in FIG. Count up directions sequentially. That is, the lower addresses of the buffer memory are arranged in the memory X direction, and the upper addresses are arranged in the Y direction.
ラスタースキャン方式による書き込みでは、ブロックバ
ッファ間での重複データを考虜しな(でもよいため、ア
ドレスバスA0〜A12にてX方向へ5kbit相当の
アドレスが出力される度にリップルアウト信号が出力さ
れ、Y方向へ128ライン分のアドレスがアドレスバス
A +x〜A2゜から出力されることにより、1ブロッ
クバッファ分の書き込みが終了する。When writing using the raster scan method, do not take into account duplicate data between block buffers, so a ripple out signal is output every time an address equivalent to 5 kbit is output in the X direction on address buses A0 to A12. , 128 lines of addresses in the Y direction are output from the address buses A+x to A2°, thereby completing writing for one block buffer.
第2図に示すように、本バッファメモリの書き込み側で
は、発生したアドレスをアドレスバスのパスバッファ1
4,16.18を介して入力し、また、データバスのパ
スバッファ20〜22を通してバッファメモリへデータ
を入力する。ここでがら、3個構成のバッファの内の任
意のバッファにアドレスをかけてデータを書き込む。As shown in Figure 2, on the write side of this buffer memory, the generated address is transferred to the path buffer 1 of the address bus.
4, 16, and 18, and also inputs data to the buffer memory through path buffers 20 to 22 of the data bus. Here, data is written by addressing any one of the three buffers.
また、デコーダ15,17.19は、書き込みアドレス
と制御信号AE3〜AE5を受けて、選択すべきバッフ
ァにチップセレクト信号を出力する。Furthermore, decoders 15, 17, and 19 receive write addresses and control signals AE3 to AE5, and output chip select signals to buffers to be selected.
第6図はブロックバッファの読み出し側でのタイミング
を示したタイミングチャートである。また、第7図は書
き込みタイミングを示すタイミングチャートである。FIG. 6 is a timing chart showing the timing on the read side of the block buffer. Further, FIG. 7 is a timing chart showing write timing.
第6図において、BVEは1ブロツクバツフアデータの
読み出しイネーブル信号、VEはY方向読み出しイネー
ブル信号である。クロック4丁によって画像データVD
OUTが点順序で読み出される。本タイミングチャート
では画像データをRGBXとしているが、これはRGB
と補色関係にあるCMYに黒Kを加えたCMYKに対応
したためで、XなしのRGB順序としてもよい。In FIG. 6, BVE is a read enable signal for one block buffer data, and VE is a Y direction read enable signal. Image data VD by 4 clocks
OUT is read out in point order. In this timing chart, the image data is RGBX, but this is RGB
This is because it corresponds to CMYK, which is the addition of black K to CMY, which has a complementary color relationship, and may be an RGB order without X.
以下、第2図に示したバッファメモリのブロック図、及
び第3図のバッファ構成を参照して、本バッファメモリ
のブロックバッファに対する書き込み、及び読み出し動
作について詳細に説明する。Hereinafter, with reference to the block diagram of the buffer memory shown in FIG. 2 and the buffer configuration shown in FIG. 3, write and read operations for the block buffer of this buffer memory will be described in detail.
(1)バッファlへの書き込み動作
バッファlを選択するために制御信号AE3゜DE3を
アクティブ(論理“L”)にする。書き込み側からのア
ドレスは、A o −A +aまで順次増加し、カウン
トアツプしたらA目を増加する。このアドレスがアドレ
スバス1を介してバッファ1に与えられ、同時に書き込
みデータがデータバス1を通してバッファlに与えられ
る。その結果、バッファ1の所定のアドレスにデータが
書き込まれる。(1) Write operation to buffer l In order to select buffer l, control signal AE3 DE3 is made active (logic "L"). The address from the writing side increases sequentially to A o -A + a, and when the count is up, it increases to the A-th address. This address is applied to buffer 1 via address bus 1, and at the same time write data is applied to buffer l via data bus 1. As a result, data is written to a predetermined address in buffer 1.
上述の動作が128ライン分繰り返され、続いて、同様
な動作により129ライン目から256ライン目までデ
ータを書き込む。The above operation is repeated for 128 lines, and then data is written from the 129th line to the 256th line by the same operation.
(2)バッファ2への書き込み動作
バッファ2を選択するために制御信号AE4゜DE4を
アクティブ(論理“L”)にする。そして、(1)と同
様の動作にて、128ライン分のデータを書き込む。(2) Write operation to buffer 2 To select buffer 2, control signal AE4 DE4 is made active (logic "L"). Then, data for 128 lines is written in the same operation as in (1).
上記(1)、及び(2)での書き込みにより、第3図右
側に示した書き込みアクセス番号の内、■−■→■まで
の処理が終了したことになる。By writing in (1) and (2) above, the processing from ■-■→■ among the write access numbers shown on the right side of FIG. 3 is completed.
(3)バッファ2への書き込みとバッファ1からの読み
出し動作
上記(2)に引き続き、バッファ2に128ライン分の
データを書き込む。(3) Writing to buffer 2 and reading from buffer 1 Continuing from (2) above, 128 lines of data are written to buffer 2.
このとき、読み出し側からのバッファ1のデータ読み出
しは、次のようになる。即ち、バッファ1を選択するた
めに制御信号AEO,DEOをアクティブ(論理“L”
)にし、画素クロックTに同期して、第4図のアドレス
カウンタが作り出すアドレスに対応した画素データ(R
,G、B。At this time, reading data from the buffer 1 from the reading side is as follows. That is, to select buffer 1, control signals AEO and DEO are activated (logic "L").
), and in synchronization with the pixel clock T, the pixel data (R
,G,B.
X)が読み出される。アドレス発生部1では第4図に示
すように、画素クロックでアドレスカウンタが動作し、
Y方向に128+αの画素を計数したら、リップルアウ
トにより上位アドレスを増加する。X) is read out. In the address generation section 1, as shown in FIG. 4, an address counter operates based on the pixel clock.
After counting 128+α pixels in the Y direction, the upper address is increased by ripple out.
また、あらかじめX方向のカウント値をセットすると、
第4図のラッチ32を通してXアドレスカウンタのカウ
ント上限値を設定することができる。Also, if you set the count value in the X direction in advance,
The upper limit value of the X address counter can be set through the latch 32 of FIG.
読み出しの最初の動作、即ちバッファ1の前半ブロック
では、前段1ラインの画像データが存在しないためバッ
ファ1の先頭から読み出しが始まる。また、後半数ライ
ンの画像データは現在の読み出しポイントがバッファ1
の領域内に納まるため、そのまま128+αカウントア
ツプすればよい。In the first read operation, that is, in the first half block of buffer 1, there is no image data of the previous line, so reading starts from the beginning of buffer 1. Also, for the image data of the latter few lines, the current read point is buffer 1.
Since it falls within the range of , it is sufficient to simply count up 128+α.
ここまでの動作で、第3図右側に示した書き込みアクセ
ス番号の内、■−〇−〇−〇までの処理が終了し、第3
図左側に示した読み出しアクセス番号の■の処理が終了
したことになる。With the operations up to this point, the processing for write access numbers ■-〇-〇-〇 shown on the right side of Figure 3 has been completed, and the
This means that the process indicated by the read access number (■) shown on the left side of the figure has been completed.
(4)バッファ3への書き込みとバッファ1.バッファ
2からの読み出し動作
バッファ3を選択するために制御信号AE5゜DE5を
アクティブ(論理“L”)にする。上記(1)での処理
と同様に、バッファ3へ128ライン分の画像データを
書き込む。同時に、バッファ1とバッファ2より画像デ
ータを読み出すために、制御信号AEO,AEIをアク
ティブ(論理“L”)にし、バッファ1とバッファ2を
選択する。(4) Writing to buffer 3 and buffer 1. Read operation from buffer 2 In order to select buffer 3, control signal AE5 DE5 is made active (logic "L"). Similar to the process in (1) above, 128 lines of image data are written to the buffer 3. At the same time, in order to read image data from buffers 1 and 2, control signals AEO and AEI are activated (logic "L") to select buffers 1 and 2.
データバス側では、まず制御信号DEOを論理”L”の
アクティブ状態にしておき、バッファ1の前半ブロック
の最終ラインポイント、即ち、Y方向のカウント値を1
27に設定すると、アドレス発生部1は画素クロックと
共にカウントアツプしてゆき、バッファ1の後半ブロッ
ク128〜255ラインをカウントアツプする。On the data bus side, first, the control signal DEO is set to the active state of logic "L", and the last line point of the first half block of buffer 1, that is, the count value in the Y direction, is set to 1.
When set to 27, the address generator 1 counts up along with the pixel clock, and counts up the 128th to 255th lines of the second half block of the buffer 1.
アドレス発生部1 bs l 28ライン分をカウント
するとカウンタはOに戻り、次に0分のカウントをする
。このときデータバス側では、制御信号をDEIに切り
替えておく。こうすることにより、バッファ2の前半の
数ライン分の画素データが読み出される。そして、+0
分の画素データを読み終わると、再び制御信号DEOを
選択しバッファ1からの読み出しを行なう。即ち、Y方
向のカウントが終了する度にX方向をカウントアツプし
てゆき、以後、この動作を繰り返す。Address generation unit 1 bs l After counting 28 lines, the counter returns to 0 and then counts 0 minutes. At this time, on the data bus side, the control signal is switched to DEI. By doing this, pixel data for several lines in the first half of the buffer 2 is read out. And +0
After reading the pixel data for 10 minutes, the control signal DEO is selected again and reading from the buffer 1 is performed. That is, each time the count in the Y direction is completed, the count in the X direction is increased, and this operation is repeated thereafter.
以上の動作により、第3図右側に示した書き込みアクセ
ス番号の内、■までの処理が終了し、第3図左側に示し
た読み出しアクセス番号の■の処理が終了したことにな
る。As a result of the above operations, the processing for the write access numbers up to ■ shown on the right side of FIG. 3 has been completed, and the processing for the read access numbers (■) shown on the left side of FIG. 3 has been completed.
(5)バッファ3への書き込みとバッファlとバッファ
2からの読み出し動作
バッファ3を選択するために制御信号AE5゜DE5を
アクティブ(論理“L”)にする。そして、上記(4)
での処理に続いて、128〜255までの128ライン
分の画像データを書き込む。それと同時に、バッファ1
とバッファ2より画像データを読み出す。(5) Writing to buffer 3 and reading from buffer 1 and buffer 2 In order to select buffer 3, control signal AE5 DE5 is made active (logic "L"). And (4) above
Following the processing in , 128 lines of image data from 128 to 255 are written. At the same time, buffer 1
and reads image data from buffer 2.
バッファlとバッファ2を選択するため、制御信号AE
O,AEIをアクティブ(論理“L”)にする。ここで
は、バッファ1の後半最終ラインだけを読み出し、直ち
にバッファ2の読み出しに移る。即ち、最初のY方向の
アドレスカウント値を255にセットして、制御信号D
EOをアクティブ(論理“L”)にしておく。こうして
バッファ1の最終ラインの読み出しを終えると、直ちに
制御信号DEIをアクティブ(論理“L”)にして、バ
ッファ2を選択する。かくして、Y方向にO〜128+
α分のカウントアツプを行ない、バッファ2より画像デ
ータを読み出した後、再びバッファ1より1画素読み出
し、X方向をカウントアツプして、上記の動作を繰り返
す。To select buffer l and buffer 2, control signal AE
O, AEI is made active (logic "L"). Here, only the final line of the second half of buffer 1 is read out, and the readout of buffer 2 is immediately started. That is, the initial address count value in the Y direction is set to 255, and the control signal D is
Keep EO active (logic "L"). Immediately after reading the last line of buffer 1 is completed, control signal DEI is made active (logic "L") to select buffer 2. Thus, O~128+ in the Y direction
After counting up for α and reading image data from buffer 2, one pixel is read out from buffer 1 again, counting up in the X direction, and repeating the above operation.
以上の動作により、第3図右側に示した書き込みアクセ
ス番号の内、■までの処理が終了し、第3図左側に示し
た読み出しアクセス番号の■の処理が終了したことにな
る。As a result of the above operations, the processing for the write access numbers up to ■ shown on the right side of FIG. 3 has been completed, and the processing for the read access numbers (■) shown on the left side of FIG. 3 has been completed.
以降、上述と同様の動作を繰り返し、本バッファメモリ
に対する書き込みと読み出しを行う。Thereafter, operations similar to those described above are repeated to perform writing and reading to and from this buffer memory.
以上説明したように、本実施例によれば、同一バッファ
に対して画像データの書き込みをラスタースキャン方式
にて行ない、読み出しにはシャトルスキャン方式という
2つの異なる方式を採ることが容易に実現できるという
効果がある。As explained above, according to this embodiment, it is possible to easily implement two different methods: writing image data to the same buffer using the raster scan method and reading it using the shuttle scan method. effective.
また、シャトルスキャン方式にて読み出す際、現在読み
出し中のブロックバッファとそのブロックバッファ前後
の画像データの一部を重複して読み出すことができるの
で、バッファつなぎ目での画像処理が容易になり、画像
処理全体が円滑に行なえるという効果がある。In addition, when reading using the shuttle scan method, the block buffer currently being read and part of the image data before and after that block buffer can be read out redundantly, making it easier to perform image processing at buffer joints. This has the effect of making everything run smoothly.
尚、本発明は上述の実施例に限定されるものではなく、
例えばバッファメモリへの書き込みと読み出しを同時に
行なわず、バッファメモリを2個構成にして、書き込み
と読み出しを交互に変える方法を採ってもよい。It should be noted that the present invention is not limited to the above-mentioned embodiments,
For example, instead of writing and reading from the buffer memory at the same time, a method may be adopted in which two buffer memories are used and writing and reading are alternately performed.
[発明の効果]
以上説明したように、本発明によれば、画像データの読
み出しと書き込みとで2つの異なるスキャン方式を採る
ことにより、画像処理に都合のよいデータ転送ができ、
バッファのつなぎ目における画像処理を円滑に行なうこ
とができるという効果がある。[Effects of the Invention] As explained above, according to the present invention, by adopting two different scanning methods for reading and writing image data, data transfer convenient for image processing can be performed.
This has the effect that image processing at the joint between buffers can be performed smoothly.
第1図は本発明の一実施例である画像処理装置のブロッ
ク図、
第2図は実施例のバッファメモリ、及びその周辺回路の
詳細ブロック図、
第3図はバッファメモリのメモリブロック構成と読み出
し、及び書き込みアクセス順序との関係を示す図、
第4図はアドレス発生部lの構成を示すブロック図、
第5図はアドレス発生部25の構成を示すブロック図、
第6図はブロックバッファの読み出しタイミングを示し
たタイミングチャート、
第7図はブロックバッファの書き込みタイミングを示す
タイミングチャート、
第8図は従来の画像処理装置における画像データの転送
を説明する図、
第9図(a)はスキャナプリンタでのシリアルスキャン
方向と画素の並び方向を示す図、第9図(b)はシャト
ルスキャン方式での画像データの並びを示す図、
第9図(C)はラスタースキャン方式での画像データの
並びを示す図、
第10図(a)は2値バツフアメモリと画像データの変
換処理手順を示す図、
第10図(b)は多値バッファメモリと画像データの変
換処理手順を示す図、
第11図(a)は注目画素近辺における画素の様子を示
す図、
第11図(b)は3×3のウィンドマトリクスの重み値
の例を示す図、
第11図(c)は復元した多値データを示す図、
第12図(a)はシャトルスキャン方式の場合の3×5
の重み係数ウィンドの例を示す図、第12図(b)は3
×5の重み係数ウィンドでの誤差の伝搬を示す図、
第13図(a)は3×3ウインドを用いた多値化処理時
のバッファつなぎ目での処理の様子を示す図、
第13図(b)は3×5の重み係数ウィンドを用いた2
値化処理時のバッファつなぎ目での処理の様子を示す図
である。
図中、1.25・・・アドレス発生部、11〜13・・
・バッファ、34.37・・・Xアドレスカウンタ、3
3.38・・・Yアドレスカウンタ、100・・・画像
処理装置、104・・・バッファメモリである。
特
許
出
願
人
キャノン株式会社
第4
第5Fig. 1 is a block diagram of an image processing device that is an embodiment of the present invention, Fig. 2 is a detailed block diagram of a buffer memory of the embodiment and its peripheral circuits, and Fig. 3 is a memory block configuration and readout of the buffer memory. , and the relationship with the write access order; FIG. 4 is a block diagram showing the configuration of the address generation section l; FIG. 5 is a block diagram showing the configuration of the address generation section 25; FIG. 6 is block buffer readout. FIG. 7 is a timing chart showing block buffer write timing. FIG. 8 is a diagram explaining image data transfer in a conventional image processing device. FIG. 9(a) is a diagram showing image data transfer in a conventional image processing device. Figure 9(b) is a diagram showing the arrangement of image data in the shuttle scan method, and Figure 9(C) is a diagram showing the arrangement of image data in the raster scan method. 10(a) is a diagram showing the conversion process procedure between the binary buffer memory and image data, FIG. 10(b) is a diagram showing the conversion process procedure between the multilevel buffer memory and image data, and FIG. 11( Figure 11 (a) is a diagram showing the state of pixels in the vicinity of the pixel of interest, Figure 11 (b) is a diagram showing an example of weight values of a 3 x 3 window matrix, and Figure 11 (c) is a diagram showing restored multi-level data. Figure 12(a) shows the 3×5 case of the shuttle scan method.
Figure 12(b) is a diagram showing an example of the weighting coefficient window of 3.
Figure 13(a) is a diagram showing error propagation in a ×5 weighting coefficient window, Figure 13(a) is a diagram showing processing at a buffer joint during multi-value processing using a 3 × 3 window, Figure 13 ( b) is 2 using a 3x5 weighting factor window.
FIG. 7 is a diagram showing a state of processing at a buffer joint during valorization processing. In the figure, 1.25...address generation section, 11-13...
・Buffer, 34.37...X address counter, 3
3.38...Y address counter, 100...image processing device, 104...buffer memory. Patent applicant Canon Co., Ltd. No. 4 No. 5
Claims (2)
データを格納する複数個の画像データ格納手段と、 前記画像データ格納手段ヘラスタースキャン方式にて画
像データの書き込みを行なう書き込み制御手段と、 前記書き込み制御手段にて書き込みを行なった画像デー
タ格納手段からシャトルスキャン方式にて画像データを
読み出す読み出し制御手段とを有することを特徴とする
画像処理装置。(1) a plurality of image data storage means for storing image data by associating one address with one pixel data; and a write control means for writing image data in the image data storage means using a hera star scan method; An image processing apparatus comprising: readout control means for reading image data from the image data storage means written by the write control means using a shuttle scan method.
像データを読み出すときに、シャトルスキャン方向に任
意に読み出し画像データ長を変えることができることを
特徴とする請求項第1項記載の画像処理装置。(2) The image processing apparatus according to claim 1, wherein the readout control means is capable of arbitrarily changing the readout image data length in the shuttle scan direction when reading out the image data using the shuttle scan method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2255196A JPH04134957A (en) | 1990-09-27 | 1990-09-27 | Image processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2255196A JPH04134957A (en) | 1990-09-27 | 1990-09-27 | Image processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04134957A true JPH04134957A (en) | 1992-05-08 |
Family
ID=17275364
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2255196A Pending JPH04134957A (en) | 1990-09-27 | 1990-09-27 | Image processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04134957A (en) |
-
1990
- 1990-09-27 JP JP2255196A patent/JPH04134957A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS59156070A (en) | Picture processing device | |
US4602383A (en) | Image data compression system | |
JP3495922B2 (en) | Video data transmission method | |
US5274470A (en) | Data converter and image reader using the same | |
JPH04134957A (en) | Image processor | |
US6282321B1 (en) | Context generation circuit and method for small screen | |
JPH04134956A (en) | Image processor | |
JP3539552B2 (en) | Image processing device | |
JPH11306343A (en) | Rotational processing device for two-dimensional data | |
JP3234460B2 (en) | Image data processing device | |
JP3825134B2 (en) | Image correction apparatus and image correction method | |
JPH0244969A (en) | Picture data processing unit | |
JP2712426B2 (en) | Image transmission device | |
JPS6259512B2 (en) | ||
JP2641432B2 (en) | Interface device | |
JP2821452B2 (en) | Color image processing method | |
JP2643273B2 (en) | Image processing device | |
JP2005094403A (en) | Image processor | |
US20050025385A1 (en) | Image processing device and method therefor | |
JP3234461B2 (en) | Image data processing device | |
JPH0563959A (en) | Method and device for processing picture | |
JP2005094404A (en) | Image processor | |
JPH04148292A (en) | Picture input circuit | |
JP2002044421A (en) | Image reader and its control method and image processor | |
JPH03133674A (en) | Image data processor |