JP2003087553A - Device and method for compositing images and program - Google Patents

Device and method for compositing images and program

Info

Publication number
JP2003087553A
JP2003087553A JP2001281606A JP2001281606A JP2003087553A JP 2003087553 A JP2003087553 A JP 2003087553A JP 2001281606 A JP2001281606 A JP 2001281606A JP 2001281606 A JP2001281606 A JP 2001281606A JP 2003087553 A JP2003087553 A JP 2003087553A
Authority
JP
Japan
Prior art keywords
image
images
zoom
enlarging
error
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.)
Granted
Application number
JP2001281606A
Other languages
Japanese (ja)
Other versions
JP3861641B2 (en
Inventor
Tatsuya Iijima
達也 飯島
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2001281606A priority Critical patent/JP3861641B2/en
Publication of JP2003087553A publication Critical patent/JP2003087553A/en
Application granted granted Critical
Publication of JP3861641B2 publication Critical patent/JP3861641B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image compositing device for obtaining an image equivalent to an image obtained by zooming during the exposure by segmenting a plurality of images with different magnification from one piece of image data and compositing the plurality of images. SOLUTION: In a recording mode, an image fetched by a CCD 1 is sent to a YUV processor 3 to be subjected to color process processing, and image data are sent to an image memory 4 via a memory controller 5. A through image is simultaneously displayed. If it is in a composite zoom photographing mode here, a plurality of images are prepared by zooming the image data obtained at the moment a shutter is pressed down and stored in the image memory 4 as an original image to a plurality of stages. A composite zoom image equivalent to an image obtained be zooming during the exposure is prepared by compositing the plurality of the images.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、銀塩カメラの撮影
方法の一つである露光間ズームと同等の効果を得た画像
を得ることができる画像合成装置、画像合成方法及びプ
ログラムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image synthesizing apparatus, an image synthesizing method, and a program capable of obtaining an image having an effect equivalent to that of zooming during exposure which is one of the photographing methods of a silver salt camera. is there.

【0002】[0002]

【従来の技術】従来、銀塩カメラの撮影方法に、シャッ
ターを開いた状態で光学ズームを行い流れるような光の
軌跡を得る露光間ズームがある。露光間ズームを行うに
は、銀塩カメラを三脚などで固定し、シャッタースピー
ドを長く設定し、シャッターが開いている間に光学ズー
ムを変化させて撮影する。
2. Description of the Related Art Conventionally, as a photographing method of a silver halide camera, there is an inter-exposure zoom which obtains a moving light path by performing optical zoom with a shutter open. To zoom between exposures, fix the silver-salt camera on a tripod, set the shutter speed longer, and change the optical zoom while the shutter is open to shoot.

【0003】また、電子撮像装置の一種として、デジタ
ルカメラが広く知られている。近年、デジタルカメラは
高画素化が進んでおり銀塩カメラに劣らないレベルの画
像が得られるようになってきている。デジタルカメラ
は、画像を撮影して保存する記録モードと、保存されて
いる画像を再生する再生モードといった機能を持ってい
る。このデジタルカメラの記録モードにおいて画像を撮
影する際に銀塩カメラと同じように光学ズームを用いて
同等の露光間ズームの効果を得ることができる。
A digital camera is widely known as a type of electronic image pickup device. In recent years, the number of pixels in digital cameras has been increasing, and it has become possible to obtain images at a level comparable to that of silver halide cameras. The digital camera has a function such as a recording mode in which an image is captured and stored and a reproduction mode in which the stored image is reproduced. When taking an image in the recording mode of this digital camera, the same optical zoom effect can be obtained by using the optical zoom as in the silver halide camera.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
銀塩カメラやデジタルカメラにおいて、露光間ズームを
行うには、シャッタースピードを長く設定せざるを得な
いためにカメラ本体を三脚にしっかり固定しなければな
らず、さらにその状態で光学ズームを変化させるといっ
た、非常に手間のかかる作業になり手軽に撮影すること
ができなかった。また、ズームレンズが無ければ銀塩カ
メラやデジタルカメラで露光間ズームを行うことは不可
能であった。
However, in the conventional silver halide camera or digital camera, in order to perform the zoom between exposures, the shutter speed must be set long, and therefore the camera body must be firmly fixed to the tripod. In addition, it was very time-consuming to change the optical zoom in that state, and it was not possible to shoot easily. Moreover, without a zoom lens, it was impossible to zoom between exposures with a silver halide camera or a digital camera.

【0005】本発明は、このような従来の課題に鑑てな
されたものであり、1枚の画像データに対して拡大率を
連続に変化させた拡大率の異なる複数の画像データを作
成し、それらを合成することにより露光間ズームと同等
の効果を得た画像を得る画像合成装置、画像合成方法及
びプログラムを提供することを目的とするものである。
The present invention has been made in view of such a conventional problem, and a plurality of image data having different enlargement ratios in which the enlargement ratio is continuously changed for one image data is created, An object of the present invention is to provide an image synthesizing apparatus, an image synthesizing method, and a program that obtain an image having the same effect as zooming during exposure by synthesizing them.

【0006】[0006]

【課題を解決するための手段】以上の課題を解決すべく
請求項1記載の発明は、一枚の画像を元画像として、こ
の元画像から異なる複数のサイズの画像を切り出す画像
切り出し手段と、前記画像切り出し手段により切り出し
た複数の画像を前記元画像と同じサイズにそれぞれ拡大
する画像拡大手段と、前記画像拡大手段により拡大され
た複数の画像を合成する画像合成手段とを備えることを
特徴としている。
In order to solve the above-mentioned problems, the invention according to claim 1 uses an image as an original image, and an image cutting-out means for cutting out images of different sizes from the original image, An image enlarging unit for enlarging each of the plurality of images cut out by the image cutting unit to the same size as the original image, and an image synthesizing unit for synthesizing the plurality of images enlarged by the image enlarging unit. There is.

【0007】以上のように、請求項1記載の発明によれ
ば、一枚の画像から複数の大きさの画像を切り出し、切
り出し前の画像と同じ大きさに拡大した後、これらの画
像を合成するようにしたので、手間をかけることなく光
学ズームを用いた露光間ズームと同等の画像を得ること
ができる。
As described above, according to the first aspect of the present invention, images of a plurality of sizes are cut out from one image, enlarged to the same size as the image before the cutout, and then these images are combined. Since this is done, it is possible to obtain an image equivalent to the inter-exposure zoom using the optical zoom without trouble.

【0008】そして、請求項2記載の発明は、被写体を
撮像する撮像手段と、前記撮像手段より発生した被写体
像を画像データとして記録する記録手段と、切り出すサ
イズの情報が記憶されている情報記録手段とを備えるこ
とを特徴としている。
According to a second aspect of the present invention, an image pickup means for picking up an image of a subject, a recording means for recording the image of the subject generated by the image pickup means as image data, and an information recording in which information of a cutout size is stored. And means.

【0009】このように、請求項2記載の発明によれ
ば、撮影した画像を記録し、切り出すサイズの情報に基
づき複数の画像を切り出すので、カメラ本体を三脚に固
定する必要がなくなり、手持ちの撮影において露光間ズ
ームと同等の効果を得られる。
As described above, according to the second aspect of the present invention, since the photographed image is recorded and a plurality of images are cut out based on the information of the size to be cut out, it is not necessary to fix the camera body on a tripod, and the handheld device The same effect as during-exposure zoom can be obtained in shooting.

【0010】また、請求項3記載の発明は、画像合成装
置における前記画像拡大手段は矩形拡大のアルゴリズム
に基づき行われ、拡大前の画像を構成する画素の中から
1画素を選択してその値を複製することを特徴としてい
る。
According to a third aspect of the present invention, the image enlarging means in the image synthesizing device is executed based on a rectangular enlarging algorithm, and one pixel is selected from the pixels forming the image before enlarging and the value is selected. Is characterized by replicating.

【0011】このように、請求項3記載の発明によれ
ば、簡単な整数演算のみで矩形の拡大を行える矩形拡大
のアルゴリズムを用いることにより、CPUに負担をか
けることなく、短い時間で画像の拡大、合成を行える。
As described above, according to the third aspect of the present invention, by using the rectangle enlargement algorithm which can enlarge the rectangle only by a simple integer operation, the image can be displayed in a short time without burdening the CPU. You can enlarge and combine.

【0012】また、請求項4記載の発明は、前記画像拡
大手段は矩形拡大のアルゴリズムに基づき行われ、拡大
前の画像を構成する複数の画素に重み付けを行い、その
値を複製することを特徴としている。
Further, the invention according to claim 4 is characterized in that the image enlarging means is carried out based on a rectangular enlarging algorithm, weights a plurality of pixels constituting an image before enlarging, and duplicates the value. I am trying.

【0013】このように、請求項4記載の発明によれ
ば、矩形拡大のアルゴリズムにおいて、複数の画素を重
み付けによって補間処理したことにより鮮明な画像を得
ることができる。
As described above, according to the fourth aspect of the invention, a sharp image can be obtained by performing interpolation processing on a plurality of pixels by weighting in the rectangular enlargement algorithm.

【0014】また、請求項5記載の発明は、前記元画像
は撮像素子から取り込まれているスルー画像であること
を特徴としている。
Further, the invention according to claim 5 is characterized in that the original image is a through image captured from an image pickup device.

【0015】このように、請求項5記載の発明によれ
ば、ユーザーは実際のズーム合成画像を見ながら撮影が
できる。
As described above, according to the fifth aspect of the invention, the user can shoot while viewing the actual zoom composite image.

【0016】また、請求項6記載の発明は、一枚の画像
を元画像として、この元画像から異なる複数のサイズの
画像を切り出す画像切り出し処理と、前記画像切り出し
手段により切り出した複数の画像を前記元画像と同じサ
イズにそれぞれ拡大する画像拡大処理と、前記画像拡大
処理により拡大された複数の画像を合成する画像合成処
理からなる画像合成方法を特徴としている。
Further, in the invention according to claim 6, an image cutting process for cutting out an image of a plurality of different sizes from the original image, and a plurality of images cut out by the image cutting means are used as an original image. The image synthesizing method is characterized by an image synthesizing process that enlarges the image to the same size as the original image and an image synthesizing process that synthesizes a plurality of images enlarged by the image enlarging process.

【0017】このように、請求項6記載の発明によれ
ば、一枚の画像から複数の大きさの画像を切り出し、切
り出し前の画像と同じ大きさに拡大した後、これらの画
像を合成する方法にしたので、手間をかけることなく光
学ズームを用いた露光間ズームと同等の画像を得ること
ができる。
As described above, according to the sixth aspect of the present invention, images of a plurality of sizes are cut out from one image, enlarged to the same size as the image before cutting, and then these images are combined. Since the method is adopted, it is possible to obtain an image equivalent to the zoom during exposure using the optical zoom without any trouble.

【0018】また、請求項7記載の発明は、一枚の画像
を元画像として、この元画像から異なる複数のサイズの
画像を切り出す画像切り出し手段と、前記画像切り出し
手段により切り出した複数の画像を前記元画像と同じサ
イズにそれぞれ拡大する画像拡大手段と、前記画像拡大
手段により拡大された複数の画像を合成する画像合成手
段を実現するための画像合成プログラムを特徴としてい
る。
Further, in the invention as set forth in claim 7, an image cutting means for cutting out an image of a plurality of different sizes from the original image and a plurality of images cut out by the image cutting means are used as an original image. It is characterized by an image synthesizing program for realizing an image synthesizing unit for enlarging each image to the same size as the original image and an image synthesizing unit for synthesizing a plurality of images enlarged by the image enlarging unit.

【0019】このように、請求項7記載の発明によれ
ば、一枚の画像から複数の大きさの画像を切り出し、切
り出し前の画像と同じ大きさに拡大した後、これらの画
像を合成するプログラムにしたので、手間をかけること
なく光学ズームを用いた露光間ズームと同等の画像を得
ることができる。
As described above, according to the seventh aspect of the present invention, images of a plurality of sizes are cut out from one image, enlarged to the same size as the image before cutting, and then these images are combined. Since the program is used, it is possible to obtain an image equivalent to the in-exposure zoom using the optical zoom without trouble.

【0020】[0020]

【発明の実施の形態】以下本発明の実施の一形態につい
て画像合成装置としてデジタルカメラ100を用いた場
合の実施の形態を図面を参照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention in which a digital camera 100 is used as an image synthesizing apparatus will be described below with reference to the drawings.

【0021】(第1の実施の形態)図1にデジタルカメ
ラ100のブロック図を示す。デジタルカメラ100
は、記録モードと再生モードがある。記録モードでは、
レンズ後方に配置されたCCD1によって取り込まれた
画像データがCCD1を制御しているCCD制御部2と
共に備わったA/D変換器(図示せず)でデジタルデー
タに変換され、YUVプロセッサ3に送られる。YUV
プロセッサ3でカラープロセス処理され、デジタルの輝
度、色差マルチプレクス信号(YUVデータ)とがメモ
リコントローラ5を介して画像メモリ4へと転送され
る。画像メモリ4はRAM等のメモリで構成される。
(First Embodiment) FIG. 1 shows a block diagram of a digital camera 100. Digital camera 100
Has a recording mode and a reproduction mode. In record mode,
Image data captured by the CCD 1 arranged behind the lens is converted into digital data by an A / D converter (not shown) provided together with the CCD control unit 2 controlling the CCD 1 and sent to the YUV processor 3. . YUV
Color processing is performed by the processor 3, and the digital luminance and color difference multiplex signals (YUV data) are transferred to the image memory 4 via the memory controller 5. The image memory 4 is composed of a memory such as a RAM.

【0022】同時に、スルー画像表示を行うためにYU
Vデータはメモリコントローラ5を介してビデオエンコ
ーダ6にも送られ、ビデオエンコーダ6はYUVデータ
を周期的に読み出し、これらのデータを元にビデオ信号
を発生してビデオ出力部7へ出力すると同時にビデオ信
号は表示部14にも出力される。表示部14は液晶表示
装置など構成される。これにより表示部14には、現在
のCCD1から取り込んでいる画像情報に基づく画像が
表示される。
At the same time, in order to display a through image, YU
The V data is also sent to the video encoder 6 via the memory controller 5, and the video encoder 6 periodically reads the YUV data, generates a video signal based on these data, outputs the video signal to the video output unit 7, and simultaneously outputs the video signal. The signal is also output to the display unit 14. The display unit 14 is composed of a liquid crystal display device or the like. As a result, an image based on the image information currently captured from the CCD 1 is displayed on the display unit 14.

【0023】このように表示部14に現在画像が表示さ
れている状態で、記録保存を行いたいタイミングでシャ
ッターキー12を操作すると、キー処理部11はシャッ
ターキー12の入力が処理され、CPU9は、現在のC
CD1から取り込んでいるYUVデータをメモリコント
ローラ5を介して画像メモリ4へ転送後、直ちにCCD
1からの画像メモリ4への経路を停止し、記録保存状態
に遷移する。この記録保存状態では、CPU9が画像メ
モリ4に書き込まれているYUVデータを圧縮処理し、
記録媒体10に書き込む。記録媒体10は不揮発性メモ
リであるフラッシュメモリなどである。不揮発性メモリ
は着脱可能のものでもよい。そして、YUVデータの圧
縮処理及びフラッシュメモリへの圧縮データの書き込み
終了に伴って、CPU9は再度CCD1から画像メモリ
4への経路を起動する。
When the shutter key 12 is operated at a timing at which recording and storage are desired while the image is currently displayed on the display unit 14 as described above, the key processing unit 11 processes the input of the shutter key 12 and the CPU 9 , Current C
Immediately after transferring the YUV data loaded from the CD 1 to the image memory 4 via the memory controller 5, the CCD
The path from 1 to the image memory 4 is stopped, and the state transits to the record storage state. In this recording and saving state, the CPU 9 compresses the YUV data written in the image memory 4,
Write to the recording medium 10. The recording medium 10 is a non-volatile memory such as a flash memory. The non-volatile memory may be removable. Then, when the compression processing of the YUV data and the writing of the compressed data to the flash memory are completed, the CPU 9 activates the path from the CCD 1 to the image memory 4 again.

【0024】再生モードでは、CPU9はCCD1から
画像メモリ4への経路を停止する。各種キー部13の操
作により記録されている画像から選択をすると、キー処
理部11は入力処理をし、CPU9がフラッシュメモリ
から圧縮データを読み出して、伸長処理を行い、画像メ
モリ4にYUVデータを展開する。すると、ビデオエン
コーダ6は、YUVデータを元にビデオ信号を発生し、
ビデオ出力部7へ出力すると共に表示部14にも出力し
表示を行う。
In the reproduction mode, the CPU 9 stops the path from the CCD 1 to the image memory 4. When selecting from the images recorded by operating the various key units 13, the key processing unit 11 performs an input process, the CPU 9 reads the compressed data from the flash memory, performs the decompression process, and stores the YUV data in the image memory 4. expand. Then, the video encoder 6 generates a video signal based on the YUV data,
The video is output to the video output unit 7 and also output to the display unit 14 for display.

【0025】データ通信部8は撮影され記録された画像
や既に記録媒体10に記録されている画像を外部機器
へ、例えばパソコン等へ送信又は外部機器からの画像の
受信を行う。通信は無線でも有線(USBなど)でもど
ちらでも良い。
The data communication unit 8 transmits an image photographed and recorded or an image already recorded on the recording medium 10 to an external device, such as a personal computer, or receives an image from the external device. The communication may be wireless or wired (USB or the like).

【0026】各種キー部13の操作において、露光間ズ
ームと同等の画像を得るモード、つまりズーム合成撮影
モードになっていると、まず画像メモリ4に格納された
シャッターキー12が押された瞬間の画像データを元画
像として複数段階にズームした複数の画像を作成する。
そしてこれらの画像を合成することにより露光間ズーム
によって得られる画像と同等のズーム合成画像を作成す
る。合成された画像はビデオエンコーダ6を通してビデ
オ出力部7へ出力されると共に表示部14にも出力し、
記録媒体10にも記録される。また、元画像はCCD1
から取り込まれた画像だけでなく、既に記録媒体10に
記録された画像や、データ通信部8を通して送られてき
た画像でもよく、それらの画像に対してもズーム合成画
像を作成することができる。
In the operation of the various key portions 13, when the mode is the one for obtaining an image equivalent to the zoom during exposure, that is, the zoom composite photographing mode, first, at the moment when the shutter key 12 stored in the image memory 4 is pressed. A plurality of images that are zoomed in a plurality of steps are created using the image data as the original image.
Then, by combining these images, a zoom composite image equivalent to the image obtained by the zoom during exposure is created. The combined image is output to the video output unit 7 through the video encoder 6 and also to the display unit 14,
It is also recorded on the recording medium 10. The original image is CCD1
In addition to the image captured from the image, an image already recorded on the recording medium 10 or an image sent through the data communication unit 8 may be used, and a zoom composite image can be created for these images.

【0027】図2にズーム合成の原理を示す。画像12
はCCD1から取り込んだ元画像である。画像13は元
画像の一部分を拡大処理した1段階ズームアップの画像
である。画像14は1段階ズームアップの画像を拡大処
理した2段階ズームアップの画像である。画像15は2
段階ズームアップの画像を拡大処理した3段階ズームア
ップの画像である。これらを画像合成すると画像16の
ようなズーム合成画像を得ることができる。画像16で
滑らかなズーム合成画像を得るためには画像12〜画像
15のズームアップ画像の各ズーム比を飛び飛びの値を
取ることなく、できるだけ細かく変化するような値を取
る必要がある。
FIG. 2 shows the principle of zoom composition. Image 12
Is the original image captured from CCD 1. The image 13 is a one-step zoom-up image obtained by enlarging a part of the original image. The image 14 is a two-step zoom-up image obtained by enlarging the one-step zoom-up image. Image 15 is 2
It is a 3-step zoom-up image obtained by enlarging a step-zoom image. By combining these images, a zoom combined image like the image 16 can be obtained. In order to obtain a smooth zoom composite image in the image 16, it is necessary to set the zoom ratios of the zoomed-up images of the images 12 to 15 so as to change as finely as possible without taking discrete values.

【0028】次に滑らかなズーム比を得るためのズーム
合成に必要なアルゴリズムとなる矩形拡大アルゴリズム
について図3(A)〜図5(B)で説明する。図3
(A)及び図3(B)はズーム合成に必要な矩形拡大ア
ルゴリズムの基礎となる線分発生アルゴリズムである。
線分発生アルゴリズムは(X0,Y0)から(XN,Y
N)に線分を引く場合に線分を構成するドットをどの座
標に置くかを決めるものである。
Next, a rectangle enlargement algorithm which is an algorithm required for zoom composition for obtaining a smooth zoom ratio will be described with reference to FIGS. 3 (A) to 5 (B). Figure 3
FIG. 3A and FIG. 3B are line segment generation algorithms that are the basis of the rectangle enlargement algorithm required for zoom composition.
The line segment generation algorithm is from (X0, Y0) to (XN, Y
When drawing a line segment in N), it is determined at which coordinate the dots forming the line segment are placed.

【0029】図3(A)に示すように理想的な直線は
(X0,Y0)と(XN,YN)を単純に結んだ直線で
あるが、デジタル画像においては点を配置できる座標は
無限には存在しないので、理想的な直線に最も近い座標
上に点を配置していく。始点は(X0,Y0)である
が、ここは元々座標が存在するのでX0の時のY座標は
Y0になる。以下、Xが1増える毎に理想的な直線でY
は(YN−Y0)/(XN−X0)ずつ増えることにな
る。X1の時のY座標は理想的にはY0+(YN−Y
0)/(XN−X0)であるが図3(A)の×印で示す
ように最も近いY1が選択される。次にX0=0、XN
=16、Y0=0、YN=10として座標が決定される
様子を示す。Xが1増えたときのYの増加分は(YN−
Y0)/(XN−X0)=10/16=0.625とな
る。また、(X0,Y0)においてY座標からの誤差
(Yの誤差)0である。X1の時のYの誤差は、0+
0.625=0.625である。Yの誤差が0.5より
も大きいか否かによってY座標が決定される。この場合
0.5よりも大きいのでY座標は1増えて1(Y1)に
なる。Y座標が1増えたので、この時Yの誤差から1を
減算しておくことによりYの誤差は0.625−1=−
0.375になる。X2の時のYの誤差は、−0.37
5+0.625=0.25になる。Yの誤差は0.5以
下なのでY座標は1(Y1)のままである。Yの誤差も
そのままになる。以下同様に、Yの誤差に0.625を
加算して0.5より大きいか否かを判別していくと、図
3(A)で示すような直線(×印)が得られる。
As shown in FIG. 3A, the ideal straight line is a straight line that simply connects (X0, Y0) and (XN, YN), but in the digital image, the coordinates where points can be arranged are infinite. Does not exist, so place points on the coordinates closest to the ideal straight line. The starting point is (X0, Y0), but since the coordinates originally exist here, the Y coordinate at X0 becomes Y0. Hereafter, each time X increases by 1, an ideal straight line Y
Will increase by (YN-Y0) / (XN-X0). Ideally, the Y coordinate when X1 is Y0 + (YN-Y
0) / (XN-X0), but the closest Y1 is selected as indicated by the cross mark in FIG. Next X0 = 0, XN
= 16, Y0 = 0, YN = 10, showing how the coordinates are determined. When X increases by 1, the amount of increase in Y is (YN-
Y0) / (XN-X0) = 10/16 = 0.625. Further, at (X0, Y0), the error from the Y coordinate (Y error) is 0. The error of Y when X1 is 0+
0.625 = 0.625. The Y coordinate is determined by whether the Y error is greater than 0.5. In this case, since it is larger than 0.5, the Y coordinate is incremented by 1 and becomes 1 (Y1). Since the Y coordinate has increased by 1, the Y error is 0.625-1 = − by subtracting 1 from the Y error at this time.
It becomes 0.375. The error of Y when X2 is -0.37
5 + 0.625 = 0.25. Since the error of Y is 0.5 or less, the Y coordinate remains 1 (Y1). The Y error remains the same. Similarly, if 0.625 is added to the error of Y and it is determined whether or not it is larger than 0.5, a straight line (marked with X) as shown in FIG. 3A is obtained.

【0030】図3(B)のフローチャートは、上記で説
明した動作をコンピュータで処理しやすくするために整
数演算のみで実現したものである。上記での説明では、
Yの誤差の初期値を0として、Yの増加分を加えたとき
に0.5より大きいか否かを判別していたが、まず誤差
の初期値を−0.5にして、Yの増加分を加えたときに
0より大きいか否かによって判別するようにした。ΔY
=YN−Y0、ΔX=XN−X0とすると、誤差の初期
値は−0.5で誤差はEi+1=E+ΔY/ΔX>0
で判別する。(この条件を満たしていればEi+1=E
−1)次に誤差の判別を誤差を2ΔX倍したもので行
うように変更する。すると、誤差の初期値は−ΔXにな
り誤差はEi+1*2ΔX=E*2ΔX+2ΔY>0
で判別することになる。(この条件を満たしていればE
i+1=E−2ΔX)
The flow chart of FIG. 3B is realized by only integer arithmetic in order to facilitate the processing of the above-described operation by a computer. In the above description,
The initial value of the error of Y was set to 0, and it was determined whether or not it was larger than 0.5 when the increment of Y was added. First, the initial value of the error was set to -0.5, and the increase of Y was increased. It was determined whether or not it was greater than 0 when the minutes were added. ΔY
= YN−Y0 and ΔX = XN−X0, the initial value of the error is −0.5 and the error is E i + 1 = E i + ΔY / ΔX> 0.
Determine with. (If this condition is satisfied, E i + 1 = E
i −1) Next, change the error to be performed by multiplying the error by 2ΔX. Then, the initial value of the error is −ΔX, and the error is E i + 1 * 2ΔX = E i * 2ΔX + 2ΔY> 0.
Will be determined by. (E if this condition is met
i + 1 = E i −2ΔX)

【0031】以上のアルゴリズムの動作を図3(B)の
フローチャートに沿って説明する。まず、Xの初期座標
をX0、Yの初期座標をY0に設定する(S1)。次に
誤差Eの初期値を−ΔX=−(XN−X0)に設定する
(S2)。座標(X,Y)に点を描き(S3)、誤差E
に2ΔY=2(YN−Y0)を加算し(S4)、誤差E
が0よりも大きいか否かを判別し、誤差Eが0以下の場
合はそのまま抜け、誤差Eが0よりも大きければ(S
5)誤差Eから2ΔXを減算し(S6)、Y座標をイン
クリメントする(S7)。次にX座標をインクリメント
する(S8)。X座標がXNを超えるまで(S9)上記
の処理を繰り返す。
The operation of the above algorithm will be described with reference to the flowchart of FIG. First, the initial coordinate of X is set to X0 and the initial coordinate of Y is set to Y0 (S1). Next, the initial value of the error E is set to -ΔX =-(XN-X0) (S2). Draw a point on the coordinates (X, Y) (S3), error E
2ΔY = 2 (YN−Y0) is added to (S4), and the error E
Is determined to be greater than 0. If the error E is 0 or less, the process is skipped. If the error E is greater than 0, (S
5) 2ΔX is subtracted from the error E (S6), and the Y coordinate is incremented (S7). Next, the X coordinate is incremented (S8). The above process is repeated until the X coordinate exceeds XN (S9).

【0032】図4(A)〜図4(C)には図3(A)及
び図3(B)に示した線分発生アルゴリズムを用いて線
分を伸張することができる線分伸張アルゴリズムを示
す。図4(A)に示すようにS0からSNのドットから
なる線分SをD0からDNのドットからなる線分Dに伸
張する。その原理は、図3(A)のX座標を伸張先の線
分D、Y座標を元の線分Sに置き換えればよい(図4
(B))。
4 (A) to 4 (C) show a line segment expansion algorithm capable of expanding a line segment using the line segment generation algorithm shown in FIGS. 3 (A) and 3 (B). Show. As shown in FIG. 4A, a line segment S composed of dots S0 to SN is extended to a line segment D composed of dots D0 to DN. The principle is to replace the X coordinate of FIG. 3 (A) with the decompression destination line segment D and the Y coordinate with the original line segment S (FIG. 4).
(B)).

【0033】線分伸張アルゴリズムを図4(C)のフロ
ーチャートに沿って説明する。まず、伸張先の線分Dの
初期画素をD0、伸張元の線分Sの初期画素をS0に設
定する(S10)。線分Sの誤差Eの初期値を−ΔD=
(DN−D0)に設定する(S11)。線分Sのドット
S(初期状態はS0。)を線分DのドットD(初期状態
はD0。)にコピーする(S12)。誤差Eに2ΔS=
2(SN−S0)を加算して(S13)、誤差Eが0よ
りも大きいか否かを判別し、誤差Eが0以下ならばその
まま抜け、誤差Eが0よりも大きければ(S14)誤差
Eから2ΔDを減算し(S15)同時に伸張元の線分S
のドットをインクリメント(次のドットを選択。)する
(S16)。次に伸張元のDのドットをインクリメント
(次のドットを選択。)する(S17)。Dのドットが
DNを超えるまで(S18)、全てのドットの処理が終
了するまで上記の処理を繰り返す。
The line segment expansion algorithm will be described with reference to the flowchart of FIG. First, the initial pixel of the decompression destination line segment D is set to D0, and the initial pixel of the decompression source line segment S is set to S0 (S10). The initial value of the error E of the line segment S is -ΔD =
It is set to (DN-D0) (S11). Dot S of line segment S (initial state is S0.) Is copied to dot D of line segment D (initial state is D0.) (S12). The error E is 2ΔS =
2 (SN-S0) is added (S13) to determine whether the error E is larger than 0. If the error E is 0 or less, it is skipped. If the error E is larger than 0 (S14), the error is generated. 2ΔD is subtracted from E (S15), and at the same time, the line segment S of the extension source
Is incremented (the next dot is selected) (S16). Next, the D dot of the extension source is incremented (the next dot is selected) (S17). The above processing is repeated until the dots of D exceed DN (S18) until the processing of all the dots is completed.

【0034】図5(A)及び図5(B)に図4(A)〜
図4(C)で示した線分伸張アルゴリズムを応用して2
次元に拡張すると矩形の拡大ができる矩形拡大アルゴリ
ズムを示す。図5(A)に示すように横XS0〜XS
N、縦YS0〜YSNからなる矩形Sを横XD0〜XD
N、縦YD0〜YDNからなる矩形Dに拡大する。
FIGS. 4A to 4 are shown in FIGS. 5A and 5B.
Applying the line segment expansion algorithm shown in FIG.
We show a rectangle enlargement algorithm that can enlarge a rectangle by expanding it to dimensions. As shown in FIG. 5A, horizontal XS0 to XS
A rectangle S consisting of N and vertical YS0 to YSN is set to horizontal XD0 to XD
Enlarge to a rectangle D consisting of N and vertical YD0 to YDN.

【0035】縦方向ではラインYS0〜YSNをライン
YD0〜YDNに水増しするために図4(A)〜図4
(C)で示した線分伸張アルゴリズムを使う。ラインY
D0にはラインYS0が、ラインYD1とラインYD2
にはラインYS1がコピーされる。ラインが決定すると
ライン内のドットは図4(A)〜図4(C)示した線分
伸張アルゴリズムを用いて伸張できる。
In order to inflate the lines YS0 to YSN to the lines YD0 to YDN in the vertical direction, FIGS.
The line segment expansion algorithm shown in (C) is used. Line Y
The line YS0 is on D0, and the lines YD1 and YD2 are
The line YS1 is copied to. When the line is determined, the dots in the line can be expanded using the line segment expansion algorithm shown in FIGS. 4 (A) to 4 (C).

【0036】上記に示す矩形拡大アルゴリズムを図5
(B)のフローチャートで説明する。網掛け以外の部分
(S19、S20、S30〜S35)がラインを水増し
する処理であり、網掛け部分(S21〜S29)がライ
ン内のドットを伸張する処理である。まず、ラインを水
増しするために矩形Sの初期ラインをYS0、矩形Dの
初期ラインをYD0に設定する(S19)。ラインを水
増しするための誤差EYの初期値を−ΔYD=−(YD
N−YD0)に設定する(S20)。この後にライン内
のドットの伸張を行う(網掛け部分。)。この網掛け部
分(S21〜S29)は図4(C)で説明したフローチ
ャートS10〜S18に相当し同じであるため説明は省
略する。次に誤差EYに2ΔYS=2(YSN−YS
0)を加算する(S30)。誤差EYが0よりも大きい
か否かを判別し、誤差EYが0以下ならばそのまま抜
け、誤差EYが0よりも大きければ(S31)誤差EY
から2ΔYDを減算し(S32)、同時に転送元のライ
ンYSをインクリメント(次のラインを選択。)する
(S33)。次に転送先のラインYDのをインクリメン
ト(次のラインを選択。)する(S34)。YDのライ
ンがYDNを超えるまで(S35)、全てのラインの処
理が終了するまで上記の処理を繰り返す。
The rectangle enlarging algorithm shown above is shown in FIG.
This will be described with reference to the flowchart of (B). The portions other than the shaded areas (S19, S20, S30 to S35) are the processing for padding the line, and the shaded portions (S21 to S29) are the processing for extending the dots in the line. First, in order to pad the lines, the initial line of the rectangle S is set to YS0 and the initial line of the rectangle D is set to YD0 (S19). The initial value of the error EY for padding the line is -ΔYD =-(YD
(N-YD0) (S20). After this, the dots in the line are expanded (hatched portion). The shaded portions (S21 to S29) correspond to the flowcharts S10 to S18 described with reference to FIG. Next, for the error EY, 2ΔYS = 2 (YSN-YS
0) is added (S30). It is determined whether or not the error EY is greater than 0. If the error EY is 0 or less, the process is skipped. If the error EY is greater than 0 (S31), the error EY is determined.
Is subtracted from 2ΔYD (S32), and at the same time, the transfer source line YS is incremented (the next line is selected) (S33). Next, the transfer destination line YD is incremented (the next line is selected) (S34). The above process is repeated until the line of YD exceeds YDN (S35) and the process of all lines is completed.

【0037】この矩形拡大アルゴリズムを用いれば、任
意の大きさの矩形を任意の大きさの矩形に拡大すること
ができるため、元画像に対してズーム比が細かく変化す
る複数の画像を用意することができる。また、簡単な整
数演算のみで矩形の拡大を行うことができるのでCPU
9に負担をかけることなく、短い時間でズーム合成画像
を得ることができる。
By using this rectangle enlargement algorithm, it is possible to enlarge a rectangle of any size to a rectangle of any size. Therefore, prepare a plurality of images in which the zoom ratio changes minutely with respect to the original image. You can In addition, the rectangle can be expanded only by a simple integer operation.
It is possible to obtain a zoom composite image in a short time without imposing a burden on 9.

【0038】次に、図6(A)に複数のサイズの画像を
切り出すための切り出し画像の情報テーブルを示す。ズ
ーム比を連続して変化させる場合に切り出す元画像の左
上の座標と画像サイズをまとめたテーブルである。図6
(A)では元画像の大きさは1280×960である。
元画像を1段階ズームアップするときに切り出す画像の
左上座標は(4,3)であり、画像サイズは1272×
954である。また、2段階ズームアップするときは切
り出す画像の左上座標は(8,6)である。同様に複数
段階のズームアップに対する左上座標と画像サイズがテ
ーブルになっている。切り出した各画像は図5(A)及
び図5(B)で示した矩形拡大アルゴリズムによってそ
れぞれ1280×960の画像に拡大される。
Next, FIG. 6A shows a cut-out image information table for cutting out images of a plurality of sizes. It is a table that summarizes the upper left coordinates and the image size of the original image that is cut out when the zoom ratio is continuously changed. Figure 6
In (A), the size of the original image is 1280 × 960.
The upper left coordinates of the image cut out when the original image is zoomed up by one step are (4, 3), and the image size is 1272 ×
954. Further, when zooming up in two steps, the upper left coordinates of the image to be cut out are (8, 6). Similarly, the upper left coordinates and image sizes for a plurality of stages of zoom-up are in a table. The cut-out images are enlarged to 1280 × 960 images by the rectangle enlargement algorithm shown in FIGS. 5A and 5B.

【0039】図6(B)には切り出した画像の矩形拡大
されたイメージを示す。切り出した画像の左上座標は
(320,240)で画像サイズが640×480であ
る場合、矩形拡大アルゴリズムによって1280×96
0の画像に拡大された場合を示す。
FIG. 6B shows an image obtained by enlarging a rectangle of the cut out image. If the upper left coordinates of the clipped image are (320, 240) and the image size is 640 × 480, then 1280 × 96 is obtained by the rectangle enlargement algorithm.
The case where the image is enlarged to 0 is shown.

【0040】図6(B)に示すように画像の中心をズー
ムアップして複数のズーム画像を得ていたが、画像の中
心から任意の方向に一定間隔でズームアップの中心を移
動させながらズーム画像を得ることも可能である。ま
た、元画像から複数のズーム画像を作成していたが、前
回切り出して矩形拡大した画像からズーム画像を作成し
ても良い。この場合切り出し画像の左上の座標と画像サ
イズを一定にすることができるので、図6(A)に示す
ような切り出し画像の情報テーブルが不必要になる。
As shown in FIG. 6B, the center of the image is zoomed up to obtain a plurality of zoomed images. However, the zooming center is zoomed while moving the zoom-up center in any direction from the center of the image. It is also possible to obtain an image. Further, although a plurality of zoom images are created from the original image, a zoom image may be created from an image that was previously cut out and rectangularly enlarged. In this case, since the upper left coordinates and the image size of the cutout image can be made constant, the information table of the cutout image as shown in FIG. 6A becomes unnecessary.

【0041】さらに、滑らかなズーム合成画像を得るた
めに切り出し画像の情報テーブルの切り出し画像サイズ
を細かく設定していたが、切り出し画像サイズを粗く設
定することにより、光学ズームでは得ることのできない
全く新しいズーム合成画像を得ることができる。
Further, the cut-out image size of the cut-out image information table is set finely in order to obtain a smooth zoom composite image, but by setting the cut-out image size roughly, it is possible to obtain a completely new image which cannot be obtained by the optical zoom. A zoom composite image can be obtained.

【0042】図7には拡大された画像の合成方法を説明
する。画像データはRGB3つの成分を持っており複数
の画素から構成され、RGBの各成分毎に0〜255の
値(8bit)を持っている。図7ではRGB成分の
内、1つの成分の合成について説明する。画像17と画
像18は合成の対象となる、ある成分の画像であり、画
像19は合成後のある成分の画像である。左上の画素に
着目すると、画像17は11で画像18は8であり、単
純に加算すると画像19では19になる。その右隣の画
素では画像17は9で画像18は7であり、単純に加算
すると画像19では16になる。図7にはないが、加算
した結果が255を超えた場合は255以上の値は削り
255にする。RGBの各成分についても同様に合成す
ることが可能である。
A method of synthesizing enlarged images will be described with reference to FIG. The image data has three RGB components and is composed of a plurality of pixels, and each RGB component has a value of 0 to 255 (8 bits). In FIG. 7, the synthesis of one of the RGB components will be described. The images 17 and 18 are images of a certain component to be combined, and the image 19 is an image of a certain component after combination. Focusing on the upper left pixel, the image 17 is 11 and the image 18 is 8, and when simply added, the image 19 becomes 19. In the pixel on the right of the image 17, the image 17 is 9 and the image 18 is 7, and when simply added, the image 19 is 16. Although not shown in FIG. 7, if the added result exceeds 255, the value of 255 or more is deleted. The respective RGB components can be similarly synthesized.

【0043】図8にズーム合成処理のフローチャートを
示す。フローチャートにはないが、最初に目的のズーム
アップの大きさを各種キー部13により×5、×10、
×20というように指定しておく。ズーム合成撮影モー
ドでシャッターキー12が押されて撮影が行われたとき
は、まずCCD1から取り込んだ画像を画像メモリ4の
一部を元画像バッファとして使用し、そこに格納する
(S36)。元画像バッファにはズーム合成処理中に、
撮影が行われると、CCD1から取り込んだ画像が常に
格納される。これらの画像を元画像として複数のズーム
画像を作成する。同時に画像メモリ4の一部を合成画像
バッファとして使用し合成画像バッファにも取り込んだ
画像を格納する(初期画像の設定)(S37)。合成画
像バッファは、ズーム合成処理中に前回のズーム比まで
の合成画像が格納されていて、新たなズーム比の画像が
作成される度に合成画像バッファの画像に合成されてい
く。合成画像バッファに初期画像の設定が終わると、図
6(A)で説明したテーブルに従って、元画像バッファ
の画像を切り出す(S38)。切り出した画像は、矩形
拡大処理を行って元画像と同じサイズに拡大する(S3
9)。矩形拡大した画像は、合成画像バッファの画像と
合成され、再び合成画像バッファに格納される(S4
0)。目的の大きさまでのズームアップが完了するまで
S38からの処理を繰り返し行う(S41)。目的の大
きさまでのズームアップが完了したらその画像はズーム
合成画像として記録媒体10に保存する。
FIG. 8 shows a flowchart of the zoom composition process. Although not shown in the flowchart, first, the desired zoom-up size is set to x5, x10,
Designate as × 20. When the shutter key 12 is pressed in the zoom composite photographing mode and photographing is performed, an image captured from the CCD 1 is first used by using a part of the image memory 4 as an original image buffer and stored therein (S36). In the original image buffer, during zoom composition processing,
When shooting is performed, the image captured from the CCD 1 is always stored. A plurality of zoom images are created using these images as original images. At the same time, a part of the image memory 4 is used as a composite image buffer, and the captured image is also stored in the composite image buffer (setting of initial image) (S37). The composite image buffer stores composite images up to the previous zoom ratio during zoom combining processing, and the composite image buffer is composed with the image in the composite image buffer every time an image with a new zoom ratio is created. When the initial image is set in the composite image buffer, the image in the original image buffer is cut out according to the table described in FIG. 6A (S38). The cut-out image is subjected to rectangular enlargement processing to enlarge it to the same size as the original image (S3).
9). The rectangularly enlarged image is combined with the image in the combined image buffer and stored again in the combined image buffer (S4).
0). The processing from S38 is repeated until the zoom up to the target size is completed (S41). When the zoom up to the target size is completed, the image is stored in the recording medium 10 as a zoom composite image.

【0044】以上のように撮影した1枚の元画像から連
続的に大きさの変化する複数の矩形を切り出し、切り出
した複数の矩形を元画像と同じ大きさに矩形拡大した
後、これらの合成画像を得るようにしたので、簡単に光
学ズームを用いた露光間ズームで撮影した画像と同等の
画像を得ることが可能である。また、1枚普通に撮影す
ればいいので光学ズームを用いるときのようにカメラを
三脚で固定する必要がなく、カメラを手で持って撮影す
ることができる。
A plurality of rectangles of continuously changing size are cut out from one original image photographed as described above, the plurality of cut out rectangles are enlarged to the same size as the original image, and then these are combined. Since the image is obtained, it is possible to easily obtain an image equivalent to the image taken by the inter-exposure zoom using the optical zoom. Also, since it is sufficient to take one image normally, it is not necessary to fix the camera on a tripod as in the case of using the optical zoom, and the camera can be held by hand and taken.

【0045】(第2の実施の形態)今まで説明したズー
ム合成処理の矩形拡大アルゴリズムは、拡大後の画像を
構成する任意の画素は拡大前の画像を構成する画素の中
から理想位置に最も近い1画素を選択してその値をその
ままコピーする方法を用いた。次に、拡大後の画像を構
成する任意の画素は、拡大前の画像を構成する理想位置
周辺の複数の画素に重み付けを行った後、その値をコピ
ーする方法について説明する。図9(A)〜図10
(B)において、重み付けを用いた矩形拡大アルゴリズ
ムを示す。なお、ズーム合成処理での矩形拡大アルゴリ
ズム以外のデジタルカメラ100の動作及び切り出し画
像の情報テーブル、ズーム合成処理等はすでに説明した
第1の実施の形態と同じなので説明は省略する。
(Second Embodiment) In the rectangular enlargement algorithm of the zoom composition process described so far, an arbitrary pixel forming the image after enlargement is located at the ideal position among the pixels forming the image before enlargement. A method of selecting one pixel close to the pixel and copying the value as it is was used. Next, a method will be described in which, as for any pixel forming the image after enlargement, a plurality of pixels around the ideal position forming the image before enlargement are weighted and then the value is copied. 9A to 10
In (B), a rectangle enlargement algorithm using weighting is shown. The operation of the digital camera 100 other than the rectangular enlargement algorithm in the zoom combining process, the information table of the cut-out image, the zoom combining process, and the like are the same as those in the first embodiment already described, and thus the description thereof is omitted.

【0046】図9(A)〜図9(C)は重み付けを用い
た線分伸張アルゴリズムである。図9(A)に示すよう
にS0からSNの(n+1)ドットからなる線分Sを、
重み付けを用いてD0からDMの(m+1)ドットから
なる線分Dに伸張する。図9(B)に示すように、まず
線分Dの始点D0には線分Sの始点S0がそのままコピ
ーされる。次に線分DがD0からD1に1増えると、理
想的な線分Sの画素はS0(△印)とS1(▽印)の間
のS0からn/mの位置(○印)になる。しかし、実際
にはこの位置に画素は存在しないので画素S1と画素S
2の値から算出する。S0からn/mの位置でS1から
(m−n)/mの位置になるので、画素D1の値はD1
=S0*(m−n)/m+S1*n/mの式で求められ
る。
9A to 9C show a line segment expansion algorithm using weighting. As shown in FIG. 9A, a line segment S composed of (n + 1) dots from S0 to SN is
The weighting is used to expand from D0 to a line segment D consisting of DM (m + 1) dots. As shown in FIG. 9B, first, the starting point S0 of the line segment S is directly copied to the starting point D0 of the line segment D. Next, when the line segment D increases by 1 from D0 to D1, the pixel of the ideal line segment S becomes a position (circle mark) from S0 between S0 (Δ mark) and S1 (▽ mark) to n / m. . However, since no pixel actually exists at this position, pixel S1 and pixel S
It is calculated from the value of 2. Since the position is n / m from S0 and is (m−n) / m from S1, the value of the pixel D1 is D1.
= S0 * (m−n) / m + S1 * n / m.

【0047】さらに、線分DがD1からD2に1増える
と、理想的な線分Sの画素はS0から2*n/mの位置
にあることになる。このとき図9(B)で示すように2
*n/mが1以上のときには、補間に使われる線分Sの
画素はS1(△印)とS2(▽印)になり、理想的な線
分Sの画素はS1から(2*n/m)−1の位置(○
印)にあると言える。画素D2の値はD2=S1*2
(m−n)/m+S2*(2n−m)/mの式で求めら
れる。
Further, when the line segment D is increased by 1 from D1 to D2, the pixel of the ideal line segment S is located at a position of 2 * n / m from S0. At this time, as shown in FIG.
When * n / m is 1 or more, pixels of the line segment S used for interpolation are S1 (marked with Δ) and S2 (marked with ▽), and ideal pixels of the line segment S are from S1 to (2 * n / m) -1 position (○
It can be said that it is in (). The value of pixel D2 is D2 = S1 * 2
It is calculated by the formula of (m−n) / m + S2 * (2n−m) / m.

【0048】これらを一般式で表すと、補間に使われる
線分Sの画素をS(△印)、S´(▽印)とすれば画素
S(△印)と理想位置(○印)との誤差は、誤差の初期
値は0で誤差はEi+1=E+n/m≧1で判別す
る。(この条件を満たしていればEi+1=E−1)
i+1=E+n/m≧1を満たしていれば、Eから
1を減算すると共に補間に使われる画素S、S´を更新
する。また、S(△印)とS´(▽印)から画素Dの値
はD=S*(1−E)+S´*Eとなる。
When these are expressed by general formulas, if the pixels of the line segment S used for interpolation are S (Δ mark) and S ′ (∇ mark), the pixel S (Δ mark) and the ideal position (◯ mark) are obtained. The initial value of the error is 0, and the error is determined by E i + 1 = E i + n / m ≧ 1. (If this condition is satisfied, E i + 1 = E i −1)
If E i + 1 = E i + n / m ≧ 1 is satisfied, 1 is subtracted from E and the pixels S and S ′ used for interpolation are updated. Further, the value of the pixel D is S = (S * (1-E) + S '* E) from S (Δ mark) and S ′ (∇ mark).

【0049】図9(C)のフローチャートは、上記で説
明した動作をコンピュータで処理しやすくするために、
誤差の判別の部分を整数演算で実現したものである。上
記での説明では、誤差の初期値を0として、n/mを加
えたときに1以上か否かを判別していたが、まず誤差の
初期値を−1にして、n/mを加えたときに0以上か否
かによって判別するようにした。誤差の初期値は−1で
誤差はEi+1=E+n/m≧0で判別する。(この
条件を満たしていればEi+1=E−1)そしてD=
S*(−E)+S´*(E+1)となる。次に誤差の判
別を誤差をm倍したもので行うように変更する。する
と、誤差の初期値は−mになり誤差はE +1*m=E
*m+n≧0で判別することになる。(この条件を満
たしていればEi+1=E−m)そしてD=S*(−
E)/m+S´*(E+m)/mとなる。
In order to make the above-described operation easy for the computer to process, the flowchart of FIG.
The error discrimination part is realized by integer arithmetic. In the above description, the initial value of the error is set to 0, and it is determined whether or not it is 1 or more when n / m is added. However, first, the initial value of the error is set to -1, and n / m is added. When it is, it is determined whether or not it is 0 or more. The initial value of the error is −1, and the error is determined by E i + 1 = E i + n / m ≧ 0. (E i + 1 = E i -1 if this condition is satisfied) and D =
S * (-E) + S '* (E + 1). Next, the error is determined so that the error is multiplied by m. Then, the initial value of the error is −m, and the error is E i +1 * m = E
It will be determined by i * m + n ≧ 0. (If they meet the conditions E i + 1 = E i -m ) and D = S * (-
E) / m + S '* (E + m) / m.

【0050】以上のアルゴリズムの動作を詳しく図9
(C)のフローチャートに沿って説明する。まず、伸張
先の線分Dの画素DをD0、伸張元の線分Sの補間に使
用する1つ目の画素SをS0、補間に使用する2つ目の
画素S´をS1に初期設定する(S42)。次に線分S
の誤差Eの初期値を−mに設定する(S43)。D=S
*(−E)/m+S´*(E+m)/mをRGB各成分
毎に用いて転送先の画素DのRGB値を求める(S4
4)。誤差Eにnを加算して(S45)、誤差Eが0よ
りも大きいか否かを判別し、誤差Eが0以下の場合はそ
のまま抜け、誤差Eが0よりも大きければ(S46)誤
差Eからmを減算し(S47)、同時に伸張元の線分S
の画素S、S´をインクリメント(次の画素を選択)す
る(S48)。次に伸張先の線分Dの画素Dをインクリ
メント(次の画素を選択)する(S49)。Dの画素が
DMを超えるまで(S50)、全ての画素Dの処理が終
了するまで上記の処理を繰り返す。
The operation of the above algorithm is shown in detail in FIG.
Description will be given along the flowchart of (C). First, the pixel D of the decompression destination line segment D is initialized to D0, the first pixel S used for interpolation of the decompression source line segment S is initialized to S0, and the second pixel S ′ used for interpolation is initialized to S1. Yes (S42). Next, the line segment S
The initial value of the error E of is set to -m (S43). D = S
* (-E) / m + S '* (E + m) / m is used for each RGB component to obtain the RGB value of the pixel D of the transfer destination (S4).
4). N is added to the error E (S45), it is determined whether or not the error E is larger than 0. If the error E is 0 or less, it is skipped. If the error E is larger than 0 (S46), the error E is obtained. Is subtracted from m (S47), and at the same time, the line segment S of the extension source
The pixels S and S'of are incremented (the next pixel is selected) (S48). Next, the pixel D of the decompression destination line segment D is incremented (the next pixel is selected) (S49). The above processing is repeated until the pixels of D exceed DM (S50) until the processing of all the pixels D is completed.

【0051】次に、図10(A)及び図10(B)に、
図9(A)〜図9(C)で示した重み付けを用いた線分
伸張アルゴリズムを使用して矩形の拡大ができる矩形拡
大アルゴリズムを示す。図10(A)に示すように横
(nx+1)ドット、縦(ny+1)ドットからなる矩
形を横(mx+1)ドット、縦(my+1)ドットから
なる矩形に拡大する。横(X)方向、縦(Y)方向とも
に、図9(A)〜図9(C)で説明した線分伸張アルゴ
リズムを用いて、伸張元の矩形Sの4画素から伸張先の
矩形Dの1画素の値を計算する。
Next, in FIG. 10 (A) and FIG. 10 (B),
A rectangle enlargement algorithm that can enlarge a rectangle by using the line segment extension algorithm using the weighting shown in FIGS. 9A to 9C is shown. As shown in FIG. 10A, a rectangle composed of horizontal (nx + 1) dots and vertical (ny + 1) dots is expanded to a rectangle composed of horizontal (mx + 1) dots and vertical (my + 1) dots. In both the horizontal (X) direction and the vertical (Y) direction, the line segment decompression algorithm described with reference to FIGS. 9A to 9C is used to change from the four pixels of the decompression source rectangle S to the decompression destination rectangle D. Calculate the value of one pixel.

【0052】上記の矩形拡大アルゴリズムを図10
(B)のフローチャートに沿って説明する。まず、伸張
先の矩形Dの画素DのY座標YDをYD0、伸張元の矩
形Sの補間に使用する1つ目のY座標YSをYS0、補
間に使用する2つ目のY座標YS´をYS1に初期設定
する(S51)。Y方向の誤差EYの初期値を−myに
設定する(S52)。この後にX方向の処理を行う。
(網掛け部分)この網掛け部分(S53〜S61)はY
座標が固定のまま、X座標のみが更新される。まず、伸
張先の矩形Dの画像DのX座標XDをXD0、伸張元の
矩形Sの補間に使用する1つ目のX座標XSをXS0、
補間に使用する2つ目のX座標XS´をXS1に初期設
定する(S53)。次にX方向の誤差EXの初期値を−
mxに設定する(S54)。この時点の2つのY座標Y
S、YS´と2つのX座標XS、XS´から補間に使用
される矩形Sの4画素(XS,YS)(XS´,YS)
(XS,YS´)(XS´,YS´)が決まる。補間の
方法は図11で説明するが、この4点の値から伸張先の
矩形D上の1点(XD,YD)の画素のRGB値がそれ
ぞれ求められる(S55)。次に誤差EXにnxを加算
する(S56)。誤差EXが0よりも大きいか否かを判
別し、誤差EXが0以下ならばそのまま抜け、誤差EX
が0よりも大きければ(S57)誤差EXからmxを減
算し(S58)同時に伸張元のX座標XS、XS´をイ
ンクリメントする(S59)。次に伸張先のX座標XD
をインクリメント(次の画素を選択)する(S60)。
XDの画素がXDMを超えるまで(S61)、全てのX
座標の処理が終了するまで上記の処理を繰り返す。次に
誤差EYにnyを加算する(S62)。誤差EYが0よ
りも大きいか否かを判別し、誤差EYが0以下ならばそ
のまま抜け、誤差EYが0よりも大きければ(S63)
誤差EYからmyを減算し(S64)同時に伸張元のY
座標YS、YS´をインクリメントする(S65)。次
に伸張先のY座標YDをインクリメント(次のラインを
選択)する(S66)。YDのラインがYDMを超える
まで(S67)、全てのY座標の処理が終了するまで上
記の処理を繰り返す。
The above rectangle enlarging algorithm is shown in FIG.
A description will be given along the flowchart of (B). First, the Y coordinate YD of the pixel D of the decompression destination rectangle D is YD0, the first Y coordinate YS used for interpolation of the decompression source rectangle S is YS0, and the second Y coordinate YS 'used for interpolation is Initially set to YS1 (S51). The initial value of the error EY in the Y direction is set to -my (S52). After this, processing in the X direction is performed.
(Shaded portion) This shaded portion (S53 to S61) is Y
Only the X coordinate is updated while the coordinates remain fixed. First, the X coordinate XD of the image D of the decompression destination rectangle D is XD0, the first X coordinate XS used for interpolation of the decompression source rectangle S is XS0,
The second X coordinate XS 'used for interpolation is initialized to XS1 (S53). Next, the initial value of the error EX in the X direction is −
mx is set (S54). Two Y coordinates Y at this point
Four pixels (XS, YS) (XS ', YS) of a rectangle S used for interpolation from S, YS' and two X coordinates XS, XS '
(XS, YS ') (XS', YS ') is determined. The interpolation method will be described with reference to FIG. 11, but the RGB values of the pixel at one point (XD, YD) on the decompression destination rectangle D are obtained from the values of these four points (S55). Next, nx is added to the error EX (S56). It is determined whether the error EX is larger than 0, and if the error EX is 0 or less, the error EX is skipped and the error EX
Is larger than 0 (S57), mx is subtracted from the error EX (S58), and at the same time, the X-coordinates XS and XS 'of the decompression source are incremented (S59). Next, the X coordinate XD of the decompression destination
Is incremented (the next pixel is selected) (S60).
Until XD pixels exceed XDM (S61), all X
The above process is repeated until the coordinate process is completed. Next, ny is added to the error EY (S62). It is determined whether or not the error EY is larger than 0. If the error EY is 0 or less, the process is skipped. If the error EY is larger than 0 (S63).
My is subtracted from the error EY (S64), and at the same time, the Y of the extension
The coordinates YS and YS 'are incremented (S65). Next, the Y coordinate YD of the extension destination is incremented (the next line is selected) (S66). Until the YD line exceeds YDM (S67), the above processing is repeated until the processing of all Y coordinates is completed.

【0053】図11では重み付けによる画像補間、伸張
元の4画素から伸張先の1画素を補間する方法を説明す
る。図10(A)及び図10(B)に示した矩形拡大ア
ルゴリズムにより、伸張元の4画素S1(XS,Y
S)、S2(XS´,YS)、S3(XS,YS´)、
S4(XS´,YS´)が決まる。さらに、X方向、Y
方向とも重み付けの値が、X方向はS*(−EX)/m
x+S´*(EX+mx)/mxであり、Y方向はS*
(−EY)/my+S´*(EY+my)/myなの
で、求めるRGB値は((S1*(−EX)/mx+S
2*(EX+mx)/mx)*(−EY)/my)+
((S3*(−EX)/mx+S4*(EX+mx)/
mx)*(EY+my)/my)で求められる。RGB
それぞれに対してこの式から算出すればよい。
FIG. 11 illustrates a method of image interpolation by weighting and interpolating one pixel at the decompression source from four pixels at the decompression source. By the rectangle enlargement algorithm shown in FIGS. 10 (A) and 10 (B), the four pixels S1 (XS, Y) of the extension source are used.
S), S2 (XS ', YS), S3 (XS, YS'),
S4 (XS ', YS') is determined. Furthermore, X direction, Y
The value of the weighting in both directions is S * (-EX) / m in the X direction.
x + S '* (EX + mx) / mx, and Y direction is S *
Since (−EY) / my + S ′ * (EY + my) / my, the calculated RGB value is ((S1 * (− EX) / mx + S
2 * (EX + mx) / mx) * (-EY) / my) +
((S3 * (-EX) / mx + S4 * (EX + mx) /
mx) * (EY + my) / my). RGB
It may be calculated from this formula for each.

【0054】このように伸張元の画像のうち4画素に対
して重み付けによる補間を行って、伸張後の画像の画素
の値を決定しているので、鮮明な画像を得ることができ
る。また、矩形の拡大方法として、縦方向、横方向とも
に重み付けによる補間を行ったが、縦方向あるいは横方
向のいずれか一方のみを重み付けによる補間を行い、残
りの一方は図5(A)及び図5(B)で示した通常の矩
形拡大アルゴリズムを用いてもよい。これにより、ある
程度の画質は保ちつつ、CPU9の負担を軽くすること
ができる。
In this way, since the four pixels of the original image to be expanded are weighted to determine the pixel values of the expanded image, a clear image can be obtained. As a method of enlarging a rectangle, weighted interpolation is performed in both the vertical and horizontal directions. However, only one of the vertical direction and the horizontal direction is weighted, and the remaining one is shown in FIG. The normal rectangle enlargement algorithm shown in FIG. 5 (B) may be used. This makes it possible to reduce the load on the CPU 9 while maintaining a certain level of image quality.

【0055】(第3の実施の形態)次に、図12に図5
(A)及び図5(B)で示した矩形拡大アルゴリズムと
図10(A)及び図10(B)で示した重み付けによる
矩形拡大アルゴリズムを使い分けて行う、ズーム合成処
理を説明する。
(Third Embodiment) Next, referring to FIG.
A zoom combining process will be described in which the rectangular enlargement algorithm shown in (A) and FIG. 5 (B) and the rectangular enlargement algorithm by weighting shown in FIGS. 10 (A) and 10 (B) are separately used.

【0056】図12のフローチャートにはないが、最初
に目的のズームアップの大きさを各種キー部13により
×5、×10、×20というように指定しておく。ズー
ム合成撮影モードでシャッターキー12が押されて撮影
が行われたときは、まずCCD1より取り込んだ画像を
画像メモリ4の一部を元画像バッファとして使用し、そ
こに格納する(S68)。元画像バッファにはズーム合
成処理中に、撮影が行われると、CCD1から取り込ん
だ画像が常に格納される。これらの画像を元画像として
複数のズーム画像を作成する。同時に画像メモリ4の一
部を合成画像バッファとして使用し、合成画像バッファ
にも取り込んだ画像を格納する(S69)。次に元画像
バッファの画像を図6(A)のテーブルに従って切り出
す(S70)。その画像がズーム比の最も小さな画像
(最初の画像)あるいはズーム比の最も大きな画像(最
後の画像)ならば(S71)、図10(A)及び図10
(B)で示した重み付けによる矩形拡大アルゴリズムで
処理をし(S73)、それ以外の画像ならば重み付けを
行わない図5(A)及び図5(B)で示した矩形拡大ア
ルゴリズムで処理をする(S72)。矩形拡大した画像
を合成画像バッファの画像と合成する(S74)。目的
の大きさまでズームアップが完了するまでS70からの
処理を繰り返す(S75)。目的の大きさまでのズーム
アップが完了したらその画像はズーム合成画像として記
録媒体10に保存する。
Although not shown in the flowchart of FIG. 12, first, the target zoom-up size is designated by various key portions 13 such as × 5, × 10, and × 20. When the shutter key 12 is pressed in the zoom composite photographing mode to perform photographing, first, an image captured from the CCD 1 is used by using a part of the image memory 4 as an original image buffer and stored therein (S68). When shooting is performed during the zoom composition process, the original image buffer always stores the image captured from the CCD 1. A plurality of zoom images are created using these images as original images. At the same time, a part of the image memory 4 is used as a composite image buffer, and the captured image is also stored in the composite image buffer (S69). Next, the image in the original image buffer is cut out according to the table of FIG. 6 (A) (S70). If the image is the image with the smallest zoom ratio (first image) or the image with the largest zoom ratio (last image) (S71), FIG. 10A and FIG.
The rectangular enlargement algorithm by weighting shown in (B) is used for processing (S73), and for other images, the rectangular enlargement algorithm shown in FIG. 5A and FIG. (S72). The rectangular enlarged image is combined with the image in the combined image buffer (S74). The processing from S70 is repeated until the zoom-up to the target size is completed (S75). When the zoom up to the target size is completed, the image is stored in the recording medium 10 as a zoom composite image.

【0057】以上のように2種類の矩形拡大アルゴリズ
ムを使い分けることによりズーム開始とズーム終了の両
端の画像は鮮明になり、それらの間を埋める動的な画像
においてはCPUの負担を軽くすることが可能となる。
また、ズーム開始とズーム終了の画像に加え、間を構成
するズーム画像のうち一定間隔毎に重み付けを行う矩形
拡大アルゴリズムを用いたズーム画像を挿入することに
より、ズーム合成画像の画質を高めることも可能であ
る。
As described above, by properly using the two types of rectangle enlargement algorithms, the images at the both ends of the zoom start and the zoom end become clear, and the CPU load can be lightened in the dynamic image filling between them. It will be possible.
In addition to the images at the start and end of zooming, it is possible to improve the image quality of the zoom composite image by inserting a zoom image using a rectangular enlargement algorithm that performs weighting at regular intervals among the zoom images that make up the space. It is possible.

【0058】(第4の実施の形態)上述した第1の実施
の形態〜第3の実施の形態においては、ズーム合成処理
はシャッターキー12が押されて取り込まれた画像を元
画像として合成処理を行ったが、第4の実施の形態とし
て、シャッターキー12が押される以前のスルー画像を
元画像としてズーム合成処理を行う例を示す。デジタル
カメラ100の動作及び切り出し画像の情報テーブル、
矩形拡大アルゴリズムはすでに説明した第1の実施の形
態〜第3の実施の形態と同じなので説明は省略する。
(Fourth Embodiment) In the first to third embodiments described above, the zoom compositing process is a compositing process using the image captured by pressing the shutter key 12 as the original image. However, as the fourth embodiment, an example in which the zoom compositing process is performed using the through image before the shutter key 12 is pressed as the original image will be described. An information table of the operation of the digital camera 100 and the cutout image,
The rectangle enlargement algorithm is the same as that of the first to third embodiments already described, and therefore the description thereof is omitted.

【0059】この実施の形態では、最初に目的のズーム
アップの大きさを各種キー部13により×5、×10、
×20というように指定しておく。ズーム合成撮影モー
ドになっていると、CCD1から取り入れられた画像デ
ータが表示部14でスルー画像表示されている状態でズ
ーム合成処理が行われる。すなわち、前述した実施の形
態1〜3でシャッターキー12が操作された後、撮像し
記憶する処理の段階で行なっていたズーム合成処理と同
様の処理が、シャッターキー12が操作される以前の撮
像準備状態で随時行われ、この結果、ズーム合成された
画像は随時ビデオ出力部7へ出力されると同時に表示部
14に出力される。これによって、撮像準備状態の時に
常に表示部14にはズーム合成画像が表示され、ユーザ
はズーム合成された撮影したい画像を表示部14で確認
しつつシャッターキー12を押す。シャッターキー12
が押されるとその時、表示部14に表示されているズー
ム合成画像が記録媒体10に保存される。もちろん、こ
の際に前述した実施の形態1〜3と同様にシャッターキ
ー12が押されたことにより取り込まれた画像を元画像
として合成処理を行うようにしてもよい。
In this embodiment, the desired zoom-up size is first set to x5, x10,
Designate as × 20. When in the zoom composite shooting mode, the zoom composite processing is performed while the image data taken in from the CCD 1 is displayed as a through image on the display unit 14. That is, after the shutter key 12 is operated in the above-described first to third embodiments, the same process as the zoom combining process performed in the stage of the process of capturing and storing the image is performed before the shutter key 12 is operated. This is performed in the ready state at any time, and as a result, the zoom-combined image is output to the video output unit 7 and the display unit 14 at the same time. As a result, the zoom composite image is always displayed on the display unit 14 in the imaging preparation state, and the user presses the shutter key 12 while confirming on the display unit 14 the zoom-combined image to be captured. Shutter key 12
When is pressed, the zoom composite image displayed on the display unit 14 at that time is stored in the recording medium 10. Of course, in this case, as in the first to third embodiments described above, the combining process may be performed using the image captured by pressing the shutter key 12 as the original image.

【0060】以上のように、シャッターキー12を押す
前からスルー画像表示の時点で、ズーム合成処理を行い
表示部14に表示するので、ユーザーはズーム合成画像
を見ながら撮影ができる。したがって、ズーム合成画像
を見た時点で撮影するかどうか選択ができるため、無駄
な撮影記録を回避し、意図した画像が容易に得られる。
As described above, before the shutter key 12 is pressed, the zoom composition processing is performed and displayed on the display unit 14 at the time of displaying the through image, so that the user can take a picture while viewing the zoom composition image. Therefore, since it is possible to select whether or not to shoot at the time of viewing the zoom composite image, useless shooting and recording can be avoided, and an intended image can be easily obtained.

【0061】[0061]

【発明の効果】以上のように、請求項1記載の発明によ
れば、一枚の画像から複数の大きさの画像を切り出し、
切り出し前の画像と同じ大きさに拡大した後、これらの
画像を合成するようにしたので、手間をかけることなく
光学ズームを用いた露光間ズームと同等の画像を得るこ
とができる。
As described above, according to the first aspect of the present invention, images of a plurality of sizes are cut out from one image,
Since these images are combined after being enlarged to the same size as the image before being cut out, it is possible to obtain an image equivalent to the in-exposure zoom using the optical zoom without trouble.

【0062】そして、請求項2記載の発明によれば、撮
影した画像を記録し、切り出すサイズの情報に基づき複
数の画像を切り出すので、カメラ本体を三脚に固定する
必要がなくなり、手持ちの撮影において露光間ズームと
同等の効果を得られる。
According to the second aspect of the present invention, since the photographed image is recorded and a plurality of images are cut out based on the information on the size to be cut out, it is not necessary to fix the camera body to a tripod, and it is possible to take a handheld photograph. The same effect as the zoom between exposures can be obtained.

【0063】また、請求項3記載の発明によれば、簡単
な整数演算のみで矩形の拡大を行える矩形拡大のアルゴ
リズムを用いることにより、CPUに負担をかけること
なく、短い時間で画像の拡大、合成を行える。
According to the third aspect of the invention, by using the rectangle enlargement algorithm which can enlarge the rectangle only by a simple integer operation, the image can be enlarged in a short time without burdening the CPU. Can be synthesized.

【0064】また、請求項4記載の発明によれば、矩形
拡大のアルゴリズムにおいて、複数の画素を重み付けに
よって補間処理したことにより鮮明な画像を得ることが
できる。
According to the fourth aspect of the invention, a sharp image can be obtained by performing interpolation processing on a plurality of pixels by weighting in the rectangular enlargement algorithm.

【0065】また、請求項5記載の発明によれば、元画
像は撮像素子から取り込まれているスルー画像でなの
で、実際のズーム合成画像を見ながら撮影ができる。
According to the fifth aspect of the invention, since the original image is the through image captured from the image pickup element, it is possible to shoot while viewing the actual zoom composite image.

【0066】また、請求項6記載の発明によれば、一枚
の画像から複数の大きさの画像を切り出し、切り出し前
の画像と同じ大きさに拡大した後、これらの画像を合成
する方法にしたので、手間をかけることなく光学ズーム
を用いた露光間ズームと同等の画像を得ることができ
る。
According to the sixth aspect of the present invention, there is provided a method of cutting out images of a plurality of sizes from one image, enlarging the image to the same size as the image before cutting, and then synthesizing these images. Therefore, it is possible to obtain an image equivalent to the during-exposure zoom using the optical zoom without trouble.

【0067】また、請求項7記載の発明によれば、一枚
の画像から複数の大きさの画像を切り出し、切り出し前
の画像と同じ大きさに拡大した後、これらの画像を合成
するプログラムにしたので、手間をかけることなく光学
ズームを用いた露光間ズームと同等の画像を得ることが
できる。
Further, according to the invention described in claim 7, an image having a plurality of sizes is cut out from one image, enlarged to the same size as the image before the cutout, and then a program for synthesizing these images is provided. Therefore, it is possible to obtain an image equivalent to the during-exposure zoom using the optical zoom without trouble.

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

【図1】本発明装置のブロック図である。FIG. 1 is a block diagram of a device of the present invention.

【図2】ズーム合成の原理を示した図である。FIG. 2 is a diagram showing a principle of zoom combination.

【図3】(A)は線分発生アルゴリズムを示した座標図
である。(B)は線分発生アルゴリズムを示したフロー
チャートである。
FIG. 3A is a coordinate diagram showing a line segment generation algorithm. (B) is a flowchart showing a line segment generation algorithm.

【図4】(A)は線分伸張アルゴリズムを示した構造図
である。(B)は線分伸張アルゴリズムを示した座標図
である。(C)は分伸張アルゴリズムを示したフローチ
ャートである。
FIG. 4A is a structural diagram showing a line segment expansion algorithm. (B) is a coordinate diagram showing a line segment expansion algorithm. (C) is a flow chart showing the minute extension algorithm.

【図5】(A)は矩形拡大アルゴリズムを示した構造図
である。(B)は矩形拡大アルゴリズムを示したフロー
チャートである。
FIG. 5A is a structural diagram showing a rectangle enlargement algorithm. (B) is a flowchart showing a rectangle enlargement algorithm.

【図6】(A)は切り出し画像の情報テーブルを示した
図である。(B)は切り出し画像のイメージを示した図
である。
FIG. 6A is a diagram showing an information table of a cutout image. (B) is a diagram showing an image of a cutout image.

【図7】拡大後の画像の合成方法を示した図である。FIG. 7 is a diagram showing a method of synthesizing an enlarged image.

【図8】ズーム合成処理のフローチャートである。FIG. 8 is a flowchart of zoom synthesis processing.

【図9】(A)は重み付けによる線分伸張アルゴリズム
を示した構造図である。(B)は重み付けによる線分伸
張アルゴリズムを示した座標図である。(C)は重み付
けによる線分伸張アルゴリズムを示したフローチャート
である。
FIG. 9A is a structural diagram showing a weighted line segment expansion algorithm. (B) is a coordinate diagram showing a line segment expansion algorithm by weighting. (C) is a flowchart showing a weighted line segment expansion algorithm.

【図10】(A)は重み付けによる矩形拡大アルゴリズ
ムを示した構造図である。(B)は重み付けによる矩形
拡大アルゴリズムを示したフローチャートである。
FIG. 10A is a structural diagram showing a rectangle enlargement algorithm by weighting. (B) is a flowchart showing a rectangle enlargement algorithm by weighting.

【図11】重み付けによる画像補間を示した図である。FIG. 11 is a diagram showing image interpolation by weighting.

【図12】2種類の矩形拡大アルゴリズムによるズーム
合成処理のフローチャートである。
FIG. 12 is a flowchart of zoom synthesis processing by two types of rectangle enlargement algorithms.

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

1 CCD 2 CCD制御部 3 YUVプロセッサ 4 画像メモリ 5 メモリコントローラ 6 ビデオエンコーダ 7 ビデオ出力部 8 データ通信部 9 CPU 10 記録媒体 11 キー処理部 100 デジタルカメラ 1 CCD 2 CCD control unit 3 YUV processor 4 image memory 5 Memory controller 6 video encoder 7 Video output section 8 Data communication section 9 CPU 10 recording media 11 Key processing part 100 digital camera

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 5/232 H04N 5/232 Z 5/262 5/262 // H04N 101:00 101:00 Fターム(参考) 5B057 BA02 BA11 CA08 CA12 CA16 CB08 CB12 CB16 CD05 CD06 CE08 CE09 CH09 5C022 AA13 AB36 AB68 AC01 AC42 AC69 5C023 AA11 AA37 AA38 BA11 CA01 DA04 5C076 AA02 AA11 AA19 AA21 BA06 BB03 BB25 CA10 CB05 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 Identification code FI theme code (reference) H04N 5/232 H04N 5/232 Z 5/262 5/262 // H04N 101: 00 101: 00 F term ( Reference) 5B057 BA02 BA11 CA08 CA12 CA16 CB08 CB12 CB16 CD05 CD06 CE08 CE09 CH09 5C022 AA13 AB36 AB68 AC01 AC42 AC69 5C023 AA11 AA37 AA38 BA11 CA01 DA04 5C076 AA02 AA11 AA19 AA21 BA06 BB03 BB25 CB25 BB25 CA10

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 一枚の画像を元画像として、この元画像
から異なる複数のサイズの画像を切り出す画像切り出し
手段と、 前記画像切り出し手段により切り出した複数の画像を前
記元画像と同じサイズにそれぞれ拡大する画像拡大手段
と、 前記画像拡大手段により拡大された複数の画像を合成す
る画像合成手段と、 を備える画像合成装置。
1. An image cutting-out unit that cuts out a plurality of images of different sizes from one original image as an original image, and a plurality of images cut out by the image cutting-out unit have the same size as the original image, respectively. An image synthesizing apparatus comprising: an image enlarging means for enlarging; and an image synthesizing means for synthesizing a plurality of images enlarged by the image enlarging means.
【請求項2】 被写体を撮像する撮像手段と、 前記撮像手段より発生した被写体像を画像データとして
記録する記録手段と、 切り出すサイズの情報が記憶されている情報記録手段
と、 を備える請求項1記載の画像合成装置。
2. An image pickup unit for picking up an image of a subject, a recording unit for recording an image of the subject generated by the image pickup unit as image data, and an information recording unit for storing information on a size to be cut out. The image synthesizing apparatus described.
【請求項3】 前記画像拡大手段は矩形拡大のアルゴリ
ズムに基づき行われ、拡大前の画像を構成する画素の中
から1画素を選択してその値を複製することを特徴とす
る請求項1の画像合成装置。
3. The image enlarging means is executed based on a rectangle enlarging algorithm, and selects one pixel from pixels constituting an image before enlarging and duplicates the value. Image synthesizer.
【請求項4】 前記画像拡大手段は矩形拡大のアルゴリ
ズムに基づき行われ、拡大前の画像を構成する複数の画
素に重み付けを行い、その値を複製することを特徴とす
る請求項1記載の画像合成装置。
4. The image enlargement means according to claim 1, wherein the image enlargement means is executed based on a rectangle enlargement algorithm, weights a plurality of pixels constituting an image before enlargement, and duplicates the value. Synthesizer.
【請求項5】 前記元画像は撮像素子から取り込まれて
いるスルー画像であることを特徴とする請求項1記載の
画像合成装置。
5. The image synthesizing apparatus according to claim 1, wherein the original image is a through image captured from an image sensor.
【請求項6】 一枚の画像を元画像として、この元画像
から異なる複数のサイズの画像を切り出す画像切り出し
処理と、 前記画像切り出し手段により切り出した複数の画像を前
記元画像と同じサイズにそれぞれ拡大する画像拡大処理
と、 前記画像拡大処理により拡大された複数の画像を合成す
る画像合成処理からなる画像合成方法。
6. An image cropping process of cropping an image of a plurality of different sizes from the original image using one image as an original image, and the plurality of images cropped by the image cropping unit having the same size as the original image, respectively. An image combining method comprising an image expanding process for expanding and an image combining process for combining a plurality of images expanded by the image expanding process.
【請求項7】 一枚の画像を元画像として、この元画像
から異なる複数のサイズの画像を切り出す画像切り出し
手段と、 前記画像切り出し手段により切り出した複数の画像を前
記元画像と同じサイズにそれぞれ拡大する画像拡大手段
と、 前記画像拡大手段により拡大された複数の画像を合成す
る画像合成手段を実現するための画像合成プログラム。
7. An image cutting means for cutting out a plurality of images of different sizes from the original image using one image as an original image, and a plurality of images cut out by the image cutting means to have the same size as the original image, respectively. An image composition program for realizing an image enlarging means for enlarging and an image synthesizing means for synthesizing a plurality of images enlarged by the image enlarging means.
JP2001281606A 2001-09-17 2001-09-17 Image composition apparatus, image composition method, and program Expired - Fee Related JP3861641B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001281606A JP3861641B2 (en) 2001-09-17 2001-09-17 Image composition apparatus, image composition method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001281606A JP3861641B2 (en) 2001-09-17 2001-09-17 Image composition apparatus, image composition method, and program

Publications (2)

Publication Number Publication Date
JP2003087553A true JP2003087553A (en) 2003-03-20
JP3861641B2 JP3861641B2 (en) 2006-12-20

Family

ID=19105400

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001281606A Expired - Fee Related JP3861641B2 (en) 2001-09-17 2001-09-17 Image composition apparatus, image composition method, and program

Country Status (1)

Country Link
JP (1) JP3861641B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010166483A (en) * 2009-01-19 2010-07-29 Canon Inc Image capturing apparatus and method of controlling the same
JP2010268441A (en) * 2009-04-16 2010-11-25 Sanyo Electric Co Ltd Image processor, imaging device, and image reproducing device
JP2014022863A (en) * 2012-07-17 2014-02-03 Olympus Imaging Corp Imaging apparatus
WO2016072101A1 (en) * 2014-11-05 2016-05-12 オリンパス株式会社 Image pickup device and image pickup device control method
JPWO2015049899A1 (en) * 2013-10-01 2017-03-09 オリンパス株式会社 Image display device and image display method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010166483A (en) * 2009-01-19 2010-07-29 Canon Inc Image capturing apparatus and method of controlling the same
JP2010268441A (en) * 2009-04-16 2010-11-25 Sanyo Electric Co Ltd Image processor, imaging device, and image reproducing device
JP2014022863A (en) * 2012-07-17 2014-02-03 Olympus Imaging Corp Imaging apparatus
JPWO2015049899A1 (en) * 2013-10-01 2017-03-09 オリンパス株式会社 Image display device and image display method
US9699389B2 (en) 2013-10-01 2017-07-04 Olympus Corporation Image displaying apparatus and image displaying method
WO2016072101A1 (en) * 2014-11-05 2016-05-12 オリンパス株式会社 Image pickup device and image pickup device control method
US9654695B2 (en) 2014-11-05 2017-05-16 Olympus Corporation Imaging device and control method for imaging device

Also Published As

Publication number Publication date
JP3861641B2 (en) 2006-12-20

Similar Documents

Publication Publication Date Title
EP0940978B1 (en) High resolution camera
JP4233797B2 (en) Digital camera that removes perspective distortion of digital images
JP4212109B2 (en) Imaging apparatus and imaging method
US8970717B2 (en) Photographing apparatus
US7064783B2 (en) Still picture format for subsequent picture stitching for forming a panoramic image
JP4636467B2 (en) Shooting method of mobile communication terminal with camera
US20130258128A1 (en) Camera and method for recording image files
JP5300756B2 (en) Imaging apparatus and image processing method
JP4346938B2 (en) Image processing apparatus, method, program, and storage medium
US20070146810A1 (en) Image display apparatus, method, and program
JP3799861B2 (en) Image synthesizing apparatus and recording medium on which program for executing image synthesizing method is recorded
KR20090009114A (en) Method for constructing a composite image
JP4735166B2 (en) Image display apparatus and program
JP4696614B2 (en) Image display control device and program
JP3861641B2 (en) Image composition apparatus, image composition method, and program
JPH10336494A (en) Digital camera with zoom display function
JP2001057649A (en) Electronic camera
JP4001233B2 (en) Panorama shooting method and image processing apparatus and image pickup apparatus capable of using the method
JP2000217022A (en) Electronic still camera and its image data recording and reproducing method
JP2004080427A (en) Imaging apparatus and image form converting method
JP2004364039A (en) Image processing apparatus, image processing method, and program
JP2004013461A (en) Image processing system and digital imaging apparatus
JP4396579B2 (en) Electronic camera, zoom range display method, and program
JP5176857B2 (en) Movie editing device
JPH0546718A (en) Picture editing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041122

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060613

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060620

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060802

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060905

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060918

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091006

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101006

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111006

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121006

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121006

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131006

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees