[go: up one dir, main page]

CN102547309A - Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS) - Google Patents

Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS) Download PDF

Info

Publication number
CN102547309A
CN102547309A CN2011103787015A CN201110378701A CN102547309A CN 102547309 A CN102547309 A CN 102547309A CN 2011103787015 A CN2011103787015 A CN 2011103787015A CN 201110378701 A CN201110378701 A CN 201110378701A CN 102547309 A CN102547309 A CN 102547309A
Authority
CN
China
Prior art keywords
frequency offset
cvbs
correlation factor
signal
relationship
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011103787015A
Other languages
Chinese (zh)
Other versions
CN102547309B (en
Inventor
沈操
李蒙
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.)
Solomon Systech Shenzhen Ltd
Original Assignee
SUZHOU XITU SHIDING MICROELECTRONICS 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 SUZHOU XITU SHIDING MICROELECTRONICS CO Ltd filed Critical SUZHOU XITU SHIDING MICROELECTRONICS CO Ltd
Priority to CN 201110378701 priority Critical patent/CN102547309B/en
Publication of CN102547309A publication Critical patent/CN102547309A/en
Application granted granted Critical
Publication of CN102547309B publication Critical patent/CN102547309B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

本发明提供了一种CVBS信号频率偏移的检测计算方法,其包括以下步骤:S1、采集若干已知频率偏移的CVBS信号;S2、计算每个CVBS信号相应的相关因子;S3、得到相关因子和频率偏移的关系,所述关系为表格或者解析表达式;S4、对于新输入的频率偏移未知的CVBS信号,计算其相关因子,根据步骤S3得到的相关因子和频率偏移的关系,计算求得其频率偏移。本发明CVBS信号频率偏移的检测计算方法及装置不需要外部的参考频率,而只利用本信号内部的行与行之间的关系来推导其频率偏移,从而通过校正获得正确的或更好质量的图像。

Figure 201110378701

The invention provides a method for detecting and calculating the frequency offset of a CVBS signal, which includes the following steps: S1, collecting several CVBS signals with known frequency offsets; S2, calculating the corresponding correlation factor of each CVBS signal; S3, obtaining the correlation The relationship between the factor and the frequency offset, the relationship is a table or an analytical expression; S4, for the unknown CVBS signal of the newly input frequency offset, calculate its correlation factor, according to the relationship between the correlation factor and the frequency offset obtained in step S3 , calculate its frequency offset. The detection and calculation method and device of the CVBS signal frequency offset of the present invention do not need an external reference frequency, but only use the relationship between the lines inside the signal to derive its frequency offset, so as to obtain the correct or better frequency offset through correction. quality images.

Figure 201110378701

Description

CVBS信号频率偏移的检测计算方法及装置Method and device for detecting and calculating CVBS signal frequency offset

技术领域 technical field

本发明涉及图像处理技术领域,尤其涉及一种CVBS信号频率偏移的检测计算方法及装置。The invention relates to the technical field of image processing, in particular to a method and device for detecting and calculating a CVBS signal frequency offset.

背景技术 Background technique

CVBS(Composite Video Broadcast Signal或Composite Video Blanking andSync)为复合视频广播信号或复合视频消隐和同步,它是一个模拟电视节目(图片)信号在与声音信号结合,并调制到射频载波之前的一种格式。CVBS是被广泛使用的标准,也叫做基带视频或RCA视频,是(美国)国家电视标准委员会(NTSC)电视信号的传统图像数据传输方法,它以模拟波形来传输数据。复合视频包含色差(色调和饱和度)和亮度(光亮)信息,并将它们同步在消隐脉冲中,用同一信号传输。CVBS (Composite Video Broadcast Signal or Composite Video Blanking and Sync) is a composite video broadcast signal or composite video blanking and synchronization. It is an analog TV program (picture) signal before it is combined with a sound signal and modulated to a radio frequency carrier. Format. CVBS is a widely used standard, also known as baseband video or RCA video, which is the traditional image data transmission method of (USA) National Television Standards Committee (NTSC) TV signal, which transmits data in analog waveform. Composite video contains color difference (hue and saturation) and luminance (brightness) information and synchronizes them in pedestal pulses and transmits them on the same signal.

CVBS信号的计算公式为CVBS=Luma+Chroma,Luma是亮度载波,Chroma是颜色载波。而颜色载波Chroma  的计算公式为Chroma=u*sin(2πft)+v*cos(2πft),其中f是颜色载波的频率。标准的PAL制电视的颜色载波频率为4.43361875MHz,标准NTSC制电视的颜色载波频率为3.579545MHz。但在实际情况中,这个频率是会有偏移的,频率偏移基本发生在图像信号的发射端。或者对于非标准信号,这个频率也会有偏移的,为了校正CVBS信号,就必须知道频率偏移的大小,但现有技术中无法检测出频率偏移的大小。The calculation formula of the CVBS signal is CVBS=Luma+Chroma, where Luma is the brightness carrier and Chroma is the color carrier. The calculation formula of the color carrier Chroma is Chroma=u*sin(2πft)+v*cos(2πft), where f is the frequency of the color carrier. The color carrier frequency of standard PAL TV is 4.43361875MHz, and the color carrier frequency of standard NTSC TV is 3.579545MHz. But in actual situations, this frequency will be shifted, and the frequency shift basically occurs at the transmitting end of the image signal. Or for non-standard signals, the frequency will also have an offset. In order to correct the CVBS signal, the magnitude of the frequency offset must be known, but the magnitude of the frequency offset cannot be detected in the prior art.

有鉴于此,有必要提出了一种CVBS信号频率偏移的检测计算方法及装置。In view of this, it is necessary to propose a method and device for detecting and calculating the frequency offset of a CVBS signal.

发明内容 Contents of the invention

本发明的目的在于提供一种CVBS信号频率偏移的检测计算方法及装置。The object of the present invention is to provide a method and device for detecting and calculating the frequency offset of a CVBS signal.

本发明的一种CVBS信号频率偏移的检测计算方法,所述方法包括以下步骤:A kind of detection calculation method of CVBS signal frequency offset of the present invention, described method comprises the following steps:

S1、采集若干已知频率偏移的CVBS信号;S1. Collect several CVBS signals with known frequency offsets;

S2、计算每个CVBS信号相应的相关因子;S2. Calculating a corresponding correlation factor for each CVBS signal;

S3、得到相关因子和频率偏移的关系,所述关系为表格或者解析表达式;S3. Obtain the relationship between the correlation factor and the frequency offset, where the relationship is a table or an analytical expression;

S4、对于新输入的频率偏移未知的CVBS信号,计算其相关因子,根据步骤S3得到的相关因子和频率偏移的关系,计算求得其频率偏移。S4. For the newly input CVBS signal whose frequency offset is unknown, calculate its correlation factor, and calculate and obtain its frequency offset according to the relationship between the correlation factor and frequency offset obtained in step S3.

作为本发明的进一步改进,所述步骤S2具体为:As a further improvement of the present invention, the step S2 is specifically:

S211、取上一行的burst处的CVBS图像复合信号集合;S211. Take the CVBS image composite signal set at the burst of the previous row;

S212、取当前行的burst处的CVBS图像复合信号集合;S212. Get the CVBS image composite signal set at the burst of the current row;

S213、对步骤S212中所取的信号点作希尔伯特滤波;S213. Perform Hilbert filtering on the signal points obtained in step S212;

S214、将步骤S213的结果和步骤S211中的信号点集合的每一个信号点相对应的一一做乘法;S214. Multiply the result of step S213 and each signal point corresponding to the signal point set in step S211;

S215、把步骤S214的结果求和。S215. Sum the results of step S214.

作为本发明的进一步改进,所述步骤S2具体为:As a further improvement of the present invention, the step S2 is specifically:

S221、取当前行的burst处的CVBS图像复合信号集合;S221. Get the CVBS image composite signal set at the burst of the current line;

S222、取下一行的burst处的CVBS图像复合信号集合;S222. Take the CVBS image composite signal set at the burst of the next row;

S223、对步骤S222中所取的信号点作希尔伯特滤波;S223. Perform Hilbert filtering on the signal points obtained in step S222;

S224、将步骤S223的结果和步骤S221中的信号点集合的每一个信号点相对应的一一做乘法;S224. Multiply the result of step S223 and each signal point corresponding to the signal point set in step S221;

S225、把步骤S224的结果求和。S225. Sum the results of step S224.

作为本发明的进一步改进,所述相关因子correlation_factor通过 correlation _ factor = Σ i = 1 M top _ line _ burst ( i ) * HilbertFiltering ( cur _ line _ burst ( i ) ) 计算得到,i为采样点坐标,M为burst的采样点个数,HilbertFiltering指进行希尔伯特滤波。As a further improvement of the present invention, the correlation factor correlation_factor is passed correlation _ factor = Σ i = 1 m top _ line _ burst ( i ) * Hilbert Filtering ( cur _ line _ burst ( i ) ) Calculated, i is the coordinate of the sampling point, M is the number of sampling points of the burst, and HilbertFiltering refers to Hilbert filtering.

作为本发明的进一步改进,所述步骤S4包括:As a further improvement of the present invention, the step S4 includes:

S411、以相关因子为x,频率偏移为y,得到一张表格(x[i],y[i]),其中i是已知频率偏移的CVBS信号的个数;S411, with the correlation factor as x and the frequency offset as y, a table (x[i], y[i]) is obtained, where i is the number of CVBS signals with known frequency offset;

S412、通过步骤S411中的表格,求解相应的频率偏移大小。S412. Solve the corresponding frequency offset according to the table in step S411.

作为本发明的进一步改进,所述步骤S4包括为:As a further improvement of the present invention, the step S4 includes:

S421、以相关因子为x,频率偏移为y,拟合出一条连续的直线或曲线,得到关于x和y的解析表达式;S421. Using the correlation factor as x and the frequency offset as y, fit a continuous straight line or curve to obtain analytical expressions for x and y;

S422、通过步骤S421中的解析表达式,求解相应的频率偏移大小。S422. Calculate the corresponding frequency offset by using the analytical expression in step S421.

作为本发明的进一步改进,所述x和y的解析表达式为y关于x的一次函数关系或二次函数关系或更高次函数关系。As a further improvement of the present invention, the analytical expressions of x and y are a linear functional relationship or a quadratic functional relationship or a higher functional relationship of y with respect to x.

作为本发明的进一步改进,所述步骤S4还包括为:As a further improvement of the present invention, the step S4 also includes:

对于新输入的频率偏移未知的CVBS信号,计算得到相关因子x;For a new input CVBS signal whose frequency offset is unknown, the correlation factor x is calculated;

相关因子x落在x[i]和x[i+1]之间,查表得到相关因子为x[i]和x[i+1]所对应的频率偏移y[i]和y[i+1]的大小;The correlation factor x falls between x[i] and x[i+1], look up the table to get the frequency offsets y[i] and y[i corresponding to the correlation factors x[i] and x[i+1] +1] the size of;

根据公式

Figure BDA0000112059220000031
求出相关因子x对应的频率偏移y的大小。According to the formula
Figure BDA0000112059220000031
Calculate the magnitude of the frequency offset y corresponding to the correlation factor x.

作为本发明的进一步改进,所述步骤S4还包括为:As a further improvement of the present invention, the step S4 also includes:

对于新输入的频率偏移未知的CVBS信号,计算得到相关因子x;For a new input CVBS signal whose frequency offset is unknown, the correlation factor x is calculated;

将相关因子x代入求解得到的x与y的解析表达式中,求出相关因子x对应的频率偏移y的大小。Substitute the correlation factor x into the analytical expressions of x and y obtained from the solution, and obtain the magnitude of the frequency offset y corresponding to the correlation factor x.

相应地,一种CVBS信号频率偏移的检测计算装置,所述装置包括:Correspondingly, a detection calculation device of a CVBS signal frequency offset, the device includes:

用于采集若干已知频率偏移的CVBS信号的单元;A unit for acquiring several CVBS signals at known frequency offsets;

用于计算每个CVBS信号相应的相关因子的单元;A unit for calculating a corresponding correlation factor for each CVBS signal;

用于得到相关因子和频率偏移的关系的单元,所述关系为表格或者解析表达式;A unit for obtaining a relationship between a correlation factor and a frequency offset, the relationship being a table or an analytical expression;

用于对于新输入的频率偏移未知的CVBS信号,计算其相关因子,根据步骤S3得到的相关因子和频率偏移的关系,计算求得其频率偏移的单元。A unit for calculating the correlation factor of the newly input CVBS signal whose frequency offset is unknown, and calculating the frequency offset according to the relationship between the correlation factor and the frequency offset obtained in step S3.

本发明的有益效果是:本发明不需要外部的参考频率,而只利用本信号内部的行与行之间的关系来推导其频率偏移,从而通过校正获得正确的或更好质量的图像。The beneficial effects of the present invention are: the present invention does not need an external reference frequency, but only uses the relationship between lines within the signal to derive its frequency offset, thereby obtaining correct or better quality images through correction.

附图说明 Description of drawings

图1为本发明一实施方式中CVBS信号频率偏移的检测方法流程图。FIG. 1 is a flowchart of a method for detecting a frequency offset of a CVBS signal in an embodiment of the present invention.

图2为本发明中一个CVBS波形信号示意图。Fig. 2 is a schematic diagram of a CVBS waveform signal in the present invention.

图3为本发明中没有频率偏移情况下,当前行和上一行的相位关系示意图。Fig. 3 is a schematic diagram of the phase relationship between the current line and the previous line in the case of no frequency offset in the present invention.

图4为本发明中有频率偏移情况下,当前行和上一行的相位关系示意图。Fig. 4 is a schematic diagram of the phase relationship between the current line and the previous line in the case of frequency offset in the present invention.

图5为本发明中相关因子和频率偏移的关系示意图。Fig. 5 is a schematic diagram of the relationship between the correlation factor and the frequency offset in the present invention.

图6为本发明CVBS信号频率偏移的检测方法一实施方式中相关因子计算流程图。FIG. 6 is a flow chart of correlation factor calculation in an embodiment of a method for detecting a frequency offset of a CVBS signal according to the present invention.

图7为本发明CVBS信号频率偏移的检测方法另一实施方式中相关因子计算流程图。FIG. 7 is a flow chart of correlation factor calculation in another embodiment of the detection method of CVBS signal frequency offset according to the present invention.

图8为本发明CVBS信号频率偏移的检测方法一实施方式中频率偏移的大小计算流程图。FIG. 8 is a flow chart of frequency offset calculation in an embodiment of a method for detecting a frequency offset of a CVBS signal according to the present invention.

图9为本发明CVBS信号频率偏移的检测方法另一实施方式中频率偏移的大小计算流程图。FIG. 9 is a flow chart of frequency offset calculation in another embodiment of the method for detecting a frequency offset of a CVBS signal according to the present invention.

具体实施方式Detailed ways

以下将结合附图所示的各实施方式对本发明进行详细描述。但这些实施方式并不限制本发明,本领域的普通技术人员根据这些实施方式所做出的结构、方法、或功能上的变换均包含在本发明的保护范围内。The present invention will be described in detail below in conjunction with various embodiments shown in the drawings. However, these embodiments do not limit the present invention, and any structural, method, or functional changes made by those skilled in the art according to these embodiments are included in the protection scope of the present invention.

参图1所示为本发明一实施方式中CVBS信号频率偏移的检测计算方法流程图,该检测方法包括以下步骤Referring to Fig. 1, it is a flowchart of a method for detecting and calculating CVBS signal frequency offset in an embodiment of the present invention, the method for detecting includes the following steps

S1、采集若干已知频率偏移的CVBS信号。参图2所示为一个CVBS信号波形,优选地,采集CVBS信号关键频率偏移点的频率偏移可选择从[-2000,+2000]Hz,步长为100Hz或者更小;S1. Collect several CVBS signals with known frequency offsets. Referring to Figure 2, it is a CVBS signal waveform. Preferably, the frequency offset of the key frequency offset point of the CVBS signal can be selected from [-2000, +2000] Hz, and the step size is 100 Hz or less;

