JPS62202272A - Static image processing method - Google Patents

Static image processing method

Info

Publication number
JPS62202272A
JPS62202272A JP4456486A JP4456486A JPS62202272A JP S62202272 A JPS62202272 A JP S62202272A JP 4456486 A JP4456486 A JP 4456486A JP 4456486 A JP4456486 A JP 4456486A JP S62202272 A JPS62202272 A JP S62202272A
Authority
JP
Japan
Prior art keywords
image
area
shifting
shift
memory
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
JP4456486A
Other languages
Japanese (ja)
Inventor
Hiroyuki Kimura
木村 裕行
Makoto Katsuma
眞 勝間
Koji Takahashi
宏爾 高橋
Kazunobu Urushibara
漆原 一宣
Susumu Matsumura
進 松村
Hiroshi Omura
大村 宏志
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 JP4456486A priority Critical patent/JPS62202272A/en
Publication of JPS62202272A publication Critical patent/JPS62202272A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the image information of the second image position and to obtain an effective flow processing effect by using the image information to shift the image information in a screen in the direction opposite to a shifting direction when the image information to shift to the first image position before shifting does not exist. CONSTITUTION:In an original static surface A, a vehicle B as an object is stopped, a background area C is shifted by the direction and the quantity shown in the vector arrow mark D and a flow processing is executed. An input static image signal is stored into an image memory 25 by dividing into respective R, G and B screens. A static area is designated by a designating part 11 and the flow direction and the distance are designated by a parameter input part 20. An image processor 23 executes the image processing. At the time of processing, an original image does not exist at an area E, at an area F after shifting, the original image does not exist due to becoming the shadow of the vehicle, and therefore, the image is shifted in the direction reverse to the shifting direction and the data of areas E' and F are obtained. Thus, the effective flow processing effect can be obtained.

Description

【発明の詳細な説明】 く技術分野〉 本発明は一画面静止画像の一部又は全部を所定方向にシ
フトすることにより流し処理を実行する静止画像処理方
法に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a still image processing method that executes a flow process by shifting part or all of a single screen still image in a predetermined direction.

〈従来技術〉 上記流し処理を撮影時に光学的に行う方法として流し撮
り、或は露光中ズーミング等があった。
<Prior Art> As a method for performing the above-mentioned panning process optically during photographing, there are panning shots, zooming during exposure, and the like.

流し撮りは、シャッタ速度を遅くして動いている被写体
(車1人、自転車等)の動きに合わせて撮影することに
より、動いている被写体を止め、背景を移動させること
によりスピード感を得るものである。
A panning shot is a method of slowing down the shutter speed and taking pictures in time with the movement of a moving subject (a person in a car, a bicycle, etc.), thereby creating a sense of speed by stopping the moving subject and moving the background. It is.

一方、露光中ズーミングは露光中にズームレンズの焦点
距離を変え、画面中心の被写体を強調し、画面周辺の画
像を放射方向に流すものであった。
On the other hand, zooming during exposure involves changing the focal length of the zoom lens during exposure, emphasizing the subject at the center of the screen, and causing images around the screen to flow in the radial direction.

上述の如き撮影手法は非常に高度なテクニックを必要と
していた。
The photographing method described above required extremely advanced techniques.

そこで撮影時には背景が流れていない画像等に電気的画
像処理を施すことにより流し処理の効果を得ることが考
えられる。
Therefore, it is conceivable to obtain the effect of flow processing by applying electrical image processing to images in which the background does not flow during photographing.

しかしながら、例えば流し撮りの場合には次の様な問題
点がある。
However, in the case of panning shots, for example, there are the following problems.

第2図において、Aは元の静止画、Bは止めておく被写
体としての車、Cは流し処理される背景領域、Dは流し
処理される方向と量を示すベクトル矢印である。
In FIG. 2, A is the original still image, B is a car as a stationary subject, C is a background area to be processed, and D is a vector arrow indicating the direction and amount of the process.

流し処理を実行する場合、元の画像の背景領域の各画像
は矢印りで示す方向にシフトされる訳であるが、領域E
には元の画像が存在しないので領域C内の領域E′の位
置にシフトすることかできない。
When performing flow processing, each image in the background area of the original image is shifted in the direction indicated by the arrow.
Since there is no original image in , it is only possible to shift to the position of area E' within area C.

又、シフト後の領域Fには車の影になって元の画像が存
在しないのでシフトすることができない。
Furthermore, the area F after the shift cannot be shifted because it is in the shadow of the car and the original image does not exist.

この為、有効な流し処理効果を得ることがてぎないとい
う問題点かある。
For this reason, there is a problem that it is difficult to obtain an effective flow treatment effect.

く目  的〉 本発明の目的は、上述の様な問題点を解決し、効果のあ
る流し処理を実行できる静止画像処理方法を提供するこ
とにある。
Purpose> An object of the present invention is to provide a still image processing method that can solve the above-mentioned problems and perform effective flow processing.

更に詳細に言えばシフト先の第2画像位置に対応するシ
フト前の第1画像位置にシフトすべき画像情報が存在し
ない場合、画面内の画像情報なシと フト方向く反対方向にシフトされる画像情報を用いて前
記第2画像位置の画像情報を得ることを特徴とするもの
である。
More specifically, if there is no image information to be shifted to the first image position before the shift corresponding to the second image position to which the shift is made, the image information on the screen is shifted in the opposite direction. The present invention is characterized in that image information at the second image position is obtained using image information.

〈実施例〉 第1図に本発明の一実施例の制御ブロック図を示す。<Example> FIG. 1 shows a control block diagram of an embodiment of the present invention.

図において11は第2図の領域B即ち静止領域を指定す
る静止領域指定部でマウス等により構成される。13は
CPUて全体の制御を実行する。
In the figure, reference numeral 11 denotes a still area specifying section for specifying area B in FIG. 2, that is, a still area, which is constituted by a mouse or the like. A CPU 13 executes overall control.

15はCPUl3の処理に必要なデータを一時格納する
。17はイメージコントローラでコンピュータバスCB
とイメージバス18間のインタフェースである。19は
ROMでCPU13の制御プログラムを格納する。2o
はパラメータ入力部で流し処理の方向及び距離のパラメ
ータを人力する。21は人力静止画信号INをデジタル
値に変換するA/D変換器、23はイメージ処理を実行
するイメージプロセッサ、25は人力静止画信号をR,
G、B各画面に分けて記憶するイメージメモリ、27.
 28.29.30.31はイメージ処理用のワークメ
モリ、33は演算結果を記憶する積算画面メモリ、32
は処理済の画像をアナログ信号に変換して出力するD/
A変換器であ以上の如き構成の画像処理装置を用いた場
合の流し撮り効果を得る為の処理プログラムを第3図に
示す。
15 temporarily stores data necessary for processing by CPU13. 17 is an image controller and computer bus CB
This is an interface between the image bus 18 and the image bus 18. A ROM 19 stores a control program for the CPU 13. 2o
manually enters the direction and distance parameters for flow processing in the parameter input section. 21 is an A/D converter that converts the human-powered still image signal IN into a digital value; 23 is an image processor that executes image processing; 25 is the human-powered still image signal R;
Image memory that stores data separately for each screen of G and B, 27.
28, 29, 30, 31 is a work memory for image processing, 33 is an integration screen memory for storing calculation results, 32
is a D/ that converts the processed image into an analog signal and outputs it.
FIG. 3 shows a processing program for obtaining a panning effect when an image processing apparatus having the above configuration is used as an A converter.

以下第3図を用いて説明する。This will be explained below using FIG.

まずステップS1でオペレータは静止領域(第2図B)
を指定部11で指定し、流す方向及び距離をパラメータ
入力部20で指定する。
First, in step S1, the operator
is specified in the specification section 11, and the flow direction and distance are specified in the parameter input section 20.

次に、領域を定める為に指定されたループが切れている
ことがよくあるのでループのエツジ部を抽出し、抽出し
たエツジの拡散や細線化の処理等を活用して静止領域が
閉ループになる様に処理する(S2)。そして閉ループ
に囲まれた静止領域及び画面の最外枠にビット1をたて
たビットマツプをワークメそり(1)(第1図27)に
格納する(S3)。
Next, since the loop specified to define the region is often broken, the edges of the loop are extracted, and the static region is made into a closed loop by using processes such as diffusion and thinning of the extracted edges. (S2). Then, a bit map in which bit 1 is set in the static area surrounded by the closed loop and the outermost frame of the screen is stored in the work grid (1) (FIG. 1, 27) (S3).

次にワークメモリ(1)の内容をワークメモリ(2)に
複写する(S4)。
Next, the contents of work memory (1) are copied to work memory (2) (S4).

そしてワークメモリ(2)のシフト領域に相当する部分
(第2図C)、即ちビットマツプ上でビットが立ってい
ない部分のアドレスの8画面(イメージメモリ25)の
データをワークメモリ(3)へ格納する(S6)。
Then, the data of the 8 screens (image memory 25) of the part corresponding to the shift area of the work memory (2) (Fig. 2 C), that is, the part where no bit is set on the bitmap, is stored in the work memory (3). (S6).

次にワークメそり(3)のデータを積算メモリ33に格
納する。
Next, the data of the workpiece (3) is stored in the integration memory 33.

そしてS7でシフトした距離を示すLを0に初期化する
Then, in S7, L indicating the shifted distance is initialized to 0.

次にワークメ干り(3)のデータをシフトしつつ積算メ
モリ上で加算してい< (S8.SIO。
Next, the data of the workpiece drying (3) is shifted and added on the integration memory (S8.SIO).

S11.312)。S11.312).

この時同時にワークメそり(2)のデータをシフトして
、シフトしたデータとワークメモリ(1)のデータの論
理和をとり、再びワークメモリ く2)に格納する処理
をシフト距離りが31で設定した量に達する迄繰返す(
S8.S9゜Sll、512)。これによりワークメモ
リ(2)には第2図の領域B、E′、Fにビット1が立
ったビットマツプが形成される。
At this time, the shift distance is set to 31 to simultaneously shift the data in the work memory (2), take the logical sum of the shifted data and the data in the work memory (1), and store it in the work memory (2) again. Repeat until the amount reached (
S8. S9°Sll, 512). As a result, a bit map in which bits 1 are set in areas B, E', and F in FIG. 2 is formed in the work memory (2).

S13で積算メモリのデータをシフト量りで割ることに
より、シフトによる濃度レベルの平均値を求め、ワーク
メモリ(4)に格納する。
In S13, the data in the integration memory is divided by the shift amount to obtain the average value of the density level due to the shift, and the average value is stored in the work memory (4).

そしてS14でワークメモリ(2)のビット1が立って
いない部分、即ち第2図の原画像データAから領域B、
E′、Fを除いた領域のアドレスのワークメモリ(4)
のデータを同一アトレスのワークメモリ(5)に格納す
る。
Then, in S14, the part of the work memory (2) where bit 1 is not set, that is, the area B from the original image data A in FIG.
Work memory address of area excluding E' and F (4)
data is stored in the work memory (5) at the same address.

次にSI5でワークメモリ(3)、(4)及び積算メモ
リのデータをリセットし、更にLを0に初期化して次の
処理に移る。
Next, at SI5, the data in the work memories (3), (4) and the integration memory are reset, and L is initialized to 0, and the process moves to the next step.

次のステップS+6〜S24でSI4までに求められな
かった領域E′、Fのデータを求める。先に述べた様に
領域E′、Fには流すべき情報か存在しないので、本実
施例ではシフト方向とは逆方向に画像をシフトすること
により領域E′、Fのデータを得ている。
In the next steps S+6 to S24, data of areas E' and F that have not been obtained up to SI4 is obtained. As mentioned above, since there is no information to be transmitted in the areas E' and F, in this embodiment, the data in the areas E' and F is obtained by shifting the image in the opposite direction to the shift direction.

まずSI6でワークメモリ(1)のシフト領域に当るR
画面(イメージメモリ25)のデータをワークメモリ(
3)に格納する。
First, in SI6, R corresponding to the shift area of work memory (1)
The data on the screen (image memory 25) is transferred to the work memory (
3).

そしてワークメモリ(3)のデータを積算メモリへ入れ
る。
Then, the data in the work memory (3) is entered into the integration memory.

そしてS8.  S10.Sll、  S12と同様に
たたシフト方向を逆の方向にしてシフトし、積算メモリ
上に加算していく(S18〜521)。
And S8. S10. As in Sll and S12, the shift direction is reversed and the data is shifted and added to the integration memory (S18 to S521).

そして積算メモリでシフト加算されたデータをシフト距
1111t Lで割ってワークメモリ(4)に格納する
(S22)。
Then, the data shifted and added in the integration memory is divided by the shift distance 1111tL and stored in the work memory (4) (S22).

この動作により逆方向への画面シフトによる濃度レヘル
の平均値が求められる。
Through this operation, the average value of the density level due to the screen shift in the opposite direction is obtained.

そしてS23てS9て求められたワークメモリ(2)と
ワークメモリ(1)の排他的論理和がとられ、ワークメ
そり(2)と置換される。ワークメモリ(1)には第2
図の領域Bに1が立っており、置換前のワークメモリ(
2)には領域B。
Then, the exclusive OR of the work memory (2) and the work memory (1) obtained in S23 and S9 is performed, and the result is replaced with the work memory (2). The work memory (1) has a second
1 is set in area B in the figure, and the work memory before replacement (
2) has area B.

E′、Fに1か立っているので、置換後のワークメモリ
(2)には領域E”、  Fのアドレスに1が立ってい
る。
Since 1 is set in E' and F, 1 is set at the address of area E'' and F in the work memory (2) after replacement.

次に324でワークメモリ(2)のピッ1−1か立って
いるアドレスのワークメモリ(4)のデータを同一アト
レスのワークメモリ(5)に格納する。
Next, in step 324, the data in the work memory (4) at the address where the pin 1-1 of the work memory (2) is set is stored in the work memory (5) at the same address.

これで領域Bを除いた領域、即ち背景領域Cをシフトし
たデータがワークメそり(5)に格納されたことになる
This means that the data obtained by shifting the area excluding area B, that is, the background area C, is stored in the workpiece mesh (5).

次にワークメモリ(1)のビットが立っているアドレス
、即ち静止領域部分のアドレスのR画面(イメージメモ
リ)のデータを同一アドレスのワークメモリ(5)に格
納する。
Next, data of the R screen (image memory) at the address where the bit of the work memory (1) is set, that is, the address of the static area portion, is stored in the work memory (5) at the same address.

これにより、静止領域はそのまま、背景領域をシフトし
た画像がメモリ (5)に全て整う。
As a result, the image with the still area unchanged and the background area shifted is all stored in the memory (5).

そしてS26でワークメモリ(5)から出力し、次に6
画面処理S28.8画面処理S29を続りて行う為にS
27てワークメモリ(2)〜(5)、積算メモリのデー
タをリセットする。
Then, in S26, it is output from the work memory (5), and then 6
To continue screen processing S28.8 screen processing S29, press S.
27, the data in the work memories (2) to (5) and the integration memory are reset.

32B、S29ではS4〜S27の処理をイメージメモ
リの6画面、8画面について行い、処理を終了する。
32B and S29, the processes of S4 to S27 are performed for the 6th screen and 8th screen of the image memory, and the process ends.

ここでイメージメモリに格納された画素データのビット
数を8ビツトとすると、ワークメモリ(3)、(4)、
(5)は各アドレスに8ビツトのメモリ容量が必要であ
る。又、ワークメモリ(1)、(2)はビットマツプと
して動作しているので、各アドレスに1ビツトで良い。
Assuming that the number of bits of pixel data stored in the image memory is 8 bits, the work memories (3), (4),
(5) requires 8-bit memory capacity for each address. Further, since the work memories (1) and (2) operate as bitmaps, one bit is sufficient for each address.

又、積算メモリは8ビツトのデータをシフト量だり加算
してもオーバーフローしないだりの容量が必要である。
Furthermore, the integration memory must have a capacity that does not overflow even when 8-bit data is shifted or added.

尚、本実施例においては流す方向を画像の1つのエツジ
と平行な方向に設定したが、斜め方向に設定しても良い
。この場合には流す方向の逆の画面端部が2位置になる
が、同様に処理できる。
In this embodiment, the direction of flow is set parallel to one edge of the image, but it may be set diagonally. In this case, the edge of the screen opposite to the flow direction is at the 2nd position, but it can be processed in the same way.

又、以上の実施例においては流し処理を例に説明したが
、露光中ズーミング処理等の他の流し処理に本発明を適
用することも勿論可能である。露光中ズーミングの場合
には流す方向が放射状となるので、各方向について流し
処理を行えば良い。
Further, although the above embodiments have been explained using the flow processing as an example, it is of course possible to apply the present invention to other flow processing such as zooming processing during exposure. In the case of zooming during exposure, the direction of flow is radial, so it is sufficient to perform flow processing in each direction.

又、画面の一部のみを流す例について説明したが、全体
を流す場合にも勿・論本発明を適用できる。
Further, although an example in which only a part of the screen is displayed has been described, the present invention can of course be applied to the case where the entire screen is displayed.

〈効 果〉 以上の如く、本発明においては画像を移動する際、シフ
ト先の第2画像位置に対応するシフト前の第1画像位置
にシフトすべき画像情報か存在しない場合、画面内の画
像情報をシフト方向と反対の方向にシフトさせた画像情
報を用いて、前記第2画像位置の画像情報を得るもので
あるので、違和感のない流し処理か、画面の一部を削除
することなしに実現できる。
<Effects> As described above, in the present invention, when moving an image, if there is no image information to be shifted to the first image position before the shift corresponding to the second image position to which the shift is made, the image on the screen is Since the image information at the second image position is obtained using the image information in which the information is shifted in the opposite direction to the shift direction, it is possible to perform the flow processing without any discomfort or without deleting part of the screen. realizable.

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

第1図は本実施例の画像処理装首の制御ブロック図、第
2図は流し撮り処理の説明図、第3図は流し撮り処理の
制御フローヂャートを示す図である。
FIG. 1 is a control block diagram of the image processing neck device of this embodiment, FIG. 2 is an explanatory diagram of panning processing, and FIG. 3 is a control flowchart of panning processing.

Claims (1)

【特許請求の範囲】[Claims] 一画面の静止画像を構成する画素の一部又は全部を所定
方向にシフトすることにより流し処理を実行するに当り
、シフト先の第2画像位置に対応するシフト前の第1画
像位置にシフトすべき画像情報が存在しない場合、画面
内の画像情報をシフト方向と反対の方向にシフトさせた
画像情報を用いて第2画像位置の画像情報を得ることを
特徴とする静止画像処理方法。
When performing flow processing by shifting some or all of the pixels constituting one screen of still images in a predetermined direction, the first image position before shifting corresponds to the second image position to which the shift is to be performed. 1. A still image processing method, characterized in that, when there is no desired image information, image information at a second image position is obtained using image information obtained by shifting image information within a screen in a direction opposite to the shifting direction.
JP4456486A 1986-02-28 1986-02-28 Static image processing method Pending JPS62202272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4456486A JPS62202272A (en) 1986-02-28 1986-02-28 Static image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4456486A JPS62202272A (en) 1986-02-28 1986-02-28 Static image processing method

Publications (1)

Publication Number Publication Date
JPS62202272A true JPS62202272A (en) 1987-09-05

Family

ID=12694989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4456486A Pending JPS62202272A (en) 1986-02-28 1986-02-28 Static image processing method

Country Status (1)

Country Link
JP (1) JPS62202272A (en)

Similar Documents

Publication Publication Date Title
US5125041A (en) Still image processing method for blurring an image background and producing a visual flowing effect
US7212674B1 (en) Method, apparatus and recording medium for face extraction
JP3038051B2 (en) Video region extraction device
JPS62202272A (en) Static image processing method
JPS62206556A (en) Artificial coloring method for picture image
JPH10145604A (en) Image sharpness processing method, its device and storage medium recording program
JPS6232576A (en) Processing method for still picture
JPS6344284A (en) Still picture processing method
JP3473832B2 (en) Digital image automatic correction method and system
KR20020084321A (en) real-time character composition method using template
JPH01303578A (en) Picture converting device
JPH0812692B2 (en) Image processing device
JP2578409B2 (en) Image processing device
JPS6219973A (en) Data compression method
JPS6344283A (en) Still picture processing method
JP2502284B2 (en) Image processing method
JPS60225280A (en) Correcting system of picture
JPH0338780A (en) Method and device for synthesizing image
JPS62281582A (en) Picture data compression system
JP2685458B2 (en) Image processing method
JPS63129470A (en) Image processing method
JPH07193812A (en) Picture compressor and picture compression method
JPH0620038A (en) Image processor
JPS61161576A (en) Picture signal processor
EP4327272A1 (en) System and method for learning tone curves for local image enhancement