JPH09181912A - Image processor and print system - Google Patents

Image processor and print system

Info

Publication number
JPH09181912A
JPH09181912A JP7340996A JP34099695A JPH09181912A JP H09181912 A JPH09181912 A JP H09181912A JP 7340996 A JP7340996 A JP 7340996A JP 34099695 A JP34099695 A JP 34099695A JP H09181912 A JPH09181912 A JP H09181912A
Authority
JP
Japan
Prior art keywords
size
unit
conversion
image data
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7340996A
Other languages
Japanese (ja)
Inventor
Hiroshi Endo
浩志 遠藤
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP7340996A priority Critical patent/JPH09181912A/en
Publication of JPH09181912A publication Critical patent/JPH09181912A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent an error between the size of a printed image and the size of a print medium by conducting size conversion in matching with a size of the print medium on which an image after conversion is printed out in the conversion of the print size such as magnification or reduction in a printer. SOLUTION: In the size conversion processing conducted in a series of image data processing, the size of image data before magnification expressed substantially in number of pixels is converted into a size expressed in a print medium such as mm or inch (s109), the size after magnification is calculated with a designated magnification from the converted size (s110). The after magnification size obtained as a result is converted into size in the unit of pixels (sill) and magnification processing is conducted based on the converted size (s112, s113).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置および
該装置を用いたプリントシステムに関し、詳しくは、画
像サイズ変換を行なう画像処理装置および該装置を用い
たプリントシステムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and a printing system using the apparatus, and more particularly to an image processing apparatus for performing image size conversion and a printing system using the apparatus.

【0002】[0002]

【従来の技術】従来、プリンタ等において画像を拡大プ
リントする処理では、ズームレンズ等を用いた光学的手
段によって原画を所望のサイズに引延ばして得られたデ
ータを用いてプリントする方法、スキャナ等で読み込み
デジタル化した画像をその画像データファイルのヘッダ
ーに含まれる画素(以下、ピクセルともいう)等の単位
で示されるサイズに基づいて拡大処理した後その処理デ
ータに基づいてプリントする方法等が採られていた。
2. Description of the Related Art Conventionally, in a process of enlarging and printing an image in a printer or the like, a method of printing an original image to a desired size by an optical means using a zoom lens or the like, and printing using the obtained data, a scanner or the like. The method of enlarging the digitized image that is read in by the size shown in the unit of pixels (hereinafter also referred to as pixels) included in the header of the image data file and then printing based on the processed data is adopted. It was being done.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述の
従来例に於いて、ズームレンズ等を用い光学的拡大によ
り出力データを得る方法は、拡大後のサイズが読込み能
力以上になるとそれを越える分は読込めず、分割読込み
を行うことになる。その結果、継目処理や色の均一化の
為の処理等が新たに必要になるという問題があった。
However, in the above-mentioned conventional example, the method of obtaining output data by optical enlargement using a zoom lens or the like has a problem that if the size after enlargement exceeds the reading ability, the amount beyond that is exceeded. It cannot be read, so it will be read separately. As a result, there has been a problem that a seam process and a process for uniformizing the color are newly required.

【0004】また、スキャナ等で読み込んだ画像データ
をソフトウエア的手段により拡大処理を行なう場合にお
いては、画像データを希望のサイズに拡大処理する際、
指定する倍率は一般に読込み画像の“ピクセルサイズ”
にその倍率を乗算した“ピクセルサイズ”になるよう拡
大処理が行われる。これに対し、例えばポスター等の大
画面のプリントを行う場合のサイズは一般にポスター等
の寸法をmm等の長さの寸法で測定しこれにより倍率を
求めて決定される。このため、測定寸法での拡大率をそ
のまま使用してもプリント結果が所望の寸法サイズには
ならない場合がある。これは、最終的に拡大した画像デ
ータのピクセルサイズを得る場合、ピクセル数の変更を
行なうが、この変更により上記ピクセルサイズと実際に
読込む画像を拡大したサイズとの間に差を生じるからで
ある。このような場合、プリントされたポスターを貼り
付ける際、所定の寸法が得られず寸法合せ等の作業が必
要となる。
Further, when the image data read by a scanner or the like is enlarged by a software means, when the image data is enlarged to a desired size,
The specified magnification is generally the “pixel size” of the read image
Then, the enlargement processing is performed so that the pixel size becomes the "pixel size" obtained by multiplying by. On the other hand, in the case of printing a large screen such as a poster, the size of the poster is generally determined by measuring the size of the poster or the like with a length such as mm and determining the magnification. For this reason, the print result may not reach a desired size and dimension even if the enlargement ratio in the measurement size is used as it is. This is because the number of pixels is changed when finally obtaining the pixel size of the enlarged image data, but this change causes a difference between the pixel size and the enlarged size of the image actually read. is there. In such a case, when pasting a printed poster, it is not possible to obtain a predetermined size, and it is necessary to perform work such as size matching.

