JPH02277661A - Image processing method - Google Patents

Image processing method

Info

Publication number
JPH02277661A
JPH02277661A JP10063089A JP10063089A JPH02277661A JP H02277661 A JPH02277661 A JP H02277661A JP 10063089 A JP10063089 A JP 10063089A JP 10063089 A JP10063089 A JP 10063089A JP H02277661 A JPH02277661 A JP H02277661A
Authority
JP
Japan
Prior art keywords
magnification
enlargement
image
coefficient
enlarging
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
JP10063089A
Other languages
Japanese (ja)
Inventor
Yasushi Katayama
靖 片山
Toshihide Narimi
成見 敏秀
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP10063089A priority Critical patent/JPH02277661A/en
Publication of JPH02277661A publication Critical patent/JPH02277661A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Exposure Or Original Feeding In Electrophotography (AREA)

Abstract

PURPOSE:To enlarge an image even with a large magnification ratio at high speeds by a method whereby an answer of the factorization of a set magnification factor is determined among the magnification factors, and an enlarging process corresponding to the magnification factor is read out from a memory means, so that an image data is subjected to the enlarging process. CONSTITUTION:A ROM 56 having a function as a memory means accommodates an enlargement table 56A which includes enlarging processes corresponding to a plurality of preliminarily-set different enlarging magnification factors, namely, bit pattern tables corresponding to the magnification ratios of twice, three times, five times and seven times. A CPU 51 reads out and executes the program for an enlarging process stored in a program memory 57 and determines an answer of the factorization of the set enlarging ratio (magnification factor). At the same time, the CPU 51 reads out from the ROM 56 and executes the enlarging process corresponding to the determined answer, thereby enlarging the image data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は画像データに対し設定された倍率に応じた拡大
処理を行う画像処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing method that performs an enlargement process on image data according to a set magnification.

〔従来の技術〕[Conventional technology]

従来、画像処理装置としてのワークステーションや計算
機等には、画像データに対し拡大/縮小処理を施す機能
が具えられているのが一般的であり、特に拡大処理にお
いては、倍率として2倍、3倍、4倍、6倍等のように
数倍程度のものがあり、各倍率に対応して拡大処理用の
ルーチンが具えられている。このような画像処理装置は
、所定の拡大倍率が設定された場合には該当する拡大処
理用のルーチンを実行して画像データに対し拡大処理を
施すようにしている。
Conventionally, workstations, computers, etc. that serve as image processing devices have generally been equipped with a function to perform enlargement/reduction processing on image data. There are several magnifications such as 2x, 4x, 6x, etc., and a routine for enlargement processing is provided corresponding to each magnification. When a predetermined enlargement magnification is set, such an image processing apparatus executes a corresponding enlargement processing routine to perform enlargement processing on image data.

例えば、画像処理装置は、第12図(a)に示すように
、英数字“F”に対応する画像データのX方向の1ライ
ン分について6倍の拡大処理をする際には、同図(b)
に示すように、1画素目の1ビツトのデータを1ビツト
ずつシフトして6ビツトになるまで繰り返すことにより
6倍の拡大処理を行い、同様の拡大処理を2画素目、3
画素目、・・・の各画素についても行う。このような拡
大処理を全画像データについて行うことにより、第12
図(a)に示した画像は6倍の拡大処理が施されること
になる。
For example, as shown in FIG. 12(a), when the image processing device performs a six-fold enlargement process on one line in the X direction of the image data corresponding to the alphanumeric character "F", b)
As shown in the figure, the 1-bit data of the 1st pixel is shifted 1 bit at a time and repeated until it becomes 6 bits to perform a 6x enlargement process, and the same enlargement process is applied to the 2nd and 3rd pixels.
This is also performed for each pixel, . . . . By performing such enlargement processing on all image data, the 12th
The image shown in Figure (a) will be enlarged six times.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、上記従来の画像処理装置では、各画素の1ビ
ツトのデータを所望の倍率に対応するビット数になるま
で1ビツトずつシフトして拡大処理(例えば倍率が6倍
であれば6ビツトになるまで1ビツトずつシフト)を施
さなければならず、拡大処理の処理速度が必ずしも高速
であるとは言えなかった。特に、高倍率になればなるほ
ど拡大処理の処理速度が低下してしまうという欠点があ
った。
By the way, in the above-mentioned conventional image processing device, the 1-bit data of each pixel is enlarged by shifting it 1 bit at a time until the number of bits corresponds to the desired magnification (for example, if the magnification is 6 times, the data becomes 6 bits). 1 bit at a time), and the processing speed of enlargement processing cannot necessarily be said to be high. In particular, there was a drawback that the higher the magnification, the lower the processing speed of the enlargement process.

本発明は上記欠点を解消し、高倍率の拡大処理でも、高
速に拡大処理を行うことのできる画像処理方式を提供す
ることを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing method that eliminates the above-mentioned drawbacks and can perform enlargement processing at high speed even at high magnification.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、予め設定された異なる複数の拡大倍率係数に
対応する各拡大処理手順を記憶する記憶手段と、所定の
倍率係数の因数分解の解を上記各拡大倍率係の中から決
定する決定手段と、前記決定手段によって決定された因
数分解の解に該当する拡大倍率係数に対応する拡大処理
手順を前記記憶手段から読み出し実行して、画像データ
に対し拡大処理を施す処理手段とを具えたものである。
The present invention provides a storage means for storing each enlargement processing procedure corresponding to a plurality of different enlargement factors set in advance, and a determining means for determining a solution of factorization of a predetermined enlargement factor from among the above-mentioned enlargement factors. and processing means for reading out from the storage means and executing an enlargement processing procedure corresponding to the enlargement magnification coefficient corresponding to the solution of the factorization determined by the determination means, and performing enlargement processing on the image data. It is.

〔作用〕[Effect]

本発明では、例えば、2倍、3倍、5倍、7倍の各拡大
倍率係数に対応する拡大処理手順を記憶手段に記憶させ
ておく。
In the present invention, for example, enlargement processing procedures corresponding to enlargement coefficients of 2 times, 3 times, 5 times, and 7 times are stored in the storage means.

そして、例えば、12倍の倍率(倍率係数)が設定され
たときは、決定手段は、倍率係数12の因数分解の解を
、上記各拡大倍率係数(2,3,5,7)の中から決定
し、この場合は3×2×2の組合わせを決定する。処理
手段は、その決定された3X2X2の組合わせの解の値
に該当する拡大倍率係数に対応する拡大処理手順を、記
憶手段から読み出し実行して、画像データに対して拡大
処理を施す。この拡大処理に際して、倍率係数が12(
拡大倍率が12倍)のときは、処理手段は、原画像デー
タに対して3倍の拡大処理を施し、次に3倍の拡大処理
が施された画像データに対して2倍の拡大処理を施し、
さらに2倍の拡大処理が施された画像データに対して2
倍の拡大処理を施す。これによって、最終には原画像デ
ータは、12倍の拡大処理が施されたことになる。
For example, when a magnification factor (magnification factor) of 12 times is set, the determining means calculates the solution of the factorization of the magnification factor 12 from among the above-mentioned magnification factor factors (2, 3, 5, 7). In this case, a 3×2×2 combination is determined. The processing means reads from the storage means and executes an enlargement processing procedure corresponding to the enlargement magnification coefficient corresponding to the value of the solution of the determined 3X2X2 combination, and performs enlargement processing on the image data. During this enlargement process, the magnification coefficient is 12 (
When the enlargement magnification is 12 times), the processing means performs a 3 times enlargement process on the original image data, and then performs a 2 times enlargement process on the image data that has been subjected to the 3 times enlargement process. alms,
For image data that has been further enlarged by 2 times,
Performs double magnification processing. As a result, the original image data has finally been subjected to 12 times enlargement processing.

〔実施例〕〔Example〕

以下、本発明に係る画像処理方式の実施例を添付図面を
参照して説明する。
Embodiments of the image processing method according to the present invention will be described below with reference to the accompanying drawings.

第1図は本発明に係る画像処理方式を適用した画像印字
装置の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an image printing apparatus to which an image processing method according to the present invention is applied.

同図において、画像印字装置は、画像供給装置11と、
記録部12と、これらを駆動する電源13と、オペレー
タが記録動作の指示を入力するパネル14とを有してい
る。
In the figure, the image printing device includes an image supply device 11,
It has a recording section 12, a power source 13 for driving these, and a panel 14 through which an operator inputs recording operation instructions.

画像供給装置11には、ホスト計算機(図示せず)から
所定の画像を記録するための信号を受は入れるホストイ
ンタフェース(以下、ホスト■/Fという)接続端子1
5と、ローカルエリアネットワーク等との接続を行うL
AN接続端子16とが具えられている。
The image supply device 11 includes a host interface (hereinafter referred to as host ■/F) connection terminal 1 that receives a signal for recording a predetermined image from a host computer (not shown).
5 and the L that connects with the local area network, etc.
An AN connection terminal 16 is provided.

記録部12は、記録用紙17上に画像信号に対応した画
像の記録を行う装置であり、画像供給装置11から画像
信号18と動作指令19とを受は入れる一方、記録動作
のための同期パルス20と、状態信号21とを、画像供
給装置11に対して出力する。
The recording unit 12 is a device that records an image corresponding to an image signal on a recording paper 17, and receives an image signal 18 and an operation command 19 from the image supply device 11, and also receives a synchronization pulse for recording operation. 20 and a status signal 21 are output to the image supply device 11.

電源13には電源端子22を介して交流電力が供給され
る。
AC power is supplied to the power supply 13 via a power supply terminal 22 .

第2図は、第1図の記録部12の要部斜視図を示したも
のである。第2図において、レーザ発娠器31から発射
されたレーザビーム32は、偏光子33とレーザビーム
変調器34と偏光子35を通過した後、ポリゴンミラー
36で反射してレンズ37を経て感光ドラム38の外周
面に達する。
FIG. 2 shows a perspective view of essential parts of the recording section 12 shown in FIG. 1. In FIG. 2, a laser beam 32 emitted from a laser generator 31 passes through a polarizer 33, a laser beam modulator 34, and a polarizer 35, is reflected by a polygon mirror 36, passes through a lens 37, and then passes through a photosensitive drum. It reaches the outer peripheral surface of 38.

第1図の画像供給装置11からの画像信号18(ピット
ストリーム)は、端子3つからレーザビーム変調器34
に人力し、例えば電気光学効果により変調器34中を通
過するレーザビーム偏波面を画像信号に応じて回転させ
る。
The image signal 18 (pit stream) from the image supply device 11 in FIG.
The plane of polarization of the laser beam passing through the modulator 34 is manually rotated in accordance with the image signal by, for example, an electro-optic effect.

