[go: up one dir, main page]

JP2008147987A - Image synthesizing method, and image synthesizer - Google Patents

Image synthesizing method, and image synthesizer Download PDF

Info

Publication number
JP2008147987A
JP2008147987A JP2006332690A JP2006332690A JP2008147987A JP 2008147987 A JP2008147987 A JP 2008147987A JP 2006332690 A JP2006332690 A JP 2006332690A JP 2006332690 A JP2006332690 A JP 2006332690A JP 2008147987 A JP2008147987 A JP 2008147987A
Authority
JP
Japan
Prior art keywords
position information
image
horizontal direction
display
point
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
JP2006332690A
Other languages
Japanese (ja)
Inventor
Tatsu Ooka
達 大岡
Hideto Yamada
英仁 山田
Koji Shida
光司 志田
Jun Suzuki
潤 鈴木
Toshiyuki Tamura
俊之 田村
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.)
Renesas Technology Corp
Original Assignee
Renesas Technology Corp
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 Renesas Technology Corp filed Critical Renesas Technology Corp
Priority to JP2006332690A priority Critical patent/JP2008147987A/en
Publication of JP2008147987A publication Critical patent/JP2008147987A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image synthesizing method and an image synthesizer by which a specification area with the optional shape is set by simple signal processing. <P>SOLUTION: Pieces of first and fourth positional information corresponding to each of a first, a second, a third and a fourth points are formed at the first, the second, the third and the fourth points where setting of the same point is permitted in the first and second different horizontal directions on a display screen. A pair of pieces of positional information associated with an area connecting the first to the fourth positional information on the display screen from the first to the fourth positional information and in one to a plurality of horizontal directions between the first horizontal direction and the second horizontal direction are formed by an operation. Display pixel information corresponding to between the first and the second positional information, display pixel information corresponding to between a pair of one to a plurality of positional information calculated by the operation and display pixel information corresponding to between the third and the fourth positional information are replaced with optional image information different from other display pixel information. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

この発明は、画像合成方法及び画像合成装置に適用して有効な技術に関し、例えば監視カメラ装置に利用して有効な技術に関するものである。   The present invention relates to a technique effective when applied to an image synthesizing method and an image synthesizing apparatus, for example, a technique effective for use in a surveillance camera apparatus.

監視カメラでは、監視領域を含む撮影領域内に映したくない領域、またはプライバシー保護の観点から映すべきではない領域を含むことが多くある。この問題の解決手段として、撮影領域の特定の領域を単色画像等の表示に問題の無い画像でマスクする方法がある。特開平6−181539号公報では、出力画像を格子状の複数のエリアに分割し、保護領域をカメラのパン角、チルト角、水平及び垂直方向の範囲情報で記憶し、分割された各エリアについて保護領域を含むか否かを判定し、保護領域を含むエリアをマスクする方法が記述されている。特開2001−69494号公報では、保護領域を覆う上下の辺は水平で左右の辺は垂直な矩形領域をカメラのパン角、チルト角、矩形領域の各頂点の座標で記憶しマスクする方法が記述されている。
特開平6−181539号公報 特開2001−69494号公報
Surveillance cameras often include an area that is not desired to be imaged within an imaging area including the monitoring area or an area that should not be imaged from the viewpoint of privacy protection. As a means for solving this problem, there is a method of masking a specific region of the photographing region with an image having no problem in displaying a monochrome image or the like. In Japanese Patent Laid-Open No. 6-181539, an output image is divided into a plurality of grid-like areas, and a protection area is stored with camera pan angle, tilt angle, horizontal and vertical range information, and for each divided area A method for determining whether or not to include a protection area and masking an area including the protection area is described. In Japanese Patent Laid-Open No. 2001-69494, there is a method of storing and masking a rectangular area in which the upper and lower sides covering the protection area are horizontal and the left and right sides are vertical by the camera pan angle, tilt angle, and coordinates of each vertex of the rectangular area. is described.
JP-A-6-181539 JP 2001-69494 A

上記特許文献1及び2に記載された従来技術では、マスク画像の形状は上下の辺が水平で左右の辺が垂直な矩形に限られているが、保護領域は様々な形状があり、保護領域を全てマスクした場合は、監視すべき領域の一部もマスクされてしまう問題と、監視すべき領域を部分的にでもマスクしない様に保護領域をマスクした場合は、保護領域の一部が見えてしまう問題が起こる。   In the prior art described in Patent Documents 1 and 2, the shape of the mask image is limited to a rectangle in which the upper and lower sides are horizontal and the left and right sides are vertical. However, the protection area has various shapes, and the protection area If all of the above are masked, a part of the area to be monitored is masked, and if the protection area is masked so as not to partially mask the area to be monitored, a part of the protection area is visible. Will cause problems.

この発明の目的は、簡単な信号処理によって任意形状の指定領域を設定できる画像合成方法及び画像合成装置を提供することにある。この発明の他の目的は、監視カメラの出力画像について監視領域を損なわずに任意の保護領域を全てマスク出来るようにすることにある。この発明の前記ならびにそのほかの目的と新規な特徴は、本明細書の記述および添付図面から明らかになるであろう。   An object of the present invention is to provide an image composition method and an image composition apparatus capable of setting a designated area having an arbitrary shape by simple signal processing. Another object of the present invention is to enable masking of an arbitrary protection area without damaging the monitoring area in the output image of the monitoring camera. The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

本願における実施例の1つは下記の通りである。すなわち、表示画面上における異なる第1と第2水平方向において同一ポイントの設定が許可された第1及び第2ポイントと第3及び第4ポイントとにそれぞれ対応した第1ないし第4位置情報を形成する。上記第1ないし第4位置情報から上記表示画面上における上記第1ないし第4位置情報を結ぶ領域に対応され、上記第1水平方向と第2水平方向の間の1ないし複数の水平方向における一対の位置情報を演算により形成する。上記第1及び第2位置情報の間に対応した表示画素情報と、上記演算により求められた1ないし複数の一対の位置情報の間に対応した表示画素情報と、上記第3及び第4位置情報の間に対応した表示画素情報とを他の表示画素情報とは異なる任意の画像情報に置き換える。   One embodiment in the present application is as follows. That is, the first to fourth position information corresponding to the first and second points and the third and fourth points, which are permitted to set the same point in different first and second horizontal directions on the display screen, are formed. To do. A pair in one or more horizontal directions between the first horizontal direction and the second horizontal direction corresponding to a region connecting the first to fourth position information on the display screen from the first to fourth position information. The position information is formed by calculation. Display pixel information corresponding between the first and second position information, display pixel information corresponding to one or more pairs of position information obtained by the calculation, and the third and fourth position information The display pixel information corresponding to the period is replaced with arbitrary image information different from the other display pixel information.

本願における実施例の他の1つは下記の通りである。すなわち、表示画面上における異なる第1と第2水平方向において同一ポイントの設定が許可された第1及び第2と第3及び第4ポイントにそれぞれ対応した位置情報を第1ないし第4記憶手段に記憶する。マスク処理部により上記表示画面上における上記第1ないし第4ポイントを結ぶ領域に対応され、上記第1水平方向と第2水平方向の間の1ないし複数の水平方向における一対のポイントに対応した位置情報を形成する。上記マスク処理部により、画像選択部を制御して上記第1ないし第4ポイントを結ぶ領域に対応された位置情報の表示画素情報を他の表示画素情報とは異なる任意の画像情報に置き換える。   Another embodiment of the present application is as follows. That is, position information corresponding to the first, second, third, and fourth points, respectively, for which setting of the same point is permitted in different first and second horizontal directions on the display screen, is stored in the first to fourth storage means. Remember. A position corresponding to a region connecting the first to fourth points on the display screen by the mask processing unit and corresponding to a pair of points in one or more horizontal directions between the first horizontal direction and the second horizontal direction. Form information. The mask processing unit controls the image selection unit to replace the display pixel information of the position information corresponding to the region connecting the first to fourth points with arbitrary image information different from the other display pixel information.

水平方向において同一ポイントの設定が許可された4つのポイントにより任意の四辺形及び三角形を形成することができるので、簡単な信号処理によりこれらを組み合わせて指定領域が任意に可能となる。   Arbitrary quadrilaterals and triangles can be formed by four points that are allowed to set the same point in the horizontal direction, so that a designated area can be arbitrarily formed by combining these by simple signal processing.

