JP2000295634A - Image processor - Google Patents

Image processor

Info

Publication number
JP2000295634A
JP2000295634A JP11102294A JP10229499A JP2000295634A JP 2000295634 A JP2000295634 A JP 2000295634A JP 11102294 A JP11102294 A JP 11102294A JP 10229499 A JP10229499 A JP 10229499A JP 2000295634 A JP2000295634 A JP 2000295634A
Authority
JP
Japan
Prior art keywords
color difference
signal
difference signal
circuit
constant
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
JP11102294A
Other languages
Japanese (ja)
Inventor
Nobuyuki Yano
修志 矢野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP11102294A priority Critical patent/JP2000295634A/en
Publication of JP2000295634A publication Critical patent/JP2000295634A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image processor that starts a loopback from an optional position in the case of a color difference signal configuring a 4:1:1 signal and outputs a normal mirror image where left and right colors around the loopback position are not inverted. SOLUTION: This image processor has mirror processing circuits 99, 100 that respectively apply mirror processing to a luminance signal and color difference signals configuring a 4:1:1 signal. The mirror processing circuit 99 and 100 is provided with a storage means 101 that stores the received color difference signal, a constant generating means 108 that produces a constant required for distributing the color difference signal, an interpolation arithmetic means 107 applies an interpolation arithmetic operation to the color difference signal depending on the constant, means 102, 103 that respectively generate a write address and a read address to the storage means 101 respectively, a means 105 that sets a write range of the color difference signal to be stored in the storage means 101, and a read direction control means 104 that controls increase/decrease in the address generated from the address generating means 103.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像データに対す
る編集処理の一つとして、画像の一方の半部を他方の半
部へ折り返した、つまり鏡面対称の画像(以下、ミラー
画像という)を生成するための画像処理装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention generates an image in which one half of an image is folded back to the other half, that is, a mirror-symmetric image (hereinafter, referred to as a mirror image) as one of editing processes for image data. The present invention relates to an image processing apparatus for performing the above.

【0002】[0002]

【従来の技術】特殊効果を得るための画像編集処理の一
つとして、ミラー画像を生成するための画像処理(以
下、ミラー処理という)がある。このミラー処理では、
たとえば、図15(a)に示される画像に対してミラー処
理を行うことで、同図(b)に示されるような左右鏡面対
称形のミラー画像を得るようにしている。
2. Description of the Related Art As one of image editing processes for obtaining a special effect, there is image processing for generating a mirror image (hereinafter, referred to as a mirror process). In this mirror process,
For example, mirror processing is performed on the image shown in FIG. 15A to obtain a mirror image having a mirror image of right and left mirror symmetry as shown in FIG.

【0003】従来、このようなミラー処理を行う画像処
理装置として、たとえば、図16に示すような構成のも
のがある(例えば、特開昭61−73485号公報およ
び特開平4−329777号公報参照)。
Conventionally, as an image processing apparatus for performing such mirror processing, for example, there is one having a configuration as shown in FIG. 16 (see, for example, JP-A-61-73485 and JP-A-4-329777). ).

【0004】図16に示す従来のミラー処理を行う画像
処理装置は、たとえば固体撮像素子からのインタレース
走査もしくは順次走査により得られたアナログ映像信号
をデジタル化して得られる4:1:1信号と呼ばれるコ
ンポーネント信号に対してミラー処理を行うものであ
る。
A conventional image processing apparatus for performing a mirror process shown in FIG. 16 uses, for example, a 4: 1: 1 signal obtained by digitizing an analog video signal obtained by interlaced scanning or sequential scanning from a solid-state image sensor. Mirror processing is performed on the component signal called.

【0005】上記の4:1:1信号は、図17に示すよ
うに、輝度信号(図中、白丸)と各色差信号Cr(図中、黒
丸)、Cb(図中、編み掛け)とで構成されており、アナロ
グ映像信号をデジタル化する場合の色差信号(Cr,Cb)
のサンプリング周波数は、同図(b),(c)に示すように、
輝度信号に対するサンプリング周波数の1/4に設定さ
れているので(したがって、輝度信号に対する色差信号
(Cr,Cb)のサンプリング周期は4倍)、輝度信号に対
する色差信号のデータ量の不足を補うために、色差信号
については、同図(d)に示すように、Cr信号とCb信号
とを交互に多重させて4画素分を一組とした信号S1と
して生成されている(図19(b)参照)。
As shown in FIG. 17, the above 4: 1: 1 signal is composed of a luminance signal (open circles in the figure) and each of the color difference signals Cr (black circles in the figure) and Cb (braided in the figure). Color difference signals (Cr, Cb) for digitizing analog video signals
The sampling frequency of is as shown in FIGS.
Since it is set to 1/4 of the sampling frequency for the luminance signal (therefore, the color difference signal for the luminance signal
(The sampling period of (Cr, Cb) is four times.) In order to compensate for the lack of the data amount of the chrominance signal with respect to the luminance signal, as shown in FIG. The signal S1 is multiplexed alternately and generated as a set of four pixels (see FIG. 19B).

【0006】そして、このような4:1:1信号は、輝
度信号S3と色差信号S1とに分離された形で図16に
示した画像処理装置に入力される。
[0006] Such a 4: 1: 1 signal is input to the image processing apparatus shown in FIG. 16 in a form separated into a luminance signal S3 and a color difference signal S1.

【0007】したがって、図16に示した従来の画像処
理装置は、入力される輝度信号S3に対してミラー処理
を行う回路9と、入力される色差信号S1に対してミラ
ー処理を行う回路10とが並設されたものとなってい
る。
Therefore, the conventional image processing apparatus shown in FIG. 16 includes a circuit 9 for performing a mirror process on an input luminance signal S3 and a circuit 10 for performing a mirror process on an input color difference signal S1. Are juxtaposed.

【0008】上記の各ミラー処理回路9,10は、基本
的に同一の構成を有しており、両回路9,10ともにラ
インメモリ11、書き込みアドレス発生回路12、読み
出しアドレス発生回路13、および読み出し方向制御回
路14を備えている。そして、ラインメモリ11は、図
15(a)に示した画像の1ライン分の画素数を“n”とし
たとき、“0”から“m−1”(n<m)までのアドレス空
間を持っている。
Each of the mirror processing circuits 9 and 10 has basically the same configuration, and both circuits 9 and 10 have a line memory 11, a write address generation circuit 12, a read address generation circuit 13, and a read operation. A direction control circuit 14 is provided. When the number of pixels for one line of the image shown in FIG. 15A is “n”, the line memory 11 allocates an address space from “0” to “m−1” (n <m). have.

【0009】図18は、上記の書き込みアドレス発生回
路12および読み出しアドレス発生回路13の動作の説
明図である。
FIG. 18 is an explanatory diagram of the operation of the write address generation circuit 12 and the read address generation circuit 13 described above.

【0010】まず、最初の1走査期間では、書き込みア
ドレス発生回路12は、書き込みアドレスを初期値
“0”から“(n/2)−1”まで増加させて、図15(a)
の1ライン中の左半部のデータa1をラインメモリ11
に記憶する。
First, in the first one scanning period, the write address generation circuit 12 increases the write address from the initial value “0” to “(n / 2) −1”, and FIG.
Is stored in the line memory 11 in the left half of one line.
To memorize.

【0011】次の1走査期間では、読み出しアドレス発
生回路13は、読み出しアドレスを初期値“0”から次
第に増加させていき、1走査期間(1H期間)前に書き込
まれた図15(a)の画像の左半部のデータa1をラインメ
モリ11から読み出して行く。
In the next one scanning period, the read address generating circuit 13 gradually increases the read address from the initial value "0", and the read address is written one scan period (1H period) earlier in FIG. Data a1 in the left half of the image is read from the line memory 11.

【0012】そして、読み出し方向制御回路14は、読
み出しアドレス発生回路13が発生した読み出しアドレ
スと1H期間前の書き込み終了時点のアドレス(=n/2
−1)とを比較して両者が一致すると、それ以降は、読
み出しアドレス発生回路13が読み出しアドレスを減少
させていくように制御を行う。このため、読み出しアド
レスは(n/2)−1から初期値(=0)まで次第に減少し
ていく。その結果、1ライン中の右半部は左半部を折り
返した画像になる。
Then, the read direction control circuit 14 calculates the read address generated by the read address generating circuit 13 and the address at the end of writing (= n / 2) 1H period earlier.
-1), and when they match, thereafter, the read address generation circuit 13 performs control so as to decrease the read address. Therefore, the read address gradually decreases from (n / 2) -1 to the initial value (= 0). As a result, the right half of one line is an image obtained by folding the left half.

【0013】上記の読み出し動作の期間中、これに並行
して、書き込みアドレス発生回路12は、書き込みアド
レスを初期値(n/2)から(n−1)まで増加させて、次の
ラインの左半部のデータa2をラインメモリ11に書き
込んでいく。
During the above-described read operation, the write address generating circuit 12 increases the write address from the initial value (n / 2) to (n-1) in parallel with the read operation, and sets the write address to the left of the next line. The half data a2 is written into the line memory 11.

【0014】図19は上述したデータの書き込みおよび
読み出し動作に伴う各信号の状態を示すタイミングチャ
ートである。なお、ここでは、理解を容易にするため
に、n=16に設定した場合について説明するが、実際
にはnはもっと多い値(たとえばn=1024)である。
FIG. 19 is a timing chart showing the state of each signal associated with the above-described data write and read operations. Here, for ease of understanding, a case where n = 16 is described, but n is actually a larger value (for example, n = 1024).

【0015】いま、ミラー処理の折り返し位置をP1
して、同図(a),(b)に示すように輝度信号S3と色差信
号S1とが入力される場合、各ミラー処理回路9,10
の書き込みアドレス発生回路12からは、同図(c)に示
すように、0,1,…,7までの書き込みアドレスが発
生される。また、読み出しアドレス発生回路13から
は、同図(d)に示すように、0,1,…,7,7,6,
…1,0と読み出しアドレスが発生される。
Assuming that the turning position of the mirror processing is P 1 and the luminance signal S 3 and the color difference signal S 1 are inputted as shown in FIGS.
,.., 7 are generated from the write address generation circuit 12 as shown in FIG. Also, from the read address generation circuit 13, as shown in FIG.
.., 1 and 0 are generated.

【0016】したがって、入力される輝度信号S3に対
するミラー処理回路9からは、同図(e)に示すように、
輝度信号S3がY0,Y1,…Y7,Y7,Y6,…,
Y0とミラー処理されて出力される。同様に、入力され
る色差信号S1に対するミラー処理回路10からは、同
図(f)に示すように、色差信号S2がCr0,Cb0,
…,Cr4,Cb4,Cb4,Cr4,…,Cb0,Cr0と
ミラー処理されて出力される。
Therefore, the mirror processing circuit 9 for the input luminance signal S3 outputs, as shown in FIG.
The luminance signal S3 is Y0, Y1,... Y7, Y7, Y6,.
It is mirrored and output as Y0. Similarly, from the mirror processing circuit 10 for the input color difference signal S1, the color difference signal S2 is changed to Cr0, Cb0,
.., Cr4, Cb4, Cb4, Cr4,..., Cb0, Cr0 are mirror-processed and output.