この、いわゆる電気的シャッター作用により、白黒2値
の画像信号がレーザビームの光学的オンオフ信号に変換
されて感光ドラム38の外周面に照射される。ポリゴン
ミラー36はモータ40により一定速度で回転しており
、このレーザビーム32を反射させた後、矢印Aの方向
(この方向を主走査という)に走査させる。すなわち、
1ライン分の画像信号が光学的ビット列に変換されて感
光ドラム38の回転軸41と平行する方向に照射される
間、感光ドラム38が矢印Bの方向(この方向を副走査
という)に回転する。こうして、記録すべき画像に対応
する静電潜像が感光ドラム38の外周面に形成される。
By this so-called electric shutter action, the black and white binary image signal is converted into an optical on/off signal of a laser beam, and the outer peripheral surface of the photosensitive drum 38 is irradiated with the optical on/off signal. The polygon mirror 36 is rotated at a constant speed by a motor 40, and after reflecting the laser beam 32, it is scanned in the direction of arrow A (this direction is referred to as main scanning). That is,
The photosensitive drum 38 rotates in the direction of arrow B (this direction is referred to as sub-scanning) while the image signal for one line is converted into an optical bit string and is irradiated in a direction parallel to the rotation axis 41 of the photosensitive drum 38. . In this way, an electrostatic latent image corresponding to the image to be recorded is formed on the outer peripheral surface of the photosensitive drum 38.

この静電潜像は、感光ドラム38の矢印Cの方向の回転
につれて現像器42を通過する。ここで、トナーがその
静電潜像に応じて付着する。図示しない記録搬送機構に
よって記録用紙17が矢印C方向に送られてくると、転
写機43の作用によって感光ドラム38の外周面に付着
したトナーが記録用紙17に転写される。記録用紙17
は、さらに矢印Cの方向に送られて定着などの処理をさ
れ記録物が得られる。
This electrostatic latent image passes through the developing device 42 as the photosensitive drum 38 rotates in the direction of arrow C. Here, toner is deposited in accordance with the electrostatic latent image. When the recording paper 17 is fed in the direction of arrow C by a recording conveyance mechanism (not shown), the toner attached to the outer peripheral surface of the photosensitive drum 38 is transferred onto the recording paper 17 by the action of the transfer device 43 . Recording paper 17
The recording material is further sent in the direction of arrow C and subjected to processing such as fixing to obtain a recorded matter.

なお、レーザビーム32は、矢印Aの方向に感光ドラム
38の両端を越える幅で走査されている。
Note that the laser beam 32 is scanned in the direction of arrow A with a width that exceeds both ends of the photosensitive drum 38.

そこで、走査開始センサ44と走査終了センサ45のレ
ーザビーム通過を検出する検出パルスによって、画像信
号18の転送タイミングが図られる。
Therefore, the transfer timing of the image signal 18 is determined by detection pulses that detect the passage of the laser beam from the scan start sensor 44 and the scan end sensor 45.

第1図に示した画像供給装置11の具体的な構成を第3
図に示している。
The specific configuration of the image supply device 11 shown in FIG.
Shown in the figure.

第3図において、画像供給装置11は、CPUバス50
に接続されたマイクロプロセ・ソサ(以下CPUという
)51と、各種のインタフニーイス(以下、I/Fとい
う)52〜54と、メモリ55〜60と、制御ブロック
61〜62とから構成されている。
In FIG. 3, the image supply device 11 includes a CPU bus 50
It is composed of a microprocessor/source (hereinafter referred to as CPU) 51 connected to the CPU, various interface devices (hereinafter referred to as I/F) 52 to 54, memories 55 to 60, and control blocks 61 to 62. There is.

インタフェースには、ホストI/F52と、パネルI/
F53と、記録部!/F54とがある。
The interface includes a host I/F52 and a panel I/F52.
F53 and the recording department! /F54.

ホストI/F52は、図示しないホスト計算機から入力
するコードデータを、例えば、R3232C規格で受信
する回路である。パネルI/F53は、オペレータの操
作するパネル14から人力指示信号53aを中継する回
路である。記録部I/F54は画像供給装置11と記録
部12との間で授受が行われる第2図で説明したような
信号(画像信号18、動作指令19、同期パルス20、
状態信号21)を中継する回路である。
The host I/F 52 is a circuit that receives code data input from a host computer (not shown) in accordance with, for example, the R3232C standard. The panel I/F 53 is a circuit that relays the manual instruction signal 53a from the panel 14 operated by the operator. The recording unit I/F 54 transmits and receives signals (image signal 18, operation command 19, synchronization pulse 20,
This is a circuit that relays the status signal 21).

メモリには、ランダム・アクセス番メモリ(以下、RA
Mという)55と、リード・オンリー・メモリ (以下
、ROMという)56と、プログラムメモリ57と、文
字パターンメモリ58と、ワークメモリ59と、ビット
マツプメモリ60とがある。
The memory includes a random access number memory (hereinafter referred to as RA).
55, a read-only memory (hereinafter referred to as ROM) 56, a program memory 57, a character pattern memory 58, a work memory 59, and a bitmap memory 60.

RAM55は、CPU51の動作のための各種のデータ
や、ホストI/F52から入力されたコードデータを格
納する。
The RAM 55 stores various data for the operation of the CPU 51 and code data input from the host I/F 52.

記憶手段の機能を有するROM56は、拡大テーブル5
6Aを格納しており、この拡大テーブル56Aには、予
め設定された異なる複数の拡大倍率係数に対応する拡大
処理手順、すなわち、2倍、3倍、5倍、7倍の各倍率
に対応したビットパターンテーブルが含まれており、こ
れらの各テーブルには、[8ビット×倍率係数の値]の
拡大データが格納されており、例えば、2倍のときは、
8ビットX2−16ビツトの拡大データ、また3倍のと
きは、8ビットX3−24ビツトの拡大データが格納さ
れている。
The ROM 56, which has the function of a storage means, stores the expansion table 5.
6A, and this magnification table 56A stores magnification processing procedures corresponding to a plurality of different preset magnification coefficients, that is, magnifications corresponding to 2x, 3x, 5x, and 7x. Bit pattern tables are included, and each of these tables stores enlarged data of [8 bits x value of magnification coefficient]. For example, when it is 2 times,
Enlarged data of 8 bits x 2 to 16 bits is stored, or in the case of 3 times, enlarged data of 8 bits x 3 to 24 bits.

プログラムメモリ57は、CPU51の動作のためのプ
ログラム、後述する処理手順を示すフローチャートに基
づくプログラム(拡大処理プログラム)を格納している
The program memory 57 stores a program for the operation of the CPU 51 and a program (enlargement processing program) based on a flowchart showing a processing procedure to be described later.

文字パターンメモリ58は、いわゆるドツトマトリクス
から構成される文字パターンを格納している。
The character pattern memory 58 stores character patterns composed of a so-called dot matrix.

ワークメモリ59には、拡大処理された画像データが展
開される。
The enlarged image data is developed in the work memory 59.

ビットマツプメモリ60は、記録部12において記録用
紙17上に記録する画像を、例えば1ペ一ジ分、ビット
マツプ形式で格納する回路である。
The bitmap memory 60 is a circuit that stores, for example, one page of an image to be recorded on the recording paper 17 in the recording section 12 in a bitmap format.

制御ブロックとしては、ビットマツプコントローラ61
、プログラマブル・タイマ・カウンタ(以下、PTCと
いう)62があり、ビットマップコントローラ61は、
ビットマツプメモリへのアドレスタイミングやアドレス
を制御するものであり、ビットマツプメモリ60に形成
された画像データを記録部I/F54へ転送するための
制御等を行う。PTC62は、時間等の計測およびタイ
ミングの発生等を行う回路である。
As a control block, a bitmap controller 61
, a programmable timer counter (hereinafter referred to as PTC) 62, and a bitmap controller 61,
It controls the address timing and addresses to the bitmap memory, and controls the transfer of image data formed in the bitmap memory 60 to the recording unit I/F 54. The PTC 62 is a circuit that measures time and generates timing.

なお、上記CPU51は、決定手段の機能および処理手
段の機能を有しており、上記プログラムメモリ57に格
納されている拡大処理プログラムを読出し実行して、設
定された拡大倍率(倍率係数)の因数分解の解を決定す
るとともに、この決定された解に該当する拡大処理手順
を実行して、画像データに対して拡大処理を施す。
The CPU 51 has the function of a determining means and the function of a processing means, and reads out and executes the enlargement processing program stored in the program memory 57, and determines the factor of the set enlargement magnification (magnification coefficient). A solution for the decomposition is determined, and an enlargement processing procedure corresponding to the determined solution is executed to perform enlargement processing on the image data.

また第3図に示した構成要素のうちビットマツプコント
ローラ61以外の各構成要素はCPUバス50に接続さ
れている。
Further, among the components shown in FIG. 3, each component other than the bitmap controller 61 is connected to the CPU bus 50.

次に、上記画像印字装置の拡大処理動作を第4図および
第5図のフローチャートに基づき説明する。
Next, the enlargement processing operation of the image printing apparatus will be explained based on the flowcharts of FIGS. 4 and 5.

第6図に示すように、画像に対するX方向およびY方向
の拡大処理について説明するが、最初にX方向の拡大処
理について説明する。
As shown in FIG. 6, the process of enlarging an image in the X direction and the Y direction will be described. First, the process of enlarging the image in the X direction will be explained.

第4図に示すように、CPU51は、受信した拡大倍率
(倍率係数)に基づき係数mSnを求めるべく、まず、
拡大倍率−a(例えば、a−12)と定義するとともに
(ステップ100 ) 、F r ee−0、n−1と
定義する(ステップ1o1)。
As shown in FIG. 4, the CPU 51 first calculates the coefficient mSn based on the received magnification factor (magnification factor).
The enlargement magnification is defined as -a (eg, a-12) (step 100), and Free-0, n-1 (step 1o1).

そして、CPU51は、定義された拡大倍率aが「2」
であるか否かを判断しくステップ102) 、a−2で
ない場合は、拡大倍率aが「3」であるか否かを判断し
くステップ103)、a−3でない場合は、次に拡大倍
率aが「5」であるか否かを判断しくステップ104)
、a−5でない場合は、さらに拡大倍率aが「7」であ
るが否かを判断する(ステップ105)。
Then, the CPU 51 determines that the defined enlargement magnification a is "2".
If it is not a-2, it is determined whether the enlargement magnification a is "3" or not (step 103). If it is not a-3, then the enlargement magnification a is is "5" or not (Step 104)
, a-5, it is further determined whether the enlargement magnification a is "7" (step 105).

ここで、CPU51は、上記ステップ102〜105の
各ステップにおいて、拡大倍率aが、a−2の場合には
係数m−2としくステップ10’6)、a−3の場合に
は係数m−3としくステップ107)、a−5の場合に
は係数ITI m 5としくステップ108)、a−7
の場合は係数m−7とする(ステップ109)。このよ
うにして係数mを定義した場合には、CPU51は、前
処理を終了する。この場合、原画像データに対しては、
定義された係数mの値に該当する拡大処理が施されるこ
とになる。
Here, in each of steps 102 to 105, the CPU 51 sets a coefficient m-2 when the magnification magnification a is a-2, and sets a coefficient m-2 when the magnification magnification a-3. 3 and step 107), in the case of a-5, the coefficient ITI m is 5 and step 108), a-7
In this case, the coefficient is set to m-7 (step 109). When the coefficient m is defined in this way, the CPU 51 ends the preprocessing. In this case, for the original image data,
Enlargement processing corresponding to the defined value of the coefficient m will be performed.

次にステップ105で拡大倍率a−7でない場合、つま
り上記各拡大倍率aに該当しない場合、CPU51は、
a −a / 2を演算しくステップ110)、次にn
=nX2を演算しくステップ111)、さらにnの値が
64より大きいか否かを判断するとともに(ステップ1
12)、ここで、n〉64でない場合には、上記ステッ
プ102に戻りこのステップ以降を実行し、反対にn〉
64の場合は、Free=1と定義して(ステップ11
3)、前処理を終了する。
Next, in step 105, if the enlargement magnification is not a-7, that is, if it does not correspond to each of the above enlargement magnifications a, the CPU 51
a − a / 2 (step 110), then n
= n
12), here, if n>64, return to the above step 102 and execute the steps from this step onwards, and conversely, if n>
64, define Free=1 (step 11
3) Finish the preprocessing.

例えば、拡大倍率が12倍のときは、この拡大倍率a−
12は、上述したステップ102〜105の各拡大倍率
aに該当しないので、a −a / 2−12/2−6
、n=nx2−1x2−2となり、am++5、n−2
と再定義される。しかしながら再定義されたn(−2)
は64より小さいので、上記ステップ102以降を繰返
し実行されることになり、再び拡大倍率aと係数nが再
定義される。
For example, when the magnification is 12 times, this magnification is a-
12 does not correspond to each enlargement magnification a in steps 102 to 105 described above, so a-a/2-12/2-6
, n=nx2-1x2-2, am++5, n-2
is redefined as However, the redefined n(-2)
is smaller than 64, the steps from step 102 onward are repeated, and the enlargement factor a and coefficient n are redefined again.

つまりa −a / 2−6 / 2 = 3、n−n
X2−2X2−4となり、a−3、n−4と再定義され
る。この再定義されたn(−4)は64より小さいので
、上記ステップ102以降を繰返実行されることになる
が、この場合は、再定義された3w3が上記ステップ1
03の拡大倍率a(−3)に該当するので、係数m−3
の定義が確定され、このときの係数n−4の定義も確定
される。従って、係数m−3、係数n−4が求められた
ことになる。
That is, a - a / 2-6 / 2 = 3, n-n
X2-2X2-4, which is redefined as a-3 and n-4. Since this redefined n(-4) is smaller than 64, the above step 102 and subsequent steps are repeated, but in this case, the redefined 3w3 is
Since it corresponds to the expansion magnification a(-3) of 03, the coefficient m-3
The definition of is determined, and the definition of coefficient n-4 at this time is also determined. Therefore, coefficient m-3 and coefficient n-4 are obtained.

なお、拡大倍数が、上記ステップ102〜1゜5におけ
る拡大倍率係数2.3.5.7以外の素数、例えば拡大
倍率11であった場合は、当然上記ステップ102〜1
05の各倍率に該当しないので、n〉64を満足するま
でnmnX1の演算が行われ、n〉64を満足した場合
にはFree−1と定義されて前処理を終了する。
Note that if the magnification factor is a prime number other than the magnification factor 2.3.5.7 in the steps 102 to 1.5, for example, the magnification factor 11, then the steps 102 to 1
Since it does not correspond to each magnification of 05, the calculation of nmnX1 is performed until n>64 is satisfied, and when n>64 is satisfied, it is defined as Free-1 and the preprocessing ends.

この場合、原画像データに対しては、定義された係数m
の値に該当する拡大処理および係数nの値に該当する拡
大処理が施される。
In this case, for the original image data, the defined coefficient m
An enlargement process corresponding to the value of and an enlargement process corresponding to the value of the coefficient n are performed.

