JPH0465582B2 - - Google Patents

Info

Publication number
JPH0465582B2
JPH0465582B2 JP58108981A JP10898183A JPH0465582B2 JP H0465582 B2 JPH0465582 B2 JP H0465582B2 JP 58108981 A JP58108981 A JP 58108981A JP 10898183 A JP10898183 A JP 10898183A JP H0465582 B2 JPH0465582 B2 JP H0465582B2
Authority
JP
Japan
Prior art keywords
data
scaling
circuit
image data
uniform level
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.)
Expired - Lifetime
Application number
JP58108981A
Other languages
Japanese (ja)
Other versions
JPS601974A (en
Inventor
Hiromasa Isobe
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP58108981A priority Critical patent/JPS601974A/en
Publication of JPS601974A publication Critical patent/JPS601974A/en
Publication of JPH0465582B2 publication Critical patent/JPH0465582B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/393Enlarging or reducing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Document Processing Apparatus (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 技術利用分野 本発明はデジタル2値画像データの変倍回路に
関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a scaling circuit for digital binary image data.

従来技術 オペレータがキーボードから入力した文字情報
やスキヤナ等からの画像データを編集し、一枚の
文章を作成する時、全体のバランス等のため画像
データを拡大したり縮小したりする必要が生ずる
場合がある。
Prior Art When an operator edits character information input from a keyboard or image data from a scanner, etc. to create a single piece of text, it may be necessary to enlarge or reduce the image data for overall balance, etc. There is.

画像データの拡大・縮小はソフトウエアにより
画像データ蓄積用のメモリ内容を拡大・縮小する
ことも可能であるが、この方法は非常に時間がか
かる。そこで、拡大・縮小機能をハードウエアで
実現することにより拡大・縮小処理時間の短縮化
を図つている。
Image data can be enlarged or reduced by using software to enlarge or reduce the contents of a memory for storing image data, but this method is very time consuming. Therefore, efforts are being made to shorten the processing time for enlarging and reducing by implementing the enlarging and reducing functions using hardware.

たとえば、2倍に拡大する場合は、第1図aに
示すようなデジタル2値画像の生データを変倍回
路に送り、主走査方向1ラインの同一画素からの
データを2回サンプリングし、副走査方向では同
一ラインを2回出力することで第2図に示すよう
な2倍に拡大された画素データを得ている。ま
た、1/2に縮小する場合は、第1図aに示すよう
なデジタル2値画像データを変倍回路に送り、主
走査方向1ラインのデータを1画素おきにサンプ
リングし、副走査方向では上記操作を1ラインお
きに実行し他のライン上のデータは捨てている。
このようにして変倍処理を行つているが、現在、
高解像度化が進みデータ量が増大する傾向にあ
り、データ量の増化による処理時間の遅延に対し
ては高速ICにより対処している。しかし、それ
にも限度がある。
For example, when enlarging the image twice, send the raw data of a digital binary image as shown in Figure 1a to the scaling circuit, sample the data from the same pixel in one line in the main scanning direction twice, and In the scanning direction, by outputting the same line twice, pixel data enlarged twice as shown in FIG. 2 is obtained. In addition, when reducing the size to 1/2, send the digital binary image data as shown in Figure 1a to the scaling circuit, sample the data of one line in the main scanning direction every other pixel, and in the sub-scanning direction, The above operation is executed every other line, and data on other lines is discarded.
The scaling process is performed in this way, but currently,
As resolution increases, the amount of data tends to increase, and high-speed ICs are used to deal with delays in processing time due to the increase in the amount of data. However, there are limits to this as well.

目 的 本発明の目的は、上記のような従来技術の欠点
を改善し、画像データの特徴を利用して高速変倍
処理を行う画像データの変倍回路を提供すること
にある。
Purpose It is an object of the present invention to provide an image data scaling circuit that improves the drawbacks of the prior art as described above and performs high-speed scaling processing using the characteristics of image data.

構 成 以下、本発明の構成を一実施例により説明す
る。
Configuration The configuration of the present invention will be explained below using one example.

第2図は、変倍回路を有する画像システムのブ
ロツク図である。
FIG. 2 is a block diagram of an imaging system having a variable magnification circuit.

白黒の2値画像としての画像データが、スキヤ
ナ等の入力装置5からバス8を介してシステム内
に入つてくる。その画像データは画像データ用ビ
ツトマツプメモリ上3に展開される。この画像デ
ータとその他のフアイル(グラフイツクデータや
キヤラクタコードデータ等から成る)とを編集す
る際、画像データを変倍(拡大・縮小)させる必
要が生じた場合は変倍回路により変倍処理し、変
倍処理を含む編集結果はデイスプレイ4、プリン
タ等の出力装置6に出力される。これら一連の処
理は、CPU1がシステムメモリ2によりバス8
を介して制御する。
Image data as a black and white binary image enters the system via a bus 8 from an input device 5 such as a scanner. The image data is developed on a bitmap memory 3 for image data. When editing this image data and other files (consisting of graphic data, character code data, etc.), if the image data needs to be scaled (enlarged or reduced), the scale can be changed using the scale circuit. However, the editing result including the scaling process is outputted to the display 4 and the output device 6 such as a printer. These series of processes are performed by CPU 1 using system memory 2 to
Control via.

次に、通常の変倍処理について説明する。 Next, normal scaling processing will be explained.

第3図は本発明が適用される変倍回路の一例を
示す図である。8はシステム内のバス、9は入力
データラインバツフア、10はコントローラ、1
1は出力データラインバツフアである。ここで、
システム内に送られてくる画像データの主走査方
向1ライン分、入力データラインバツフア9、お
よび出力データラインバツフア11のビツト数
は、バス8のビツト数、またはその整数倍に対応
している。
FIG. 3 is a diagram showing an example of a variable magnification circuit to which the present invention is applied. 8 is a bus in the system, 9 is an input data line buffer, 10 is a controller, 1
1 is an output data line buffer. here,
The number of bits in the input data line buffer 9 and output data line buffer 11 for one line in the main scanning direction of the image data sent into the system corresponds to the number of bits in the bus 8 or an integral multiple thereof. There is.

まず、CPU1からコントローラ10に変倍率
および変倍後の主走査方向1ライン分のデータ量
を知らせてくる。そして、システムから変倍回路
に画像データが送られてくると、コントローラ1
0は入力データラインバツフア9、および出力デ
ータラインバツフア11のアドレスおよびリー
ド/ライトを上記変倍率に応じてコントロールす
る。
First, the CPU 1 notifies the controller 10 of the scaling factor and the amount of data for one line in the main scanning direction after scaling. Then, when the image data is sent from the system to the variable magnification circuit, the controller 1
0 controls the address and read/write of the input data line buffer 9 and the output data line buffer 11 in accordance with the above magnification ratio.

第4図は、そのコントロールタイミングを示し
ている。第4図aは、2倍に拡大する場合のコン
トロールタイミングである。すなわち、入力デー
タラインバツフア9に送られてきた画像データ
(生データ)を出力データラインバツフア11に
書き込む際に、入力データラインバツフア9の1
ビツト分のデータを出力データラインバツフア1
1の2ビツトに渡つて書き込むことにより入力デ
ータラインバツフア9の生データを2回サンプリ
ングすることで主走査方向に2倍拡大する。副走
査方向の拡大は、上記拡大されたデータを出力デ
ータラインバツフア11に2回書き込むことによ
り行う。
FIG. 4 shows the control timing. FIG. 4a shows the control timing when enlarging the image twice. That is, when writing the image data (raw data) sent to the input data line buffer 9 to the output data line buffer 11, one of the input data line buffers 9
Data line buffer 1 outputs data for bits
By writing over two bits of 1, the raw data of the input data line buffer 9 is sampled twice, thereby expanding it twice in the main scanning direction. Enlargement in the sub-scanning direction is performed by writing the enlarged data into the output data line buffer 11 twice.

第4図bは1/2に縮小する場合のコントロール
タイミングである。この場合は、入力データライ
ンバツフア9の1ビツトおきのデータを出力デー
タラインバツフア11に書き込み、入力データラ
インバツフア9のデータを1ビツトおきにサンプ
リングすることで主走査方向に1/2に縮小する。
副走査方向の縮小は、主走査方向2ライン目の生
データを捨て、3ライン目の生データに対して同
様の縮小操作を行う。
FIG. 4b shows the control timing when reducing the size to 1/2. In this case, by writing every other bit of data in the input data line buffer 9 to the output data line buffer 11 and sampling the data in the input data line buffer 9 every other bit, the data can be halved in the main scanning direction. Reduce to.
For reduction in the sub-scanning direction, raw data on the second line in the main scanning direction is discarded, and a similar reduction operation is performed on the raw data on the third line.

ところで、画像データの主走査方向1ライン分
には、その性質上、均一レベルのものがかなり有
り、均一レベルのデータは、変倍ブロツクが小さ
ければ小さいほど多くなる。一方、均一レベルの
データは、変倍しても変倍前後でパターンが変わ
らない。したがつて、均一レベルの画像データ
は、変倍処理を省き直ちにそのデータをシステム
に返すひとにより、変倍処理時間を短縮すること
ができる。
By the way, one line of image data in the main scanning direction has a considerable amount of uniform level data due to its nature, and the smaller the variable magnification block, the more data with uniform level. On the other hand, for uniform level data, the pattern does not change even after scaling. Therefore, for uniform-level image data, the scaling processing time can be shortened by eliminating scaling processing and immediately returning the data to the system.

第5図は、均一レベル検出回路の一例を示す図
である。バス8のビツト数に応じた並列の入力デ
ータ(“1”は黒、“0”は白を示すものとする)
をOR回路12を介してフリツプフロツプ13の
J入力に入れ、フリツプフロツプ13をストロー
ブパルスSTBでストローブすると、入力データ
が白(“0”)の均一レベルか否かがフリツプフロ
ツプ13のQ出力で判定できる。すなわち、フリ
ツプフロツプ13のQ出力が“0”であればオー
ル白の均一レベルであり、“1”であれば白の均
一レベルではないことを示す。同様に、黒
(“1”)の均一レベルも、並列の入力データを
NAND回路14に入力し、フリツプフロツプ1
5のJ入力をストローブパルスSTBでストロー
ブし、そのQ出力が“0”であればオール黒だと
判定することができる。
FIG. 5 is a diagram showing an example of a uniform level detection circuit. Parallel input data according to the number of bits on bus 8 (“1” indicates black, “0” indicates white)
is input to the J input of the flip-flop 13 via the OR circuit 12, and the flip-flop 13 is strobed with a strobe pulse STB.The Q output of the flip-flop 13 can be used to determine whether the input data is at a uniform level of white ("0"). That is, if the Q output of the flip-flop 13 is "0", it means that all white is at a uniform level, and if it is "1", it is not a white uniform level. Similarly, the uniform level of black (“1”) also applies to parallel input data.
Input to NAND circuit 14, flip-flop 1
5's J input is strobed with a strobe pulse STB, and if the Q output is "0", it can be determined that all black is present.

このようにして均一レベルが判明したら、コン
トローラ10による変倍処理を行わずに入力デー
タと同じレベルのデータを変倍率に応じた量だけ
システムに返せばよい。
Once the uniform level has been determined in this way, the controller 10 need not perform any scaling processing, and only need to return data at the same level as the input data to the system in an amount corresponding to the scaling factor.

第6図は本発明の一実施例による画像データの
変倍回路の構成図であり、第7図はそのフローチ
ヤートである。
FIG. 6 is a block diagram of an image data scaling circuit according to an embodiment of the present invention, and FIG. 7 is a flowchart thereof.

従来技術と異なる点は、均一レベル検出回路
(オール白検出部:OR回路12とフリツプフロ
ツプ13、オール黒検出部:NAND回路14と
フリツプフロツプ15)と、オール白発生回路1
6と、オール黒発生回路17とが設けられている
点である。
The difference from the conventional technology is the uniform level detection circuit (all white detection section: OR circuit 12 and flip-flop 13, all black detection section: NAND circuit 14 and flip-flop 15), and all white generation circuit 1.
6 and an all-black generating circuit 17 are provided.

以下、本回路による画像データ変倍処理を第6
図、および第7図に基づいて説明する。
Below, the image data scaling process by this circuit will be explained in the sixth section.
This will be explained based on FIG. 7 and FIG.

まず、コントローラ10により均一レベル検出
用のフリツプフロツプ13,15をクリア信号
CLRによりクリアする。やがて、CPU1からコ
ントローラ10に変倍率を知らせてくる701。
また、CPU1は変倍率に応じた主走査方向1ラ
イン分のデータ量もコントローラ10に通知する
702。
First, the controller 10 sends a signal to clear the flip-flops 13 and 15 for uniform level detection.
Clear by CLR. Eventually, the CPU 1 notifies the controller 10 of the magnification ratio 701.
The CPU 1 also notifies the controller 10 of the amount of data for one line in the main scanning direction according to the magnification ratio (702).

次に、入力データラインバツフア9に主走査方
向1ライン分のデータを送つてくる703。実際
に変倍処理する前に、画像データが均一であるか
否かを判定するため、ストローブパルスSTBに
よりOR回路12およびNAND回路14の出力を
それぞれフリツプフロツプ13および15に入力
する704。フリツプフロツプ13およびフリツ
プフロツプ15の出力Qにより、入力データライ
ンバツフア9に送られてきた主走査方向1ライン
分のデータが均一であるか否かを判定する70
5。すなわち、フリツプフロツプ13の出力Qが
“0”であれば上記データがオール白であること
を示し、フリツプフロツプ15の出力Qが“0”
であればオール黒であることを示している。判定
結果がオール白、またはオール黒の場合は、コン
トローラ10はバス8を介してCPU1に1ライ
ン分の変倍処理の終了を知らせるとともに、セレ
クト2、またはセレクト3により、オール白発生
器16またはオール黒発生器17からオール白ま
たはオール黒のデータを前記変倍率に応じた量だ
け発生させ、これをCPU1の読み込みタイミン
グに合わせてシステムに返す706。
Next, data for one line in the main scanning direction is sent to the input data line buffer 9 (703). Before actual scaling processing, in order to determine whether the image data is uniform or not, the outputs of the OR circuit 12 and the NAND circuit 14 are input to flip-flops 13 and 15, respectively, using a strobe pulse STB (704). Based on the output Q of the flip-flop 13 and the flip-flop 15, it is determined whether one line of data in the main scanning direction sent to the input data line buffer 9 is uniform or not.
5. That is, if the output Q of the flip-flop 13 is "0", it means that the above data is all white, and the output Q of the flip-flop 15 is "0".
If so, it indicates that the color is all black. If the determination result is all white or all black, the controller 10 notifies the CPU 1 via the bus 8 of the end of the scaling process for one line, and also sends the all white generator 16 or The all-black generator 17 generates all-white or all-black data in an amount corresponding to the magnification ratio, and returns this to the system in synchronization with the reading timing of the CPU 1 (706).

判定の結果、主走査方向1ライン分のデータが
均一レベルでない場合は、コントローラ10は入
力データラインバツフア9、および出力データラ
インバツフア11に対して通常の変倍処理を行い
707、変倍データを出力データラインバツフア
11に蓄積する。その後、1ライン分の変倍処理
終了をコントローラ10によりCPU1に知らせ、
CPU1の読み込みタイミングに合わせてセレク
ト1により変倍データをシステムに返す708。
As a result of the determination, if the data for one line in the main scanning direction is not at a uniform level, the controller 10 performs normal scaling processing on the input data line buffer 9 and the output data line buffer 11 (707). Data is stored in the output data line buffer 11. After that, the controller 10 notifies the CPU 1 that the scaling process for one line has been completed.
Selection 1 returns the variable magnification data to the system in accordance with the read timing of CPU 1 708 .

以上の操作を変倍率に対応して選択される各ラ
インについて行う。
The above operations are performed for each line selected in accordance with the magnification ratio.

なお、上記説明においては、主走査方向1ライ
ンごとに均一レベル検出を行つたが、変倍領域を
複数ブロツクに分割し、その領域内のすべてのデ
ータを一括して均一レベル検出を行うことも可能
である。
In the above explanation, uniform level detection was performed for each line in the main scanning direction, but it is also possible to divide the variable magnification area into multiple blocks and perform uniform level detection on all data in that area at once. It is possible.

効 果 以上説明したように、本発明によれば、変倍回
路に送られてくる画像データは均一レベルのもの
を多く含み、この均一レベルの画像データは変倍
前後でパターンが不変であり、変倍後は単にデー
タ量だけが変わるという特徴を利用して、被変倍
データが変倍回路に送られてくる際に均一レベル
であるか否かを判定し、均一レベルの場合には変
倍処理を省略し、直ちに均一レベルのデータを変
倍率に応じた量だけシステムに返すことにより変
倍処理の高速化を図ることができる。
Effects As explained above, according to the present invention, the image data sent to the scaling circuit includes a lot of uniform level image data, and the pattern of this uniform level image data remains unchanged before and after scaling. Taking advantage of the characteristic that only the amount of data changes after scaling, it is determined whether the scaled data is at a uniform level when it is sent to the scaling circuit, and if it is at a uniform level, it is By omitting the magnification process and immediately returning uniform level data to the system in an amount corresponding to the magnification ratio, it is possible to speed up the magnification process.

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

第1図は画像データ変倍処理のイメージを示す
図、第2図は本発明が適用される画像システムの
ブロツク図、第3図は本発明が適用される変倍回
路の一例を示す図、第4図は第3図のコントロー
ルタイミングを示す図、第5図は本発明の一実施
例による均一レベル検出回路を示す図、第6図は
本発明の一実施例による変倍回路の全体ブロツク
図、第7図は第6図のフローチヤートである。 8…バス、9…入力データラインバツフア、1
0…コントローラ、11…出力データラインバツ
フア、12…OR回路、13,15…フリツプフ
ロツプ、14…NAND回路。
FIG. 1 is a diagram showing an image of image data scaling processing, FIG. 2 is a block diagram of an image system to which the present invention is applied, and FIG. 3 is a diagram showing an example of a scaling circuit to which the present invention is applied. FIG. 4 is a diagram showing the control timing of FIG. 3, FIG. 5 is a diagram showing a uniform level detection circuit according to an embodiment of the present invention, and FIG. 6 is a diagram showing an entire block diagram of a variable power circuit according to an embodiment of the present invention. 7 is a flowchart of FIG. 6. 8...Bus, 9...Input data line buffer, 1
0... Controller, 11... Output data line buffer, 12... OR circuit, 13, 15... Flip-flop, 14... NAND circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 変倍率情報と、変倍後のデータ量情報とを受
け、これら変倍率情報とデータ量情報とに基づい
てデジタル2値画像データを変倍処理する変倍回
路において、前記デジタル2値画像データが均一
レベルであるか否かを検出する手段と、該手段に
よる検出結果が均一レベルの時、前記変倍回路に
よる変倍処理を省き、直ちに前記レベルのデータ
を前記データ量だけ変倍結果として出力する手段
とを設けたことを特徴とする変倍回路。
1. In a scaling circuit that receives scaling factor information and data amount information after scaling, and performs scaling processing on digital binary image data based on these scaling factor information and data amount information, the digital binary image data means for detecting whether or not is at a uniform level; and when the detection result by the means is at a uniform level, the scaling process by the scaling circuit is omitted, and the data at the level is immediately converted into a scaling result by the amount of data. A variable magnification circuit characterized in that it is provided with means for outputting.
JP58108981A 1983-06-17 1983-06-17 Variable power circuit Granted JPS601974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58108981A JPS601974A (en) 1983-06-17 1983-06-17 Variable power circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58108981A JPS601974A (en) 1983-06-17 1983-06-17 Variable power circuit

Publications (2)

Publication Number Publication Date
JPS601974A JPS601974A (en) 1985-01-08
JPH0465582B2 true JPH0465582B2 (en) 1992-10-20

Family

ID=14498550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58108981A Granted JPS601974A (en) 1983-06-17 1983-06-17 Variable power circuit

Country Status (1)

Country Link
JP (1) JPS601974A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0786747B2 (en) * 1985-04-30 1995-09-20 ファナック株式会社 Image processing device

Also Published As

Publication number Publication date
JPS601974A (en) 1985-01-08

Similar Documents

Publication Publication Date Title
US4675908A (en) Image data processing apparatus and system
KR930004440B1 (en) Image data processing apparatus
JPH0465582B2 (en)
JP2507361B2 (en) Image information processing device
JPH0358122A (en) Image display device
JP2647348B2 (en) Clipping plane data storage system and method
JP2974498B2 (en) Printing equipment
KR100438161B1 (en) scanning apparatus
JP2993618B2 (en) Image processing method
JP2871881B2 (en) Image processing device
JP2737932B2 (en) Image data reduction device
JP2772652B2 (en) Image reduction processor
JPS5924584B2 (en) Original reading method
JPS6359673A (en) Interface device
JPS616767A (en) Picture information processing system
JPS607265A (en) Image processor
JPS61184970A (en) Picture enlarging circuit
KR19980063214A (en) Image recording device capable of converting arbitrary resolution
JPH08110943A (en) Address generator and image processor
JPH05307598A (en) Picture processor
JPH0567983B2 (en)
JPH0247782A (en) Picture signal processor
JPH022596A (en) Character pattern generating device
JPH04301469A (en) Image processor
JPS59206979A (en) Picture element density conversion system