JPH07302324A - Picture controller - Google Patents

Picture controller

Info

Publication number
JPH07302324A
JPH07302324A JP6114242A JP11424294A JPH07302324A JP H07302324 A JPH07302324 A JP H07302324A JP 6114242 A JP6114242 A JP 6114242A JP 11424294 A JP11424294 A JP 11424294A JP H07302324 A JPH07302324 A JP H07302324A
Authority
JP
Japan
Prior art keywords
image
detection frame
chroma key
detection
mode
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
JP6114242A
Other languages
Japanese (ja)
Inventor
Koji Toriyama
康治 鳥山
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 JP6114242A priority Critical patent/JPH07302324A/en
Publication of JPH07302324A publication Critical patent/JPH07302324A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1087Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals comprising photodetecting means, e.g. a camera
    • A63F2300/1093Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals comprising photodetecting means, e.g. a camera using visible light

Landscapes

  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PURPOSE:To attain a picture controller capable of executing picture control based upon chroma key detecting and processing without generating malfunction even when plural chroma key images exist in a picked-up image. CONSTITUTION:A position detecting and processing part 40 sets up a corresponding detection frame in a picked-up image in accordance with an operation mode specified by a CPU 51 and detects a chroma key image with a specific color from the picked-up image in accordance with the detection frame. When the processing part 40 detects a chroma key image through a detection frame, the CPU 51 generates an operation instruction corresponding to the operation mode and the specified detection frame to give it to a picture processing part 30. The processing part 30 controls a display screen in accordance with the operation instruction. Thereby, even when plural chroma key images exist in a picked-up image, picture control based upon chroma key detecting and processing can be attained without generating malfunction.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば、バーチャルリ
アリティ(仮想現実感)を創出するビデオゲームなどに
用いて好適な画像制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image control apparatus suitable for use in, for example, a video game for creating virtual reality.

【0002】[0002]

【従来の技術】従来より、操作パッド等の操作に応じて
オブジェクト画像を動画制御したり、効果音を発生させ
たりする画像制御装置が各種実用化されている。なお、
ここで言うオブジェクト画像とは、ゲーム画面に表示さ
れる「キャラクタ」を指し、背景となるバックグラウン
ド画面上に移動表示されるものである。この種の装置
は、ビデオゲームあるいはTVゲームと呼ばれ、遊戯者
の反射神経を問うシューティングゲームや、仮想的な現
実感をシミュレートするゲーム等が知られている。
2. Description of the Related Art Conventionally, various image control devices have been put into practical use, which control a moving image of an object image or generate a sound effect in accordance with an operation of an operation pad or the like. In addition,
The object image mentioned here refers to a “character” displayed on the game screen, and is moved and displayed on the background screen as a background. This type of device is called a video game or a TV game, and a shooting game that asks a player's reflexes, a game that simulates a virtual reality, and the like are known.

【0003】このようなビデオゲームは、ゲーム操作に
対応したビデオ信号を発生する画像処理部と、この画像
処理部から供給されるビデオ信号を映像表示するディス
プレイとから構成される。画像処理部は、CPU、RO
MおよびRAM等から構成され、例えば、ROMパック
に記憶された画像情報および制御情報を順次読み出し、
画面背景となるバックグラウンド画像をディスプレイに
表示すると共に、ゲーム操作に応じて対応するキャラク
タ(オブジェクト画像)を画面背景上を動画表示し、そ
の動きに応じた効果音を発音するようにしている。
Such a video game is composed of an image processing section for generating a video signal corresponding to a game operation and a display for displaying the video signal supplied from the image processing section. The image processing unit is a CPU, RO
M and RAM etc., for example, sequentially read out the image information and control information stored in the ROM pack,
A background image serving as a screen background is displayed on the display, and a corresponding character (object image) is displayed as a moving image on the screen background in response to a game operation, and a sound effect corresponding to the movement is pronounced.

【0004】[0004]

【発明が解決しようとする課題】さて、上述した従来の
画像制御装置では、多くの場合、操作パッド(外部スイ
ッチ)の操作に応じて表示される画像(バックグラウン
ド画像あるいはオブジェクト画像)の位置や形態を変化
させてゲームを進行させている。操作パッド(外部スイ
ッチ)を用いた入力操作では、例えば、ゲームの形態が
スポーツゲーム等、遊戯者自身がゲームのプレーヤに成
りきって、ボールを打つ、投げる等の動作を疑似的に行
わせるものは、実際に遊戯者が体を動かす訳ではないか
ら、今ひとつ現実味に欠けたものになるという弊害が生
じる。
In the above-described conventional image control device, in many cases, the position of the image (background image or object image) displayed in response to the operation of the operation pad (external switch) and The game is progressing while changing the form. In the input operation using the operation pad (external switch), for example, in the case of a game such as a sports game, the player himself / herself becomes a player of the game and causes the ball to strike or throw a ball in a simulated manner. Does not actually move the body of the player, so that it has a bad effect of becoming unrealistic.

【0005】そこで、この弊害を解消すべく考えられる
ものは、例えば、遊戯者にそのゲームで用いられる操作
子(バット、ラケット等の運動用具)を持たせ、その操
作子の動きを検出して表示画面内でのオブジェクト画像
(ボール像あるいは対戦者像)の動きを制御する方式で
あり、具体的には、周知のクロマキー検出処理により操
作子の位置や動きを検出する手法が考えられる。クロマ
キー検出処理とは、操作子(バット、ラケット等の運動
用具)を特定の色で色付けしておき、遊戯者を撮像した
画像からこの特定色のクロマキー像を抽出し、これによ
って遊戯者が持つ操作子の位置や動きを画面上から検出
するものである。
Therefore, what can be considered to solve this problem is, for example, that a player is provided with an operator (exercise tool such as a bat or a racket) used in the game, and the movement of the operator is detected. This is a method of controlling the movement of the object image (ball image or opponent image) on the display screen, and specifically, a method of detecting the position or movement of the operator by a well-known chroma key detection process is conceivable. The chroma key detection processing is that the operator (exercise equipment such as a bat and a racket) is colored with a specific color, the chroma key image of the specific color is extracted from the image of the player, and the player holds it. The position and movement of the operator are detected on the screen.

【0006】しかしながら、こうしたクロマキー検出処
理に従って、複数の操作子による画像制御を行う場合、
撮像画像中に特定色の操作子が複数存在することになる
から、各クロマキー像と操作子との対応が付かなくなる
という欠点がある。つまり、従来の画像制御装置では、
単に、撮像画像中に存在するクロマキー像を抽出するだ
けであるため、どの操作子がどのように操作されたかを
見分けることができず、これによって誤動作を招致する
等、複数のクロマキー像による画像制御を行うことがで
きないという問題がある。本発明は、上述した事情に鑑
みてなされたもので、撮像画像中に複数のクロマキー像
が存在する場合でも、誤動作することなく、クロマキー
検出処理による画像制御を行うことができる画像制御装
置を提供することを目的としている。
However, in the case of performing image control by a plurality of operators in accordance with such chroma key detection processing,
Since there are a plurality of manipulators of a specific color in the captured image, there is a disadvantage in that each chroma key image and manipulator cannot be associated. That is, in the conventional image control device,
Since the chroma key image existing in the captured image is simply extracted, it is not possible to distinguish which operator is operated and how it is operated, which causes malfunctions, etc. There is a problem that you can not do. The present invention has been made in view of the above-mentioned circumstances, and provides an image control device capable of performing image control by chroma key detection processing without malfunction even when a plurality of chroma key images are present in a captured image. The purpose is to do.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載の発明では、複数の動作モードを有
し、この複数の動作モードのいずれか一つが選択される
モード選択手段と、検出すべき領域を表わす複数の検出
枠を有し、この内から上記選択された動作モードに対応
した検出枠を指定して、これを指定検出枠として撮像画
像内に設定する検出枠設定手段と、前記指定検出枠に従
って前記撮像画像から特定色のクロマキー像を検出する
クロマキー検出手段と、前記指定検出枠内にこのクロマ
キー像が検出された場合、前記動作モードと当該指定検
出枠とに対応付けられた動作指示を発生すると共に、当
該動作指示に従って表示画面を制御する表示制御手段と
を具備することを特徴としている。
In order to achieve the above object, the invention according to claim 1 has a plurality of operation modes, and a mode selection means for selecting any one of the plurality of operation modes. A detection frame setting means that has a plurality of detection frames that represent a region to be detected, specifies a detection frame corresponding to the selected operation mode from among these detection frames, and sets this as a specified detection frame in the captured image. A chroma key detecting means for detecting a chroma key image of a specific color from the captured image in accordance with the designated detection frame; and when the chroma key image is detected in the designated detection frame, the operation mode and the designated detection frame It is characterized by comprising a display control means for generating the attached operation instruction and controlling the display screen in accordance with the operation instruction.

【0008】また、請求項2に記載の発明によれば、前
記検出枠設定手段は、前記複数の検出枠の位置および寸
法を、第1および第2の枠座標からなる対角要素として
記憶することを特徴としている。
According to the second aspect of the invention, the detection frame setting means stores the positions and dimensions of the plurality of detection frames as diagonal elements composed of first and second frame coordinates. It is characterized by that.

【0009】さらに、請求項3に記載の発明にあって
は、複数の動作モードを有し、この複数の動作モードの
いずれか一つが選択されるモード選択手段と、検出すべ
き領域を表わす複数の検出枠を有し、この内から前記選
択された動作モードに対応した検出枠を指定して、これ
を指定検出枠として撮像画像内に設定する検出枠設定手
段と、前記指定検出枠に従って前記撮像画像から特定色
のクロマキー像を検出するクロマキー検出手段と、予め
記憶手段に格納される画像データを読み出して表示画面
上に所定画像を表示する画像発生手段と、前記指定検出
枠内で、前記クロマキー像と前記所定画像との衝突の有
無を検出する衝突検出手段と、この衝突検出手段が前記
クロマキー像と前記所定画像との衝突を検出した場合、
その衝突状態と前記動作モードとに対応付けられた動作
指示を発生し、当該動作指示に応じて前記所定画像の表
示態様を制御する表示制御手段とを具備することを特徴
としている。
Further, in the invention according to the third aspect, there are a plurality of operation modes, and a plurality of operation mode selecting means for selecting any one of the plurality of operation modes and a plurality of areas representing the region to be detected. A detection frame corresponding to the selected operation mode, and a detection frame setting unit that sets the detection frame in the captured image as a specified detection frame; and the detection frame according to the specified detection frame. Chroma key detecting means for detecting a chroma key image of a specific color from the captured image, image generating means for reading image data stored in advance in the storing means and displaying a predetermined image on a display screen, and within the designated detection frame, When collision detection means for detecting the presence or absence of a collision between the chroma key image and the predetermined image, and the collision detection means detects a collision between the chroma key image and the predetermined image,
The display control means is configured to generate an operation instruction associated with the collision state and the operation mode, and control a display mode of the predetermined image according to the operation instruction.

【0010】加えて、請求項4に記載の発明では、複数
の動作モードを有し、この複数の動作モードのいずれか
一つが選択されるモード選択手段と、検出すべき領域を
表わす複数の検出枠を有し、この内から前記選択された
動作モードに対応した検出枠を時分割に指定し、これを
指定検出枠として撮像画像内に設定する検出枠設定手段
と、前記指定検出枠に従って前記撮像画像から特定色の
クロマキー像を検出するクロマキー検出手段と、予め記
憶手段に格納される画像データを読み出して表示画面上
に所定画像を表示する画像発生手段と、前記動作モード
が所定の動作モード下である時に前記指定検出枠内で前
記クロマキー像が検出された場合、前記撮像画像中にお
ける前記クロマキー像の位置変位に応じて前記所定画像
の表示態様を制御する表示制御手段とを具備することを
特徴としている。
In addition, in the invention described in claim 4, a mode selecting means having a plurality of operation modes, and any one of the plurality of operation modes is selected, and a plurality of detections representing a region to be detected. A detection frame setting unit that has a frame and specifies a detection frame corresponding to the selected operation mode in a time-division manner from among the frames, and sets the detection frame as a specified detection frame in the captured image; A chroma key detecting means for detecting a chroma key image of a specific color from a picked-up image, an image generating means for reading out image data stored in advance in a storage means and displaying a predetermined image on a display screen, and the operation mode having a predetermined operation mode When the chroma key image is detected within the designated detection frame when it is below, the display mode of the predetermined image is controlled according to the positional displacement of the chroma key image in the captured image. It is characterized by comprising a that display control means.

【0011】また、請求項5に記載の発明によれば、前
記表示制御手段は、前撮像フレームにおけるクロマキー
像の位置と、現撮像フレームにおけるクロマキー像の位
置との差異の有無により位置変位を検出することを特徴
としている。
According to the invention described in claim 5, the display control means detects the positional displacement based on whether or not there is a difference between the position of the chroma key image in the previous image pickup frame and the position of the chroma key image in the current image pickup frame. It is characterized by doing.

【0012】[0012]

【作用】本発明では、モード選択手段によって選択され
る動作モードに応じて検出枠設定手段が複数の検出枠の
内から検出枠を指定し、これを指定検出枠として撮像画
像内に設定する。そして、クロマキー検出手段がこの指
定検出枠に従って前記撮像画像から特定色のクロマキー
像を検出した場合に、表示制御手段は前記動作モードと
当該指定検出枠とに対応付けられた動作指示を発生する
と共に、当該動作指示に従って表示画面を制御する。こ
の結果、撮像画像中に複数のクロマキー像が存在する場
合でも、誤動作することなく、クロマキー検出処理によ
る画像制御を行うことが可能になる。
According to the present invention, the detection frame setting means specifies the detection frame from among the plurality of detection frames according to the operation mode selected by the mode selection means, and sets this in the picked-up image as the specified detection frame. When the chroma key detection means detects a chroma key image of a specific color from the captured image according to the designated detection frame, the display control means generates an operation instruction associated with the operation mode and the designated detection frame. The display screen is controlled according to the operation instruction. As a result, even if a plurality of chroma key images are present in the captured image, it is possible to perform image control by the chroma key detection processing without malfunction.

【0013】[0013]

【実施例】以下、図面を参照して本発明の実施例につい
て説明する。 A.実施例の概要 図1は、本発明による画像制御装置の全体構成を示す外
観図であり、野球ゲームに適用した一例を図示するもの
である。この図において、1はCCD等の固体撮像素子
を備える撮像部であり、バッターボックス(図示略)上
で構える遊戯者Pを撮像する。ここで、遊戯者Pは、例
えば、クロマキー検出用の操作子として青色に着色され
たバットBによりバッティング動作する一方、足部に青
色に着色されたソックスSを装着する。このソックスS
の意味するところについては後述する。
Embodiments of the present invention will be described below with reference to the drawings. A. Outline of Embodiments FIG. 1 is an external view showing an overall configuration of an image control apparatus according to the present invention, and illustrates an example applied to a baseball game. In this figure, reference numeral 1 denotes an image pickup unit including a solid-state image pickup device such as a CCD, which picks up an image of a player P held on a batter box (not shown). Here, the player P, for example, performs a batting operation with a blue-colored bat B as an operator for detecting a chroma key, while wearing a sock S colored with blue on the foot. This socks S
The meaning of will be described later.

【0014】2は装置本体であり、撮像部1から供給さ
れる撮像信号にクロマキー検出を施し、撮像画像におけ
るバットBあるいはソックスSの位置を抽出する。な
お、撮像画像とは、撮像部1によって撮像される画像を
指し、後の説明では実画像と称する場合もある。また、
装置本体2は、ゲームの背景シーンとなるバックグラウ
ンド画像BGと、このバックグラウンド画像BG上で移
動表示されるオブジェクト画像OBJとを合成し、これ
をコンピュータグラフィック画像(以下、CG画像と称
す)としてディスプレイ3に表示する。ディスプレイ3
に表示されるCG画像は、例えば、バッティング時には
背景シーン上での投手のスローイング動作像と、スロー
イングに応じたボールの飛翔像とから形成され、バッテ
ィング完了後には背景となる「ダイヤモンド」像と、こ
の「ダイヤモンド」上を走塁するキャラクタ像とから形
成される。
Reference numeral 2 denotes a main body of the apparatus, which performs chroma key detection on the image pickup signal supplied from the image pickup section 1 to extract the position of the bat B or the sock S in the picked up image. The captured image refers to an image captured by the image capturing unit 1, and may be referred to as an actual image in the following description. Also,
The device main body 2 synthesizes a background image BG which is a background scene of the game and an object image OBJ which is moved and displayed on the background image BG, and uses this as a computer graphic image (hereinafter referred to as a CG image). Display on display 3. Display 3
The CG image displayed in is formed from, for example, a throwing motion image of a pitcher on a background scene during batting, and a flight image of a ball corresponding to the throwing, and a “diamond” image that becomes the background after completion of batting. It is formed from a character image running on this "diamond".

【0015】ここで、図2〜図4を参照して装置本体2
の動作モードについて説明しておく。装置本体2の動作
は、第1モード〜第3モードからなる。 第1モード 第1モードでは、ゲーム開始時点の画像制御がなされ
る。すなわち、図2に示すように、「スタート」と標記
されたオブジェクト画像OBJ(以下、スタート画面と
称する)によってCG画像を形成すると共に、当該画像
OBJに対応する位置に、クロマキー検出エリアとなる
第1検出枠SF1が設定された撮像画像と合成し、これ
を表示画面としてディスプレイ3に表示する。スタート
画面に対応する第1検出枠SF1内にバットBが位置し
た時、後述する処理に基づきゲームが開始するようにし
ている。このように、第1モードでは、遊戯者Pがディ
スプレイ3に表示されるスタート画面を、バットBでポ
インティングすることで装置本体2がゲーム開始を認識
する。
Here, referring to FIGS. 2 to 4, the apparatus main body 2
The operation mode of will be described. The operation of the apparatus main body 2 includes the first mode to the third mode. First Mode In the first mode, image control at the start of the game is performed. That is, as shown in FIG. 2, a CG image is formed by an object image OBJ (hereinafter referred to as a start screen) marked as “start”, and a chroma key detection area is formed at a position corresponding to the image OBJ. The 1 detection frame SF1 is combined with the set captured image and displayed on the display 3 as a display screen. When the bat B is positioned within the first detection frame SF1 corresponding to the start screen, the game is started based on the processing described later. As described above, in the first mode, the player P points the start screen displayed on the display 3 with the bat B, so that the device body 2 recognizes the start of the game.

【0016】第2モード 第2モードでは、バッティング動作に応じた画像制御が
なされる。この場合、図3に示すように、まず、CG画
像には、バックグラウンド画像BGで形成される背景シ
ーン上に、投手のスローイング動作とこれに応じて変化
するボールの飛翔動作とを表現するオブジェクト画像O
BJが形成される。また、バックグラウンド画像BGの
左上部にゲーム停止を示す「ストップ」領域が表示され
る。一方、撮像画像では、上記「ストップ」領域に対応
した箇所にクロマキー検出エリアとなる第2検出枠SF
2が設けられると共に、バッティング操作されるバット
Bの位置を検出するための第3検出枠SF3とが設けら
れる。
Second Mode In the second mode, image control is performed according to the batting operation. In this case, as shown in FIG. 3, first, in the CG image, an object expressing the throwing motion of the pitcher and the flying motion of the ball that changes in response to the throwing motion on the background scene formed by the background image BG. Image O
BJ is formed. In addition, a “stop” area indicating a game stop is displayed in the upper left portion of the background image BG. On the other hand, in the captured image, the second detection frame SF that becomes the chroma key detection area at the location corresponding to the “stop” area.
2 is provided, and a third detection frame SF3 for detecting the position of the bat B to be batting operated is provided.

【0017】装置本体2は、第3検出枠SF3内で検出
されるバットBの位置に応じてボール像との衝突の可否
を所定タイミング毎に判定し、衝突が検出された時に
は、ミートするタイミング時点でバットB像の重心位置
とボール像の重心位置との差に応じて打撃具合を求め
る。例えば、衝突時点に両重心位置が一致すれば、ジャ
ストミートとして「ホームラン」とするように現実に近
いシミュレーションを行う。なお、装置本体2は、第2
検出枠SF2にバットBが位置した時には、ゲーム動作
を停止させる処理を行う。こうした第2モードでは、撮
像画像は表示されず、CG画像のみが表示画面としてデ
ィスプレイ3に表示される。つまり、ディスプレイ3に
は、投手のスローイング動作に応じて遊戯者P側に近付
いてくるボール像が表示される。
The apparatus main body 2 determines whether or not a collision with the ball image is possible at every predetermined timing according to the position of the bat B detected in the third detection frame SF3, and when the collision is detected, the timing for meeting. At this point, the hitting condition is obtained according to the difference between the center of gravity of the bat B image and the center of gravity of the ball image. For example, if the positions of both centers of gravity coincide with each other at the time of the collision, a simulation close to reality is performed so that a “home run” is set as the just meat. In addition, the device main body 2 is the second
When the bat B is located in the detection frame SF2, processing for stopping the game operation is performed. In such a second mode, the captured image is not displayed and only the CG image is displayed on the display 3 as a display screen. That is, the display 3 displays a ball image approaching the player P side according to the throwing motion of the pitcher.

【0018】第3モード 第3モードでは、走塁動作に対応する画像制御がなされ
る。この場合、図4に示すように、まず、CG画像に
は、バックグラウンド画像BGによって形成される「ダ
イヤモンド」上を走塁するキャラクタ(オブジェクト画
像OBJ)が形成される。また、バックグラウンド画像
BGの左上部にゲーム停止を示す「ストップ」領域が表
示される。一方、撮像画像では、上記「ストップ」領域
に対応した箇所にクロマキー検出エリアとなる第5検出
枠SF5が設けられると共に、ソックスSの位置を検出
する第4検出枠SF4とが設けられる。
Third Mode In the third mode, image control corresponding to the base running motion is performed. In this case, as shown in FIG. 4, a character (object image OBJ) running on a “diamond” formed by the background image BG is first formed in the CG image. In addition, a “stop” area indicating a game stop is displayed in the upper left portion of the background image BG. On the other hand, in the captured image, a fifth detection frame SF5 serving as a chroma key detection area is provided at a position corresponding to the “stop” region, and a fourth detection frame SF4 that detects the position of the sock S is provided.

【0019】装置本体2は、第4検出枠SF4内で検出
されるソックスSの位置変位に応じてキャラクタ(オブ
ジェクト画像OBJ)を走塁させる。つまり、遊戯者P
の足の動きに応じてキャラクタを走塁させるようにす
る。なお、装置本体2は、第5検出枠SF5にバットB
が位置した時には、ゲーム動作を停止させる処理を行
う。こうした第3モードでは、撮像画像は表示されず、
CG画像のみが表示画面としてディスプレイ3に表示さ
れる。
The apparatus main body 2 runs a character (object image OBJ) on the basis of the positional displacement of the sock S detected in the fourth detection frame SF4. That is, the player P
The character makes the base run according to the movement of the foot. In addition, the device main body 2 has a bat B on the fifth detection frame SF5.
When is positioned, processing for stopping the game operation is performed. In such a third mode, the captured image is not displayed,
Only the CG image is displayed on the display 3 as a display screen.

【0020】B.実施例の構成 次に、図5を参照して撮像部1および装置本体2の電気
的構成について説明する。 (1)撮像部1の構成 撮像部1は、構成要素10〜13から構成されている。
10は発振回路であり、8倍オーバーサンプリング信号
8fSCを発生して出力する。11は撮像信号処理部であ
り、8倍オーバーサンプリング信号8fSCを次段のクロ
ックドライバ12に供給すると共に、CCD13から出
力される撮像信号SSをサンプリング画像データDS
変換する。この撮像信号処理部11の構成については後
述する。クロックドライバ12は、発振回路10から供
給される8倍オーバーサンプリング信号8fSCに基づ
き、水平駆動信号、垂直駆動信号、水平/垂直同期信号
および帰線消去信号等の各種タイミング信号を発生する
一方、上記水平駆動信号および垂直駆動信号に対応する
撮像駆動信号を発生してCCD13に供給する。CCD
13は、この撮像駆動信号に従って対象物を撮像してな
る撮像信号SSを発生する。
B. Configuration of Embodiments Next, the electrical configurations of the imaging unit 1 and the apparatus body 2 will be described with reference to FIG. (1) Configuration of Image Pickup Section 1 The image pickup section 1 is composed of the constituent elements 10 to 13.
An oscillating circuit 10 generates and outputs an 8 times oversampling signal 8f SC . An image pickup signal processing unit 11 supplies the 8 × oversampling signal 8f SC to the clock driver 12 in the next stage and converts the image pickup signal SS output from the CCD 13 into sampled image data D S. The configuration of the image pickup signal processing unit 11 will be described later. The clock driver 12 generates various timing signals such as a horizontal drive signal, a vertical drive signal, a horizontal / vertical sync signal, and a blanking signal based on the 8 times oversampling signal 8f SC supplied from the oscillator circuit 10. An image pickup drive signal corresponding to the horizontal drive signal and the vertical drive signal is generated and supplied to the CCD 13. CCD
13 generates an image pickup signal SS obtained by picking up an image of an object according to the image pickup drive signal.

【0021】撮像信号処理部11は、CCD13から供
給される撮像信号SSをコンディショニングした後、A
/D変換してサンプリング画像データDSを発生するも
のであり、その概略構成について図6を参照して説明す
る。図6において、11aはサンプリング回路であり、
上述したクロックドライバ12から供給される4倍オー
バーサンプリング信号4fSCに応じて撮像信号SSをサ
ンプルホールドして次段へ出力する。11bはサンプリ
ングされた撮像信号SSを所定レベルに変換して出力す
るAGC(自動利得制御)回路である。11cは、撮像
信号SSのガンマ特性をγ=1/2.2に補正して出力
するγ補正回路である。11dは、このガンマ補正され
た撮像信号SSを8ビット長のサンプリング画像データ
Sに変換して出力するA/D変換回路である。サンプ
リング画像データDSは、後述するビデオ信号処理部2
0に供給される。11eはビデオ信号処理部20から供
給されるコンポジット映像信号DCVをアナログビデオ信
号SVに変換して前述したディスプレイ3に供給するD
/A変換回路である。
The image pickup signal processing section 11 conditions the image pickup signal SS supplied from the CCD 13 and then A
The S / D conversion is performed to generate the sampled image data D S , and its schematic configuration will be described with reference to FIG. In FIG. 6, 11a is a sampling circuit,
The image pickup signal SS is sampled and held according to the 4 × oversampling signal 4f SC supplied from the clock driver 12 and output to the next stage. Reference numeral 11b is an AGC (automatic gain control) circuit for converting the sampled image pickup signal SS into a predetermined level and outputting it. Reference numeral 11c is a γ correction circuit which corrects the gamma characteristic of the image pickup signal SS to γ = 1 / 2.2 and outputs it. Reference numeral 11d denotes an A / D conversion circuit that converts the gamma-corrected image pickup signal SS into 8-bit length sampling image data D S and outputs the sampled image data D S. The sampling image data D S is the video signal processing unit 2 described later.
Supplied to zero. Reference numeral 11e denotes D which converts the composite video signal D CV supplied from the video signal processing unit 20 into an analog video signal S V and supplies the analog video signal S V to the display 3 described above.
A / A conversion circuit.

【0022】(2)装置本体2の構成 次に、図5および図7〜図10を参照して装置本体2の
構成について説明する。装置本体2は、ビデオ信号処理
部20、画像処理部30、位置検出処理部40および制
御部50から構成されており、以下、これら各部につい
て詳述する。 ビデオ信号処理部20の構成 ビデオ信号処理部20は、撮像部1から供給されるサン
プリング画像データD Sに対して色差変換処理とクロマ
キー検出処理とを施し、その結果を後述する位置検出処
理部40に供給する。また、この処理部20は、後述す
る画像処理部30から供給される画像処理データDSP
コンポジット映像信号DCVに変換し、前述したD/A変
換回路11e(図6参照)に供給する。なお、この画像
処理データDSPとは、バックグラウンド画像BGと、当
該バックグラウンド画像BG上に移動表示されるオブジ
ェクト画像OBJとを合成したCG画像を形成するデー
タである。
(2) Structure of the device main body 2 Next, referring to FIG. 5 and FIGS.
The configuration will be described. The device main body 2 is for video signal processing.
Unit 20, image processing unit 30, position detection processing unit 40, and control unit
It is composed of the control unit 50.
Will be described in detail. Configuration of Video Signal Processing Unit 20 The video signal processing unit 20 includes a video signal processing unit 20 that is supplied from the imaging unit 1.
Pulling image data D Color difference conversion processing and chroma for S
Key detection processing is performed and the result is the position detection processing described later.
It is supplied to the processing unit 40. The processing unit 20 will be described later.
Image processing data D supplied from the image processing unit 30SPTo
Composite video signal DCVConverted to D / A
It is supplied to the replacement circuit 11e (see FIG. 6). This image
Processing data DSPIs the background image BG and
Objects that are moved and displayed on the background image BG
Data to form a CG image that is a composite of the target image OBJ
It is

【0023】ここで、図7を参照して上記各処理を具現
するビデオ信号処理部20の構成について説明する。図
7において、20aは色分離フィルタであり、サンプリ
ング画像データDSを信号Ye(イエロー)、信号Cy
(シアン)および信号G(グリーン)に色分離して次段
へ出力する。20bは映像信号中における変化点の前後
に対して輝度変調を施して画質調整する輪郭補正回路で
ある。20cはホワイトバランス回路であり、各信号Y
e,Cy,Gを規定レベルに設定して出力する。20d
はバンドパスフィルタで構成される分別フィルタであ
り、各信号Ye,Cyを信号R(赤)および信号B
(青)に分別して出力する。20eは三原色を表わす信
号R,G,Bを各8ビット長の輝度信号Y、色差信号B
−Y,R−Yに変換するマトリクス回路である。
Here, the configuration of the video signal processing unit 20 which embodies the above processes will be described with reference to FIG. In FIG. 7, reference numeral 20a denotes a color separation filter, which supplies the sampling image data D S to the signal Ye (yellow) and the signal Cy.
(Cyan) and signal G (green) are color-separated and output to the next stage. Reference numeral 20b is a contour correction circuit that adjusts the image quality by performing brightness modulation before and after the change point in the video signal. 20c is a white balance circuit for each signal Y
e, Cy, and G are set to specified levels and output. 20d
Is a separation filter composed of a bandpass filter, which converts each signal Ye and Cy into a signal R (red) and a signal B.
(Blue) is sorted and output. Reference numeral 20e designates signals R, G and B representing the three primary colors, a luminance signal Y and a color difference signal B each having a length of 8 bits.
This is a matrix circuit for converting into -Y and RY.

【0024】20fはクロマキー信号発生回路であり、
色差信号B−Y,R−Yが所定レベルに達した場合に
「H」レベルのクロマキー検出信号CROを発生する。
すなわち、この回路20fでは、図8に示すように、色
差B−Yの最大/最小レベルB−YMAX,B−YMINと、
色差R−Yの最大/最小レベルR−YMAX,R−YMIN
が予め定められており、これらレベルによって規定され
た色差領域Eに色差信号B−Y,R−Yが収る場合、特
定色を検出した旨を表わす「H」レベルのクロマキー検
出信号CROを出力する。なお、この実施例において
は、上記領域Eを「青色」としており、具体的には、遊
戯者Pが把持する青色に着色されたバットBあるいは足
に装着されたソックスSを検出した時に「H」レベルの
クロマキー検出信号CROを生成する。
Reference numeral 20f denotes a chroma key signal generation circuit,
When the color difference signals BY and RY reach a predetermined level, the "H" level chroma key detection signal CRO is generated.
That is, in the circuit 20f, as shown in FIG. 8, the color difference B-Y maximum / minimum level B-Y MAX, and B-Y MIN,
The maximum / minimum levels RY MAX and R-Y MIN of the color difference R-Y are predetermined, and when the color difference signals B-Y and R-Y fall within the color difference area E defined by these levels, An "H" level chroma key detection signal CRO indicating that a specific color has been detected is output. In this embodiment, the area E is “blue”, and specifically, “H” is detected when the bat B colored blue by the player P or the socks S attached to the foot is detected. , To generate a chroma key detection signal CRO.

【0025】次に、再び図7に戻り、ビデオ信号処理部
20の構成について説明を続ける。20gは、VDP3
1(後述する)から供給される画像処理データDSP(R
GB信号)を輝度信号Y、色差信号B−Y,R−Yに変
換するマトリクス回路である。20hはセレクタであ
り、位置検出処理部40から供給される選択信号SLに
応じてマトリクス回路20eの出力、あるいはマトリク
ス回路20hの出力のいずれか一方を選択して次段へ供
給する。20iはモジュレータである。モジュレータ2
0iは、セレクタ20hを介して供給される輝度信号
Y、色差信号B−Y,R−Yに各種同期信号(水平/垂
直同期信号および帰線消去信号)を重畳したディジタル
コンポジット映像信号DCVを生成する。
Next, returning to FIG. 7 again, the description of the configuration of the video signal processing section 20 will be continued. 20g is VDP3
Image processing data D SP (R
This is a matrix circuit for converting a (GB signal) into a luminance signal Y and color difference signals BY and RY. Reference numeral 20h denotes a selector, which selects either the output of the matrix circuit 20e or the output of the matrix circuit 20h according to the selection signal SL supplied from the position detection processing unit 40 and supplies it to the next stage. 20i is a modulator. Modulator 2
0i is a digital composite video signal D CV in which various synchronizing signals (horizontal / vertical synchronizing signal and blanking signal) are superimposed on the luminance signal Y and the color difference signals BY and RY supplied via the selector 20h. To generate.

【0026】上記構成によれば、ビデオ信号処理部20
は、撮像部1から供給されるサンプリング画像データD
Sに対して特定色のクロマキー検出を施し、その結果を
クロマキー検出信号CROとして位置検出処理部40
(後述する)側へ供給する。また、この処理部20は、
画像処理部30側から入力される画像処理データD
SP(RGB信号)、あるいは撮像部1から供給されるサ
ンプリング画像データDSのいずれかを選択信号SLに
応じて選択し、選択されたデータをコンポジット映像信
号DCVに変換して出力する。なお、選択信号SLは、後
述する位置検出処理部40から供給される信号である。
According to the above configuration, the video signal processing section 20
Is the sampling image data D supplied from the imaging unit 1.
Chroma key detection of a specific color is performed on S , and the result is used as a chroma key detection signal CRO for the position detection processing unit 40.
Supply to the side (described later). Further, the processing unit 20
Image processing data D input from the image processing unit 30 side
Either SP (RGB signal) or sampling image data D S supplied from the image pickup unit 1 is selected according to the selection signal SL, and the selected data is converted into a composite video signal D CV and output. The selection signal SL is a signal supplied from the position detection processing unit 40 described later.

【0027】画像処理部30の構成 次に、画像処理部30の構成について説明する。画像処
理部30は、ビデオディスプレイプロセッサ(以下、V
DPと略す)31とVRAM32とから構成される。こ
のVDP31の基本的機能は、VRAM32に格納され
るバックグラウンド画像データDBGおよびオブジェクト
画像データDOBを制御部50(後述する)側から供給さ
れる制御信号SCに応じて読み出し、これを1走査ライ
ン毎のドット表示色を表わす画像処理データDSPを発生
することにある。以下、図9を参照して各部の構成につ
いて詳述する。
Configuration of Image Processing Unit 30 Next, the configuration of the image processing unit 30 will be described. The image processing unit 30 is a video display processor (hereinafter, V
It is composed of a DP (abbreviated as DP) 31 and a VRAM 32. The basic function of the VDP 31 is to read the background image data D BG and the object image data D OB stored in the VRAM 32 according to a control signal SC supplied from the control unit 50 (described later) side, and perform one scan. This is to generate image processing data D SP that represents the dot display color for each line. Hereinafter, the configuration of each unit will be described in detail with reference to FIG.

【0028】図9において、31aはCPUインタフェ
ース回路であり、CPU51(後述する)のバスを介し
て供給される制御信号SCに応じて構成要素31b〜3
1dに各種制御指示を与える。制御信号SCは、バック
グラウンド画像BGおよびオブジェクト画像OBJを表
示制御する各種コマンドや、VRAM32にDMA転送
されるバックグラウンド画像データDBGおよびオブジェ
クト画像データDOBから形成される。31bはVRAM
コントロール回路であり、構成要素31a,31cおよ
び31dから供給される制御信号に対応してVRAM3
2とのデータ授受を行う。
In FIG. 9, reference numeral 31a denotes a CPU interface circuit, which is a constituent element 31b to 3 according to a control signal SC supplied via a bus of a CPU 51 (described later).
Various control instructions are given to 1d. The control signal SC is formed from various commands for displaying and controlling the background image BG and the object image OBJ, and the background image data D BG and the object image data D OB which are DMA-transferred to the VRAM 32. 31b is VRAM
A VRAM 3 which is a control circuit and corresponds to a control signal supplied from the components 31a, 31c and 31d.
Exchange data with 2.

【0029】すなわち、上記CPUインタフェース回路
31aからDMA転送する旨の制御信号SCを受けた場
合には、当該回路31aを介してDMA転送されるバッ
クグラウンド画像データDBG、あるいはオブジェクト画
像データDOBを所定の記憶エリアに格納する。また、バ
ックグラウンドコントロール回路31cからバックグラ
ウンド画像データDBGを読み出す旨の指示を受けた場
合、対応するデータDBGを読み出して回路31c側に返
送する。これと同様に、オブジェクトコントロール回路
31dからオブジェクト画像データDOBを読み出す旨の
指示を受けた場合、対応するデータDOBを読み出して回
路31d側に返送する。
That is, when the control signal SC for the DMA transfer is received from the CPU interface circuit 31a, the background image data D BG or the object image data D OB DMA-transferred through the circuit 31a is received. Store in a predetermined storage area. When an instruction to read the background image data D BG is received from the background control circuit 31c, the corresponding data D BG is read and returned to the circuit 31c side. Similarly, when an instruction to read the object image data D OB is received from the object control circuit 31d, the corresponding data D OB is read and returned to the circuit 31d side.

【0030】バックグラウンドコントロール回路31c
は、回路31aを介して制御部50側から与えられるバ
ックグラウンド表示制御コマンドに基づき、VRAMコ
ントロール回路31bを経由して読み出されたバックグ
ラウンド画像データDBGに対して表示位置を指定した
後、色差データ処理回路31eへ供給する。
Background control circuit 31c
Specifies the display position for the background image data D BG read via the VRAM control circuit 31b based on the background display control command given from the control unit 50 side via the circuit 31a, It is supplied to the color difference data processing circuit 31e.

【0031】オブジェクトコントロール回路31dは、
回路31aを介して制御部50側から与えられるオブジ
ェクトテーブルデータTOBをオブジェクトテーブルRA
M31fに書き込む。このオブジェクトテーブルデータ
OBとは、表示画面におけるオブジェクト画像データD
OBの表示位置を指定する座標データである。また、当該
回路31dは、オブジェクト表示制御コマンドに応じて
VRAM32から読み出されたオブジェクト画像データ
OBに対し、上記オブジェクトテーブルデータTOBを参
照して表示位置を求めると共に、1走査ライン分のオブ
ジェクト画像データDOBをラインバッファRAM31g
に一時記憶する。ラインバッファRAM31gに一時記
憶されるオブジェクト画像データDOBは、1走査毎に更
新される。このRAM31gから読み出されたオブジェ
クト画像データDOBは、色差データ処理回路31eに供
給される。
The object control circuit 31d is
The object table data T OB given from the control unit 50 side via the circuit 31a is stored in the object table RA.
Write to M31f. The object table data T OB is the object image data D on the display screen.
This is coordinate data that specifies the display position of the OB . Further, the circuit 31d refers to the object table data T OB for the object image data D OB read from the VRAM 32 in response to the object display control command, obtains the display position, and the object for one scanning line is obtained. Image data D OB line buffer RAM 31g
Temporarily store in. The object image data D OB temporarily stored in the line buffer RAM 31g is updated every scan. The object image data D OB read from the RAM 31g is supplied to the color difference data processing circuit 31e.

【0032】色差データ処理回路31eは、バックグラ
ウンドコントロール回路31cおよびオブジェクトコン
トロール回路31dから供給される8ビット長の画像デ
ータDBG,DOBを、周知のカラールックアップテーブル
RAM31hを参照して各4ビット長のR信号,G信号
およびB信号から形成される画像処理データDSPに変換
して出力する。また、色差データ処理回路31eは、画
像処理データDSP(RGB信号)の他、信号YSBGお
よび信号YSOBJを発生する。この信号YSBGおよ
び信号YSOBJは、現在出力している画像処理データ
SPがバックグラウンド画像データDBGに対応するもの
であるか、あるいはオブジェクト画像データDOBに対応
するものであるかを表わす信号である。例えば、現在出
力している画像処理データDSPがバックグラウンド画像
データDBGに対応するものである時には、信号YSBG
が「H(ハイ)」となり、信号YSOBJが「L(ロ
ウ)」になる。一方、これとは逆に画像処理データDSP
がオブジェクト画像データD OBに対応するものであれ
ば、信号YSBGが「L」となり、信号YSOBJが
「H」になる。
The color difference data processing circuit 31e has a background
Sound control circuit 31c and object controller
Image data of 8-bit length supplied from the troll circuit 31d
Data DBG, DOBA well-known color lookup table
Referring to the RAM 31h, R and G signals each having a length of 4 bits
And image processing data D formed from the B signalSPConversion to
And output. In addition, the color difference data processing circuit 31e
Image processing data DSPIn addition to (RGB signal), the signal YSBG and
And signal YSOBJ. This signal YSBG and
Signal YSOBJ is the image processing data currently being output.
DSPIs background image data DBGCorresponding to
Or object image data DOBCorresponding to
This is a signal that indicates whether or not to do. For example,
Image processing data DSPHas a background image
Data DBGSignal YSBG when
Becomes “H” and the signal YSOBJ becomes “L”.
C) ”. On the other hand, conversely to this, the image processing data DSP
Is the object image data D OBThat corresponds to
Signal YSBG becomes “L” and signal YSOBJ becomes
It becomes "H".

【0033】このように、画像処理部30では、制御部
50側からDMA転送されるバックグラウンド画像デー
タDBGおよびオブジェクト画像データDOBをVRAM3
2に格納しておき、CPU51から供給される制御信号
SC(各種表示制御コマンド)に応じてこのVRAM3
2から画像データDBGあるいは画像データDOBを読み出
し、これを1走査ライン毎のドット表示色を表わす画像
処理データDSPを発生すると共に、当該画像処理データ
SPの属性を表わす信号YSBGおよびYSOBJを出
力する。
As described above, in the image processing unit 30, the background image data D BG and the object image data D OB DMA-transferred from the control unit 50 side are stored in the VRAM 3.
2 in accordance with a control signal SC (various display control commands) supplied from the CPU 51.
Reads the image data D BG or the image data D OB from 2, while generating the image processing data D SP representing the dot display color of one scan line per this signal YSBG and YSOBJ representing the attributes of the image processing data D SP Is output.

【0034】位置検出処理部40の構成 図5に示す位置検出処理部40は、複数のロジック素子
を配列してなるゲートアレイ、ラインバッファおよびワ
ークRAMとから構成されており、後述する制御部50
の指示の下にサンプリング画像データDS中に含まれる
クロマキー像と、オブジェクト画像データDOBによって
形成されるオブジェクト画像OBJとの衝突座標位置
や、これら画像の重心位置等を予め定められたロジック
に基づいて論理演算する。上記ラインバッファ(図示
略)は、ビデオ信号処理部20から供給されるクロマキ
ー検出信号CROを一時記憶する。ワークRAMには、
ゲートアレイによって論理演算された各種の演算結果が
一時記憶されるようになっている。
Configuration of Position Detection Processing Unit 40 The position detection processing unit 40 shown in FIG. 5 comprises a gate array formed by arranging a plurality of logic elements, a line buffer and a work RAM, and a control unit 50 described later.
Under the instruction, the collision coordinate position between the chroma key image included in the sampled image data D S and the object image OBJ formed by the object image data D OB , the center of gravity position of these images, and the like are set in a predetermined logic. Based on the logical operation. The line buffer (not shown) temporarily stores the chroma key detection signal CRO supplied from the video signal processing unit 20. In the work RAM,
Various operation results obtained by logical operation by the gate array are temporarily stored.

【0035】この位置検出処理部40は、上述したVD
P31から供給される信号YSBGおよびYSOBJに
基づき、前述した選択信号SLを発生してビデオ信号処
理部20に与え、サンプリング画像データDS(実画
像)と画像処理データDSP(CG画像)との重なり具
合、つまり、画面表示される画像の優先順位(前後関
係)を制御する。さらに、処理部40は、制御部50の
指示の下に前述した撮像信号処理部11、ビデオ信号処
理部20およびVDP31へそれぞれレジスタコントロ
ール信号SREGを供給し、各部レジスタのデータセット
/リセットを制御する。
This position detection processing unit 40 is the same as the above-mentioned VD.
Based on the signals YSBG and YSOBJ supplied from P31, the above-mentioned selection signal SL is generated and given to the video signal processing unit 20, and the sampling image data D S (actual image) and the image processing data D SP (CG image) are generated. The degree of overlap, that is, the priority order (front-back relationship) of the images displayed on the screen is controlled. Further, the processing unit 40 supplies a register control signal S REG to the above-mentioned imaging signal processing unit 11, video signal processing unit 20 and VDP 31 under the instruction of the control unit 50, and controls the data set / reset of each unit register. To do.

【0036】次に、図10を参照して位置検出処理部4
0のワークRAMの記憶エリアについて説明する。この
図において、E1は初期画面エリアであり、水平方向
(走査ライン)当り96ドット、垂直方向に96ライン
から形成される初期画面のデータを一時記憶する。初期
画面のデータとは、ゲーム開始に先立って撮像されたシ
ーン内に存在するクロマキー検出結果を指す。シーン内
にクロマキー検出色(例えば、青色)の物体が存在した
場合、前述したバットBあるいはソックスS(図1参
照)の一部と誤認する虞がある。そこで、初期画面エリ
アE1に一時記憶されるデータは、クロマキー検出され
たドット位置をバットBあるいはソックスS(図1参
照)と誤認しないようにするため、当該ドット位置を不
感帯とする際に用いられる。
Next, referring to FIG. 10, the position detection processing unit 4
The storage area of the work RAM 0 will be described. In this figure, E1 is an initial screen area for temporarily storing data of an initial screen formed of 96 dots in the horizontal direction (scanning line) and 96 lines in the vertical direction. The data of the initial screen refers to the chroma key detection result existing in the scene captured before the start of the game. If an object of a chroma key detection color (for example, blue) exists in the scene, it may be mistakenly recognized as a part of the bat B or socks S (see FIG. 1) described above. Therefore, the data temporarily stored in the initial screen area E1 is used when the dot position detected by the chroma key is not mistaken for the bat B or the sock S (see FIG. 1) when the dot position is set as the dead zone. .

【0037】E2は水平方向96ドット、垂直方向96
ラインで形成される処理画面エリアであり、実画像にお
いてクロマキー検出されるバットB(あるいはソックス
S)像が1フレーム毎に更新記憶される。E3〜E4
は、それぞれ1フレーム毎に更新される処理画面でのバ
ットB(あるいはソックスS)像の上端/下端位置を一
時記憶する上端座標エリア、下端座標エリアである。E
5〜E6は、それぞれ1フレーム毎に更新される処理画
面でのバットB(あるいはソックスS)像の左端/右端
位置を一時記憶する左端座標エリア、右端座標エリアで
ある。E7は第1の衝突座標エリアである。第1の衝突
座標エリアE1とは、クロマキー像とオブジェクト画像
との重なり(衝突)が最初に検出される走査ライン中の
交点を、処理画面上の座標として表現したものである。
また、第2の衝突座標エリアE8は、クロマキー像とオ
ブジェクト画像との重なりが最後に検出される走査ライ
ン中の交点を、処理画面上の座標として表現したもので
ある。
E2 is 96 dots in the horizontal direction and 96 dots in the vertical direction.
This is a processing screen area formed by lines, and the bat B (or socks S) image that is chroma key detected in the actual image is updated and stored for each frame. E3 to E4
Is an upper end coordinate area and a lower end coordinate area for temporarily storing the upper end / lower end positions of the bat B (or sock S) image on the processing screen updated for each frame. E
Reference numerals 5 to E6 are a left end coordinate area and a right end coordinate area for temporarily storing the left end / right end positions of the bat B (or socks S) image on the processing screen updated for each frame. E7 is the first collision coordinate area. The first collision coordinate area E1 represents the intersection point in the scanning line where the overlap (collision) of the chroma key image and the object image is first detected as coordinates on the processing screen.
Further, the second collision coordinate area E8 expresses the intersection point in the scanning line where the overlap between the chroma key image and the object image is finally detected as the coordinate on the processing screen.

【0038】E9は重心座標エリアであり、実画像にて
クロマキー検出されるクロマキー像の面積に基づき算出
される重心位置を処理画面上の座標位置が記憶される。
E10は、クロマキー像の面積が記憶される面積エリア
である。この面積エリアE10にセットされる面積は、
ブロック個数で表わされる。ここで言うブロックとは、
処理画面において水平方向6ドット、垂直方向2ライン
からなる12ドット領域を指す。この12ドット領域か
ら形成されるブロック中に、「6ドット」以上のクロマ
キー検出があった場合、そのブロックがクロマキー像の
面積として見做される。
E9 is a barycentric coordinate area, in which the barycentric position calculated based on the area of the chroma key image detected by the chroma key in the actual image is stored as the coordinate position on the processing screen.
E10 is an area area in which the area of the chroma key image is stored. The area set in this area E10 is
It is represented by the number of blocks. The block here is
A 12-dot area consisting of 6 dots in the horizontal direction and 2 lines in the vertical direction on the processing screen. When chromakey detection of "6 dots" or more is detected in the block formed from the 12-dot region, the block is regarded as the area of the chromakey image.

【0039】制御部50の構成 次に、再び図5を参照して制御部50の構成について説
明する。制御部50は、構成要素51〜57から構成さ
れる。CPU51は装置本体2の操作パネルに配設され
る各種操作子をキースキャンし、これに応じて生成され
る操作子信号KSに応じて装置各部を制御するものであ
り、その動作の詳細については後述する。このCPU5
1は、内部タイマを備え、当該タイマによってカウント
されるゲームカウンタ値に基づきゲーム進行を管理す
る。また、CPU51は、周知のDMAコントローラを
備えており、ゲーム動作に必要な各種データ(バックグ
ラウンド画像データDBGやオブジェクト画像データ
OB)を前述した画像処理部30へDMA転送するよう
構成されている。さらに、CPU51は、ゲーム動作に
応じて画像制御に必要な制御信号SCを発生して各処理
部へ動作指示を与える。52はRAMであり、CPU5
1のワークエリアとして各種演算結果やフラグ値が一時
記憶される。53はCPU51の動作を管理するOS
(オペレーションシステム)プログラムが記憶されるR
OMである。54はCPU51の制御の下に装置全体の
動作を規定するシステムクロックを発生するシステムク
ロック回路である。
Structure of Control Unit 50 Next, the structure of the control unit 50 will be described with reference to FIG. 5 again. The control unit 50 is composed of components 51 to 57. The CPU 51 performs a key scan on various operators provided on the operation panel of the apparatus body 2 and controls each part of the apparatus according to the operator signal KS generated in response to the key scan. It will be described later. This CPU5
1 has an internal timer, and manages the game progress based on the game counter value counted by the timer. The CPU 51 also includes a well-known DMA controller, and is configured to DMA-transfer various data (background image data D BG and object image data D OB ) necessary for game operation to the above-described image processing unit 30. There is. Further, the CPU 51 generates a control signal SC necessary for image control according to the game operation and gives an operation instruction to each processing unit. 52 is a RAM, and the CPU 5
As a work area 1, various calculation results and flag values are temporarily stored. 53 is an OS that manages the operation of the CPU 51
(Operating system) R in which the program is stored
OM. Reference numeral 54 is a system clock circuit which generates a system clock that regulates the operation of the entire device under the control of the CPU 51.

【0040】55は装置本体2に対して挿脱自在に装着
されるゲームカートリッジであり、ROM55aと第1
音源回路55bとから構成されている。ROM55aに
は、CPU51にロードされるアプリケーションプログ
ラムが記憶される。なお、この実施例では、前述したよ
うに、打撃練習をシミュレートするゲームプログラムが
記憶されている。55bは第1音源回路であり、CPU
51側から位置検出処理部40を介して供給される楽音
制御データに応じてゲーム動作に同期したゲーム効果音
を合成し、これを楽音信号としてCPU51へ出力す
る。56は第2音源回路であり、上記第1音源回路55
bと同様に、CPU51側から供給される楽音制御デー
タに応じてゲーム進行に対応した楽曲、例えば、オープ
ニングやエンディング等の楽曲を楽音合成して出力す
る。57はサウンドシステムであり、上記第1音源回路
55bおよび第2音源回路56から供給される楽音信号
に対してノイズ除去等のフィルタリングを施した後、こ
れを増幅して出力する。
Reference numeral 55 denotes a game cartridge which is removably attached to the apparatus main body 2 and includes a ROM 55a and a first cartridge.
The sound source circuit 55b. An application program loaded into the CPU 51 is stored in the ROM 55a. In this embodiment, as described above, the game program for simulating the batting practice is stored. 55b is a first tone generator circuit, which is a CPU
The game sound effect synchronized with the game operation is synthesized according to the musical sound control data supplied from the 51 side through the position detection processing unit 40, and this is output to the CPU 51 as a musical sound signal. 56 is a second tone generator circuit, and is the first tone generator circuit 55.
Similar to b, music corresponding to the progress of the game, for example, music such as opening and ending is synthesized and outputted in accordance with the music control data supplied from the CPU 51 side. Reference numeral 57 denotes a sound system, which filters the musical tone signals supplied from the first tone generator circuit 55b and the second tone generator circuit 56, such as noise removal, and then amplifies and outputs them.

【0041】C.実施例の動作 次に、上記構成による実施例の動作として、まず、位置
検出処理部40の動作について説明した後、続いて、制
御部50(CPU51)の動作について説明する。 (1)位置検出処理部40の動作 ここでは、図11〜図17を参照して位置検出処理部4
0の動作について説明する。処理部40では、制御部5
0(CPU51)が指示する動作モードに対応して定め
られる検出枠(第1検出枠SF1〜第5検出枠SF5)
に基づき、バットB像あるいはソックスS像をクロマキ
ー検出し、検出したクロマキー像(バットB像あるいは
ソックスS像)とオブジェクト画像OBJとの衝突座標
位置や、これら画像の重心位置を算出するようにしてい
る。こうした処理を施す処理部40は、特に、前述した
第1モード〜第3モードに応じて第1検出枠SF1〜第
5検出枠SF5のいずれかを時分割に指定し、指定した
検出枠においてバットBあるいはソックスSをクロマキ
ー検出するから、撮像画像内に複数のクロマキー像が存
在する場合でも、誤動作することなく、クロマキー検出
処理できるようなっている。以下、その詳細について各
モード毎に説明する。
C. Operation of the Embodiment Next, as the operation of the embodiment having the above-described configuration, the operation of the position detection processing unit 40 will be described first, and then the operation of the control unit 50 (CPU 51) will be described. (1) Operation of the position detection processing unit 40 Here, with reference to FIGS.
The operation of 0 will be described. In the processing unit 40, the control unit 5
0 (CPU 51) specifies a detection frame corresponding to an operation mode (first detection frame SF1 to fifth detection frame SF5)
Chroma key detection of the bat B image or socks S image is performed based on the above, and the collision coordinate position between the detected chroma key image (bat B image or socks S image) and the object image OBJ and the center of gravity position of these images are calculated. There is. In particular, the processing unit 40 that performs such processing designates one of the first detection frame SF1 to the fifth detection frame SF5 in time division according to the above-described first mode to third mode, and performs the bat in the designated detection frame. Since the B or socks S are detected by the chroma key detection, the chroma key detection processing can be performed without malfunction even when there are a plurality of chroma key images in the captured image. The details will be described below for each mode.

【0042】メインルーチンの動作 a.第1モードにおける動作 まず、装置本体2に電源が投入され、CPU51側から
システムリセットを表わす制御信号SCが位置検出処理
部40に供給されたとする。そうすると、位置検出処理
部40は、上記制御信号SCに基づいて図11に示すメ
インルーチンを実行してステップSA1に処理を進め
る。ステップSA1では、自身の内部レジスタをリセッ
ト、あるいは初期値をセットするイニシャライズを行
う。具体的には、CPU51から供給される制御信号S
Cに基づき、レジスタMODEに第1モードを表わす値
「1」をセットすると共に、レジスタnに第1検出枠S
F1を表わす値「1」をセットする。これにより、処理
部40の動作が第1モードに設定される。さらに、この
ステップSA1では、撮像信号処理部11、ビデオ信号
処理部20およびVDP31へそれぞれレジスタセット
を指示するレジスタコントロール信号SREGを供給し、
次のステップSA2に進む。
Operation of Main Routine a. Operation in First Mode First, it is assumed that the apparatus main body 2 is powered on and the control signal SC indicating the system reset is supplied from the CPU 51 side to the position detection processing unit 40. Then, the position detection processing section 40 executes the main routine shown in FIG. 11 based on the control signal SC, and advances the processing to step SA1. In step SA1, the internal register of itself is reset, or initialization is performed to set an initial value. Specifically, the control signal S supplied from the CPU 51
Based on C, the value "1" representing the first mode is set in the register MODE, and the first detection frame S is set in the register n.
The value "1" representing F1 is set. As a result, the operation of the processing unit 40 is set to the first mode. Further, in step SA1, a register control signal S REG for instructing a register set is supplied to the image pickup signal processing unit 11, the video signal processing unit 20 and the VDP 31, respectively.
Go to next step SA2.

【0043】次に、ステップSA2に進むと、処理部4
0は「初期画面マップ」を作成するか否かを判断する。
ここで、例えば、「初期画面マップ」が作成されていな
い場合、判断結果は「YES」となり、次のステップS
A3に処理を進める。この「初期画面マップ」とは、ゲ
ーム開始に先立って、撮像画像内に検出対象であるバッ
トBあるいはソックスS(図1参照)以外に同色の物体
が存在するか否かを確認するために使用するものであ
り、その詳細については追って説明する。そして、ステ
ップSA3に進むと、複数フレーム分の撮像画像から抽
出したクロマキー検出結果を重ね合わせ、これをワーク
RAMの初期画面エリアE1(図10参照)に格納し、
初期画面内に存在するクロマキー検出ブロック(後述す
る)を「不感帯」と見做すための「初期画面マップ」を
作成する。
Next, in step SA2, the processing unit 4
0 determines whether or not to create an “initial screen map”.
Here, for example, when the “initial screen map” is not created, the determination result is “YES”, and the next step S
The process proceeds to A3. This “initial screen map” is used to confirm whether or not there is an object of the same color other than the bat B or the socks S (see FIG. 1) which is the detection target in the captured image before the game starts. The details will be described later. Then, when it proceeds to step SA3, the chroma key detection results extracted from the captured images of a plurality of frames are overlaid and stored in the initial screen area E1 (see FIG. 10) of the work RAM,
An “initial screen map” is created to consider a chroma key detection block (described later) existing in the initial screen as a “dead zone”.

【0044】「初期画面マップ」が作成されると、位置
検出処理部40は、次のステップSA4に処理を進め
る。なお、「初期画面マップ」が予め用意されている場
合には、上記ステップSA2の判断結果が「NO」とな
り、この場合、ステップSA4に進む。ステップSA4
では、クロマキー像とオブジェクト画像OBJとの重な
りの有無を識別する衝突フラグCFが「1」であるか否
かを判断する。衝突フラグCFとは、表示画面上でバッ
トBのクロマキー像とオブジェクト画像OBJとの衝突
の有無を表わすフラグであり、衝突状態にある時に
「1」となり、そうでない場合には「0」となる。
When the "initial screen map" is created, the position detection processing section 40 advances the processing to the next step SA4. If the "initial screen map" is prepared in advance, the result of the determination in step SA2 is "NO", and in this case, the process proceeds to step SA4. Step SA4
Then, it is determined whether or not the collision flag CF that identifies whether or not the chroma key image and the object image OBJ overlap each other is “1”. The collision flag CF is a flag indicating whether or not there is a collision between the chroma key image of the bat B and the object image OBJ on the display screen, and is “1” when the collision state is present, and is “0” otherwise. .

【0045】ここでは、未だ、第1検出枠SF1が定ま
っていないから、判断結果は「NO」となり、ステップ
SA5に処理を進める。ステップSA5では、上記レジ
スタnの値に対応してレジスタM(1)に格納される第
1検出枠SF1(図2参照)の座標値(x1,y1),
(x2,y2)を読み出す。なお、この座標値(x1
1),(x2,y2)は、図2に示すように、第1検出
枠SF1の枠サイズおよび枠位置を指定する対角要素に
相当するものであり、後述するCPUメインルーチンに
よってCPU51から位置検出処理部40側に転送され
るデータである。
Here, since the first detection frame SF1 has not been determined yet, the determination result is "NO", and the process proceeds to step SA5. In step SA5, the coordinate values (x 1 , y 1 ) of the first detection frame SF1 (see FIG. 2) stored in the register M (1) corresponding to the value of the register n,
Read (x 2 , y 2 ). This coordinate value (x 1 ,
As shown in FIG. 2, y 1 ), (x 2 , y 2 ) correspond to diagonal elements that specify the frame size and frame position of the first detection frame SF1, and are determined by the CPU main routine described later. The data is transferred from the CPU 51 to the position detection processing unit 40 side.

【0046】こうして、第1モードにおける第1検出枠
SF1が設定されると、処理部40はステップSA6に
処理を進め、レジスタX,Yの値をゼロリセットする。
なお、このレジスタX,Yには、水平方向96ドット、
垂直方向96ラインで形成される画面座標に相当する値
が処理内容に応じて順次セットされる。次いで、図12
に示すステップSA7に進むと、位置検出処理部40
は、ラインバッファに一時記憶されたクロマキー検出信
号CROに対してブロック単位毎のクロマキー検出を施
す。ブロック単位のクロマキー検出とは、ラインバッフ
ァから読み出したクロマキー検出信号CROを水平方向
6ドット、垂直方向2ラインからなるブロックに区分け
し、「H」レベルのクロマキー検出信号CROがブロッ
ク当り「6ドット」以上存在した時に、当該ブロックの
属性を「クロマキー有り」と見做すものである。こうし
たクロマキー検出の結果は、前述した処理画面エリアE
2(図10参照)にブロック属性としてストアされ、こ
れが「処理画面マップ」となる。
In this way, when the first detection frame SF1 in the first mode is set, the processing section 40 advances the processing to step SA6, and resets the values of the registers X and Y to zero.
The registers X and Y have horizontal 96 dots,
A value corresponding to the screen coordinates formed by 96 lines in the vertical direction is sequentially set according to the processing content. Then, FIG.
When it proceeds to step SA7 shown in FIG.
Performs chroma key detection for each block on the chroma key detection signal CRO temporarily stored in the line buffer. Chromakey detection in block units means that the chromakey detection signal CRO read from the line buffer is divided into blocks each consisting of 6 dots in the horizontal direction and 2 lines in the vertical direction, and the chromakey detection signal CRO at the “H” level is “6 dots” per block. When the block exists, the attribute of the block is regarded as “with chroma key”. The result of such chroma key detection is the processing screen area E described above.
2 (see FIG. 10) is stored as a block attribute, and this becomes a “processing screen map”.

【0047】ここで、例えば、いま、図2に示すよう
に、遊戯者Pがスタート画面を形成するオブジェクト画
像OBJにバットBを位置させたとする。そうすると、
このオブジェクト画像OBJに対応して撮像画像中にア
サインされる第1検出枠SF1内で当該バットB像がク
ロマキー検出される。そして、上述したブロック単位毎
のクロマキー検出が完了すると、位置検出処理部40
は、ステップSA8に処理を進め、クロマキー検出され
たバットB像とオブジェクト画像OBJ(スタート画
面)との衝突(重なり)を検出して衝突座標を求める一
方、衝突フラグCFを「1」にセットする。続いて、ス
テップSA9に進むと、処理部40は、レジスタXの値
を1インクリメントしてブロック番号を歩進させる。次
いで、ステップSA10に進むと、歩進させたレジスタ
Xの値が「96」、つまり、1走査ライン分の処理が完
了したか否かを判断する。ここで、レジスタXの値が
「96」に達していない場合には、判断結果が「NO」
となり、1走査ライン分の処理が完了する迄、上記ステ
ップSA7〜SA9の動作を繰り返す。
Here, for example, it is assumed that the player P positions the bat B on the object image OBJ forming the start screen, as shown in FIG. Then,
The bat B image is chroma-key detected in the first detection frame SF1 assigned in the captured image corresponding to the object image OBJ. Then, when the chroma key detection for each block unit described above is completed, the position detection processing unit 40
Advances the processing to step SA8 to detect the collision (overlap) between the chroma key detected bat B image and the object image OBJ (start screen) to obtain the collision coordinates, while setting the collision flag CF to "1". . Subsequently, in step SA9, the processing unit 40 increments the value of the register X by 1 and advances the block number. Next, in step SA10, it is determined whether or not the value of the register X that has been stepped is "96", that is, whether the processing for one scanning line has been completed. Here, when the value of the register X has not reached “96”, the determination result is “NO”.
Then, the operations of steps SA7 to SA9 are repeated until the processing for one scanning line is completed.

【0048】そして、いま、1走査ライン分の処理が完
了したとする。そうすると、上記ステップSA10の判
断結果が「YES」となり、ステップSA11に進む。
ステップSA11では、レジスタXの値を再びゼロリセ
ットすると共に、レジスタYの値を1インクリメントし
て走査ラインを垂直方向に更新する。そして、ステップ
SA12に進むと、処理部40はレジスタYの値が「9
6」であるか否かを判断する。ここで、レジスタYの値
が「96」に達していない場合には、1フレーム分の走
査が完了していないとして判断結果が「NO」になり、
上述したステップSA7〜SA11を繰り返す。そし
て、1フレーム分の走査が完了した時に判断結果が「Y
ES」となり、処理部40はステップSA13へ処理を
進める。
Now, it is assumed that the processing for one scanning line is completed. Then, the determination result of step SA10 is “YES”, and the process proceeds to step SA11.
In step SA11, the value of the register X is reset to zero again and the value of the register Y is incremented by 1 to update the scan line in the vertical direction. Then, when the processing proceeds to step SA12, the processing unit 40 sets the value of the register Y to "9".
6 ”is determined. Here, when the value of the register Y has not reached "96", it is determined that the scanning for one frame is not completed, and the determination result is "NO".
The above steps SA7 to SA11 are repeated. When the scanning for one frame is completed, the determination result is "Y
ES ”, and the processing unit 40 advances the processing to step SA13.

【0049】ステップSA13では、上記ステップSA
7においてクロマキー検出されたブロックに基づき、ク
ロマキー像の左端/右端座標および上端/下端座標を算
出し、これらをワークRAMの記憶エリアE3〜E6
(図8参照)に記憶する一方、クロマキー検出されたブ
ロック個数から当該クロマキー像の面積を求める。な
お、記憶エリアE3〜E4は、それぞれ1フレーム毎に
更新される検出枠内でのクロマキー像の上端/下端位置
を一時記憶し、記憶エリアE5〜E6は、それぞれ1フ
レーム毎に更新される検出枠内でのクロマキー像の左端
/右端位置を一時記憶する。また、ブロック個数から算
出される面積は、記憶エリアE10に格納される。
In step SA13, the above step SA
7, the left edge / right edge coordinates and the upper edge / lower edge coordinates of the chroma key image are calculated based on the blocks detected by the chroma key, and these are stored in the storage areas E3 to E6 of the work RAM.
(See FIG. 8), the area of the chroma key image is calculated from the number of blocks detected by the chroma key. The storage areas E3 to E4 temporarily store the upper and lower end positions of the chroma key image within the detection frame that is updated for each frame, and the storage areas E5 to E6 are detected for each frame. The left and right edge positions of the chroma key image within the frame are temporarily stored. The area calculated from the number of blocks is stored in the storage area E10.

【0050】以上のようにして第1検出枠SF1内にお
けるクロマキー像が検出されると、処理部40はステッ
プSA14に処理を進め、当該クロマキー像の重心位置
を求める。続いて、ステップSA15では、レジスタM
ODEの値が「1」、すなわち、第1モードであるか否
かを判断する。この場合、第1モードであるから、判断
結果は「YES」となり、ステップSA16に処理を進
める。ステップSA16では、衝突フラグCFが「1」
であるか否かを判断する。ここで、上述したステップS
A8において衝突が検出された場合、判断結果は「YE
S」となり、次のステップSA17に進む。
When the chroma key image in the first detection frame SF1 is detected as described above, the processing section 40 advances the processing to step SA14 to obtain the barycentric position of the chroma key image. Then, in step SA15, the register M
It is determined whether the value of ODE is "1", that is, whether the mode is the first mode. In this case, since it is the first mode, the determination result is “YES”, and the process proceeds to step SA16. In step SA16, the collision flag CF is "1".
Or not. Here, the above-mentioned step S
If a collision is detected in A8, the judgment result is "YE
S ”, and the process proceeds to the next step SA17.

【0051】ステップSA17では、CPU51に対し
て割込み信号を出力し、続いて、ステップSA18を介
してレジスタnの値、つまり、現在の動作モード下にお
ける指定検出枠値をCPU51側に転送する。そして、
この後、処理部40は前述したステップSA4に処理を
戻す。なお、上記ステップSA16において、衝突フラ
グCFが「0」の場合、すなわち、第1検出枠SF1内
にバットBがポインティングされない状態では、判断結
果が「NO」となり、ステップSA18を介して前述し
たステップSA4〜SA16を繰り返すことになる。
At step SA17, an interrupt signal is output to the CPU 51, and then the value of the register n, that is, the designated detection frame value under the current operation mode is transferred to the CPU 51 side via step SA18. And
After that, the processing unit 40 returns the process to step SA4 described above. In step SA16, when the collision flag CF is “0”, that is, when the bat B is not pointed in the first detection frame SF1, the determination result is “NO”, and the above-described steps through step SA18 are performed. SA4 to SA16 will be repeated.

【0052】b.第2モードにおける動作 第1検出枠SF1内にバットBがポインティングされ、
ステップSA4に進むと、この時、衝突フラグCFは
「1」であるから、判断結果は「YES」となり、ステ
ップSA19に進む。ステップSA19では、モード遷
移に応じてCPU51から処理部40側に転送される第
2検出枠SF2の座標(x3,y3),(x 4,y4)と、
第3検出枠SF3の座標(x5,y5),(x6,y6)と
をレジスタM(1)、レジスタM(2)に格納する。続
いて、ステップSA20では、CPU51から転送され
るモード値、この場合、第2モードを表わす「2」をレ
ジスタMODEに格納する。
B. Operation in the second mode The bat B is pointed in the first detection frame SF1,
At step SA4, at this time, the collision flag CF is
Since it is "1", the judgment result is "YES", and the step
Proceed to step SA19. In step SA19, the mode change
Transferred from the CPU 51 to the processing unit 40 side in response to the transfer
2 Coordinates of detection frame SF2 (x3, Y3), (X 4, yFour)When,
Coordinates of the third detection frame SF3 (xFive, YFive), (X6, Y6)When
Are stored in the register M (1) and the register M (2). Continued
In step SA20, the data is transferred from the CPU 51.
Mode value, in this case "2" indicating the second mode.
Store in Dista MODE.

【0053】次いで、ステップSA21に進むと、処理
部40は、衝突フラグCFをゼロリセットし、続くステ
ップSA22では、レジスタnの値を「1」にセットす
る。この後、処理部40は、前述したステップSA5〜
SA14を介して第2検出枠SF2(図3参照)内にお
けるクロマキー検出を行い、ステップSA15に処理を
進める。そして、ステップSA15では、レジスタMO
DEの値が「1」であるか否かを判断するが、この場
合、当該レジスタMODEには「2」がセットされてい
るため、判断結果は「NO」になり、ステップSA23
に進む。ステップSA23では、レジスタnに格納され
る指定検出枠値を1インクリメントし、指定検出枠を第
3検出枠SF3に設定する。次に、ステップSA24に
進むと、レジスタnの値が「3」であるか否かを判断す
るが、この場合、指定検出枠値は「2」であるから、判
断結果が「NO」となり、前述したステップSA16以
降に処理を進める。
Next, in step SA21, the processing section 40 resets the collision flag CF to zero, and in the following step SA22, sets the value of the register n to "1". After that, the processing unit 40 performs the above-described steps SA5 to SA5.
Chroma key detection is performed in the second detection frame SF2 (see FIG. 3) via SA14, and the process proceeds to step SA15. Then, in step SA15, the register MO
Whether or not the value of DE is "1" is determined. In this case, since "2" is set in the register MODE, the determination result is "NO", and step SA23 is performed.
Proceed to. In step SA23, the designated detection frame value stored in the register n is incremented by 1, and the designated detection frame is set to the third detection frame SF3. Next, in step SA24, it is determined whether or not the value of the register n is "3". In this case, the designated detection frame value is "2", so the determination result is "NO", The process proceeds to step SA16 and subsequent steps described above.

【0054】これにより、第2モード下における第3検
出枠SF3内でのクロマキー検出が開始される。そし
て、この第3検出枠SF3内において、バットBのクロ
マキー像とボール像を形成するオブジェクト画像OBJ
との衝突が前述したステップSA8において検出される
と、ステップSA24の判断結果が「NO」となってス
テップSA25に進み、レジスタnに格納される指定検
出枠値を「1」にプリセットする。次いで、この後、ス
テップSA16の判断結果が「YES」となって、CP
U51へ割り込み信号を送出し(ステップSA17)、
続いて、レジスタnの値を送出する(ステップSA1
8)。
As a result, the chroma key detection in the third detection frame SF3 under the second mode is started. Then, within this third detection frame SF3, an object image OBJ that forms a chroma key image and a ball image of the bat B
When the collision with the above is detected in step SA8 described above, the determination result of step SA24 becomes "NO", and the process proceeds to step SA25 to preset the designated detection frame value stored in the register n to "1". Then, after this, the determination result of step SA16 becomes "YES", and CP
Send an interrupt signal to U51 (step SA17),
Then, the value of the register n is transmitted (step SA1
8).

【0055】c.第3モードにおける動作 第3検出枠SF3内でバットBのクロマキー像とオブジ
ェクト画像OBJ(ボール像)とが衝突した後にステッ
プSA4に進むと、この時、衝突フラグCFは「1」で
あるから、判断結果は「YES」となり、ステップSA
19に進む。ステップSA19では、モード遷移に応じ
てCPU51から処理部40側に転送される第4検出枠
SF4の座標(x7,y7),(x8,y8)と、第5検出
枠SF5の座標(x9,y9),(x10,y10)とをレジ
スタM(1)、レジスタM(2)に格納する。続いて、
ステップSA20では、CPU51から転送されるモー
ド値、この場合、第3モードを表わす「3」をレジスタ
MODEに格納する。
C. Operation in Third Mode When the chroma key image of the bat B and the object image OBJ (ball image) collide with each other in the third detection frame SF3 and the process proceeds to step SA4, the collision flag CF is “1” at this time, The determination result is “YES”, and step SA
Proceed to 19. In step SA19, the coordinates (x 7 , y 7 ), (x 8 , y 8 ) of the fourth detection frame SF4 and the coordinates of the fifth detection frame SF5 transferred from the CPU 51 to the processing unit 40 side according to the mode transition. (X 9 , y 9 ) and (x 10 , y 10 ) are stored in the register M (1) and the register M (2). continue,
In step SA20, the mode value transferred from CPU 51, in this case, "3" representing the third mode is stored in register MODE.

【0056】次いで、ステップSA21に進むと、処理
部40は、衝突フラグCFをゼロリセットし、続くステ
ップSA22では、レジスタnに格納される指定検出枠
値を「1」にリセットする。この後、処理部40は、前
述したステップSA5〜SA14を介して第4検出枠S
F4(図4参照)内におけるクロマキー検出を行う。第
4検出枠SF4では、当該クロマキー像の座標位置重心
を検出して、ステップSA15に処理を進める。そし
て、ステップSA15では、レジスタMODEの値が
「1」であるか否かを判断するが、この場合、当該レジ
スタMODEには「3」がセットされているため、判断
結果は「NO」になり、ステップSA23に進む。ステ
ップSA23では、レジスタnの値を1インクリメント
し、指定検出枠を第5検出枠SF5に設定する。そし
て、これ以後、同様に、当該第5検出枠SF5内におけ
るクロマキー検出が行われる。
Next, in step SA21, the processing unit 40 resets the collision flag CF to zero, and in the following step SA22, the designated detection frame value stored in the register n is reset to "1". After that, the processing unit 40 performs the fourth detection frame S through steps SA5 to SA14 described above.
Chroma key detection in F4 (see FIG. 4) is performed. In the fourth detection frame SF4, the center of gravity of the coordinate position of the chroma key image is detected, and the process proceeds to step SA15. Then, in step SA15, it is determined whether or not the value of the register MODE is "1". In this case, since "3" is set in the register MODE, the determination result is "NO". , Proceeds to step SA23. In step SA23, the value of the register n is incremented by 1, and the designated detection frame is set to the fifth detection frame SF5. Then, thereafter, similarly, the chroma key detection in the fifth detection frame SF5 is performed.

【0057】初期画面マップ作成ルーチンの動作 次に、図13を参照して初期画面マップ作成ルーチンの
動作について説明する。上述したように、ゲーム開始当
初に、初期画面マップが作成されていない場合、位置検
出処理部40はステップSA3(図11参照)に処理を
進め、図13に示す初期画面マップ作成ルーチンを実行
してステップSB1に処理を進める。ステップSB1で
は、内部レジスタにセットされるサンプリング回数nを
読み出す。サンプリング回数nとは、撮像部1から供給
されるクロマキー検出信号CROを何フレーム分取り込
むかを表わすものである。次いで、ステップSB2に進
むと、レジスタX,Yの値をゼロリセットし、次のステ
ップSB3に進む。ステップSB3では、ラインバッフ
ァに書き込まれたクロマキー検出信号CROの内、X方
向(水平方向)の6ドット分、Y方向(垂直方向)の2
ライン分、すなわち、1ブロック分を読み出す。
Operation of Initial Screen Map Creating Routine Next, the operation of the initial screen map creating routine will be described with reference to FIG. As described above, when the initial screen map is not created at the beginning of the game, the position detection processing unit 40 proceeds to step SA3 (see FIG. 11) and executes the initial screen map creation routine shown in FIG. Then, the process proceeds to step SB1. In step SB1, the sampling number n set in the internal register is read. The number of times of sampling n represents how many frames the chroma key detection signal CRO supplied from the imaging unit 1 is captured. Next, when proceeding to step SB2, the values of the registers X and Y are reset to zero, and then proceeding to the next step SB3. In step SB3, of the chroma key detection signal CRO written in the line buffer, 6 dots in the X direction (horizontal direction) and 2 in the Y direction (vertical direction).
The line, that is, one block is read.

【0058】次に、ステップSB4に進むと、この読み
出した1ブロック中に「6ドット」以上の「H」レベル
のクロマキー検出信号CROが存在するか否かを判断す
る。ここで、「6ドット」以上存在しなければ、「クロ
マキー無し」として判断結果が「NO」となり、ステッ
プSB5に進む。ステップSB5では、そのブロック属
性を「0」として次のステップSB7へ処理を進める。
一方、これに対し、「6ドット」以上存在すると、「ク
ロマキー有り」とされて、判断結果が「YES」とな
り、ステップSB6に進む。ステップSB6では、その
ブロック属性を「1」にセットし、次のステップSB7
へ処理を進める。ステップSB7では、最初のフレーム
であるか否かを判断する。ここで、最初にサンプリング
したフレームであると、判断結果は「YES」となり、
ステップSB8に進む。
Next, proceeding to step SB4, it is judged whether or not there is a "H" level chroma key detection signal CRO of "6 dots" or more in this read one block. If "6 dots" or more does not exist, the determination result is "no chroma key" and the determination result is "NO", and the process proceeds to step SB5. In step SB5, the block attribute is set to "0" and the process proceeds to the next step SB7.
On the other hand, when "6 dots" or more are present, it is determined that "chroma key is present", the determination result is "YES", and the process proceeds to step SB6. In step SB6, the block attribute is set to "1", and the next step SB7
Proceed to. In step SB7, it is determined whether or not it is the first frame. Here, if it is the first frame sampled, the determination result is “YES”,
It proceeds to step SB8.

【0059】ステップSB8に進むと、位置検出処理部
40は、現レジスタX,Yの値に応じて初期画面エリア
E1へ判定したブロック属性をストアする。そして、こ
の後、ステップSB9に進み、レジスタXの値を1イン
クリメントし、指定ブロックの番号を歩進させる。次
に、ステップSB10に進むと、この歩進された指定ブ
ロックの番号が「96」、つまり、1走査(水平)ライ
ン分完了したか否かを判断する。ここで、完了していな
い場合には、判断結果が「NO」となり、ステップSB
11に進む。ステップSB11では、レジスタYの値が
「96」、つまり、1フレーム分終了したか否かを判断
する。ここで、1フレーム分の処理が終了していない場
合には、判断結果が「NO」となり、前述したステップ
SB3に戻る。これにより、ステップSB3〜SB6が
繰り返され、次のブロック属性が判定される。
In step SB8, the position detection processing unit 40 stores the determined block attribute in the initial screen area E1 according to the values of the current registers X and Y. Then, after that, the process proceeds to Step SB9, the value of the register X is incremented by 1, and the number of the designated block is incremented. Next, in step SB10, it is determined whether or not the number of the stepped designated block is "96", that is, one scanning (horizontal) line is completed. Here, if not completed, the determination result is “NO”, and step SB
Proceed to 11. In step SB11, it is determined whether the value of the register Y is "96", that is, whether one frame has been completed. Here, if the processing for one frame is not completed, the determination result is “NO”, and the process returns to step SB3 described above. As a result, steps SB3 to SB6 are repeated and the next block attribute is determined.

【0060】そして、例えば、いま、1走査(水平)ラ
イン分のブロック属性の判定が完了したとする。そうす
ると、ステップSB10の判断結果が「YES」とな
り、処理部40はステップSB13へ処理を進める。ス
テップSB13では、レジスタXをゼロリセットする一
方、レジスタYの値を1インクリメントして走査ライン
を更新する。そして、この後、再び、ステップSB11
を介してステップSB3以降のブロック判定がなされ
る。次いで、1フレーム分のブロック属性について判定
が完了すると、上述したステップSB11の判断結果が
「YES」となり、ステップSB12に進む。ステップ
SB12では、サンプリング回数nが設定回数に達した
か否かを判断する。
Then, for example, it is assumed that the determination of the block attribute for one scanning (horizontal) line is completed. Then, the determination result of step SB10 becomes "YES", and the processing unit 40 advances the process to step SB13. In step SB13, the register X is reset to zero, and the value of the register Y is incremented by 1 to update the scan line. Then, after this, again, step SB11
Block determination from step SB3 onward is performed via. Next, when the determination of the block attribute for one frame is completed, the above-mentioned determination result of step SB11 becomes "YES", and the process proceeds to step SB12. In step SB12, it is determined whether the sampling number n has reached the set number.

【0061】ここで、設定回数に達していない場合に
は、判断結果が「NO」となり、ステップSB14へ処
理を進める。ステップSB14では、サンプリング回数
nを歩進させ、再び前述したステップSB2以降を実行
する。こうして1回目の初期画面マップが作成され、2
回目の初期画面マップの作成を行う過程で、ステップS
B7に進むと、ここでの判断結果が「NO」となり、ス
テップSB15に進む。ステップSB15では、先にス
トアされた対応ブロック属性をレジスタX,Yの値に応
じて初期画面エリアE1から読み出す。次いで、ステッ
プSB16に進むと、先のブロック属性と、現在判定さ
れたブロック属性との論理和(OR処理)を求める。続
いて、ステップSB8では、この論理和を新たなブロッ
ク属性としてレジスタX,Yの値に基づき初期画面エリ
アE1にストアする。そして、サンプリング回数nに対
応した複数フレーム分の論理和が生成されると、上述し
たステップSB12の判断結果が「YES」となり、こ
のルーチンを終了し、位置検出処理部40の処理は前述
したメインルーチンへ復帰する。
If the set number of times has not been reached, the determination result is "NO" and the process proceeds to step SB14. In step SB14, the number of times of sampling n is incremented, and the above-mentioned step SB2 and subsequent steps are executed again. In this way, the first initial screen map is created,
In the process of creating the initial screen map for the second time, step S
When proceeding to B7, the determination result here becomes "NO", and the routine proceeds to step SB15. In step SB15, the corresponding block attribute stored previously is read from the initial screen area E1 according to the values of the registers X and Y. Next, in step SB16, a logical sum (OR process) of the previous block attribute and the currently determined block attribute is obtained. Then, in step SB8, this logical sum is stored as a new block attribute in the initial screen area E1 based on the values of the registers X and Y. When a logical sum of a plurality of frames corresponding to the number of times of sampling n is generated, the above-mentioned determination result of step SB12 becomes “YES”, this routine ends, and the processing of the position detection processing unit 40 performs the above-mentioned main processing. Return to routine.

【0062】処理画面マップ作成ルーチンの動作 以上のようにして初期画面マップが作成されると、位置
検出処理部40はステップSA6を介して図14に示す
処理画面マップ作成ルーチンを実行してステップSC1
に処理を進める。ステップSC1では、ラインバッファ
に書き込まれたクロマキー検出信号CROの内、X方向
(水平方向)6ドット、Y方向(垂直方向)2ラインか
らなる1ブロックを読み出す。次いで、ステップSC2
に進むと、その読み出した1ブロック内に「6ドット」
以上の「H」レベルのクロマキー検出信号CROが存在
するか否かを判断する。ここで、「6ドット」以上存在
しなければ、「クロマキー無し」として判断結果が「N
O」となり、ステップSC3に進む。ステップSC3で
は、そのブロック属性を「0」として次のステップSC
4へ処理を進める。ステップSC4では、この判定され
たブロック属性をレジスタX,Yの値に基づき処理画面
エリアE2(図10参照)にストアする。
Operation of Processed Screen Map Creation Routine When the initial screen map is created as described above, the position detection processing section 40 executes the processed screen map creation routine shown in FIG. 14 through step SA6 and executes step SC1.
Proceed to. In step SC1, one block consisting of 6 dots in the X direction (horizontal direction) and 2 lines in the Y direction (vertical direction) is read from the chroma key detection signal CRO written in the line buffer. Then, step SC2
If you proceed to, read "6 dots" in one block.
It is determined whether or not the above "H" level chroma key detection signal CRO is present. If "6 dots" or more does not exist, it is determined that "no chroma key is present" and the determination result is "N.
"O" and the process proceeds to step SC3. At step SC3, the block attribute is set to "0" and the next step SC
Processing proceeds to 4. In step SC4, the determined block attribute is stored in the processing screen area E2 (see FIG. 10) based on the values of the registers X and Y.

【0063】一方、上記ステップSC2の判断結果が
「YES」となった場合、すなわち、1ブロック内に
「6ドット」以上の「H」レベルのクロマキー検出信号
CROが存在する時には、処理部40はステップSC5
に処理を進める。ステップSC5では、リジェクトスイ
ッチSRがオン操作されているか否かを判断する。この
リジェクトスイッチSRとは、装置本体2の操作パネル
に配設されるスイッチであり、そのスイッチ操作に応じ
て「不感帯」を設けるか否かを設定するものである。こ
こで、当該スイッチSRがオン設定されている場合に
は、初期画面マップに記憶されたクロマキー検出ブロッ
クを「不感帯」と見做すようにする。
On the other hand, when the result of the determination in step SC2 is "YES", that is, when there is a "H" level chroma key detection signal CRO of "6 dots" or more in one block, the processing section 40 Step SC5
Proceed to. In step SC5, it is determined whether or not the reject switch SR has been turned on. The reject switch SR is a switch arranged on the operation panel of the apparatus main body 2, and is for setting whether or not to provide a "dead zone" according to the switch operation. Here, when the switch SR is turned on, the chroma key detection block stored in the initial screen map is regarded as a “dead zone”.

【0064】すなわち、上記ステップSC5において、
リジェクトスイッチSRがオン設定されている場合に
は、判断結果が「YES」となり、次のステップSC6
に進む。ステップSC6では、初期画面エリアE1から
レジスタX,Yの値に応じて対応するブロック属性を読
み出す。次いで、ステップSC7に進むと、初期画面エ
リアE1から読み出したブロック属性が「1」であるか
否かを判断する。ここで、当該ブロック属性が「1」で
ある時、その判断結果は「YES」となり、上述したス
テップSC3に進み、ブロック属性を「0」に変更し、
その後、ステップSC4を介して、この変更されたブロ
ック属性をレジスタX,Yの値に応じて処理画面エリア
E2に書き込む。この結果、初期画面マップに記憶され
たクロマキー検出ブロックが「不感帯」に設定される。
That is, in step SC5,
When the reject switch SR is set to ON, the determination result is "YES", and the next step SC6
Proceed to. At step SC6, the block attribute corresponding to the values of the registers X and Y is read from the initial screen area E1. Next, in step SC7, it is determined whether the block attribute read from the initial screen area E1 is "1". Here, when the block attribute is “1”, the determination result is “YES”, the process proceeds to step SC3 described above, and the block attribute is changed to “0”,
Then, the changed block attribute is written in the processing screen area E2 in accordance with the values of the registers X and Y via step SC4. As a result, the chroma key detection block stored in the initial screen map is set to the "dead zone".

【0065】なお、上記リジェクトスイッチSRがオン
設定されない場合、つまり、「不感帯」を設定しない時
には、ステップSC5の判断結果が「NO」となり、ス
テップSC8に進む。ステップSC8では、上述したス
テップSC2において判定された結果に基づき、対応す
るブロックの属性を「1」に設定し、続いて、ステップ
SC4を介してそのブロック属性をレジスタX,Yの値
に応じて処理画面エリアE2に書き込む。
When the reject switch SR is not set to ON, that is, when the "dead zone" is not set, the determination result of step SC5 is "NO", and the routine proceeds to step SC8. In step SC8, the attribute of the corresponding block is set to "1" based on the result determined in step SC2 described above, and then the block attribute is set in accordance with the values of the registers X and Y through step SC4. Write in the processing screen area E2.

【0066】衝突座標検出ルーチンの動作 次に、図15を参照して衝突座標検出ルーチンの動作に
ついて説明する。上述したように処理画面マップが作成
されると、位置検出処理部40はステップSA7(図1
2参照)を介して衝突座標検出ルーチンを実行する。こ
のルーチンでは、撮像画像中からクロマキー検出される
バットB像とCG画像中におけるオブジェクト画像OB
Jとの衝突の有無を検出し、衝突を検出した場合には表
示画面上における衝突座標を求める一方、前述した衝突
フラグCFを「1」に設定する。以下、こうした衝突座
標検出ルーチンの内容について示す。
Operation of Collision Coordinate Detection Routine Next, the operation of the collision coordinate detection routine will be described with reference to FIG. When the processing screen map is created as described above, the position detection processing unit 40 performs step SA7 (see FIG. 1).
2), the collision coordinate detection routine is executed. In this routine, the bat B image and the object image OB in the CG image that are chroma key detected from the captured image
The presence or absence of a collision with J is detected, and when the collision is detected, the collision coordinates on the display screen are obtained, while the aforementioned collision flag CF is set to "1". The contents of such a collision coordinate detection routine will be described below.

【0067】まず、当該ルーチンが実行されると、処理
部40はステップSD1に処理を進め、検出枠の位置を
指定する検出枠座標を、レジスタM(n)から読み出
し、これをレジスタx1,y1およびレジスタx2,y2
セットする。なお、レジスタM(n)に格納される検出
枠座標は、レジスタnに格納される指定検出枠値によっ
て指定される。すなわち、第1モード下では、レジスタ
M(1)に格納される第1検出枠SF1(図2参照)の
座標値(x1,y1),(x2,y2)が指定される。ま
た、第2モード下においては、レジスタM(1)に格納
される第2検出枠SF2(図3参照)の座標値(x3
3),(x4,y4)、あるいはレジスタM(2)に格
納される第3検出枠SF3(図3参照)の座標値
(x5,y5),(x6,y6)が指定される。さらに、第
3モード下においては、レジスタM(1)に格納される
第4検出枠SF4(図4参照)の座標値(x7,y7),
(x8,y8)、あるいはレジスタM(2)に格納される
第5検出枠SF5(図4参照)の座標値(x9,y9),
(x10,y10)が指定される。
First, when the routine is executed, the processing section 40 advances the processing to step SD1, reads out the detection frame coordinates designating the position of the detection frame from the register M (n), and stores this in the register x 1 , Set to y 1 and registers x 2 and y 2 . The detection frame coordinates stored in the register M (n) are designated by the designated detection frame value stored in the register n. That is, in the first mode, the coordinate values (x 1 , y 1 ) and (x 2 , y 2 ) of the first detection frame SF1 (see FIG. 2) stored in the register M (1) are designated. In addition, in the second mode, the coordinate value (x 3 , of the second detection frame SF2 (see FIG. 3) stored in the register M (1) is stored.
y 3), (x 4, y 4), or the coordinate value of the third detection frame SF3 (see Fig. 3) stored in the register M (2) (x 5, y 5), (x 6, y 6) Is specified. Furthermore, in the third mode, the coordinate values (x 7 , y 7 ) of the fourth detection frame SF4 (see FIG. 4) stored in the register M (1),
(X 8 , y 8 ) or the coordinate values (x 9 , y 9 ) of the fifth detection frame SF5 (see FIG. 4) stored in the register M (2),
(X 10 , y 10 ) is designated.

【0068】次いで、ステップSD2に進むと、処理部
40は処理画面エリアE2(図10参照)からレジスタ
X,Yの値に対応するブロック属性を読み出し、続くス
テップSD3,SD4では、レジスタX,Yの値に応じ
て読み出されるブロック属性が、レジスタx1,y1およ
びレジスタx2,y2に各々セットされた指定検出枠内に
あるか否かを判断する。ここで、レジスタX,Yの値が
指定検出枠内になければ、ステップSD3,SD4の判
断結果は「NO」となる。この場合、クロマキー像とオ
ブジェクト画像OBJとの衝突の有無を検出する必要が
ないから、一旦、このルーチンを終了する。
Next, in step SD2, the processing section 40 reads the block attributes corresponding to the values of the registers X and Y from the processing screen area E2 (see FIG. 10), and in the subsequent steps SD3 and SD4, the registers X and Y are registered. It is determined whether or not the block attribute read according to the value of is within the designated detection frame set in the registers x 1 and y 1 and the registers x 2 and y 2 , respectively. Here, if the values of the registers X and Y are not within the designated detection frame, the determination result of steps SD3 and SD4 is "NO". In this case, it is not necessary to detect the presence or absence of a collision between the chroma key image and the object image OBJ, so this routine is once ended.

【0069】一方、レジスタX,Yの値が指定検出枠内
にある時には、ステップSD3,SD4の判断がいずれ
も「YES」となり、ステップSD5に処理を進める。
そして、ステップSD5に進むと、レジスタX,Yの値
に応じて読み出されたブロック属性が「1」、すなわ
ち、クロマキー像であるか否かを判断する。ここで、ブ
ロック属性が「1」でない場合には、判断結果が「N
O」となり、衝突が起こり得ないとして一旦このルーチ
ンを終了する。
On the other hand, when the values of the registers X and Y are within the designated detection frame, the determinations at steps SD3 and SD4 are both "YES", and the process proceeds to step SD5.
Then, in step SD5, it is determined whether or not the block attribute read according to the values of the registers X and Y is "1", that is, the chroma key image. Here, if the block attribute is not “1”, the determination result is “N
"O", and this routine is once terminated because it is considered that a collision cannot occur.

【0070】これに対し、読み出したブロック属性が
「1」である時には、判断結果が「YES」となり、次
のステップSD6に処理を進める。ステップSD6で
は、ラインバッファに書き込まれたCGデータをレジス
タX,Yの値に応じて読み出す。ここで言うCGデータ
とは、オブジェクト画像データDOBの有無を表わす信号
YSOBJを指す。なお、信号YSOBJは、VDP3
1(図3参照)から処理部40に供給されるものであ
る。そして、次のステップSD7に進むと、処理部40
は読み出したCGデータ(信号YSOBJ)が「1」で
あるか否かを判断する。この時、当該CGデータが
「1」でなければ、レジスタX,Yの値に対応するブロ
ックがオブジェクト画像OBJと重ならないことになる
から、衝突しないとして判断結果が「NO」となり、こ
のルーチンを終了する。
On the other hand, when the read block attribute is "1", the determination result is "YES" and the process proceeds to the next step SD6. At step SD6, the CG data written in the line buffer is read according to the values of the registers X and Y. The CG data mentioned here refers to a signal YSOBJ representing the presence or absence of the object image data D OB . The signal YSOBJ is VDP3.
1 (see FIG. 3) is supplied to the processing unit 40. Then, when it proceeds to the next step SD7, the processing unit 40
Determines whether the read CG data (signal YSOBJ) is "1". At this time, if the CG data is not "1", the blocks corresponding to the values of the registers X and Y do not overlap with the object image OBJ. Therefore, it is determined that there is no collision and the determination result is "NO". finish.

【0071】一方、読み出したCGデータが「1」であ
ると、ステップSD7の判断結果が「YES」となり、
ステップSD8に進む。ステップSD8では、衝突フラ
グCFが「0」であるか否かを判断する。ここで、当該
フラグCFが「0」である場合、つまり、初めて両画像
の衝突が検出された状態では、判断結果が「YES」と
なり、次のステップSD9に処理を進める。ステップS
D9では、最初に検出された第1のX座標を衝突座標エ
リアE7にストアし、続いてステップSD10では、こ
れに対応する第1のY座標を同エリアE7にストアす
る。次いで、ステップSD11に進むと、衝突フラグC
Fを「1」にセットする。これに対して上記ステップS
D8の判断結果が「NO」の場合、すなわち、既に両画
像の衝突が認知されている状態では、ステップSD12
に進み、最後に検出された第2のX座標を衝突座標エリ
アE8にストアし、続いてステップSD13では、これ
に対応する第2のY座標を同エリアE7にストアする。
On the other hand, if the read CG data is "1", the determination result of step SD7 is "YES",
It proceeds to step SD8. In step SD8, it is determined whether or not the collision flag CF is "0". Here, when the flag CF is "0", that is, when the collision of both images is detected for the first time, the determination result is "YES", and the process proceeds to the next step SD9. Step S
At D9, the first detected first X coordinate is stored in the collision coordinate area E7, and subsequently at step SD10, the corresponding first Y coordinate is stored in the same area E7. Next, when proceeding to step SD11, the collision flag C
Set F to "1". On the other hand, the above step S
If the determination result of D8 is "NO", that is, if the collision of both images is already recognized, step SD12 is performed.
Then, the last detected second X coordinate is stored in the collision coordinate area E8, and subsequently, in step SD13, the corresponding second Y coordinate is stored in the same area E7.

【0072】座標検出ルーチンの動作 次に、図16を参照して座標検出ルーチンの動作につい
て説明する。上述した衝突座標検出ルーチンによって、
クロマキー像とオブジェクト画像OBJとの衝突座標位
置が検出されると、位置検出処理部40はステップSA
13(図12参照)を介して図16に示す座標検出ルー
チンを実行し、ステップSE1に処理を進める。ステッ
プSE1では、レジスタX,Y、レジスタX’,Y’お
よびレジスタSをそれぞれゼロリセットして初期化す
る。なお、レジスタSには、後述する動作に基づき、ク
ロマキー像を形成するブロックの個数を累算してなる面
積が格納される。
Operation of Coordinate Detection Routine Next, the operation of the coordinate detection routine will be described with reference to FIG. By the collision coordinate detection routine described above,
When the collision coordinate position between the chroma key image and the object image OBJ is detected, the position detection processing unit 40 proceeds to step SA.
The coordinate detection routine shown in FIG. 16 is executed via 13 (see FIG. 12), and the process proceeds to step SE1. In step SE1, the registers X and Y, the registers X ′ and Y ′, and the register S are reset to zero and initialized. The register S stores an area obtained by accumulating the number of blocks forming a chroma key image based on the operation described later.

【0073】次に、ステップSE2に進むと、処理部4
0は、処理画面エリアE2(図10参照)からレジスタ
X,Yの値に応じて対応するブロック属性を読み出し、
ステップSE3に処理を進める。ステップSE3,SE
4では、現在のレジスタX,Yの値が、レジスタx1
1およびレジスタx2,y2に各々セットされた指定検
出枠内にあるか否かを判断する。ここで、現在のレジス
タX,Yの値が指定検出枠内になければ、ステップSE
3,SE4の判断結果はそれぞれ「NO」となり、後述
するステップSE6へ進む。一方、レジスタX,Yの値
が検出枠内にある時には、ステップSE3,SE4の判
断がいずれも「YES」となり、ステップSE5に処理
を進める。
Next, in step SE2, the processing unit 4
0 reads out the corresponding block attribute from the processing screen area E2 (see FIG. 10) according to the values of the registers X and Y,
The process proceeds to step SE3. Step SE3, SE
In 4, the current register X, Y values, registers x 1,
It is determined whether or not it is within the designated detection frame set in y 1 and registers x 2 and y 2 . If the current values of the registers X and Y are not within the designated detection frame, step SE
The determination results of 3 and SE4 are "NO", and the process proceeds to step SE6, which will be described later. On the other hand, when the values of the registers X and Y are within the detection frame, the determinations at steps SE3 and SE4 are both "YES", and the process proceeds to step SE5.

【0074】ステップSE5では、上記ステップSE2
において読み出されたブロック属性が「1」、すなわ
ち、クロマキー像であるか否かを判断する。ここで、ブ
ロック属性が「1」でない場合には、判断結果が「N
O」となり、ステップSE6に進む。ステップSE6で
は、レジスタXの値を1インクリメントして歩進させ
る。そして、ステップSE7に進むと、歩進されたレジ
スタXの値が「96」、つまり、1水平(走査)ライン
分のブロック属性を読み出したか否かを判断する。ここ
で、1水平ライン分の読み出しが完了していない場合に
は、判断結果が「NO」となり、再び上記ステップSE
2へ処理を戻す。
In step SE5, the above step SE2 is executed.
It is determined whether or not the block attribute read in is "1", that is, a chroma key image. Here, if the block attribute is not “1”, the determination result is “N
"O" and the process proceeds to step SE6. At step SE6, the value of the register X is incremented by 1 to advance. Then, in step SE7, it is determined whether the value of the stepped register X is "96", that is, whether the block attribute for one horizontal (scanning) line has been read. Here, when the reading for one horizontal line is not completed, the determination result is “NO”, and the above step SE is performed again.
Return the process to 2.

【0075】そして、例えば、いま、読み出したブロッ
ク属性が「1」であると、ステップSE5の判断結果が
「YES」となり、ステップSE8に処理を進める。ス
テップSE8では、レジスタXの値がレジスタX’の値
より大であるか否かを判断する。レジスタX’には、前
回検出したX座標がセットされており、前回の座標値と
今回の座標値との比較結果に応じて右端/左端座標を更
新する。つまり、ここでの判断結果が「NO」になる
と、ステップSE9に進み、レジスタXの値を左端座標
エリアE5(図10参照)にストアしてクロマキー像の
左端座標を更新する。一方、ステップSE8の判断結果
が「YES」になると、ステップSE10に進み、レジ
スタXの値を右端座標エリアE6(図10参照)にスト
アしてクロマキー像の右端座標を更新する。
Then, for example, if the read block attribute is "1", the determination result of step SE5 is "YES", and the process proceeds to step SE8. In step SE8, it is determined whether the value of register X is larger than the value of register X '. The previously detected X coordinate is set in the register X ′, and the right end / left end coordinates are updated according to the result of comparison between the previous coordinate value and the present coordinate value. That is, if the determination result here is "NO", the flow proceeds to step SE9, the value of the register X is stored in the left end coordinate area E5 (see FIG. 10), and the left end coordinate of the chroma key image is updated. On the other hand, if the decision result in the step SE8 is "YES", then the processing advances to a step SE10, where the value of the register X is stored in the right end coordinate area E6 (see FIG. 10) and the right end coordinate of the chroma key image is updated.

【0076】次いで、ステップSE11に進むと、処理
部40は、レジスタYの値がレジスタY’の値より大で
あるか否かを判断する。ここで、レジスタY’は、上記
レジスタX’と同様、前回検出したY座標がセットされ
ており、この前回の座標値と今回の座標値との比較結果
に応じて上端/下端座標を更新するようにしている。つ
まり、判断結果が「NO」になると、ステップSE12
に進み、レジスタYの値を上端座標エリアE3(図10
参照)にストアしてクロマキー像の上端座標を更新す
る。一方、ステップSE11の判断結果が「YES」に
なると、ステップSE13に進み、レジスタYの値を下
端座標エリアE4(図10参照)にストアしてクロマキ
ー像の下端座標を更新する。
Next, in step SE11, the processing section 40 determines whether or not the value of the register Y is larger than the value of the register Y '. Here, similarly to the register X ', the Y coordinate detected last time is set in the register Y', and the upper end / lower end coordinates are updated according to the comparison result of the previous coordinate value and the current coordinate value. I am trying. That is, when the determination result is “NO”, step SE12
To the upper end coordinate area E3 (see FIG. 10).
(Refer to) and update the top coordinates of the chromakey image. On the other hand, if the decision result in the step SE11 is "YES", the flow advances to a step SE13 to store the value of the register Y in the lower end coordinate area E4 (see FIG. 10) to update the lower end coordinate of the chroma key image.

【0077】そして、この後、ステップSE14に進む
と、処理部40はレジスタSの値を1インクリメント
し、面積を1ブロック分加算する。続いて、ステップS
E15に進むと、レジスタX,Yに格納されている現在
の座標値を、それぞれレジスタX’,Y’にセットし直
し前回の座標値とする。こうして上記ステップSE2〜
SE15の処理が1水平ライン分なされると、上述した
ステップSE7の判断結果が「YES」となり、ステッ
プSE16に進み、レジスタXの値をゼロリセットする
と共に、レジスタYの値を1歩進させる。次いで、ステ
ップSE17に進むと、レジスタYの値が「96」、つ
まり、1フレーム分の座標検出がなされたか否かを判断
する。そして、1フレーム分の座標検出が完了していな
い場合には、前述したステップSE2以降が繰り返され
る。一方、完了した時には、このルーチンから前述した
メインルーチン(図11参照)へ処理を戻す。
After that, when proceeding to step SE14, the processing section 40 increments the value of the register S by 1, and adds the area by one block. Then, step S
When proceeding to E15, the current coordinate values stored in the registers X and Y are reset in the registers X'and Y ', respectively, and set as the previous coordinate values. In this way, step SE2 above
When the processing of SE15 is performed for one horizontal line, the above-mentioned determination result of step SE7 becomes "YES", and the process proceeds to step SE16, where the value of the register X is reset to zero and the value of the register Y is advanced by one step. Next, proceeding to step SE17, it is determined whether or not the value of the register Y is "96", that is, whether or not the coordinates of one frame have been detected. Then, when the coordinate detection for one frame is not completed, the above-mentioned step SE2 and subsequent steps are repeated. On the other hand, when it is completed, the process is returned from this routine to the above-mentioned main routine (see FIG. 11).

【0078】重心計算ルーチンの動作 上記座標検出ルーチンによって、クロマキー像の左端/
右端座標および上端/下端座標が検出されると、位置検
出処理部40は前述したステップSA14(図12参
照)を介して図17に示す重心計算ルーチンを実行し、
ステップSP1に処理を進める。まず、ステップSP1
では、レジスタXG,YGをゼロリセットする。レジス
タXG,YGは、それぞれクロマキー検出されたブロッ
クに基づいて算出されるクロマキー像の重心座標が格納
されるものである。次に、ステップSP2に進むと、レ
ジスタX,Yを初期化し、続いて、ステップSP3で
は、処理画面エリアE2からレジスタX,Yの値に対応
するブロック属性を読み出す。
Operation of Center of Gravity Calculation Routine By the above coordinate detection routine, the left end of the chroma key image /
When the right end coordinates and the upper end / lower end coordinates are detected, the position detection processing unit 40 executes the center of gravity calculation routine shown in FIG. 17 through step SA14 (see FIG. 12) described above,
The process proceeds to step SP1. First, step SP1
Then, the registers XG and YG are reset to zero. The registers XG and YG respectively store the barycentric coordinates of the chroma key image calculated based on the blocks detected by the chroma key. Next, in step SP2, the registers X and Y are initialized, and subsequently, in step SP3, the block attributes corresponding to the values of the registers X and Y are read from the processing screen area E2.

【0079】次に、ステップSP4,SP5では、現在
のレジスタX,Yの値が、前述したレジスタx1,y1
よびレジスタx2,y2に各々セットされた指定検出枠内
にあるか否かを判断する。ここで、現在のレジスタX,
Yの値が指定検出枠内になければ、ステップSP4,S
P5の判断結果は「NO」となり、後述するステップS
P7へ進む。一方、レジスタX,Yの値が指定検出枠内
にある時には、ステップSP4,SP5の判断がいずれ
も「YES」となり、ステップSP6に処理を進める。
ステップSP6に進むと、処理部40は、この読み出し
たブロック属性が「1」、すなわち、クロマキー像であ
るか否かを判断する。ここで、ブロック属性が「1」で
ない場合には、判断結果が「NO」となり、ステップS
P7に進む。ステップSP7では、レジスタXの値を1
インクリメントして歩進させる。そして、ステップSP
8に進むと、レジスタXの値が「96」、つまり、1水
平(走査)ライン分のブロック属性を読み出したか否か
を判断する。ここで、1水平ライン分の読み出しが完了
していない場合には、判断結果が「NO」となり、再び
上記ステップSP3に処理を戻す。
Next, at steps SP4 and SP5, it is determined whether or not the current values of the registers X and Y are within the designated detection frames set in the registers x 1 and y 1 and the registers x 2 and y 2 , respectively. To judge. Where the current register X,
If the value of Y is not within the specified detection frame, steps SP4 and S
The determination result of P5 is "NO", and step S described later
Go to P7. On the other hand, when the values of the registers X and Y are within the designated detection frame, the determinations at steps SP4 and SP5 are both "YES", and the process proceeds to step SP6.
When the processing proceeds to step SP6, the processing unit 40 determines whether or not the read block attribute is "1", that is, a chroma key image. Here, if the block attribute is not "1", the determination result is "NO", and step S
Proceed to P7. At step SP7, the value of register X is set to 1
Increment and advance. And step SP
When it proceeds to 8, it is determined whether the value of the register X is "96", that is, whether the block attribute for one horizontal (scanning) line has been read. Here, when the reading for one horizontal line is not completed, the determination result is “NO”, and the process is returned to the step SP3 again.

【0080】そして、例えば、次に読み出したブロック
属性が「1」であるとする。そうすると、ステップSP
6の判断結果が「YES」となり、処理部40はステッ
プSP9に処理を進める。ステップSP9では、クロマ
キー検出されたブロックを質点と見做し、このブロック
の座標(X,Y)と面積Sとの比を順次累算する重心計
算を行う。なお、この面積Sは上述した座標検出ルーチ
ンにおいてレジスタSに格納されるものである。次い
で、ステップSP10に進むと、上記ステップSP9の
重心計算結果に応じて重心座標を更新し、続いて、ステ
ップSP7においてレジスタXの値を歩進させる。
Then, for example, assume that the next read block attribute is "1". Then, step SP
The determination result of 6 is “YES”, and the processing unit 40 advances the processing to step SP9. In step SP9, the block in which the chroma key is detected is regarded as a mass point, and the center of gravity is calculated by sequentially accumulating the ratio of the coordinates (X, Y) of this block and the area S. The area S is stored in the register S in the coordinate detection routine described above. Next, in step SP10, the barycentric coordinates are updated in accordance with the barycenter calculation result in step SP9, and subsequently, in step SP7, the value of the register X is incremented.

【0081】ここで、1水平ライン分の読み出しが完了
したとすると、ステップSP8の判断結果が「YES」
となり、ステップSP11に進み、レジスタXの値をゼ
ロリセットすると共に、レジスタYの値を1歩進させ
る。次いで、ステップSP12に進むと、レジスタYの
値が「96」、つまり、1フレーム分の重心計算がなさ
れたか否かを判断する。そして、1フレーム分の重心計
算が完了していない場合には、判断結果が「NO」とな
り、前述したステップSP3以降の処理を繰り返す。一
方、1フレーム分の重心計算が完了した時には、判断結
果が「YES」となり、このルーチンを終了してメイン
ルーチン(図11参照)に復帰する。
Here, if the reading of one horizontal line is completed, the determination result of step SP8 is "YES".
Then, in step SP11, the value of the register X is reset to zero and the value of the register Y is incremented by one. Next, in step SP12, it is determined whether or not the value of the register Y is "96", that is, whether the center of gravity for one frame has been calculated. Then, when the calculation of the center of gravity for one frame is not completed, the determination result is “NO”, and the processing from step SP3 described above is repeated. On the other hand, when the calculation of the center of gravity for one frame is completed, the determination result is “YES”, the routine is ended, and the process returns to the main routine (see FIG. 11).

【0082】このように、位置検出処理部40では、第
1モード〜第3モードに応じて第1検出枠SF1〜第5
検出枠SF5のいずれかを時分割に指定し、指定した検
出枠内においてバットBあるいはソックスSをクロマキ
ー検出するから、撮像画像内に複数のクロマキー像が存
在する場合でも、誤動作することなく、クロマキー検出
処理することが可能になる。
As described above, in the position detection processing section 40, the first detection frame SF1 to the fifth detection frame are selected depending on the first mode to the third mode.
Since any one of the detection frames SF5 is designated as time division, and the bat B or the socks S are detected by the chroma key in the designated detection frame, even if there are a plurality of chroma key images in the captured image, the chroma key can be operated without malfunction. It becomes possible to perform detection processing.

【0083】(2)制御部50(CPU51)の動作 次に、位置検出処理部40から供給される各種データに
基づいて画像制御を指示するCPU51の動作について
図18〜図27を参照して説明する。以下では、CPU
51の概略動作としてCPUメインルーチンについて説
明した後、当該CPU51において実行される各種割込
み処理ルーチンについて説明する。
(2) Operation of Control Unit 50 (CPU 51) Next, the operation of the CPU 51 for instructing image control based on various data supplied from the position detection processing unit 40 will be described with reference to FIGS. 18 to 27. To do. Below, the CPU
After explaining the CPU main routine as a schematic operation of 51, various interrupt processing routines executed in the CPU 51 will be described.

【0084】CPUメインルーチンの動作 まず、装置本体2に電源が投入されると、CPU51は
ROM53に記憶されたオペレーションシステムプログ
ラムを読み出してロードした後、ゲームカートリッジ5
5に内蔵されるROM55aからアプリケーションプロ
グラムを読み出し、RAM52に展開する。これによ
り、図18に示すCPUメインルーチンが起動され、C
PU51の処理はステップSG1に進む。ステップSG
1では、RAM52に確保される各種レジスタを初期化
すると共に、VDP31および位置検出処理部40へイ
ニシャライズを指定する制御信号SCを供給する。次い
で、ステップSG2に進むと、各部へ割込み許可を与え
る制御信号SCを供給する一方、自身の割込みマスクを
解除する。続いて、ステップSG3では、電源投入後の
動作モードを前述した第1モードに設定するため、レジ
スタMODEに「1」をセットし、次のステップSG4
に処理を進める。そして、これ以後、レジスタMODE
に格納される値に応じて第1モード〜第3モードの処理
がなされる。以下、各モード別の処理動作について説明
する。
Operation of CPU Main Routine First, when the apparatus main body 2 is powered on, the CPU 51 reads out and loads the operation system program stored in the ROM 53, and then the game cartridge 5
5, the application program is read from the ROM 55a built in 5, and loaded in the RAM 52. As a result, the CPU main routine shown in FIG. 18 is started, and C
The process of the PU 51 proceeds to step SG1. Step SG
In 1, the various registers secured in the RAM 52 are initialized, and the control signal SC designating initialization is supplied to the VDP 31 and the position detection processing unit 40. Next, when proceeding to step SG2, while supplying the control signal SC which gives the interrupt permission to each part, the interrupt mask of itself is released. Then, in step SG3, in order to set the operation mode after the power is turned on to the above-mentioned first mode, "1" is set in the register MODE, and the next step SG4
Proceed to. After that, the register MODE
The processing in the first mode to the third mode is performed according to the value stored in. The processing operation for each mode will be described below.

【0085】a.第1モード下における動作 装置電源が投入された直後では、第1モードであり、上
記ステップSG3の処理によってレジスタMODEに
「1」がセットされるから、ステップSG4の判断結果
は「YES」となり、CPU51はステップSG5に処
理を進める。ステップSG5では、レジスタCHFに格
納されるチェンジフラグが「1」か否かを判断する。こ
のチェンジフラグは、イニシャライズ時、あるいはクロ
マキー像とオブジェクト画像OBJとの衝突に応じてモ
ード遷移する際に「1」となり、それ以外では「0」と
なるフラグであり、これの詳細については後述する衝突
割り込み処理ルーチンにおいて説明する。
A. Operation in the first mode Immediately after the power source of the device is turned on, the mode is the first mode, and the register MODE is set to "1" by the process of step SG3. Therefore, the determination result of step SG4 is "YES", The CPU 51 advances the process to step SG5. In step SG5, it is determined whether or not the change flag stored in the register CHF is "1". This change flag is a flag that becomes "1" at the time of initialization or when the mode transition occurs in response to a collision between the chroma key image and the object image OBJ, and otherwise becomes "0". Details thereof will be described later. The collision interrupt processing routine will be described.

【0086】ここでは、イニシャライズ時にチェンジフ
ラグが「1」にセットされるため、ステップSG5での
判断結果は「YES」となり、次のステップSG6に進
む。なお、一旦、第1モードに遷移した状態で、再度こ
のステップSG5に処理を進めた時には、チェンジフラ
グが「0」となるから、判断結果は「NO」となり、後
述するステップSG13に進む。次に、ステップSG6
では、前述した第1検出枠SF1の座標値(x1
1),(x2,y2)を指定し、これを位置検出処理部
40のレジスタM(1)へ転送する。そして、ステップ
SG7では、第1検出枠SF1の転送が完了するまで待
機し、転送完了を確認した時点で判断結果が「YES」
となり、次のステップSG8に進む。ステップSG8で
は、撮像画像とCG画像との表示優先順位を指定する制
御信号SCを位置検出処理部40に供給する。これによ
り、位置検出処理部40は、CG画像と撮像画像とをス
ーパーインポーズするための選択信号SLをビデオ信号
処理部20(図5参照)に供給する。
Here, since the change flag is set to "1" at the time of initialization, the determination result in step SG5 is "YES", and the process proceeds to the next step SG6. When the process is once again advanced to the step SG5 in the state where the mode is changed to the first mode, the change flag becomes "0", so that the determination result becomes "NO" and the process proceeds to step SG13 described later. Next, step SG6
Then, the coordinate values (x 1 ,
y 1 ), (x 2 , y 2 ) are designated and transferred to the register M (1) of the position detection processing unit 40. Then, in step SG7, the process waits until the transfer of the first detection frame SF1 is completed, and when the transfer completion is confirmed, the determination result is “YES”.
Then, the process proceeds to the next step SG8. In step SG8, the position detection processing unit 40 is supplied with the control signal SC that specifies the display priority of the captured image and the CG image. As a result, the position detection processing unit 40 supplies the selection signal SL for superimposing the CG image and the captured image to the video signal processing unit 20 (see FIG. 5).

【0087】次いで、ステップSG9に進むと、スター
ト画面を形成するオブジェクト画像データDOBをVDP
31へDMA転送するため、DMAコントローラに転送
先アドレスおよび転送元アドレスをセットする。なお、
DMA転送は、ディスプレイ3(図1参照)側の垂直帰
線期間に同期した割込み処理により行われる。転送命令
がセットされたDMAコントローラは、CPU51の指
示の下、ROM55a(図5参照)から転送元アドレス
に対応するオブジェクト画像データDOBを読み出してV
DP31(VRAM32)へDMA転送する。こうした
転送割込み処理については追って説明する。
Next, when proceeding to step SG9, the object image data D OB forming the start screen is set to VDP.
In order to perform the DMA transfer to 31, the transfer destination address and the transfer source address are set in the DMA controller. In addition,
The DMA transfer is performed by interrupt processing synchronized with the vertical blanking period on the display 3 (see FIG. 1) side. Under the instruction of the CPU 51, the DMA controller in which the transfer command is set reads the object image data D OB corresponding to the transfer source address from the ROM 55a (see FIG. 5) and outputs V
DMA transfer to DP31 (VRAM32). Such transfer interrupt processing will be described later.

【0088】次に、ステップSG10に進むと、レジス
タAKF2に格納される転送フラグF2を「1」にセッ
トする。転送フラグF2とは、上述したステップSG9
において転送セットされたオブジェクト画像データDOB
がDMA転送されたか否かを表わすものであり、当該フ
ラグF2が「0」の時にDMA転送完了の旨を表わし、
「1」の時に未転送状態にあることを表わす。そして、
ステップSG11では、このレジスタAKF2に格納さ
れる転送フラグF2が「0」になる迄、つまり、オブジ
ェクト画像データDOBがDMAコントローラによってD
MA転送されるまで待機する。ここで、当該データDOB
がDMA転送されると、転送フラグF2が「0」となる
ので、判断結果が「YES」となり、CPU51はステ
ップSG12に処理を進める。
Next, when proceeding to step SG10, the transfer flag F2 stored in the register AKF2 is set to "1". The transfer flag F2 means the above-mentioned step SG9.
Image data D OB transferred and set in
Indicates whether or not the DMA transfer is performed, and indicates that the DMA transfer is completed when the flag F2 is “0”.
When it is "1", it means that it is in the untransferred state. And
In step SG11, until the transfer flag F2 stored in the register AKF2 becomes "0", that is, the object image data D OB is D by the DMA controller.
Wait for MA transfer. Here, the data D OB
Is DMA-transferred, the transfer flag F2 becomes "0", the judgment result becomes "YES", and the CPU 51 advances the process to step SG12.

【0089】スタート画面を形成するオブジェクト画像
データDOBがVDP31にDMA転送されると、ビデオ
信号処理部20は、当該VDP31から供給される処理
画像データDSPとサンプリング画像データDSとを選択
信号SLに応じて切り換えてコンポジット画像データD
CVを生成する。この結果、第1モードでは、図22に図
示するように、撮像画像上にスタート画面がスーパーイ
ンポーズされた表示画面が形成される。そして、ステッ
プSG12に進むと、CPU51は、レジスタCHKに
格納されるチェンジフラグをゼロリセットして、図19
に示すステップSG13に処理を進める。
When the object image data D OB forming the start screen is DMA-transferred to the VDP 31, the video signal processing section 20 selects the processed image data D SP and the sampling image data D S supplied from the VDP 31 as a selection signal. Switch according to SL and composite image data D
Generate a CV . As a result, in the first mode, as shown in FIG. 22, a display screen in which the start screen is superimposed is formed on the captured image. Then, when proceeding to step SG12, the CPU 51 resets the change flag stored in the register CHK to zero, and the CPU 51 of FIG.
The process proceeds to step SG13 shown in.

【0090】b.第2モード下における動作 ステップSG13(図19参照)に進むと、レジスタM
ODEの値が「2」、つまり、第2モードであるか否か
を判断する。ここで、例えば、図22に示すように、遊
戯者PがバットBを、スタート画面に対応させた第1検
出枠SF1内に位置させると、後述する衝突割り込み処
理ルーチンの動作に基づき第2モードに遷移する。第2
モードに遷移すると、ステップSG13の判断結果が
「YES」となり、ステップSG14に進む。ステップ
SG14では、チェックフラグが「1」か否か、すなわ
ち、第1モードから第2モードへ遷移した状態であるか
否かを判断する。この場合、第1モードから第2モード
へ遷移した状態であるため、判断結果は「YES」とな
り、次のステップSG15に処理を進める。なお、一
旦、この第2モード下に入った状態で、再度このステッ
プSG14に処理を進めた時には、チェックフラグが
「0」になるから、判断結果は「NO」になり、後述す
るステップSG22に進む。
B. Operation in the second mode When the process proceeds to step SG13 (see FIG. 19), the register M
It is determined whether the value of ODE is "2", that is, the second mode. Here, for example, as shown in FIG. 22, when the player P positions the bat B within the first detection frame SF1 corresponding to the start screen, the second mode is performed based on the operation of the collision interrupt processing routine described later. Transition to. Second
When transitioning to the mode, the determination result of step SG13 becomes “YES”, and the process proceeds to step SG14. In step SG14, it is determined whether or not the check flag is "1", that is, whether or not the state has transited from the first mode to the second mode. In this case, since the state has transited from the first mode to the second mode, the determination result is “YES”, and the process proceeds to the next step SG15. Incidentally, when the processing is once again advanced to step SG14 in the state of being in the second mode, the check flag becomes "0", the determination result becomes "NO", and the processing proceeds to step SG22 described later. move on.

【0091】ステップSG15に進むと、CPU51
は、前述した第2検出枠SF2の座標(x3,y3),
(x4,y4)と、第3検出枠SF3の座標(x5
5),(x6,y6)とをそれぞれ指定し、これらを位
置検出処理部40側のレジスタM(1)、レジスタM
(2)に格納すべく転送し、続くステップSG16で
は、その転送が完了するまで待機する。そして、転送が
完了すると、ステップSG16の判断結果が「YES」
となり、次のステップSG17に進む。ステップSG1
7に進むと、CPU51は、CG画像の表示を優先する
よう位置検出処理部40に優先順位順位を与える。これ
により、第2モードでは、バックグラウンド画像BGと
オブジェクト画像OBJとからなる表示画面がディスプ
レイに表示されることになる。
When the process proceeds to step SG15, the CPU 51
Are the coordinates (x 3 , y 3 ) of the second detection frame SF2 described above,
(X 4 , y 4 ) and the coordinates (x 5 ,
y 5 ), (x 6 , y 6 ) are designated respectively, and these are designated as register M (1) and register M on the position detection processing unit 40 side.
The data is transferred to be stored in (2), and in the subsequent step SG16, the process waits until the transfer is completed. Then, when the transfer is completed, the determination result of step SG16 is "YES".
Then, the process proceeds to the next step SG17. Step SG1
In step 7, the CPU 51 gives priority to the position detection processing unit 40 so as to prioritize the display of CG images. As a result, in the second mode, the display screen including the background image BG and the object image OBJ is displayed on the display.

【0092】次に、ステップSG18では、バックグラ
ウンド画像データDBGをVDP31へDMA転送するた
め、DMAコントローラに転送先アドレスおよび転送元
アドレスをセットする。DMA転送セットがなされる
と、CPU51は、ステップSG19に処理を進め、レ
ジスタAKF1に格納される転送フラグF1を「1」に
セットする。そして、ステップSG20では、このレジ
スタAKF1に格納される転送フラグF1が「0」にな
る迄、つまり、バックグラウンド画像データDBGがDM
A転送されるまで待機する。当該データDOBのDMA転
送が完了すると、転送フラグF1が「0」となるので、
ここでの判断結果が「YES」となり、CPU51はス
テップSG21に処理を進める。
Next, in step SG18, the background image data D BG is DMA-transferred to the VDP 31, so that the transfer destination address and the transfer source address are set in the DMA controller. When the DMA transfer is set, the CPU 51 advances the processing to step SG19 and sets the transfer flag F1 stored in the register AKF1 to "1". Then, in step SG20, until the transfer flag F1 stored in the register AKF1 becomes “0”, that is, the background image data D BG is DM.
A Wait for transfer. When the DMA transfer of the data D OB is completed, the transfer flag F1 becomes “0”.
The determination result here is "YES", and the CPU 51 advances the process to step SG21.

【0093】ステップSG21では、ゲーム動作を開始
させるため、レジスタTの値をゼロリセットする。レジ
スタTには、ゲーム進行に応じて計時されるタイムカウ
ント値が格納されるようになっており、このタイムカウ
ント値は、後述するタイマインタラプト処理によって一
定周期毎にインクリメントされるものである。そして、
次のステップSG22に進むと、CPU51は予めVD
P31側へDMA転送した複数のオブジェクト画像デー
タDOBの内から、レジスタTに格納されるタイムカウン
ト値に対応して表示すべき画像データDOBを指定し、そ
の旨を表わす制御信号SCをVDP31に供給する。
At step SG21, the value of the register T is reset to zero in order to start the game operation. The register T is configured to store a time count value that is measured according to the progress of the game, and this time count value is incremented at regular intervals by a timer interrupt process described later. And
When proceeding to the next step SG22, the CPU 51 advances the VD in advance.
From among the plurality of object image data D OB that DMA transfer to the P31 side, to specify the image data D OB to be displayed corresponding to the time count value stored in the register T, a control signal SC that represents the fact VDP31 Supply to.

【0094】続いて、ステップSG23では、レジスタ
Tに格納されるタイムカウント値に応じたオブジェクト
テーブルデータTOBを指定し、上記ステップSG22に
おいて指定したオブジェクト画像データDOBの表示位置
を規定する。これにより、ゲーム画面を形成するオブジ
ェクト画像データDOBの表示位置が定まる。この場合、
オブジェクト画像データDOBは、遊戯者P側に飛んでく
る「ボール像」、すなわち、タイムカウント値に応じて
時々刻々大きくなる「ボール像」が形成されることにな
る。
Subsequently, in step SG23, the object table data T OB corresponding to the time count value stored in the register T is designated, and the display position of the object image data D OB designated in step SG22 is defined. As a result, the display position of the object image data D OB forming the game screen is determined. in this case,
The object image data D OB is formed with a “ball image” flying toward the player P, that is, a “ball image” that increases momentarily according to the time count value.

【0095】以上のようにしてゲーム画面が形成される
と、CPU51はステップSG24に進み、レジスタA
KF2に格納される転送フラグF2を「1」にセット
し、ステップSG18に進む。転送フラグF2とは、上
述したステップSG23において指定されたオブジェク
トテーブルデータTOBがVDP31側へDMA転送され
たか否かを表わすものであり、当該フラグF2が「0」
の時にDMA転送完了の旨を表わし、「1」の時に未転
送状態にあることを表わす。次に、ステップSG25に
進むと、このレジスタAKF2に格納される転送フラグ
F2が「0」になる迄、つまり、オブジェクトテーブル
データTOBがDMA転送されるまで待機する。そして、
当該データTOBがDMA転送された時点で転送フラグF
2が「0」となり、CPU51はステップSG26に処
理を進め、レジスタCHFに格納されるチェンジフラグ
をゼロリセットする。
When the game screen is formed as described above, the CPU 51 proceeds to step SG24 and registers A
The transfer flag F2 stored in KF2 is set to "1", and the process proceeds to step SG18. The transfer flag F2 indicates whether or not the object table data T OB specified in step SG23 described above is DMA-transferred to the VDP 31 side, and the flag F2 is “0”.
Indicates that the DMA transfer is completed, and indicates that it is in a non-transfer state when "1". Next, in step SG25, the process waits until the transfer flag F2 stored in the register AKF2 becomes "0", that is, until the object table data T OB is DMA-transferred. And
When the data T OB is DMA transferred, the transfer flag F
2 becomes "0", and the CPU 51 advances the processing to step SG26, and resets the change flag stored in the register CHF to zero.

【0096】c.第3モード下における動作 次に、ステップSG27に進むと、レジスタMODEの
値が「3」、つまり、第3モードであるか否かを判断す
る。ここで、例えば、第3検出枠SF3内においてバッ
トBのクロマキー像と、「ボール像」を形成するオブジ
ェクト画像OBJとが衝突すると、後述する衝突割り込
み処理ルーチンの動作に基づき第3モードに遷移する。
第3モードに遷移すると、ステップSG27の判断結果
が「YES」となり、ステップSG28へ処理を進め
る。ステップSG28に進むと、CPU51は、チェン
ジフラグが「1」か否か、すなわち、第2モードから第
3モードへ遷移した状態であるか否かを判断する。この
場合、第2モードから第3モードへ遷移した状態である
ため、判断結果は「YES」となり、次のステップSG
29に進む。なお、一旦、第3モード下に入った状態
で、再度このステップSG28に処理を進めた時には、
チェンジフラグが「0」となるから、ここでの判断結果
は「NO」になり、後述するステップSG36に進む。
C. Operation in Third Mode Next, proceeding to step SG27, it is determined whether or not the value of the register MODE is “3”, that is, the third mode. Here, for example, when the chroma key image of the bat B and the object image OBJ forming the “ball image” collide with each other in the third detection frame SF3, the mode is changed to the third mode based on the operation of a collision interruption processing routine described later. .
When transitioning to the third mode, the determination result of step SG27 becomes "YES", and the process proceeds to step SG28. When proceeding to Step SG28, the CPU 51 determines whether or not the change flag is “1”, that is, whether or not the state is the state where the second mode is changed to the third mode. In this case, the determination result is “YES” because the state has transited from the second mode to the third mode, and the next step SG
Proceed to 29. In addition, when the process is once again advanced to step SG28 in the state where the third mode is entered,
Since the change flag is "0", the determination result here is "NO", and the process proceeds to step SG36 described later.

【0097】次いで、ステップSG29に進むと、CP
U51は、前述した第4検出枠SF4の座標(x7
7),(x8,y8)と、第5検出枠SF5の座標
(x9,y9),(x10,y10)とをそれぞれ指定し、こ
れらを位置検出処理部40側のレジスタM(1)、レジ
スタM(2)に格納すべく転送し、続くステップSG3
0では、その転送が完了するまで待機する。そして、転
送が完了すると、ステップSG30の判断結果が「YE
S」となり、次のステップSG31に進む。ステップS
G31に進むと、バックグラウンド画像データDBGをV
DP31へDMA転送するため、DMAコントローラに
転送先アドレスおよび転送元アドレスをセットする。な
お、この転送セットされるバックグラウンド画像データ
BGは、図4に図示するように、「ダイヤモンド」を形
成する。
Next, when proceeding to step SG29, CP
U51 is the coordinate (x 7 ,
y 7 ), (x 8 , y 8 ) and the coordinates (x 9 , y 9 ), (x 10 , y 10 ) of the fifth detection frame SF5 are designated respectively, and these are designated by the position detection processing unit 40 side. Transfer the data to be stored in the register M (1) and the register M (2), and then proceed to step SG3.
At 0, it waits until the transfer is completed. Then, when the transfer is completed, the determination result of step SG30 is “YE
S ”, and the process proceeds to the next step SG31. Step S
Go to G31 and set the background image data D BG to V
In order to perform the DMA transfer to the DP 31, the transfer destination address and the transfer source address are set in the DMA controller. The background image data D BG that is transferred and set forms a “diamond” as shown in FIG.

【0098】バックグラウンド画像データDBGのDMA
転送セットが完了すると、CPU51は、次のステップ
SG32に処理を進め、レジスタAKF1に格納される
転送フラグF1を「1」にセットする。次いで、ステッ
プSG33では、このレジスタAKF1に格納される転
送フラグF1が「0」になる迄、つまり、バックグラウ
ンド画像データDBGがDMA転送されるまで待機する。
そして、当該データD OBがDMA転送され、転送フラグ
F1が「0」になると、ここでの判断結果が「YES」
となり、次のステップSG34に処理を進める。
Background image data DBGDMA
When the transfer set is completed, the CPU 51 executes the next step.
The process proceeds to SG32 and is stored in the register AKF1.
The transfer flag F1 is set to "1". Then step
In SG33, the transfer stored in this register AKF1
Until the sending flag F1 becomes "0", that is, the background
Image data DBGWaits for DMA transfer.
Then, the data D OBIs DMA-transferred, transfer flag
When F1 becomes "0", the judgment result here is "YES".
Then, the process proceeds to the next step SG34.

【0099】ステップSG34では、レジスタXG’お
よびレジスタYG’をゼロリセットする。なお、レジス
タXG’およびレジスタYG’には、後述するステップ
SG41の処理に基づき、1フレーム前にクロマキー検
出されたソックスS像の重心座標が一時記憶される。次
いで、ステップSG35に進むと、後述するレジスタP
とレジスタCHFに格納されるチェンジフラグとをゼロ
リセットする。この後、CPU51は、図21に示すス
テップSG36に進む。ステップSG36では、位置検
出処理部40から送出される指定検出枠値nを取り込ん
だか否かを判断する。そして、当該指定検出枠値nを取
り込むと、ここでの判断結果が「YES」となり、次の
ステップSG37に処理を進める。
In step SG34, the registers XG 'and YG' are reset to zero. The register XG 'and the register YG' temporarily store the barycentric coordinates of the sock S image chroma-detected one frame before based on the process of step SG41 described later. Next, when proceeding to step SG35, a register P described later
And the change flag stored in the register CHF are reset to zero. After that, the CPU 51 proceeds to step SG36 shown in FIG. In step SG36, it is determined whether or not the designated detection frame value n sent from the position detection processing unit 40 has been fetched. Then, when the designated detection frame value n is fetched, the determination result here becomes "YES", and the process proceeds to the next step SG37.

【0100】ステップSG37では、取り込んだ指定検
出枠値nが「1」、すなわち、第3モード下における第
4検出枠SF4を指定する値であるかどうかを判断す
る。ここで、指定検出枠値nが「2」、つまり、第5検
出枠SF5を指定する値であった場合には、判断結果が
「NO」となり、前述したステップSG13に処理を戻
す。一方、指定検出枠値nが「1」となり、第4検出枠
SF4を指定する場合には、判断結果が「YES」とな
り、ステップSG38に処理を進める。ステップSG3
8に進むと、CPU51は、位置検出処理部40の記憶
エリアE9(図10参照)から重心座標(xG,yG)を
読み出し、これをレジスタXG,YGにセットする。次
いで、ステップSG39に進むと、レジスタXGに格納
される重心座標xGとレジスタXG’に格納される1フ
レーム前の重心座標xG’とが不一致であるか否か、あ
るいはレジスタYGに格納される重心座標yGとレジス
タYG’に格納される1フレーム前の重心座標yG’と
が不一致であるか否かを判断する。すなわち、このステ
ップSG39では、図23に示すように、1フレーム前
にクロマキー検出されたソックスS’像と、現フレーム
からクロマキー検出されたソックスS像とが上下あるい
は左右に変位しているか否かを判断している。
In step SG37, it is determined whether or not the fetched designated detection frame value n is "1", that is, a value designating the fourth detection frame SF4 in the third mode. Here, when the designated detection frame value n is "2", that is, when the fifth detection frame SF5 is designated, the determination result is "NO", and the process is returned to step SG13 described above. On the other hand, when the designated detection frame value n is “1” and the fourth detection frame SF4 is designated, the determination result is “YES”, and the process proceeds to step SG38. Step SG3
When proceeding to 8, the CPU 51 reads the barycentric coordinates (x G , y G ) from the storage area E9 (see FIG. 10) of the position detection processing unit 40 and sets it in the registers XG, YG. Then, the process proceeds to step SG39, stored whether the 'previous frame centroid coordinates x G stored in the' center of gravity coordinates x G and register XG stored in the register XG is mismatched, or register YG 'previous frame centroid coordinates y G stored in the' center of gravity coordinates y G and register YG is determined whether the mismatch that. That is, in this step SG39, as shown in FIG. 23, whether or not the sock S'image chroma-detected in the previous frame and the sock S image chroma-detected in the current frame are displaced vertically or horizontally. Is judging.

【0101】そして、ソックスS像が変位していなけれ
ば、ここでの判断結果が「NO」となり、前述したステ
ップSG13に処理を戻し、一方、ソックスS像が変位
した時には、判断結果が「YES」となり、次のステッ
プSG40に進む。ステップSG40では、レジスタP
の値を1インクリメントして歩進させ、続いて、ステッ
プSG41では、レジスタXG,YGに各々格納される
現フレームの重心座標(xG,yG)を、それぞれレジス
タXG’,YG’にセットして入れ替える。次いで、ス
テップSG42に進むと、CPU51は、レジスタPの
値に対応したオブジェクト画像データDOBを指定し、そ
の旨を表わす制御信号SCをVDP31に供給する。こ
の場合、オブジェクト画像データDOBは、レジスタPの
値に応じて「ダイヤモンド」上を走塁動作するキャラク
タ像を形成する。
If the sock S image is not displaced, the result of the determination here is "NO", and the process returns to step SG13 described above. On the other hand, if the sock S image is displaced, the result of the determination is "YES". , ”And the process proceeds to the next step SG40. In step SG40, register P
Is incremented by 1 to proceed, and in step SG41, the barycentric coordinates (x G , y G ) of the current frame stored in the registers XG and YG are set in the registers XG ′ and YG ′, respectively. And replace. Next, proceeding to step SG42, the CPU 51 specifies the object image data D OB corresponding to the value of the register P, and supplies the control signal SC to that effect to the VDP 31. In this case, the object image data D OB forms a character image that runs on the “diamond” on the basis of the value of the register P.

【0102】続いて、ステップSG43では、レジスタ
Pの値に応じたオブジェクトテーブルデータTOBを指定
し、上記ステップSG42において指定したオブジェク
ト画像データDOBの表示位置を規定する。これにより、
遊戯者Pがバッティング後の走塁動作として足踏みする
と、これに応じてソックスS像が変位し、この変位に従
ってキャラクタ像が「ダイヤモンド」上を走塁動作する
ようになる。こうして第3モード下のゲーム画面が形成
されると、CPU51はステップSG44に進み、レジ
スタAKF2に格納される転送フラグF2を「1」にセ
ットし、ステップSG45に進む。次いで、ステップS
G45に進むと、オブジェクトテーブルデータTOBがD
MA転送されるまで待機する。そして、当該データTOB
がDMA転送された時点で転送フラグF2が「0」とな
り、CPU51は前述したステップSG13へ処理を戻
し、第3モードの動作を完了させる。
Then, in step SG43, the object table data T OB corresponding to the value of the register P is specified, and the display position of the object image data D OB specified in step SG42 is specified. This allows
When the player P steps on the base run after batting, the sock S image is displaced accordingly, and the character image runs on the "diamond" in accordance with this displacement. When the game screen under the third mode is thus formed, the CPU 51 proceeds to step SG44, sets the transfer flag F2 stored in the register AKF2 to "1", and proceeds to step SG45. Then, step S
Going to G45, the object table data T OB is D
Wait for MA transfer. And the data T OB
The transfer flag F2 becomes "0" at the time when the data is DMA-transferred, and the CPU 51 returns the process to step SG13 described above to complete the operation in the third mode.

【0103】割込み処理ルーチンの動作 次に、図24〜図26を参照し、CPU51において実
行される各種割込み処理ルーチンの動作について説明す
る。 a.転送割込み処理ルーチンの動作 CPU51は、クロックドライバ12(図5参照)から
垂直帰線信号が供給される毎にDMAコントローラ(図
示略)へ転送指示を与えると共に、図24に示す転送割
込み処理ルーチンを実行する。まず、ステップSJ1で
は、レジスタAKF1に格納される転送フラグF1が
「1」、つまり、DMA転送セットされた画像データD
BGが未転送状態にあるか否かを判断する。ここで、当該
画像データDBGが既にDMA転送済みである場合には、
判断結果が「NO」となり、後述するステップSJ4へ
処理を進める。
Operations of Interrupt Processing Routine Next, operations of various interrupt processing routines executed by the CPU 51 will be described with reference to FIGS. a. Operation of Transfer Interrupt Processing Routine The CPU 51 gives a transfer instruction to the DMA controller (not shown) each time a vertical retrace signal is supplied from the clock driver 12 (see FIG. 5), and executes the transfer interrupt processing routine shown in FIG. Run. First, in step SJ1, the transfer flag F1 stored in the register AKF1 is "1", that is, the image data D set by the DMA transfer is set.
Determine if BG is in untransferred state. Here, when the image data D BG has already been DMA-transferred,
The determination result is “NO”, and the process proceeds to step SJ4 described later.

【0104】一方、バックグラウンド画像データDBG
未転送状態にあると、判断結果は「YES」となり、次
のステップSJ2へ処理を進める。ステップSJ2で
は、DMAコントローラに対して転送セットされている
バックグラウンド画像データD BGのDMA転送を指示す
る。次いで、ステップSJ3に進むと、バックグラウン
ド画像データDBGの転送完了を表わすため、レジスタA
KF1に格納される転送フラグF1の値を「0」にセッ
トする。続いて、ステップSJ4に進むと、レジスタA
KF2に格納される転送フラグF2の値が「1」、つま
り、転送セットされたオブジェクトテーブルデータTOB
が未転送状態にあるか否かを判断する。ここで、当該デ
ータTOBが既にDMA転送済みであると、転送フラグF
2は「0」になっているから、判断結果は「NO」とな
り、このルーチンを完了し、CPUメインルーチンへ復
帰する。
On the other hand, the background image data DBGBut
If it is in the untransferred state, the judgment result will be "YES", and the next
The process proceeds to step SJ2. In step SJ2
Is transfer set to the DMA controller
Background image data D BGDirect DMA transfer
It Then go to step SJ3
Image data DBGRegister A to indicate the completion of transfer of
Set the value of the transfer flag F1 stored in KF1 to "0".
To Succeedingly, in the step SJ4, the register A
The value of the transfer flag F2 stored in KF2 is "1", that is,
, The transfer-set object table data TOB
Is not transferred. Where the data
Data TOBHas already been DMA-transferred, the transfer flag F
Since 2 is "0", the judgment result is "NO".
To complete this routine and return to the CPU main routine.
Go home.

【0105】これに対し、オブジェクトテーブルデータ
OBが未転送状態にあると、上記ステップSJ4の判断
結果が「YES」となり、ステップSJ5へ処理を進め
る。ステップSJ5では、DMAコントローラに転送セ
ットされているオブジェクト画像データDOBをVDP3
1側へDMA転送し、続くステップSJ6では当該デー
タDOBに対応するオブジェクトテーブルデータTOBをD
MA転送する。次いで、ステップSJ7に進むと、CP
U51はレジスタAKF2に格納される転送フラグF2
を「0」としてこのルーチンを完了する。このように、
転送割込み処理ルーチンにあっては、レジスタAKF1
にセットされる転送フラグF1に応じて初期画面背景を
形成するバックグラウンド画像データDBGをVDP31
にDMA転送し、レジスタAKF2にセットされる転送
フラグF2に応じてゲーム画面を形成するオブジェクト
画像データDOBおよびオブジェクトテーブルデータTOB
をVDP31にDMA転送する。
On the other hand, when the object table data T OB is in the untransferred state, the determination result of the above step SJ4 becomes “YES”, and the process proceeds to step SJ5. In step SJ5, the object image data D OB transferred and set to the DMA controller is transferred to VDP3.
To 1 side DMA transfers, the object table data T OB corresponding to subsequent step SJ6 the data D OB D
MA transfer. Then, when it proceeds to step SJ7, CP
U51 is a transfer flag F2 stored in the register AKF2.
Is set to "0" to complete this routine. in this way,
In the transfer interrupt processing routine, the register AKF1
The background image data D BG forming the initial screen background according to the transfer flag F1 set to
Object image data D OB and object table data T OB which are DMA-transferred to and form a game screen according to the transfer flag F2 set in the register AKF2.
Is DMA-transferred to VDP31.

【0106】b.衝突割込み処理ルーチンの動作 CPU51では、位置検出処理部40が出力する衝突割
込み出力に基づき、C図25に示す衝突割込み処理ルー
チンを実行し、ステップSK1へ処理を進める。ステッ
プSK1では、位置検出処理部40から送出される指定
検出枠値nを取り込んだか否かを判断する。そして、当
該指定検出枠値nを取り込むと、ここでの判断結果が
「YES」となり、次のステップSK2に処理を進め
る。ステップSK2では、レジスタMODEの値が
「1」、すなわち、現在のモードが第1モードであるか
否かを判断する。ここで、第1モードであると、判断結
果は「YES」となり、ステップSK3に進み、レジス
タCHKに格納されるチェンジフラグを「1」にした
後、続いて、ステップSK4に進み、レジスタMODE
の値を「2」に更新して第2モードに遷移する。このよ
うに、第1モードにおいて第1検出枠SF1で衝突検出
がなされると、チェンジフラグを「1」に設定して第2
モードへ遷移する。
B. Operation of Collision Interrupt Processing Routine The CPU 51 executes the collision interruption processing routine shown in FIG. 25C based on the collision interruption output output from the position detection processing unit 40, and advances the processing to step SK1. In step SK1, it is determined whether or not the designated detection frame value n sent from the position detection processing unit 40 has been fetched. Then, when the designated detection frame value n is fetched, the determination result here becomes "YES", and the process proceeds to the next step SK2. In step SK2, it is determined whether the value of the register MODE is "1", that is, whether the current mode is the first mode. Here, in the first mode, the determination result is "YES", the flow proceeds to step SK3, the change flag stored in the register CHK is set to "1", and then the flow proceeds to step SK4 to register the MODE mode.
The value of is updated to "2" and the second mode is entered. In this way, when a collision is detected in the first detection frame SF1 in the first mode, the change flag is set to “1” and the second flag is set.
Transition to mode.

【0107】これに対し、上記ステップSK2の判断結
果が「NO」の場合、つまり、現在のモードが第1モー
ドでない場合には、ステップSK5に進む。ステップS
K5に進むと、CPU51は、レジスタMODEの値が
「2」であるか否かを判断する。ここで、例えば、第2
モードであると、判断結果が「YES」となり、ステッ
プSK6に処理を進める。ステップSK6では、取り込
んだ指定検出枠値nが「1」あるいは「2」のどちらで
あるかを判断する。ここで、指定検出枠値nが「1」の
場合、すなわち、第2検出枠SF2内(図3参照)にお
いて衝突が検出された場合には、ゲーム動作を停止して
初期状態に戻すため、ステップSK7に進み、レジスタ
MODEの値を「1」にセットして第1モードに戻す。
そして、この後、CPU51は、ステップSK8に処理
を進め、チェンジフラグを「1」に設定する。
On the other hand, if the result of the determination in step SK2 is "NO", that is, if the current mode is not the first mode, the process proceeds to step SK5. Step S
When proceeding to K5, the CPU 51 determines whether or not the value of the register MODE is “2”. Here, for example, the second
In the mode, the determination result is “YES”, and the process proceeds to step SK6. In step SK6, it is determined whether the fetched designated detection frame value n is "1" or "2". Here, when the designated detection frame value n is “1”, that is, when a collision is detected in the second detection frame SF2 (see FIG. 3), the game operation is stopped and the initial state is returned to. In step SK7, the value of the register MODE is set to "1" to return to the first mode.
Then, after this, the CPU 51 advances the process to step SK8, and sets the change flag to "1".

【0108】一方、上記ステップSK6において、指定
検出枠値nが「2」の場合、すなわち、第3検出枠SF
3内(図3参照)においてバットB像とボール像との衝
突が検出された場合には、ステップSK9に処理を進め
る。ステップSK9では、レジスタTにセットされるタ
イムカウント値が所定値t1〜t2の範囲に収っているか
否かを判断する。タイムカウント値は、ゲーム開始直後
からカウントされ、ゲーム進行を管理する値である。ま
た、ここで言う所定値t1〜t2とは、「バット像」と
「ボール像」とがミートする際の有効期間を指す。した
がって、このステップSK9では、「バット像」と「ボ
ール像」との衝突タイミングが、ミートの有効期間内に
あるか否かを判断している。
On the other hand, in step SK6, if the designated detection frame value n is "2", that is, the third detection frame SF is detected.
If a collision between the bat B image and the ball image is detected within 3 (see FIG. 3), the process proceeds to step SK9. In step SK9, time count value set in the register T to determine whether Osamu' a range of a predetermined value t 1 ~t 2. The time count value is a value that is counted immediately after the start of the game and manages the progress of the game. Further, the predetermined values t 1 to t 2 referred to here refer to an effective period when the “bat image” and the “ball image” meet. Therefore, in this step SK9, it is determined whether or not the collision timing between the "bat image" and the "ball image" is within the effective period of the meet.

【0109】ここで、例えば、遊戯者がバットBを早目
に振ったり、振り遅れたりすると、衝突タイミングがミ
ートの有効期間を外すことになるから、判断結果は「N
O」となり、このルーチンを完了する。これに対し、衝
突タイミングがミートの有効期間内にあると、判断結果
は「YES」となり、次のステップSK10へ処理を進
める。ステップSK10では、走塁動作を行わせるた
め、レジスタMODEの値を「3」として第3モードへ
遷移させ、この後、当該モード遷移を表わすためにステ
ップSK8を介してチェンジフラグを「1」にセットす
る。
Here, for example, if the player swings the bat B early or delays it, the collision timing will fall outside the effective period of the meet, so the determination result is "N.
"O" and the routine is completed. On the other hand, if the collision timing is within the valid period of the meet, the determination result is “YES”, and the process proceeds to the next step SK10. In step SK10, in order to perform the base running operation, the value of the register MODE is set to "3" and the mode is changed to the third mode. After that, the change flag is changed to "1" through step SK8 to indicate the mode change. set.

【0110】次に、上述したステップSK5の判断結果
が「NO」の場合、すなわち、第3モードに遷移した場
合、CPU51は処理をステップSK11に進める。ス
テップSK11では、現在、取り込んでいる指定検出枠
値nが「2」、つまり、第5検出枠SF5(図4参照)
内での衝突検出であるか否かを判断する。ここで、第5
検出枠SF5内での衝突検出である場合、判断結果が
「YES」となり、次のステップSK12に処理を進め
る。次いで、ステップSK12では、ゲーム停止を指示
する第5検出枠SF5内での衝突検出に応じてレジスタ
MODEの値を「1」にセットして第1モードへ遷移さ
せ、この後、当該モード遷移を表わすためにステップS
K13に進み、チェンジフラグを「1」にセットしてこ
のルーチンを終了する。なお、上記ステップSK11に
おいて、判断結果が「NO」の場合には、第4検出枠S
F4(図4参照)におけるクロマキー検出のみがなされ
るから、何もせずにこのルーチンを終了するようにして
いる。
Next, if the result of the determination made in step SK5 is "NO", that is, if the mode has shifted to the third mode, the CPU 51 advances the process to step SK11. At step SK11, the designated detection frame value n that is currently loaded is “2”, that is, the fifth detection frame SF5 (see FIG. 4).
It is determined whether or not the collision is detected inside. Where the fifth
If the collision is detected within the detection frame SF5, the determination result is “YES”, and the process proceeds to the next step SK12. Next, in step SK12, the value of the register MODE is set to "1" in response to the collision detection in the fifth detection frame SF5 that instructs the game stop, and the mode is changed to the first mode. Step S to represent
The process proceeds to K13, the change flag is set to "1", and this routine is ended. In step SK11, if the determination result is "NO", the fourth detection frame S
Since only chroma key detection in F4 (see FIG. 4) is performed, this routine is ended without doing anything.

【0111】c.タイマインタラプト処理ルーチン 次に、ゲーム進行を管理するタイムカウント値を発生す
るタイマインタラプト処理ルーチンの動作について図2
6を参照して説明する。CPU51は、システムクロッ
ク回路24から供給されるシステムクロックに基づき、
所定周期毎に本ルーチンを実行してステップSM1に処
理を進め、レジスタTに格納されるタイムカウント値を
1インクリメントする。これにより、タイムカウント値
は、所定周期毎にカウントアップする。
C. Timer Interrupt Processing Routine Next, the operation of the timer interrupt processing routine for generating a time count value for managing the progress of the game will be described with reference to FIG.
This will be described with reference to FIG. The CPU 51, based on the system clock supplied from the system clock circuit 24,
This routine is executed every predetermined period, the process proceeds to step SM1, and the time count value stored in the register T is incremented by 1. As a result, the time count value is incremented every predetermined period.

【0112】次いで、ステップSM2に進むと、カウン
トアップされたレジスタTのタイムカウント値が、ゲー
ム終了時間に相当する所定値に達したか否かを判断す
る。ここで、所定値に達した場合には、判断結果が「Y
ES」となり、次のステップSM3に進み、レジスタT
をゼロリセットしてこのルーチンを終了する。一方、カ
ウントアップされた後のタイムカウント値が所定値に達
していない時には、このステップSM2の判断結果が
「NO」となり、このルーチンを終了する。
Then, in step SM2, it is determined whether or not the counted time value of the register T has reached a predetermined value corresponding to the game end time. Here, when the predetermined value is reached, the determination result is “Y
ES ”, the process proceeds to the next step SM3, and the register T
Is reset to zero and this routine ends. On the other hand, when the time count value after being counted up has not reached the predetermined value, the determination result of this step SM2 becomes "NO", and this routine is ended.

【0113】以上説明したように、本実施例によれば、
まず、第1モードでは、ゲーム開始をバットBのポイン
ティングで操作し、続いて、第2モードでは、バットB
のスイング位置とそのタイミングとに応じたバッティン
グ動作をシミュレートする一方、バッティング動作の停
止をバットBのポインティングで操作しており、さら
に、第3モードでは、第2モード下でボール像をミート
した時点からソックスSの位置変位を検出し、これに応
じてキャラクタ像を走塁動作させている。すなわち、動
作モードに応じて第1検出枠SF1〜第5検出枠SF5
のいずれかを時分割に指定し、指定した検出枠において
バットBあるいはソックスSをクロマキー検出するか
ら、撮像画像内に複数のクロマキー像が存在する場合で
も、誤動作することなく、クロマキー検出処理すること
が可能になる訳である。しかも、このような処理によれ
ば、操作スイッチや操作パッド等を設けることなく画像
制御し得るから、実際の行為に即した形でバッテイング
動作および走塁動作をシミュレートすることも可能にな
る。
As described above, according to this embodiment,
First, in the first mode, the start of the game is controlled by pointing the bat B, and then in the second mode, the bat B is operated.
While simulating the batting motion according to the swing position and the timing of the, the batting motion is stopped by pointing with bat B, and in the third mode, the ball image is met under the second mode. The positional displacement of the sock S is detected from the time point, and the base image is made to run in response to this. That is, depending on the operation mode, the first detection frame SF1 to the fifth detection frame SF5
Either one of the above is designated as time division, and the bat B or the socks S are chromakey-detected in the designated detection frame. Therefore, even if there are a plurality of chromakey images in the captured image, the chromakey detection processing can be performed without malfunction. Will be possible. Moreover, according to such processing, image control can be performed without providing an operation switch, an operation pad, or the like, so that it is possible to simulate a batting operation and a base running operation in a form that matches an actual action.

【0114】なお、この実施例では、バッテイング動作
および走塁動作をシミュレートする画像制御装置につい
て開示したが、本発明による要旨は当該装置に限定され
るものではなく、例えば、「テニス」や「ゴルフ」等、
遊戯者の運動行動を取り入れた各種ゲーム、あるいは仮
想現実感を創出する装置等に適用することが可能であ
る。また、前述した実施例では、第4検出枠SF4内で
クロマキー検出されるソックスS像の重心座標がフレー
ム毎に変位しているか否かを検出し、変位している場合
にはそれに合わせて表示画面上に表示されるキャラクタ
像を走塁動作させているが、これに限らず、例えば、ク
ロマキー検出したソックスS像の上端座標、下端座標、
右端座標あるいは左端座標のいずれか1つに注目してフ
レーム毎の変位を検出する態様としても良い。
In this embodiment, the image control device for simulating the batting motion and the base running motion is disclosed, but the gist of the present invention is not limited to the device, and for example, "tennis" or "tennis". Golf, etc.
The present invention can be applied to various games that incorporate a player's athletic behavior, or a device that creates a virtual reality. Further, in the above-described embodiment, it is detected whether or not the barycentric coordinates of the sock S image chroma-detected in the fourth detection frame SF4 are displaced for each frame, and if displaced, it is displayed accordingly. The base image of the character image displayed on the screen is run, but the invention is not limited to this.
It is also possible to adopt a mode in which the displacement of each frame is detected by paying attention to either one of the right end coordinate and the left end coordinate.

【0115】[0115]

【発明の効果】以上説明したように、本発明によれば、
モード選択手段によって選択される動作モードに応じて
検出枠設定手段が複数の検出枠の内から検出枠を指定
し、これを指定検出枠として撮像画像内に設定する。そ
して、クロマキー検出手段がこの指定検出枠に従って前
記撮像画像から特定色のクロマキー像を検出した場合
に、表示制御手段は前記動作モードと当該指定検出枠と
に対応付けられた動作指示を発生すると共に、当該動作
指示に従って表示画面を制御するので、撮像画像中に複
数のクロマキー像が存在する場合でも、誤動作すること
なく、クロマキー検出処理による画像制御を行うことが
できる。
As described above, according to the present invention,
The detection frame setting unit specifies a detection frame from among the plurality of detection frames according to the operation mode selected by the mode selection unit, and sets this in the captured image as the specified detection frame. When the chroma key detection means detects a chroma key image of a specific color from the captured image according to the designated detection frame, the display control means generates an operation instruction associated with the operation mode and the designated detection frame. Since the display screen is controlled in accordance with the operation instruction, even if there are a plurality of chroma key images in the captured image, it is possible to perform image control by the chroma key detection processing without malfunction.

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

【図1】本発明の実施例による画像制御装置の全体構成
を示す外観図である。
FIG. 1 is an external view showing an overall configuration of an image control apparatus according to an embodiment of the present invention.

【図2】同実施例における第1モードの概要を説明する
ための図である。
FIG. 2 is a diagram for explaining an outline of a first mode in the embodiment.

【図3】同実施例における第2モードの概要を説明する
ための図である。
FIG. 3 is a diagram for explaining an outline of a second mode in the same embodiment.

【図4】同実施例における第3モードの概要を説明する
ための図である。
FIG. 4 is a diagram for explaining an outline of a third mode in the embodiment.

【図5】同実施例による画像制御装置の電気的構成を示
すブロック図である。
FIG. 5 is a block diagram showing an electrical configuration of the image control apparatus according to the embodiment.

【図6】同実施例における撮像信号処理部11の構成を
示すブロック図である。
FIG. 6 is a block diagram showing a configuration of an image pickup signal processing unit 11 in the embodiment.

【図7】同実施例におけるビデオ信号処理部20の構成
を示すブロック図である。
FIG. 7 is a block diagram showing a configuration of a video signal processing unit 20 in the embodiment.

【図8】同実施例におけるクロマキー信号発生回路20
fを説明するための図である。
FIG. 8 is a chroma key signal generation circuit 20 in the same embodiment.
It is a figure for demonstrating f.

【図9】同実施例におけるVDP31の構成を示すブロ
ック図である。
FIG. 9 is a block diagram showing a configuration of a VDP 31 in the embodiment.

【図10】同実施例における位置検出処理部40のワー
クRAMの内容を説明するためのメモリマップである。
FIG. 10 is a memory map for explaining the contents of the work RAM of the position detection processing unit 40 in the embodiment.

【図11】位置検出処理部40におけるメインルーチン
の動作を示すフローチャートである。
FIG. 11 is a flowchart showing an operation of a main routine in the position detection processing section 40.

【図12】位置検出処理部40におけるメインルーチン
の動作を示すフローチャートである。
FIG. 12 is a flowchart showing an operation of a main routine in the position detection processing section 40.

【図13】位置検出処理部40における初期画面マップ
作成ルーチンの動作を示すフローチャートである。
13 is a flowchart showing the operation of an initial screen map creation routine in the position detection processing unit 40. FIG.

【図14】位置検出処理部40における処理画面マップ
作成ルーチンの動作を示すフローチャートである。
FIG. 14 is a flowchart showing an operation of a processing screen map creation routine in the position detection processing unit 40.

【図15】位置検出処理部40における衝突座標検出処
理ルーチンの動作を示すフローチャートである。
FIG. 15 is a flowchart showing an operation of a collision coordinate detection processing routine in the position detection processing section 40.

【図16】位置検出処理部40における座標検出処理ル
ーチンの動作を示すフローチャートである。
16 is a flowchart showing the operation of a coordinate detection processing routine in the position detection processing section 40. FIG.

【図17】位置検出処理部40における重心計算処理ル
ーチンの動作を示すフローチャートである。
FIG. 17 is a flowchart showing an operation of a centroid calculation processing routine in the position detection processing section 40.

【図18】CPU51におけるCPUメインルーチンの
動作を示すフローチャートである。
FIG. 18 is a flowchart showing an operation of a CPU main routine in the CPU 51.

【図19】CPU51におけるCPUメインルーチンの
動作を示すフローチャートである。
FIG. 19 is a flowchart showing an operation of a CPU main routine in the CPU 51.

【図20】CPU51におけるCPUメインルーチンの
動作を示すフローチャートである。
FIG. 20 is a flowchart showing an operation of a CPU main routine in the CPU 51.

【図21】CPU51におけるCPUメインルーチンの
動作を示すフローチャートである。
FIG. 21 is a flowchart showing an operation of a CPU main routine in the CPU 51.

【図22】同実施例における第1モードの動作を説明す
るための図である。
FIG. 22 is a diagram for explaining the operation of the first mode in the same example.

【図23】同実施例における第3モードの動作を説明す
るための図である。
FIG. 23 is a diagram for explaining the operation in the third mode in the example.

【図24】CPU51における転送割込み処理ルーチン
の動作を示すフローチャートである。
FIG. 24 is a flowchart showing the operation of a transfer interrupt processing routine in the CPU 51.

【図25】CPU51における衝突割込み処理ルーチン
の動作を示すフローチャートである。
FIG. 25 is a flowchart showing the operation of a collision interrupt processing routine in the CPU 51.

【図26】CPU51におけるタイマインタラプトルー
チンの動作を示すフローチャートである。
FIG. 26 is a flowchart showing the operation of the timer interrupt routine in the CPU 51.

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

1 撮像部(クロマキー検出手段) 2 装置本体 3 ディスプレイ 20 ビデオ信号処理部(クロマキー検出手段) 30 画像処理部(表示制御手段) 40 位置検出処理部(検出枠設定手段、クロマキー検
出手段) 50 制御部 51 CPU(モード選択手段、検出枠設定手段、表示
制御手段)
1 Imaging Unit (Chroma Key Detecting Means) 2 Device Main Body 3 Display 20 Video Signal Processing Unit (Chroma Key Detecting Means) 30 Image Processing Unit (Display Control Means) 40 Position Detection Processing Unit (Detection Frame Setting Means, Chroma Key Detecting Means) 50 Control Unit 51 CPU (mode selection means, detection frame setting means, display control means)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数の動作モードを有し、この複数の動
作モードのいずれか一つが選択されるモード選択手段
と、 検出すべき領域を表わす複数の検出枠を有し、この内か
ら上記選択された動作モードに対応した検出枠を指定し
て、これを指定検出枠として撮像画像内に設定する検出
枠設定手段と、 前記指定検出枠に従って前記撮像画像から特定色のクロ
マキー像を検出するクロマキー検出手段と、 前記指定検出枠内にこのクロマキー像が検出された場
合、前記動作モードと当該指定検出枠とに対応付けられ
た動作指示を発生すると共に、当該動作指示に従って表
示画面を制御する表示制御手段とを具備することを特徴
とする画像制御装置。
1. A mode selection means having a plurality of operation modes, one of the plurality of operation modes being selected, and a plurality of detection frames representing an area to be detected, and the selection is made from these. A detection frame corresponding to the specified operation mode, and setting the detection frame as a specified detection frame in the captured image, and a chroma key for detecting a chroma key image of a specific color from the captured image according to the specified detection frame. When the chroma key image is detected in the detection means and the designated detection frame, an operation instruction associated with the operation mode and the designated detection frame is generated, and a display for controlling the display screen according to the operation instruction is displayed. An image control apparatus comprising: a control unit.
【請求項2】 前記検出枠設定手段は、前記複数の検出
枠の位置および寸法を、第1および第2の枠座標からな
る対角要素として記憶することを特徴とする請求項1記
載の画像制御装置。
2. The image according to claim 1, wherein the detection frame setting means stores the positions and dimensions of the plurality of detection frames as diagonal elements composed of first and second frame coordinates. Control device.
【請求項3】 複数の動作モードを有し、この複数の動
作モードのいずれか一つが選択されるモード選択手段
と、 検出すべき領域を表わす複数の検出枠を有し、この内か
ら前記選択された動作モードに対応した検出枠を指定し
て、これを指定検出枠として撮像画像内に設定する検出
枠設定手段と、 前記指定検出枠に従って前記撮像画像から特定色のクロ
マキー像を検出するクロマキー検出手段と、 予め記憶手段に格納される画像データを読み出して表示
画面上に所定画像を表示する画像発生手段と、 前記指定検出枠内で、前記クロマキー像と前記所定画像
との衝突の有無を検出する衝突検出手段と、 この衝突検出手段が前記クロマキー像と前記所定画像と
の衝突を検出した場合、その衝突状態と前記動作モード
とに対応付けられた動作指示を発生し、当該動作指示に
応じて前記所定画像の表示態様を制御する表示制御手段
とを具備することを特徴とする画像制御装置。
3. A mode selection means having a plurality of operation modes, wherein any one of the plurality of operation modes is selected, and a plurality of detection frames representing an area to be detected. A detection frame corresponding to the specified operation mode, and setting the detection frame as a specified detection frame in the captured image, and a chroma key for detecting a chroma key image of a specific color from the captured image according to the specified detection frame. A detection unit; an image generation unit that reads out image data stored in advance in the storage unit and displays a predetermined image on a display screen; and a presence / absence of collision between the chroma key image and the predetermined image in the designated detection frame. Collision detecting means for detecting, and when the collision detecting means detects a collision between the chroma key image and the predetermined image, an operation instruction associated with the collision state and the operation mode. Generated, image control apparatus characterized by comprising a display control means for controlling the display mode of the predetermined image in response to the operation instruction.
【請求項4】 複数の動作モードを有し、この複数の動
作モードのいずれか一つが選択されるモード選択手段
と、 検出すべき領域を表わす複数の検出枠を有し、この内か
ら前記選択された動作モードに対応した検出枠を時分割
に指定し、これを指定検出枠として撮像画像内に設定す
る検出枠設定手段と、 前記指定検出枠に従って前記撮像画像から特定色のクロ
マキー像を検出するクロマキー検出手段と、 予め記憶手段に格納される画像データを読み出して表示
画面上に所定画像を表示する画像発生手段と、 前記動作モードが所定の動作モード下である時に前記指
定検出枠内で前記クロマキー像が検出された場合、前記
撮像画像中における前記クロマキー像の位置変位に応じ
て前記所定画像の表示態様を制御する表示制御手段とを
具備することを特徴とする画像制御装置。
4. A mode selection means having a plurality of operation modes, one of the plurality of operation modes being selected, and a plurality of detection frames representing a region to be detected, the selection being made from these. A detection frame corresponding to the specified operation mode in time division, and a detection frame setting means for setting the detection frame as a specified detection frame in the captured image; and a chroma key image of a specific color from the captured image according to the specified detection frame. Chroma key detection means, an image generation means for reading out image data stored in advance in the storage means and displaying a predetermined image on the display screen, and within the designated detection frame when the operation mode is under the predetermined operation mode. Display control means for controlling the display mode of the predetermined image in accordance with the positional displacement of the chroma key image in the captured image when the chroma key image is detected. Image control apparatus according to claim.
【請求項5】 前記表示制御手段は、前撮像フレームに
おけるクロマキー像の位置と、現撮像フレームにおける
クロマキー像の位置との差異の有無により位置変位を検
出することを特徴とする請求項4記載の画像制御装置。
5. The display control means detects the positional displacement based on whether or not there is a difference between the position of the chroma key image in the previous imaging frame and the position of the chroma key image in the current imaging frame. Image control device.
JP6114242A 1994-04-28 1994-04-28 Picture controller Pending JPH07302324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6114242A JPH07302324A (en) 1994-04-28 1994-04-28 Picture controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6114242A JPH07302324A (en) 1994-04-28 1994-04-28 Picture controller

Publications (1)

Publication Number Publication Date
JPH07302324A true JPH07302324A (en) 1995-11-14

Family

ID=14632843

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6114242A Pending JPH07302324A (en) 1994-04-28 1994-04-28 Picture controller

Country Status (1)

Country Link
JP (1) JPH07302324A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013101527A (en) * 2011-11-09 2013-05-23 Sony Corp Information processing apparatus, display control method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013101527A (en) * 2011-11-09 2013-05-23 Sony Corp Information processing apparatus, display control method, and program

Similar Documents

Publication Publication Date Title
JP3766981B2 (en) Image control apparatus and image control method
JP3529138B2 (en) Image processing apparatus, image processing method, game apparatus using the same, and storage medium
JP3145064B2 (en) Video game machine and medium recording video game program
EP0652524A1 (en) Image processing device and method
JP2001029654A (en) Image processing device
US8506371B2 (en) Game device, game device control method, program, information storage medium
JP2005349174A (en) Game program and game device
JP2007159725A (en) Game program and game apparatus
JP3463379B2 (en) Image control apparatus and image control method
JPH10290886A (en) Image processing device and image processing method
JPH0850661A (en) Image controller
JP3451343B2 (en) Signal generation apparatus and signal generation method
JPH07302324A (en) Picture controller
JPH07271982A (en) Image controller
JP3371535B2 (en) Image control apparatus and image control method
JP3622234B2 (en) Image control apparatus and image control method
JPH07282265A (en) Image control unit
JP3407394B2 (en) Image display control apparatus and image display control method
JPH07282236A (en) Image controller
US6354942B1 (en) Method for executing game and game device for implementing same
JPH0887592A (en) Image controller
JPH0879621A (en) Picture controller
JPH0855212A (en) Image controller
JP4277066B2 (en) Image processing apparatus and image processing method
JP3371521B2 (en) Signal generation apparatus and signal generation method