【0017】そして、ミラー処理回路10でミラー処理
された色差信号S2が図示しない後段の処理回路におい
て、同図(j)に示すような色差信号抽出パルスによっ
て、4画素単位でCr,Cbの各色差信号が抽出されて、
図17(b),(c)に示すように、4画素単位で離れた位置
に配分されることにより、図15(b)に示したような色
付けされたミラー画像が得られる。
The chrominance signal S2, which has been mirror-processed by the mirror processing circuit 10, is processed by a chrominance signal extraction pulse as shown in FIG. The color difference signal is extracted,
As shown in FIGS. 17 (b) and 17 (c), by distributing them at positions separated by four pixels, a colored mirror image as shown in FIG. 15 (b) is obtained.

【0018】[0018]

【発明が解決しようとする課題】上記のように、図16
に示した従来の画像処理装置では、両ミラー処理回路
9,10の構成が同じであって、入力される色差信号S
1についても、入力される輝度信号S3と全く同じ内容
のミラー処理を行っている。
As described above, FIG.
In the conventional image processing apparatus shown in FIG. 1, both mirror processing circuits 9 and 10 have the same configuration, and the input color difference signal S
1 is also subjected to mirror processing of exactly the same content as the input luminance signal S3.

【0019】このため、色差信号に基づいて画像に色付
けをしたときには、右半分の画像の色が左半分の画像の
色と異なって表示されたり、輝度信号に基づく画像の輪
郭通りに色付けされずに輪郭と色とにずれが生じたりす
るなど、正常なミラー画像が表示されないことが起こっ
ていた。以下、その理由について、図19を参照しなが
ら説明する。
For this reason, when an image is colored based on the color difference signal, the color of the right half image is displayed differently from the color of the left half image, or the image is not colored according to the outline of the image based on the luminance signal. In some cases, a normal mirror image is not displayed, for example, a shift occurs between the outline and the color. Hereinafter, the reason will be described with reference to FIG.

【0020】ミラー処理回路9に入力される輝度信号S
3は1画素単位で入力され、かつ、ミラー処理後の輝度
信号S4も1画素単位で表示されるので、同図(e)から
も分かるように、折り返し位置P1を中心として左右対
称に輝度信号が配置されることになり、この輝度信号に
基づく画像を表示しても何ら支障のない輪郭を有するミ
ラー画像が得られる。
The luminance signal S input to the mirror processing circuit 9
3 is entered in units of one pixel, and, because it is displayed in even one pixel unit luminance signal S4 after the mirror treatment, as can be seen from FIG. (E), the luminance symmetrically around a folding position P 1 The signals are arranged, and a mirror image having an outline that does not cause any trouble even when an image based on the luminance signal is displayed is obtained.

【0021】これに対して、ミラー処理回路10に入力
される色差信号S1(同図(b)参照)は、Cr信号とCb信
号とを交互に多重させて4画素分を一組とした信号とし
て生成されている。このため、ミラー処理後に出力され
る色差信号S2(同図(f)参照)に基づいて画像を色付け
する場合には、このような輝度信号と色差信号の4:
1:1のサンプリング周波数比率を保つために、前述の
ように、図示しない後段の処理回路において、同図(j)
に示すような色差信号抽出パルスによって、4画素単位
でCr,Cbの各色差信号が抽出される。
On the other hand, the color difference signal S1 (see FIG. 3B) input to the mirror processing circuit 10 is a signal in which a Cr signal and a Cb signal are alternately multiplexed and four pixels are set. Has been generated as. For this reason, when coloring an image based on the color difference signal S2 (see (f) in the figure) output after the mirror processing, such a luminance signal and a color difference signal of 4:
In order to maintain a sampling frequency ratio of 1: 1 as described above, a processing circuit (not shown) at a subsequent stage
The respective color difference signals of Cr and Cb are extracted in units of four pixels by the color difference signal extraction pulse shown in FIG.

【0022】すなわち、色差信号抽出パルスがハイレベ
ルの期間に色差信号Cr,Cbが抽出されるので、その結
果、ミラー処理された輝度信号S4と色差信号S2とを
比較すると、折り返し位置P1よりも左側の輝度信号Y
0の位置に対応してCr0とCb0とが抽出され、Y4の
位置に対応してCr4とCb4とが抽出され、また、折り
返し位置P1よりも右側の輝度信号Y7の位置に対応し
てCb4とCr4とが抽出され、Y3の位置に対応してC
b0とCr0とが抽出される。しかも、この場合の抽出順
序は、折り返し位置P1よりも左側ではCr成分が先でC
b0成分が後であり、一方、折り返し位置P1よりも右側
では、Cb成分が先でCr成分が後になっている。
[0022] That is, the color difference signal extraction pulse color difference signals Cr, Cb are extracted in the period of the high level, the result is compared with the and the color difference signal S2 a luminance signal S4 which is mirrored, from the return position P 1 Also the left luminance signal Y
Corresponding to the position of 0 Cr0 and Cb0 and are extracted, Cr4 and the Cb4 corresponding to the position of Y4 is extracted, also, than return position P 1 corresponding to the positions of the right of the luminance signal Y7 Cb4 And Cr4 are extracted, and C3 corresponding to the position of Y3 is extracted.
b0 and Cr0 are extracted. Moreover, the extraction sequence in this case, C Cr component in the preceding on the left side than the turning point P 1
b0 component there later, whereas, on the right side than the return position P 1, Cb component is in later Cr component in the previous.

【0023】ここで、折り返し位置P1から左右それぞ
れ等距離にある色差信号同士の関係に着目すると、折り
返し位置P1から左側に4画素離れた位置、すなわち輝
度信号Y4の位置ではCr4,Cb4を抽出するパルスが
存在するが、折り返し位置P1から右側に4画素離れた
位置、すなわち折り返された輝度信号Y4の位置には、
色差信号抽出パルスが存在せず、さらに1画素右側、つ
まり折り返し位置P1から5画素離れた位置にCb0,C
r0の抽出パルスが存在している。そして、このCb0,
Cr0の成分は、折り返し位置P1から左側に8画素離れ
た輝度信号Y0に対応したCb0,Cr0の成分と同じも
のになっていて、画素間の距離に応じて比例配分された
値ではない。つまり、折り返し位置P1から左右に略同
じ画素数だけ離れた位置には略同じ色差成分をもつ信号
が配置されておらず、このため、輝度信号に基づく画像
の輪郭と色付けとにずれが生じる。
[0023] Here, when focusing on the relationship of the color difference signals to each other in the left and right equidistant from the return position P 1, a position from the return position P 1 away four pixels to the left, that is, the position of the luminance signal Y4 is Cr4, a Cb4 the extraction pulse is present, a position from the return position P 1 away four pixels to the right, i.e. the folded position of the luminance signal Y4 is
There is no chrominance signal extracting pulses, further 1 pixel right, i.e. in a position away 5 pixels from the return position P 1 Cb0, C
There is an extraction pulse of r0. And this Cb0,
Components of Cr0 from return position P 1 it becomes the same as the Cb0, Cr0 the component corresponding to the luminance signal Y0 away 8 pixels to the left, not the prorated value according to the distance between pixels. That is, not disposed is substantially a signal having the same chrominance component at a position apart by substantially the same number of pixels to the left and right from the folding position P 1, Therefore, the shift to the contours and coloring of the image based on the luminance signal generated .

【0024】しかも、上記のように、折り返し位置P1
の左右で色差信号の抽出順序が逆になっている、つま
り、左側ではCbの抽出後にCrが抽出されるのに対し
て、右側ではCbの抽出後にCrが抽出されるので、結果
的にCr画素の位置にCb画素が位置してしまい、右半部
の色は左半部の色に対して反転した色となってしまう。
Further, as described above, the turning position P 1
The extraction order of the chrominance signal is reversed between left and right. That is, while Cr is extracted after Cb is extracted on the left, Cr is extracted after Cb is extracted on the right. The Cb pixel is located at the position of the pixel, and the color in the right half is inverted from the color in the left half.

【0025】また、ミラー処理においては、折り返し位
置がP1位置に固定されたものではなくて、折り返し位
置を任意に変更できるようにしたいという要請もある。
Further, in the mirror process is not intended to return position is fixed to the P 1 position, there is also a demand to be able to arbitrarily change the return position.

【0026】この要請に応えるために、たとえば折り返
し位置をP2に変更した場合、この折り返し位置P2は、
4画素を1組となった色差信号の区切りの位置でなく、
4画素を1組とした途中の位置に設定されることにな
る。その場合、書き込みアドレス発生回路12および読
み出しアドレス発生回路13は、同図(g)、(h)のように
アドレスを発生するので、ミラー処理回路10でミラー
処理されて出力される色差信号S2は、同図(i)に示す
ようなものになる。
[0026] In the case in order to respond to this request, for example, a folded position was changed to P 2, the folded position P 2 is,
It is not the position of the break of the color difference signal that is a set of four pixels,
It is set at a position in the middle of four pixels as one set. In this case, the write address generation circuit 12 and the read address generation circuit 13 generate addresses as shown in FIGS. 3 (g) and 3 (h), so that the color difference signal S2 which is mirror-processed and output by the mirror processing circuit 10 is The result is as shown in FIG.

【0027】この場合は、折り返し位置P2から左右に
略同じ画素数だけ離れた位置には略同じ色差成分をもつ
信号が配置されることになるものの、折り返し位置をP
1に設定した場合と同様に、折り返し位置P2の左右で色
差信号の抽出順序が逆になって、折り返し開始位置P2
の左右で色が反転するということに加え、折り返し開始
位置P2の前後で色差信号がCr8→Cr8と続いて抽出
されて、Cb成分をもつ色差信号が抽出されないため、
輝度信号と色差信号(Cr,Cb)のサンプリング周波数の
比率4:1:1が崩れた形になってしまう。
In this case, signals having substantially the same color difference components are arranged at positions substantially the same number of pixels to the left and right from the turning position P 2, but the turning position is set to P.
As if set to 1, the extraction order of the color difference signals at the left and right folding position P 2 are reversed, folding start position P 2
Since the addition of color is reversed in the right and left, and the color difference signals before and after the turn-back start position P 2 is extracted subsequently with CR8 → CR8, color difference signal having a Cb component is not extracted,
The ratio 4: 1: 1 of the sampling frequency of the luminance signal and the color difference signal (Cr, Cb) is lost.

【0028】このように、従来の画像処理装置では折り
返し位置を1画素単位で任意に可変設定することができ
ない。
As described above, in the conventional image processing apparatus, the folding position cannot be arbitrarily set variably in units of one pixel.

【0029】なお、上記の不都合を無くすためには、た
とえば、色差信号を多重せずに、Cr成分の信号とCb成
分の信号のそれぞれについてミラー処理を行う回路を構
成することが考えられるが、そのような構成にすると、
各系統ごとに処理回路が必要になるため、回路規模が徒
に増加することになるため好ましくない。
In order to eliminate the above-mentioned inconvenience, for example, it is conceivable to configure a circuit that performs mirror processing on each of the Cr component signal and the Cb component signal without multiplexing the color difference signals. With such a configuration,
Since a processing circuit is required for each system, the circuit scale unnecessarily increases, which is not preferable.

