JP2006100987A - Image processor and processing method - Google Patents

Image processor and processing method Download PDF

Info

Publication number
JP2006100987A
JP2006100987A JP2004282176A JP2004282176A JP2006100987A JP 2006100987 A JP2006100987 A JP 2006100987A JP 2004282176 A JP2004282176 A JP 2004282176A JP 2004282176 A JP2004282176 A JP 2004282176A JP 2006100987 A JP2006100987 A JP 2006100987A
Authority
JP
Japan
Prior art keywords
image
selection range
copying
image processing
selection
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
JP2004282176A
Other languages
Japanese (ja)
Inventor
Kunihiro Yamamoto
邦浩 山本
Kiyoshi Kusama
澄 草間
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 JP2004282176A priority Critical patent/JP2006100987A/en
Publication of JP2006100987A publication Critical patent/JP2006100987A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To perform trimming easily even when the size of an original image is different from the size of a copied image. <P>SOLUTION: The image processor comprises a means for setting a selection range of a first image when image processing is performed for a plurality of images including at least first and second images, and a means for copying the image of a selection range set for the first image by the selection range setting means. The selection range copying means is provided with at least one of the moving function of selection range set by the selection range setting means, variable magnification function and deforming function. Depending on the first and second images and the feature information of selection range, at least one processing of moving the selection range, variably magnifying the selection range, and deforming the selection range is performed thus copying the image of a selection range set for the first image to the second image. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は画像処理装置及び画像処理方法に関し、特に、画像データをトリミングするために用いて好適な技術に関する。   The present invention relates to an image processing apparatus and an image processing method, and more particularly to a technique suitable for trimming image data.

従来、デジタル画像処理の分野において、操作者の指示に従い画像の一部分を切り出すトリミング処理が従来行われてきた。
図3に、トリミング領域指定の様子を示す。図3において、31は第1の幅W1、第1の高さH1の画像データ、33はトリミング矩形である。このように、操作者が対話的に画像中の矩形領域を指定し、画像31から矩形33の部分だけを切り出して新たな画像を作成することをトリミング処理と呼んでいる。
Conventionally, in the field of digital image processing, a trimming process for cutting out a part of an image according to an instruction from an operator has been conventionally performed.
FIG. 3 shows how the trimming area is designated. In FIG. 3, 31 is image data having a first width W1 and a first height H1, and 33 is a trimming rectangle. In this manner, when the operator interactively designates a rectangular area in the image and cuts out only the portion of the rectangle 33 from the image 31 to create a new image, this is called trimming processing.

前記トリミング処理を行う場合、操作対象の画像の数が多い場合、操作者が各々の画像に対して対話的にトリミング矩形を指定するのは手間がかかるという問題があった。例えば特許文献1において、画像トリミング方法を提供しているが、個別の画像ひとつひとつに対してトリミング矩形を指定しなければならないため、操作の手間は軽減されない。   When performing the trimming process, there is a problem that it takes time and effort for the operator to interactively specify a trimming rectangle for each image when the number of operation target images is large. For example, Patent Document 1 provides an image trimming method. However, since it is necessary to designate a trimming rectangle for each individual image, the labor of operation is not reduced.

特開2003−187257号公報JP 2003-187257 A

また、例えばAdobe社の画像処理ソフトにおいては、トリミング矩形の「コピー&ペースト」機能を提供することで操作者の手間の軽減を図っている。図3の32はトリミング矩形が未だ指定されていない、幅第2の幅W2高さ第2の高さH2の画像である。   For example, Adobe's image processing software provides a “copy and paste” function of a trimming rectangle to reduce the labor of the operator. Reference numeral 32 in FIG. 3 denotes an image having a second width W2 and a second height H2 in which the trimming rectangle has not yet been designated.

このとき、画像31のトリミング矩形33の情報(x1、y1、第1の画像の矩形の幅w1、第1の画像の矩形の高さh1)をそのまま矩形34の情報(x2、y2、第2の画像の矩形の幅w2、第2の画像の矩形の高さh2)に上書きすることで、操作者の手間を軽減するものである。しかしながらこれらの方法は、コピー元の画像とコピー先の画像が同一の幅と高さを有する場合、すなわち、第1の画像の画像の幅W1=第2の画像の画像の幅W2で、かつ第1の画像の画像の高さH1=第2の画像の画像の高さH2である場合にのみ有効であり、大きさが異なる場合は適用できなかった。   At this time, the information of the trimming rectangle 33 of the image 31 (x1, y1, the width w1 of the rectangle of the first image, the height h1 of the rectangle of the first image) is directly used as the information of the rectangle 34 (x2, y2, second By overwriting the rectangular width w2 of the second image and the rectangular height h2) of the second image, the labor of the operator is reduced. However, in these methods, when the copy source image and the copy destination image have the same width and height, that is, the width W1 of the image of the first image = the width W2 of the image of the second image, and It is effective only when the height H1 of the first image is equal to the height H2 of the second image, and cannot be applied when the sizes are different.

本発明は前述の問題点にかんがみ、コピー元画像とコピー先画像の大きさが異なる場合でもトリミング処理を簡単に行うことができるようにすることを目的としている。   In view of the above-described problems, the present invention has an object to make it possible to easily perform a trimming process even when the sizes of a copy source image and a copy destination image are different.

本発明の画像処理装置は、少なくとも第1の画像と第2の画像を含む複数の画像に対して画像処理を行う画像処理装置であって、前記第1の画像において選択範囲を設定する選択範囲設定手段と、前記選択範囲設定手段により前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写する選択範囲複写手段とを有し、前記選択範囲複写手段は、前記選択範囲設定手段により設定された選択範囲の移動機能、変倍機能、変形機能のうち、少なくとも1つの機能を有し、前記第1の画像及び第2の画像と、前記選択範囲の特徴情報に応じて、前記選択範囲の移動、選択範囲の変倍、選択範囲の変形のうち、少なくとも何れか1つの機能による処理を行って前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写することを特徴としている。   The image processing apparatus of the present invention is an image processing apparatus that performs image processing on a plurality of images including at least a first image and a second image, and a selection range that sets a selection range in the first image. Setting means; and selection range copying means for copying an image of the selection range set in the first image by the selection range setting means to the second image, wherein the selection range copying means It has at least one of a selection range moving function, a scaling function, and a transformation function set by the range setting means, according to the first image and the second image and the feature information of the selection range Then, processing of at least one of the selection range movement, selection range scaling, and selection range transformation is performed to convert the selection range image set in the first image into the second range. Copy it to an image It is a symptom.

本発明の画像処理方法は、少なくとも第1の画像と第2の画像を含む複数の画像に対して画像処理を行う画像処理方法であって、前記第1の画像において選択範囲を設定する選択範囲設定工程と、前記選択範囲設定工程により前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写する選択範囲複写工程とを有し、前記選択範囲複写工程は、前記選択範囲設定工程により設定された選択範囲の移動処理、変倍処理、変形処理のうち、少なくとも1つの処理を有し、前記第1の画像及び第2の画像と、前記選択範囲の特徴情報に応じて、前記選択範囲の移動、選択範囲の変倍、選択範囲の変形のうち、少なくとも何れか1つの処理を行って前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写することを特徴としている。   The image processing method of the present invention is an image processing method for performing image processing on a plurality of images including at least a first image and a second image, and a selection range for setting a selection range in the first image And a selection range copying step of copying an image of the selection range set in the first image by the selection range setting step to the second image. The selection range copying step includes the selection range copying step. It has at least one of a selection range moving process, a scaling process, and a deformation process set by the range setting step, and depends on the first image and the second image and the feature information of the selection range The selection range image set as the first image by performing at least one of the selection range shift, the selection range scaling, and the selection range transformation is changed to the second image. Characterized by copying That.

本発明のコンピュータプログラムは、少なくとも第1の画像と第2の画像を含む複数の画像に対して画像処理を行う画像処理方法をコンピュータに実行させるプログラムであって、前記第1の画像において選択範囲を設定する選択範囲設定工程と、前記選択範囲設定工程により前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写する選択範囲複写工程とを有し、前記選択範囲複写工程は、前記選択範囲設定工程により設定された選択範囲の移動処理、変倍処理、変形処理のうち、少なくとも1つの処理を有し、前記第1の画像及び第2の画像と、前記選択範囲の特徴情報に応じて、前記選択範囲の移動、選択範囲の変倍、選択範囲の変形のうち、少なくとも何れか1つの処理を行って前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写する画像処理方法をコンピュータに実行させることを特徴としている。   A computer program according to the present invention is a program for causing a computer to execute an image processing method for performing image processing on a plurality of images including at least a first image and a second image, and the selection range in the first image. A selection range setting step for copying the selection range copying step for copying an image of the selection range set in the first image to the second image by the selection range setting step. The process includes at least one of a selection range moving process, a scaling process, and a deformation process set by the selection range setting process, and includes the first image, the second image, and the selection range. According to the feature information of the selection range, the selection range set in the first image by performing at least one of the movement of the selection range, the scaling of the selection range, and the deformation of the selection range. It is characterized in that to execute the image processing method of copying an image on the second image to the computer.

本発明の記録媒体は、前記に記載のコンピュータプログラムを記録したことを特徴としている。   The recording medium of the present invention is characterized by recording the computer program described above.

本発明によれば、少なくとも第1の画像と第2の画像を含む複数の画像に対して画像処理を行う際に、選択範囲の移動機能、変倍機能、変形機能のうち、少なくとも何れか1つの機能による処理を行って前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写するようにしたので、コピー元画像とコピー先画像の大きさが異なる場合でもトリミング情報をコピーすることが可能となり、トリミング作業における操作者の手間を軽減することができる。   According to the present invention, when image processing is performed on a plurality of images including at least a first image and a second image, at least one of a selection range moving function, a scaling function, and a deforming function is selected. Since the image of the selection range set in the first image is copied to the second image by performing processing by two functions, the trimming information is obtained even when the copy source image and the copy destination image are different in size. Can be copied, and the labor of the operator in the trimming work can be reduced.

(第1の実施の形態)
図1は、本発明が実行されるコンピュータシステムの構成例を示すブロック図である。図1において、101はCPUで、システム全体の制御を行っている。102はキーボードで、マウス102aとともにコンピュータシステムに情報を入力するために使用される。103は表示部で、CRTや液晶等で構成されている。104はROM、105はRAMで、コンピュータシステムの記憶装置を構成し、コンピュータシステムが実行するプログラムや、コンピュータシステムが利用するデータを記憶する。106はハードディスク装置、107はフレキシブルディスク装置で、コンピュータシステムのファイルシステムに使用される外部記憶装置を構成している。108はプリンタである。
(First embodiment)
FIG. 1 is a block diagram illustrating a configuration example of a computer system in which the present invention is executed. In FIG. 1, reference numeral 101 denotes a CPU which controls the entire system. A keyboard 102 is used for inputting information to the computer system together with the mouse 102a. Reference numeral 103 denotes a display unit, which includes a CRT, a liquid crystal, or the like. A ROM 104 and a RAM 105 constitute a storage device of the computer system, and store programs executed by the computer system and data used by the computer system. A hard disk device 106 and a flexible disk device 107 constitute an external storage device used for a file system of a computer system. Reference numeral 108 denotes a printer.

次に、図2のフローチャートを用いて、トリミング領域コピー処理全体の流れを説明する。
ステップS201で、図3の第1の画像の画像の幅W1と第2の画像の画像の幅W2、第1の画像の画像の高さH1と第2の画像の画像の高さH2とがそれぞれ等しいかどうかの判断を行う。等しければステップS202へ、異なればステップS203へ進む。
Next, the overall flow of the trimming area copy process will be described with reference to the flowchart of FIG.
In step S201, the image width W1 and the image width W2 of the first image, the image height H1 of the first image, and the image height H2 of the second image in FIG. Judge whether each is equal. If they are equal, the process proceeds to step S202, and if they are different, the process proceeds to step S203.

次に、ステップS202で、トリミング領域の単純な貼り付けを行う。すなわち、矩形33の起点X座標、起点Y座標、幅、高さをそれぞれx1、y1、w1、h1、矩形34をx2、y2、w2、h2とすると、「x2←x1」、「y2←y1」、「w2←w1」、「h2←h1」とし、処理を終了する。   Next, in step S202, simple pasting of the trimming area is performed. That is, if the starting point X coordinate, starting point Y coordinate, width, and height of the rectangle 33 are x1, y1, w1, h1, and the rectangle 34 is x2, y2, w2, h2, respectively, “x2 ← x1”, “y2 ← y1” ”,“ W2 ← w1 ”,“ h2 ← h1 ”, and the process ends.

次に、ステップS203で、画像31と32の縦横比が等しいか否か、すなわち、第1の画像の画像の幅W1/第1の画像の画像の高さH1、第2の画像の画像の幅W2/第2の画像の画像の高さH2が等しいかどうかの判断を行う。この判断の結果、等しい場合はステップS204に進み、異なればステップS205へ進む。   Next, in step S203, whether or not the aspect ratios of the images 31 and 32 are equal, that is, the width W1 of the first image / the height H1 of the image of the first image, and the image height of the second image. It is determined whether or not the width W2 / the height H2 of the second image is equal. As a result of the determination, if they are equal, the process proceeds to step S204, and if not, the process proceeds to step S205.

ステップS204では、画像31と32の大きさの比に基づいて矩形33を変倍して矩形34に貼り付ける処理を行う。すなわち、
「x2←x1*第2の画像の画像の幅W2/第1の画像の画像の幅W1」、
「y2←y1*第2の画像の画像の幅W2/第1の画像の画像の幅W1」、
「第2の画像の矩形の幅w2←第1の画像の矩形の幅w1*第2の画像の画像の幅W2/第1の画像の画像の幅W1」、
「第2の画像の矩形の高さh2←第1の画像の矩形の高さh1*第2の画像の画像の幅W2/第1の画像の画像の幅W1」とし、処理を終了する。
In step S204, a process of scaling the rectangle 33 based on the ratio of the sizes of the images 31 and 32 and pasting it on the rectangle 34 is performed. That is,
“X2 ← x1 * width W2 of the second image / width W1 of the first image”,
“Y2 ← y1 * width W2 of the second image / width W1 of the first image”,
“The width w2 of the rectangle of the second image ← the width w1 of the rectangle of the first image * the width W2 of the image of the second image / the width W1 of the image of the first image”,
The second image rectangle height h2 ← the first image rectangle height h1 * the second image image width W2 / the first image image width W1, and the process is terminated.

次に、ステップS205では、画像31と32の縦横比が異なる場合であり、自明なコピー方法が存在しないので、適当なアルゴリズムに基づいて矩形33を変形して矩形34に貼り付ける。詳細は後述する。   Next, in step S205, the aspect ratio of the images 31 and 32 is different, and there is no obvious copy method. Therefore, the rectangle 33 is deformed and pasted on the rectangle 34 based on an appropriate algorithm. Details will be described later.

以下に、ステップS205で行う処理を詳細に説明する。
ステップS205では、画像31と32の縦横比が異なる場合のトリミング矩形コピー処理を行う。
Hereinafter, the process performed in step S205 will be described in detail.
In step S205, trimming rectangle copy processing is performed when the aspect ratios of the images 31 and 32 are different.

図4に、第2の画像32が第1の画像31よりも横長である場合の例を示す(図番は図3と同じ)。本実施の形態では、トリミング矩形33の縦横比、すなわち、第1の画像の矩形の幅w1/第1の画像の矩形の高さh1が、第2の画像の矩形の幅w2/第2の画像の矩形の高さh2と等しくなるように矩形34を定義することにする。   FIG. 4 shows an example in which the second image 32 is horizontally longer than the first image 31 (the figure number is the same as FIG. 3). In the present embodiment, the aspect ratio of the trimming rectangle 33, that is, the rectangular width w 1 of the first image / the rectangular height h 1 of the first image is equal to the rectangular width w 2 / second of the second image. The rectangle 34 is defined to be equal to the height h2 of the image rectangle.

図5に示すフローチャートを用いてステップS205の処理の流れを説明する。
ステップS501で、以下の(1)式に基づいてy2を決定する。
y2←y1*第2の高さH2/第1の高さH1・・・(1)
すなわち、画像31と32の高さの比に基づいてy1を変倍してy2に代入する処理を行う。
The process flow of step S205 will be described using the flowchart shown in FIG.
In step S501, y2 is determined based on the following equation (1).
y2 ← y1 * second height H2 / first height H1 (1)
That is, a process of scaling and substituting y1 for y2 based on the ratio of the heights of the images 31 and 32 is performed.

次に、ステップS502で、以下の(2)式に基づいて第2の画像の矩形の高さh2を決定する。
第2の画像の矩形の高さh2←第1の画像の矩形の高さh1*第2の画像の画像の高さH2/第1の画像の画像の高さH1・・・(2)
すなわち、画像31と32の高さの比に基づいて第1の画像の矩形の高さh1を変倍して第2の画像の矩形の高さh2に代入する。
Next, in step S502, the rectangular height h2 of the second image is determined based on the following equation (2).
Height of rectangle of second image h2 ← Height of rectangle of first image h1 * Image height H2 of second image / Image height H1 of first image (2)
That is, based on the ratio of the heights of the images 31 and 32, the rectangular height h1 of the first image is scaled and substituted into the rectangular height h2 of the second image.

次に、ステップS503で、以下の(3)式に基づいて第2の画像の矩形の幅w2を決定する。
第2の画像の矩形の幅w2←第2の画像の矩形の高さh2*第1の画像の矩形の幅w1/第1の画像の矩形の高さh1・・・(3)
すなわち、矩形33と34の縦横比が等しくなるように第2の画像の矩形の幅w2を決める。
Next, in step S503, the rectangular width w2 of the second image is determined based on the following equation (3).
The width w2 of the second image rectangle ← the height h2 of the second image rectangle * the width w1 of the first image rectangle / the height h1 of the first image rectangle (3)
That is, the width w2 of the rectangle of the second image is determined so that the aspect ratios of the rectangles 33 and 34 are equal.

次に、ステップS504で、第1の画像の画像の幅W1と第1の画像の矩形の幅w1が等しいかどうか比較する。すなわち、矩形33が画像31の横幅一杯であるかどうかの比較を行う。この比較の結果、等しければステップS505へ進み、異なればステップS506へ進む。   Next, in step S504, it is compared whether or not the width W1 of the image of the first image is equal to the width w1 of the rectangle of the first image. That is, it is compared whether or not the rectangle 33 is full of the width of the image 31. As a result of the comparison, if they are equal, the process proceeds to step S505, and if not, the process proceeds to step S506.

次に、ステップS505で、以下の(4)式に基づいてx2を決定する。
x2←(第2の画像の画像の幅W2−第2の画像の矩形の幅w2)/2・・・(4)
すなわち、矩形34が横方向に画像32の中央に来るようにx2を決め、処理を終了する。
Next, in step S505, x2 is determined based on the following equation (4).
x2 ← (the width W2 of the image of the second image 2−the width w2 of the rectangle of the second image) / 2 (4)
That is, x2 is determined so that the rectangle 34 is in the center of the image 32 in the horizontal direction, and the process is terminated.

次に、ステップS506で、以下の式に基づいてx2を決定する。
x2←(第2の画像の画像の幅W2−第2の画像の矩形の幅w2)*x1/(第1の画像の画像の幅W1−第1の画像の矩形の幅w1)とする。
すなわち、矩形32の右余白と左余白の比が矩形34の右余白と左余白の比と等しくなるようにx2を決め、処理を終了する。
以上の処理により、画像32が画像31よりも横長である場合に、トリミング矩形の縦横比を保ちつつトリミング矩形のコピーを行うことができる。なお、画像32が画像31よりも縦長である場合には、前記の処理を縦方向と横方向を読み代えて実行する。内容は同等であるので説明は省略する。
Next, in step S506, x2 is determined based on the following equation.
x2 ← (the width W2 of the image of the second image 2−the width w2 of the rectangle of the second image) * x1 / (the width W1 of the image of the first image 1−the width w1 of the rectangle of the first image).
That is, x2 is determined so that the ratio of the right margin and the left margin of the rectangle 32 is equal to the ratio of the right margin and the left margin of the rectangle 34, and the processing is ended.
With the above processing, when the image 32 is wider than the image 31, the trimming rectangle can be copied while maintaining the aspect ratio of the trimming rectangle. When the image 32 is longer than the image 31, the above process is executed with the vertical direction and the horizontal direction being replaced. Since the contents are the same, the description is omitted.

(第2の実施の形態)
画像31と32の大きさが等しい場合や、大きさが異なっても縦横比が等しい場合には、第1の実施の形態で説明したようなトリミング矩形の自明なコピー方法が存在するが、縦横比が異なる場合には自明なコピー方法は存在しない。すなわち、前述した第1の実施の形態では矩形33と34の縦横比が等しくなるような適当なコピー方法を定義したが、これでは全てのユーザにとって適切な動作をするとは言えない。そこで、この第2の実施の形態では操作者の指示に従って複数のコピー方法を切り替える方法を説明する。なお、ステップS205以外の内容は第1の実施の形態と同一であるので説明を省略する。
(Second Embodiment)
When the sizes of the images 31 and 32 are the same, or when the aspect ratio is the same even if the sizes are different, there is a trimming rectangle trivial copying method as described in the first embodiment. There is no obvious copy method when the ratios are different. That is, in the first embodiment described above, an appropriate copy method is defined so that the aspect ratios of the rectangles 33 and 34 are equal. However, this does not mean that the operation is appropriate for all users. Therefore, in the second embodiment, a method for switching a plurality of copy methods in accordance with an instruction from the operator will be described. Since the contents other than step S205 are the same as those in the first embodiment, description thereof will be omitted.

[ステップS205の説明]
図6のフローチャートに従い、前述した図2におけるステップS205のコピー処理の手順を説明する。
先ず、ステップS601で、図7に示すようなプロンプト(入力促進記号)を操作者に提示する。図7において、71は表示部103上に表示されるメッセージボックス、72、73はボタンであり、操作者はポインティングデバイス(マウス102a)を用いて、いずれかのボタンを押下することで、いずれを選択したかをシステムに指示する。
[Description of Step S205]
The procedure of the copy process in step S205 in FIG. 2 will be described with reference to the flowchart of FIG.
First, in step S601, a prompt (input promotion symbol) as shown in FIG. 7 is presented to the operator. In FIG. 7, 71 is a message box displayed on the display unit 103, 72 and 73 are buttons, and the operator uses the pointing device (mouse 102a) to press any button to select which one. Tell the system if it was selected.

次に、ステップS602でいずれのボタンを選択したかを判断し、「方法1」を選択する第1のボタン72を選んだ場合はステップS603へ進み、そうでなければステップS604へ進む。   Next, in step S602, it is determined which button has been selected. If the first button 72 for selecting “method 1” is selected, the process proceeds to step S603, and if not, the process proceeds to step S604.

ステップS603では、「方法1によるコピー処理」を行う。ここでは、第1の実施の形態のステップS205で説明した処理を行うこととする。「方法1によるコピー処理」が終わったら処理を終了する。   In step S603, "copy processing by method 1" is performed. Here, the process described in step S205 of the first embodiment is performed. When the “copy processing by method 1” is completed, the processing is terminated.

一方、ステップS604では、「方法2によるコピー処理」を行う。ここでは矩形33の画像31に対する比率を保持するように矩形34を決定する。すなわち、
「x2←x1*第2の画像の画像の幅W2/第1の画像の画像の幅W1」、
「第2の画像の矩形の幅w2←第1の画像の矩形の幅w1*第2の画像の画像の幅W2/第1の画像の画像の幅W1」、
「y2←y1*第2の画像の画像の高さH2/第1の画像の画像の高さH1」、
「第2の画像の矩形の高さh2←第1の画像の矩形の高さh1*第2の画像の画像の高さH2/第1の画像の画像の高さH1」とし、処理を終了する。
On the other hand, in step S604, “copy processing by method 2” is performed. Here, the rectangle 34 is determined so as to hold the ratio of the rectangle 33 to the image 31. That is,
“X2 ← x1 * width W2 of the second image / width W1 of the first image”,
“The width w2 of the rectangle of the second image ← the width w1 of the rectangle of the first image * the width W2 of the image of the second image / the width W1 of the image of the first image”,
“Y2 ← y1 * height H2 of the second image / height H1 of the first image”,
“Second image rectangular height h 2 ← First image rectangular height h 1 * second image image height H 2 / first image image height H 1”, and the process ends. To do.

(第3の実施の形態)
前述した実施の形態においては、縦横比の異なる画像間でコピーを行おうとするたびに操作者がコピー方法を選択するようにしたが、これに限られない。例えばどちらの方法を選ぶかをオプションとして設定して記憶しておき、そのオプションに従って選択するようにしてもよいし、はじめて縦横比が異なる画像間のコピーを行ったときの選択を記憶しておいて2回目以降はそれに従うようにしてもよい。
(Third embodiment)
In the above-described embodiment, the operator selects the copy method every time copying is performed between images having different aspect ratios, but the present invention is not limited to this. For example, which method to select can be set as an option and stored, and it can be selected according to the option, or the selection when copying between images having different aspect ratios is stored for the first time. And you may make it follow it after the second time.

コピー方法の選択肢を二つ示したがこれに限らず三つ以上の選択肢を提示するようにしてもよいのは言うまでもない。また、縦横比が異なる場合のコピー方法は無数に存在し、前記実施の形態はそのうちの二つを例示しただけであって、これに限定されるものではない。   Although two copy method options are shown, it is needless to say that the present invention is not limited to this and three or more options may be presented. In addition, there are innumerable copying methods when the aspect ratios are different, and the above-described embodiment is only two of them and is not limited thereto.

(第4の実施の形態)
まず、本実施の形態における画像処理装置の概要について説明する。本実施の形態で説明する画像処理装置は、GUIにより画像の選択を行い、その後画像データのトリミング処理を行う。
(Fourth embodiment)
First, an outline of the image processing apparatus according to the present embodiment will be described. The image processing apparatus described in this embodiment selects an image using a GUI, and then performs image data trimming processing.

以下、図面を用いて前記の機能について説明する。
図8は、本実施の形態における画像処理装置の操作手順の基本的な流れを示すフローチャートである。まず、ステップS801で画像処理装置からトリミング対象とする複数の画像データを選択する。次に、ステップS802で選択した画像データの中の一枚をトリミングし、ステップS803でトリミングを他の画像に適用する。以下、図面を用いて各ステップにおける操作の実現例について述べる。
Hereinafter, the function will be described with reference to the drawings.
FIG. 8 is a flowchart showing a basic flow of the operation procedure of the image processing apparatus in the present embodiment. First, in step S801, a plurality of image data to be trimmed is selected from the image processing apparatus. Next, one of the image data selected in step S802 is trimmed, and the trimming is applied to another image in step S803. Hereinafter, an implementation example of the operation in each step will be described with reference to the drawings.

図9は、本実施の形態における画像処理装置の画像選択の概要を示す図である。フォルダツリーウィンドウ301には、画像処理装置内の画像データのディレクトリを示すツリーを表示する。また、画像表示ウィンドウ302はフォルダツリーウィンドウ301で示したフォルダ内の画像を表示している。   FIG. 9 is a diagram showing an outline of image selection of the image processing apparatus according to the present embodiment. The folder tree window 301 displays a tree indicating a directory of image data in the image processing apparatus. An image display window 302 displays images in the folder indicated by the folder tree window 301.

ここで表示している画像はサムネイルと呼ばれる縮小画像である。ユーザは、画像表示ウィンドウ302から任意のサムネイル画像をクリックして選択することができる。また、複数の画像を選択したい場合には、「Shiftキー」あるいは「Ctrlキー」を押しながらクリックすることで可能になる。「Shiftキー」を押すことによって、1つのフォルダ内部の始点と終点を指定して複数の画像を指定することも可能である。   The image displayed here is a reduced image called a thumbnail. The user can click on any thumbnail image from the image display window 302 to select it. If you want to select multiple images, you can do this by holding down the “Shift key” or “Ctrl key” and clicking. By pressing the “Shift key”, it is also possible to designate a plurality of images by designating the start point and end point in one folder.

以上のように複数の画像を選択した後に、トリミングツール起動ボタン303をクリックし、トリミングツールを起動させる。画像処理装置にはその他に多くの機能があるが、本発明の主眼ではないのでその説明は省略する。   After selecting a plurality of images as described above, the trimming tool activation button 303 is clicked to activate the trimming tool. The image processing apparatus has many other functions, but since it is not the main point of the present invention, the description thereof is omitted.

図10は、画像のトリミング処理を行う画面の概要を説明する図である。トリミング処理を行う場合は、画像表示領域413において、トリミング枠の始点をマウスで指定し、さらにマウスをドラッグすることで、トリミング枠414が表示される。トリミング枠のリセットはリセットボタン401で行う。   FIG. 10 is a diagram illustrating an outline of a screen for performing image trimming processing. When performing the trimming process, the trimming frame 414 is displayed by designating the starting point of the trimming frame with the mouse in the image display area 413 and further dragging the mouse. The trimming frame is reset by a reset button 401.

また、トリミング枠のアスペクトを選択したい場合には、縦横比選択ボックス402で縦横比を選択する。選択した縦横比は縦横比表示ボックス403に表示される。また、任意の縦横比を縦横比表示ボックス403で入力することもできる。また、トリミング枠の始点・幅・高さは始点表示領域404、及び幅高さ表示領域405で表示され、入力することもできる。前記のようにトリミング領域を設定した後に、OKボタン411を押すことで、トリミング処理を終了する。前記のようにして、一枚の画像についてトリミング枠を設定することは、従来のアプリでも可能であった。   Further, when it is desired to select the aspect of the trimming frame, the aspect ratio is selected in the aspect ratio selection box 402. The selected aspect ratio is displayed in an aspect ratio display box 403. Also, an arbitrary aspect ratio can be input in the aspect ratio display box 403. The start point / width / height of the trimming frame is displayed in the start point display area 404 and the width / height display area 405 and can be input. After setting the trimming area as described above, the trimming process is terminated by pressing the OK button 411. As described above, it is possible for a conventional application to set a trimming frame for one image.

ここで設定したトリミング枠をコピーして、他の画像にペーストする方法を図11のフローチャートに従って説明する。
ステップS1101において、第1の画像にトリミング領域を設定する。次に、ステップS1102において、図10のコピーボタン406を押して、トリミング領域をコピーする。
A method of copying the trimming frame set here and pasting it to another image will be described with reference to the flowchart of FIG.
In step S1101, a trimming area is set in the first image. Next, in step S1102, the copy button 406 in FIG. 10 is pressed to copy the trimming area.

次に、ステップS1103において、「次へ」ボタン410を押して、別の画像に切り替え、ペーストボタン407を押してトリミング領域を別の画像にペーストする。次にステップS1104において、マウスやキーボードを用いて、トリミング領域を修正する。   Next, in step S1103, the “Next” button 410 is pressed to switch to another image, and the paste button 407 is pressed to paste the trimming area into another image. In step S1104, the trimming area is corrected using a mouse or a keyboard.

以上の操作を複数の画像に対して繰り返し行うことによって、異なる画像間でのトリミング枠のコピー・ペーストを行うことが可能であり、類似の条件下で撮影された大量の画像に対して、適切なトリミング作業を効率的に行うことが可能である。   By repeating the above operations for multiple images, it is possible to copy and paste trimming frames between different images, and it is appropriate for a large number of images taken under similar conditions. Trimming work can be performed efficiently.

(第5の実施の形態)
前述した実施の形態では、画像を切り替えて毎回ペーストを繰り返して行って、異なる画像間でのトリミング枠の適用を行っていた。しかしながら、選択した画像に対して全てほぼ同様のトリミング枠を適用する場合は、全画像に一度にトリミング枠を適用することが可能である方がより効率的に作業を行うことが可能になる。本実施の形態では、選択した全ての画像に全画像にトリミング枠を適用した場合の実現例について、図12のフローチャートを用いて説明する。
(Fifth embodiment)
In the embodiment described above, the trimming frame is applied between different images by switching the images and repeating the paste every time. However, when almost the same trimming frame is applied to all the selected images, it is possible to work more efficiently if the trimming frame can be applied to all images at once. In this embodiment, an implementation example in which a trimming frame is applied to all selected images will be described with reference to the flowchart of FIG.

ステップS1201においては、前述した実施の形態の場合と同様に、第1の画像にトリミング領域を設定する。
次に、ステップS1202において、図10の全画像適用ボタン408を押し、選択した全ての画像にトリミング領域を適用する。
In step S1201, a trimming area is set in the first image, as in the case of the above-described embodiment.
Next, in step S1202, the all image application button 408 in FIG. 10 is pressed to apply the trimming area to all the selected images.

次に、ステップS1203において、図10の次へボタン410を押し、次の画像を表示する。なお、必要に応じて前へボタン409やキャンセルボタン412を使用する。
次に、ステップS1204において、マウスやキーボードを用いて、トリミング領域を対話的に修正する。
In step S1203, the next button 410 in FIG. 10 is pressed to display the next image. Note that the previous button 409 and the cancel button 412 are used as necessary.
In step S1204, the trimming area is interactively corrected using a mouse or a keyboard.

次に、ステップS1205において、全ての画像についての処理が終了したか否かを判断する。この判断の結果、全ての画像について終了してれば、処理を終了する。また、処理が終了していない場合には、ステップS1203に戻り、次の画像について処理を行う。   Next, in step S1205, it is determined whether or not processing for all images has been completed. As a result of the determination, if all the images are finished, the processing is finished. If the process has not ended, the process returns to step S1203 to process the next image.

以上の処理を繰り返し行うことで、選択した全ての画像について一度にトリミング領域を設定し、さらに各画像について微調整を行うことが可能であり、類似の条件下で撮影された大量の画像に対して、適切なトリミング作業を効率的に行うことが可能である。   By repeating the above process, it is possible to set a trimming area for all selected images at once, and further fine-tune each image, for a large number of images taken under similar conditions. Thus, it is possible to efficiently perform an appropriate trimming operation.

(本発明に係る他の実施の形態)
前述した本発明の実施の形態における画像処理装置を構成する選択範囲設定手段、選択範囲複写手段及び複写方法指定手段、並びに画像処理方法の各ステップは、コンピュータのRAMやROMなどに記憶されたプログラムが動作することによって実現できる。このプログラム及び前記プログラムを記録したコンピュータ読み取り可能な記憶媒体は本発明に含まれる。
(Another embodiment according to the present invention)
Each of the steps of the selection range setting means, the selection range copying means, the copying method designating means, and the image processing method constituting the image processing apparatus according to the above-described embodiment of the present invention is stored in a computer RAM or ROM. Can be realized by operating. This program and a computer-readable storage medium storing the program are included in the present invention.

具体的に、前記プログラムは、例えばCD−ROMのような記録媒体に記録し、或いは各種伝送媒体を介し、コンピュータに提供される。前記プログラムを記録する記録媒体としては、CD−ROM以外に、フレキシブルディスク、ハードディスク、磁気テープ、光磁気ディスク、不揮発性メモリカード等を用いることができる。他方、前記プログラムの伝送媒体としては、プログラム情報を搬送波として伝搬させて供給するためのコンピュータネットワーク(LAN、インターネットの等のWAN、無線通信ネットワーク等)システムにおける通信媒体(光ファイバ等の有線回線や無線回線等)を用いることができる。   Specifically, the program is recorded on a recording medium such as a CD-ROM or provided to a computer via various transmission media. As a recording medium for recording the program, besides a CD-ROM, a flexible disk, a hard disk, a magnetic tape, a magneto-optical disk, a nonvolatile memory card, or the like can be used. On the other hand, as the transmission medium of the program, a communication medium (wired line such as an optical fiber, etc.) in a computer network (LAN, WAN such as the Internet, wireless communication network, etc.) system for propagating and supplying program information as a carrier wave A wireless line or the like.

また、コンピュータが供給されたプログラムを実行することにより前述した実施の形態における各機能が実現されるだけでなく、そのプログラムがコンピュータにおいて稼働しているOS(オペレーティングシステム)或いは他のアプリケーションソフト等と共同して前述した実施の形態の各機能が実現される場合や、供給されたプログラムの処理の全て或いは一部がコンピュータの機能拡張ボードや機能拡張ユニットにより行われて前述した実施の形態における各機能が実現される場合も、かかるプログラムは本発明に含まれる。   Further, not only the functions in the above-described embodiments are realized by executing a program supplied by a computer, but also an OS (operating system) or other application software running on the computer. When each function of the above-described embodiment is realized jointly, or all or part of the processing of the supplied program is performed by a function expansion board or a function expansion unit of the computer, each of the above-described embodiment Such a program is also included in the present invention even when the function is realized.

画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of an image processing apparatus. トリミング領域コピー処理全体の流れを説明するフローチャートである。It is a flowchart explaining the flow of the whole trimming area copy process. 画像とトリミング矩形の関係を説明する図である。It is a figure explaining the relationship between an image and a trimming rectangle. 縦横比の異なる画像とトリミング矩形の関係を説明する図である。It is a figure explaining the relationship between the image from which an aspect ratio differs, and a trimming rectangle. 第1の実施の形態における、縦横比が異なる場合のコピー処理を説明するフローチャートである。6 is a flowchart for describing copy processing when the aspect ratios are different in the first embodiment. 第2の実施の形態における、縦横比が異なる場合のコピー処理を説明するフローチャートである。12 is a flowchart for explaining copy processing when the aspect ratios are different in the second embodiment. 操作者がコピー方法を選択するためのダイアログを説明する図である。It is a figure explaining the dialog for an operator to select a copy method. 第4の実施の形態における画像処理装置の画像の選択から画像をトリミングするまでの流れを示すフローチャートである。15 is a flowchart illustrating a flow from image selection to image trimming in the image processing apparatus according to the fourth embodiment. 第4の実施の形態における画像処理装置の画像選択の概要を示す図である。It is a figure which shows the outline | summary of the image selection of the image processing apparatus in 4th Embodiment. 第4の実施の形態におけるトリミング処理を行う画面の概要を示す図である。It is a figure which shows the outline | summary of the screen which performs the trimming process in 4th Embodiment. 第4の実施の形態におけるトリミング処理を示すフローチャートである。It is a flowchart which shows the trimming process in 4th Embodiment. 第5の実施の形態におけるトリミング処理を示すフローチャートである。It is a flowchart which shows the trimming process in 5th Embodiment.

符号の説明Explanation of symbols

101 CPU
102 キーボード
103 表示部
104 ROM
105 RAM
106 ハードディスク
107 フレキシブルディスク
108 プリンタ
101 CPU
102 Keyboard 103 Display 104 ROM
105 RAM
106 hard disk 107 flexible disk 108 printer

Claims (10)

少なくとも第1の画像と第2の画像を含む複数の画像に対して画像処理を行う画像処理装置であって、
前記第1の画像において選択範囲を設定する選択範囲設定手段と、
前記選択範囲設定手段により前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写する選択範囲複写手段とを有し、
前記選択範囲複写手段は、前記選択範囲設定手段により設定された選択範囲の移動機能、変倍機能、変形機能のうち、少なくとも1つの機能を有し、前記第1の画像及び第2の画像と、前記選択範囲の特徴情報に応じて、前記選択範囲の移動、選択範囲の変倍、選択範囲の変形のうち、少なくとも何れか1つの機能による処理を行って前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写することを特徴とする画像処理装置。
An image processing apparatus that performs image processing on a plurality of images including at least a first image and a second image,
Selection range setting means for setting a selection range in the first image;
Selection range copying means for copying the image of the selection range set in the first image by the selection range setting means to the second image;
The selection range copying unit has at least one of a selection range moving function, a scaling function, and a transformation function set by the selection range setting unit, and the first image and the second image In accordance with the feature information of the selection range, the first image is set by performing processing using at least one of the selection range movement, selection range scaling, and selection range transformation. An image processing apparatus for copying an image in a selection range onto the second image.
前記特徴情報とは、少なくとも縦・横の画素数または縦・横の画素数比(アスペクト比)を含むことを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the feature information includes at least a vertical / horizontal pixel number or a vertical / horizontal pixel number ratio (aspect ratio). 前記選択範囲複写手段は、複数の選択範囲の複写方法に関して、いずれを適用するかを指定する複写方法指定手段を備えることを特徴とする請求項1または2に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the selection range copying unit includes a copying method specifying unit that specifies which of a plurality of selection ranges is to be copied. 前記選択範囲複写手段は、複数の画像に対して一括して選択範囲の複写が可能なことを特徴とする請求項1〜3の何れか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the selection range copying unit is capable of copying the selection range for a plurality of images at once. 少なくとも第1の画像と第2の画像を含む複数の画像に対して画像処理を行う画像処理方法であって、
前記第1の画像において選択範囲を設定する選択範囲設定工程と、
前記選択範囲設定工程により前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写する選択範囲複写工程とを有し、
前記選択範囲複写工程は、前記選択範囲設定工程により設定された選択範囲の移動処理、変倍処理、変形処理のうち、少なくとも1つの処理を有し、前記第1の画像及び第2の画像と、前記選択範囲の特徴情報に応じて、前記選択範囲の移動、選択範囲の変倍、選択範囲の変形のうち、少なくとも何れか1つの処理を行って前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写することを特徴とする画像処理方法。
An image processing method for performing image processing on a plurality of images including at least a first image and a second image,
A selection range setting step of setting a selection range in the first image;
A selection range copying step of copying an image of the selection range set in the first image by the selection range setting step to the second image;
The selection range copying step includes at least one of a selection range moving process, a scaling process, and a deformation process set in the selection range setting step, and includes the first image and the second image. The selection range set in the first image by performing at least one of the movement of the selection range, scaling of the selection range, and deformation of the selection range according to the feature information of the selection range An image processing method, wherein the image is copied to the second image.
前記特徴情報とは、少なくとも縦・横の画素数または縦・横の画素数比(アスペクト比)を含むことを特徴とする請求項5に記載の画像処理方法。   6. The image processing method according to claim 5, wherein the feature information includes at least the number of vertical / horizontal pixels or a ratio of the number of vertical / horizontal pixels (aspect ratio). 前記選択範囲複写工程は、複数の選択範囲の複写方法に関して、いずれを適用するかを指定する複写方法指定工程を備えることを特徴とする請求項5または6に記載の画像処理方法。   The image processing method according to claim 5, wherein the selection range copying step includes a copying method specifying step for specifying which of a plurality of selection ranges is to be copied. 前記選択範囲複写工程は、複数の画像に対して一括して選択範囲の複写を行うことが可能なことを特徴とする請求項5〜7の何れか1項に記載の画像処理方法。   The image processing method according to claim 5, wherein the selection range copying step is capable of performing copying of the selection range for a plurality of images at once. 少なくとも第1の画像と第2の画像を含む複数の画像に対して画像処理を行う画像処理方法をコンピュータに実行させるプログラムであって、
前記第1の画像において選択範囲を設定する選択範囲設定工程と、
前記選択範囲設定工程により前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写する選択範囲複写工程とを有し、
前記選択範囲複写工程は、前記選択範囲設定工程により設定された選択範囲の移動処理、変倍処理、変形処理のうち、少なくとも1つの処理を有し、前記第1の画像及び第2の画像と、前記選択範囲の特徴情報に応じて、前記選択範囲の移動、選択範囲の変倍、選択範囲の変形のうち、少なくとも何れか1つの処理を行って前記第1の画像に設定された選択範囲の画像を前記第2の画像に複写する画像処理方法をコンピュータに実行させることを特徴とするコンピュータプログラム。
A program for causing a computer to execute an image processing method for performing image processing on a plurality of images including at least a first image and a second image,
A selection range setting step of setting a selection range in the first image;
A selection range copying step of copying an image of the selection range set in the first image by the selection range setting step to the second image;
The selection range copying step includes at least one of a selection range moving process, a scaling process, and a deformation process set in the selection range setting step, and includes the first image and the second image. The selection range set in the first image by performing at least one of the movement of the selection range, scaling of the selection range, and deformation of the selection range according to the feature information of the selection range A computer program for causing a computer to execute an image processing method for copying the image of the image to the second image.
前記請求項9に記載のコンピュータプログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。   10. A computer-readable recording medium on which the computer program according to claim 9 is recorded.
JP2004282176A 2004-09-28 2004-09-28 Image processor and processing method Pending JP2006100987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004282176A JP2006100987A (en) 2004-09-28 2004-09-28 Image processor and processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004282176A JP2006100987A (en) 2004-09-28 2004-09-28 Image processor and processing method

Publications (1)

Publication Number Publication Date
JP2006100987A true JP2006100987A (en) 2006-04-13

Family

ID=36240416

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004282176A Pending JP2006100987A (en) 2004-09-28 2004-09-28 Image processor and processing method

Country Status (1)

Country Link
JP (1) JP2006100987A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011114463A (en) * 2009-11-25 2011-06-09 Nikon Corp Image processing device, imaging device, and image processing program
JP2013258502A (en) * 2012-06-11 2013-12-26 Canon Inc Image processing apparatus, and control method and program of the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011114463A (en) * 2009-11-25 2011-06-09 Nikon Corp Image processing device, imaging device, and image processing program
JP2013258502A (en) * 2012-06-11 2013-12-26 Canon Inc Image processing apparatus, and control method and program of the same

Similar Documents

Publication Publication Date Title
EP1958056B1 (en) A method of tracking data objects using related thumbnails in a palette window
AU2006316858B2 (en) A method of tracking dual mode data objects using related thumbnails and tool icons in a palette window
US20100313126A1 (en) Method and apparatus for providing selection area for touch interface
US20120210263A1 (en) Directly assigning desktop backgrounds
JP2008033692A (en) Image processing device and its control method, and, computer program and computer readable storage medium
JP5981175B2 (en) Drawing display device and drawing display program
JP2006012038A (en) Information processor, image editing device, their control methods, computer program, and computer-readable storage medium therefor
JPH11327721A (en) Device and method for picture editing and storage medium
US20070040763A1 (en) Image display system
JP2006100987A (en) Image processor and processing method
JP2006106976A (en) Image processor, image processing method and program
JP2011228897A (en) Image processing program and image processing apparatus
JP2008118317A (en) Projection device
JP5020862B2 (en) Line drawing processing apparatus and program
JP2005084089A (en) Image comparison display method and its device, and image comparison display program
JP2006330848A (en) Image editing system, method, and program
JP2006106983A (en) Display device and display method
JP2000259135A (en) Device and method for displaying presentation data, and computer-readable recording medium recording presentation data display program
JP5292662B2 (en) Document display device, document display device control method, and program
JP2023021738A (en) Control device, control method, and program
JP6476985B2 (en) Display device, display system, and program
JP4159569B2 (en) Screen display method
CN115202543A (en) Book type navigation bar generation and switching method, device, equipment and storage medium
JP2006079160A (en) Digital apparatus, copy method, copy program, and storage medium storing it
JP2004213305A (en) Printing control system, information processor, printing control method, and program