【0005】ところで、記録装置を用い、布帛上に画像
の形成を行う技術(以下、これを「捺染プリント」とい
う)。特に、インクを吐出してプリント媒体上に画像の
形成を行うインクジェット方式を用いたものは、従来の
スクリーン捺染のように版を作らずに捺染できること、
布帛の種類に応じて適切なインクを用いることで種々の
布帛に対しプリントが可能であること等の利点を有し、
有効な捺染プリントといえる。この捺染プリントによれ
ば、長尺の布帛に対して所定の画像を繰り返してプリン
トすることで連続した画像がプリントされた布帛を作る
ことができる。
By the way, a technique of forming an image on a cloth by using a recording apparatus (hereinafter, referred to as "textile printing"). In particular, those using an inkjet method of ejecting ink to form an image on a print medium can be printed without making a plate like conventional screen printing,
It has the advantage that it can be printed on various fabrics by using an appropriate ink depending on the type of fabric,
It can be said that it is an effective textile print. According to this textile printing, it is possible to make a fabric on which continuous images are printed by repeatedly printing a predetermined image on a long fabric.

【0006】このように比較的小さな基本画像を繰返し
連続させてプリント出力する捺染プリントの場合にも基
本画像における上述した拡大時の寸法ズレが、上記繰返
しにより蓄積されて大きなズレとなり、指定の寸法に裁
断し柄合わせを行う際に半端な画像が残る等の不都合を
生じることもあった。
Even in the textile printing in which the relatively small basic image is repeatedly and continuously printed out as described above, the above-mentioned enlargement size deviation in the basic image is accumulated by the repetition and becomes a large deviation, and the specified size is obtained. In some cases, inconvenience such as an odd image remained when cutting and pattern matching was performed.

【0007】以上の様に、上述した従来例による画像の
サイズ変更に於いて、光学的方法やソフト的方法もしく
は同様なハード的方法によってもそれぞれ問題が有り、
現実の寸法に合せたサイズ変更が困難であるという問題
があった。
As described above, in the image resizing according to the above-mentioned conventional example, there are problems in each of the optical method, the software method and the similar hardware method.
There is a problem that it is difficult to change the size according to the actual size.

【0008】本発明は、このような問題点に鑑みてなさ
れたものであり、その目的とするところは、プリントが
行われるプリント媒体の寸法に合せた画像サイズの変換
を行うことができる画像処理装置およびプリントシステ
ムを提供することにある。
The present invention has been made in view of the above problems, and an object of the present invention is to perform image processing capable of converting an image size in accordance with the size of a print medium on which printing is performed. To provide an apparatus and a printing system.

【0009】[0009]

【課題を解決するための手段】そのために本発明では、
画像データのサイズ変換処理を行う画像処理装置におい
て、画像データが有するサイズ情報が表わす当該画像デ
ータのサイズを長さ単位のサイズに変換する単位変換手
段と、該単位変換手段の変換によって得られるサイズに
倍率を乗じ変換後サイズを得る変換サイズ演算手段と、
該変換サイズ演算手段によって得られる変換後サイズ
を、前記サイズ情報の単位で表わされるサイズに変換す
る単位逆変換手段と、該単位逆変換手段によって得られ
るサイズと前記サイズ情報が表わすサイズとに基づい
て、当該画像データの拡大または縮小処理を行う変換処
理手段と、を具えたことを特徴とする。
According to the present invention, there is provided:
In an image processing apparatus that performs size conversion processing of image data, a unit conversion unit that converts the size of the image data represented by the size information included in the image data into a size of a length unit, and a size obtained by the conversion of the unit conversion unit. A conversion size calculating means for multiplying by and a ratio to obtain a size after conversion,
Based on the unit inverse conversion means for converting the size after conversion obtained by the conversion size calculation means into the size represented by the unit of the size information, and the size obtained by the unit inverse conversion means and the size represented by the size information. And a conversion processing means for enlarging or reducing the image data.

【0010】また、プリント媒体にプリントを行うため
のプリントシステムにおいて、プリントを行うプリント
装置と、画像データのサイズ変換処理を行う画像処理装
置であって、画像データが有するサイズ情報が表わす当
該画像データのサイズを長さ単位のサイズに変換する単
位変換手段と、該単位変換手段の変換によって得られる
サイズに倍率を乗じ変換後サイズを得る変換サイズ演算
手段と、該変換サイズ演算手段によって得られる変換後
サイズを、前記サイズ情報の単位で表わされるサイズに
変換する単位逆変換手段と、該単位逆変換手段によって
得られるサイズと前記サイズ情報が表わすサイズとに基
づいて、当該画像データの拡大または縮小処理を行う変
換処理手段と、を有した画像処理装置と、を具えたこと
を特徴とする。
Further, in a print system for printing on a print medium, there are a printing device for printing and an image processing device for performing size conversion processing of image data, and the image data represented by size information included in the image data. Unit conversion means for converting the size of the unit into a size of a length unit, a conversion size calculation unit for multiplying the size obtained by the conversion of the unit conversion unit by a scale factor to obtain a converted size, and a conversion obtained by the conversion size calculation unit. A unit inverse conversion unit that converts the subsequent size into a size represented by the unit of the size information, and enlargement or reduction of the image data based on the size obtained by the unit inverse conversion unit and the size represented by the size information. An image processing apparatus having a conversion processing unit for performing processing is provided.

【0011】以上の構成によれば、画像データについ
て、所定の倍率を用いて拡大または縮小を行う際、ま
ず、そのサイズ情報を、画像データに基づいて例えばプ
リントを行うときのプリント媒体の寸法を表わす長さ単
位のサイズに換算し、その後、上記倍率を用いて変換後
サイズを求め、さらにこのサイズを元のサイズ情報の単
位のサイズに逆換算して、画像データの拡大又は縮小を
行うので、その拡大等された画像データに基づいたプリ
ント画像のサイズはそのプリント媒体の寸法に一致した
ものとすることができる。
According to the above configuration, when enlarging or reducing the image data using a predetermined magnification, first, the size information is used to determine, for example, the size of the print medium when printing based on the image data. After converting to the size of the indicated length unit, after obtaining the converted size using the above magnification, and further converting this size back to the size of the unit of the original size information, the image data is enlarged or reduced. The size of the print image based on the magnified image data may match the size of the print medium.

【0012】[0012]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0013】図1は、本発明を適用したプリントシステ
ムの構成を示すブロック図である。
FIG. 1 is a block diagram showing the arrangement of a print system to which the present invention is applied.

【0014】同図に示すように、本実施形態のシステム
は、ホストコンピュータ100と、プリンタ101を含
んだ周辺機器からなる。ホストコンピュータ100は、
以下で詳述する情報読込み100A、サイズ変換100
B、拡大処理Cおよび長さ単位指定/拡大率指定100
dの各処理部を有している。なお、これら処理部は、よ
り具体的にはホストコンピュータ100が実行する処理
の一環としてのソフトウェアとして存在するものであ
る。
As shown in the figure, the system of this embodiment comprises a host computer 100 and peripheral devices including a printer 101. The host computer 100
Information reading 100A, size conversion 100 described in detail below
B, enlargement processing C and length unit designation / magnification designation 100
Each processing unit of d is included. More specifically, these processing units exist as software as a part of the processing executed by the host computer 100.

【0015】プリンタ101でプリントすべき画像デー
タは、ディスク103に記憶された画像データまたはス
キャナ102によって読取った画像データにホストコン
ピュータ100において以下で説明されるような処理を
行うことによって形成される。端末104は、ホストコ
ンピュータ100における上述のような画像処理のパラ
メータを入力するために用いられる。
The image data to be printed by the printer 101 is formed by subjecting the image data stored in the disk 103 or the image data read by the scanner 102 to the processing described below in the host computer 100. The terminal 104 is used to input the above-mentioned image processing parameters in the host computer 100.

【0016】図2は、ホストコンピュータ100が画像
処理の一環として行うサイズ変換処理100Bの手順を
示すフローチャートである。
FIG. 2 is a flow chart showing the procedure of the size conversion processing 100B performed by the host computer 100 as a part of the image processing.

【0017】図2において、まず初めにプリントする画
像の画像フォーマットの選択を端末の入力状態によって
検知し(s100)、特に選択がないと判断した時は
(s101)、デフォルトのフォーマットを設定する
(s102)。次に、端末におけるファイル名の入力を
検知し(s103)、先の選択されたフォーマットに従
いファイルヘッダーを読み込み、画像情報を取得する
(s104)。その情報としては画像サイズ、解像度が
含まれるが、解像度情報が含まれていないと判断された
時は(s105)、端末を介して解像度を取得する(s
106)。
In FIG. 2, first, the selection of the image format of the image to be printed is detected by the input state of the terminal (s100), and when it is judged that there is no particular selection (s101), the default format is set (step S101). s102). Next, the input of the file name in the terminal is detected (s103), the file header is read according to the previously selected format, and the image information is acquired (s104). The information includes the image size and the resolution, but when it is determined that the resolution information is not included (s105), the resolution is acquired through the terminal (s
106).