【0030】本発明は、上記従来の課題を解決するもの
であって、4:1:1信号を構成する色差信号に対し
て、任意の位置から折り返しを開始することができ、し
かも、折り返し位置を中心とした左右の色が反転しない
正常なミラー画像を出力することができる画像処理装置
を提供することを課題とする。
The present invention is to solve the above-mentioned conventional problem, and it is possible to start folding back a color difference signal constituting a 4: 1: 1 signal from an arbitrary position. It is an object of the present invention to provide an image processing apparatus capable of outputting a normal mirror image in which the left and right colors around the image are not inverted.

【0031】[0031]

【課題を解決するための手段】上記の課題を解決するた
めに、本発明では、入力される4:1:1信号について
ミラー処理を行う画像処理装置において、次のようにし
ている。
According to the present invention, there is provided an image processing apparatus for performing a mirror process on an input 4: 1: 1 signal as follows.

【0032】すなわち、本発明では、4:1:1信号を
構成する輝度信号と色差信号とについてそれぞれ個別に
ミラー処理を行うミラー処理回路を有しており、色差信
号にミラー処理を行うミラー処理回路は、入力される色
差信号を記憶する記憶手段と、色差信号を配分するため
の定数を発生させる定数発生手段と、前記色差信号に対
して前記定数発生手段が発生する定数に応じた補間演算
を行う補間演算手段と、前記記憶手段に対する書き込み
アドレスを発生させる書き込みアドレス発生手段と、前
記記憶手段に対する読み出しアドレスを発生させる読み
出しアドレス発生手段と、前記記憶手段に記憶させる色
差信号の書き込み範囲の設定を行う書き込み範囲設定手
段と、前記読み出しアドレス発生手段の発生するアドレ
スの増減を制御する読み出し方向制御手段とを備えてお
り、前記定数発生手段は、前記記憶手段に記憶させる入
力映像信号の範囲と前記読み出し方向制御回路の前記読
み出しアドレス発生回路に対するアドレス増減制御に応
じて定数を発生させるようにしている。
That is, according to the present invention, there is provided a mirror processing circuit for individually performing mirror processing on a luminance signal and a color difference signal constituting a 4: 1: 1 signal. The circuit includes a storage unit for storing the input color difference signal, a constant generation unit for generating a constant for distributing the color difference signal, and an interpolation operation corresponding to the constant generated by the constant generation unit for the color difference signal. , A write address generation means for generating a write address for the storage means, a read address generation means for generating a read address for the storage means, and a setting of a color difference signal writing range to be stored in the storage means A write range setting means for controlling the increase and decrease of addresses generated by the read address generation means. Reading direction control means, wherein the constant generating means generates a constant according to a range of an input video signal to be stored in the storage means and an address increase / decrease control of the reading direction control circuit for the read address generating circuit. Like that.

【0033】これにより、記憶手段に書き込まれた4:
1:1信号の色差信号を読み出す際に、その書き込み範
囲に連動したデータ読み出し制御、および読み出された
データに対する補間演算を行うため、従来の画像処理装
置では不可能であった、色差信号に対して、任意の位置
から折り返しを開始でき、かつ、右半部の色が反転せ
ず、しかも、輝度信号に基づく画像の輪郭と色付けとに
ずれが生じない適切なミラー画像を出力することができ
る。
As a result, 4:
When a color difference signal of 1: 1 signal is read, data read control linked to the writing range and interpolation calculation for the read data are performed. On the other hand, it is possible to output an appropriate mirror image that can start folding from an arbitrary position, does not invert the color of the right half, and does not cause a shift between the outline and the coloring of the image based on the luminance signal. it can.

【0034】[0034]

【発明の実施の形態】以下、本発明にかかる実施の形態
を図面に基づいて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0035】図1は、本発明の実施の形態に係る画像処
理装置の基本的な要部構成を示すブロック図である。
FIG. 1 is a block diagram showing a basic configuration of a main part of an image processing apparatus according to an embodiment of the present invention.

【0036】この画像処理装置は、入力される輝度信号
S3に対するミラー処理を行って、処理後の輝度信号S
4を出力する回路99と、入力される色差信号S1に対
するミラー処理を行って処理後の色差信号S2を出力す
る回路100とが並設されたものとなっている。
This image processing apparatus performs a mirror process on the input luminance signal S3, and executes the processed luminance signal S3.
4 and a circuit 100 that performs a mirror process on the input color difference signal S1 and outputs the processed color difference signal S2.

【0037】そして、この実施形態では、入力される輝
度信号S3に対するミラー処理回路99は、図16に示
した従来と同一の構成を有するミラー処理回路9と、そ
のミラー処理回路9の出力を4クロック分遅延する4T
遅延回路15とからなる。
In this embodiment, the mirror processing circuit 99 for the input luminance signal S3 includes a mirror processing circuit 9 having the same configuration as the conventional one shown in FIG. 4T delayed by clock
And a delay circuit 15.

【0038】一方、入力される色差信号S1に対するミ
ラー処理回路100は、従来の回路10とは大分異なっ
た構成になっている。
On the other hand, the mirror processing circuit 100 for the input color difference signal S1 has a configuration substantially different from that of the conventional circuit 10.

【0039】すなわち、図1において、101は入力映
像信号S1を記憶するための記憶手段としてのラインメ
モリ、102はラインメモリ101に対して書き込みア
ドレスを発生させる書き込みアドレス発生手段としての
書き込みアドレス発生回路、103はラインメモリ10
1に対して読み出しアドレスを発生させる読み出しアド
レス発生手段としての読み出しアドレス発生回路、10
4は読み出しアドレス発生回路103が読み出しアドレ
スを増加させるか、または減少させるかを制御する読み
出し方向制御手段としての読み出し方向制御回路であ
る。
That is, in FIG. 1, 101 is a line memory as storage means for storing the input video signal S1, and 102 is a write address generation circuit as write address generation means for generating a write address for the line memory 101. , 103 are line memories 10
A read address generation circuit as a read address generation means for generating a read address for 1;
Reference numeral 4 denotes a read direction control circuit as read direction control means for controlling whether the read address generation circuit 103 increases or decreases the read address.

【0040】また、105は書き込みアドレス発生回路
102が発生する書き込みアドレスの範囲を設定する書
き込み範囲設定手段としての書き込み範囲設定回路、1
06は読み出しアドレス発生回路108が発生する読み
出しアドレスの範囲を設定する読み出し範囲設定回路、
107はラインメモリ101からの出力に対して補間演
算を行う補間演算手段としての補間演算回路、108は
書き込み範囲設定回路105が設定する書き込み範囲の
情報、および読み出し方向制御回路104の決定した読
み出しアドレスの増減方向の情報に基づいて、これに応
じた定数を発生させる定数発生手段としての定数発生回
路である。そして、上記の各部は、クロック信号CLK
に同期して動作するようになっている。
Reference numeral 105 denotes a write range setting circuit as write range setting means for setting a range of write addresses generated by the write address generation circuit 102;
06 is a read range setting circuit that sets a range of read addresses generated by the read address generation circuit 108;
107, an interpolation operation circuit as an interpolation operation means for performing an interpolation operation on the output from the line memory 101; 108, information on a write range set by the write range setting circuit 105; and a read address determined by the read direction control circuit 104 Is a constant generation circuit as constant generation means for generating a constant corresponding thereto based on the information on the increase / decrease direction of the data. Then, the above-described units are connected to the clock signal CLK.
It operates in synchronization with.

【0041】書き込みアドレス発生回路102の構成例
を図2に示す。
FIG. 2 shows an example of the configuration of the write address generation circuit 102.

【0042】同図において、401はクロック信号CL
Kの入力に対して4分周パルスを出力する4分周回路、
402はクロック信号CLKの入力に対して2分周パル
スを出力する2分周回路、403は4分周回路401の
発生する4分周パルスをカウントアップするアドレス発
生カウンタである。そして、2分周回路402とアドレ
ス発生カウンタ403とは、いずれも書き込み範囲設定
信号Hssがハイレベルの期間のみ動作するようになって
いる。また、404はアドレス発生カウンタ403の発
生するアドレスを上位ビットとし、2分周回路402の
発生する出力を下位ビットとして、それらをビット結合
してその結果を出力するビット結合回路である。
In the figure, reference numeral 401 denotes a clock signal CL.
A divide-by-4 circuit that outputs a divide-by-4 pulse with respect to the input of K,
Reference numeral 402 denotes a divide-by-2 circuit that outputs a divide-by-2 pulse in response to the input of the clock signal CLK, and 403 denotes an address generation counter that counts up the divide-by-4 pulse generated by the divide-by-4 circuit 401. Both the divide-by-2 circuit 402 and the address generation counter 403 operate only during the period when the write range setting signal Hss is at the high level. Reference numeral 404 denotes a bit combination circuit for combining the bits generated by the address generated by the address generation counter 403 and setting the output generated by the divide-by-2 circuit 402 as lower bits, and outputting the result.

【0043】読み出しアドレス発生回路103の構成例
を図3に示す。
FIG. 3 shows a configuration example of the read address generation circuit 103.

【0044】同図において、601は4分周回路、60
2は2分周回路、603はアドレス発生カウンタ、60
4はビット結合回路である。
In the figure, reference numeral 601 denotes a divide-by-4 circuit;
2 is a divide-by-2 circuit, 603 is an address generation counter, 60
4 is a bit combination circuit.

【0045】アドレス発生カウンタ603は、読み出し
方向制御回路104からの制御信号によって、カウント
アップ動作、カウントダウン動作、およびホールド動作
を行うようになっており、また、2分周回路602とア
ドレス発生カウンタ603とは、いずれも読み出し範囲
設定信号Henがハイレベルの期間のみ動作するようにな
っている。
The address generation counter 603 performs a count-up operation, a count-down operation, and a hold operation according to a control signal from the read direction control circuit 104. The divide-by-2 circuit 602 and the address generation counter 603 Means that only the read range setting signal Hen operates during the high level period.

【0046】その他の構成および動作は図2に示した書
き込みアドレス発生回路102と同じであるため、その
詳細な説明は省略する。
The other configuration and operation are the same as those of write address generating circuit 102 shown in FIG. 2, and therefore, detailed description thereof will be omitted.

【0047】補間演算回路107の構成例を図4に示
す。
FIG. 4 shows an example of the configuration of the interpolation operation circuit 107.

【0048】この補間演算回路107は、線形補間処理
を行うものであって、図中、701はラインメモリ10
1から読み出された色差信号Saを4クロック分だけ遅
延させる4T遅延回路、704は定数発生回路108か
ら出力される定数kに基づいて、2つの重み付け係数k,
1−kを算出する係数演算回路、702a,702bはラ
インメモリ101の出力Saおよび4T遅延回路701
の出力信号Sbに係数演算回路704で算出された重み
付け係数力k,1−kを乗算する乗算器、703は乗算器
702a,702bの出力信号を加算して補間演算結果S
a×k+Sb×(1−k)をミラー処理後の色差信号S2とし
て出力する加算器である。
The interpolation operation circuit 107 performs a linear interpolation process. In FIG.
A 4T delay circuit 704 for delaying the color difference signal Sa read from 1 by 4 clocks, 704 is a two-time weighting coefficient k,
702a, 702b are the output Sa of the line memory 101 and the 4T delay circuit 701
Multiplier 703 multiplies the output signal Sb by the weighting coefficient powers k and 1-k calculated by the coefficient calculation circuit 704, and 703 adds the output signals of the multipliers 702a and 702b to obtain an interpolation calculation result S
This is an adder that outputs a × k + Sb × (1-k) as a color difference signal S2 after mirror processing.

【0049】以上のように構成されたこの実施形態の画
像処理装置について、以下、その動作について説明す
る。
The operation of the image processing apparatus according to this embodiment configured as described above will be described below.

【0050】なお、ここでは、ミラー処理として、(A)
ミラー画像の左半部の輝度信号の画素数が4n(n=1,
2,3,…)となる場合、(B)ミラー画像の左半部の輝
度信号の画素数が4n+1(n=0,1,2,3,…)とな
る場合、(C)ミラー画像左半部の輝度信号の画素数が4
n+2(n=0,1,2,3,…)となる場合、(D)ミラー
画像左半部の輝度信号の画素数が4n+3(n=0,1,
2,3,…)となる場合の4つのケースについて、それ
ぞれ説明する。
Here, as the mirror processing, (A)
The number of pixels of the luminance signal in the left half of the mirror image is 4n (n = 1,
(B) when the number of pixels of the luminance signal in the left half of the mirror image is 4n + 1 (n = 0, 1, 2, 3,...), (C) when the mirror image is left The number of pixels of the half luminance signal is 4
When n + 2 (n = 0, 1, 2, 3,...), (D) the number of pixels of the luminance signal in the left half of the mirror image is 4n + 3 (n = 0, 1,
2, 3,...) Will be described.

【0051】(A) ミラー画像の折り返し位置がPA
すなわちミラー画像の左半部の輝度信号の画素数が4n
(n=1,2,3,…)となるようなミラー処理を行う場
合 ここでは、理解を容易にするために、n=2、つまりミ
ラー画像の左半部の輝度信号の画素数が8(=4×2)画
素と仮定して動作を説明する。
(A) The mirror image is turned back at P A ,
That is, the number of pixels of the luminance signal in the left half of the mirror image is 4n.
(n = 1, 2, 3,...) In this case, in order to facilitate understanding, n = 2, that is, the number of pixels of the luminance signal in the left half of the mirror image is 8 The operation will be described on the assumption that there are (= 4 × 2) pixels.

【0052】図5は書き込みアドレス発生回路102の
動作を示すタイミングチャート、図6は画像処理装置が
ミラー処理を行う際の各々の回路の動作を説明するため
のタイミングチャートである。
FIG. 5 is a timing chart showing the operation of the write address generation circuit 102, and FIG. 6 is a timing chart for explaining the operation of each circuit when the image processing apparatus performs the mirror processing.

【0053】図6(b)に示すように、ミラー処理回路9
に入力される輝度信号S3は、クロック信号CLKごと
にY0,Y1,Y2,…というように1画素単位で入力
され、かつ、ミラー処理後の輝度信号S4も、同図(l)
に示すように、入力される色差信号S3に対して全体に
4クロック分遅延されるだけで、折り返し位置PAを中
心として左右対称に輝度信号が配置されているので、従
来と同じくミラー処理された輪郭の画像が得られる。
As shown in FIG. 6B, the mirror processing circuit 9
Are input in pixel units such as Y0, Y1, Y2,... For each clock signal CLK, and the mirror-processed luminance signal S4 is also shown in FIG.
As shown in, only 4 are clocks wide delays the color-difference signal S3 is input, the luminance signal symmetrically about the return position P A is located, a conventional and are well mirrored The image of the contour is obtained.

【0054】一方、ミラー処理回路100を構成する書
き込み範囲設定回路105は、入力される色差信号S1
の先頭画素Cr0から折り返し位置PAよりも4画素分だ
け余分のCb8成分が得られる期間だけハイレベルの書
き込み範囲設定信号Hssを出力する。
On the other hand, the write range setting circuit 105 constituting the mirror processing circuit 100 receives the input color difference signal S1.
From the head pixel Cr0 only four pixels than the return position P A extra Cb8 component outputs a write range setting signal Hss only high-level period resulting in.

【0055】また、書き込みアドレス発生回路102を
構成するアドレス発生カウンタ403は、図5(a)に示
すクロックCLK入力に対して、同図(b)のように動作
し、また、2分周回路402は同図(c)のように動作す
るため、結果として、ビット結合回路404から出力さ
れる書き込アドレスは、同図(d)のように発生される。
したがって、書き込みアドレスの内、最初のスタートア
ドレスは“0”、エンドアドレスは“5”となる。そし
て、書き込みアドレス発生回路102で発生される書き
込みアドレスは、読み出し方向制御回路104に与えら
れ、また、書き込みアドレスの内、最初のスタートアド
レス(この場合は“0”)と最後のエンドアドレス(この
場合は“5”)とが読み出しアドレス発生回路103に
与えられる。
The address generation counter 403 constituting the write address generation circuit 102 operates as shown in FIG. 5B in response to the clock CLK input shown in FIG. 402 operates as shown in FIG. 3C, and as a result, the write address output from the bit combination circuit 404 is generated as shown in FIG.
Therefore, of the write addresses, the first start address is "0" and the end address is "5". Then, the write address generated by the write address generation circuit 102 is given to the read direction control circuit 104, and among the write addresses, the first start address (in this case, “0”) and the last end address (this In this case, “5”) is given to the read address generation circuit 103.

【0056】ここで、書き込みアドレスとして、“0”
と”1”が交互に2回、“2”と“3”が交互に2回、
“4”と“5”が交互に2回、それぞれ繰り返して出力
されるのは、次の理由による。
Here, "0" is set as the write address.
And "1" alternately twice, "2" and "3" alternately twice,
The reason that "4" and "5" are alternately output twice, respectively, is as follows.

【0057】図6に示すように、4:1:1信号を構成
する入力色差信号S1は、Cr信号とCb信号とを交互に
多重させて4画素分を一組とした信号として生成されて
いるので、その規則性を利用して、たとえば、アドレス
“0”にはCr0成分の色差信号を重ね書きし、また、
アドレス“1”にはCb0成分の色差信号を重ね書きす
れば、ラインメモリ101に記憶すべき色差信号の内容
を変更することなく、データ量を実質的に減らすことが
できるからである。また、折り返し位置がPAに設定さ
れているのにもかかわらず、書き込みアドレスが“4”
と“5”が交互に2回、計4クロック分だけ折り返し位
置PAから余分に発生されているのは、後述の補間演算
回路107で補間演算するのに必要なデータ量を予め確
保しておくためである。
As shown in FIG. 6, the input chrominance signal S1 constituting the 4: 1: 1 signal is generated as a set of four pixels by alternately multiplexing the Cr signal and the Cb signal. Therefore, using the regularity, for example, the color difference signal of the Cr0 component is overwritten at the address “0”, and
This is because if the color difference signal of the Cb0 component is overwritten on the address "1", the data amount can be substantially reduced without changing the content of the color difference signal to be stored in the line memory 101. Further, the folded position despite what is set to P A, the write address is "4"
And "5" are alternately generated twice, a total of four clocks, from the turn-back position P A. The extra data required for the interpolation calculation by the interpolation calculation circuit 107 described later is secured in advance. It is to keep.

【0058】一方、読み出しアドレス発生回路103
は、書き込みアドレス発生回路102が書き込みアドレ
スの発生を開始してから1走査期間後に、読み出しアド
レスの発生を開始する。
On the other hand, read address generation circuit 103
Starts the generation of the read address one scanning period after the write address generation circuit 102 starts generating the write address.

【0059】また、読み出し方向制御回路104は、1
走査期間前の書き込みエンドアドレス(ここでは“5”)
と現在の読み出しアドレスとを比較して、両者が一致す
るまでは、読み出しアドレス発生回路103を構成する
アドレス発生カウンタ603がカウントアップするよう
に、両者が一致した後はカウントダウンするように制御
する。
Also, the read direction control circuit 104
Write end address before scanning period (here "5")
Is compared with the current read address. Control is performed so that the address generation counter 603 included in the read address generation circuit 103 counts up until both match, and counts down after both match.

【0060】したがって、読み出しアドレス発生回路1
03が発生する読み出しアドレスは、図6(g)に示すよ
うに、書き込み範囲設定信号Hssがハイレベルの期間、
すなわち、折り返し位置PAを過ぎて4クロック分まで
0,1,0,1,2,3,2,3,4,5,4,5と順
次増加してラインメモリ101をアクセスし、以降は
2,3,2,3,…と次第に減少していく。
Therefore, read address generation circuit 1
As shown in FIG. 6 (g), the read address where 03 occurs is in a period in which the write range setting signal Hss is at the high level.
That is, the line memory 101 is sequentially increased from 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5 to 4 clocks after the turn-back position P A , and the line memory 101 is accessed. It gradually decreases as 2,3,2,3 ...

【0061】その結果、ラインメモリ101からは、同
図(h)のように色差信号Saが出力される。
As a result, the color difference signal Sa is output from the line memory 101 as shown in FIG.

【0062】また、定数発生回路108は、読み出し方
向制御回路104からの制御信号と書き込み範囲設定回
路105からの書き込み範囲設定信号Hssの論理和に基
づいて、読み出しアドレス発生回路103の発生する読
み出しアドレスが増加傾向にあるときには定数k=0
を、読み出しアドレスが減少傾向に変化したときに定数
k=1/4を出力する。そして、これらの定数k(=0,
1/4)が補間演算回路107に与えられる。
The constant generation circuit 108 generates a read address generated by the read address generation circuit 103 based on a logical sum of a control signal from the read direction control circuit 104 and a write range setting signal Hss from the write range setting circuit 105. Is constant, the constant k = 0
Is a constant when the read address changes in a decreasing trend.
k = 1/4 is output. Then, these constants k (= 0,
1/4) is given to the interpolation operation circuit 107.

【0063】補間演算回路107は、定数発生回路10
8からの与えられる定数kを使用して、ラインメモリ1
01の出力Saとそれを4T遅延回路701で4T分遅
延させた信号Sbとの補間演算を行う。
The interpolation operation circuit 107 includes a constant generation circuit 10
8 using the given constant k from line memory 1
An interpolation operation is performed between the output Sa of No. 01 and the signal Sb obtained by delaying the output Sa by 4T by the 4T delay circuit 701.

【0064】この補間演算においては、図6(h)のライ
ンメモリ101出力,同図(i)の4T遅延回路401出
力,同図(j)の定数発生回路108出力とから線形補間
演算が行われて、加算器703からは、Sa×k+Sb×
(1−k)が出力される。そして、この出力がミラー処理
後の色差信号S2となる。
In this interpolation operation, a linear interpolation operation is performed from the output of the line memory 101 in FIG. 6H, the output of the 4T delay circuit 401 in FIG. 6I, and the output of the constant generation circuit 108 in FIG. From the adder 703, Sa × k + Sb ×
(1-k) is output. This output is the color difference signal S2 after the mirror processing.

【0065】このミラー処理後の色差信号S2は、同図
(k)に示すように、折り返し位置PAよりも左側では、入
力される色差信号S1と内容が同じで、かつ、全体的に
4クロック分遅延されたものとなっている。これは、定
数発生回路108から出力される定数kが、ラインメモ
リ101から読み出される色差信号のCr0〜Cb4まで
はk=0であるので、4T遅延回路701の出力Sbのみ
となるためである。一方、折り返し位置PAよりも右側
では、ラインメモリ101からの出力Saに対して定数
1/4が、4T遅延回路701の出力Sbに対して定数
3/4(=1−1/4)それぞれ乗算された後、両者が加
算される。
The color difference signal S2 after the mirror processing is shown in FIG.
As shown in (k), on the left side of the folding position P A , the content is the same as that of the input color difference signal S1 and is totally delayed by four clocks. This is because the constant k output from the constant generation circuit 108 is k = 0 for the color difference signals Cr0 to Cb4 read from the line memory 101, so that only the output Sb of the 4T delay circuit 701 is provided. On the other hand, on the right side of the turning position P A , the constant 4 (= 1-1 / 4) for the output Sa from the line memory 101 and the constant / (= 1−11 /) for the output Sb of the 4T delay circuit 701 After multiplication, both are added.

【0066】そして、この補間演算回路107の出力信
号S2は、図示しない後段の処理回路において、たとえ
ば同図(m)に示すような色差信号抽出パルスによって、
4画素単位で抽出される。
The output signal S2 of the interpolation operation circuit 107 is supplied to a subsequent processing circuit (not shown) by a color difference signal extraction pulse as shown in FIG.
It is extracted in units of four pixels.

【0067】したがって、補間演算回路107で得られ
る出力色差信号S2を、ミラー処理後の輝度信号S4と
比較すると、図7に示すようになる。
Accordingly, when the output chrominance signal S2 obtained by the interpolation operation circuit 107 is compared with the luminance signal S4 after the mirror processing, the result is as shown in FIG.

【0068】すなわち、輝度信号S4は、従来と同様、
同図(d)のようにミラー処理された出力が得られる。こ
れに対して、色差信号S2は、同図(e),(f)に示すよう
に、折り返し位置PAよりも左側では、輝度信号Y0の
位置に対応して色差信号Cr0とCb0が、輝度信号Y4
の位置に対応して色差信号Cr4とCb4とがそれぞれ抽
出され、また、折り返し位置PAよりも右側では、輝度
信号と色差信号の4:1:1のサンプリング周波数比率
を保つために、輝度信号Y7およびY3の位置に対応し
た位置に色差信号が抽出される。この場合、輝度信号Y
7の位置に対応する色差信号は(Cr4+3Cr8)/4と
(Cb4+3Cb8)/4とであり、また、輝度信号Y3の
位置に対応する出力色差信号は(Cr0+3Cr4)/4と
(Cb0+3Cb4)/4となる。
That is, the luminance signal S4 is, as in the prior art,
An output that has undergone mirror processing is obtained as shown in FIG. In contrast, the color difference signal S2, FIG. (E), (f), the at the left side than the return position P A, the color difference signals Cr0 and Cb0 to correspond to the position of the luminance signal Y0, luminance Signal Y4
Is the color difference signals Cr4 corresponding to the position of the and Cb4 are respectively extracted, and in the right side from the return position P A, the luminance signal and color difference signals of 4: 1: 1 in order to keep the sampling frequency ratio, luminance signal Color difference signals are extracted at positions corresponding to the positions of Y7 and Y3. In this case, the luminance signal Y
The color difference signal corresponding to the position 7 is (Cr4 + 3Cr8) / 4.
(Cb4 + 3Cb8) / 4, and the output color difference signal corresponding to the position of the luminance signal Y3 is (Cr0 + 3Cr4) / 4.
(Cb0 + 3Cb4) / 4.

【0069】ここで、折り返し位置PAから左右それぞ
れ等しい距離にある色差信号同士の関係に着目する。い
ま、折り返し位置PAから左側に4画素離れた位置では
Cr4,Cb4が存在するが、右側に4画素離れた位置に
はCr,Cbの色差信号は存在せず、そのさらに一つ右
隣、すなわち折り返し位置PAから右側に5画素離れた
位置に(Cr0+3Cr4)/4と(Cb0+3Cb4)/4が
存在することになる。
[0069] Here, attention is focused on the relationship between the color difference signals to each other in the same right and left distance from the return position P A. Now, in the position distant 4 pixels to the left from the return position P A is present Cr4, Cb4, Cr, a color difference signal Cb is not present at a position distant four pixels to the right, the one further right adjacent, that is, a position from the return position P a spaced 5 pixels to the right (Cr0 + 3Cr4) / 4 and (Cb0 + 3Cb4) / 4 that is present.

【0070】さて、折り返し位置PAから右側に5画素
離れた位置の輝度信号Y3に対応するCr成分の色差信
号は、折り返し位置PAの左側の輝度信号Y4とY0と
に対応するCr4とCr0とを比例配分した値(Cr0+3
Cr4)/4であり、また、折り返し位置PAから右側に
5画素離れた位置の輝度信号Y3に対応するCb成分の
色差信号は、折り返し位置PAの左側の輝度信号Y4と
Y0とに対応するCb4とCb0とを比例配分した値(Cb
0+3Cb4)/4である。
[0070] Now, the color difference signal Cr component corresponding to the luminance signal Y3 of the position from the return position P A spaced 5 pixels to the right, Cr4 corresponding to the left side of the luminance signal Y4 of the turn-back position P A and the Y0 and Cr0 (Cr0 + 3)
Cr4) / 4; also, the color difference signals Cb component corresponding to the luminance signal Y3 of the position from the return position P A spaced 5 pixels to the right, corresponding to the left side of the luminance signal Y4 of the turn-back position P A and the Y0 Cb4 and Cb0 are proportionally distributed (Cb4
0 + 3Cb4) / 4.

【0071】このことから、補間演算回路107は、前
後の色差信号Cr4,Cb4とCr0,Cb0とから補間演
算を行い、輝度信号のY3の位置に対応した色差信号を
求めて出力している。
From this, the interpolation operation circuit 107 performs an interpolation operation from the preceding and following color difference signals Cr4, Cb4 and Cr0, Cb0, and obtains and outputs a color difference signal corresponding to the Y3 position of the luminance signal.

【0072】そして、このような補間演算を行うことに
より、色差信号S2については、輝度信号S4のように
完全に左右対称ではないものの、折り返し位置PAを中
心としたとき、その折り返し位置PAの極近傍のもの(こ
こでは輝度信号Y7に対応する(Cr4+3Cr8)/4と
(Cb4+3Cb8)/4の色差成分のもの)を除いて、左
右に略同じ画素数だけ離れた位置に略同じ色差成分をも
つ信号が配置されることになる。
[0072] Then, by performing such interpolation calculation, for the color difference signal S2, but not completely symmetrical as luminance signals S4, when around the return position P A, its return position P A (Here, (Cr4 + 3Cr8) / 4 corresponding to the luminance signal Y7)
Except for (Cb4 + 3Cb8) / 4 color difference components), signals having substantially the same color difference components are arranged at positions separated by the same number of pixels on the left and right.

【0073】しかも、従来のように、折り返し位置PA
の左右で色差信号の抽出順序が逆になるようなことはな
く、ミラー画像の右半部のCr画素の位置には全てCr成
分の信号が、Cb画素の位置には全てCb成分の信号が得
られる。
Further, as in the prior art, the turning position P A
The order in which the color difference signals are extracted is not reversed between the left and right sides of the mirror image. can get.

【0074】その結果、右半部の色が左半部の色に対し
て反転するようなことはなく、しかも、出力輝度信号S
4に対して色ずれのない正常なミラー画像が出力され
る。
As a result, the right half color is not inverted with respect to the left half color, and the output luminance signal S
A normal mirror image with no color shift is output for No. 4.

【0075】(B) ミラー画像の折り返し位置がPB
すなわち左半部の輝度信号の画素数が4n+1(n=0,
1,2,3,…)となるようなミラー処理を行う場合 ここでは、理解を容易にするために、n=2、つまりミ
ラー画像の左半部の輝度信号の画素数が9(=4×2+
1)画素と仮定して動作を説明する。
(B) When the mirror image is turned back at P B ,
That is, the number of pixels of the luminance signal in the left half is 4n + 1 (n = 0,
Here, in order to facilitate the understanding, n = 2, that is, the number of pixels of the luminance signal in the left half of the mirror image is 9 (= 4). × 2 +
1) The operation will be described assuming a pixel.

【0076】図8は、ミラー処理を行う際の各々の回路
の動作を説明するためのタイミングチャートである。
FIG. 8 is a timing chart for explaining the operation of each circuit when performing mirror processing.

【0077】図8において、前述の図6の場合と異なる
点は、まず、第1点として、読み出し方向制御回路10
4は、折り返し位置がPBに設定された場合、1走査期
間前の書き込みエンドアドレスと現在の読み出しアドレ
スとを比較して両アドレスが一致した時点から、さらに
4クロックの期間は、読み出しアドレス発生回路103
を構成するアドレス発生カウンタ603の動作を停止し
てその出力をホールドし、その4クロック経過後にアド
レス発生カウンタ603がダウンカウントするように制
御する。したがって、読み出しアドレス発生回路103
からは、読み出しアドレスとして、図8(g)のように、
…2,3,4,5,4,5と増加して書き込み範囲設定
信号Hssがローレベルになった後も、4,5,4,5と
値が繰り返され、以降、2,3,2,3,…と減少す
る。
FIG. 8 is different from FIG. 6 in that the first point is that the read direction control circuit 10
4, when the folding position is set to P B, from the time when one scanning period before the write-end address and both addresses by comparing the current read address matches, further four periods of the clock, the read address generator Circuit 103
Is stopped, the output of the address generation counter 603 is stopped and its output is held, and the control is performed so that the address generation counter 603 counts down after elapse of four clocks. Therefore, the read address generation circuit 103
From, as the read address, as shown in FIG.
... Even after the write range setting signal Hss becomes low level after increasing to 2, 3, 4, 5, 4, 5, the values are repeated to 4, 5, 4, 5 and thereafter, 2, 3, 2 , 3, ... decrease.

【0078】第2点として、定数発生回路108は、読
み出し方向制御回路104からの制御信号と書き込み範
囲設定回路105からの書き込み範囲設定信号Hssの論
理和に基づいて、読み出しアドレス発生回路103を構
成するアドレス発生カウンタ603がダウンカウントを
開始するまでは定数k=0を、ダウンカウントを開始し
たときから定数k=3/4を出力する。すなわち、定数
発生回路108は、最初は定数k=0を出力するが、読
み出しアドレスが、図8(g)のように、4,5,4,5
から2,3,2,3,…へ減少を開始すると、それ以降
はk=3/4を出力する。
As a second point, the constant generation circuit 108 configures the read address generation circuit 103 based on the logical sum of the control signal from the read direction control circuit 104 and the write range setting signal Hss from the write range setting circuit 105. The constant k = 0 is output until the address generation counter 603 starts counting down, and the constant k = 3/4 is output from the start of down counting. That is, the constant generation circuit 108 outputs a constant k = 0 at first, but the read address is 4, 5, 4, 5 as shown in FIG.
, From 2, 3, 2, 3,..., K = 3/4 is output thereafter.