なお、本実施例では、所定の拡大倍率(倍率係数)の係
数mおよび係数nの組合せは、第7図に示す内容になっ
ている。第7図において、m欄およびn欄はそれぞれ係
数の値を示しており、その他の部分は所定の倍率の値(
設定されるべく倍率係数の値)を示している。例えば、
倍率係数12は、係数m−3、係数n−114の組合せ
ということが分かり、また倍率係数40は、係数m−5
、係数n−8の組合せということが分かる。
In this embodiment, the combination of the coefficient m and the coefficient n of the predetermined magnification factor (magnification coefficient) is as shown in FIG. In FIG. 7, the m column and the n column each show the coefficient value, and the other parts are the predetermined magnification values (
The value of the magnification coefficient to be set is shown. for example,
It can be seen that the magnification coefficient 12 is a combination of the coefficient m-3 and the coefficient n-114, and the magnification coefficient 40 is the combination of the coefficient m-5
, a combination of coefficients n-8.

次に上述した前処理の結果に基づいて行われる拡大処理
動作を第5図のフローチャートを用いて説明する。
Next, the enlargement processing operation performed based on the result of the above-mentioned preprocessing will be explained using the flowchart of FIG.

最初に、CPU51は、Freeが「1」にセットされ
ているか否かを調べ(ステップ200)、セットされて
いない場合には、係数mの値が「2」、「3」、「5」
、「7」のうち、どの値に定義されているかを判断しく
ステップ201)、2の場合には2倍の拡大処理(ステ
ップ202)、3の場合には3倍の拡大処理(ステップ
203)、5の場合には5倍の拡大処理(ステップ20
4)、7の場合は7倍の拡大処理(ステップ205)を
それぞれ施す。
First, the CPU 51 checks whether Free is set to "1" (step 200), and if it is not set, the value of the coefficient m is "2", "3", or "5".
, "7", which value is defined (step 201); if it is 2, it will be enlarged by 2 times (step 202); if it is 3, it will be enlarged by 3 times (step 203). , 5, a 5x enlargement process (step 20
4) and 7, a 7x enlargement process (step 205) is performed, respectively.

例えば、拡大倍率が12倍(倍率係数が12)のときは
、係数m−3、係数n−4と定義されるので、画像デー
タに対しては、最初に3倍の拡大処理が施される。
For example, when the expansion magnification is 12 times (the magnification coefficient is 12), it is defined as a coefficient m-3 and a coefficient n-4, so the image data is first subjected to a 3 times expansion process. .

この3倍に拡大処理された画像データは、ワークメモリ
59に展開される。
This three-fold enlarged image data is expanded into the work memory 59.

このようにして係数mに該当する拡大処理を施したCP
U51は、次に係数n−1であるか否かを判断しくステ
ップ206)、係数n−1でない場合、上記ステップ2
01で判断した係数mの値に該当する拡大処理を施した
画像データに対して2倍の拡大処理を施しくステップ2
07)、その後、係数nの値を2で割り、つまりn −
n / 2の演算を行い(ステップ208)、その後上
記ステップ206に戻りこのステップ以降を実行し、そ
のときステップ206でn−1となった場合は拡大処理
を終了する。
CP subjected to the enlargement process corresponding to the coefficient m in this way
U51 then judges whether the coefficient is n-1 (step 206), and if it is not the coefficient n-1, the step 2 is performed as described above.
Step 2
07), then divide the value of the coefficient n by 2, i.e. n −
The calculation of n/2 is performed (step 208), and then the process returns to step 206 and the steps from this step onward are executed. If n-1 is obtained in step 206 at that time, the enlargement process is terminated.

上述した拡大処理に際して、CPU51は、次に示すよ
うに、各倍率のオフセットを求める。
During the above-described enlargement process, the CPU 51 obtains offsets for each magnification as shown below.

すなわち、 2倍のオフセット−データ(8ビツト)×23倍のオフ
セット−データ(8ビツト)×35倍のオフセット−デ
ータ(8ビツト)×57倍のオフセット−データ(8ビ
ツト)×7そしてCPU51は、第8図に示すように、
拡大テーブル56Aの該当するビットパターンテーブル
の先頭から上述したようにして求めたオフセット分数え
たアドレスに格納されている拡大データを取り出す。な
お、各ビットパターンテーブルのテーブル幅は、2倍の
場合は16ビツト、3倍の場合は24ビツト、5倍の場
合は40ビツト、7倍の場合は56ビツトになっている
That is, 2 times the offset - data (8 bits) x 23 times the offset - data (8 bits) x 35 times the offset - data (8 bits) x 57 times the offset - data (8 bits) x 7, and the CPU 51 , as shown in Figure 8,
The enlarged data stored at the address counted by the offset obtained as described above from the head of the corresponding bit pattern table of the enlarged table 56A is retrieved. Note that the table width of each bit pattern table is 16 bits for 2x, 24 bits for 3x, 40 bits for 5x, and 56 bits for 7x.

例えば、2倍のときは、拡大データは16ビツトが取り
出され、3倍のときは、拡大データは24ビツトが取り
出され、これらの読み出された拡大データはワークメモ
リ59に展開される。
For example, when the size is 2 times, 16 bits of enlarged data are taken out, and when it is 3 times, 24 bits of enlarged data are taken out, and these read enlarged data are developed in the work memory 59.

すなわち、拡大倍率が12倍のときは、係数m−3なの
で、第9図に示すように、原画像データ80に対して3
倍の拡大処理が施され、その3倍の拡大処理が施された
画像データ81に対して2倍の拡大処理が施される。こ
のように3倍の拡大処理が施されることにより、n −
n / 2 = 4 / 2−2となるため、2倍の拡
大処理が施された画像データ82に対してもう一度、2
倍の拡大処理が施され、これによりn = n / 2
−2 / 1−1となるため、画像データに対する拡大
処理が終了する。
That is, when the magnification is 12 times, the coefficient is m-3, so as shown in FIG.
The image data 81 that has been subjected to double enlargement processing is then subjected to double enlargement processing. By performing the 3x enlargement process in this way, n −
Since n/2 = 4/2-2, the image data 82 that has been enlarged twice is once again enlarged by 2.
Expansion processing is performed, which results in n = n / 2
-2/1-1, so the enlargement process for the image data ends.

最終的には、原画像データ80が12倍の拡大処理が施
された画像データ83となる。
Finally, the original image data 80 becomes image data 83 that has been subjected to 12 times enlargement processing.

なお、上記ステップ200でFree−1の場合は、画
像データに対してFree拡大処理を施しくステップ2
09)、その後、拡大処理を終了する。このFree拡
大処理は、従来の拡大方法と同様に、1ビツトを任意に
拡大する罫線ルーチンを使用してワークメモリ59上に
線を引く。この線の描画は、第10図に示すように、ワ
ークメモリ59上の、ソースデータ(原画像データ)左
端より数えたビット数nXスケール値(倍率係数の値)
Sの位置から開始される。
In addition, in the case of Free-1 in step 200, the image data is subjected to Free enlargement processing and step 2 is performed.
09), then the enlargement process ends. This free enlargement process draws lines on the work memory 59 using a ruled line routine that arbitrarily enlarges 1 bit, similar to the conventional enlargement method. As shown in FIG. 10, this line is drawn using the number of bits counted from the left end of the source data (original image data) on the work memory 59 x the scale value (the value of the magnification coefficient)
Starting from position S.

以上の実施例は画像に対するX方向の拡大処理について
説明したが、次に、第11図(a)に示すように、画像
のY方向に対する拡大処理について説明する。このY方
向の拡大処理は、第11図(b)に示すように、X方向
のデータを倍率分繰返してコピーすればよい。第11図
(a)ではY方向に2倍の拡大処理を施した状態を示し
ている。
In the above embodiments, the process of enlarging the image in the X direction has been described. Next, as shown in FIG. 11(a), the process of enlarging the image in the Y direction will be described. This Y-direction enlargement process can be performed by repeatedly copying the X-direction data by the magnification, as shown in FIG. 11(b). FIG. 11(a) shows a state in which the image has been enlarged twice in the Y direction.

本実施例で、は、画像に対してX方向、Y方向共に、1
〜128倍の整数倍に拡大することが可能である。
In this example, is 1 in both the X direction and Y direction with respect to the image.
It is possible to enlarge by an integer multiple of ~128 times.

なお、上記実施例では、8ビツトずつ拡大処理するよう
にしているが、これに限定されることなく、複数ビット
例えば16ビツトずつ拡大処理するようにしても良い。
In the above embodiment, the enlargement process is performed in units of 8 bits, but the invention is not limited to this, and the enlargement process may be performed in units of multiple bits, for example, 16 bits at a time.

上記実施例によれば、画像のX方向に対する拡大処理の
際には、拡大テーブルを参照して、画像データに対して
8ビツトずつ拡大処理された拡大データを読み出して、
拡大処理するようにしたので、拡大処理を迅速に行うこ
とができる。
According to the above embodiment, when enlarging an image in the X direction, the enlarged data obtained by enlarging the image data in 8-bit increments is read out with reference to the enlarging table.
Since the enlargement process is performed, the enlargement process can be performed quickly.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、予め設定された異
なる複数の拡大倍率係数の中から決定された所定の倍率
係数の因数分解の解、に該当する拡大倍率係数に対応す
る拡大処理手順を、記憶手段から読み出し実行して、画
像データに対し拡大処理を施すようにしたため、高倍率
(高倍率係数)の拡大処理の場合であっても、その倍率
係数の因数分解の解に該当する拡大倍率係数に対応する
拡大処理手順を実行することにより、高速に拡大処理を
行うことができるという利点がある。
As explained above, according to the present invention, an enlargement processing procedure corresponding to an enlargement coefficient corresponding to a factorization solution of a predetermined enlargement coefficient determined from a plurality of different enlargement coefficients set in advance is performed. , the image data is read out from the storage means and executed and enlarged, so even in the case of enlargement processing with a high magnification (high magnification coefficient), the enlargement that corresponds to the solution of the factorization of the magnification coefficient By executing the enlargement processing procedure corresponding to the magnification coefficient, there is an advantage that the enlargement processing can be performed at high speed.

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

第1図は本発明に係る画像処理方式を適用した画像印字
装置の一実施例を示すブロック図、第2図は上記画像印
字装置の記録部を示す要部斜視図、第3図は上記画像印
字装置の画像供給装置を示すブロック図、第4図および
第5図は拡大処理動作を示すフローチャート、第6図は
画像に対する拡大処理方向を説明するための説明図、第
7図は所定の倍率係数に対する係数mおよびnの組合せ
を示す組合せ一覧表、第8図は拡大テーブルがらの拡大
データの取出しを説明するための説明図、第9図は画像
に対するX方向の拡大処理過程を説明するための説明図
、第10図は画像に対するX方向のFree拡大処理を
説明するための説明図、第11図は画像に対するY方向
の拡大処理過程を説明するための説明図、第12図は従
来の拡大処理動作を説明するための説明図である。 11・・・画像供給装置、12・・・記録部、13・・
・電源、14・・・パネル、51・・・CPU、55・
・・RAM。 56・・・ROM、56A・・・拡大テーブル、57・
・・プログラムメモリ、58・・・文字パターンメモリ
、59・・・ワークメモリ、60・・・ビットマツプメ
モリ、61・・・ビットマツプコントローラ。 第2図 第 図 第 図 面イ亀テ゛ニタ(ソーステ・−り) 〆 1−クヌ七1lr−下の画像テ゛−タ 第10図 (b) 第11図 第12図
FIG. 1 is a block diagram showing an embodiment of an image printing device to which the image processing method according to the present invention is applied, FIG. 2 is a perspective view of a main part showing a recording section of the image printing device, and FIG. A block diagram showing an image supply device of a printing device, FIGS. 4 and 5 are flowcharts showing enlargement processing operations, FIG. 6 is an explanatory diagram for explaining the direction of enlargement processing for an image, and FIG. 7 shows a predetermined magnification. A combination list showing combinations of coefficients m and n for coefficients, FIG. 8 is an explanatory diagram for explaining extraction of enlarged data from the enlargement table, and FIG. 9 is for explaining the process of enlarging an image in the X direction. FIG. 10 is an explanatory diagram for explaining the free enlargement process in the X direction for an image. FIG. 11 is an explanatory diagram for explaining the process for enlarging the image in the Y direction. FIG. 3 is an explanatory diagram for explaining an enlargement processing operation. 11... Image supply device, 12... Recording section, 13...
・Power supply, 14... Panel, 51... CPU, 55.
...RAM. 56...ROM, 56A...enlargement table, 57.
...Program memory, 58...Character pattern memory, 59...Work memory, 60...Bitmap memory, 61...Bitmap controller. Fig. 2 Fig. Fig. Drawing input unit (source screen) 〆1-kunu71lr-lower image datater Fig. 10 (b) Fig. 11 Fig. 12

Claims (1)

【特許請求の範囲】 画像データに対し、設定された倍率に応じた拡大処理を
行う画像処理方式において、 予め設定された異なる複数の拡大倍率係数に対応する拡
大処理手順を記憶する記憶手段と、設定された倍率係数
の因数分解の解を上記各拡大倍率係数の中から決定する
決定手段と、 前記決定手段によって決定された因数分解の解に該当す
る拡大倍率係数に対応する拡大処理手順を前記記憶手段
から読み出し実行して、画像データに対し拡大処理を施
す処理手段と を具えたことを特徴とする画像処理方式。
[Scope of Claims] An image processing method that performs enlargement processing on image data according to a set magnification factor, comprising: a storage means for storing enlargement processing procedures corresponding to a plurality of different preset enlargement factor coefficients; a determining means for determining a solution to the factorization of the set magnification coefficient from among the respective magnification coefficients; and an enlargement processing procedure corresponding to the magnification coefficient corresponding to the solution to the factorization determined by the determination means. 1. An image processing method comprising processing means for reading data from a storage means and performing enlargement processing on image data.
JP10063089A 1989-04-20 1989-04-20 Image processing method Pending JPH02277661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10063089A JPH02277661A (en) 1989-04-20 1989-04-20 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10063089A JPH02277661A (en) 1989-04-20 1989-04-20 Image processing method

Publications (1)

Publication Number Publication Date
JPH02277661A true JPH02277661A (en) 1990-11-14

Family

ID=14279158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10063089A Pending JPH02277661A (en) 1989-04-20 1989-04-20 Image processing method

Country Status (1)

Country Link
JP (1) JPH02277661A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6022871A (en) * 1983-07-18 1985-02-05 Konishiroku Photo Ind Co Ltd Method and apparatus of enlarging and reduction
JPS61239775A (en) * 1985-04-16 1986-10-25 Minolta Camera Co Ltd Image enlarging device
JPS6346065A (en) * 1986-08-13 1988-02-26 Fuji Photo Film Co Ltd Image magnification changing method
JPS63302749A (en) * 1987-06-03 1988-12-09 Matsushita Electric Ind Co Ltd Method for forming insulation layer of rotor core

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6022871A (en) * 1983-07-18 1985-02-05 Konishiroku Photo Ind Co Ltd Method and apparatus of enlarging and reduction
JPS61239775A (en) * 1985-04-16 1986-10-25 Minolta Camera Co Ltd Image enlarging device
JPS6346065A (en) * 1986-08-13 1988-02-26 Fuji Photo Film Co Ltd Image magnification changing method
JPS63302749A (en) * 1987-06-03 1988-12-09 Matsushita Electric Ind Co Ltd Method for forming insulation layer of rotor core

Similar Documents

Publication Publication Date Title
US4722064A (en) Drawing output unit
JP2521818B2 (en) Output control device
JP2734206B2 (en) Polygon drawing method and apparatus
JP2785318B2 (en) Image printing device
JPH02277656A (en) Image processor
JPH02278419A (en) Picture processing device
JP2958029B2 (en) Output control device and method
JPH02277654A (en) Image processor
JP2884407B2 (en) Image processing device
JPS6364776A (en) Image editing method
JPH02277655A (en) Image processor
JP2754710B2 (en) External character registration device
JPH04250582A (en) Method and device for drawing polygon
JPH03234677A (en) Image printer
JP2775723B2 (en) Polygon drawing method and apparatus
JPS6356688A (en) Image processing
JPH02277678A (en) Page printer
JPS6368889A (en) Image processing
JPS6356687A (en) Image processing
JPH02277676A (en) Image printing apparatus
JPH05112054A (en) Image processing device
JPS6368890A (en) Image tilting processor
JPS6327891A (en) Image processing circuit
JPH0814754B2 (en) Image processing method
JPH08317230A (en) Color printer controller