【0018】次に、端末による拡大処理を行う際の基準
となる長さ単位の選択を検知する(s107)。ここで
選択される単位はミリメートル、インチ等の日常生活で
使用される一般的なものである。続いて端末から例えば
画像データを何倍のサイズにしたいかの拡大率について
の入力を検知する(s108)。拡大率が入力された後
は、ディスク103から得られる原画像又はスキャナ1
02によって読取った原画像についてステップs107
で検知された長さ単位によりその画像サイズを求める
(s109)。すなわち、上記ステップs104で読込
んだ画像サイズ、つまり画素(以下、ピクセルともい
う)の数で表わされる画像サイズと同様に読込んだ解像
度情報とから上記検知した長さ単位の画像サイズに変換
する。これに入力された拡大率を乗じることにより拡大
後の画像サイズを設定された長さ単位で計算する(s1
10)。これを再度解像度を用いピクセル単位に逆変換
し(s111)、ピクセルサイズによる拡大前後の比で
あるピクセル比を求める(s112)。
Next, the selection of the length unit that serves as a reference when the enlargement process is performed by the terminal is detected (s107). The unit selected here is a general unit used in daily life, such as millimeters or inches. Then, an input is input from the terminal about, for example, the enlargement ratio of the image data to be multiplied (s108). After inputting the enlargement ratio, the original image obtained from the disc 103 or the scanner 1
For the original image read by 02, step s107
The image size is obtained by the length unit detected in (s109). That is, the image size read in step s104, that is, the image size represented by the number of pixels (hereinafter, also referred to as pixels) and the resolution information read in the same manner are converted into the image size in the detected length unit. . By multiplying this by the input enlargement ratio, the image size after enlargement is calculated in the set length unit (s1
10). This is again converted back to the pixel unit by using the resolution (s111), and the pixel ratio, which is the ratio before and after the enlargement according to the pixel size, is obtained (s112).

【0019】次に、画像データのソフト拡大処理を行な
う(s113)。ソフト拡大の方法としては公知のもの
を用いることができるが、ここではその一例であるリニ
ア拡大を、図3に示すフローチャートおよび図4〜図7
の模式図を参照して説明する。
Next, a software enlargement process of the image data is performed (s113). A known method can be used as the soft enlargement method. Here, the linear enlargement as an example thereof is shown in the flowchart of FIG. 3 and FIGS.
Will be described with reference to the schematic diagram of FIG.

【0020】図4に示すような原画像をリニア拡大する
場合の基本的考え方は例えば(X,Y)の画素を(X+
1,Y)の画素のように隣接する画素の画素間に滑らか
な連続性を保持する様に、色の連続した補間画素を挿入
する。その方法は、図6に示すように、隣接する上下2
画素づつの4画素を4隅に配した2次元配列を考える。
ここで配列の大きさは縦,横に挿入する補間画素数によ
るが、この画素数は設定された拡大率から全体の挿入数
を求めこれをなるべく均一になるように元の画素間に配
分する事により求めるので一定とはならず、読み込み
行,列の位置により異なり、縦,横方向に関しそれぞれ
求められる。これはその画素の座標値と前述したピクセ
ル比により計算で求められる。
The basic idea when linearly enlarging an original image as shown in FIG. 4 is, for example, that (X, Y) pixels are (X +
Interpolated pixels having continuous colors are inserted so that smooth continuity is maintained between adjacent pixels such as the pixel of (1, Y). The method is as shown in FIG.
Consider a two-dimensional array in which four pixels of each pixel are arranged at four corners.
Here, the size of the array depends on the number of interpolation pixels to be inserted vertically and horizontally, but this number of pixels is calculated from the set enlargement ratio and the total number of insertions is obtained, and this is distributed among the original pixels so as to be as uniform as possible. It is not fixed because it is obtained by the fact that it is different depending on the position of the read row and column, and is obtained in the vertical and horizontal directions. This is calculated by the coordinate value of the pixel and the pixel ratio described above.

【0021】拡大コマンド確認後ピクセル比が読み込ま
れ、図3に示す拡大処理が開始される。まず、画像サイ
ズから画像処理の基本データ単位として図5に示すよう
に2行分が定められ、このデータの読取りのためのメモ
リを確保する(s200)。次に画像データの第1行目
を読み込み(s201)、その後、画像データ全体につ
いて処理が終了していないと判断されるまで(s20
2)、各行の処理の更新毎に一行分の画像データの読込
みを行ない、2行分の画素データを確保する(s20
3)。その後、その2行分についてX座標方向に順次走
査を行ない(s204)、かつ走査を1行づつシフト
(s214)しながら図6にて説明したようにピクセル
比に基づいて、新座標の計算を行い(s205)、この
新座標から挿入行,列の数を計算して2次元配列のサイ
ズを決定し(s206)、その分の出力バッファメモリ
を確保する(s207)。
After confirmation of the enlargement command, the pixel ratio is read and the enlargement processing shown in FIG. 3 is started. First, two lines are determined from the image size as a basic data unit of image processing as shown in FIG. 5, and a memory for reading this data is secured (s200). Next, the first line of the image data is read (s201), and thereafter, until it is determined that the processing has not been completed for the entire image data (s20).
2) Each time the processing of each row is updated, one row of image data is read and pixel data for two rows is secured (s20).
3). After that, the two rows are sequentially scanned in the X coordinate direction (s204), and the scanning is shifted by one row (s214), and the new coordinates are calculated based on the pixel ratio as described in FIG. Then, the number of inserted rows and columns is calculated from this new coordinate to determine the size of the two-dimensional array (s206), and the output buffer memory for that amount is secured (s207).

【0022】以上のような拡大サイズ決定に関する処理
を終了すると、以下のように補間演算を実行する。
When the processing relating to the determination of the enlargement size is completed, the interpolation calculation is executed as follows.

【0023】すなわち、上述した4点データを読込み
(s208)、順次この読込む点を行および列方向にシ
フトしながら(s209,s210)、以下に示す計算
式により各補間データを求め(s211)、出力バッフ
ァに格納する(s212)。
That is, the above-mentioned four-point data is read (s208), and while sequentially shifting the read points in the row and column directions (s209, s210), each interpolation data is obtained by the following formula (s211). , Are stored in the output buffer (s212).

【0024】この演算で、4点データはそのまま用いら
れるがそれ以外の補間画素はこの4画素データから計算
により求める。まず補間の方法はこの2次元配列内の隣
接する画素のデータの差がほぼ均一になる様計算する。
その計算は比例加重により求まり、4点(左上、右上、
左下、右下)のデータをそれぞれa(k,l),a(k
+1,l),a(k,l+1),a(k+1,l+1)
とし、2次配列サイズを横x+1,縦y+1とすると2
次配列内の座標(m,n)の補間データh(m,n)は
以下の式により求まる。
In this calculation, the 4-point data is used as it is, but the other interpolated pixels are calculated from the 4-pixel data. First, the interpolation method is calculated so that the difference between the data of adjacent pixels in this two-dimensional array becomes substantially uniform.
The calculation is obtained by proportional weighting, and four points (upper left, upper right,
The lower left and lower right data are a (k, l), a (k
+ 1, l), a (k, l + 1), a (k + 1, l + 1)
And the secondary array size is horizontal x + 1 and vertical y + 1, 2
The interpolation data h (m, n) of the coordinates (m, n) in the next array is obtained by the following formula.

【0025】h(m,n)=n{m*a(k+1,l+1)+(x-m)*a(k,l+1)}+
(y-n){m*a(k+1,l)+(x-m)*a(k,l)}/x*y 0≦m≦x,0≦n≦y 以上のように、計算補間データの出力バッファメモリへ
のデータ書込みをし(s212)、この2次配列のデー
タ計算を完了後、入力バッファデータ内の1ピクセル分
次の4画像を読込み、再度同様の2次配列のデータ計算
を入力バッファの終端まで行う(s209,s21
0)。続いて1周期のデータ書込みの終った出力データ
を外部出力する(s213)。ここで、入力バッファの
行シフトを行い(s214)、同様の原画像データの1
行分の読込みからの処理の繰り返しを画像の全行読み込
み終了まで行なう(s202)。以上の処理をフルカラ
ー画像ではR,G,Bの3色それぞれに同様に行ないソ
フト拡大処理を終了する。
H (m, n) = n {m * a (k + 1, l + 1) + (xm) * a (k, l + 1)} +
(yn) {m * a (k + 1, l) + (xm) * a (k, l)} / x * y 0 ≦ m ≦ x, 0 ≦ n ≦ y After writing the data to the output buffer memory (s212) and completing the data calculation of this secondary array, the next 4 images for one pixel in the input buffer data are read and the same secondary array data calculation is input again. Perform up to the end of the buffer (s209, s21
0). Then, the output data which has been written for one cycle is externally output (s213). Here, row shift of the input buffer is performed (s214), and the same 1
The process from the reading of the lines is repeated until the reading of all lines of the image is completed (s202). The above processing is similarly performed for each of the three colors of R, G, and B in the full-color image, and the soft enlargement processing is completed.

【0026】以上で画像データのサイズ変換に関する処
理を終了し、続いてプリンタ101のメモリバッファ1
01Aにデータを転送し、図7に示す形態で格納する
(図2のs114)。なお、このデータ転送の手順はシ
ェイクハンドにより転送動作の確認を個別に確認コード
を受信することで行ないながらファイル名、画像サイズ
(縦,横ピクセル数)、の画像諸属性を順次転送し、続
けて画像データを転送する。これに対し、プリンタ10
1では画像サイズデータで規定された容量の画像データ
を受信し、最後に確認コードを返信してデータ転送を終
了する。その他の属性は別の指示コマンドにより転送す
る。画像データ転送完了後プリント動作を実行し(s1
15)、全画像データ出力後全ての動作を終了する。
The processing relating to the size conversion of the image data is completed as described above, and then the memory buffer 1 of the printer 101 is completed.
The data is transferred to 01A and stored in the form shown in FIG. 7 (s114 in FIG. 2). In this data transfer procedure, the transfer operation is confirmed by individually receiving the confirmation code by the shake hand, and the image attributes of the file name, image size (vertical and horizontal pixel numbers) are sequentially transferred, and then continued. To transfer the image data. On the other hand, the printer 10
In 1, the image data of the capacity defined by the image size data is received, the confirmation code is finally returned, and the data transfer is completed. Other attributes are transferred by another instruction command. After the image data transfer is completed, the print operation is executed (s1
15) After outputting all the image data, all the operations are finished.

【0027】上述の実施形態は画像を拡大する例に本発
明を適用する場合を説明したが、本発明は画像の拡大に
限定すること無く、画像の縮小に関しても適用できる。
以下では単純平均で縮小処理を行う例を説明する。
In the above-described embodiment, the case where the present invention is applied to the example of enlarging an image has been described, but the present invention is not limited to the enlargement of an image and can be applied to the reduction of an image.
In the following, an example of performing reduction processing by simple average will be described.

【0028】以下、縮小処理に関し、図8に示すフロー
チャートに従い説明する。
The reduction processing will be described below with reference to the flowchart shown in FIG.

【0029】前述のように求めたピクセル比により、縮
小前画像座標の走査開始Y座標を初期化する(s30
0)。そして、図9に示すような、全画像データの処理
が終了したことを判断するまで(s301)、また、Y
座標の方向の処理が終了したことを判断するまで(s3
02)、原画像の各行のY座標をピクセル比により計算
し縮小画像上でのY座標を求める(s303)。この値
を走査開始Y座標と比較し(s304)、等しいならば
読込み行数を+1加算し(s305)、等しくなった所
で読込み行数分の入力バッファを確保し(s306)、
データを原画像から読込む(s307)。走査開始Y座
標をこの時点で原画像のY座標値に更新して次の処理に
進む(s308)。図10に示す内容の入力バッファの
走査開始X座標、縮小画素数を初期化し(s309,s
310)、図11に示す出力バッファメモリ領域を確保
した後(s311)、新画像X座標を初期化する(s3
12)。次に、X座標方向の処理が終了することを判断
するまで(s313)、ピクセル比により入力バッファ
X座標から縮小画像X座標を計算により求め(s31
4)、新画像X座標と比較し(s315)、等しい時は
縮小画素数を+1加算する(s316)。計算結果が等
しくなった所で入力バッファ中の最小画素数に対応する
画素データの合計を求め(s317)、平均値を求めた
後(s318)、出力バッファ内の新画像X座標の対応
する点にこの値を格納する(s319)。次に新画像X
座標を更新し(s320)、縮小画素数を初期化後(s
321)、入力バッファの次の画素の走査を続ける。入
力バッファの全走査が終了した後出力バッファ内データ
を図12に示すような内容の外部メモリ、又は外部ファ
イルに出力する(s322)。以上の手順を元画像の全
領域について行ない、縮小処理を終了する。
The scanning start Y coordinate of the pre-reduction image coordinate is initialized by the pixel ratio obtained as described above (s30).
0). Then, until it is determined that the processing of all the image data as shown in FIG. 9 is completed (s301), Y
Until it is determined that the processing of the coordinate direction is completed (s3
02), the Y coordinate of each row of the original image is calculated by the pixel ratio to obtain the Y coordinate on the reduced image (s303). This value is compared with the scanning start Y coordinate (s304), and if they are equal, +1 is added to the number of read lines (s305), and when they are equal, an input buffer for the number of read lines is secured (s306),
Data is read from the original image (s307). The Y coordinate of the scanning start is updated to the Y coordinate value of the original image at this point, and the process proceeds to the next process (s308). The scanning start X coordinate and the reduced pixel number of the input buffer having the contents shown in FIG. 10 are initialized (s309, s
310), after securing the output buffer memory area shown in FIG. 11 (s311), the new image X coordinate is initialized (s3).
12). Next, until it is determined that the processing in the X coordinate direction is completed (s313), the reduced image X coordinate is calculated from the input buffer X coordinate by the pixel ratio (s31).
4) Compare with the X coordinate of the new image (s315), and if equal, add 1 to the number of reduced pixels (s316). When the calculation results are equal, the sum of the pixel data corresponding to the minimum number of pixels in the input buffer is calculated (s317), the average value is calculated (s318), and the corresponding point of the new image X coordinate in the output buffer is then calculated. This value is stored in (s319). Next new image X
After updating the coordinates (s320) and initializing the reduced pixel number (s)
321), continue scanning the next pixel in the input buffer. After the scanning of the input buffer is completed, the data in the output buffer is output to the external memory or the external file having the contents shown in FIG. 12 (s322). The above procedure is performed for the entire area of the original image, and the reduction processing ends.

【0030】[0030]

【発明の効果】以上説明した様に、本発明によれば画像
データについて、所定の倍率を用いて拡大または縮小を
行う際、まず、そのサイズ情報を、画像データに基づい
て例えばプリントを行うときのプリント媒体の寸法を表
わす長さ単位のサイズに換算し、その後、上記倍率を用
いて変換後サイズを求め、さらにこのサイズを元のサイ
ズ情報の単位のサイズに逆換算して、画像データの拡大
又は縮小を行うので、その拡大等された画像データに基
づいたプリント画像のサイズはそのプリント媒体の寸法
に一致したものとすることができる。
As described above, according to the present invention, when the image data is enlarged or reduced using a predetermined magnification, first, the size information is printed, for example, based on the image data. Is converted to a size in the length unit representing the size of the print medium, then the converted size is obtained using the above magnification, and this size is converted back to the size of the unit of the original size information to obtain the image data. Since the enlargement or reduction is performed, the size of the print image based on the enlarged image data can be made to match the size of the print medium.

【0031】この結果、例えばポスター、部屋の壁紙等
の寸法単位に依存要素の大きい対象物に合わせた倍率指
定が容易に行なえ、実際のサイズ合わせに於いても単位
変換の誤差無く寸法合わせを行うことができる。
As a result, for example, it is possible to easily specify the magnification in accordance with an object having a large dependent element on the size unit such as a poster or wallpaper of a room, and also in the actual size matching, the size matching is performed without a unit conversion error. be able to.

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

【図1】本発明の一実施形態に係るプリントシステムの
構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a print system according to an embodiment of the present invention.

【図2】本発明の一実施形態に係るサイズ変換処理の手
順を示すフローチャートである。
FIG. 2 is a flowchart showing a procedure of size conversion processing according to the embodiment of the present invention.

【図3】図2に示す処理における拡大処理の詳細を示す
フローチャートである。
FIG. 3 is a flowchart showing details of enlargement processing in the processing shown in FIG.

【図4】上記拡大処理で扱われる原画像データを模式的
に示す図である。
FIG. 4 is a diagram schematically showing original image data handled in the enlargement processing.

【図5】上記拡大処理で用いられる入力バッファの内容
を模式的に表す図である。
FIG. 5 is a diagram schematically showing the contents of an input buffer used in the enlargement process.

【図6】上記拡大処理の概念を示す図である。FIG. 6 is a diagram showing a concept of the enlargement processing.

【図7】上記拡大処理による拡大後の画像データを模式
的に示す図である。
FIG. 7 is a diagram schematically showing image data after enlargement by the enlargement processing.

【図8】本発明の他の実施形態に係る縮小処理の詳細を
示すフローチャートである。
FIG. 8 is a flowchart showing details of reduction processing according to another embodiment of the present invention.

【図9】上記縮小処理で扱れる原画像データを模式的に
示す図である。
FIG. 9 is a diagram schematically showing original image data handled in the reduction processing.

【図10】上記縮小処理で用いられる入力バッファの内
容を模式的に示す図である。
FIG. 10 is a diagram schematically showing the contents of an input buffer used in the reduction processing.

【図11】上記縮小処理で用いられる出力バッファの内
容を模式的に示す図である。
FIG. 11 is a diagram schematically showing the contents of an output buffer used in the reduction processing.

【図12】上記縮小処理後の画像データを模式的に示す
図である。
FIG. 12 is a diagram schematically showing the image data after the reduction processing.

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

100 ホストコンピュータ 101 プリンタ 102 スキャナ 103 ディスク 104 端末装置 100 Host Computer 101 Printer 102 Scanner 103 Disk 104 Terminal Device

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 画像データのサイズ変換処理を行う画像
処理装置において、 画像データが有するサイズ情報が表わす当該画像データ
のサイズを長さ単位のサイズに変換する単位変換手段
と、 該単位変換手段の変換によって得られるサイズに倍率を
乗じ変換後サイズを得る変換サイズ演算手段と、 該変換サイズ演算手段によって得られる変換後サイズ
を、前記サイズ情報の単位で表わされるサイズに変換す
る単位逆変換手段と、 該単位逆変換手段によって得られるサイズと前記サイズ
情報が表わすサイズとに基づいて、当該画像データの拡
大または縮小処理を行う変換処理手段と、 を具えたことを特徴とする画像処理装置。
1. An image processing apparatus for performing size conversion processing of image data, comprising unit conversion means for converting the size of the image data represented by the size information of the image data into a size of a length unit, and the unit conversion means. A conversion size calculating means for multiplying the size obtained by the conversion by a scaling factor to obtain a converted size; and a unit inverse conversion means for converting the converted size obtained by the conversion size calculating means into a size represented by the unit of the size information. An image processing apparatus comprising: a conversion processing unit that performs enlargement or reduction processing of the image data based on the size obtained by the unit inverse conversion unit and the size represented by the size information.
【請求項2】 前記サイズ情報が表わすサイズは、画像
データにおける画素の単位で表わされるサイズであるこ
とを特徴とする請求項1に記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein the size represented by the size information is a size represented by a pixel unit in image data.
【請求項3】 前記長さ単位は、メートル単位又はイン
チ単位であることを特徴とする請求項1または2に記載
の画像処理装置。
3. The image processing apparatus according to claim 1, wherein the length unit is a metric unit or an inch unit.
【請求項4】 プリント媒体にプリントを行うためのプ
リントシステムにおいて、 プリントを行うプリント装置と、 画像データのサイズ変換処理を行う画像処理装置であっ
て、 画像データが有するサイズ情報が表わす当該画像データ
のサイズを長さ単位のサイズに変換する単位変換手段
と、 該単位変換手段の変換によって得られるサイズに倍率を
乗じ変換後サイズを得る変換サイズ演算手段と、 該変換サイズ演算手段によって得られる変換後サイズ
を、前記サイズ情報の単位で表わされるサイズに変換す
る単位逆変換手段と、 該単位逆変換手段によって得られるサイズと前記サイズ
情報が表わすサイズとに基づいて、当該画像データの拡
大または縮小処理を行う変換処理手段と、 を有した画像処理装置と、 を具えたことを特徴とするプリントシステム。
4. A printing system for printing on a printing medium, comprising: a printing device for printing; and an image processing device for performing size conversion processing of image data, wherein the image data represented by size information included in the image data. Unit conversion means for converting the size of the unit into a size of a length unit, a conversion size calculation unit for multiplying the size obtained by the conversion of the unit conversion unit by a scale factor to obtain a converted size, and a conversion obtained by the conversion size calculation unit. A unit inverse conversion unit that converts the subsequent size into a size represented by the unit of the size information, and enlargement or reduction of the image data based on the size obtained by the unit inverse conversion unit and the size represented by the size information. An image processing apparatus having: a conversion processing unit for performing processing; Theft system.
【請求項5】 前記プリントシステムは、前記長さ単位
を設定する長さ単位設定手段、解像度入力手段および倍
率入力手段とをさらに具え、前記単位変換手段は前記解
像度入力手段によって入力される解像度に基づいて当該
変換を行い、および前記変換サイズ演算手段は前記倍率
入力手段によって入力される倍率を用いることを特徴と
する請求項4に記載のプリントシステム。
5. The printing system further comprises length unit setting means for setting the length unit, resolution input means, and magnification input means, and the unit conversion means sets the resolution input by the resolution input means. The printing system according to claim 4, wherein the conversion is performed based on the conversion, and the conversion size calculation unit uses the magnification input by the magnification input unit.
【請求項6】 前記サイズ情報が表わすサイズは、画像
データにおける画素の単位で表わされるサイズであるこ
とを特徴とする請求項4または5に記載のプリントシス
テム。
6. The printing system according to claim 4, wherein the size represented by the size information is a size represented by a pixel unit in image data.
【請求項7】 前記長さ単位は、メートル単位又はイン
チ単位であることを特徴とする請求項4ないし5のいず
れかに記載のプリントシステム。
7. The printing system according to claim 4, wherein the length unit is a metric unit or an inch unit.
JP7340996A 1995-12-27 1995-12-27 Image processor and print system Pending JPH09181912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7340996A JPH09181912A (en) 1995-12-27 1995-12-27 Image processor and print system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7340996A JPH09181912A (en) 1995-12-27 1995-12-27 Image processor and print system

Publications (1)

Publication Number Publication Date
JPH09181912A true JPH09181912A (en) 1997-07-11

Family

ID=18342244

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7340996A Pending JPH09181912A (en) 1995-12-27 1995-12-27 Image processor and print system

Country Status (1)

Country Link
JP (1) JPH09181912A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003025649A (en) * 2002-04-26 2003-01-29 Matsushita Electric Ind Co Ltd Printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003025649A (en) * 2002-04-26 2003-01-29 Matsushita Electric Ind Co Ltd Printer

Similar Documents

Publication Publication Date Title
US6035075A (en) Image deforming method and apparatus
EP1143696B1 (en) Image processing apparatus, image processing circuit, and image processing method
JPH06203153A (en) Method and device for processing image
JPH04252562A (en) Picture processing unit
JPH09181912A (en) Image processor and print system
JP3951492B2 (en) Image processing device
JPH0457570A (en) Picture processor
US6356656B1 (en) Contour-information extraction apparatus and method
JP2803576B2 (en) Image processing device
JP3503136B2 (en) Pixel interpolation device and pixel interpolation method
JP3413968B2 (en) Television signal interpolation circuit
JPH10285389A (en) Image-processing method, image-processing unit and recording medium
JP3093218B2 (en) Digital image processing equipment
JPH0237391A (en) Image interpolating system
JP2903175B2 (en) Image processing device
JP3514895B2 (en) Image expansion processing method and apparatus
JP2740539B2 (en) Enlarged reproduction image information creation method and apparatus
JP2945028B2 (en) Image processing designated area information calculation device
JP3067198B2 (en) Method and apparatus for creating gradation
JPH0752338B2 (en) Graph output control method
JPH0365873A (en) Digital picture processing unit
JPH0816929B2 (en) Image processing device
JPH0463063A (en) Error dispersing circuit
JP2004064267A (en) Image forming apparatus
JPH07168551A (en) Image display device and image display method