S2、计算每个CVBS信号相应的相关因子。参图3、图4所示分别为没有频率偏移和有频率偏移情况下当前行和上一行的相位关系,在没有偏移的情况下,当前行和上一行的相位正好是相反,也就是相位差为180度,而在有频率偏移的情况下,当前行和上一行的相位不为180度,发生了偏移。CVBS信号在其burst的地方,带有频率f的信息,获取每个CVBS信号在其burst的频率f,根据公式即可计算出每个频率f对应的相位

Figure BDA0000112059220000052
大小,从而将频率f的信息转化为相位
Figure BDA0000112059220000053
的信息。图3中在没有频率偏移的情况下,相关因子为0,图4中在有频率偏移的情况下,相关因子不为0,相关因子随着频率偏移的改变而改变,如果频率是正的偏移,则相关因子为正;如果频率是负的偏移,则相关因子为负,相关因子的正负不但和频率偏移的正负有关,而且,可以从相关因子的大小推断出频率偏移的大小;S2. Calculate the correlation factor corresponding to each CVBS signal. Refer to Figure 3 and Figure 4, which show the phase relationship between the current line and the previous line without frequency offset and frequency offset respectively. In the case of no offset, the phases of the current line and the previous line are just opposite, and also That is, the phase difference is 180 degrees, and in the case of a frequency offset, the phase of the current row and the previous row is not 180 degrees, and an offset has occurred. Where the CVBS signal is in its burst, it has the information of frequency f, and the frequency f of each CVBS signal in its burst is obtained, according to the formula The phase corresponding to each frequency f can be calculated
Figure BDA0000112059220000052
size, thus converting the information of the frequency f into the phase
Figure BDA0000112059220000053
Information. In the case of no frequency offset in Figure 3, the correlation factor is 0, and in the case of frequency offset in Figure 4, the correlation factor is not 0, and the correlation factor changes with the frequency offset. If the frequency is positive The correlation factor is positive; if the frequency is a negative offset, the correlation factor is negative. The positive or negative of the correlation factor is not only related to the positive or negative of the frequency offset, but also the frequency can be deduced from the magnitude of the correlation factor the size of the offset;

S3、得到相关因子和频率偏移的关系,所述关系为表格或者解析表达式。根据计算得到一条类似于图5所示的相关因子和频率偏移的关系图表,每一个关键频率偏移点对应一个关键相关因子,每一个关键相关因子也对应着一个关键频率偏移,所得到相关因子和频率偏移的关系可为表格或直线或曲线等;S3. Obtain the relationship between the correlation factor and the frequency offset, where the relationship is a table or an analytical expression. According to the calculation, a relationship chart of correlation factors and frequency offsets similar to that shown in Figure 5 is obtained. Each key frequency offset point corresponds to a key correlation factor, and each key correlation factor also corresponds to a key frequency offset. The obtained The relationship between the correlation factor and the frequency offset can be a table or a straight line or a curve, etc.;

S4、对于新输入的频率偏移未知的CVBS信号,计算其相关因子,根据步骤S3得到的相关因子和频率偏移的关系,计算求得其频率偏移。S4. For the newly input CVBS signal whose frequency offset is unknown, calculate its correlation factor, and calculate and obtain its frequency offset according to the relationship between the correlation factor and frequency offset obtained in step S3.

步骤S2中,相关因子correlation_factor可以通过公式 correlation _ factor = Σ i = 1 M top _ line _ burst ( i ) * HilbertFiltering ( cur _ line _ burst ( i ) ) 计算得到,其中i为采样点坐标,M为burst的采样点个数,HilbertFiltering指进行希尔伯特滤波。其中采样坐标可以采用当前行和上一行,也可以采用当前行和下一行。In step S2, the correlation factor correlation_factor can be obtained by the formula correlation _ factor = Σ i = 1 m top _ line _ burst ( i ) * Hilbert Filtering ( cur _ line _ burst ( i ) ) Calculated, where i is the coordinate of the sampling point, M is the number of sampling points of the burst, and HilbertFiltering refers to performing Hilbert filtering. The sampling coordinates can be the current line and the previous line, or the current line and the next line.

参图6所示,当采样坐标为当前行和上一行时,相关因子correlation_factor的计算步骤具体为:As shown in Figure 6, when the sampling coordinates are the current row and the previous row, the calculation steps of the correlation factor correlation_factor are as follows:

S211、上一行的burst处的CVBS图像复合信号集合(1,2,......M);S211, the CVBS image composite signal set (1, 2, ... M) at the burst of the previous line;

S212、取当前行的burst处的CVBS图像复合信号集合(1,2,......M);S212. Get the CVBS image composite signal set (1, 2, ... M) at the burst of the current row;

S213、对步骤S212中所取的信号点作希尔伯特滤波,其中,“希尔伯特滤波”的含义是指将信号的相位转向90度;S213. Perform Hilbert filtering on the signal points obtained in step S212, wherein the meaning of "Hilbert filtering" refers to turning the phase of the signal to 90 degrees;

S214、将步骤S213的结果和步骤S211中的信号点集合的每一个信号点相对应的一一做乘法;S214. Multiply the result of step S213 and each signal point corresponding to the signal point set in step S211;

S215、把步骤S214的结果求和。S215. Sum the results of step S214.

当采样坐标为当前行和下一行时,相关因子correlation_factor的计算步骤具体为:When the sampling coordinates are the current row and the next row, the calculation steps of the correlation factor correlation_factor are as follows:

S221、取当前行的burst处的CVBS图像复合信号集合(1,2,......M);S221. Get the CVBS image composite signal set (1, 2, ... M) at the burst of the current line;

S222、取下一行的burst处的CVBS图像复合信号集合(1,2,......M);S222. Take the CVBS image composite signal set (1, 2, ... M) at the burst of the next row;

S223、对步骤S222中所取的信号点作希尔伯特滤波,“希尔伯特滤波”的含义是指将信号的相位转向90度;S223, performing Hilbert filtering on the signal points taken in step S222, the meaning of "Hilbert filtering" refers to turning the phase of the signal to 90 degrees;

S224、将步骤S223的结果和步骤S221中的信号点集合的每一个信号点相对应的一一做乘法;S224. Multiply the result of step S223 and each signal point corresponding to the signal point set in step S221;

S225、把步骤S224的结果求和。S225. Sum the results of step S224.

在上述步骤S214和S224中,若相乘的结果为0,则表示无偏移,若相乘不为0,则表示有偏移。In the above steps S214 and S224, if the result of the multiplication is 0, it means that there is no offset, and if the result of the multiplication is not 0, it means that there is an offset.

步骤S4中,计算关键点频率偏移的大小可通过曲线拟合或插值两种方法求得。In step S4, the calculated key point frequency offset can be obtained by two methods of curve fitting or interpolation.

参图8所示,采用插值的方法包括以下步骤:As shown in Figure 8, the method of interpolation includes the following steps:

S411、以相关因子为x,频率偏移为y,得到一张表格(x[i],y[i]),其中i是已知频率偏移的CVBS信号的个数;S411, with the correlation factor as x and the frequency offset as y, a table (x[i], y[i]) is obtained, where i is the number of CVBS signals with known frequency offset;

S412、通过步骤S411中的表格,求解相应的频率偏移大小。S412. Solve the corresponding frequency offset according to the table in step S411.

计算未知CVBS信号的频率偏移步骤为:The steps to calculate the frequency offset of an unknown CVBS signal are:

对于新输入的频率偏移未知的CVBS信号,计算得到相关因子x;For a new input CVBS signal whose frequency offset is unknown, the correlation factor x is calculated;

相关因子x落在x[i]和x[i+1]之间,查表得到相关因子为x[i]和x[i+1]所对应的频率偏移y[i]和y[i+1]的大小;The correlation factor x falls between x[i] and x[i+1], look up the table to get the frequency offsets y[i] and y[i corresponding to the correlation factors x[i] and x[i+1] +1] the size of;

根据公式

Figure BDA0000112059220000071
求出相关因子x对应的频率偏移y的大小。According to the formula
Figure BDA0000112059220000071
Calculate the magnitude of the frequency offset y corresponding to the correlation factor x.

参图9所示,采用曲线拟合的方法包括以下步骤:As shown in Figure 9, the method of curve fitting comprises the following steps:

S421、以相关因子为x,频率偏移为y,拟合出一条连续的直线或曲线,得到关于x和y的解析表达式,如y=a*x+b(直线)或者y=c*x*x+d*x+f(二次曲线)或者更高次曲线;S421. With the correlation factor as x and the frequency offset as y, fit a continuous straight line or curve to obtain an analytical expression about x and y, such as y=a*x+b (straight line) or y=c* x*x+d*x+f (quadratic curve) or higher degree curve;

S422、通过步骤S421中的解析表达式,求解相应的频率偏移大小。如求的解析表达式为y=a*x+b,其中a=5.2309,b=-18.499,则可以通过相关因子x求得对应频率偏移y的大小。S422. Calculate the corresponding frequency offset by using the analytical expression in step S421. If the analytical expression to be obtained is y=a*x+b, where a=5.2309 and b=-18.499, then the size of the corresponding frequency offset y can be obtained through the correlation factor x.

计算未知CVBS信号的频率偏移步骤为:The steps to calculate the frequency offset of an unknown CVBS signal are:

对于新输入的频率偏移未知的CVBS信号,计算得到相关因子x;For a new input CVBS signal whose frequency offset is unknown, the correlation factor x is calculated;

将相关因子x代入求解得到的x与y的解析表达式中,求出相关因子x对应的频率偏移y的大小。Substitute the correlation factor x into the analytical expressions of x and y obtained from the solution, and obtain the magnitude of the frequency offset y corresponding to the correlation factor x.

本发明一实施方式中CVBS信号频率偏移的检测计算装置,该装置包括:The detection calculation device of CVBS signal frequency offset in one embodiment of the present invention, this device comprises:

用于采集若干已知频率偏移的CVBS信号的单元。参图2所示为一个CVBS信号波形,优选地,采集CVBS信号关键频率偏移点的频率偏移可选择从[-2000,+2000]Hz,步长为100Hz或者更小;Unit for acquiring several CVBS signals at known frequency offsets. Referring to Figure 2, it is a CVBS signal waveform. Preferably, the frequency offset of the key frequency offset point of the CVBS signal can be selected from [-2000, +2000] Hz, and the step size is 100 Hz or less;

用于计算每个CVBS信号相应的相关因子的单元。参图3、图4所示分别为没有频率偏移和有频率偏移情况下当前行和上一行的相位关系,在没有偏移的情况下,当前行和上一行的相位正好是相反,也就是相位差为180度,而在有频率偏移的情况下,当前行和上一行的相位不为180度,发生了偏移。CVBS信号在其burst的地方,带有频率f的信息,获取每个CVBS信号在其burst的频率f,根据公式即可计算出每个频率f对应的相位

Figure BDA0000112059220000081
大小,从而将频率f的信息转化为相位
Figure BDA0000112059220000082
的信息。图3中在没有频率偏移的情况下,相关因子为0,图4中在有频率偏移的情况下,相关因子不为0,相关因子随着频率偏移的改变而改变,如果频率是正的偏移,则相关因子为正;如果频率是负的偏移,则相关因子为负,相关因子的正负不但和频率偏移的正负有关,而且,可以从相关因子的大小推断出频率偏移的大小;Unit for calculating the corresponding correlation factor for each CVBS signal. Refer to Figure 3 and Figure 4, which show the phase relationship between the current line and the previous line without frequency offset and frequency offset respectively. In the case of no offset, the phases of the current line and the previous line are just opposite, and also That is, the phase difference is 180 degrees, and in the case of a frequency offset, the phase of the current line and the previous line is not 180 degrees, and an offset occurs. Where the CVBS signal is in its burst, it has the information of frequency f, and the frequency f of each CVBS signal in its burst is obtained, and the phase corresponding to each frequency f can be calculated according to the formula
Figure BDA0000112059220000081
size, thus converting the information of the frequency f into the phase
Figure BDA0000112059220000082
Information. In the case of no frequency offset in Figure 3, the correlation factor is 0, and in the case of frequency offset in Figure 4, the correlation factor is not 0, and the correlation factor changes with the frequency offset. If the frequency is positive The correlation factor is positive; if the frequency is a negative offset, the correlation factor is negative. The positive or negative of the correlation factor is not only related to the positive or negative of the frequency offset, but also the frequency can be deduced from the magnitude of the correlation factor the size of the offset;

用于得到相关因子和频率偏移的关系的单元,所述关系为表格或者解析表达式。根据计算得到一条类似于图5所示的相关因子和频率偏移的关系图表,每一个关键频率偏移点对应一个关键相关因子,每一个关键相关因子也对应着一个关键频率偏移,所得到相关因子和频率偏移的关系可为表格或直线或曲线等;A unit for obtaining a relationship between correlation factors and frequency offsets, said relationship being a table or an analytical expression. According to the calculation, a relationship chart of correlation factors and frequency offsets similar to that shown in Figure 5 is obtained. Each key frequency offset point corresponds to a key correlation factor, and each key correlation factor also corresponds to a key frequency offset. The obtained The relationship between the correlation factor and the frequency offset can be a table or a straight line or a curve, etc.;

用于对于新输入的频率偏移未知的CVBS信号,计算其相关因子,根据步骤S3得到的相关因子和频率偏移的关系,计算求得其频率偏移的单元。A unit for calculating the correlation factor of the newly input CVBS signal whose frequency offset is unknown, and calculating the frequency offset according to the relationship between the correlation factor and the frequency offset obtained in step S3.

综上所述,本发明CVBS信号频率偏移的检测计算方法及装置不需要外部的参考频率,而只利用本信号内部的行与行之间的关系来推导其频率偏移,从而通过校正获得正确的或更好质量的图像。In summary, the method and device for detecting and calculating the frequency offset of a CVBS signal in the present invention does not require an external reference frequency, but only uses the relationship between lines within the signal to derive its frequency offset, thereby obtaining Correct or better quality images.

应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施方式中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。It should be understood that although this description is described according to implementation modes, not each implementation mode only contains an independent technical solution, and this description in the description is only for clarity, and those skilled in the art should take the description as a whole, and each The technical solutions in the embodiments can also be properly combined to form other embodiments that can be understood by those skilled in the art.

上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,它们并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。The series of detailed descriptions listed above are only specific descriptions for feasible implementations of the present invention, and they are not intended to limit the protection scope of the present invention. Any equivalent implementation or implementation that does not depart from the technical spirit of the present invention All changes should be included within the protection scope of the present invention.

Claims (10)

1.一种CVBS信号频率偏移的检测计算方法,其特征在于,所述方法包括以下步骤:1. a detection calculation method of CVBS signal frequency deviation, is characterized in that, described method comprises the following steps: S1、采集若干已知频率偏移的CVBS信号;S1. Collect several CVBS signals with known frequency offsets; S2、计算每个CVBS信号相应的相关因子;S2. Calculating a corresponding correlation factor for each CVBS signal; S3、得到相关因子和频率偏移的关系,所述关系为表格或者解析表达式;S3. Obtain the relationship between the correlation factor and the frequency offset, where the relationship is a table or an analytical expression; S4、对于新输入的频率偏移未知的CVBS信号,计算其相关因子,根据步骤S3得到的相关因子和频率偏移的关系,计算求得其频率偏移。S4. For the newly input CVBS signal whose frequency offset is unknown, calculate its correlation factor, and calculate and obtain its frequency offset according to the relationship between the correlation factor and frequency offset obtained in step S3. 2.根据权利要求1所述的方法,其特征在于,所述步骤S2具体为:2. The method according to claim 1, wherein the step S2 is specifically: S211、取上一行的burst处的CVBS图像复合信号集合;S211. Take the CVBS image composite signal set at the burst of the previous row; S212、取当前行的burst处的CVBS图像复合信号集合;S212. Get the CVBS image composite signal set at the burst of the current line; S213、对步骤S212中所取的信号点作希尔伯特滤波;S213. Perform Hilbert filtering on the signal points obtained in step S212; S214、将步骤S213的结果和步骤S211中的信号点集合的每一个信号点相对应的一一做乘法;S214. Multiply the result of step S213 and each signal point corresponding to the signal point set in step S211; S215、把步骤S214的结果求和。S215. Sum the results of step S214. 3.根据权利要求1所述的方法,其特征在于,所述步骤S2具体为:3. The method according to claim 1, wherein the step S2 is specifically: S221、取当前行的burst处的CVBS图像复合信号集合;S221. Get the CVBS image composite signal set at the burst of the current line; S222、取下一行的burst处的CVBS图像复合信号集合;S222. Take the CVBS image composite signal set at the burst of the next row; S223、对步骤S222中所取的信号点作希尔伯特滤波;S223. Perform Hilbert filtering on the signal points obtained in step S222; S224、将步骤S223的结果和步骤S221中的信号点集合的每一个信号点相对应的一一做乘法;S224. Multiply the result of step S223 and each signal point corresponding to the signal point set in step S221; S225、把步骤S224的结果求和。S225. Sum the results of step S224. 4.根据权利要求2或3所述的方法,其特征在于,所述相关因子correlation_factor通过 correlation _ factor = Σ i = 1 M top _ line _ burst ( i ) * HilbertFiltering ( cur _ line _ burst ( i ) ) 计算得到,i为采样点坐标,M为burst的采样点个数,HilbertFiltering指进行希尔伯特滤波。4. according to the method described in claim 2 or 3, it is characterized in that, described correlation factor correlation_factor passes correlation _ factor = Σ i = 1 m top _ line _ burst ( i ) * Hilbert Filtering ( cur _ line _ burst ( i ) ) Calculated, i is the coordinate of the sampling point, M is the number of sampling points of the burst, and HilbertFiltering refers to Hilbert filtering. 5.根据权利要求1所述的方法,其特征在于,所述步骤S4包括:5. The method according to claim 1, wherein said step S4 comprises: S411、以相关因子为x,频率偏移为y,得到一张表格(x[i],y[i]),其中i是已知频率偏移的CVBS信号的个数;S411, with the correlation factor as x and the frequency offset as y, a table (x[i], y[i]) is obtained, where i is the number of CVBS signals with known frequency offset; S412、通过步骤S411中的表格,求解相应的频率偏移大小。S412. Solve the corresponding frequency offset according to the table in step S411. 6.根据权利要求1所述的方法,其特征在于,所述步骤S4包括为:6. The method according to claim 1, wherein said step S4 comprises: S421、以相关因子为x,频率偏移为y,拟合出一条连续的直线或曲线,得到关于x和y的解析表达式;S421. Using the correlation factor as x and the frequency offset as y, fit a continuous straight line or curve to obtain analytical expressions for x and y; S422、通过步骤S421中的解析表达式,求解相应的频率偏移大小。S422. Calculate the corresponding frequency offset by using the analytical expression in step S421. 7.根据权利要求6所述的方法,其特征在于,所述x和y的解析表达式为y关于x的一次函数关系或二次函数关系或更高次函数关系。7. The method according to claim 6, wherein the analytical expressions of x and y are a linear functional relationship or a quadratic functional relationship or a higher-order functional relationship of y with respect to x. 8.根据权利要求5所述的方法,其特征在于,所述步骤S4还包括为:8. The method according to claim 5, wherein the step S4 further comprises: 对于新输入的频率偏移未知的CVBS信号,计算得到相关因子x;For a new input CVBS signal whose frequency offset is unknown, the correlation factor x is calculated; 相关因子x落在x[i]和x[i+1]之间,查表得到相关因子为x[i]和x[i+1]所对应的频率偏移y[i]和y[i+1]的大小;The correlation factor x falls between x[i] and x[i+1], look up the table to get the frequency offsets y[i] and y[i corresponding to the correlation factors x[i] and x[i+1] +1] the size of; 根据公式
Figure FDA0000112059210000022
求出相关因子x对应的频率偏移y的大小。
According to the formula
Figure FDA0000112059210000022
Calculate the magnitude of the frequency offset y corresponding to the correlation factor x.
9.根据权利要求7所述的方法,其特征在于,所述步骤S4还包括为:9. The method according to claim 7, wherein the step S4 further comprises: 对于新输入的频率偏移未知的CVBS信号,计算得到相关因子x;For a new input CVBS signal whose frequency offset is unknown, the correlation factor x is calculated; 将相关因子x代入求解得到的x与y的解析表达式中,求出相关因子x对应的频率偏移y的大小。Substitute the correlation factor x into the analytical expressions of x and y obtained from the solution, and obtain the magnitude of the frequency offset y corresponding to the correlation factor x. 10.一种根据权利要求1所述的CVBS信号频率偏移的检测计算装置,其特征在于,所述装置包括:10. a kind of detection computing device of CVBS signal frequency offset according to claim 1, is characterized in that, described device comprises: 用于采集若干已知频率偏移的CVBS信号的单元;A unit for acquiring several CVBS signals at known frequency offsets; 用于计算每个CVBS信号相应的相关因子的单元;A unit for calculating a corresponding correlation factor for each CVBS signal; 用于得到相关因子和频率偏移的关系的单元,所述关系为表格或者解析表达式;A unit for obtaining a relationship between a correlation factor and a frequency offset, the relationship being a table or an analytical expression; 用于对于新输入的频率偏移未知的CVBS信号,计算其相关因子,根据步骤S3得到的相关因子和频率偏移的关系,计算求得其频率偏移的单元。A unit for calculating the correlation factor of the newly input CVBS signal whose frequency offset is unknown, and calculating the frequency offset according to the relationship between the correlation factor and the frequency offset obtained in step S3.
CN 201110378701 2011-11-24 2011-11-24 Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS) Expired - Fee Related CN102547309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110378701 CN102547309B (en) 2011-11-24 2011-11-24 Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110378701 CN102547309B (en) 2011-11-24 2011-11-24 Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS)

Publications (2)

Publication Number Publication Date
CN102547309A true CN102547309A (en) 2012-07-04
CN102547309B CN102547309B (en) 2013-12-25

Family

ID=46353102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110378701 Expired - Fee Related CN102547309B (en) 2011-11-24 2011-11-24 Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS)

Country Status (1)

Country Link
CN (1) CN102547309B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006701A1 (en) * 2016-07-06 2018-01-11 深圳市中兴微电子技术有限公司 Method and apparatus for determining composite video signal quality indicator, and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1726723A (en) * 2002-12-16 2006-01-25 皇家飞利浦电子股份有限公司 Comb filter
CN101039293A (en) * 2006-03-15 2007-09-19 华为技术有限公司 Apparatus, method and receiver for initial timing synchronization in communication system
CN101562589A (en) * 2008-04-16 2009-10-21 鸿富锦精密工业(深圳)有限公司 Carrier frequency deviation estimation device and system
CN101582870A (en) * 2008-05-15 2009-11-18 中兴通讯股份有限公司 Method and device for realizing synchronization
CN101789916A (en) * 2010-01-13 2010-07-28 上海华为技术有限公司 Signal processing method, system and equipment based on relevance
CN102238113A (en) * 2010-05-04 2011-11-09 中兴通讯股份有限公司 Carrier frequency offset tracking method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1726723A (en) * 2002-12-16 2006-01-25 皇家飞利浦电子股份有限公司 Comb filter
CN101039293A (en) * 2006-03-15 2007-09-19 华为技术有限公司 Apparatus, method and receiver for initial timing synchronization in communication system
CN101562589A (en) * 2008-04-16 2009-10-21 鸿富锦精密工业(深圳)有限公司 Carrier frequency deviation estimation device and system
CN101582870A (en) * 2008-05-15 2009-11-18 中兴通讯股份有限公司 Method and device for realizing synchronization
CN101789916A (en) * 2010-01-13 2010-07-28 上海华为技术有限公司 Signal processing method, system and equipment based on relevance
CN102238113A (en) * 2010-05-04 2011-11-09 中兴通讯股份有限公司 Carrier frequency offset tracking method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006701A1 (en) * 2016-07-06 2018-01-11 深圳市中兴微电子技术有限公司 Method and apparatus for determining composite video signal quality indicator, and computer storage medium
CN107592518A (en) * 2016-07-06 2018-01-16 深圳市中兴微电子技术有限公司 A kind of composite video signal quality index determines method and device
CN107592518B (en) * 2016-07-06 2019-04-30 深圳市中兴微电子技术有限公司 A kind of composite video signal quality index determination method and device

Also Published As

Publication number Publication date
CN102547309B (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN101489147B (en) Method of Aspect Ratio Transformation Based on Region of Interest
TW200913731A (en) Video signal processing apparatus and re-sampling apparatus
CN102547309B (en) Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS)
JPH0365074B2 (en)
EP3107283A1 (en) Method and apparatus for transmitting video signal
JP2003023644A (en) Image processing unit, image display device, image processing method, and image display method
JP3926376B2 (en) Video signal processing circuit, video signal display device, and video signal recording device
JPH01319389A (en) Color image display control device
CN1777257A (en) Method for Automatic Recognition of Received Signal System by Analog TV Signal Receiver
CN101370146B (en) Color carrier frequency difference estimation method based on phase unwrapping and linear regression
CN101087434B (en) Method and apparatus for improving transient characteristic of chrominance signal
CN101309431A (en) A composite video encoder device
CN1019163B (en) Frequnecy selective video signal intraframe device
US7224406B2 (en) Digital signal processing system and method applied for chroma transition
CN100570679C (en) Digital phase correction method and system
KR930009866B1 (en) TV receiver
US8643783B2 (en) Vertical field detection for television receivers
TWI379598B (en)
US7518660B2 (en) Picture quality improvement device and picture quality improvement method
CN103259963A (en) High-resolution output mode
JPS6057792A (en) Movement detecting circuit
KR101039539B1 (en) Video signal processing apparatus and method
CN101094421A (en) Method and device for detecting types of subcarrier of SECAM video signal
TWI454152B (en) Video standard detector and operation method thereof and intermediate frequency demodulator
Liu et al. An FPGA Based Color Bar Signal Generator for PAL Standard

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SOLOMON-SYSTECH (SHENZHEN) CO., LTD.

Free format text: FORMER OWNER: SUZHOU XITU SHIDING MICROELECTRONICS CO., LTD.

Effective date: 20130829

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 215021 SUZHOU, JIANGSU PROVINCE TO: 518057 SHENZHEN, GUANGDONG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20130829

Address after: 518057, No. six building, No. two Shenzhen Software Park, central science and technology zone, Nanshan District hi tech Zone, Shenzhen, Guangdong, two

Applicant after: Solomon Systech (Shenzhen) Ltd.

Address before: Suzhou City, Jiangsu province 215021 Xinghu Park Street No. 328 Creative Industry Park 2-B702 unit

Applicant before: Suzhou C2 Microsystems Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131225

CF01 Termination of patent right due to non-payment of annual fee