JPH07162676A - Picture data processor, picture reduction device and picture magnification device - Google Patents

Picture data processor, picture reduction device and picture magnification device

Info

Publication number
JPH07162676A
JPH07162676A JP5338878A JP33887893A JPH07162676A JP H07162676 A JPH07162676 A JP H07162676A JP 5338878 A JP5338878 A JP 5338878A JP 33887893 A JP33887893 A JP 33887893A JP H07162676 A JPH07162676 A JP H07162676A
Authority
JP
Japan
Prior art keywords
image data
output
data
cycle
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5338878A
Other languages
Japanese (ja)
Inventor
Koji Shinkawa
康志 親川
Takeshi Kasahara
健 笠原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP5338878A priority Critical patent/JPH07162676A/en
Publication of JPH07162676A publication Critical patent/JPH07162676A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To process picture data so as to perform normal gradation expression without being accompanied by the degradation of picture quality. CONSTITUTION:A controller 1 outputs picture element read clocks (a) to a CCD line sensor 2 and a pattern selection signal generator 3 and outputs magnification setting input (c) to the pattern selection signal generator 3. The pattern signal generator 3 outputs pattern selection signals (f) to a 4-to-1 selector 6 in a cycle corresponding to the magnification setting input (c). A pattern memory 5 utilizes a dither method and successively stores the threshold value data of one row among the threshold value data constituted of a 4X4 matrix. The four pieces of the threshold value data constituting one row are successively and selectively outputted from the 4-to-1 selector 6 operated in response to the input of the pattern selection signals (f). A comparator 4 binarizes analog picture data by comparing the analog picture data (b) from the CCD line sensor 2 with analog threshold value data (g) from a D/A converter 7.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、シリアルに入力される
画像データに対して、画像を縮小又は拡大するに必要な
処理を行う画像データ処理装置、及びこの画像データ処
理装置を用いた画像拡大縮小装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data processing apparatus for performing processing necessary for reducing or enlarging an image on serially input image data, and an image enlarging apparatus using this image data processing apparatus. Regarding a reduction device.

【0002】[0002]

【従来の技術】従来の画像データ処理装置としては、図
9に示したものが知られている。すなわち、CCDライ
ンセンサ31は、コントローラ32から出力される読み
出しクロックに同期して、アナログ画像データをコンパ
レータ33に出力する。メモリ1〜4で構成されるパタ
ーンメモリ34は、ディザ法を利用した4×4マトリク
スで構成される閾値データのうち、1行を構成する4つ
の閾値データを格納する。このパターンメモリ34に格
納される4つの閾値データは、コントローラ32から前
記読み出しクロックと同一タイミングで出力されるパタ
ーン選択信号に同期して、D/Aコンバータ35を介し
コンパレータ33に入力される。コンパレータ33は、
図10に示すように、CCDラインセンサ31からのア
ナログ画像データと、D/Aコンバータ35を介して入
力される閾値(以下、閾値は対応するメモリの番号1〜
4をもって示す。)とを比較することにより、アナログ
画像データを2値化する。この2値化データは、1画面
分のデータをもって画素メモリ36に格納された後、コ
ントローラ32を介して外部のプリンタ等に出力され
る。
2. Description of the Related Art As a conventional image data processing apparatus, the one shown in FIG. 9 is known. That is, the CCD line sensor 31 outputs the analog image data to the comparator 33 in synchronization with the read clock output from the controller 32. The pattern memory 34 configured by the memories 1 to 4 stores four threshold value data forming one row among the threshold value data configured by the 4 × 4 matrix using the dither method. The four threshold value data stored in the pattern memory 34 are input to the comparator 33 via the D / A converter 35 in synchronization with the pattern selection signal output from the controller 32 at the same timing as the read clock. The comparator 33 is
As shown in FIG. 10, analog image data from the CCD line sensor 31 and a threshold value input via the D / A converter 35 (hereinafter, the threshold values are corresponding memory numbers 1 to 1).
4 is shown. ) Are compared with each other to binarize the analog image data. The binarized data is stored in the pixel memory 36 with data for one screen, and then output to an external printer or the like via the controller 32.

【0003】また、画像を縮小する場合には、コントロ
ーラ32は入力される2値化データを縮小倍率に応じた
頻度で間引いた後、画素メモリ36に格納する。すなわ
ち、図11に示すように、画像を1/2倍に縮小する場
合には、×印で示すように、2値化データを1つおきに
画素間引きした後、画素メモリ36に格納する。よっ
て、この画素メモリ36に格納された画素間引き後の1
画面分の2値化データに基づき、プリンタを動作させる
ことにより、1/2に縮小させた画像をプリントアウト
することができる。
Further, when reducing the image, the controller 32 thins out the inputted binarized data at a frequency according to the reduction ratio and then stores it in the pixel memory 36. That is, as shown in FIG. 11, when the image is reduced by a factor of 1/2, every other pixel of the binarized data is thinned out and then stored in the pixel memory 36, as indicated by the mark x. Therefore, 1 after the pixel thinning stored in the pixel memory 36
By operating the printer based on the binarized data for the screen, it is possible to print out the image reduced to 1/2.

【0004】[0004]

【発明が解決しようとする課題】このような従来の装置
において、画素間引きを行わない場合には、図10に示
すように、複数の異なる閾値により2値化されたデータ
が全て用いられることから、正常な濃淡表現を行うこと
ができる。しかし、図11に示すように、データを1/
2に圧縮すると、閾値“2”と“4”により2値化した
データが欠落し、閾値“1”と“3”により2値化した
データのみとなることから、正常な濃淡表現ができなく
なってしまう。つまり、ディザパターンの周期性を壊し
てしまうため、ディザパターンによる中間調が再現でき
なくなってしまう。
In such a conventional apparatus, when pixel thinning is not performed, as shown in FIG. 10, all data binarized by a plurality of different thresholds are used. , Can perform normal grayscale expression. However, as shown in FIG.
If compressed to 2, the data binarized by the thresholds “2” and “4” will be lost, and only the data binarized by the thresholds “1” and “3” will be lost, so normal grayscale expression cannot be performed. Will end up. That is, since the periodicity of the dither pattern is destroyed, the halftone due to the dither pattern cannot be reproduced.

【0005】そこで、図12に示すように、間引き後の
データ列において、閾値“1”“2”“3”“4”を用
いて2値化されたデータが順次羅列するように、画素間
引きを行う装置も出現するに至っており、かかる装置に
よれば正常な濃淡表現を行うことが可能となる。しか
し、このような画素間引きを行うと、間引き後のデータ
に原画に対する画素の片寄りが生ずることから、正常な
濃淡表現が可能となっても、画質が劣化してしまう。
Therefore, as shown in FIG. 12, pixel thinning is performed so that binarized data using the threshold values "1", "2", "3" and "4" are sequentially arranged in the thinned data sequence. A device for performing the above has also appeared, and such a device can perform normal grayscale expression. However, when such pixel thinning is performed, the data after thinning has a deviation of pixels from the original image, so that the image quality deteriorates even if normal grayscale expression is possible.

【0006】本発明は、このような従来の課題に鑑みて
なされたものであり、画質の低下を伴うことなく正常な
濃淡表現ができるように画像データを処理する画像デー
タ処理装置及び画像拡大縮小装置を提供することを目的
とするものである。
The present invention has been made in view of such conventional problems, and an image data processing apparatus and an image enlarging / reducing apparatus for processing image data so that normal gradation expression can be performed without deterioration in image quality. The purpose is to provide a device.

【0007】[0007]

【課題を解決するための手段】前記課題を解決するため
に本発明にあっては、画像データを所定周期で入力する
画像データ入力手段と、ディザパターンを構成する複数
の閾値を記憶する記憶手段と、該記憶手段に記憶されて
いる前記複数の閾値を順次出力する閾値出力手段と、該
閾値出力手段の出力周期を画像の拡大縮小倍率に応じて
前記入力周期に対して変化させる出力周期可変手段と、
前記倍率に応じた周期で前記閾値出力手段から順次出力
される閾値に基づき、前記画像データを2値化する2値
化手段とを有することを要旨としている。
In order to solve the above problems, according to the present invention, an image data input means for inputting image data at a predetermined cycle and a storage means for storing a plurality of threshold values forming a dither pattern. A threshold output means for sequentially outputting the plurality of threshold values stored in the storage means, and an output cycle variable for changing an output cycle of the threshold output means with respect to the input cycle according to an enlargement / reduction ratio of an image. Means and
The gist of the present invention is to have a binarizing unit that binarizes the image data based on a threshold value sequentially output from the threshold value output unit at a cycle corresponding to the magnification.

【0008】[0008]

【作用】前記構成において、例えば画像を1/2に縮小
する場合には、出力周期可変手段は、閾値出力手段の出
力周期が等倍時に対して2倍となるように変化させる。
すると、入力手段から入力された画像データを2値化す
るに際し、2値化手段は同じ閾値を用いて2倍の画像デ
ータを2値化すこととなる。したがって、同じ閾値で2
値化された画像データの1/2を順次画素間引きし、画
素間引き後の2値化データを用いることにより、1/2
に縮小された画像の表示、あるいは印刷が可能となる。
In the above structure, when the image is reduced to 1/2, for example, the output cycle changing means changes the output cycle of the threshold output means to be twice as large as that at the same size.
Then, when binarizing the image data input from the input unit, the binarizing unit binarizes the doubled image data using the same threshold value. Therefore, with the same threshold, 2
1/2 of the binarized image data is sequentially thinned out, and by using the binarized data after thinning out the pixels,
It is possible to display or print the image reduced in size.

【0009】[0009]

【実施例】以下、本発明の一実施例を図にしたがって説
明する。すなわち、図1に示すように、コントローラ1
から出力される画素読み出しクロックaは、CCDライ
ンセンサ2とパターン選択信号発生器3とに入力され
る。CCDラインセンサ2は、画素読み出しクロックa
に同期して、1画素に対応するアナログ画像データbを
順次コンパレータ4に入力する。また、コントローラ1
からは、倍率設定入力cや後述するリセット入力d及び
1/2位相ずれ読み出しクロックe(共に図2参照)
が、前記パターン選択信号発生器3に出力され、このパ
ターン選択信号発生器3からは4to1セレクタ6にパ
ターン選択信号fが出力される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. That is, as shown in FIG.
The pixel read clock a output from the above is input to the CCD line sensor 2 and the pattern selection signal generator 3. The CCD line sensor 2 uses the pixel read clock a
In synchronism with the above, the analog image data b corresponding to one pixel is sequentially input to the comparator 4. Also, the controller 1
From, a magnification setting input c, a reset input d, which will be described later, and a 1/2 phase shift read clock e (both see FIG. 2).
Is output to the pattern selection signal generator 3, and the pattern selection signal generator 3 outputs the pattern selection signal f to the 4to1 selector 6.

【0010】一方、パターンメモリ5は、ディザ法を利
用した4×4マトリクスで構成される閾値データのう
ち、1行の閾値データを順次格納する。この1行を構成
する4つの閾値データは、パターン選択信号fの入力に
応答して動作する前記4to1セレクタ6より順次選択
的に出力される。この選択的に出力された閾値データg
は、D/Aコンバータ7によりアナログデータに変換さ
れて、コンパレータ4に入力される。コンパレータ4
は、CCDラインセンサ2からのアナログ画像データb
と、D/Aコンバータ7からのアナログ閾値データgと
を比較することにより、アナログ画像データを2値化
し、2値化データhをコントローラ1に入力する。この
2値化データhは、1画面分のデータをもって画素メモ
リ8に格納された後、画像データiとしてコントローラ
32を介して外部のプリンタ等に送出される。
On the other hand, the pattern memory 5 sequentially stores one row of threshold data among the threshold data composed of a 4 × 4 matrix using the dither method. The four threshold value data forming one row are sequentially and selectively output from the 4to1 selector 6 that operates in response to the input of the pattern selection signal f. This selectively output threshold data g
Is converted into analog data by the D / A converter 7 and input to the comparator 4. Comparator 4
Is analog image data b from the CCD line sensor 2.
And the analog threshold value data g from the D / A converter 7 are compared to binarize the analog image data and input the binarized data h to the controller 1. The binarized data h is stored in the pixel memory 8 with data for one screen, and then sent as image data i to an external printer or the like via the controller 32.

【0011】図2は、前記パターン選択信号発生器3の
詳細を示すものであり、シフトレジスタ8はn段構成で
あって、1番目のレジスタに帰還されるデータは、前記
倍率設定入力cが与えられるnto1セレクタ9によ
り、シフトレジスタ8の1番目〜n番目の中から選択さ
れる。シフトレジスタ8の出力は、1番目からのカウン
ト有効/無効選択出力jを取っており、このカウント有
効/無効選択出力jは、前記画素読み出しクロックaと
ともにANDゲート10に入力される。
FIG. 2 shows the details of the pattern selection signal generator 3. The shift register 8 has an n-stage configuration, and the data fed back to the first register is the scale setting input c. A given nto1 selector 9 selects from the 1st to nth shift registers 8. The output of the shift register 8 takes the count valid / invalid selection output j from the first, and this count valid / invalid selection output j is input to the AND gate 10 together with the pixel read clock a.

【0012】したがって、ANDゲート10は、カウン
ト有効/無効選択出力jと画素読み出しクロックaとが
合致するタイミングで、パターン選択クロックkを2b
itカウンタ11に出力する。2bitカウンタ11
は、パターン選択クロックkの入力タイミングで、0,
1,2,3と変化するパターン選択信号fを4to1セ
レクタ6に入力し、4to1セレクタ6は、前記1行を
構成する4つの閾値データ(1データ、2データ、3デ
ータ、4データ)のうち、入力された値0,1,2,3
に対応する閾値データg(0:1データ、1:2デー
タ、2:3データ、3:4データ)をD/Aコンバータ
7に出力する。
Therefore, the AND gate 10 sets the pattern selection clock k to 2b at the timing when the count valid / invalid selection output j and the pixel read clock a match.
It is output to the it counter 11. 2 bit counter 11
Is the input timing of the pattern selection clock k, 0,
The pattern selection signal f that changes as 1, 2, 3 is input to the 4to1 selector 6, and the 4to1 selector 6 selects one of the four threshold value data (1 data, 2 data, 3 data, 4 data) forming one row. , The input value 0, 1, 2, 3
The threshold data g (0: 1 data, 1: 2 data, 2: 3 data, 3: 4 data) corresponding to is output to the D / A converter 7.

【0013】次に、以上の構成にかかる本実施例の動作
を図3に示したタイミングチャートに従って説明する。
すなわち、アナログ画像データbは、コントローラ1か
らの画素読み出しクロックaに同期して、CCDライン
センサ2からコンパレータ4に出力される。一方、リセ
ット入力dを“L”にすると、シフトレジスタ8の1番
目のみが状態“1”となり、他のn−1個は全て“0”
となる。そして、画像を1/2倍する場合には、倍率設
定入力cにより、nto1セレクタ9の選択出力“2”
を選び(SELECT2)、リセット入力を“H”にす
る。
Next, the operation of this embodiment having the above configuration will be described with reference to the timing chart shown in FIG.
That is, the analog image data b is output from the CCD line sensor 2 to the comparator 4 in synchronization with the pixel read clock a from the controller 1. On the other hand, when the reset input d is set to “L”, only the first shift register 8 is in the state “1”, and the other n−1 pieces are all “0”.
Becomes Then, in the case of halving the image, the selection output “2” of the nto1 selector 9 is input by the magnification setting input c.
Is selected (SELECT2), and the reset input is set to "H".

【0014】すると、ANDゲート10は、カウント有
効/無効選択出力jと読み出しクロックaとの論理積を
とって、読み出しクロックaの2回に対し、1回だけパ
ターン信号選択クロックkを出力する。したがって、2
bitカウンタ11は、読み出しクロックの周期に対し
て2倍の周期で歩進して、“0”〜“3”のパターン選
択信号fを出力し、4to1セレクタ6は、パターン選
択信号fに同期して、1行を構成する4つの閾値データ
(1データ、2データ、3データ、4データ)のうち、
入力された値に対応するデータ(0:1データ、1:2
データ、2:3データ、3:4データ)をD/Aコンバ
ータ7に出力する。
Then, the AND gate 10 calculates the logical product of the count valid / invalid selection output j and the read clock a and outputs the pattern signal selection clock k only once for every two read clocks a. Therefore, 2
The bit counter 11 advances in a cycle twice as long as the cycle of the read clock to output the pattern selection signal f of “0” to “3”, and the 4to1 selector 6 synchronizes with the pattern selection signal f. Out of the four threshold data (1 data, 2 data, 3 data, 4 data) that make up one row,
Data corresponding to the input value (0: 1 data, 1: 2
Data, 2: 3 data, 3: 4 data) is output to the D / A converter 7.

【0015】したがって、コンパレータ4には、画素読
み出しクロックaの周期に対して2倍の周期で変化する
閾値データが入力されるとともに、画素読み出しクロッ
クaのタイミングで1画素分のアナログ画像データbが
入力される。したがって、コンパレータ4では、隣接す
る2つの画素に対応する各画像データが、同じ閾値デー
タで2値化されることとなり、この2値化された画像デ
ータはコントローラ1に入力される。すると、コントロ
ーラ1は、この同じ閾値データで2値化された隣接する
2つの画素に対応する画像データのうち、一方の画素に
対応する画像データのみを画素間引きした後、画素メモ
リ8にする。
Therefore, the comparator 4 is supplied with threshold value data that changes at a cycle twice as long as the cycle of the pixel read clock a, and at the same time, the analog image data b for one pixel is output at the timing of the pixel read clock a. Is entered. Therefore, in the comparator 4, each image data corresponding to two adjacent pixels is binarized with the same threshold value data, and this binarized image data is input to the controller 1. Then, the controller 1 thins out only the image data corresponding to one pixel from the image data corresponding to two adjacent pixels binarized with the same threshold value data, and then sets the pixel data in the pixel memory 8.

【0016】したがって、画素メモリ8に記憶された1
画面分の画像データにあっては、1画面に対する1/2
の画素分が間引かれて1/2に圧縮されている。よっ
て、この1/2に圧縮された2値化データを画素メモリ
8から読み出して、LCDを駆動し、あるいはプリンタ
を駆動することにより、等倍時に対して1/2に縮小さ
れた画像を得ることができる。また、この画像を表示す
る圧縮された画像データにあっては、前述のように、同
じ閾値データで2値化した隣接する2つの画素に対応す
る画像データの一方を、画素間引きして構成されたもの
であることから、全ての閾値データにより2値化された
画像データを含み(ディザパターンの周期性を有してい
る)、かつ、間引き後のデータに原画に対する画素の片
寄りが生じていない。したがって、全ての閾値データに
より2値化された画像データを含むことにより、正常な
濃淡表現が可能となるとともに、間引き後のデータに原
画に対する画素の片寄りが生じていないことにより、画
質の劣化のない画像を得ることができる。
Therefore, 1 stored in the pixel memory 8
For screen image data, 1/2 for one screen
Pixels are thinned out and compressed to 1/2. Therefore, the binarized data compressed to ½ is read from the pixel memory 8 and the LCD or the printer is driven to obtain an image reduced to ½ of the normal size. be able to. Further, the compressed image data for displaying this image is configured by thinning out one of the image data corresponding to two adjacent pixels binarized with the same threshold value data as described above. Therefore, the image data binarized by all the threshold data is included (has the periodicity of the dither pattern), and the data after thinning has a deviation of pixels from the original image. Absent. Therefore, by including the image data binarized by all the threshold value data, normal grayscale expression is possible, and the image quality is deteriorated because the data after thinning does not have a pixel deviation with respect to the original image. You can get images without.

【0017】なお、倍率設定入力が1/2(SELEC
T2)のままであれば完全に出力画像は1/2となる
が、図3に示すように、順次倍率を変えることもでき
る。
The magnification setting input is 1/2 (SELECT
If T2) is left as it is, the output image is completely halved, but as shown in FIG. 3, the magnification can be sequentially changed.

【0018】図4は、本発明の第2実施例を示すもので
あり、前記パターン選択信号発生器3に代えて周波数可
変装置13を用いた点のみが前述した第1実施例とは異
なっている。この周波数可変装置13は、コントローラ
1から出力された画素読み出しクロックaの周期を、倍
率設定入力cの値に応じて変化させ、閾値送出クロック
mとして4to1セレクタ6に出力するものである。
FIG. 4 shows a second embodiment of the present invention, which is different from the first embodiment described above only in that a frequency variable device 13 is used in place of the pattern selection signal generator 3. There is. The frequency varying device 13 changes the cycle of the pixel read clock a output from the controller 1 according to the value of the magnification setting input c, and outputs it as a threshold sending clock m to the 4to1 selector 6.

【0019】すなわち、倍率設定入力cの値を“1/
2”倍とした場合には、周波数可変装置13は、画素読
み出しクロックaに対して1/2倍の周期で4to1セ
レクタ6に閾値送出クロックmを出力する。したがっ
て、D/Aコンバータ7からコンパレータ4への送出さ
れる閾値データgは、図5に示すように、画素読み出し
クロックaの周期で入力される1画素分のアナログ画像
データbに対して、1/2倍の周期で変化する。よっ
て、コンパレータ4では、隣接する2つの画素に対応す
る各画像データ“D1,D2”“D2,D3”・・・
が、同じ閾値データで2値化されることとなり、その2
値化データhはコントローラ1に入力される。すると、
コントローラ1は、この同じ閾値データで2値化された
隣接する2つの画素に対応する画像データのうち、一方
の画素に対応する画像データのみを画素間引きした後、
画素メモリ8に記憶する。
That is, the value of the magnification setting input c is set to "1 /
In the case of 2 ″ times, the frequency variable device 13 outputs the threshold sending clock m to the 4to1 selector 6 at a cycle of ½ times the pixel read clock a. Therefore, the D / A converter 7 outputs the comparator. As shown in FIG. 5, the threshold value data g sent to 4 changes at a cycle 1/2 times that of the analog image data b for one pixel input at the cycle of the pixel read clock a. Therefore, in the comparator 4, each image data “D1, D2” “D2, D3” ... Corresponding to two adjacent pixels.
Will be binarized with the same threshold value data.
The binarized data h is input to the controller 1. Then,
Of the image data corresponding to two adjacent pixels binarized with the same threshold value data, the controller 1 thins out only the image data corresponding to one pixel,
It is stored in the pixel memory 8.

【0020】したがって、画素メモリ8に記憶された圧
縮後データnにあっては、1画面に対する1/2の画素
分が間引かれて1/2に圧縮されている。この画像を表
示する圧縮後データnは、同じ閾値データで2値化した
隣接する2つの画素に対応する画像データの一方を画素
間引きして構成されたものであることから、図示のよう
に全ての閾値データ(1,2,3,4)により2値化さ
れた画像データを含み、かつ、間引き後のデータに原画
に対する画素の片寄りが生じないものとなる。したがっ
て、全ての閾値データにより2値化された画像データを
含むことにより、正常な濃淡表現が可能となるととも
に、間引き後のデータに原画に対する画素の片寄りが生
じていないことにより、画質の劣化を回避することがで
きる。
Therefore, in the compressed data n stored in the pixel memory 8, 1/2 pixels for one screen are thinned and compressed to 1/2. Since the compressed data n for displaying this image is configured by thinning out one of the image data corresponding to two adjacent pixels binarized with the same threshold value data, as shown in FIG. The image data including the image data binarized by the threshold data (1, 2, 3, 4) is included, and the data after thinning does not have a pixel deviation with respect to the original image. Therefore, by including the image data binarized by all the threshold value data, normal grayscale expression is possible, and the image quality is deteriorated because the data after thinning does not have a pixel deviation with respect to the original image. Can be avoided.

【0021】また、倍率設定入力cの値を“1/4”倍
とした場合には、周波数可変装置13は画素読み出しク
ロックaの周期に対して4倍の周期で4to1セレクタ
6に閾値送出クロックmを出力する。したがって、D/
Aコンバータ7からコンパレータ4への送出される閾値
データgは、図6に示すように、画素読み出しクロック
aの周期で入力される1画素分のアナログ画像データb
に対して、4倍の周期で変化する。よって、コンパレー
タ4では、隣接する4つの画素に対応する各画像データ
“D1,D2,D3,D4”・・・が、同じ閾値データ
で2値化されることとなり、この2値化された画像デー
タはコントローラ1に入力される。すると、コントロー
ラ1は、この同じ閾値データで2値化された隣接する4
つの画素に対応する画像データのうち、例えば最初の画
素に対応する画像データを除く他の3つの画素に対応す
る画像データを画素間引きした後、画素メモリ8に記憶
する。
Further, when the value of the magnification setting input c is set to "1/4", the frequency variable device 13 sends the threshold transmission clock to the 4to1 selector 6 at a cycle four times as long as the cycle of the pixel read clock a. Output m. Therefore, D /
The threshold value data g sent from the A converter 7 to the comparator 4 is, as shown in FIG. 6, analog image data b for one pixel input at the cycle of the pixel read clock a.
However, it changes in a cycle of four times. Therefore, in the comparator 4, each image data “D1, D2, D3, D4” ... Corresponding to four adjacent pixels is binarized with the same threshold data, and this binarized image The data is input to the controller 1. Then, the controller 1 binarizes four adjacent fours with this same threshold value data.
Of the image data corresponding to one pixel, for example, the image data corresponding to three pixels other than the image data corresponding to the first pixel are thinned out, and then stored in the pixel memory 8.

【0022】したがって、画素メモリ8に記憶された圧
縮後データnにあっては、1画面に対する3/4の画素
分が間引かれて1/4に圧縮されている。この画像を表
示する圧縮後データnは、同じ閾値データで2値化した
隣接する4つの画素に対応する画像データのうち3つの
画素に対応する画像データを画素間引きして構成された
ものであることから、全ての閾値データ(1,2,3,
4)により2値化された画像データを含み、また、間引
き後のデータに原画に対する画素の片寄りが生じないも
のとなる。
Therefore, in the compressed data n stored in the pixel memory 8, 3/4 pixels for one screen are thinned and compressed to 1/4. The compressed data n for displaying this image is formed by thinning out the pixel data corresponding to three pixels from the image data corresponding to four adjacent pixels binarized with the same threshold value data. Therefore, all threshold data (1, 2, 3,
4) The image data binarized is included, and the data after thinning does not have a pixel deviation with respect to the original image.

【0023】また、倍率設定入力cの値を“2”倍とし
た場合には、周波数可変装置13は画素読み出しクロッ
クaの周期に対して1/2倍の周期で4to1セレクタ
6に閾値送出クロックmを出力する。よって、D/Aコ
ンバータ7からコンパレータ4への送出される閾値デー
タgは、図7に示すように、画素読み出しクロックaの
周期で入力される1画素分のアナログ画像データbに対
して、1/2の周期で変化する。したがって、コンパレ
ータ4では、1つの画素に対応する各画像データ“D
1”“D2”・・・が、異なる閾値データで2回連続し
て2値化されることとなり、この2値化された画像デー
タはコントローラ1に入力される。すると、コントロー
ラ1は、この2値化された画像データをそのまま画素メ
モリ8に記憶する。よって、この2値化データを画素メ
モリ8から読み出して、LCDを駆動し、あるいはプリ
ンタを駆動することにより、等倍時に対して2倍に拡大
された画像を得ることができる。
When the value of the magnification setting input c is set to "2" times, the frequency variable device 13 sends the threshold transmission clock to the 4to1 selector 6 at a cycle 1/2 times the cycle of the pixel read clock a. Output m. Therefore, as shown in FIG. 7, the threshold value data g sent from the D / A converter 7 to the comparator 4 is 1 with respect to the analog image data b for one pixel input in the cycle of the pixel read clock a. It changes in a cycle of / 2. Therefore, in the comparator 4, each image data “D” corresponding to one pixel is
1 "" D2 "... Is binarized twice with different threshold data, and the binarized image data is input to the controller 1. Then, the controller 1 The binarized image data is stored as it is in the pixel memory 8. Therefore, by reading the binarized data from the pixel memory 8 and driving the LCD or the printer, the binarized image data is set to 2 at the same magnification. A double magnified image can be obtained.

【0024】さらに、倍率設定入力cの値を“4”倍と
した場合には、周波数可変装置13は画素読み出しクロ
ックaの周期に対して1/4倍の周期で4to1セレク
タ6に閾値送出クロックmを出力する。よって、D/A
コンバータ7からコンパレータ4への送出される閾値デ
ータgは、図8に示すように、画素読み出しクロックa
の周期で入力される1画素分のアナログ画像データbに
対して、1/4の周期で変化する。したがって、コンパ
レータ4では、1つの画素に対応する各画像データ“D
1”“D2”・・・が、異なる閾値データで4回連続し
て2値化されることとなり、この2値化された画像デー
タはコントローラ1に入力される。すると、コントロー
ラ1は、この2値化された画像データをそのまま画素メ
モリ8に記憶する。よって、この2値化データを画素メ
モリ8から読み出して、LCDを駆動し、あるいはプリ
ンタを駆動することにより、等倍時に対して4倍に拡大
された画像を得ることができる。
Further, when the value of the magnification setting input c is set to "4" times, the frequency variable device 13 sends the threshold sending clock to the 4to1 selector 6 at a cycle of 1/4 times the cycle of the pixel read clock a. Output m. Therefore, D / A
The threshold value data g sent from the converter 7 to the comparator 4 is, as shown in FIG.
With respect to the analog image data b for one pixel which is input in the cycle of, the change is made in the cycle of 1/4. Therefore, in the comparator 4, each image data “D” corresponding to one pixel is
1 "" D2 "... is binarized four times in succession with different threshold data, and the binarized image data is input to the controller 1. Then, the controller 1 The binarized image data is stored as it is in the pixel memory 8. Therefore, by reading this binarized data from the pixel memory 8 and driving the LCD or the printer, the binarized image data is 4 times as large as that at the same magnification. A double magnified image can be obtained.

【0025】なお、この第2実施例においては、画像を
整数分の1倍あるいは整数倍する場合を示したが、少数
分の1倍あるいは少数を含む倍率であっても、この倍率
の逆数をもって、閾値送出クロックmの周波数を変化さ
せることにより、拡大あるいは縮小した画像を得ること
ができる。
In the second embodiment, the case where the image is multiplied by an integer or multiplied by an integer is shown. However, even if the magnification is a fraction of a fraction or a magnification including a fraction, the reciprocal of this magnification is used. By changing the frequency of the threshold transmission clock m, an enlarged or reduced image can be obtained.

【0026】[0026]

【発明の効果】以上説明したように本発明は、画像の拡
大縮小倍率に応じた周期で閾値を変化させ、この周期で
変化する閾値に基づき、画像データを2値化するように
した。よって、原画に対する画素の片寄りを生じさせる
ことなく、2値化された画像データを間引くことがで
き、その結果、画質の低下を伴うことなく正常な濃淡表
現ができるように画像データを縮小及び拡大処理するこ
とができる。
As described above, according to the present invention, the threshold value is changed in a cycle corresponding to the enlargement / reduction ratio of the image, and the image data is binarized based on the threshold value changed in this cycle. Therefore, the binarized image data can be thinned out without causing pixel deviation with respect to the original image, and as a result, the image data can be reduced and reduced so that normal grayscale expression can be performed without deterioration in image quality. It can be enlarged.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1実施例を示すブロック構成図であ
る。
FIG. 1 is a block diagram showing the first embodiment of the present invention.

【図2】同実施例のパターン選択信号発生器の詳細を示
す回路図である。
FIG. 2 is a circuit diagram showing details of a pattern selection signal generator of the same embodiment.

【図3】同実施例の動作を示すタイミングチャートであ
る。
FIG. 3 is a timing chart showing the operation of the embodiment.

【図4】本発明の第2実施例を示すブロック構成図であ
る。
FIG. 4 is a block diagram showing a second embodiment of the present invention.

【図5】同実施例の1/2倍時における動作を示すタイ
ミングチャートである。
FIG. 5 is a timing chart showing an operation at 1/2 time of the embodiment.

【図6】同実施例の1/4倍時における動作を示すタイ
ミングチャートである。
FIG. 6 is a timing chart showing an operation at 1/4 times of the embodiment.

【図7】同実施例の2倍時における動作を示すタイミン
グチャートである。
FIG. 7 is a timing chart showing an operation of the embodiment at the time of doubling.

【図8】同実施例の4倍時における動作を示すタイミン
グチャートである。
FIG. 8 is a timing chart showing an operation at a time of 4 times that of the embodiment.

【図9】従来装置を示すブロック構成図である。FIG. 9 is a block diagram showing a conventional device.

【図10】同装置の2値化処理説明図である。FIG. 10 is an explanatory diagram of a binarization process of the apparatus.

【図11】同装置の1/2倍時における処理説明図であ
る。
FIG. 11 is an explanatory diagram of processing performed by the same device at the time of ½ times.

【図12】同装置の1/2倍時における他の処理説明図
である。
FIG. 12 is an explanatory diagram of another process of the apparatus at the time of ½ times.

【符号の説明】[Explanation of symbols]

1 コントローラ 2 CCDラインセンサ 3 パターン選択信号発生器 4 コンパレータ 5 パターンメモリ 13 周波数可変装置 1 controller 2 CCD line sensor 3 pattern selection signal generator 4 comparator 5 pattern memory 13 frequency variable device

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 画像データを所定周期で入力する画像デ
ータ入力手段と、 ディザパターンを構成する複数の閾値を記憶する記憶手
段と、 該記憶手段に記憶されている前記複数の閾値を順次出力
する閾値出力手段と、 該閾値出力手段の出力周期を画像の拡大縮小倍率に応じ
て前記入力周期に対して変化させる出力周期可変手段
と、 前記倍率に応じた周期で前記閾値出力手段から順次出力
される閾値に基づき、前記画像データを2値化する2値
化手段と、 を有することを特徴とする画像データ処理装置。
1. An image data input means for inputting image data at a predetermined cycle, a storage means for storing a plurality of threshold values forming a dither pattern, and a plurality of threshold values stored in the storage means are sequentially output. Threshold output means, output cycle changing means for changing the output cycle of the threshold output means with respect to the input cycle in accordance with the enlargement / reduction ratio of the image, and sequentially output from the threshold output means in a cycle according to the magnification. And a binarizing unit that binarizes the image data based on a threshold value.
【請求項2】 画像データを所定周期で入力する画像デ
ータ入力手段と、 ディザパターンを構成する複数の閾値を記憶する記憶手
段と、 該記憶手段に記憶されている前記複数の閾値を順次出力
する閾値出力手段と、 該閾値出力手段の出力周期を画像の縮小倍率に応じて前
記入力周期に対して変化させる出力周期可変手段と、 前記倍率に応じた周期で前記画像データ入力手段から順
次出力される閾値に基づき、前記画像データを2値化す
る2値化手段と、 該2値化手段により2値化された画像データを、前記画
像の縮小倍率に応じた頻度で間引いて出力する画像デー
タ出力手段と、 を有することを特徴とする画像縮小装置。
2. An image data input means for inputting image data at a predetermined cycle, a storage means for storing a plurality of threshold values forming a dither pattern, and a plurality of threshold values stored in the storage means are sequentially output. Threshold output means, output cycle changing means for changing the output cycle of the threshold output means with respect to the input cycle in accordance with the reduction ratio of the image, and the image data input means sequentially outputting the cycle in accordance with the scale. A binarizing unit that binarizes the image data based on a threshold value, and image data that thins out the image data binarized by the binarizing unit at a frequency according to the reduction ratio of the image and outputs the thinned image data. An image reducing device comprising: an output unit.
【請求項3】 画像データを所定周期で入力する画像デ
ータ入力手段と、 ディザパターンを構成する複数の閾値を記憶する記憶手
段と、 該記憶手段に記憶されている前記複数の閾値を順次出力
する閾値出力手段と、 該閾値出力手段の出力周期を画像の拡大倍率に応じて前
記入力周期に対して変化させる出力周期可変手段と、 前記倍率に応じた周期で前記画像データ入力手段から順
次出力される閾値に基づき、前記画像データを2値化す
る2値化手段と、 該2値化手段により2値化された画像データを出力する
画像データ出力手段と、 を有することを特徴とする画像拡大装置。
3. An image data input means for inputting image data at a predetermined cycle, a storage means for storing a plurality of threshold values forming a dither pattern, and a plurality of threshold values stored in the storage means are sequentially output. Threshold output means, output cycle varying means for changing the output cycle of the threshold output means with respect to the input cycle in accordance with the enlargement ratio of the image, and the image data input means sequentially outputting the cycle in accordance with the magnification. An image enlarging means for binarizing the image data on the basis of a threshold value, and an image data output means for outputting the image data binarized by the binarizing means. apparatus.
JP5338878A 1993-12-02 1993-12-02 Picture data processor, picture reduction device and picture magnification device Pending JPH07162676A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5338878A JPH07162676A (en) 1993-12-02 1993-12-02 Picture data processor, picture reduction device and picture magnification device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5338878A JPH07162676A (en) 1993-12-02 1993-12-02 Picture data processor, picture reduction device and picture magnification device

Publications (1)

Publication Number Publication Date
JPH07162676A true JPH07162676A (en) 1995-06-23

Family

ID=18322245

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5338878A Pending JPH07162676A (en) 1993-12-02 1993-12-02 Picture data processor, picture reduction device and picture magnification device

Country Status (1)

Country Link
JP (1) JPH07162676A (en)

Similar Documents

Publication Publication Date Title
US6331862B1 (en) Image expansion display and driver
US6219020B1 (en) Liquid crystal display control device
JPS6367174B2 (en)
JPH0470057A (en) Halftone processing circuit
CA2017600C (en) Apparatus for superimposing character patterns in accordance with dot-matrix on video signals
JPH07162676A (en) Picture data processor, picture reduction device and picture magnification device
JP2510019B2 (en) Image display method and device
US7394494B2 (en) Sub-sampling apparatus and method and image sensor employing the same
JP2982509B2 (en) Image reduction processing method
JP3172450B2 (en) Image information processing device
JP2732172B2 (en) Video display device
JP2622950B2 (en) Image display device
JPH07312759A (en) Reproducing device for stereoscopic image
JPS58169681A (en) Picture processing circuit
JP2903346B2 (en) Video display device
JP2000020705A (en) Parallel image processing processor
JP2994928B2 (en) Video printer
JPS61270980A (en) Printer device for television receiver
JPS61143878A (en) Processing circuit of picture data
JPH0676051A (en) Parallel picture processor
JPS63307588A (en) Gradation display device
JPH06189141A (en) Dither image encoder
JPH0267092A (en) Signal processing circuit for video printer
JPH0522660A (en) Video signal generation device
JPS63109063A (en) Printer