図1には、この発明に係るマスク形状を説明図が示されている。撮像装置(カメラ)からの出力画像P1上において特定部分をマスクする保護領域は、同図にハーフトーンで示したように、A1、A2、A5,A6からなる4つの座標(ポイント)と、保護領域の左辺の傾きを示すΔV1とΔH1、及び右辺の傾きを示すΔV2とΔH2とで設定される。上記A1とA2の座標は、同一水平方向(V1)に設けられること、A5とA6は、上記A1とA2とは異なる同一水平方向(V2)に設けられるものである。このような条件とすることにより、A3とA4の座標は、A1とA2から自動的に求められるものであり、上記傾きΔV1とΔH1及びΔV2とΔH2を求めるときに利用される。   FIG. 1 is an explanatory view showing a mask shape according to the present invention. The protection area for masking a specific portion on the output image P1 from the imaging device (camera) is protected with four coordinates (points) consisting of A1, A2, A5, and A6, as shown by the halftone in FIG. It is set by ΔV1 and ΔH1 indicating the inclination of the left side of the region, and ΔV2 and ΔH2 indicating the inclination of the right side. The coordinates of A1 and A2 are provided in the same horizontal direction (V1), and A5 and A6 are provided in the same horizontal direction (V2) different from A1 and A2. By setting such a condition, the coordinates of A3 and A4 are automatically obtained from A1 and A2, and are used when the inclinations ΔV1 and ΔH1 and ΔV2 and ΔH2 are obtained.

例えば、上下の辺は水平である為、A1の座標を(H1,V1)、A4の座標を(H2、V2)とした場合、A2の座標は(H2、V1)、A3の座標は(H1,V2)で表される。そして、上記保護領域は、座標A1とA5からΔV1、ΔH1の値を計算し、A2とA6からΔV2、ΔH2を計算する。そして、V1からV2に至る水平方向での両端座標は、ΔV1(ΔV2)毎に水平方向の座標H1(H2)をΔH1(ΔH2)分だけ変化させた水平方向の座標H1’(H2’)を計算する事で求められる。これにより、マスク画像(保護領域)として左右の辺に傾きを持たせ台形状に設定することができる。本願では、上記A1とA2、またはA3とA4の座標を同じにする事を許可することを特徴としている。このような条件を付加することにより、上記4つのポイント(A1,A2,A5,A6)の指定により、矩形、台形、平行四辺形、三角形のような複数通りの保護領域を設定することが可能となる。   For example, since the upper and lower sides are horizontal, if the coordinates of A1 are (H1, V1) and the coordinates of A4 are (H2, V2), the coordinates of A2 are (H2, V1), and the coordinates of A3 are (H1 , V2). The protected area calculates ΔV1 and ΔH1 from coordinates A1 and A5, and calculates ΔV2 and ΔH2 from A2 and A6. The horizontal coordinate from V1 to V2 is the horizontal coordinate H1 ′ (H2 ′) obtained by changing the horizontal coordinate H1 (H2) by ΔH1 (ΔH2) for each ΔV1 (ΔV2). It is calculated by calculating. As a result, the mask image (protection area) can be set in a trapezoidal shape with the left and right sides inclined. The present application is characterized by permitting the coordinates of A1 and A2 or A3 and A4 to be the same. By adding such conditions, it is possible to set multiple protection areas such as rectangles, trapezoids, parallelograms, and triangles by specifying the above four points (A1, A2, A5, A6). It becomes.

上記矩形は、上下の辺が水平で左右の辺が垂直となる4つのポイントで指定できる。台形は、上記のようにA1−A2の距離と、A5−A6の距離を異ならせることにより指定できる。平行四辺形は、A1−A2の距離と、A5−A6を等しくすることにより決定できる。そして、三角形は、A1とA2又はA5とA6を同一座標とすることにより設定することができる。このように矩形以外の台形、平行四辺形及び三角形の保護領域を設定することができるために、後述するような監視カメラ装置においては、監視領域に沿った柔軟性を持つ保護領域を設定でき、監視機能とプライバシー等の保護との両立性の向上を図ることができる。   The rectangle can be specified by four points where the upper and lower sides are horizontal and the left and right sides are vertical. The trapezoid can be specified by making the distance A1-A2 different from the distance A5-A6 as described above. The parallelogram can be determined by making the distance A1-A2 equal to A5-A6. The triangle can be set by setting A1 and A2 or A5 and A6 to the same coordinate. Since it is possible to set a trapezoidal shape other than a rectangle, a parallelogram, and a triangular protection area in this way, in a surveillance camera device as described later, a protection area having flexibility along the monitoring area can be set, It is possible to improve compatibility between the monitoring function and privacy protection.

上記のようにマスク画像の左右の辺に傾斜をつける事で、上下の辺が水平で左右の辺が垂直な矩形以外の保護領域について監視領域を損なわずにマスク出来る。マスク画像の基本形状を左右の辺が垂直で上下の辺が水平な四角形とするが、左右の辺に傾きをつけることで、矩形以外のマスク画像を可能にし、1つまたは複数のマスク画像を使う事でカメラからの出力画像に含まれる保護領域と監視領域を出来るだけ正確に分けられる様にする。2次元のどの様な図形も基本的には複数の三角形の組み合わせで表現出来るが、三角形をマスク画像の基本形状にした場合、四角形を表現するためには必ず2つのマスク画像が必要になる。これに対して、台形を基本形状として上記上辺又は下辺の両座標を同一とすることを許可することにより、三角形の領域も設定できる。この結果、本願発明で設定可能な保護領域は、上記のように矩形以外の台形、平行四辺形及び三角形の複数通りの保護領域を基本形状で設定することができるものである。   By inclining the left and right sides of the mask image as described above, it is possible to mask a protection area other than a rectangle in which the upper and lower sides are horizontal and the left and right sides are vertical without damaging the monitoring area. The basic shape of the mask image is a quadrangle whose left and right sides are vertical and whose upper and lower sides are horizontal. By tilting the left and right sides, a mask image other than a rectangle is made possible, and one or more mask images are displayed. By using it, the protection area and the monitoring area included in the output image from the camera can be separated as accurately as possible. Any two-dimensional figure can be basically represented by a combination of a plurality of triangles. However, when a triangle is used as a basic shape of a mask image, two mask images are necessarily required to represent a quadrangle. On the other hand, a triangular region can also be set by allowing a trapezoid as a basic shape and making the coordinates of both the upper side and the lower side the same. As a result, the protection area that can be set in the present invention can set a plurality of protection areas of a trapezoid, a parallelogram, and a triangle other than a rectangle as described above.

理論的には、座標A1とA3にΔV1,ΔH1(又はθ1)を設定して、座標A5を演算で求めるようにすることもできるが、前記監視カメラの映像画面上のブライバー等保護のための領域を設定する場合、上記保護領域の下端を演算で求めるよりも直接に指定できる前記A1,A2及びA5,A6で特定し、ΔV1,ΔH1(又はθ1)を演算で求めて上記保護領域内の水平ライン上の前記H1’とH2’を算出する方が実際的である。   Theoretically, ΔV1 and ΔH1 (or θ1) can be set to the coordinates A1 and A3, and the coordinates A5 can be obtained by calculation. When setting an area, the lower end of the protection area is specified by the A1, A2, and A5, A6 which can be directly specified rather than obtained by calculation, and ΔV1, ΔH1 (or θ1) is obtained by calculation, It is more practical to calculate the H1 ′ and H2 ′ on the horizontal line.

図2には、この発明に係る監視カメラの一実施例のブロック図が示されている。イメージセンサは、CCD又はMOS等からなる固定撮像素子からなり、映像信号をアナログ信号又はデジタル信号として出力する。カメラ信号処理LSIは、アナログ入力信号用としてAFE(Analog Front End;アナログ・フロント・エンド)を有する。このAEFは、ノイズ除去の為のCDS(相関二重サンプリング;Correlated Double Sampling)回路、信号レベルを最適化するPGA(Programmable Gain Amplifier)回路、アナログ/デジタル変換を行うADC回路からなる。   FIG. 2 is a block diagram showing one embodiment of the surveillance camera according to the present invention. The image sensor is composed of a fixed imaging device made of CCD or MOS, and outputs a video signal as an analog signal or a digital signal. The camera signal processing LSI has an AFE (Analog Front End) for analog input signals. The AEF includes a CDS (Correlated Double Sampling) circuit for removing noise, a PGA (Programmable Gain Amplifier) circuit for optimizing a signal level, and an ADC circuit for performing analog / digital conversion.

上記AFEの出力信号又はイメージセンサからのデジタル映像信号は、カメラ信号処理部により輝度信号処理、色信号処理が行われる。この実施例では、前記のように監視領域を含む撮影領域内に映したくない領域、またはプライバシー保護の観点から映すべきではない領域を設定するためのマスク処理部が設けられる。上記カメラ信号処理部で形成された撮像信号は、上記マスク処理部を通して一部がマスクされ、フォーマット変換部により表示装置に適合したフォーマットに変換され、液晶パネル等のようなデジタル入力の表示装置に対しては、そのままデジタル信号の形態で出力され、CRTのようなアナログ入力の表示装置に対しては、デジタル/アナログ変換回路DACを介してアナログ信号に変換されて出力される。マイコンは、イメージセンサ、AFE、カメラ信号処理部、マスク処理部、フォーマット変換部及びDACの制御を行う。座標設定部は、マスク位置の座標を入力するためのカーソル操作等の制御入力を行うために用いられる。   The AFE output signal or the digital video signal from the image sensor is subjected to luminance signal processing and color signal processing by a camera signal processing unit. In this embodiment, as described above, a mask processing unit is provided for setting a region that is not desired to be imaged in the imaging region including the monitoring region or a region that should not be imaged from the viewpoint of privacy protection. The imaging signal formed by the camera signal processing unit is partially masked through the mask processing unit, converted into a format suitable for the display device by the format conversion unit, and converted into a digital input display device such as a liquid crystal panel. On the other hand, it is output as it is in the form of a digital signal, and is converted to an analog signal via a digital / analog conversion circuit DAC and output to an analog input display device such as a CRT. The microcomputer controls the image sensor, AFE, camera signal processing unit, mask processing unit, format conversion unit, and DAC. The coordinate setting unit is used to perform control input such as a cursor operation for inputting the coordinates of the mask position.

図3には、図2のマスク処理部の一実施例のブロック図が示されている。Vカウンタ2は、カメラ信号処理部で形成された垂直同期信号VSYNCでリセットされ、水平同期信号HSYNCをカウントすることで前記図1の出力画像P1の先頭からのライン数をカウントする。Hカウンタ3は、上記水平同期信号HSYNCによりリセットされて、各ライン毎の先頭から画素数をカウントする。これにより、出力画像P1上における座標情報を得ることができる。マスク画像生成部1は、前記カメラ信号処理部で形成されたカメラ信号処理出力VSに置き換えられるべきマスク信号MDを形成する。   FIG. 3 shows a block diagram of an embodiment of the mask processing unit of FIG. The V counter 2 is reset by the vertical synchronization signal VSYNC formed by the camera signal processing unit, and counts the number of lines from the head of the output image P1 of FIG. 1 by counting the horizontal synchronization signal HSYNC. The H counter 3 is reset by the horizontal synchronization signal HSYNC and counts the number of pixels from the head of each line. Thereby, coordinate information on the output image P1 can be obtained. The mask image generation unit 1 forms a mask signal MD to be replaced with the camera signal processing output VS formed by the camera signal processing unit.

マスク領域設定部41〜4NのようなN組の回路から構成される。上記N組のマスク領域設計部は、マスク設定部41が代表として例示的に示されているように、各設定値を記憶するレジスタ51〜58、垂直方向領域判定部61、水平方向領域判定部62及びH1’演算部63、ΔV1カウンタ64、H2’演算部65、ΔV2カウンタ66から構成される。上記垂直方向領域判定部61、水平方向領域判定部62は、上記カメラ画像処理出力YDが上記マスク領域内か否かの判定信号VMSK及びHMSKをそれぞれ形成する。画像選択部7は、上記判定信号VMSK及びHMSKに対応して、上記カメラ信号処理出力VS又は上記マスク信号MDとを選択して表示装置に供給すべき出力信号VDSPを形成する。   The mask area setting units 41 to 4N are configured by N sets of circuits. The N sets of mask area design units include registers 51 to 58 for storing each set value, a vertical direction area determination unit 61, and a horizontal direction area determination unit, as the mask setting unit 41 is exemplarily shown as a representative example. 62, an H1 ′ arithmetic unit 63, a ΔV1 counter 64, an H2 ′ arithmetic unit 65, and a ΔV2 counter 66. The vertical direction region determination unit 61 and the horizontal direction region determination unit 62 form determination signals VMSK and HMSK, respectively, for determining whether the camera image processing output YD is within the mask region. The image selection unit 7 selects the camera signal processing output VS or the mask signal MD in response to the determination signals VMSK and HMSK, and forms an output signal VDSP to be supplied to the display device.

ΔV1カウンタは、上記垂直方向領域判定部61の出力より、マスク画像の先頭ラインからΔV1分のカウントを繰り返す。同様に、ΔV2カウンタは、上記垂直方向領域判定部61の出力より、マスク画像の先頭ラインからΔV2分のカウントを繰り返す。H1’演算部63は、H1設定レジスタ51、ΔH1設定レジスタ54の記憶情報、及びΔV1カウンタの出力より、マスク画像の先頭ラインからΔV1毎にH1設定に対してΔH1設定値を加減算して新たなH1の座標H1’を計算する。同様に、H2’演算部65は、H2設定レジスタ56、ΔH2設定レジスタ57の記憶情報、及びΔV2カウンタの出力より、マスク画像の先頭ラインからΔV2毎にH2設定に対しΔH2設定値を加減算して新たなH2の座標H2 ’を計算する。水平方向領域判定部62は、上記H1’演算部63、H2’演算部65、及びHカウンタ3の計数値から各ライン毎にマスク画像の水平方向の領域を判定する。   The ΔV1 counter repeats counting for ΔV1 from the head line of the mask image based on the output of the vertical direction area determination unit 61. Similarly, the ΔV2 counter repeats counting for ΔV2 from the head line of the mask image based on the output of the vertical direction area determination unit 61. The H1 ′ calculation unit 63 adds / subtracts the ΔH1 set value to / from the H1 setting for each ΔV1 from the head line of the mask image based on the storage information of the H1 setting register 51 and the ΔH1 setting register 54 and the output of the ΔV1 counter. The coordinates H1 ′ of H1 are calculated. Similarly, the H2 ′ calculator 65 adds / subtracts the ΔH2 set value to / from the H2 setting for each ΔV2 from the head line of the mask image based on the information stored in the H2 setting register 56 and the ΔH2 setting register 57 and the output of the ΔV2 counter. Calculate new H2 coordinates H2 '. The horizontal area determination unit 62 determines the horizontal area of the mask image for each line from the count values of the H1 'calculation unit 63, H2' calculation unit 65, and H counter 3.

この実施例のマスク領域設定部4には、V1,V2,H1,H2及びΔV1,ΔV2とΔH1,ΔH2の設定値が各レジスタ51〜58に記憶される。このことは、前記図1において、上記V1,V2,H1,H2により、座標A1,A2及びA3,A4の4つのポイントを指定し、前記A5とA6のポイントを上記ΔV1とΔH1及びΔV2とΔH2で間接的に指定することを意味するものではない。勿論、そのように指定することは妨げないが、領域設定にあたってはA5,A6を直接に入力することの方がはるかに使い勝手がよい。この実施例では、前記図2の座標設定部により上記A1,A2及びA5とA6を入力することで、マイコンによりΔV1とΔH1及びΔV2とΔH2を生成して、上記マスク領域設定部41の各レジスタに入力するものである。   In the mask area setting unit 4 of this embodiment, V1, V2, H1, H2 and ΔV1, ΔV2, and ΔH1, ΔH2 set values are stored in the respective registers 51-58. In FIG. 1, the four points A1, A2, and A3, A4 are designated by V1, V2, H1, and H2, and the points A5 and A6 are designated as ΔV1, ΔH1, ΔV2, and ΔH2. It does not mean that it is specified indirectly with. Of course, such designation is not hindered, but it is much easier to directly input A5 and A6 when setting the area. In this embodiment, by inputting the A1, A2, A5, and A6 by the coordinate setting unit of FIG. 2, the microcomputer generates ΔV1, ΔH1, ΔV2, and ΔH2, and each register of the mask area setting unit 41 To enter.

図4には、上記図3のマスク領域設定部の動作を説明するためのフローチャート図が示されている。ステップ(1)では、垂直同期信号VSYNCの検出が行われる。これにより、前記図1の出力画像P1上における右下端に対応した画素信号(1画面の最終画素)の出力タイミングを件検出することができる。ステップ(2)では、Vカウンタ2及びΔV1カウンタ64,ΔV2カウンタ66のリセットが行われる。   FIG. 4 is a flowchart for explaining the operation of the mask area setting unit shown in FIG. In step (1), the vertical synchronization signal VSYNC is detected. Accordingly, it is possible to detect the output timing of the pixel signal (the last pixel of one screen) corresponding to the lower right end on the output image P1 of FIG. In step (2), the V counter 2, the ΔV1 counter 64, and the ΔV2 counter 66 are reset.

ステップ(3)では、Vカウンタ2のカウンタ値が上記V1〜V2の間であるかの判定(V1≦Vカウンタ値≦V2)が行われる。もしも、上記V1〜V2の間であるときには、ステップ(4)により、ΔV1カウンタ64のカンウタ値がΔV1又はΔV2カウンタ66のカウンタ値がΔV2の判定が行われる。上記ΔV1カウンタ64のカンウタ値がΔV1又はΔV2カウンタ66のカウンタ値がΔV2のときには、ステップ(5)において、H1’=H1±ΔH1及びH2’=H2±ΔH2の演算が行われる。上記H1’は、H1’演算部に設けられたレジスタにより上記演算前のH1に置き換えられる。以降の演算では、上記H1設定レジスタに設定されたH1に変えて、上記演算により更新されたH1(H1’)が用いられる。このことは、H2’においても同様である。つまり、1画素分H1の座標が変化するΔVが求められているので、上記のようにΔV毎にH1の座標が1画素分+1又は−1のように移動する。   In step (3), it is determined whether the counter value of the V counter 2 is between V1 and V2 (V1 ≦ V counter value ≦ V2). If it is between the above V1 and V2, step (4) determines whether the counter value of the ΔV1 counter 64 is ΔV1 or the counter value of the ΔV2 counter 66 is ΔV2. When the counter value of the ΔV1 counter 64 is ΔV1 or the counter value of the ΔV2 counter 66 is ΔV2, calculations of H1 ′ = H1 ± ΔH1 and H2 ′ = H2 ± ΔH2 are performed in step (5). H1 'is replaced with H1 before the calculation by a register provided in the H1' calculation unit. In the subsequent calculation, H1 (H1 ') updated by the calculation is used instead of H1 set in the H1 setting register. The same applies to H2 '. That is, since ΔV at which the coordinates of H1 for one pixel change is obtained, the coordinates of H1 move as +1 or −1 for one pixel for each ΔV as described above.

ステップ(6)では、マスク画像の領域判定が行われる。つまり、当該ラインVx(V1≦Vx≦V2では、上記H1≦Hx≦H2の画素信号は、上記マスクデータMDに置き換えられ、それ以外は上記撮像信号VSが選択される。ステップ(7)では、ΔVカウンタ64,66のイネーブルがオンにされる。ステップ(8)では、水平同期信号HSYNCの検出判定が行われる。水平同期信号HYNCが検出されると、ステップ(9)において、Vカンウタが+1のように更新される。ステップ(10)では、ΔVカウンタのイネーブルの判定を行い、イネーブルがオンにされていたなら(ステップ11)でΔVカウンタでは+1の更新が行われ、前記ステップ(3)に戻る。   In step (6), the area of the mask image is determined. That is, in the line Vx (in the case of V1 ≦ Vx ≦ V2, the pixel signal of H1 ≦ Hx ≦ H2 is replaced with the mask data MD, and otherwise, the imaging signal VS is selected. In step (7), The enable of the ΔV counters 64 and 66 is turned on, and in step (8), the horizontal sync signal HSYNC is detected, and if the horizontal sync signal HSYNC is detected, in step (9), the V counter is incremented by +1. In step (10), it is determined whether the ΔV counter is enabled, and if the enable is turned on (step 11), the ΔV counter is updated by +1, and the step (3) is performed. Return to.

撮像信号VSの画素信号が上記水平ラインV1、V2以外にあるときには、ステップ(12)において、Vカウンタ<V1設定の判定が行われる。Vカウンタ<V1設定であるときには、ステップ(8)に移動し、Vカウンタの更新動作のみが行われる。そして、Vカウンタ>V1設定であるときには、つまり、V1≦Vカウンタ値≦V2ではなく、Vカウンタ>V1設定であるという条件は、V2以下の水平ラインであることからステップ(13)によりΔVカウンタのイネーブルをオフにして終了する。   When the pixel signal of the imaging signal VS is other than the horizontal lines V1 and V2, it is determined in step (12) that V counter <V1 setting. When V counter <V1 is set, the process proceeds to step (8), and only the update operation of the V counter is performed. When V counter> V 1 is set, that is, the condition that V counter> V 1 is set instead of V 1 ≦ V counter value ≦ V 2 is a horizontal line equal to or lower than V 2. Turn off enable and exit.

図5には、図2のVカウンタとΔV1カウンタ(ΔV2カウンタ)の動きをグラフで表した動作説明図が示されている。縦軸はVカウンタとΔV1カウンタ(ΔV2カウンタ)のカウント値を表し、横軸は経過時間を表します。Vカウンタは垂直同期信号の検出時にリセットされ、その後は次の垂直同期信号の検出時までライン数をカウントする。ΔV1カウンタ(ΔV2カウンタ)は、Vカウント値がV1以上且つV2以下の間だけライン数をカウントする。カウント値がΔV1(ΔV2)に達する毎にリセットされる。水平方向のマスク画像の座標H1(H2)はΔV1(ΔV2)カウンタ値がΔV1(ΔV2)に達する毎にΔH1(ΔH2)分変化する。具体的には、1画素分が増減させるのに必要なΔΔV1(ΔV2)が求められている。なお、上記傾き(ΔV1/ΔH1)が整数でないときには、補正して1画素分を変化させるのに必要なΔV1(ΔV2)を適宜に求めるようにしてもよい。   FIG. 5 is an operation explanatory diagram showing the movement of the V counter and the ΔV1 counter (ΔV2 counter) of FIG. 2 in a graph. The vertical axis represents the count values of the V counter and ΔV1 counter (ΔV2 counter), and the horizontal axis represents the elapsed time. The V counter is reset when the vertical synchronizing signal is detected, and thereafter, the number of lines is counted until the next vertical synchronizing signal is detected. The ΔV1 counter (ΔV2 counter) counts the number of lines only when the V count value is not less than V1 and not more than V2. It is reset every time the count value reaches ΔV1 (ΔV2). The coordinate H1 (H2) of the mask image in the horizontal direction changes by ΔH1 (ΔH2) every time the ΔV1 (ΔV2) counter value reaches ΔV1 (ΔV2). Specifically, ΔΔV1 (ΔV2) necessary for increasing or decreasing one pixel is obtained. When the slope (ΔV1 / ΔH1) is not an integer, ΔV1 (ΔV2) necessary for correcting and changing one pixel may be obtained as appropriate.

このようにして、図1に示す監視カメラからの出力画像P1上の保護領域をマスクするマスク画像を制御するには、まず、VカウンタとV1設定、V2設定から垂直方向の領域判定を行い、マスク画像領域内の間、ΔV1カウンタ(ΔV2カウンタ)でライン数をカウントし、カウント値がΔV1設定(ΔV2設定)と等しくなる毎に、水平方向のマスク画像の座標H1(H2)をΔH1(ΔH2)分だけ変化させた新たな座標H1’(H2’)を計算し、水平方向の領域判定が行われる。   In this way, in order to control the mask image for masking the protection area on the output image P1 from the monitoring camera shown in FIG. 1, first, the area determination in the vertical direction is performed from the V counter and the V1 setting and the V2 setting. During the mask image area, the number of lines is counted by the ΔV1 counter (ΔV2 counter). Every time the count value becomes equal to the ΔV1 setting (ΔV2 setting), the coordinate H1 (H2) of the horizontal mask image is changed to ΔH1 (ΔH2). ) New coordinates H1 ′ (H2 ′) changed by the amount are calculated, and the horizontal region determination is performed.

上記により、ΔV1(ΔV2)とΔH1(ΔH2)を設定する事でソフトウェアの介在無しにハードウェアでライン毎に水平方向のマスク画像領域の座標H1、H2を変えて矩形以外の台形、平行四辺形及び三角形を含めたマスク画像が可能になる。   By setting ΔV1 (ΔV2) and ΔH1 (ΔH2) as described above, the coordinates H1 and H2 of the mask image area in the horizontal direction are changed for each line by hardware without software intervention, and a trapezoid other than a rectangle or a parallelogram And mask images including triangles are possible.

図6には、図2のマスク処理部の他の一実施例のブロック図が示されている。この実施例では、前記図3の実施例におけるΔV1カウンタ、ΔV2カウンタが省略されて、その動作をH1’演算部63及びH2’演算部65が受け持つようにされる。つまり、H1’演算部63は、H1設定レジスタ53、ΔH1設定レジスタ54及びΔV1設定レジスタの各記憶情報と、垂直方向領域判定部61及びVカウンタ2の出力信号の出力より、Vカウンタ2の値がΔV1のN倍になる毎にH1設定に対してΔH1設定値を加減算して新たなH1の座標H1’を計算する。同様に、H1’演算部63は、H2設定レジスタ56、ΔH2設定レジスタ57、ΔV2設定レジスタ58、垂直方向領域判定部61及びΔV2カウンタ2の出力より、Vカウンタ2の値がΔV2のN倍になる毎にH2設定に対しΔH2設定値を加減算して新たなH2の座標H2’を計算する。このようなH1’演算部63、H2’演算部65、及びHカウンタ3の計数値からライン毎にマスク画像の水平方向の領域を水平方向領域判定部62により判定する。   FIG. 6 is a block diagram showing another embodiment of the mask processing unit shown in FIG. In this embodiment, the ΔV1 counter and the ΔV2 counter in the embodiment of FIG. 3 are omitted, and the operation is performed by the H1 ′ operation unit 63 and the H2 ′ operation unit 65. That is, the H1 ′ calculation unit 63 determines the value of the V counter 2 based on the storage information of the H1 setting register 53, the ΔH1 setting register 54, and the ΔV1 setting register, and the output of the output signal of the vertical direction area determination unit 61 and the V counter 2. Each time becomes N times ΔV1, ΔH1 set value is added to or subtracted from H1 setting to calculate a new coordinate H1 ′ of H1. Similarly, the H1 ′ calculating unit 63 determines that the value of the V counter 2 is N times ΔV2 from the outputs of the H2 setting register 56, the ΔH2 setting register 57, the ΔV2 setting register 58, the vertical direction area determination unit 61, and the ΔV2 counter 2. Every time, a new H2 coordinate H2 ′ is calculated by adding / subtracting the ΔH2 set value to / from the H2 setting. The horizontal direction region determination unit 62 determines the horizontal region of the mask image for each line from the count values of the H1 ′ calculation unit 63, the H2 ′ calculation unit 65, and the H counter 3.

マスク画像分の垂直方向の領域判定信号VMSKと水平方向の領域判定信号HMSKを制御信号として、信号処理されたイメージセンサからの出力画像VSとマスク画像データMDを切り替えマスク処理された画像を画像選択部7で選択することにより、表示される表示信号VDSPが形成される。このような垂直方向領域判定部61、水平方向領域判定部62、H1’演算部63、H2’演算部65及び各設定レジスタ51〜58は必要なマスク数分設けられるものである。   Using the vertical region determination signal VMSK and the horizontal region determination signal HMSK for the mask image as control signals, the output image VS from the image sensor subjected to signal processing and the mask image data MD are switched, and the image subjected to mask processing is selected. A display signal VDSP to be displayed is formed by selection in the unit 7. Such vertical direction region determination unit 61, horizontal direction region determination unit 62, H1 'operation unit 63, H2' operation unit 65, and setting registers 51 to 58 are provided for the required number of masks.

図7には、上記図6のマスク領域設定部の動作を説明するためのフローチャート図が示されている。図6において、ΔV1,ΔV2カウンタが省略されていることに対応して、前記図4に示したΔV1,ΔV2カウンタに対応したステップ(4)(7)(10)(11)が省略され、ステップ(2)では、ΔV1,ΔV2カウンタのリセットが省略される。つまり、図7のステップ(4)とステップ(5)において、マスク画像領域内の間、Vカウント値がΔV1設定(ΔV2設定)のN倍になる毎に、水平方向のマスク画像の座標H1(H2)をΔH1(ΔH2)分だけ変化させた新たな座標H1’(H2’)を計算し、水平方向の領域判定を行う。具体的は、前記同様に1画素分増減させるのに必要なΔV1とΔV2が前記同様にして上記N値として求められている。   FIG. 7 is a flowchart for explaining the operation of the mask area setting unit shown in FIG. In FIG. 6, corresponding to the omission of the ΔV1 and ΔV2 counters, the steps (4), (7), (10), and (11) corresponding to the ΔV1 and ΔV2 counters shown in FIG. In (2), resetting of the ΔV1 and ΔV2 counters is omitted. That is, in step (4) and step (5) in FIG. 7, every time the V count value becomes N times ΔV1 setting (ΔV2 setting) during the mask image area, the coordinate H1 ( A new coordinate H1 ′ (H2 ′) obtained by changing H2) by ΔH1 (ΔH2) is calculated, and a horizontal region determination is performed. Specifically, ΔV1 and ΔV2 required to increase or decrease by one pixel are obtained as the N value in the same manner as described above.

図8には、H1’演算部、H2’演算部の動作をグラフで表した動作説明図が示されている。縦軸はVカウンタ2のカウント値とH1’演算部(H2’演算部)での演算結果を表し、横軸は経過時間を表す。Vカウンタ2は、垂直同期信号VHYNCの検出時にリセットされ、その後は次の垂直同期信号の検出時までライン数をカウントする。H1’演算部(H2’演算部)ではVカウンタ値÷ΔV1(ΔV2)を計算する。水平方向のマスク画像の座標H1(H2)は、V1設定≦Vカウンタ値≦V2設定の期間にVカウンタ値÷ΔV1(ΔV2)の余りが0となる毎に(つまりVカウント値=ΔV1(ΔV2)×N(左記Nは整数)毎に)ΔH1(ΔH2)分変化させる。実際上は、上記ΔH1(ΔH2)は、1画素に設定され、1画素分増減させるためのVカウント値=ΔV1(ΔV2)(N)が求められている。これに限定されず、2画素分あるいは3画素分のように複数画素を増減させるのに必要なVカウント値=ΔV1(ΔV2)を求めるようにしてもよい。   FIG. 8 is an operation explanatory diagram showing the operations of the H1 ′ arithmetic unit and the H2 ′ arithmetic unit in a graph. The vertical axis represents the count value of the V counter 2 and the calculation result in the H1 ′ calculation unit (H2 ′ calculation unit), and the horizontal axis represents the elapsed time. The V counter 2 is reset when the vertical synchronization signal VHSYNC is detected, and thereafter counts the number of lines until the next vertical synchronization signal is detected. The H1 ′ operation unit (H2 ′ operation unit) calculates V counter value ÷ ΔV1 (ΔV2). The coordinate H1 (H2) of the mask image in the horizontal direction is calculated every time the remainder of V counter value ÷ ΔV1 (ΔV2) becomes 0 during the period of V1 setting ≦ V counter value ≦ V2 (that is, V count value = ΔV1 (ΔV2). ) × N (N on the left is an integer)) ΔH1 (ΔH2). In practice, ΔH1 (ΔH2) is set to one pixel, and V count value = ΔV1 (ΔV2) (N) for increasing or decreasing by one pixel is obtained. However, the present invention is not limited to this, and V count value = ΔV1 (ΔV2) necessary for increasing / decreasing a plurality of pixels such as two pixels or three pixels may be obtained.

図9には、この発明で設定可能なマスク領域の例が示されている。(a)ないし(d)は、1つのマスクで設定可能な代表的な形状を示し、(e)ないし(h)は、複数のマスクの組み合わせで設定可能な代表的な形状を示している。(a)は、矩形であり、最も簡単な形状である。この場合には、ΔV、ΔHが不要である。(b)は台形であり、前記図1のものと上下を逆にした形状である。(c)は、平行四辺形である。そして、(d)は、座標A1=A2とした三角形である。   FIG. 9 shows an example of a mask area that can be set in the present invention. (A) thru | or (d) show the typical shape which can be set with one mask, and (e) thru | or (h) have shown the typical shape which can be set with the combination of a some mask. (A) is a rectangle and is the simplest shape. In this case, ΔV and ΔH are not necessary. (B) is a trapezoid and is the shape turned upside down from the thing of the said FIG. (C) is a parallelogram. And (d) is a triangle with coordinates A1 = A2.

(e)は、上記(b)のような台形と(d)のような三角形との2つのマスクを用いた四角形の例である。(f)は、上記(d)の三角形の2つのマスクを用いた四角形の例である。(g)は、(a)のような矩形の上側に(d)のような三角形、下側に(b)のような台形の3つのマスクを組み合わせた7角形の例である。(h)は、(b)のような台形と(c)のような平行四辺形を重ね合わせ、更に上下に(d)のような三角形からなる4つのマスクを用いた5角形の例である。ちなみに、(d)のような領域を三角形だけで形成しようとすると、6つものマスクが必要となるものである。   (E) is an example of a quadrangle using two masks, a trapezoid as in (b) and a triangle as in (d). (F) is an example of a quadrangle using two triangular masks of (d) above. (G) is an example of a heptagon obtained by combining three masks of a triangle as shown in (d) on the upper side of the rectangle as shown in (a) and a trapezoid as shown in (b) on the lower side. (H) is an example of a pentagon using a trapezoid as shown in (b) and a parallelogram as shown in (c), and further using four masks composed of triangles as shown in (d) above and below. . Incidentally, if the region as shown in (d) is to be formed with only triangles, as many as six masks are required.

図10には、この発明が適用された車載用カメラシステムでの表示例が示されている。右ハンドルの自動車において、左側にカメラを搭載し、その撮像画面上にマスクMSK1とMSK2を合成して、マスクMSK1は自動者の前方先端の位置を示し、マスクMSK2はドアミラーを含めた自動車の左端(左幅)を示している。上記マスクMSK1は、細長い矩形により1つのマスクで表現することができる。また、マスクMSK2は、細長い平行四辺形により表現することができる。このように2つのマスク機能を利用して、表示画面上に自動者の先端部と左端部を表示させることにより、狭い道路での左寄せの際に、例えば同図の例ではブロック塀との接触を防止できる。また、図示しないが、駐車場等で前方に障害物があるときには、上記先端マスクMSK1により障害物との接触を防止することができる。   FIG. 10 shows a display example in an in-vehicle camera system to which the present invention is applied. In a right-hand drive automobile, a camera is mounted on the left side, and masks MSK1 and MSK2 are combined on the imaging screen. The mask MSK1 indicates the position of the front end of the automated person, and the mask MSK2 is the left end of the automobile including the door mirror. (Left width). The mask MSK1 can be expressed by a single mask by an elongated rectangle. The mask MSK2 can be expressed by an elongated parallelogram. In this way, by using the two mask functions to display the front end and the left end of the automated person on the display screen, when left-justified on a narrow road, for example, in the example of FIG. Can be prevented. Although not shown, when there is an obstacle ahead in a parking lot or the like, the tip mask MSK1 can prevent contact with the obstacle.

図11には、図3、図6に示したマスク画像生成部の一実施例のブロック図が示されている。マスク画像生成部は、マイコンからの設定値により輝度設定1、2……nがレジスタ13〜15に、色設定1、2……nがレジスタ16〜18にそれぞれ格納される。カメラ信号処理部からの映像出力Yout に振幅変換部11、モザイク処理部12を通して信号変換して信号を出力する。上記振幅変換部11では、輝度信号Yout の振幅を1/2、1/4……1/Mにする。モザイク処理部12では、間隔を10画素とした場合、10画素×10画素の領域にその領域内の特定画素の映像信号を出力するモザイク処理を行う。または回路構成を小さくし、水平方向にのみモザイク処理を行う。画像選択部7では、カメラ信号処理部からの輝度信号Yout と色信号Cout と、マスク画像生成部1の出力MD1〜MD9を画像選択部7のセレクタ71,72の入力とし、マスク数分ある垂直方向の領域判定信号VMSKと水平方向の領域判定信号HMSKを選択制御部73の入力として、監視領域とマスク領域の映像信号を切り替える。   FIG. 11 shows a block diagram of an embodiment of the mask image generation unit shown in FIGS. 3 and 6. In the mask image generation unit, the luminance settings 1, 2,... N are stored in the registers 13 to 15 and the color settings 1, 2,. The video output Yout from the camera signal processing unit is signal-converted through the amplitude conversion unit 11 and the mosaic processing unit 12 to output a signal. In the amplitude converter 11, the amplitude of the luminance signal Yout is set to 1/2, 1/4... 1 / M. When the interval is set to 10 pixels, the mosaic processing unit 12 performs mosaic processing for outputting a video signal of a specific pixel in the area of 10 pixels × 10 pixels. Alternatively, the circuit configuration is reduced and mosaic processing is performed only in the horizontal direction. In the image selection unit 7, the luminance signal Yout and color signal Cout from the camera signal processing unit and the outputs MD1 to MD9 of the mask image generation unit 1 are input to the selectors 71 and 72 of the image selection unit 7, and there are as many verticals as there are masks. The direction area determination signal VMSK and the horizontal area determination signal HMSK are input to the selection control unit 73 to switch the video signal between the monitoring area and the mask area.

上記構成により各マスク領域にそれぞれ下記の効果を与える事が出来る。上記セレクタ71を通した輝度信号とセレクタ72を通した色信号とを共にマイコンからの設定MD3〜MD9を選択する事で単色の塗り潰すことがきる。上記輝度信号はカメラ信号処理部の出力Yout を選択し、上記色信号はマイコンからの設定(MD7〜MD9)を選択する事で半透過の様な表示効果を実現できる。上記輝度信号は振幅変換11の出力MD1、色信号はマイコンからの設定を選択する事ですりガラスの様な表示効果を実現できる。他に組み合わせを変える事で様々な表示効果を実現できる。マスク領域において上記半透明やすりガラスあるいはモザイク処理した映像を表示させることにより、プライバシーを保護しつつ、監視機能を向上させることができる。   With the above configuration, the following effects can be given to each mask region. By selecting the settings MD3 to MD9 from the microcomputer, the luminance signal that has passed through the selector 71 and the color signal that has passed through the selector 72 can be filled with a single color. The luminance signal selects the output Yout of the camera signal processing unit, and the color signal selects a setting (MD7 to MD9) from the microcomputer, thereby realizing a semi-transparent display effect. The luminance signal is the output MD1 of the amplitude converter 11, and the color signal is selected from the microcomputer. Various display effects can be realized by changing the combination. By displaying the translucent glass or mosaic processed image in the mask area, it is possible to improve the monitoring function while protecting the privacy.

図12ないし図14には、この発明に係る監視装置におけるマスク領域設定手順の説明図が示されている。図12には、設定したい保護領域が示されている。このような保護領域に対応した設定情報を得る場合、図2の座標設定部の操作によりカーソルを移動させて保護領域の頂点となる部分に図13に示したようにマーク1ないしマーク4を表示させる。この4個からなるマーク1ないし4を同時に表示させる必要はなく、1つのカーソルを順次にマーク1ないし4のように移動させ、各ポイントでのカーソル座標(V1,H1)、(V2,H2)、(V3,H3)、(V4,H4)を取り出す。前記1つのマスク毎に4つのポイントの座標を取り出すようにする場合には、V1=V2,V3=V4のようにしかカーソルは移動しないようにされる。   FIGS. 12 to 14 are explanatory diagrams of the mask area setting procedure in the monitoring apparatus according to the present invention. FIG. 12 shows a protection area to be set. When obtaining setting information corresponding to such a protection area, the cursor is moved by operating the coordinate setting unit in FIG. 2 to display marks 1 to 4 as shown in FIG. 13 at the apex of the protection area. Let It is not necessary to display these four marks 1 to 4 at the same time, and one cursor is sequentially moved as marks 1 to 4, and the cursor coordinates (V1, H1), (V2, H2) at each point. , (V3, H3), (V4, H4) are taken out. When the coordinates of four points are extracted for each mask, the cursor is moved only as V1 = V2 and V3 = V4.

実際にマーク1ないしマーク4で囲んだ領域をマスクするには、図14に示す様に各マークの座標の他に、マーク2から垂直に降ろした線と底辺が交わる交点aの座標、ΔV1、ΔV2、ΔH1, ΔH2が必要になるが、これらは計算により求まる。交点a座標の座標Vaは、マーク4のV4と等しく、Haはマーク2のH2と等しい為、交点aの座標(Va,Ha)=(V4,H2)となる。左辺の傾きを設定する為のΔV1とΔH1は、(V3とV1の差)と(H3とH1の差)を公約数で割る事で求められる。公約数が複数ある場合、小さな公約数で割るほど左辺の傾きが滑らかになり、大きな公約数で割るほど、左辺の傾きが階段状になる。左辺の傾きを設定する為のΔV2とΔH2も左辺と同様で(V4とV2の差)と(H4とH2の差)を公約数で割る事で求められる。また、前記のように左辺及び右辺のそれぞれにおいて水平方向に1画素分(ΔH)を増減させるΔVを求めるようにするものであってもよい。   In order to actually mask the area surrounded by the marks 1 to 4, in addition to the coordinates of each mark, as shown in FIG. 14, the coordinates of the intersection a where the line descended from the mark 2 and the bottom intersect, ΔV1, ΔV2, ΔH1, and ΔH2 are required, and these are obtained by calculation. Since the coordinate Va of the intersection a coordinate is equal to V4 of the mark 4 and Ha is equal to H2 of the mark 2, the coordinate (Va, Ha) = (V4, H2) of the intersection a. ΔV1 and ΔH1 for setting the slope of the left side can be obtained by dividing (difference between V3 and V1) and (difference between H3 and H1) by a common divisor. When there are multiple common divisors, the slope of the left side becomes smoother as it is divided by a smaller common divisor, and the slope of the left side becomes a staircase as it is divided by a larger common divisor. ΔV2 and ΔH2 for setting the slope of the left side are the same as those on the left side, and are obtained by dividing (difference between V4 and V2) and (difference between H4 and H2) by the common divisor. Further, as described above, ΔV for increasing or decreasing one pixel (ΔH) in the horizontal direction on each of the left side and the right side may be obtained.

この様に保護領域の頂点にマークを設定し、その座標データを取り込めば視覚的にマスク設定が出来、他の必要な情報も計算で得る事が出来る。この計算を行う時の公約数は、予め最大値または最小値を使う事を決めておいても良いし、その都度設定出来るようにしておいても良い。保護領域が矩形であった場合、マーク1〜4の座標はそのままマスク設定時の座標として使用できる。あるいは、図9の(e)〜(h)のような領域の各ポイントを直接入力し、図形認識ソフトウェアにより(e)〜(h)に示した複数のマスクに対応させた矩形、三角形、台形、平行四辺形に分解して、各マスク毎に上記同様な処理を演算により行うようにするものであってもよい。   In this way, if a mark is set at the apex of the protection area and the coordinate data is taken in, the mask can be visually set, and other necessary information can be obtained by calculation. The common divisor when performing this calculation may be determined in advance to use the maximum value or the minimum value, or may be set each time. When the protection area is rectangular, the coordinates of the marks 1 to 4 can be used as they are when setting the mask. Alternatively, rectangles, triangles, and trapezoids corresponding to the plurality of masks shown in (e) to (h) by directly inputting the respective points in the regions as shown in (e) to (h) of FIG. Alternatively, it may be decomposed into parallelograms, and the same processing as described above may be performed by calculation for each mask.

以上、本発明者によってなされた発明を実施態様にもとづき具体的に説明したが、本発明は上記実施態様に限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。例えば、上記マスク領域を設定する設定情報は、前記のように座標設定部によるカーソル等を利用するものの他、マイコン等により直接にポイントの数値を入力して表示させ、修正を加えて最終的なマスク領域を設定するものであってもよい。上記画像合成方法及び画像合成装置は、監視カメラシステムや自動車搭載カメラシステムの他に、複数通りの画像信号を1つの表示画面上に表示する際の領域設定する方法及び装置として広く利用することができる。   As mentioned above, the invention made by the present inventor has been specifically described based on the embodiments. However, the present invention is not limited to the above embodiments, and various modifications can be made without departing from the scope of the invention. Not too long. For example, the setting information for setting the mask area uses the cursor by the coordinate setting unit as described above, or directly inputs and displays the numerical value of the point by a microcomputer or the like, and corrects the final value. A mask area may be set. The image composition method and the image composition apparatus can be widely used as a method and apparatus for setting a region when displaying a plurality of image signals on a single display screen, in addition to a surveillance camera system and an onboard camera system. it can.

この発明に係るマスク形状の説明図である。It is explanatory drawing of the mask shape which concerns on this invention. この発明に係る監視カメラの一実施例を示すブロック図である。It is a block diagram which shows one Example of the surveillance camera which concerns on this invention. 図2のマスク処理部の一実施例を示すブロック図である。It is a block diagram which shows one Example of the mask process part of FIG. 図3のマスク領域設定部の動作を説明するためのフローチャート図である。FIG. 4 is a flowchart for explaining the operation of a mask area setting unit in FIG. 3. 図2のVカウンタとΔV1カウンタ(ΔV2カウンタ)の動きをグラフで表した動作説明図である。FIG. 3 is an operation explanatory diagram showing movements of the V counter and the ΔV1 counter (ΔV2 counter) of FIG. 2 in a graph. 図2のマスク処理部の他の一実施例を示すブロック図である。It is a block diagram which shows another Example of the mask process part of FIG. 図6のマスク領域設定部の動作を説明するためのフローチャート図である。FIG. 7 is a flowchart for explaining the operation of the mask area setting unit in FIG. 6. 図6のH1’演算部、H2’演算部の動作をグラフで表した動作説明図である。FIG. 7 is an operation explanatory diagram showing operations of the H1 ′ arithmetic unit and the H2 ′ arithmetic unit in FIG. 6 in a graph. この発明で設定可能なマスク領域の説明図である。It is explanatory drawing of the mask area | region which can be set by this invention. この発明が適用された車載用カメラシステムでの表示例の説明図である。It is explanatory drawing of the example of a display in the vehicle-mounted camera system to which this invention was applied. 図3、図6に示したマスク画像生成部の一実施例を示すブロック図である。It is a block diagram which shows one Example of the mask image generation part shown in FIG. 3, FIG. この発明に係る監視装置におけるマスク領域設定手順の第1の説明図である。It is 1st explanatory drawing of the mask area | region setting procedure in the monitoring apparatus which concerns on this invention. この発明に係る監視装置におけるマスク領域設定手順の第2の説明図である。It is 2nd explanatory drawing of the mask area | region setting procedure in the monitoring apparatus which concerns on this invention. この発明に係る監視装置におけるマスク領域設定手順の第3の説明図である。It is 3rd explanatory drawing of the mask area | region setting procedure in the monitoring apparatus which concerns on this invention.

符号の説明Explanation of symbols

1…マスク画像生成部、2…Vカウンタ、3…Hカウンタ、41〜4N…マスク設定部、51〜58…設定レジスタ、61…垂直方向領域判定部、62…水平方向領域判定部、63…H1’演算部、64…ΔV1カウンタ、65…H2’演算部、66…ΔV2カウンタ、7…画像選択部、11…振幅変換部、12…モザイク処理部、13〜18…設定レジスタ、71,72…セレクタ、73…選択制御部。   DESCRIPTION OF SYMBOLS 1 ... Mask image generation part, 2 ... V counter, 3 ... H counter, 41-4N ... Mask setting part, 51-58 ... Setting register, 61 ... Vertical direction area | region determination part, 62 ... Horizontal direction area | region determination part, 63 ... H1 ′ arithmetic unit, 64... ΔV1 counter, 65... H2 ′ arithmetic unit, 66... ΔV2 counter, 7... Image selection unit, 11 ... amplitude conversion unit, 12 ... mosaic processing unit, 13 to 18. ... selector, 73 ... selection control unit.

Claims (12)

表示画面上における第1水平方向において同一ポイントの設定が許可された第1及び第2ポイントにそれぞれ対応した第1及び第2位置情報と、
上記表示画面上における上記第1水平方向とは異なる第2水平方向において同一ポイントの設定が許可された第3及び第4ポイントのそれぞれに対応した第3及び第4位置情報とを形成し、
上記第1ないし第4位置情報から上記表示画面上における上記第1ないし第4ポイントを結ぶ領域に対応され、上記第1水平方向と第2水平方向の間の1ないし複数の水平方向における一対のポイントに対応した位置情報を演算により形成し、
上記第1及び第2位置情報の間に対応した表示画素情報と、上記演算により求められた1ないし複数の一対の位置情報の間に対応した表示画素情報と、上記第3及び第4位置情報の間に対応した表示画素情報とを他の表示画素情報とは異なる任意の画像情報に置き換える画像合成方法。
First and second position information corresponding to first and second points, respectively, for which setting of the same point is permitted in the first horizontal direction on the display screen;
Forming third and fourth position information corresponding to the third and fourth points, respectively, for which setting of the same point is permitted in a second horizontal direction different from the first horizontal direction on the display screen;
A pair of one or more horizontal directions between the first horizontal direction and the second horizontal direction corresponding to a region connecting the first to fourth points on the display screen from the first to fourth position information. The position information corresponding to the point is formed by calculation,
Display pixel information corresponding between the first and second position information, display pixel information corresponding to one or more pairs of position information obtained by the calculation, and the third and fourth position information An image composition method for replacing display pixel information corresponding to the period with arbitrary image information different from other display pixel information.
請求項1において、
上記第1位置情報と第3位置情報は、上記表示画面上で左側に位置し、
上記第2位置情報と第4位置情報は、上記表示画面上で右側に位置し、
上記第1位置情報と第3位置情報との間の垂直方向の画素数と、上記第1位置情報と第3位置情報と間の水平方向との画素数から上記第1水平方向と第2水平方向の間の1ないし複数の水平方向における一対の位置情報の左側位置情報が演算により求められ、
上記第2位置情報と第4位置情報との間の垂直方向の画素数と、上記第3位置情報と第4位置情報と間の水平方向との画素数から上記第1水平方向と第2水平方向の間の1ないし複数の水平方向における一対のポイントの右側位置情報が演算により求められる画像合成方法。
In claim 1,
The first position information and the third position information are located on the left side on the display screen,
The second position information and the fourth position information are located on the right side on the display screen,
From the number of pixels in the vertical direction between the first position information and the third position information and the number of pixels in the horizontal direction between the first position information and the third position information, the first horizontal direction and the second horizontal Left side position information of a pair of position information in one or more horizontal directions between directions is obtained by calculation,
From the number of pixels in the vertical direction between the second position information and the fourth position information and the number of pixels in the horizontal direction between the third position information and the fourth position information, the first horizontal direction and the second horizontal An image composition method in which right position information of a pair of points in one or more horizontal directions between directions is obtained by calculation.
請求項2において、
上記第1ないし第4位置情報を1組として複数組分の記憶手段を有し、
上記複数組分の位置情報に対応した表示画像情報を他の表示画像情報とは異なる任意の画像情報に置き換える画像合成方法。
In claim 2,
A plurality of sets of storage means including the first to fourth position information as one set;
An image composition method for replacing display image information corresponding to the plurality of sets of position information with arbitrary image information different from other display image information.
請求項3において、
上記他の表示画像情報は、上記表示画面に対応された監視カメラで形成された映像信号である画像合成方法。
In claim 3,
The image display method, wherein the other display image information is a video signal formed by a monitoring camera corresponding to the display screen.
請求項3において、
上記表示画面上の任意に移動可能なカーソルを表示させ、
上記カーソルの表示位置から各組毎に上記第1ないし第4位置情報を求める画像合成方法。
In claim 3,
Display a freely movable cursor on the display screen,
An image composition method for obtaining the first to fourth position information for each set from the display position of the cursor.
表示画面上における第1水平方向において同一ポイントの設定が許可された第1及び第2ポイントにそれぞれ対応した位置情報を記憶する第1及び第2記憶手段と、上記表示画面上における上記第1水平方向とは異なる第2水平方向において同一ポイントの設定が許可された第3及び第4ポイントのそれぞれに対応した位置情報を記憶する第3及び第4記憶手段を含み、上記表示画面上における上記第1ないし第4ポイントを結ぶ領域に対応され、上記第1水平方向と第2水平方向の間の1ないし複数の水平方向における一対のポイントに対応した位置情報を形成するマスク処理部と、
上記マスク処理部により、上記第1ないし第4ポイントを結ぶ領域に対応された位置情報に対応された表示画素情報を他の表示画素情報とは異なる任意の画像情報に置き換える画像選択部とを有する画像合成装置。
First and second storage means for storing position information corresponding to the first and second points, respectively, for which setting of the same point is permitted in the first horizontal direction on the display screen, and the first horizontal on the display screen Including third and fourth storage means for storing position information corresponding to each of the third and fourth points for which setting of the same point is permitted in a second horizontal direction different from the direction, A mask processing unit corresponding to a region connecting the first to fourth points and forming position information corresponding to a pair of points in one or more horizontal directions between the first horizontal direction and the second horizontal direction;
An image selection unit that replaces the display pixel information corresponding to the position information corresponding to the region connecting the first to fourth points with arbitrary image information different from other display pixel information by the mask processing unit; Image composition device.
請求項6において、
上記第1ポイントと第3ポイントは、上記表示画面上で左側に位置し、
上記第2ポイントと第4ポイントは、上記表示画面上で右側に位置し、
上記マスク処理部は、上記第1ポイントと第3ポイントとの間の垂直方向の画素数と、上記第1ポイントと第3ポイントと間の水平方向との画素数から上記第1水平方向と第2水平方向の間の1ないし複数の水平方向における一対のポイントの左側ポイントを演算により求め、
上記第2ポイントと第4ポイントとの間の垂直方向の画素数と、上記第3ポイントと第4ポイントと間の水平方向との画素数から上記第1水平方向と第2水平方向の間の1ないし複数の水平方向における一対のポイントの右側ポイントを演算により求めて上記第1水平方向と第2水平方向の間の1ないし複数の水平方向における一対のポイントに対応した位置情報を形成する画像合成装置。
In claim 6,
The first point and the third point are located on the left side on the display screen,
The second point and the fourth point are located on the right side on the display screen,
The mask processing unit determines the first horizontal direction and the first horizontal direction based on the number of pixels in the vertical direction between the first point and the third point and the number of pixels in the horizontal direction between the first point and the third point. Calculating the left point of a pair of points in one or more horizontal directions between two horizontal directions,
From the number of pixels in the vertical direction between the second point and the fourth point and the number of pixels in the horizontal direction between the third point and the fourth point, between the first horizontal direction and the second horizontal direction. An image that forms the position information corresponding to the pair of points in one or more horizontal directions between the first horizontal direction and the second horizontal direction by calculating the right point of the pair of points in one or more horizontal directions. Synthesizer.
請求項7において、
上記第1ないし第4ポイントを1組として複数組分の記憶手段を有し、
上記複数組分による上記表示画像情報を他の表示画像情報とは異なる任意の画像情報に置き換える画像合成装置。
In claim 7,
A plurality of sets of storage means with the first to fourth points as one set;
An image synthesizing apparatus that replaces the display image information for the plurality of sets with arbitrary image information different from other display image information.
請求項8において、
上記他の表示画像情報は、上記表示画面に対応された監視カメラで形成された映像信号である画像合成装置。
In claim 8,
The other display image information is an image composition device that is a video signal formed by a monitoring camera corresponding to the display screen.
請求項9において、
上記表示画面上の任意に移動可能なカーソルを表示させる座標設定部を有し、
上記カーソルの表示位置から各組毎に上記第1ないし第4ポイントの位置情報を求める画像合成装置。
In claim 9,
A coordinate setting unit for displaying an arbitrarily movable cursor on the display screen;
An image synthesizing apparatus that obtains positional information of the first to fourth points for each set from the display position of the cursor.
請求項10において、
上記映像信号を受けてモザイク画像形成するモザイク処理部を有し、
上記任意の画像情報は、上記モザイク処理部で形成された画像信号である画像合成装置。
In claim 10,
Having a mosaic processing unit for receiving the video signal and forming a mosaic image;
The arbitrary image information is an image composition device that is an image signal formed by the mosaic processing unit.
請求項10において、
輝度設定部と色設定部を有し、
上記任意の画像情報は、上記輝度設定部又は色設定部で形成された画像信号である画像合成装置。
In claim 10,
It has a brightness setting part and a color setting part,
The arbitrary image information is an image composition device that is an image signal formed by the luminance setting unit or the color setting unit.
JP2006332690A 2006-12-09 2006-12-09 Image synthesizing method, and image synthesizer Pending JP2008147987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006332690A JP2008147987A (en) 2006-12-09 2006-12-09 Image synthesizing method, and image synthesizer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006332690A JP2008147987A (en) 2006-12-09 2006-12-09 Image synthesizing method, and image synthesizer

Publications (1)

Publication Number Publication Date
JP2008147987A true JP2008147987A (en) 2008-06-26

Family

ID=39607672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006332690A Pending JP2008147987A (en) 2006-12-09 2006-12-09 Image synthesizing method, and image synthesizer

Country Status (1)

Country Link
JP (1) JP2008147987A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012054891A (en) * 2010-09-03 2012-03-15 Nec Corp Image processing apparatus, method, and program
CN114554295A (en) * 2020-11-10 2022-05-27 财团法人工业技术研究院 Communication system and method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012054891A (en) * 2010-09-03 2012-03-15 Nec Corp Image processing apparatus, method, and program
CN114554295A (en) * 2020-11-10 2022-05-27 财团法人工业技术研究院 Communication system and method thereof
CN114554295B (en) * 2020-11-10 2023-08-15 财团法人工业技术研究院 Communication system and method thereof

Similar Documents

Publication Publication Date Title
US8322862B2 (en) Projector, computer program product, and trapezoidal distortion correcting method
JP6089424B2 (en) Image processing apparatus, projector, and projector control method
CN114423646B (en) Sensor fusion-based perception-enhanced surround view
JP2004222153A (en) Image processing system, projector, program, information storage medium, and image processing method
JP2003219324A (en) Image correction data calculation method, image correction data calculation apparatus, and multi- projection system
JP2010109452A (en) Vehicle surrounding monitoring device and vehicle surrounding monitoring method
JP2013025077A (en) Projector and control method for projector
JP4739122B2 (en) In-vehicle camera image composition apparatus and image composition method
JP5178454B2 (en) Vehicle perimeter monitoring apparatus and vehicle perimeter monitoring method
JP2016163104A (en) Imaging device
JP4853434B2 (en) Image processing device
JP5638494B2 (en) Image generation method, image generation apparatus, and operation support system
JP5515405B2 (en) Video processing device, video display device, and video processing method
WO2005006772A1 (en) Image display device and image display method
JP5752631B2 (en) Image generation method, image generation apparatus, and operation support system
JP7113348B2 (en) VEHICLE AREA DISPLAY SYSTEM, DISPLAY CONTROL DEVICE AND COMPUTER PROGRAM
JP2008147987A (en) Image synthesizing method, and image synthesizer
JP7318669B2 (en) Display method and display system
CN111572450B (en) Image processing device, vehicle-mounted camera system, and image processing method
WO2011129174A1 (en) Video image processing device and video image processing method
JP2020191586A (en) Projection device
JP4727304B2 (en) Curve drawing device, curve drawing method, parking support device, and vehicle
JP5803646B2 (en) Vehicle periphery monitoring device
JP4378782B2 (en) Video equipment
CN106233714B (en) Image output device, image output method, and storage medium