【0079】それ以外の動作については、前記(A)の図
6の場合と同一であるので、詳細な説明は省略する。
The other operations are the same as those in the case of FIG. 6 of (A) described above, and a detailed description thereof will be omitted.

【0080】したがって、補間演算回路107の出力信
号S2は、図8(k)のようになる。
Therefore, the output signal S2 of the interpolation operation circuit 107 is as shown in FIG.

【0081】そして、この色差信号S2は、図示しない
後段の処理回路において、同図(m)に示すような色差信
号抽出パルスによって、4画素単位で抽出される。
Then, the color difference signal S2 is extracted in four-pixel units by a color difference signal extraction pulse as shown in FIG.

【0082】したがって、補間演算回路107で得られ
る出力色差信号S2を、ミラー処理後の輝度信号S4と
比較すると、図9に示すようになる。
Therefore, when the output color difference signal S2 obtained by the interpolation operation circuit 107 is compared with the luminance signal S4 after the mirror processing, the result is as shown in FIG.

【0083】すなわち、輝度信号S4は、従来と同様、
同図(d)のようにミラー処理された出力が得られる。こ
れに対して、色差信号S2は、同図(e),(f)に示すよう
に、折り返し位置PBよりも左側では、輝度信号Y0の
位置に対応して色差信号Cr0とCb0が、輝度信号Y4
の位置に対応して色差信号Cr4とCb4とが、輝度信号
Y8の位置に対応して色差信号Cr8とCb8とがそれぞ
れ抽出され、また、折り返し位置PBよりも右側では、
輝度信号と色差信号の4:1:1のサンプリング周波数
比率を保つために、輝度信号Y5の位置に対応して、色
差信号(Cr8+3Cr4)/4と(Cb8+3Cb4)/4と
が、輝度信号Y1の位置に対応して色差信号(Cr4+3
Cr0)/4と(Cb4+3Cb0)/4とがそれぞれ抽出さ
れる。
That is, the luminance signal S4 is, as in the prior art,
An output that has undergone mirror processing is obtained as shown in FIG. In contrast, the color difference signal S2, FIG. (E), (f), the at the left side than the turning point P B, the color difference signals Cr0 and Cb0 to correspond to the position of the luminance signal Y0, luminance Signal Y4
Color difference signals Cr4 corresponding to the position of the and Cb4 are extracted respectively and the color difference signals Cr8 and Cb8 corresponding to the positions of the luminance signal Y8, also in the right side of the turn-back position P B,
In order to maintain the 4: 1: 1 sampling frequency ratio between the luminance signal and the color difference signal, the color difference signals (Cr8 + 3Cr4) / 4 and (Cb8 + 3Cb4) / 4 correspond to the position of the luminance signal Y5. The color difference signal (Cr4 + 3
(Cr0) / 4 and (Cb4 + 3Cb0) / 4 are extracted.

【0084】ここで、折り返し位置PBから左右それぞ
れ等しい距離にある色差信号同士の関係に着目する。い
ま、折り返し位置PBから左側に5画素離れた位置では
Cr4,Cb4が存在するが、右側に5画素離れた位置に
はCr,Cbの色差信号は存在せず、その左隣、すなわち
折り返し位置PBから右側に4画素離れた位置に(Cr8
+3Cr4)/4と(Cb8+3Cb4)/4とが存在するこ
とになる。さらに、折り返し位置PBから左側に9画素
離れた位置ではCr0,Cb0が存在するが、右側に9画
素離れた位置にはCr,Cbの色差信号は存在せず、その
左隣、すなわち折り返し位置PBから右側に8画素離れ
た位置に(Cr4+3Cr0)/4と(Cb4+3Cb0)/4
とが存在することになる。
[0084] Here, attention is focused on the relationship between the color difference signals to each other in the same right and left distance from the folded position P B. Now, in the position away 5 pixels to the left from the return position P B is present Cr4, Cb4, Cr, a color difference signal Cb is not present at a position away 5 pixels to the right, the left neighbor, i.e. folded position from P B at a distance of four pixels to the right (CR8
+ 3Cr4) / 4 and (Cb8 + 3Cb4) / 4. Further, in the position distant 9 pixels to the left from the return position P B is present Cr0, Cb0, Cr, a color difference signal Cb is not present at a position distant 9 pixels to the right, the left neighbor, i.e. folded position from P B to 8 pixels away on the right side (Cr4 + 3Cr0) / 4 and (Cb4 + 3Cb0) / 4
Will exist.

【0085】さて、折り返し位置PBから右側に4画素
離れた位置の輝度信号Y5に対応するCr成分とCb成分
の各色差信号は、折り返し位置PAの左側の輝度信号Y
8とY4とに対応するCr8,Cb8とCr4,Cr0とを
比例配分した値(Cr8+3Cr4)/4,(Cb8+3Cb
4)/4である。また、折り返し位置PBから右側に8画
素離れた位置の輝度信号Y1に対応するCb成分とCr成
分の各色差信号は、折り返し位置PAの左側の輝度信号
Y4とY0とに対応するCb4,Cr4とCb0,Cr0と
を比例配分した値(Cr4+3Cr0)/4,(Cb4+3C
b0)/4である。
[0085] Now, turn-back positions of each color difference signal Cr component and Cb component corresponding to the luminance signal Y5 from P B position spaced four pixels to the right, left of the luminance signal Y of the turn-back position P A
(Cr8 + 3Cr4) / 4, (Cb8 + 3Cb) obtained by proportionally distributing Cr8, Cb8 and Cr4, Cr0 corresponding to 8 and Y4.
4) / 4. Each color difference signals Cb and Cr components corresponding the folded position P B to the luminance signal Y1 of the position apart eight pixels to the right corresponds to the left side of the luminance signal Y4 of the turn-back position P A and the Y0 Cb4, A value (Cr4 + 3Cr0) / 4 obtained by proportionally distributing Cr4 to Cb0 and Cr0, (Cb4 + 3C
b0) / 4.

【0086】そして、補間演算回路107がこのような
補間演算を行うことにより、色差信号S2については、
折り返し位置PBを中心としたとき、輝度信号S4のよ
うに完全に左右対称ではないものの、その折り返し位置
Bの極近傍のもの(ここでは輝度信号Y8に対応するC
r8とCb8の色差成分のもの)を除いて、左右に略同じ
画素数だけ離れた位置に略同じ色差成分をもつ信号が配
置されることになる。しかも、この色差信号S2は、ミ
ラー画像の右半部のCr画素の位置には全てCrの信号
が、Cb画素の位置には全てCbの信号が出力されるた
め、右半部の色反転のない、そして出力輝度信号に対し
て色ずれのない正常なミラー画像が出力される。
Then, the interpolation operation circuit 107 performs such an interpolation operation, whereby the color difference signal S2 is
When around the turn-back position P B, although not completely symmetrical as luminance signals S4, in its folded position that the close proximity of P B (here corresponding to the luminance signal Y8 C
Except for the color difference components of r8 and Cb8), signals having substantially the same color difference components are arranged at positions separated by substantially the same number of pixels on the left and right. In addition, since the color difference signal S2 outputs all the Cr signals at the position of the Cr pixel in the right half of the mirror image and all the Cb signals at the position of the Cb pixel, the color inversion of the right half of the mirror image is performed. A normal mirror image having no color shift with respect to the output luminance signal is output.

【0087】(C) ミラー画像の折り返し位置がPC
すなわちミラー画像の左半部の輝度信号の画素数が4n
+2(n=0,1,2,3,…)となるようなミラー処理
を行う場合 ここでは、理解を容易にするために、n=2、つまりミ
ラー画像の左半部の輝度信号の画素数が10(=4×2
+2)画素と仮定して動作を説明する。
(C) The mirror image is turned back at P C ,
That is, the number of pixels of the luminance signal in the left half of the mirror image is 4n.
+2 (n = 0, 1, 2, 3,...) In this case, in order to facilitate understanding, in order to facilitate understanding, n = 2, that is, the pixel of the luminance signal in the left half of the mirror image The number is 10 (= 4 × 2
+2) The operation will be described assuming a pixel.

【0088】図10は、ミラー処理を行う際の各々の回
路の動作を説明するためのタイミングチャートである。
FIG. 10 is a timing chart for explaining the operation of each circuit when performing the mirror processing.

【0089】図10の動作が図6の場合と異なるのは、
第1点として、読み出し方向制御回路104が1走査期
間前の書き込みエンドアドレスと、現在の読み出しアド
レスとを比較して両アドレスが一致した時点から、さら
に4クロックの期間は、読み出しアドレス発生回路10
3を構成するアドレス発生カウンタ603の動作を停止
してその出力をホールドし、その4クロック経過後にア
ドレス発生カウンタ603がダウンカウントするように
制御する。したがって、読み出しアドレス発生回路10
3からは、読み出しアドレスとして、図10(g)のよう
に、…2,3,4,5,4,5と増加して書き込み範囲
設定信号Hssがローレベルになった後も、4,5,4,
5と値が繰り返され、以降、2,3,2,3,…と減少
する。
The operation of FIG. 10 differs from that of FIG.
The first point is that the read direction control circuit 104 compares the write end address one scanning period ago with the current read address, and when the two addresses match, the read address generation circuit 10 is further operated for four clock periods.
The operation of the address generation counter 603 constituting No. 3 is stopped, its output is held, and after the elapse of four clocks, the address generation counter 603 is controlled to count down. Therefore, the read address generation circuit 10
3, the read address is increased to 2, 3, 4, 5, 4, 5 as shown in FIG. 10 (g), and the write range setting signal Hss becomes 4, 5 , 4,
The value is repeated as 5, and thereafter, decreases as 2, 3, 2, 3,.

【0090】第2点として、定数発生回路108は、読
み出し方向制御回路104からの制御信号と書き込み範
囲設定回路105からの書き込み範囲設定信号Hssの論
理和に基づいて、読み出しアドレス発生回路103を構
成するアドレス発生カウンタ603がホールド動作を開
始するまで(換言すると、書き込み範囲設定信号Hss
のハイレベルの期間)は定数k=0を、ホールド状態以
降は定数k=1/4を出力する。
As a second point, the constant generation circuit 108 configures the read address generation circuit 103 based on the logical sum of the control signal from the read direction control circuit 104 and the write range setting signal Hss from the write range setting circuit 105. Until the address generation counter 603 to start the hold operation (in other words, the write range setting signal Hss).
During the hold state, a constant k = 0 is output.

【0091】それ以外の動作については、前記(A)の図
6の場合と同一であるので、詳細な説明は省略する。
The other operations are the same as those in the case of FIG. 6 of (A), and a detailed description will be omitted.

【0092】したがって、補間演算回路107の出力信
号S2は、図10(k)のようになる。
Accordingly, the output signal S2 of the interpolation operation circuit 107 is as shown in FIG.

【0093】そして、この色差信号S2は、図示しない
後段の処理回路において、同図(m)に示すような色差信
号抽出パルスによって、4画素単位で抽出される。
Then, the color difference signal S2 is extracted in four-pixel units by a color difference signal extraction pulse as shown in FIG.

【0094】したがって、補間演算回路107で得られ
る出力色差信号S2を、ミラー処理後の輝度信号S4と
比較すると、図11に示すようになる。
Therefore, when the output chrominance signal S2 obtained by the interpolation operation circuit 107 is compared with the luminance signal S4 after the mirror processing, the result is as shown in FIG.

【0095】すなわち、輝度信号S4は、従来と同様、
同図(d)のようにミラー処理された出力が得られる。こ
れに対して、色差信号S2は、同図(e),(f)に示すよう
に、折り返し位置PCよりも左側では、輝度信号Y0の
位置に対応して色差信号Cr0とCb0が、輝度信号Y4
の位置に対応して色差信号Cr4とCb4とが、輝度信号
Y8の位置に対応して色差信号Cr8とCb8とがそれぞ
れ抽出され、また、折り返し位置PBよりも右側では、
輝度信号と色差信号の4:1:1のサンプリング周波数
比率を保つために、輝度信号Y7の位置に対応して、色
差信号(3Cr8+Cr4)/4と(3Cb8+Cb4)/4と
が、輝度信号Y3の位置に対応して色差信号(3Cr4+
Cr0)/4と(3Cb4+Cb0)/4とがそれぞれ抽出さ
れる。
That is, the luminance signal S4 is, as in the prior art,
An output that has undergone mirror processing is obtained as shown in FIG. In contrast, the color difference signal S2, FIG. (E), (f), the at the left side than the folded position P C, the color difference signals Cr0 and Cb0 to correspond to the position of the luminance signal Y0, luminance Signal Y4
Color difference signals Cr4 corresponding to the position of the and Cb4 are extracted respectively and the color difference signals Cr8 and Cb8 corresponding to the positions of the luminance signal Y8, also in the right side of the turn-back position P B,
In order to maintain the 4: 1: 1 sampling frequency ratio between the luminance signal and the chrominance signal, the chrominance signals (3Cr8 + Cr4) / 4 and (3Cb8 + Cb4) / 4 correspond to the position of the luminance signal Y7. The color difference signal (3Cr4 +
(Cr0) / 4 and (3Cb4 + Cb0) / 4 are extracted.

【0096】したがって、色差信号S2については、折
り返し位置PCを中心としたとき、輝度信号S4のよう
に完全に左右対称ではないものの、その折り返し位置P
Cの極近傍のもの(ここでは輝度信号Y8に対応するCr
8とCb8の色差成分のもの)を除いて、左右に略同じ画
素数だけ離れた位置に略同じ色差成分をもつ信号が配置
されることになる。
[0096] Therefore, for the color difference signal S2, when the center of the turn-back position P C, although not completely symmetrical as luminance signals S4, the return position P
In the immediate vicinity of C (here, Cr corresponding to the luminance signal Y8)
8 and Cb8), signals having substantially the same color difference components are arranged at positions separated by substantially the same number of pixels on the left and right.

【0097】しかも、この色差信号S2は、ミラー画像
の右半部のCr画素の位置には全てCrの信号が、Cb画
素の位置には全てCbの信号が出力されるため、右半部
の色反転のない、そして出力輝度信号に対して色ずれの
ない正常なミラー画像が出力される。
Further, since the color difference signal S2 outputs all the signals of Cr at the position of the Cr pixel in the right half of the mirror image, and outputs all the signals of Cb at the position of the Cb pixel, the color difference signal S2 has the right half. A normal mirror image with no color inversion and no color shift with respect to the output luminance signal is output.

【0098】(D) ミラー画像の折り返し位置がPD
すなわちミラー画像の左半部の輝度信号の画素数が4n
+3(n=0,1,2,3,…)となるようなミラー処理
を行う場合 ここでは、理解を容易にするために、n=2、つまりミ
ラー画像の左半部の輝度信号の画素数が11(=4×2
+3)画素と仮定して動作を説明する。
(D) The turning position of the mirror image is P D ,
That is, the number of pixels of the luminance signal in the left half of the mirror image is 4n.
+3 (n = 0, 1, 2, 3,...) In this case, in order to facilitate understanding, in order to facilitate understanding, n = 2, that is, the pixel of the luminance signal in the left half of the mirror image The number is 11 (= 4 × 2
+3) The operation will be described assuming a pixel.

【0099】図12は、ミラー処理を行う際の各々の回
路の動作を説明するためのタイミングチャートである。
FIG. 12 is a timing chart for explaining the operation of each circuit when performing the mirror processing.

【0100】図12の動作が図6の場合と異なるのは、
定数発生回路108は、読み出し方向制御回路104か
らの制御信号と書き込み範囲設定回路105からの書き
込み範囲設定信号Hssの論理和に基づいて、読み出しア
ドレス発生回路103を構成するアドレス発生カウンタ
603がダウンカウント動作を開始するまで(換言する
と、書き込み範囲設定信号Hssのハイレベルの期間)は
定数k=0を、ダウンカウントを開始したとき以降は定
数k=3/4を出力する。
The operation of FIG. 12 differs from that of FIG.
The constant generation circuit 108 counts down the address generation counter 603 constituting the read address generation circuit 103 based on the logical sum of the control signal from the read direction control circuit 104 and the write range setting signal Hss from the write range setting circuit 105. Until the operation is started (in other words, the period during which the write range setting signal Hss is at the high level), the constant k = 0 is output, and after the countdown is started, the constant k = 3/4 is output.

【0101】それ以外の動作については、前記(A)の図
6の場合と同一であるので、詳細な説明は省略する。
The other operations are the same as those in the case of FIG. 6 of (A), and a detailed description thereof will be omitted.

【0102】したがって、補間演算回路107の出力信
号S2は、図10(k)のようになる。
Therefore, the output signal S2 of the interpolation operation circuit 107 is as shown in FIG.

【0103】そして、この色差信号S2は、図示しない
後段の処理回路において、同図(m)に示すような色差信
号抽出パルスによって、4画素単位で抽出される。
Then, the color difference signal S2 is extracted by a color difference signal extraction pulse as shown in FIG. 7 (m) in units of four pixels in a subsequent processing circuit (not shown).

【0104】したがって、補間演算回路107で得られ
る出力色差信号S2を、ミラー処理後の輝度信号S4と
比較すると、図13に示すようになる。
Therefore, when the output chrominance signal S2 obtained by the interpolation operation circuit 107 is compared with the luminance signal S4 after the mirror processing, the result is as shown in FIG.

【0105】すなわち、輝度信号S4は、従来と同様、
同図(d)のようにミラー処理された出力が得られる。こ
れに対して、色差信号S2は、同図(e),(f)に示すよう
に、折り返し位置PDよりも左側では、輝度信号Y0の
位置に対応して色差信号Cr0とCb0が、輝度信号Y4
の位置に対応して色差信号Cr4とCb4とが、輝度信号
Y8の位置に対応して色差信号Cr8とCb8とがそれぞ
れ抽出され、また、折り返し位置PDよりも右側では、
輝度信号と色差信号の4:1:1のサンプリング周波数
比率を保つために、輝度信号Y9の位置に対応して、色
差信号(Cr12+3Cr8)/4と(Cb12+Cb8)/4
とが、輝度信号Y5の位置に対応して色差信号(Cr8+
3Cr4)/4と(Cb8+3Cb4)/4とがそれぞれ抽出
される。
That is, the luminance signal S4 is, as in the prior art,
An output that has undergone mirror processing is obtained as shown in FIG. In contrast, the color difference signal S2, FIG. (E), (f), the at the left side than the folded position P D, the color difference signals Cr0 and Cb0 to correspond to the position of the luminance signal Y0, luminance Signal Y4
Color difference signals Cr4 corresponding to the position of the and Cb4 are extracted respectively and the color difference signals Cr8 and Cb8 corresponding to the positions of the luminance signal Y8, also in the right side of the turn-back position P D,
In order to maintain a 4: 1: 1 sampling frequency ratio between the luminance signal and the chrominance signal, the chrominance signals (Cr12 + 3Cr8) / 4 and (Cb12 + Cb8) / 4 correspond to the position of the luminance signal Y9.
Corresponds to the position of the luminance signal Y5 and the color difference signal (Cr8 +
3Cr4) / 4 and (Cb8 + 3Cb4) / 4 are extracted.

【0106】したがって、色差信号S2については、折
り返し位置PDを中心としたとき、輝度信号S4のよう
に完全に左右対称ではないものの、左右に略同じ画素数
だけ離れた位置に略同じ色差成分をもつ信号が配置され
ることになる。
Therefore, the color difference signal S2 is not completely symmetrical with respect to the folded position P D as in the luminance signal S4, but has substantially the same color difference components at positions separated by substantially the same number of pixels on the left and right, as with the luminance signal S4. Will be arranged.

【0107】しかも、この色差信号S2は、ミラー画像
の右半部のCr画素の位置には全てCrの信号が、Cb画
素の位置には全てCbの信号が出力されるため、右半部
の色反転のない、そして出力輝度信号S2に対して色ず
れのない正常なミラー画像が出力される。
Further, since the color difference signal S2 outputs all the Cr signals at the position of the Cr pixel in the right half of the mirror image and outputs all the Cb signals at the position of the Cb pixel, the color difference signal S2 A normal mirror image without color inversion and without color shift with respect to the output luminance signal S2 is output.

【0108】以上の(A)〜(D)の各動作説明から分かる
ように、ミラー画像左半部の輝度信号の画素数が(A)〜
(D)のいかなる場合でも、言い換えると、折り返し開始
位置を任意に設定した場合でも、色差信号に対して正常
なミラー画像を得ることができる。さらに、ミラー処理
を行うために必要なラインメモリの記憶容量は、従来の
ミラー処理を行う画像処理装置の半分で済む。
As can be seen from the above description of each of the operations (A) to (D), the number of pixels of the luminance signal in the left half of the mirror image is (A) to (D).
In any case of (D), in other words, even when the folding start position is set arbitrarily, a normal mirror image can be obtained for the color difference signal. Further, the storage capacity of the line memory required for performing the mirror processing is half that of the conventional image processing apparatus that performs the mirror processing.

【0109】なお、この実施形態の補間演算回路107
は、図4に示したように、2つの乗算器702a,70
2bを使用しているが、図14に示すように、これらの
各乗算器702a,702bに代えて、6つのビットシフ
タ1401a〜1401f、2つの加算器1402a,1
402b、および2つのセレクタ1403a,1403b
を使用し、定数発生回路108からの制御信号によっ
て、上記の各(A)〜(D)の場合に応じて、セレクタ14
03a,1403bの出力を切り換えるように構成するこ
ともできる。
The interpolation operation circuit 107 of this embodiment
Are the two multipliers 702a and 702a as shown in FIG.
14B, six bit shifters 1401a to 1401f and two adders 1402a, 1 are used instead of the multipliers 702a, 702b as shown in FIG.
402b and two selectors 1403a, 1403b
And a selector 14 according to a control signal from the constant generation circuit 108 in accordance with each of the above cases (A) to (D).
It is also possible to configure so as to switch the outputs 03a and 1403b.

【0110】図14に示す構成では、デジタル的な乗算
を行う必要がないため、回路規模が削減できる。
In the configuration shown in FIG. 14, since it is not necessary to perform digital multiplication, the circuit scale can be reduced.

【0111】また、図1に示した補間演算回路107で
行う補間演算方法として、線形補間法を用いているが、
これに限定されるものではなく、たとえば、3次畳み込
み内挿法などを用いても良いことは勿論である。
The linear interpolation method is used as the interpolation calculation method performed by the interpolation calculation circuit 107 shown in FIG.
The present invention is not limited to this. For example, a cubic convolution interpolation method may be used.

【0112】[0112]

【発明の効果】本発明に係る画像処理装置は、ミラー処
理の折り返し位置に応じて、4:1:1信号を構成する
色差信号を読み出す際の読み出し制御、および読み出さ
れたデータに対する補間演算を行うため、折り返し位置
を任意に設定できるとともに、折り返し位置を中心とし
た左右の色が反転しない正常なミラー画像を出力するこ
とができる。さらに、ミラー処理を行うために必要なラ
インメモリの記憶容量は、従来の画像処理装置の半分で
済む。
According to the image processing apparatus of the present invention, read control for reading out a color difference signal constituting a 4: 1: 1 signal in accordance with the turn-back position of mirror processing, and interpolation calculation for the read data are performed. Therefore, the turning position can be set arbitrarily, and a normal mirror image in which the left and right colors around the turning position are not inverted can be output. Further, the storage capacity of the line memory required for performing the mirror processing is half that of the conventional image processing apparatus.

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

【図1】本発明の実施の形態における画像処理装置のブ
ロック図
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention.

【図2】図1の画像処理装置における書き込みアドレス
発生回路のブロック図
FIG. 2 is a block diagram of a write address generation circuit in the image processing apparatus of FIG. 1;

【図3】図1の画像処理装置における読み出しアドレス
発生回路のブロック図
FIG. 3 is a block diagram of a read address generation circuit in the image processing apparatus of FIG. 1;

【図4】図1の画像処理装置における補間演算回路のブ
ロック図
FIG. 4 is a block diagram of an interpolation operation circuit in the image processing apparatus of FIG. 1;

【図5】図2の書き込みアドレス発生回路の動作タイミ
ングを説明するためのタイミングチャート
FIG. 5 is a timing chart for explaining operation timing of the write address generation circuit of FIG. 2;

【図6】図1の画像処理装置において、折り返し位置を
Aに設定した場合のミラー処理動作の説明に供するタ
イミングチャート
The image processing apparatus 6 1, a timing chart for the folded position to the description of the mirroring operation when set to P A

【図7】図6のタイミングチャートに基づくミラー処理
結果を示す模式図
FIG. 7 is a schematic diagram showing a mirror processing result based on the timing chart of FIG. 6;

【図8】図1の画像処理装置において、折り返し位置を
Bに設定した場合のミラー処理動作の説明に供するタ
イミングチャート
The image processing apparatus 8 Figure 1, a timing chart for the folded position to the description of the mirroring operation when set to P B

【図9】図8のタイミングチャートに基づくミラー処理
結果を示す模式図
FIG. 9 is a schematic diagram showing a mirror processing result based on the timing chart of FIG. 8;

【図10】図1の画像処理装置において、折り返し位置
をPCに設定した場合のミラー処理動作の説明に供する
タイミングチャート
The image processing apparatus 10 is a diagram 1, a timing chart for the folded position to the description of the mirroring operation when set to P C

【図11】図10のタイミングチャートに基づくミラー
処理結果を示す模式図
FIG. 11 is a schematic diagram showing a mirror processing result based on the timing chart of FIG. 10;

【図12】図1の画像処理装置において、折り返し位置
をPDに設定した場合のミラー処理動作の説明に供する
タイミングチャート
[12] The image processing apparatus of FIG. 1, a timing chart for the folded position to the description of the mirroring operation when set to P D

【図13】図12のタイミングチャートに基づくミラー
処理結果を示す模式図
FIG. 13 is a schematic diagram showing a mirror processing result based on the timing chart of FIG.

【図14】補間演算回路の他の構成例を表すブロック図FIG. 14 is a block diagram illustrating another configuration example of the interpolation operation circuit.

【図15】ミラー処理前後の画像を示す説明図FIG. 15 is an explanatory diagram showing images before and after a mirror process.

【図16】従来の画像処理装置の要部構成を示すブロッ
ク図
And FIG. 16 is a block diagram showing a main configuration of a conventional image processing apparatus.

【図17】従来の画像処理装置における4:1:1コン
ポーネント信号を表す模式図
FIG. 17 is a schematic diagram illustrating a 4: 1: 1 component signal in a conventional image processing apparatus.

【図18】従来の画像処理装置におけるラインメモリに
対する書き込み、読み出し動作を説明するための説明図
FIG. 18 is an explanatory diagram for explaining a write operation and a read operation for a line memory in a conventional image processing apparatus.

【図19】従来の画像処理装置におけるミラー処理の動
作説明に供するタイミングチャート
FIG. 19 is a timing chart for explaining an operation of mirror processing in a conventional image processing apparatus.

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

99,100…ミラー処理回路、101…ラインメモ
リ、102…書き込みアドレス発生回路、103…読み
出しアドレス発生回路、104…読み出し方向制御回
路、105…書き込み範囲設定回路、106…読み出し
範囲設定回路、107…補間演算回路、108…定数発
生回路。
99, 100: mirror processing circuit, 101: line memory, 102: write address generation circuit, 103: read address generation circuit, 104: read direction control circuit, 105: write range setting circuit, 106: read range setting circuit, 107 ... Interpolation calculation circuit, 108: constant generation circuit.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力される4:1:1信号についてミラ
ー処理を行う画像処理装置であって、 4:1:1信号を構成する輝度信号と色差信号とについ
てそれぞれ個別にミラー処理を行うミラー処理回路を有
しており、 前記色差信号にミラー処理を行うミラー処理回路は、入
力される色差信号を記憶する記憶手段と、色差信号を配
分するための定数を発生させる定数発生手段と、前記色
差信号に対して前記定数発生手段が発生する定数に応じ
た補間演算を行う補間演算手段と、前記記憶手段に対す
る書き込みアドレスを発生させる書き込みアドレス発生
手段と、前記記憶手段に対する読み出しアドレスを発生
させる読み出しアドレス発生手段と、前記記憶手段に記
憶させる色差信号の書き込み範囲の設定を行う書き込み
範囲設定手段と、前記読み出しアドレス発生手段の発生
するアドレスの増減を制御する読み出し方向制御手段と
を備えており、 前記定数発生手段は、前記記憶手段に記憶させる入力映
像信号の範囲と前記読み出し方向制御回路の前記読み出
しアドレス発生手段に対するアドレス増減制御に応じて
定数を発生させることを特徴とした画像処理装置。
1. An image processing apparatus for performing a mirror process on an input 4: 1: 1 signal, wherein the mirror process individually performs a mirror process on a luminance signal and a color difference signal constituting the 4: 1: 1 signal. A mirror processing circuit that performs a mirror process on the color difference signal, a storage unit that stores an input color difference signal, a constant generation unit that generates a constant for distributing the color difference signal, Interpolation calculating means for performing an interpolation calculation on the color difference signal according to the constant generated by the constant generating means, write address generating means for generating a write address for the storage means, and reading for generating a read address for the storage means Address generation means, writing range setting means for setting a writing range of a color difference signal to be stored in the storage means, Reading direction control means for controlling an increase or decrease of an address generated by the output address generating means, wherein the constant generating means comprises: a range of an input video signal to be stored in the storage means; and the read address of the read direction control circuit. An image processing apparatus for generating a constant in accordance with an address increase / decrease control for a generation unit.
【請求項2】 前記書き込みアドレス発生手段および読
み出しアドレス発生手段が発生するアドレスは、一定周
期で増減を繰り返すことを特徴とする請求項1記載の画
像処理装置。
2. An image processing apparatus according to claim 1, wherein the addresses generated by said write address generation means and read address generation means repeat increasing and decreasing at a constant cycle.
【請求項3】 前記定数発生手段が発生する定数は、
0,1/4,3/4であることを特徴とする請求項2記
載の画像処理装置。
3. A constant generated by the constant generating means,
3. The image processing apparatus according to claim 2, wherein the image processing is 0, 1/4, 3/4.
JP11102294A 1999-04-09 1999-04-09 Image processor Pending JP2000295634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11102294A JP2000295634A (en) 1999-04-09 1999-04-09 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11102294A JP2000295634A (en) 1999-04-09 1999-04-09 Image processor

Publications (1)

Publication Number Publication Date
JP2000295634A true JP2000295634A (en) 2000-10-20

Family

ID=14323605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11102294A Pending JP2000295634A (en) 1999-04-09 1999-04-09 Image processor

Country Status (1)

Country Link
JP (1) JP2000295634A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7859584B2 (en) 2007-05-28 2010-12-28 Panasonic Corporation Camera system
JP2014007529A (en) * 2012-06-22 2014-01-16 Canon Inc Image processor and method for the same and computer program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7859584B2 (en) 2007-05-28 2010-12-28 Panasonic Corporation Camera system
JP2014007529A (en) * 2012-06-22 2014-01-16 Canon Inc Image processor and method for the same and computer program

Similar Documents

Publication Publication Date Title
JP2652402B2 (en) Enlarged video image generation circuit
US4792856A (en) Sampled data memory system as for a television picture magnification system
JP2004040260A (en) Pixel block data generator and pixel block data generating method
EP0719041B1 (en) Video signal format conversion apparatus
US6404458B1 (en) Apparatus for converting screen aspect ratio
JP2000295634A (en) Image processor
JPH07236117A (en) Picture processor
US4542402A (en) Digital color matrix for a digital television receiver
JP4097885B2 (en) Multi-screen display controller
JP2002101376A (en) Line memory
JPS5844862A (en) Specially effecting device
JP3415649B2 (en) Signal generation circuit
JP3709585B2 (en) Video printer and interpolation processing method
KR100510460B1 (en) Zoom processing device and method
JPH04330490A (en) Image display device
JP3648923B2 (en) Color video signal processing device
JPH08331580A (en) Image processor
JP3384008B2 (en) Image memory processing device
JPH02244987A (en) Additional information storing processor for video data
JPH0282791A (en) Video signal processor
JP2005130350A (en) Image processing device, method and image display unit therefor
JPH06113260A (en) Noise reduction and time axis correction device
JPH04145785A (en) Double-speed conversion circuit
JPS62145599A (en) Variable step shift register
JPH07288710A (en) Horizontal direction enlargement circuit for video signal

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080621

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090621

Year of fee payment: 7

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

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20090621

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

Free format text: PAYMENT UNTIL: 20100621

Year of fee payment: 8

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

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20110621

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

Free format text: PAYMENT UNTIL: 20120621

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120621

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130621

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees