CN113726980B - Image processing methods - Google Patents
Image processing methods Download PDFInfo
- Publication number
- CN113726980B CN113726980B CN202010448241.8A CN202010448241A CN113726980B CN 113726980 B CN113726980 B CN 113726980B CN 202010448241 A CN202010448241 A CN 202010448241A CN 113726980 B CN113726980 B CN 113726980B
- Authority
- CN
- China
- Prior art keywords
- block
- compensation
- data
- image processing
- motion vector
- 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.)
- Active
Links
- 239000013598 vector Substances 0.000 claims abstract description 66
- 238000002156 mixing Methods 0.000 claims abstract description 59
- 238000003672 processing method Methods 0.000 claims abstract description 27
- 230000000295 complement effect Effects 0.000 claims abstract 3
- 230000002596 correlated effect Effects 0.000 claims description 4
- 230000000153 supplemental effect Effects 0.000 claims 1
- 230000000875 corresponding effect Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 11
- 230000002146 bilateral effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 4
- 238000011156 evaluation Methods 0.000 description 3
- 238000012935 Averaging Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 101000575029 Bacillus subtilis (strain 168) 50S ribosomal protein L11 Proteins 0.000 description 1
- 102100035793 CD83 antigen Human genes 0.000 description 1
- 101000946856 Homo sapiens CD83 antigen Proteins 0.000 description 1
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 125000001475 halogen functional group Chemical group 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
- H04N5/142—Edging; Contouring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
- H04N5/144—Movement detection
- H04N5/145—Movement estimation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/268—Signal distribution or switching
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Television Systems (AREA)
Abstract
Description
技术领域Technical Field
本发明申请是关于一种图像处理方法,特别是关于一种改善影像画面不连续(discontinue)的图像处理方法。The present invention relates to an image processing method, and more particularly to an image processing method for improving image discontinuity.
背景技术Background technique
在图像处理的领域中,在使用运动估计补偿(motion estimation motioncompensation,MEMC)的技术处理低帧(low frame rate)画面时,部份情况会导致画面空间上或时间上不连续。例如,当画面移动速度较快,运动向量(motion vector)指到边缘外(out of boundary)或黑边外(out of rim)。或者,当画面有覆盖(cover)或显现(uncover)的区域的时候。又或者使用双边内插(bi-interpolation)法计算时有一边无法取得数据(invalid by search range)或失效(invalid by boundary or rim)的时候。In the field of image processing, when using motion estimation motion compensation (MEMC) technology to process low frame rate images, some situations may cause the image to be discontinuous in space or time. For example, when the image moves quickly, the motion vector points to the edge (out of boundary) or the black edge (out of rim). Or, when the image has a covered (cover) or uncovered (uncover) area. Or when using the bilateral interpolation method to calculate, one side cannot obtain data (invalid by search range) or is invalid (invalid by boundary or rim).
因此,如何解决画面不连续的现象为本领域的重要课题。Therefore, how to solve the phenomenon of picture discontinuity is an important issue in this field.
发明内容Summary of the invention
本发明申请是关于一种图像处理方法,该方法包含:接收第一画面和第二画面;根据第一画面和第二画面产生多个运动向量,其中一个运动向量对应第一画面的第一区块和第二画面的第二区块;计算补偿区块的补偿位置、补偿区块和第一区块之间的第一运动向量、和补偿区块和第二区块之间的第二运动向量;确定补偿位置加上补偿值,再加上第一运动向量或第二运动向量的总和是否超过目标范围,以设定混合系数;根据混合系数调整第一区块的第一数据或第二区块的第二数据;以及根据调整后的第一数据或第二数据产生补帧数据。The present invention application relates to an image processing method, which includes: receiving a first picture and a second picture; generating multiple motion vectors according to the first picture and the second picture, wherein one motion vector corresponds to a first block of the first picture and a second block of the second picture; calculating a compensation position of a compensation block, a first motion vector between the compensation block and the first block, and a second motion vector between the compensation block and the second block; determining whether the sum of the compensation position plus the compensation value plus the first motion vector or the second motion vector exceeds a target range to set a mixing coefficient; adjusting the first data of the first block or the second data of the second block according to the mixing coefficient; and generating supplementary frame data according to the adjusted first data or second data.
综上所述,通过图像处理装置的运动帧率转换器根据图像处理方法计算、判断并调整用以内插的两个区块的混合比例,便能减少画面不连续的现象。In summary, the motion frame rate converter of the image processing device calculates, determines and adjusts the mixing ratio of two blocks for interpolation according to the image processing method, so as to reduce the phenomenon of picture discontinuity.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
有关本发明申请的特征、操作与功效,在此结合附图对较佳实施例进行如下详细说明。The features, operations and effects of the present invention are described in detail below with reference to the accompanying drawings for preferred embodiments.
图1为根据本发明申请的实施例的一种图像处理装置的示意图。FIG. 1 is a schematic diagram of an image processing device according to an embodiment of the present invention.
图2为根据本发明申请的实施例的一种影像所包含的连续画面的示意图。FIG. 2 is a schematic diagram of continuous frames contained in an image according to an embodiment of the present invention.
图3为根据本发明申请的实施例的一种补帧影像的示意图。FIG. 3 is a schematic diagram of a frame interpolation image according to an embodiment of the present invention.
图4为根据本发明申请的实施例的一种图像处理方法的流程图。FIG. 4 is a flow chart of an image processing method according to an embodiment of the present invention.
图5为根据本发明申请的实施例的一种运动补偿器的功能方块图。FIG. 5 is a functional block diagram of a motion compensator according to an embodiment of the present invention.
图6和图7为根据本发明申请的实施例的另一种补帧影像的示意图。FIG. 6 and FIG. 7 are schematic diagrams of another type of interpolated frame images according to an embodiment of the present invention.
符号说明:Symbol Description:
100:图像处理装置100: Image processing device
110:缓冲器110: Buffer
120:运动评估处理器120: Motion Evaluation Processor
130:运动帧率转换器130: Motion Frame Rate Converter
140:边缘检测器140: Edge Detector
150:覆盖/显现检测器150: Cover/reveal detector
160:标志检测器160: Sign detector
Vin:影像输入信号Vin: video input signal
MV:运动向量MV: Motion Vector
RIM:边缘RIM: Edge
CR:覆盖/显现区域CR: Coverage/Revealing Area
Vout:影像输出信号Vout: video output signal
400:图像处理方法400: Image Processing Methods
S410、S420、S430、S440、S450、S460:操作S410, S420, S430, S440, S450, S460: Operation
Fk-1、Fk、Fc、Fc1~Fc4:图框Fk-1, Fk, Fc, Fc1~Fc4: Frame
MV1、MV2、MVk、MV1[x1,y1]、MV1[x2,y2]、MV2[x1,y1]、MV2[x2,y2]、MV1[i,j]、MV2[i,j]、MV1a、MV1b、MV2a、MV2b:运动向量MV1, MV2, MVk, MV1[x1,y1], MV1[x2,y2], MV2[x1,y1], MV2[x2,y2], MV1[i,j], MV2[i,j], MV1a, MV1b, MV2a, MV2b: motion vector
BL1a、BL1b、BL1c、BL2a、BL2b、BL2c、BL3a、BL3b、BL3c、BL4a、BL4b、BL4c、B11、B12、B21、B22、Bc1、Bc2:区块BL1a, BL1b, BL1c, BL2a, BL2b, BL2c, BL3a, BL3b, BL3c, BL4a, BL4b, BL4c, B11, B12, B21, B22, Bc1, Bc2: Block
Pc[x1,y1]、Pc[x2,y2]、P1[x1,y1]、P1[x2,y2]、P2[x1,y1]、P2[x2,y2]、P[i,j]:位置Pc[x1,y1], Pc[x2,y2], P1[x1,y1], P1[x2,y2], P2[x1,y1], P2[x2,y2], P[i,j]: position
C[i,j]:补偿值C[i,j]: compensation value
IND[i,j]:混合系数IND[i,j]: mixing coefficient
具体实施方式Detailed ways
下文举实施例配合附图作详细说明,但所描述的具体实施例仅用以解释本发明,并不用来限定本发明,而结构操作的描述也并非用以限制其执行顺序,任何由组件重新组合的结构,所产生具有均等功效的装置,皆为本发明申请所涵盖的范围。The following is a detailed description of the embodiments with the help of the accompanying drawings, but the specific embodiments described are only used to explain the present invention and are not used to limit the present invention. The description of the structural operation is not used to limit the execution order. Any structure recombined by the components to produce a device with equal functions is within the scope of the present invention application.
请参考图1。图1为根据本发明申请的实施例的一种图像处理装置100的示意图。如图1所示,图像处理装置100包含缓冲器110、运动评估处理器(motion estimationprocessor)120、运动帧率转换器(motion compensation frame rate converter)130、边缘检测器140(boundary detector)、覆盖/显示检测器150(de-halo detector或cover/uncover detector)以及标志检测器160(logo detector)。结构上,缓冲器110连接运动评估处理器120和运动帧率转换器130。边缘检测器140连接运动评估处理器120和运动帧率转换器130。覆盖/显示检测器150以及标志检测器160分别连接运动帧率转换器130。Please refer to Figure 1. Figure 1 is a schematic diagram of an image processing device 100 according to an embodiment of the present invention. As shown in Figure 1, the image processing device 100 includes a buffer 110, a motion estimation processor 120, a motion compensation frame rate converter 130, an edge detector 140 (boundary detector), a coverage/display detector 150 (de-halo detector or cover/uncover detector) and a logo detector 160 (logo detector). Structurally, the buffer 110 is connected to the motion estimation processor 120 and the motion frame rate converter 130. The edge detector 140 is connected to the motion estimation processor 120 and the motion frame rate converter 130. The coverage/display detector 150 and the logo detector 160 are respectively connected to the motion frame rate converter 130.
操作上,缓冲器110用以接收影像输入信号Vin进行缓冲处理后传送至运动评估处理器120及/或运动帧率转换器130。边缘检测器140用以接收并根据影像输入信号Vin取得输入影像上、下、左、右的四个边缘RIM,并根据此四个边缘RIM所围成的区域作为画面区域。具体而言,边缘检测器140可根据影像输入信号Vin的影像尺寸取得四个边缘。此外,在部分实施例中,边缘检测器140可检测影像输入信号Vin内为黑边(black rim)的部分,且将黑边部分扣除后的区域作为画面区域。In operation, the buffer 110 is used to receive the image input signal Vin, perform buffering, and then transmit it to the motion estimation processor 120 and/or the motion frame rate converter 130. The edge detector 140 is used to receive and obtain the four edges RIM of the input image at the top, bottom, left, and right according to the image input signal Vin, and use the area surrounded by the four edges RIM as the screen area. Specifically, the edge detector 140 can obtain the four edges according to the image size of the image input signal Vin. In addition, in some embodiments, the edge detector 140 can detect the black rim portion in the image input signal Vin, and use the area after deducting the black rim portion as the screen area.
覆盖/显现检测器150用以接收并根据影像输入信号Vin取得输入影像的两帧画面之间的覆盖/显现(cover/uncover)区域CR。标志检测器160用以根据影像输入信号Vin取得输入影像中的标志(logo),例如频道标志。The cover/uncover detector 150 is used to receive and obtain a cover/uncover region CR between two frames of an input image according to the image input signal Vin. The logo detector 160 is used to obtain a logo, such as a channel logo, in the input image according to the image input signal Vin.
运动评估处理器120用以接收并根据影像输入信号Vin和边缘RIM进行运动评估(motion estimation,ME),并将产生的运动向量(motion vector)传送至运动帧率转换器130。运动帧率转换器130用以接收并根据影像输入信号Vin、边缘RIM和覆盖/显现区域进行图框(frame)内插补偿,并输出帧率转换后的影像输出信号Vout。The motion estimation processor 120 is used for receiving and performing motion estimation (ME) according to the image input signal Vin and the edge RIM, and transmitting the generated motion vector to the motion frame rate converter 130. The motion frame rate converter 130 is used for receiving and performing frame interpolation compensation according to the image input signal Vin, the edge RIM and the cover/visible area, and outputting the image output signal Vout after frame rate conversion.
举例来说,如图2所示,图框Fk为图像处理装置100所接收到的影像输入信号Vin中当前的画面。图框Fk-1为影像输入信号Vin中相应于当前画面的一个参考画面。在部分实施例中,图框Fk和图框Fk-1为相邻的两帧画面。运动评估处理器120将图框Fk-1和图框Fk以i乘j为单位切割成多个区块(block),并利用各种运动向量搜寻方法找出每个区块的最佳运动向量(best motion vector)传送至运动帧率转换器130。For example, as shown in FIG. 2 , the frame Fk is the current frame in the image input signal Vin received by the image processing device 100. The frame Fk-1 is a reference frame corresponding to the current frame in the image input signal Vin. In some embodiments, the frame Fk and the frame Fk-1 are two adjacent frames. The motion estimation processor 120 cuts the frame Fk-1 and the frame Fk into a plurality of blocks in units of i times j, and uses various motion vector search methods to find the best motion vector of each block and transmits it to the motion frame rate converter 130.
之后,运动帧率转换器130根据图框Fk-1、图框Fk和每个区块的最佳运动向量产生图框Fk-1和图框Fk之间的补偿画面。例如,若最佳运动向量大致为由左下至右上的向量,则根据位于图框Fk-1中左下角的圆形和位于图框Fk中右上角的圆形,可产生如图框Fc1~Fc4所示的补偿画面。换言之,经过图像处理装置100利用图像处理方法后所输出的影像输出信号Vout将包含图框Fk-1、图框Fc1~Fc4和图框Fk。Afterwards, the motion frame rate converter 130 generates a compensation picture between the frame Fk-1 and the frame Fk according to the frame Fk-1, the frame Fk and the best motion vector of each block. For example, if the best motion vector is approximately a vector from the lower left to the upper right, then according to the circle located at the lower left corner of the frame Fk-1 and the circle located at the upper right corner of the frame Fk, a compensation picture as shown in the frames Fc1 to Fc4 can be generated. In other words, the image output signal Vout output by the image processing device 100 using the image processing method will include the frame Fk-1, the frames Fc1 to Fc4 and the frame Fk.
然而,当用以产生补偿画面的运动向量指到边缘外(out of boundary)或黑边外(out of rim),使得进行内插补偿时所需参考的数据无法取得或是取得失效的数据,此状况可能会导致补偿画面的内容出现不连续,或者补偿画面和相邻画面在时间上不连续。举例来说,如图3所示,图框Fc为根据当前图框Fk和参考图框Fk-1所产生的补偿画面。理论上,图框Fc的区块BL1c是根据运动向量MV1所对应的区块BL1a和区块BL1b以权值各为0.5进行加权平均而得。然而,若以区块BL2c为例,计算运动向量MV2时须参考区块BL2a和区块BL2b,但区块BL2a已超出影像边缘,因此,区块BL2a并无法被参照。若将无法被参照的区块BL2a和运动向量MV2b所指向的区块BL2b进行加权平均,所取得的补偿区块BL2c很可能出现不连续。针对上述问题,本发明提出下述图像处理方法以解决此问题。However, when the motion vector used to generate the compensation picture points to the outside of the boundary or the outside of the black edge, the reference data required for interpolation compensation cannot be obtained or invalid data is obtained. This situation may cause the content of the compensation picture to be discontinuous, or the compensation picture and the adjacent picture to be discontinuous in time. For example, as shown in FIG3, the frame Fc is a compensation picture generated according to the current frame Fk and the reference frame Fk-1. In theory, the block BL1c of the frame Fc is obtained by weighted averaging the blocks BL1a and BL1b corresponding to the motion vector MV1 with a weight of 0.5 each. However, if the block BL2c is taken as an example, the block BL2a and the block BL2b must be referenced when calculating the motion vector MV2, but the block BL2a has exceeded the edge of the image, so the block BL2a cannot be referenced. If the block BL2a that cannot be referenced and the block BL2b pointed to by the motion vector MV2b are weighted averaged, the obtained compensation block BL2c is likely to be discontinuous. In view of the above problem, the present invention proposes the following image processing method to solve this problem.
请参考图4。图4为根据本发明申请的实施例的一种图像处理方法400的流程图。为方便及清楚说明起见,下述图像处理方法400将配合图1~图7所示实施例进行说明,但不以此为限,任何熟习此技艺者,在不脱离本发明的精神和范围内,当可对其作各种更动与润饰。如图4所示,图像处理方法400包含操作S410、S420、S430、S440、S450以及S460。Please refer to FIG. 4. FIG. 4 is a flow chart of an image processing method 400 according to an embodiment of the present invention. For the sake of convenience and clarity of description, the following image processing method 400 will be described in conjunction with the embodiments shown in FIG. 1 to FIG. 7, but it is not limited thereto. Any person skilled in the art can make various changes and modifications to it without departing from the spirit and scope of the present invention. As shown in FIG. 4, the image processing method 400 includes operations S410, S420, S430, S440, S450 and S460.
首先,在操作S410中,接收第一画面和第二画面。具体而言,如第图1所示,由图像处理装置100中的运动评估处理器120接收影像输入信号Vin中不同的两帧画面。在部分实施例中,第一画面和第二画面可为相邻两帧画面,如第图2中的当前图框Fk和参考图框Fk-1。First, in operation S410, a first picture and a second picture are received. Specifically, as shown in FIG1 , the motion estimation processor 120 in the image processing device 100 receives two different frames of the image input signal Vin. In some embodiments, the first picture and the second picture may be two adjacent frames, such as the current frame Fk and the reference frame Fk-1 in FIG2 .
接着,在操作S420中,根据第一画面和第二画面产生多个运动向量,其中一个运动向量对应第一画面的第一区块和第二画面的第二区块。具体而言,由运动评估处理器120将当前图框Fk分割为固定尺寸的多个当前区块。为了方便说明起见,以下段落将以i乘j的矩阵表示这些当前区块。之后,由运动评估处理器120针对每个当前区块在参考图框Fk-1中搜寻匹配度最高的相应参考区块,并以当前区块和相应参考区块之间的向量作为此当前区块的运动向量。在部分实施例中,匹配度的计算可利用绝对误差和(Sum of AbsoluteDifferences,SAD)据以实施,但本发明不以此为限。在其他部分实施例中,也可利用均方差(mean square error,MSE)或平均绝对误差(mean absolute deviation,MAD)。Next, in operation S420, a plurality of motion vectors are generated according to the first picture and the second picture, wherein one motion vector corresponds to the first block of the first picture and the second block of the second picture. Specifically, the motion evaluation processor 120 divides the current frame Fk into a plurality of current blocks of fixed size. For the sake of convenience of explanation, the following paragraphs will represent these current blocks as a matrix of i times j. Thereafter, the motion evaluation processor 120 searches for the corresponding reference block with the highest matching degree in the reference frame Fk-1 for each current block, and uses the vector between the current block and the corresponding reference block as the motion vector of the current block. In some embodiments, the calculation of the matching degree can be implemented using the sum of absolute differences (SAD), but the present invention is not limited thereto. In other embodiments, mean square error (MSE) or mean absolute deviation (MAD) can also be used.
如此一来,由运动评估处理器120根据图框Fk和图框Fk-1便能计算出相应于i乘j个当前区块的i乘j个运动向量。In this way, the motion estimation processor 120 can calculate i times j motion vectors corresponding to i times j current blocks according to the frame Fk and the frame Fk-1.
接着,在操作S430中,根据运动向量、第一区块和第二区块计算补偿区块的补偿位置、补偿区块和第一区块之间的第一运动向量以及补偿区块和第二区块之间的第二运动向量。具体而言,以图5中的运动向量MVk、区块B11和区块B21为例,由运动帧率转换器130根据运动向量MVk、区块BL11和区块BL21可计算出补偿区块Bc1的补偿位置。如图5所示,补偿区块Bc1的补偿位置Pc[x1,y1]为区块B11的位置P1[x1,y1]和区块B21的位置P2[x1,y1]的中点。此外,由运动帧率转换器130可根据补偿区块Bc1的补偿位置Pc[x1,y1]和区块B11的位置P1[x1,y1]之间的向量MV1[x1,y1]作为第一向量,并根据补偿区块Bc1的位置Pc[x1,y1]和区块B21的位置P2[x1,y1]之间的向量MV2[x1,y1]作为第二向量。Next, in operation S430, the compensation position of the compensation block, the first motion vector between the compensation block and the first block, and the second motion vector between the compensation block and the second block are calculated according to the motion vector, the first block, and the second block. Specifically, taking the motion vector MVk, the block B11, and the block B21 in FIG. 5 as an example, the motion frame rate converter 130 can calculate the compensation position of the compensation block Bc1 according to the motion vector MVk, the block BL11, and the block BL21. As shown in FIG. 5, the compensation position Pc[x1, y1] of the compensation block Bc1 is the midpoint of the position P1[x1, y1] of the block B11 and the position P2[x1, y1] of the block B21. In addition, the motion frame rate converter 130 can use the vector MV1[x1, y1] between the compensation position Pc[x1, y1] of the compensation block Bc1 and the position P1[x1, y1] of the block B11 as the first vector, and use the vector MV2[x1, y1] between the position Pc[x1, y1] of the compensation block Bc1 and the position P2[x1, y1] of the block B21 as the second vector.
如此一来,由运动评估处理器120根据i乘j个当前区块的位置、相应于当前区块的i乘j个参考区块的位置,便能计算出i乘j个补偿区块的补偿位置(如图6中的位置P[i,j])、i乘j个第一运动向量(如图6中的MV1[i,j])以及i乘j个第二运动向量(如图6中的MV2[i,j])。In this way, the motion estimation processor 120 can calculate the compensation positions of i times j compensation blocks (such as position P[i,j] in Figure 6), i times j first motion vectors (such as MV1[i,j] in Figure 6), and i times j second motion vectors (such as MV2[i,j] in Figure 6) based on the positions of i times j current blocks and the positions of i times j reference blocks corresponding to the current blocks.
接着,在操作S440中,确定补偿区块的补偿位置加上补偿值,再加上第一运动向量或第二运动向量的总和是否超过目标范围,以设定混合系数。具体而言,如图6所示,由运动帧率转换器130根据补偿区块的补偿位置P[i,j]、第一运动向量MV1[i,j]、第二运动向量MV2[i,j]和补偿值C[i,j]计算补偿区块所相应的第一区块和第二区块的位置,并根据边缘RIM判断第一区块或第二区块(即,当前区块或参考区块)是否超过目标范围(即,四个边缘RIM围成的区域)。当第一区块或第二区块超过目标范围,则根据超出部分的大小来设定混合系数IND[i,j]。当第一区块或第二区块未超过目标范围,则标记此第一区块或第二区块的混合系数IND[i,j]为零或舍弃(fail),代表此区块不需进行额外处理。Next, in operation S440, it is determined whether the sum of the compensation position of the compensation block plus the compensation value plus the first motion vector or the second motion vector exceeds the target range to set the blending coefficient. Specifically, as shown in FIG6 , the motion frame rate converter 130 calculates the positions of the first block and the second block corresponding to the compensation block according to the compensation position P[i,j], the first motion vector MV1[i,j], the second motion vector MV2[i,j] and the compensation value C[i,j] of the compensation block, and determines whether the first block or the second block (i.e., the current block or the reference block) exceeds the target range (i.e., the area surrounded by four edge RIMs) according to the edge RIM. When the first block or the second block exceeds the target range, the blending coefficient IND[i,j] is set according to the size of the exceeding portion. When the first block or the second block does not exceed the target range, the blending coefficient IND[i,j] of the first block or the second block is marked as zero or discarded (fail), indicating that the block does not need to be processed additionally.
举例来说,若补偿区块的补偿位置加上第一运动向量和补偿值未超过目标范围,则设定第一区块的混合系数为零。当补偿区块的补偿位置加上第二运动向量和补偿值未超过目标范围,则设定第二区块的混合系数为零。另一方面,若补偿区块的补偿位置加上第一运动向量和补偿值超过目标范围,则将第一区块的混合系数设定为两者的插值。当补偿区块的补偿位置加上第二运动向量和补偿值超过目标范围,则将第二区块的混合系数设定两者的插值。For example, if the compensation position of the compensation block plus the first motion vector and the compensation value do not exceed the target range, the mixing coefficient of the first block is set to zero. When the compensation position of the compensation block plus the second motion vector and the compensation value do not exceed the target range, the mixing coefficient of the second block is set to zero. On the other hand, if the compensation position of the compensation block plus the first motion vector and the compensation value exceed the target range, the mixing coefficient of the first block is set to an interpolated value of the two. When the compensation position of the compensation block plus the second motion vector and the compensation value exceed the target range, the mixing coefficient of the second block is set to an interpolated value of the two.
进一步详细说明,如下式(1)所示,Px为补偿区块的补偿位置的横坐标值,Py为补偿区块的补偿位置的纵坐标值。MVx为第一运动向量或第二运动向量的横坐标值,MVy为第一运动向量或第二运动向量的的纵坐标值。OFFSET为补偿值。RIMtop、RIMbottom、RIMleft、RIMright分别为输入影像的上、下、左、右的边框,其分别由四个边框上的多坐标值所定义。IND[x,y]为第一区块或第二区块的混合系数。For further details, as shown in the following formula (1), Px is the horizontal coordinate value of the compensation position of the compensation block, and Py is the vertical coordinate value of the compensation position of the compensation block. MVx is the horizontal coordinate value of the first motion vector or the second motion vector, and MVy is the vertical coordinate value of the first motion vector or the second motion vector. OFFSET is the compensation value. RIMtop, RIMbottom, RIMleft, and RIMright are the top, bottom, left, and right borders of the input image, respectively, which are defined by the multiple coordinate values on the four borders. IND[x,y] is the mixing coefficient of the first block or the second block.
IND[x,y]=OFFSETIND[x,y]=OFFSET
Else IND[x,y]=0 式(1)Else IND[x,y]=0 Formula (1)
如图5所示,由于补偿区块Bc1的位置Pc[x1,y1]加上第一运动向量MV1[x1,y1]和补偿值后对应的坐标值将落于上方边框RIMtop之外,因此,根据式(1)将第一区块B11的混合系数标记为补偿值OFFSET。而由于补偿区块Bc1的位置Pc[x1,y1]加上第二运动向量MV2[x1,y1]和补偿值后对应的坐标值将落于四个边框界定的输入影像之内,因此,根据式(1)将设定第二区块B21的混合系数为零。As shown in FIG5 , since the coordinate value corresponding to the position Pc[x1,y1] of the compensation block Bc1 plus the first motion vector MV1[x1,y1] and the compensation value will fall outside the top frame RIMtop, the blending coefficient of the first block B11 is marked as the compensation value OFFSET according to formula (1). Since the coordinate value corresponding to the position Pc[x1,y1] of the compensation block Bc1 plus the second motion vector MV2[x1,y1] and the compensation value will fall within the input image defined by the four frames, the blending coefficient of the second block B21 is set to zero according to formula (1).
又例如,如图5所示,由于补偿区块Bc2的位置Pc[x2,y2]加上第一运动向量MV1[x2,y2]和补偿值后对应的坐标值将落于四个边框界定的输入影像之内,因此,根据式(1)将标记第一区块B12的混合系数为零。而由于补偿区块Bc2的位置Pc[x2,y2]加上第二运动向量MV2[x2,y2]和补偿值后对应的坐标值将落于下方边框RIMbottom之外,因此,根据式(1)将第二区块B22的混合系数标记为补偿值OFFSET。For another example, as shown in FIG5 , since the coordinate value corresponding to the position Pc[x2,y2] of the compensation block Bc2 plus the first motion vector MV1[x2,y2] and the compensation value will fall within the input image defined by the four borders, the blending coefficient of the first block B12 is marked as zero according to formula (1). Since the coordinate value corresponding to the position Pc[x2,y2] of the compensation block Bc2 plus the second motion vector MV2[x2,y2] and the compensation value will fall outside the bottom border RIMbottom, the blending coefficient of the second block B22 is marked as the compensation value OFFSET according to formula (1).
值得注意的是,补偿值OFFSET为欲进行处理的距离范围,可依据使用者的需求进行设定。此外,在部分实施例中,补偿值OFFSET可再乘上增益(gain)。增益大小可由韧体进行控制。换言之,补偿值OFFSET为可调整的。It is worth noting that the offset value OFFSET is the distance range to be processed, which can be set according to the needs of the user. In addition, in some embodiments, the offset value OFFSET can be multiplied by a gain. The gain can be controlled by the firmware. In other words, the offset value OFFSET is adjustable.
接着,在操作S450中,根据混合系数调整第一区块的第一数据或第二区块的第二数据。具体而言,如图6所示,由运动帧率转换器130根据混合系数IND[i,j]调整图框Fk和图框Fk-1所包含的各个区块的数据。Next, in operation S450, the first data of the first block or the second data of the second block is adjusted according to the mixing coefficient. Specifically, as shown in FIG6, the motion frame rate converter 130 adjusts the data of each block included in the frame Fk and the frame Fk-1 according to the mixing coefficient IND[i,j].
进一步而言,当第一区块和第二区块的两个混合系数中一个为零而另一个存在不为零的数值时,将数值不为零的区块以数值为零的区块调整其区块数据。举例来说,如下式(2)所示,INDa[x,y]为第一区块的混合系数,INDb[x,y]为第二区块的混合系数。DATAa[x,y]为第一区块的第一数据,DATAb[x,y]为第二区块的第二数据。R为数值简化位(Roundingbit)。Further, when one of the two mixing coefficients of the first block and the second block is zero and the other has a non-zero value, the block whose value is non-zero is adjusted to the block whose value is zero. For example, as shown in the following formula (2), INDa[x,y] is the mixing coefficient of the first block, INDb[x,y] is the mixing coefficient of the second block. DATAa[x,y] is the first data of the first block, and DATAb[x,y] is the second data of the second block. R is a rounding bit.
If(INDa[x,y]==0AND INDb[x,y]!=0)If (INDa[x,y]==0AND INDb[x,y]!=0)
DATAb[x,y]=(INDb[x,y]*DATAb[x,y]+(MODE-INDb[x,y])*INDa[x,y]+R)/MODEDATAb[x,y]=(INDb[x,y]*DATAb[x,y]+(MODE-INDb[x,y])*INDa[x,y]+R)/MODE
Else If(INDb[x,y]==0AND INDa[x,y]!=0)Else If (INDb[x,y]==0AND INDa[x,y]!=0)
DATAa[x,y]=(INDa[x,y]*DATAa[x,y]+(MODE-INDa[x,y])*INDb[x,y]+R)/MODEDATAa[x,y]=(INDa[x,y]*DATAa[x,y]+(MODE-INDa[x,y])*INDb[x,y]+R)/MODE
式(2)Formula (2)
如图5所示,由于区块B11的混合系数INDa[x,y]不为零且区块B21的混合系数INDb[x,y]为零,因此,将区块B21的数据和区块B11的数据以INDb[x,y]和(MODE-INDb[x,y])的比例进行加权平均以做为新的区块B11的数据。另一方面,由于区块B22的混合系数INDb[x,y]不为零且区块B12的混合系数INDa[x,y]为零,因此,将区块B12的数据和区块B22的数据以INDa[x,y]和(MODE-INDa[x,y])的比例进行加权平均以做为新的区块B22的数据。As shown in FIG5 , since the mixing coefficient INDa[x,y] of block B11 is not zero and the mixing coefficient INDb[x,y] of block B21 is zero, the data of block B21 and the data of block B11 are weighted averaged in the ratio of INDb[x,y] and (MODE-INDb[x,y]) to obtain the new data of block B11. On the other hand, since the mixing coefficient INDb[x,y] of block B22 is not zero and the mixing coefficient INDa[x,y] of block B12 is zero, the data of block B12 and the data of block B22 are weighted averaged in the ratio of INDa[x,y] and (MODE-INDa[x,y]) to obtain the new data of block B22.
在部分实施例中,MODE为搭配补偿值OFFSET的数值,可为32或64,但本发明不以此为限,本领域普通技术人员可依实际需求进行设计。In some embodiments, MODE is a value matched with the compensation value OFFSET, which may be 32 or 64, but the present invention is not limited thereto, and a person skilled in the art may design it according to actual needs.
由于在操作S440中是根据上下左右的每个边框RIM判断计算结果是否在任一边有超出,并将超出的数值纪录以在操作S450中作为进行调整混合系数的比例。换言之,第一混合系数与第一区块超出边框RIM的数值呈正相关。第二混合系数与第二区块超出边框RIM的数值呈正相关。因此,原先进行单边内插(single interpolation)的区块可维持单边内插。原先进行双边内插(bi-interpolation)且加上此计算还是没超出目标范围的区块可维持使用双边内插。达到在单边内插跟双边内插之间有另外一种过渡计算以减少画面不连续的现象。Since in operation S440, it is determined whether the calculation result exceeds on any side according to each border RIM of the upper, lower, left and right sides, and the exceeding value is recorded as the ratio for adjusting the mixing coefficient in operation S450. In other words, the first mixing coefficient is positively correlated with the value of the first block exceeding the border RIM. The second mixing coefficient is positively correlated with the value of the second block exceeding the border RIM. Therefore, the block that originally performed single interpolation can maintain single interpolation. The block that originally performed bilateral interpolation (bi-interpolation) and still did not exceed the target range after adding this calculation can continue to use bilateral interpolation. There is another transition calculation between single interpolation and bilateral interpolation to reduce the phenomenon of picture discontinuity.
接着,在操作S460中,根据调整后的第一数据或第二数据产生补帧数据。具体而言,如图6所示,由运动帧率转换器130根据调整后的第一区块的第一数据和第二区块的第二数据,以权值各为0.5进行加权平均来产生补帧数据,但本发明不以此为限,本领域普通技术人员可依实际需求进行设计。Next, in operation S460, the interpolation frame data is generated according to the adjusted first data or the second data. Specifically, as shown in FIG6 , the motion frame rate converter 130 generates the interpolation frame data by weighted averaging the adjusted first data of the first block and the second data of the second block with a weight of 0.5, but the present invention is not limited thereto, and a person skilled in the art can design it according to actual needs.
如此一来,通过计算用以内插的区块的位置是否超出边缘,判断此区块是否可能造成画面不连续。当进行双边内插时,若两个用以内插的画面区块中有一个区块的数据失效或拿不到数据(即,可能造成画面不连续),则以加权的方式利用另一个区块调整此区块的数据内容。换言之,通过混合系数调整两个区块进行内插的混合(blending)比例,使得所产生的补偿区块较相似于具有有效数据的区块,而避免因混入不适当的数据造成画面不连续。In this way, by calculating whether the position of the block used for interpolation exceeds the edge, it is determined whether this block may cause picture discontinuity. When bilateral interpolation is performed, if the data of one of the two picture blocks used for interpolation is invalid or cannot be obtained (that is, it may cause picture discontinuity), the data content of this block is adjusted by using the other block in a weighted manner. In other words, the blending ratio of the two blocks for interpolation is adjusted by the blending coefficient, so that the generated compensation block is more similar to the block with valid data, and the picture discontinuity caused by mixing inappropriate data is avoided.
在其他部分实施例中,在图像处理方法100的操作S440中,目标范围也可为覆盖/显现区域CR。在输入影像中,先前画面的图样在后续画面中被覆盖的区域称之为覆盖区域。另一方面,先前画面未出现的图样在后续画面中显现的区域称之为显现区域。具体而言,由运动帧率转换器130判断第一区块或第二区块(即,当前区块或参考区块)是否超过覆盖/显现检测器150所取得的覆盖/显现区域CR。当第一区块或第二区块超过覆盖/显现区域CR,则根据超出部分的大小设定混合系数IND[i,j]。当第一区块或第二区块未超过覆盖/显现区域CR,则标记此第一区块或第二区块的混合系数IND[i,j]为零或舍弃,代表此区块不需进行额外处理。In some other embodiments, in operation S440 of the image processing method 100, the target range may also be a coverage/visibility region CR. In the input image, the area where the pattern of the previous frame is covered in the subsequent frame is called the coverage area. On the other hand, the area where the pattern that did not appear in the previous frame appears in the subsequent frame is called the visibility region. Specifically, the motion frame rate converter 130 determines whether the first block or the second block (i.e., the current block or the reference block) exceeds the coverage/visibility region CR obtained by the coverage/visibility detector 150. When the first block or the second block exceeds the coverage/visibility region CR, the mixing coefficient IND[i,j] is set according to the size of the exceeding portion. When the first block or the second block does not exceed the coverage/visibility region CR, the mixing coefficient IND[i,j] of the first block or the second block is marked as zero or discarded, indicating that no additional processing is required for this block.
举例来说,如图7所示,在当前图框Fk中气球所涵盖的区域相对于参考图框Fk-1为覆盖区域。而在当前图框Fk中相对于参考图框Fk-1中的气球所涵盖的区块为显现区域。以补偿区块BL3c来说,由于第二区块BL3b落入覆盖/显现区域CR内,因此,第二区块BL3b的混合系数不为零,将根据第一区块BL3a的混合系数进行区块数据的调整。另外,以补偿区块BL4c来说,由于第一区块BL4a落入覆盖/显现区域CR内,因此,第二区块BL3b的混合系数不为零,将根据第一区块BL3a的混合系数进行区块数据的调整。For example, as shown in FIG7 , the area covered by the balloon in the current frame Fk is the coverage area relative to the reference frame Fk-1. The block covered by the balloon in the current frame Fk relative to the reference frame Fk-1 is the display area. Taking the compensation block BL3c as an example, since the second block BL3b falls into the coverage/display area CR, the mixing coefficient of the second block BL3b is not zero, and the block data will be adjusted according to the mixing coefficient of the first block BL3a. In addition, taking the compensation block BL4c as an example, since the first block BL4a falls into the coverage/display area CR, the mixing coefficient of the second block BL3b is not zero, and the block data will be adjusted according to the mixing coefficient of the first block BL3a.
如此一来,通过计算用以内插的区块的位置是否落入覆盖/显现区域CR,判断此区块是否可能造成画面不连续。当进行双边内插时,若两个用以内插的画面区块皆落入覆盖/显现区域CR中,则以加权的方式利用位于显现区域的区块调整位于覆盖区域的区块的数据内容。换言之,通过混合系数调整两个区块进行内插的混合比例,使得所产生的补偿区块较相似于具有有效数据的区块,而避免因混入不适当的数据造成画面不连续。In this way, by calculating whether the position of the block used for interpolation falls within the coverage/display region CR, it is determined whether this block may cause picture discontinuity. When bilateral interpolation is performed, if both of the two picture blocks used for interpolation fall within the coverage/display region CR, the data content of the block located in the coverage region is adjusted in a weighted manner using the block located in the display region. In other words, the mixing ratio of the two blocks for interpolation is adjusted by the mixing coefficient, so that the generated compensation block is more similar to the block with valid data, thereby avoiding picture discontinuity caused by mixing inappropriate data.
综上所述,通过图像处理装置100的运动帧率转换器130根据图像处理方法300计算、判断并调整用以内插的两个区块的混合比例,便能减少画面不连续的现象。此外,本发明的图像处理方法300不必使用到硬件的列缓冲器(line butter),因此不会产生大量的额外成本。In summary, the image discontinuity phenomenon can be reduced by the motion frame rate converter 130 of the image processing device 100 calculating, determining and adjusting the mixing ratio of two blocks for interpolation according to the image processing method 300. In addition, the image processing method 300 of the present invention does not need to use a hardware line buffer, so a large amount of additional cost will not be generated.
虽然上文已记载了本发明的实施例,但是这些实施例并非用来限定本发明,本技术领域普通技术人员可依据本发明明示或隐含的内容对本发明的技术特征做出改变和调整,但是种种变化均可能属于本发明保护范畴之内,换言之,本发明的保护范围须视本发明申请的权利要求书界定的范围为准。Although the embodiments of the present invention have been described above, these embodiments are not intended to limit the present invention. A person skilled in the art may make changes and adjustments to the technical features of the present invention based on the explicit or implicit contents of the present invention. However, all kinds of changes may fall within the scope of protection of the present invention. In other words, the scope of protection of the present invention shall be subject to the scope defined in the claims of the present invention application.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010448241.8A CN113726980B (en) | 2020-05-25 | 2020-05-25 | Image processing methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010448241.8A CN113726980B (en) | 2020-05-25 | 2020-05-25 | Image processing methods |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113726980A CN113726980A (en) | 2021-11-30 |
CN113726980B true CN113726980B (en) | 2024-06-25 |
Family
ID=78671540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010448241.8A Active CN113726980B (en) | 2020-05-25 | 2020-05-25 | Image processing methods |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113726980B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102292981A (en) * | 2009-10-08 | 2011-12-21 | 日本胜利株式会社 | Frame rate conversion apparatus and method |
CN106060539A (en) * | 2016-06-16 | 2016-10-26 | 深圳风景网络科技有限公司 | Video encoding method with low transmission bandwidth |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3628810B2 (en) * | 1996-06-28 | 2005-03-16 | 三菱電機株式会社 | Image encoding device |
JP4181592B2 (en) * | 2006-09-20 | 2008-11-19 | シャープ株式会社 | Image display apparatus and method, image processing apparatus and method |
JP2008244846A (en) * | 2007-03-27 | 2008-10-09 | Toshiba Corp | Device and method for interpolating frame |
TWI390954B (en) * | 2008-06-20 | 2013-03-21 | Chimei Innolux Corp | A apparatus of motion image compensation and method thereof |
US20100092101A1 (en) * | 2008-10-09 | 2010-04-15 | Chin-Chuan Liang | Methods and apparatus for enhancing image quality of motion compensated interpolation |
CN201374785Y (en) * | 2009-03-04 | 2009-12-30 | 晨星软件研发(深圳)有限公司 | Image processing device for determining motion vectors of interpolated frames |
TWI399094B (en) * | 2009-06-30 | 2013-06-11 | Silicon Integrated Sys Corp | Device and method for adaptive blending motion compensation interpolation in frame rate up-conversion |
US9148622B2 (en) * | 2011-12-29 | 2015-09-29 | Hong Kong Applied Science and Technology Research Institute Company, Limited | Halo reduction in frame-rate-conversion using hybrid bi-directional motion vectors for occlusion/disocclusion detection |
JP2014057198A (en) * | 2012-09-12 | 2014-03-27 | Toshiba Corp | Image processor, image processing system and image processing method |
JP6326180B1 (en) * | 2017-05-30 | 2018-05-16 | オリンパス株式会社 | Image processing device |
-
2020
- 2020-05-25 CN CN202010448241.8A patent/CN113726980B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102292981A (en) * | 2009-10-08 | 2011-12-21 | 日本胜利株式会社 | Frame rate conversion apparatus and method |
CN106060539A (en) * | 2016-06-16 | 2016-10-26 | 深圳风景网络科技有限公司 | Video encoding method with low transmission bandwidth |
Also Published As
Publication number | Publication date |
---|---|
CN113726980A (en) | 2021-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101422047B (en) | Motion estimation at image borders and display device | |
JP5576812B2 (en) | Image processing apparatus, image processing method, image processing program, and imaging apparatus | |
US20050232357A1 (en) | Motion vector estimation at image borders | |
EP1742485A2 (en) | Motion estimator and estimating method | |
TW200945904A (en) | Image interpolation with halo reduction | |
JP5887764B2 (en) | Motion compensation frame generation apparatus and method | |
JP5081898B2 (en) | Interpolated image generation method and system | |
CN106791279B (en) | Motion compensation method and system based on occlusion detection | |
JP2006504175A (en) | Image processing apparatus using fallback | |
CN106031144B (en) | The method and apparatus for generating motion compensated video frame | |
KR20070063304A (en) | Motion Estimator and Motion Estimation Method | |
US9135676B2 (en) | Image interpolation processing apparatus and method thereof | |
CN113726980B (en) | Image processing methods | |
US20090167958A1 (en) | System and method of motion vector estimation using content associativity | |
TWI748459B (en) | Image processing method | |
US8787696B1 (en) | Method and apparatus for replacing a block of pixels in a digital image frame to conceal an error associated with the block of pixels | |
JP5737072B2 (en) | Motion compensation frame generation apparatus and method | |
CN109788297B (en) | Video frame rate up-conversion method based on cellular automaton | |
US20100085486A1 (en) | Image processing apparatus and method | |
JP5448983B2 (en) | Resolution conversion apparatus and method, scanning line interpolation apparatus and method, and video display apparatus and method | |
TWI389568B (en) | Method and related apparatus for image de-interlace | |
TWI756527B (en) | Image processing method and associated image processing circuit | |
CN112492249B (en) | Image processing method and circuit | |
JP5887763B2 (en) | Motion compensation frame generation apparatus and method | |
JP3948616B2 (en) | Image matching device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |