JP2000278521A - Image resizing device - Google Patents

Image resizing device

Info

Publication number
JP2000278521A
JP2000278521A JP11085638A JP8563899A JP2000278521A JP 2000278521 A JP2000278521 A JP 2000278521A JP 11085638 A JP11085638 A JP 11085638A JP 8563899 A JP8563899 A JP 8563899A JP 2000278521 A JP2000278521 A JP 2000278521A
Authority
JP
Japan
Prior art keywords
image
size
change
file
original
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.)
Withdrawn
Application number
JP11085638A
Other languages
Japanese (ja)
Inventor
Hiroaki Ishii
宏明 石井
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP11085638A priority Critical patent/JP2000278521A/en
Publication of JP2000278521A publication Critical patent/JP2000278521A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image resizing device capable of changing plural source image files altogether to the individual conditions of the respective image files in image resizing for changing the size of a source image to be a specified change size. SOLUTION: When object plural source images are specified by a size specifying means 1, an image size extraction means 1 extracts the size of the source images of the respective source image files. Then, by specifying the change size and the arranging position of variable power images to be prepared later by the size specifying means 1, a change size file is prepared. Then, a change parameter preparation means 5 prepares a change parameter file. An image size change means 6 prepares resized images by performing variable magnification and the addition of a margin part to the plural source images corresponding to the change parameter file and stores them in a storage means 2.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、画像のサイズを変更す
る画像リサイズに関し、特に、複数の画像ファイルを、
設定されたパラメータデータに従って、各画像ファイル
固有の条件に、一括して変更することが可能な画像リサ
イズ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to image resizing for changing the size of an image.
The present invention relates to an image resizing device that can collectively change conditions unique to each image file according to set parameter data.

【0002】[0002]

【従来の技術】印刷の前工程や、デジタル出版等におい
て、画像データを扱う場合には、入稿される画像データ
と最終的に製品において利用される画像データのサイズ
が異なるため、入稿された画像データのサイズを変更す
る画像リサイズが行われている。
2. Description of the Related Art When image data is handled in a pre-printing process, digital publishing, or the like, the size of the image data to be submitted differs from the size of the image data finally used in a product. Image resizing for changing the size of the image data is performed.

【0003】従来、この画像リサイズ作業は、コンピュ
ータを用いて、オペレータが画像ファイルを一点ずつ開
いて、直接数値を指定する等して行っている。また、複
数の画像ファイルを一括して処理することもできるが、
この場合は、全ての画像ファイルを同じ条件で指定して
行っている。
Conventionally, this image resizing operation is performed by an operator opening an image file one point at a time and directly specifying a numerical value using a computer. You can also process multiple image files at once,
In this case, all image files are designated under the same conditions.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来のように、画像ファイルを一点ずつ開いて、直接数値
を指定する手法では、1つのファイル毎に、ファイルを
開く作業、サイズを指定する作業、指定されたサイズに
変換する作業を行わなければならず、処理時間が膨大な
ものになるとともに、オペレータの作業負荷も大きかっ
た。また、複数の画像ファイルを一括して処理する場合
は、全ての画像ファイルを同じ条件でリサイズすること
はできたが、個々の画像ファイルに対して個別の条件で
自動的にリサイズすることはできなかった。本発明は上
記のような点に鑑み、複数の画像ファイルを、各画像フ
ァイル固有の条件に、一括して変更することが可能な画
像リサイズ装置を提供することを課題とする。
However, as in the above-mentioned conventional method, in which the image file is opened one by one and the numerical value is directly specified, the operation of opening the file, the operation of specifying the size for each file, The work of converting to the designated size had to be performed, and the processing time was enormous, and the work load of the operator was large. In addition, when processing multiple image files at once, all image files could be resized under the same conditions, but individual image files could be automatically resized under individual conditions. Did not. In view of the above, it is an object of the present invention to provide an image resizing apparatus capable of changing a plurality of image files collectively under conditions unique to each image file.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するた
め、請求項1に記載の発明では、複数の原画像ファイル
から各原画像の画像サイズを抽出する画像サイズ抽出手
段と、前記各原画像に対して変更サイズを指定するサイ
ズ指定手段と、抽出された前記画像サイズと指定された
前記変更サイズに基づいて変更パラメータを作成する変
更パラメータ作成手段と、作成された前記変更パラメー
タに従って複数の原画像を変倍する画像サイズ変更手段
と、を有することを特徴とする。請求項1に記載の発明
では、特に、複数の原画像のサイズと変更サイズに基づ
いて変更パラメータを作成し、この変更パラメータに従
って原画像を変倍するようにしたので、各原画像につい
て、変更サイズに納まる最大のサイズになるように一括
して変倍することが可能になる。
According to the first aspect of the present invention, there is provided an image size extracting means for extracting an image size of each original image from a plurality of original image files, and Size specifying means for specifying a change size for the image, change parameter generating means for generating a change parameter based on the extracted image size and the specified change size, and a plurality of originals according to the generated change parameter. Image resizing means for resizing the image. According to the first aspect of the present invention, in particular, a change parameter is created based on the sizes and change sizes of a plurality of original images, and the original image is scaled according to the change parameters. It is possible to change the magnification at once so that it becomes the largest size that fits in the size.

【0006】請求項2に記載の発明では、複数の原画像
ファイルから各原画像の画像サイズを抽出する画像サイ
ズ抽出手段と、前記各原画像に対して変更サイズおよび
変倍画像の変更サイズ上における位置を指定するサイズ
指定手段と、抽出された前記画像サイズと指定された前
記変更サイズに基づいて変更パラメータを作成する変更
パラメータ作成手段と、作成された前記変更パラメータ
に従って複数の原画像を変倍して変倍画像を作成した
後、前記変倍画像に余白部分を付加してリサイズ画像を
作成する画像サイズ変更手段と、を有することを特徴と
する。請求項2に記載の発明では、特に、複数の原画像
のサイズと変更サイズおよび変倍画像の配置位置に基づ
いて変更パラメータを作成し、この変更パラメータに従
って原画像を変倍した後、余白部分を付加してリサイズ
画像を作成するようにしたので、各原画像を指定された
変更サイズの画像になるように、一括してリサイズする
ことが可能になる。
According to the second aspect of the present invention, there is provided an image size extracting means for extracting the image size of each original image from a plurality of original image files; Size specifying means for specifying a position in the image processing apparatus; change parameter creating means for creating a change parameter based on the extracted image size and the designated change size; and changing a plurality of original images in accordance with the created change parameter. And an image size changing means for creating a resized image by adding a blank portion to the scaled image after creating the scaled image by multiplying. According to the second aspect of the present invention, in particular, a change parameter is created based on the size and the change size of the plurality of original images and the arrangement position of the scaled image, and the original image is scaled according to the change parameter. Is added to generate a resized image, so that each original image can be resized collectively so as to be an image of a designated change size.

【0007】[0007]

【発明の実施の形態】(装置構成)以下、本発明の実施
形態について図面を用いて詳細に説明する。図1は、本
発明による画像リサイズ装置の一実施形態の構成を示す
ブロック図である。図1に示す本画像リサイズ装置は、
サイズ指定手段1、記憶手段2、演算処理装置3により
構成される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS (Apparatus Configuration) Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an embodiment of an image resizing apparatus according to the present invention. The image resizing device shown in FIG.
It is composed of a size designation unit 1, a storage unit 2, and an arithmetic processing unit 3.

【0008】サイズ指定手段1は、各原画像ファイルに
ついて、変更サイズを指定する機能を有するものであ
り、マウスやキーボード等により実現される。記憶手段
2は、原画像ファイル、原画像ファイルから画像サイズ
抽出手段4により抽出される画像サイズデータ、サイズ
指定手段1により指定される変更サイズデータ、原画像
をリサイズしたリサイズ画像等、種々のデータを記憶す
るものであり、ハードディスク等の外部記憶装置により
実現される。演算処理装置3は、画像サイズ抽出手段
4、変更パラメータ作成手段5、画像サイズ変更手段6
を有するものであり、パーソナルコンピュータ、ワーク
ステーション等で実現可能である。また、演算処理装置
3内の各手段は、パーソナルコンピュータ、ワークステ
ーション等に専用のプログラムを搭載することにより実
現できる。
The size specifying means 1 has a function of specifying a change size for each original image file, and is realized by a mouse, a keyboard or the like. The storage unit 2 stores various data such as an original image file, image size data extracted from the original image file by the image size extracting unit 4, changed size data specified by the size specifying unit 1, a resized image obtained by resizing the original image, and the like. Is realized by an external storage device such as a hard disk. The arithmetic processing unit 3 includes an image size extracting unit 4, a change parameter creating unit 5, an image size changing unit 6.
And can be realized by a personal computer, a workstation, or the like. Each unit in the arithmetic processing unit 3 can be realized by installing a dedicated program on a personal computer, a workstation, or the like.

【0009】画像サイズ抽出手段4は、原画像ファイル
から原画像データの縦横の画像サイズを抽出して画像サ
イズファイルを作成する機能を有する。変更パラメータ
作成手段5は、サイズ指定手段により指定された各原画
像に対する変更サイズを有する変更サイズファイルと、
画像サイズファイルから変更パラメータファイルを作成
する機能を有する。画像サイズ変更手段6は、各原画像
データを対応する変更パラメータファイルに従って画像
のサイズを変更する機能を有する。
The image size extracting means 4 has a function of extracting the vertical and horizontal image sizes of the original image data from the original image file to create an image size file. The change parameter creating means 5 includes a change size file having a change size for each original image specified by the size specifying means,
It has a function of creating a change parameter file from an image size file. The image size changing means 6 has a function of changing the size of each original image data according to the corresponding change parameter file.

【0010】(第1の実施形態)次に、図1に示す画像
リサイズ装置の処理動作について、図2のフローチャー
トを用いて説明する。まず、前段階として記憶手段2に
は、あらかじめ複数の原画像ファイルが記憶されている
ものとする。原画像ファイルとは、ラスターデータ形式
の原画像データに加え、少なくとも原画像データの縦、
横のサイズ情報を有したファイルである。
(First Embodiment) Next, the processing operation of the image resizing apparatus shown in FIG. 1 will be described with reference to the flowchart of FIG. First, it is assumed that a plurality of original image files are stored in advance in the storage unit 2 as a previous stage. An original image file is raster image data in addition to raster image data,
This is a file having horizontal size information.

【0011】原画像ファイルが記憶された状態におい
て、ステップS1では、サイズ指定手段1により、記憶
手段2に記憶されている原画像ファイルのうち、サイズ
変更を行うものを選択する。そして、演算処理装置3に
対して画像サイズを抽出する指示を行うと、画像サイズ
抽出手段4が選択された原画像ファイルから原画像デー
タの縦、横のサイズを抽出して画像サイズファイルを作
成する。図3(a)に画像サイズファイルの一例を示
す。図3(a)において、1番左側の欄は原画像のファ
イル名、中央の欄は原画像の縦方向のサイズ「Ho」、
1番右側の欄は原画像の横方向のサイズ「Wo」を示し
ている。ここで、原画像の縦、横のサイズの単位はPixe
l、すなわち、画素数である。例えば、原画像A001
のサイズは縦60Pixel、横40Pixelであることを示し
ている。
In a state where the original image file is stored, in step S1, the size specifying unit 1 selects an original image file stored in the storage unit 2 whose size is to be changed. Then, when an instruction to extract the image size is given to the arithmetic processing unit 3, the image size extracting means 4 extracts the vertical and horizontal sizes of the original image data from the selected original image file and creates an image size file. I do. FIG. 3A shows an example of the image size file. In FIG. 3A, the leftmost column is the file name of the original image, the central column is the vertical size “Ho” of the original image,
The rightmost column shows the horizontal size “Wo” of the original image. Here, the unit of the vertical and horizontal size of the original image is Pixel
l, that is, the number of pixels. For example, the original image A001
Indicates that the vertical size is 60 pixels and the horizontal size is 40 pixels.

【0012】続いて、ステップS2において、オペレー
タは、サイズ指定手段1より、変更対象となる各原画像
に対して変更サイズを指定する。指定された変更サイズ
は図3(b)に示すような変更サイズファイルの形式に
まとめられる。図3(b)において、1番左側の欄は原
画像のファイル名、中央の欄は変更後の縦方向のサイズ
「Hr」、1番右側の欄は変更後の横方向のサイズ「W
r」を示している。ここで、変更後の縦方向のサイズ、
変更後の横方向のサイズの単位は、画像サイズファイル
と同じくPixelである。例えば、原画像A001は縦8
0Pixel、横20Pixelのサイズに納まるように、変更さ
れるものであることを示している。
Subsequently, in step S2, the operator uses the size specifying means 1 to specify a change size for each original image to be changed. The designated change size is put together in a change size file format as shown in FIG. In FIG. 3B, the leftmost column is the file name of the original image, the central column is the changed vertical size “Hr”, and the rightmost column is the changed horizontal size “W”.
r ”. Here, the changed vertical size,
The unit of the horizontal size after the change is Pixel, as in the image size file. For example, the original image A001 has a length of 8
This indicates that the size is changed so that it fits in the size of 0 Pixel and 20 Pixels in width.

【0013】画像サイズファイルと変更サイズファイル
が作成されたら、ステップS3では、この2つのファイ
ルを元に、変更パラメータ作成手段5が、変更パラメー
タファイルを作成する。図3(a)に示す画像サイズフ
ァイルと図3(b)に示す変更サイズファイルを元に作
成された変更パラメータファイルを図3(c)に示す。
図3(c)において、1番左側の欄は原画像のファイル
名、中央の欄は変更の際に、縦、横どちらを基準に変更
するかを示す「変更基準」、1番右側の欄は変更基準方
向の変更値を示す「基準変更値」。例えば、原画像A0
01は「変更基準」がWであり、「基準変更値」が20
であるため、横方向が20Pixelになるように、縦横比
固定で変倍されるものであることを示している。
After the image size file and the change size file are created, in step S3, the change parameter creation means 5 creates a change parameter file based on the two files. FIG. 3C shows a change parameter file created based on the image size file shown in FIG. 3A and the change size file shown in FIG. 3B.
In FIG. 3C, the leftmost column is the file name of the original image, and the middle column is a “change criterion” indicating whether to change the image based on the vertical or horizontal direction when the change is made, and the rightmost column. Is a “reference change value” indicating a change value in the change reference direction. For example, the original image A0
01 is “W” for the “change criterion” and 20 for the “criterion change value”.
Therefore, it is shown that the image is scaled at a fixed aspect ratio so that the horizontal direction becomes 20 pixels.

【0014】変更パラメータ作成手段5における変更パ
ラメータファイルの「変更基準」と「基準変更値」の決
定方法は次のようである。図4(a)、(b)はそれぞ
れ、画像サイズHo×Woの原画像、変更サイズHr×
Wrを示す。このとき、この原画像の縦横どちらかが変
更サイズに一致するようにして、納まるように変倍する
必要があるので、以下に示す(条件1)に従って行う。
The method of determining the "change reference" and the "reference change value" of the change parameter file in the change parameter creating means 5 is as follows. FIGS. 4A and 4B respectively show an original image of an image size Ho × Wo and a changed size Hr ×
Wr. At this time, it is necessary to enlarge or reduce the size of the original image so that either the vertical or horizontal size of the original image matches the changed size.

【0015】(条件1) Wo/Ho≦Wr/Hrならば、 「変更基準」=H、「基準変更値」=Hr Wo/Ho>Wr/Hrならば、 「変更基準」=W、「基準変更値」=Wr(Condition 1) If Wo / Ho ≦ Wr / Hr, “change reference” = H, “reference change value” = Hr If Wo / Ho> Wr / Hr, “change reference” = W, “reference” "Change value" = Wr

【0016】例えば、図3(a)、(b)に示すよう
に、原画像A001の場合は、Ho=60、Wo=4
0、Hr=80、Wr=20であるので、Wo/Ho=
40/60、Wr/Hr=20/80となり、Wo/H
o>Wr/Hrとなるため、上記の(条件1)に従う
と、「変更基準」はW、「基準変更値」はWr=20と
なる。この結果、図3(c)に示すような変更パラメー
タファイルが得られる。この変更パラメータファイルの
作成処理は、画像サイズファイルと変更サイズファイル
の対応する画像ファイル毎に処理されるが、図3(b)
の画像ファイルA003のように、「Wr」=−50と
いうような処理が不可能なデータがある場合は、変更パ
ラメータファイル内の画像ファイルA003の「変更基
準」、「基準変更値」の欄を共に処理不可能を示す
「−」とする。
For example, as shown in FIGS. 3A and 3B, in the case of the original image A001, Ho = 60 and Wo = 4.
0, Hr = 80, Wr = 20, Wo / Ho =
40/60, Wr / Hr = 20/80, Wo / H
Since o> Wr / Hr, according to the above (Condition 1), the “change reference” is W, and the “reference change value” is Wr = 20. As a result, a change parameter file as shown in FIG. 3C is obtained. The process of creating the change parameter file is performed for each image file corresponding to the image size file and the change size file.
If there is data that cannot be processed such as “Wr” = − 50 as in the image file A003, the “change reference” and “reference change value” fields of the image file A003 in the change parameter file are displayed. Both are set to "-" indicating that processing is impossible.

【0017】次に、ステップS4では、画像サイズ変更
手段6が、変更パラメータファイルの内容に従って、原
画像の変倍を行う。これは、画像サイズ変更手段6が、
変更パラメータファイルに記載されている原画像ファイ
ルを1つづつ開いて、変更パラメータファイルの「変更
基準」、「基準変更値」に従って縦横比固定で変倍する
ことにより行われる。変倍の際、「変更基準」の方向
は、そのまま「基準変更値」になるように変倍される
が、「変更基準」でない方向については、縦横比の変倍
比を保つため、「変更基準」の方向の変倍率と同じ倍率
で変倍される。ここで、図4(a)、(b)の原画像、
変更サイズを用いて得られる変倍画像を図4(c)に示
す。図4(a)、(b)に示す原画像、変更サイズに対
しては、「変更基準」がWとなるため、変倍画像の横方
向はWrとなる。横方向は原画像に対してWr/Wo倍
されたことになるので、縦横比固定のために縦方向もW
r/Wo倍する。結果として、縦方向はHo×Wr/W
oとなる。原画像の変倍の具体的な処理については、ニ
アレストバイリニア法、キュービックコンボリューショ
ン法等の周知の手法を用いることができる。このように
して原画像を変倍して得られる変倍画像は、変更サイズ
内に縦横比固定で納まる最大のサイズとなる。
Next, in step S4, the image size changing means 6 changes the size of the original image according to the contents of the change parameter file. This is because the image resizing means 6
This is performed by opening the original image files described in the change parameter file one by one and scaling the image in a fixed aspect ratio in accordance with the "change reference" and "reference change value" of the change parameter file. At the time of scaling, the direction of the “change reference” is scaled so as to be the “reference change value”, but for the direction that is not the “change reference”, the “change” is used to maintain the aspect ratio. The magnification is changed at the same magnification as the magnification in the direction of "reference". Here, the original images of FIGS.
FIG. 4C shows a scaled image obtained by using the changed size. For the original image and the changed size shown in FIGS. 4A and 4B, the “change criterion” is W, so the horizontal direction of the scaled image is Wr. Since the horizontal direction is Wr / Wo times the original image, the vertical direction is also Wr / Wo for fixing the aspect ratio.
r / Wo times. As a result, the vertical direction is Ho × Wr / W
It becomes o. For specific processing of scaling the original image, a known method such as a nearest bilinear method or a cubic convolution method can be used. The scaled image obtained by scaling the original image in this way has the largest size that can be fixed at an aspect ratio within the changed size.

【0018】このサイズ変更処理を変更パラメータに登
録された各ファイル毎に行い、記憶手段2に記憶する。
ステップS5において、変更パラメータファイルにリス
トアップされている全画像ファイルについて終了したか
どうかがチェックされ、全画像ファイルが終了するま
で、ステップS4における画像の変倍が行われることに
なる。ただし、図3(c)に示す画像A003のように
「変更基準」がH、Wのどちらでもない場合や、「基準
変更値」が不適正(正の数値以外)な場合は、その画像
ファイルに対しては変倍処理を行わずにスキップする。
変更パラメータファイル内の全画像ファイルについて処
理が行われたら、本装置による処理は終了となる。この
とき、同時に処理内容を示すログファイルを出力して、
記憶手段2に記憶しておくと、後に処理内容を確認する
ときに便利である。
This size change processing is performed for each file registered in the change parameter, and stored in the storage means 2.
In step S5, it is checked whether or not all the image files listed in the change parameter file have been completed, and the image is scaled in step S4 until all the image files have been completed. However, when the “change reference” is neither H nor W as in the image A003 shown in FIG. 3C, or when the “reference change value” is inappropriate (other than a positive numerical value), the image file Is skipped without performing scaling processing.
When the processing has been performed for all the image files in the change parameter file, the processing by the present apparatus ends. At this time, a log file indicating the processing contents is output at the same time,
Storing in the storage means 2 is convenient when confirming the processing contents later.

【0019】(第2の実施形態)次に、第2の実施形態
における本装置の処理動作ついて、図5のフローチャー
トを用いて説明する。
(Second Embodiment) Next, the processing operation of the present apparatus in a second embodiment will be described with reference to the flowchart of FIG.

【0020】まず、ステップS11において、第1の実
施形態と同様に、サイズ指定手段1により、記憶手段2
に記憶されている原画像ファイルのうち、リサイズを行
うものを選択する。そして、演算処理装置3に対して画
像サイズを抽出する指示を行うと、画像サイズ抽出手段
4が選択された原画像ファイルから原画像データの縦、
横のサイズを抽出して画像サイズファイルを作成する。
図6(a)に画像サイズファイルの一例を示す。図6
(a)に示す画像サイズファイルは、図3(a)に示し
た画像サイズファイルと同一形式のものであるので説明
は省略する。
First, in step S11, as in the first embodiment, the size designation means 1 causes the storage means 2
Is selected from among the original image files stored in. Then, when an instruction to extract the image size is given to the arithmetic processing unit 3, the image size extracting means 4 outputs the vertical and vertical lengths of the original image data from the selected original image file.
Extract the horizontal size and create an image size file.
FIG. 6A shows an example of the image size file. FIG.
The image size file shown in FIG. 3A has the same format as the image size file shown in FIG.

【0021】続いて、ステップS12において、オペレ
ータは、サイズ指定手段1より、変更対象となる各原画
像に対して変更サイズおよび作成される変倍画像を変更
サイズのどの位置に配置されるかを指定する。指定され
た変更サイズおよび変倍画像の配置位置は、図6(b)
に示すような変更サイズファイルの形式にまとめられ
る。図6(b)に示す変更サイズファイルは、図3
(b)に示したものとは異なり、右側の2つの欄は第2
の実施形態に特有のものである。右から2番目の欄は、
変倍画像の変更サイズ内における縦方向の配置位置「P
h」、1番右側の欄は、変倍画像の変更サイズ内におけ
る横方向の配置位置「Pw」を示している。縦方向の配
置位置「Ph」は、T(Top)、C(Cente
r)、B(Bottom)の3つの状態を取り、それぞ
れ、変更サイズ内の上部、中央部、下部に配置されるこ
とを示す。横方向の配置位置「Pw」は、L(Lef
t)、C(Center)、R(Right)の3つの
状態を取り、それぞれ、変更サイズ内の左部、中央部、
右部に配置されることを示す。例えば、原画像A001
は、縦方向の配置位置「Ph」がC、横方向の配置位置
「Pw」がCであるので、変更サイズ内において、縦方
向についても横方向についてもも中央部に配置されるこ
とを示す。
Subsequently, in step S12, the operator uses the size specifying means 1 to determine the position of the changed size and the created scaled image for each original image to be changed in the changed size. specify. The designated change size and the position of the scaled image are shown in FIG.
The format is as follows. The changed size file shown in FIG.
Unlike the one shown in (b), the two columns on the right
Is specific to this embodiment. The second column from the right is
The vertical position “P
h ", the rightmost column shows the horizontal arrangement position" Pw "within the changed size of the scaled image. The arrangement position “Ph” in the vertical direction is T (Top), C (Center
r) and B (Bottom), respectively, indicating that they are located at the upper, middle, and lower positions within the changed size, respectively. The horizontal arrangement position “Pw” is L (Lef
t), C (Center), and R (Right) are taken, and the left part, the center part,
Indicates that it is located on the right. For example, the original image A001
Indicates that the arrangement position “Ph” in the vertical direction is C and the arrangement position “Pw” in the horizontal direction is C, so that the arrangement position is the center in both the vertical direction and the horizontal direction within the changed size. .

【0022】画像サイズファイルと変更サイズファイル
が作成されたら、この2つのファイルを元に、変更パラ
メータ作成手段5が、変更パラメータファイルを作成す
る(ステップS13)。図6(a)に示す画像サイズフ
ァイルと図6(b)に示す変更サイズファイルを元に作
成された変更パラメータファイルを図6(c)に示す。
図6(c)に示す変更サイズファイルは、図3(c)に
示したものとは異なり、右側の2つの欄は第2の実施形
態に特有のものである。右から2番目の欄は、変更サイ
ズに変倍画像を配置した場合の、余白部分のサイズを示
すものであり、1番右側の欄は、縦方向もしくは横方向
の画像の配置位置を示している。「余白サイズ」は、以
下の(条件2)に従って決定される。
After the image size file and the change size file are created, the change parameter creation means 5 creates a change parameter file based on the two files (step S13). FIG. 6C shows a change parameter file created based on the image size file shown in FIG. 6A and the change size file shown in FIG. 6B.
The modified size file shown in FIG. 6C is different from that shown in FIG. 3C, and the two columns on the right are unique to the second embodiment. The second column from the right shows the size of the margin when the resized image is placed at the changed size, and the rightmost column shows the placement position of the image in the vertical or horizontal direction. I have. The “margin size” is determined according to the following (condition 2).

【0023】(条件2) 「変更基準」=Wの場合:「余白サイズ」=Hr−Ho
×Wr/Wo 「変更基準」=Hの場合:「余白サイズ」=Wr−Wo
×Hr/Ho
(Condition 2) When "change reference" = W: "margin size" = Hr-Ho
× Wr / Wo “Change standard” = H: “Margin size” = Wr−Wo
× Hr / Ho

【0024】例えば、図4に示すように、変更サイズと
変倍画像の横方向のサイズが同一である場合、すなわ
ち、「変更基準」=Wの場合を考えてみると、余白は縦
方向に発生することになるので、変更サイズの縦方向の
サイズから変倍画像の縦方向のサイズを差し引いたもの
が余白サイズとなり、その値は図4(b)、(c)から
明らかなように、上記(条件2)の上段の式と同一とな
る。具体的に計算してみると、原画像A001は、Ho
=60、Wo=40、Hr=80、Wr=20であり、
変更基準=Wであるため、(条件2)の上段の式に従
い、「余白サイズ」=80−60×20/40=50と
なる。
For example, as shown in FIG. 4, when the horizontal size of the resized image and the resized image are the same, that is, when the “change standard” = W, the margin is set in the vertical direction. Therefore, the margin size is obtained by subtracting the vertical size of the resized image from the vertical size of the changed size, and the value is apparent from FIGS. 4B and 4C. This is the same as the equation in the upper part of the above (condition 2). When specifically calculated, the original image A001 is Ho
= 60, Wo = 40, Hr = 80, Wr = 20,
Since the change criterion is W, “margin size” = 80−60 × 20/40 = 50 in accordance with the upper equation of (condition 2).

【0025】また、「画像位置」については、「変更基
準」の方向には余白がないため、配置位置を考慮する必
要がない。そのため、「変更基準」と異なる方向の配置
位置が必要となる。例えば、原画像A002は「変更基
準」がHであるため、変更サイズファイルの横方向の配
置位置「Pw」の値“L”が「画像位置」の値として登
録される。
Further, as for the "image position", there is no margin in the direction of the "change reference", so that it is not necessary to consider the arrangement position. Therefore, an arrangement position in a direction different from the “change reference” is required. For example, since the “change criterion” of the original image A002 is H, the value “L” of the horizontal arrangement position “Pw” of the changed size file is registered as the value of the “image position”.

【0026】次に、ステップS14において、画像サイ
ズ変更手段6が、変更パラメータファイルの内容に従っ
て、原画像の変倍を行う。これは、画像サイズ変更手段
6が、変更パラメータファイルに記載されている原画像
ファイルを1つづつ開いて、変更パラメータファイルの
「変更基準」、「基準変更値」に従ってサイズ変更する
ことにより、行われる。サイズ変更の際、「変更基準」
の方向は、そのまま「基準変更値」になるように変倍さ
れるが、「変更基準」でない方向については、縦横比の
変倍比を保つため、「変更基準」の方向の変倍率と同じ
倍率で変倍される。図7に原画像A001の場合の処理
の様子を示す。図7(a)に示す原画像は、図7(b)
に示す変更サイズに納まるように、図7(c)に示すよ
うな変倍画像に変倍される。ここでの原画像の変倍の具
体的な処理についても、第1の実施形態と同様、ニアレ
ストバイリニア法、キュービックコンボリューション法
等の周知の手法を用いることができる。
Next, in step S14, the image size changing means 6 scales the original image according to the contents of the change parameter file. This is because the image size changing means 6 opens the original image files described in the change parameter file one by one and changes the size in accordance with the “change criterion” and the “criterion change value” of the change parameter file. Will be When changing the size, "change criteria"
Is scaled so as to be the “changed reference value”, but for the direction that is not the “changed reference”, the magnification is the same as the “changed reference” direction in order to maintain the aspect ratio. It is scaled by the magnification. FIG. 7 shows a state of processing in the case of the original image A001. The original image shown in FIG.
The image is scaled to a scaled image as shown in FIG. For the specific processing of scaling the original image here, similarly to the first embodiment, well-known methods such as the nearest bilinear method and the cubic convolution method can be used.

【0027】続いて、ステップS15において、画像サ
イズ変更手段6は、変更パラメータファイルの「余白サ
イズ」「画像位置」に従って、変倍画像に余白部分を付
加する。原画像A001の場合、図6(c)に示す変更
パラメータファイルより、「変更基準」がWであるの
で、縦方向に余白が付加されることになる。また、「画
像位置」がCであるので、画像は中央に配置されること
になるため、余白は上下に付加されることになる。余白
サイズは「50」であるので、上下に付加するために1
/2に分割する。その結果、変倍画像の上下に25ずつ
の余白が付加されたリサイズ画像が作成される。この作
成されたリサイズ画像を図7(d)に示す。
Subsequently, in step S15, the image size changing means 6 adds a margin portion to the resized image according to the "margin size" and "image position" of the change parameter file. In the case of the original image A001, since the “change criterion” is W from the change parameter file shown in FIG. 6C, a margin is added in the vertical direction. Further, since the “image position” is C, the image is arranged at the center, and thus the margin is added to the top and bottom. Since the margin size is “50”, 1
/ 2. As a result, a resized image is created in which 25 margins are added above and below the scaled image. FIG. 7D shows the created resized image.

【0028】ここで、変更パラメータファイルの画像位
置と、作成されるリサイズ画像の関係について、例を挙
げておく。例えば、画像A001において、画像位置が
Tで、その他の条件が同じである場合は、図8(a)に
示すような状態のリサイズ画像、画像位置がBで、その
他の条件が同じである場合は、図8(b)に示すような
状態のリサイズ画像が得られることになる。また、画像
A001において、変更基準がHである場合に、画像位
置がL、C、Rとなった場合のリサイズ画像の状態を図
8(c)(d)(e)にそれぞれ示す。
Here, an example will be given of the relationship between the image position of the change parameter file and the created resized image. For example, in the image A001, when the image position is T and other conditions are the same, a resized image in a state as shown in FIG. 8A, the image position is B and the other conditions are the same Means that a resized image in a state as shown in FIG. 8B is obtained. FIGS. 8C, 8D, and 8E show the states of the resized images when the image position becomes L, C, and R when the change reference is H in the image A001.

【0029】画像サイズ変更手段6による上記ステップ
S14、S15の処理を変更パラメータファイルに登録
された各ファイル毎に行い、記憶手段2に記憶する。ス
テップS16において、変更パラメータファイルにリス
トアップされている全画像ファイルについて終了したか
どうかがチェックされ、全画像ファイルが終了するま
で、ステップS15、S16における処理が行われるこ
とになる。また、第1の実施形態と同様に、処理不可能
な画像ファイルがある場合は、スキップして別の画像フ
ァイルの処理を行う。変更パラメータファイル内の全画
像ファイルについて処理が行われたら、本装置による処
理は終了となる。このとき、第1の実施形態と同様に、
処理内容を示すログファイルを出力して、記憶手段2に
記憶する処理を行う。
The processing of steps S14 and S15 by the image size changing means 6 is performed for each file registered in the change parameter file, and stored in the storage means 2. In step S16, it is checked whether or not all the image files listed in the change parameter file have been completed, and the processes in steps S15 and S16 are performed until all the image files are completed. As in the first embodiment, if there is an image file that cannot be processed, the image file is skipped and another image file is processed. When the processing has been performed for all the image files in the change parameter file, the processing by the present apparatus ends. At this time, as in the first embodiment,
A log file indicating the processing content is output and stored in the storage unit 2.

【0030】以上、本発明の実施形態について説明した
が、本発明は上記実施形態に限定されるものではなく種
々の変形が可能である。例えば、上記実施形態では、第
1の実施形態で作成される変倍画像、第2の実施形態で
作成されるリサイズ画像は共に、1ファイルずつ、ハー
ドディスク等の記憶手段2に記憶しているが、演算処理
装置3内のメモリに保持しておき、全ファイルの処理が
終了した時点でまとめて、記憶手段2に記憶させるよう
にしても良い。また、上記実施形態では、原画像の変倍
処理については、ニアレストバイリニア法、キュービッ
クコンボリューション法等を用いたが、これに限定され
ることなく、縦横比固定で変倍することができれば、他
の手法を用いてもかまわない。
Although the embodiment of the present invention has been described above, the present invention is not limited to the above embodiment, and various modifications are possible. For example, in the above embodiment, both the resized image created in the first embodiment and the resized image created in the second embodiment are stored one file at a time in the storage unit 2 such as a hard disk. Alternatively, the data may be stored in the memory of the arithmetic processing unit 3 and may be stored in the storage unit 2 when the processing of all the files is completed. Further, in the above embodiment, for the scaling process of the original image, the nearest bilinear method, the cubic convolution method, etc. are used, but the present invention is not limited to this, and if the scaling can be performed with a fixed aspect ratio, Other methods may be used.

【0031】[0031]

【発明の効果】以上、説明したように本発明によれば、
複数の原画像のサイズと変更サイズに基づいて変更パラ
メータを作成し、この変更パラメータに従って原画像を
変倍するようにしたので、各原画像について、変更サイ
ズに納まる最大のサイズになるように一括して変倍する
ことが可能になる。また、複数の原画像のサイズと変更
サイズおよび変倍画像の配置位置に基づいて変更パラメ
ータを作成し、この変更パラメータに従って原画像を変
倍した後、余白部分を付加してリサイズ画像を作成する
ようにしたので、各原画像を指定された変更サイズの画
像になるように、一括してリサイズすることが可能にな
る。
As described above, according to the present invention,
A change parameter is created based on the size and the change size of a plurality of original images, and the original image is scaled according to the change parameters. It becomes possible to change the magnification. In addition, a change parameter is created based on the size of the plurality of original images, the changed size, and the arrangement position of the scaled image. After scaling the original image according to the changed parameters, a margin is added to create a resized image. As a result, each original image can be resized collectively so as to become an image of the designated change size.

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

【図1】本発明の画像リサイズ装置の一実施形態を示す
構成図である。
FIG. 1 is a configuration diagram showing an embodiment of an image resizing device of the present invention.

【図2】本発明の第1の実施形態における処理動作を示
すフローチャートである。
FIG. 2 is a flowchart illustrating a processing operation according to the first embodiment of the present invention.

【図3】本発明の第1の実施形態で処理されるファイル
を示す図である。
FIG. 3 is a diagram showing files processed in the first embodiment of the present invention.

【図4】本発明の第1の実施形態で処理される画像の様
子を示す図である。
FIG. 4 is a diagram illustrating a state of an image processed in the first embodiment of the present invention.

【図5】本発明の第2の実施形態における処理動作を示
すフローチャートである。
FIG. 5 is a flowchart illustrating a processing operation according to the second embodiment of the present invention.

【図6】本発明の第2の実施形態で処理されるファイル
を示す図である。
FIG. 6 is a diagram showing a file processed in the second embodiment of the present invention.

【図7】本発明の第2の実施形態で処理される画像の様
子を示す図である。
FIG. 7 is a diagram illustrating a state of an image processed in a second embodiment of the present invention.

【図8】本発明の第2の実施形態における画像位置パラ
メータとリサイズ画像の関係を示す図である。
FIG. 8 is a diagram illustrating a relationship between an image position parameter and a resized image according to the second embodiment of the present invention.

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

1・・・サイズ指定手段 2・・・記憶手段 3・・・演算処理装置 4・・・画像サイズ抽出手段 5・・・変更パラメータ作成手段 6・・・画像サイズ変更手段 DESCRIPTION OF SYMBOLS 1 ... Size designation means 2 ... Storage means 3 ... Arithmetic processing unit 4 ... Image size extraction means 5 ... Change parameter creation means 6 ... Image size change means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数の原画像ファイルから各原画像の画像
サイズを抽出する画像サイズ抽出手段と、前記各原画像
に対して変更サイズを指定するサイズ指定手段と、抽出
された前記画像サイズと指定された前記変更サイズに基
づいて変更パラメータを作成する変更パラメータ作成手
段と、作成された前記変更パラメータに従って複数の原
画像を変倍する画像サイズ変更手段と、を有することを
特徴とする画像リサイズ装置。
An image size extracting unit for extracting an image size of each original image from a plurality of original image files; a size designating unit for designating a change size for each of the original images; An image resize comprising: a change parameter creating unit that creates a change parameter based on the designated change size; and an image size changing unit that scales a plurality of original images according to the created change parameter. apparatus.
【請求項2】複数の原画像ファイルから各原画像の画像
サイズを抽出する画像サイズ抽出手段と、前記各原画像
に対して変更サイズおよび変倍画像の変更サイズ上にお
ける位置を指定するサイズ指定手段と、抽出された前記
画像サイズと指定された前記変更サイズに基づいて変更
パラメータを作成する変更パラメータ作成手段と、作成
された前記変更パラメータに従って複数の原画像を変倍
して変倍画像を作成した後、前記変倍画像に余白部分を
付加してリサイズ画像を作成する画像サイズ変更手段
と、を有することを特徴とする画像リサイズ装置。
2. An image size extracting means for extracting an image size of each original image from a plurality of original image files, and a size designation for designating a change size and a position on the change size of the scaled image for each of the original images. Means, a change parameter creating means for creating a change parameter based on the extracted image size and the designated change size, and a scaled image by scaling a plurality of original images according to the created change parameter. An image resizing device comprising: an image resizing unit that creates a resized image by adding a margin to the resized image after the image is created.
JP11085638A 1999-03-29 1999-03-29 Image resizing device Withdrawn JP2000278521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11085638A JP2000278521A (en) 1999-03-29 1999-03-29 Image resizing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11085638A JP2000278521A (en) 1999-03-29 1999-03-29 Image resizing device

Publications (1)

Publication Number Publication Date
JP2000278521A true JP2000278521A (en) 2000-10-06

Family

ID=13864382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11085638A Withdrawn JP2000278521A (en) 1999-03-29 1999-03-29 Image resizing device

Country Status (1)

Country Link
JP (1) JP2000278521A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009087962A1 (en) * 2008-01-07 2009-07-16 Panasonic Corporation Image processing unit
KR101107928B1 (en) 2008-01-07 2012-01-25 파나소닉 주식회사 Image processing unit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009087962A1 (en) * 2008-01-07 2009-07-16 Panasonic Corporation Image processing unit
KR101107928B1 (en) 2008-01-07 2012-01-25 파나소닉 주식회사 Image processing unit
JP4916553B2 (en) * 2008-01-07 2012-04-11 パナソニック株式会社 Image processing device
US8330845B2 (en) 2008-01-07 2012-12-11 Panasonic Corporation Image processing unit

Similar Documents

Publication Publication Date Title
JP4227468B2 (en) Image forming apparatus and method, and control program
JP2011086050A (en) Information processing terminal and computer program
JPH07200807A (en) Image processing method/device
US5493726A (en) Operation guidance generating unit and method of generating operation guidance
JP2000278521A (en) Image resizing device
JPH10340335A (en) Display image linking method
JPH01134672A (en) Divided image processing system
JP2001312490A (en) Template automatic generation system and machine- readable recording medium with recorded program
JPH06103352A (en) Image data holding/displaying method
JP2007104563A (en) Layout editing apparatus, layout editing method and layout editing program
JP2004348428A (en) Means for inserting header and footer into electronic document
JP2004288028A (en) Layout system, layout support system, layout program, layout support program, layout method and layout support method
JP4756149B2 (en) Photo album creation system and photo album creation computer program
JP2007213046A (en) Image display device and image display program
JPH07107711B2 (en) Document image processing device
JPH11312173A (en) Highly detailed image processor and its program storing medium
JP2005229627A (en) Image forming apparatus, image forming method, and control program
JP3154790B2 (en) Optical character reader
JPH0425931A (en) Data output device
JP2005165985A (en) Dtp-editing device provided with region designation function and data logging function
CN115270245A (en) Parameterization processing method, device and equipment for column large sample reinforcement diagram and readable medium
JP2677442B2 (en) Method of capturing illustrations in editing machine and editing machine
JP2000076472A (en) Program storage medium
JPH09231228A (en) File retrieval device
JP2000347831A (en) System and method for image conversion

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060606