CN103500437A - Fast NEDI (new edge-directed interpolation) image interpolation implementation method - Google Patents

Fast NEDI (new edge-directed interpolation) image interpolation implementation method Download PDF

Info

Publication number
CN103500437A
CN103500437A CN201310454078.6A CN201310454078A CN103500437A CN 103500437 A CN103500437 A CN 103500437A CN 201310454078 A CN201310454078 A CN 201310454078A CN 103500437 A CN103500437 A CN 103500437A
Authority
CN
China
Prior art keywords
interpolation
image
coefficient
nedi
central point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310454078.6A
Other languages
Chinese (zh)
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.)
Air Force Engineering University of PLA
Original Assignee
Air Force Engineering University of PLA
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 Air Force Engineering University of PLA filed Critical Air Force Engineering University of PLA
Priority to CN201310454078.6A priority Critical patent/CN103500437A/en
Publication of CN103500437A publication Critical patent/CN103500437A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种快速NEDI图像插值实现方法,该方法步骤为:判断放大倍数n是否为0,如果是,跳转至步骤五,如果非,继续;使用模板计算差值系数,该系数可分为中心点的差值系数A1和非中心点的差值系数B1;重复使用A1和B1这套系数以及已知像素点计算出带插值点的像素值,得到2倍放大的图像;判断放大倍数n是否为1,如果是,跳转至步骤五,如果非,n=n-1并跳转至步骤三;结束,输出最终图像。本发明采用圆形模板,能更好的反映低分辨率图像的局部统计信息,提高插值系数的准确性,插值后能够消除边缘附近振铃现象,得到边缘更为清晰锐利的高分辨率图像;且在高倍图像放大过程中仅计算一次插值系数并重复使用,大大减小了运算复杂度。

The invention discloses a fast NEDI image interpolation realization method. The steps of the method are: judge whether the magnification factor n is 0, if yes, jump to step five, if not, continue; use a template to calculate the difference coefficient, and the coefficient can be It is divided into the difference coefficient A1 of the center point and the difference coefficient B1 of the non-center point; repeatedly use the coefficients of A1 and B1 and the known pixel points to calculate the pixel value with interpolation points, and obtain a 2 times enlarged image; judge the zoom Whether the multiple n is 1, if yes, go to step five, if not, n=n-1 and go to step three; end, output the final image. The invention adopts a circular template, which can better reflect the local statistical information of the low-resolution image, improve the accuracy of the interpolation coefficient, eliminate the ringing phenomenon near the edge after interpolation, and obtain a high-resolution image with clearer and sharper edges; Moreover, the interpolation coefficients are only calculated once and reused in the high-magnification image enlargement process, which greatly reduces the computational complexity.

Description

一种快速NEDI图像插值实现方法A Fast Implementation Method of NEDI Image Interpolation

技术领域technical field

本发明属于NEDI算法领域,尤其涉及一种快速NEDI图像插值实现方法。The invention belongs to the field of NEDI algorithms, in particular to a fast NEDI image interpolation realization method.

背景技术Background technique

超分辨率技术在很多领域都有其使用价值,包括高清晰度电视,视频图像高分辨率打印,医学成像,航空及其卫星成像,遥感,监控图像,及数字摄像等。然而在图像获取过程中,受成像系统(如CCD照相机等)、外界环境以及成像技术等多种因素的限制,使得图像都存在不同程度的退化,难以满足实际需要。对数字图像进行放大,是多媒体技术和图像显示技术的一个重要课题。现有的图像缩放算法大致分为传统插值算法和边缘自适应算法两类,前者包括最近邻近插值法、双线性插值法和立方卷积插值法等。由于它们对整幅图像采用同一种插值函数,因此缩放后的图像会出现块效应或细节模糊等现象。Super-resolution technology has its application value in many fields, including high-definition television, high-resolution printing of video images, medical imaging, aviation and satellite imaging, remote sensing, surveillance images, and digital photography. However, in the process of image acquisition, due to the limitations of various factors such as imaging system (such as CCD camera, etc.), external environment, and imaging technology, the image has different degrees of degradation, which is difficult to meet the actual needs. Enlarging digital images is an important topic in multimedia technology and image display technology. Existing image scaling algorithms are roughly divided into traditional interpolation algorithms and edge adaptive algorithms. The former includes nearest neighbor interpolation, bilinear interpolation, and cubic convolution interpolation. Because they use the same interpolation function for the entire image, the scaled image will have blockiness or blurred details.

因此,国内外许多学者都致力于寻找能够获得更好视觉效果的新插值方法,这些方法首先需要获得图像准确的边缘方向信息进而采用不同的插值方法。但是精确地估计出边缘方向尚是一个仍待解决的问题,所以这些算法不可避免的会造成插值后图像存在较多的人工加工痕迹,影响视觉质量。为了解决这一问题,Li和Orchard于2001年提出一种利用低分辨率图像内在局部结构特性和统计特性对高分辨率图像未知像素进行插值的NEDI(NewEdge-DirectedInterpolation)[5-6]算法。该方法是一种典型的具有良好边缘保持特性的算法,与传统线性插值相比避免了由于跨越边缘插值而引入的边缘细节退化现象,显著提高了图像的视觉质量。Therefore, many scholars at home and abroad are committed to finding new interpolation methods that can obtain better visual effects. These methods first need to obtain accurate edge direction information of the image and then use different interpolation methods. However, accurately estimating the edge direction is still a problem to be solved, so these algorithms will inevitably cause more artificial processing traces in the interpolated image, which will affect the visual quality. In order to solve this problem, Li and Orchard proposed a NEDI (NewEdge-Directed Interpolation)[5-6] algorithm in 2001 to interpolate unknown pixels in high-resolution images by using the intrinsic local structural properties and statistical properties of low-resolution images. This method is a typical algorithm with good edge-preserving properties. Compared with traditional linear interpolation, it avoids the degradation of edge details caused by cross-edge interpolation, and significantly improves the visual quality of the image.

经典NEDI算法在估计局部协方差时使用了一个中心位于待插值点的M×M矩形模板,在计算低分辨率上协方差系数时使用公式

Figure BDA0000389030100000021
其中y=[y1...yk...yM 2]T为一个包含M×M个点像素的数值向量,这M×M个像素包含在一个局部窗中;C为4×M2数值矩阵,其第k列向量为yk对角线方向的最近邻4点像素值。The classic NEDI algorithm uses an M×M rectangular template centered at the point to be interpolated when estimating the local covariance, and uses the formula when calculating the covariance coefficient at low resolution
Figure BDA0000389030100000021
Among them, y=[y 1 ...y k ...y M 2 ] T is a numerical vector containing M×M pixels, and these M×M pixels are included in a local window; C is 4×M 2Numerical matrix, whose kth column vector is the pixel value of the nearest 4 points in the diagonal direction of y k .

该矩形模板虽然计算简单,但其却不具备方向性,无法兼顾模板内像素边缘的方向,因此不能准确估计局部区域的几何特性,而这恰恰正是导致经典NEDI算法插值后图像边缘部分出现振铃效应的主要原因。且经典NEDI采用M×M矩形模板是基于假设模板中所有像素对α的计算具有相同的贡献,然而实际上由于模板中每个像素点到中心待插值点的距离不一致,影响程度也并不相同,所以这种假设往往并不成立。Although the calculation of the rectangular template is simple, it does not have directionality and cannot take into account the direction of the pixel edge in the template, so the geometric characteristics of the local area cannot be accurately estimated, and this is exactly what causes the edge part of the image to vibrate after interpolation by the classic NEDI algorithm. The main cause of the bell effect. And the classic NEDI adopts the M×M rectangular template based on the assumption that all pixels in the template have the same contribution to the calculation of α. However, in fact, because the distance from each pixel in the template to the center point to be interpolated is inconsistent, the degree of influence is not the same. , so this assumption is often not valid.

使用经典NEDI算法将图像放大两倍需要两个步骤,第一步插出原始四个像素的中心点,第二步在被插出中心点像素的基础上再插出水平和垂直方向上的像素。在经典NEDI算法中第二步插值会用到第一步生成的像素点,从而可能导致误差传递,影响最终的插值结果。过去文献提出的算法在进行第二步插值时则利用待插值点周围相邻的6个降采样点,这样可以消除误差累积问题,但是插值系数计算不精确以及高低分辨率协方差不能总满足几何对偶性的缺陷依然没有得到解决。Using the classic NEDI algorithm to enlarge the image twice requires two steps. The first step is to interpolate the center point of the original four pixels, and the second step is to interpolate the pixels in the horizontal and vertical directions based on the interpolated center point pixel. . In the classic NEDI algorithm, the second-step interpolation will use the pixels generated in the first step, which may cause error transmission and affect the final interpolation result. The algorithm proposed in the past literature uses 6 adjacent downsampling points around the point to be interpolated when performing the second step of interpolation, which can eliminate the problem of error accumulation, but the calculation of interpolation coefficients is inaccurate and the high and low resolution covariance cannot always satisfy the geometric requirements. The flaw of duality remains unresolved.

使用经典NEDI算法将图像放大两倍需要两个步骤,第一步插出原始四个像素的中心点,第二步在被插出中心点像素的基础上再插出水平和垂直方向上的像素。当图像被放大四倍时,还要重复同样的过程,由于这一次所使用的像素数目是之前所需的四倍,所以计算量将成指数增长。Using the classic NEDI algorithm to enlarge the image twice requires two steps. The first step is to interpolate the center point of the original four pixels, and the second step is to interpolate the pixels in the horizontal and vertical directions based on the interpolated center point pixel. . When the image is enlarged by four times, the same process is repeated, and since the number of pixels used this time is four times that required before, the amount of calculation will increase exponentially.

经典NEDI算法计算插值系数时使用矩形模板,不能兼顾模板内像素方向性,而且在插值时仅使用单一窗口,可能导致高低分辨率上协方差不满足几何对偶性,造成插值后图像边缘存在比较明显的振铃现象,影响视觉质量。而且经典的NEDI算法计算复杂度高,限制了该方法在实际中的应用。The classic NEDI algorithm uses a rectangular template when calculating interpolation coefficients, which cannot take into account the directionality of pixels in the template, and only uses a single window during interpolation, which may cause the covariance of high and low resolutions to fail to satisfy geometric duality, resulting in obvious edges of the image after interpolation The ringing phenomenon affects the visual quality. Moreover, the classic NEDI algorithm has high computational complexity, which limits the practical application of this method.

NEDI虽然实现了方向自适应,但计算复杂度很高。由于边缘像素在一幅图像中往往只占一小部分,所以需要一种新的算法来降低计算复杂度。Although NEDI realizes direction adaptation, its computational complexity is very high. Since edge pixels often only occupy a small part of an image, a new algorithm is needed to reduce the computational complexity.

发明内容Contents of the invention

本发明实施例的目的在于提供一种快速NEDI图像插值实现方法,旨在解决经典的NEDI算法计算复杂度高,限制了该方法在实际中应用的问题。The purpose of the embodiments of the present invention is to provide a fast NEDI image interpolation implementation method, aiming at solving the problem that the classic NEDI algorithm has high computational complexity, which limits the practical application of the method.

本发明实施例是这样实现的,一种快速NEDI图像插值实现方法,该方法包括以下步骤:The embodiment of the present invention is realized like this, a kind of fast NEDI image interpolation realization method, this method comprises the following steps:

步骤一:判断放大倍数n是否为0,如果是,跳转至步骤五;如果非,继续;Step 1: Determine whether the magnification factor n is 0, if yes, go to step 5; if not, continue;

步骤二:使用模板计算差值系数,该系数可分为中心点的差值系数A1和非中心点的差值系数B1;Step 2: Use the template to calculate the difference coefficient, which can be divided into the difference coefficient A1 of the central point and the difference coefficient B1 of the non-central point;

步骤三:重复使用A1和B1这套系数以及已知像素点计算出带插值点的像素值,得到2倍放大的图像;Step 3: Repeatedly use the coefficients of A1 and B1 and the known pixel points to calculate the pixel value with interpolation points, and obtain a 2 times enlarged image;

步骤四:判断放大倍数n是否为1,如果是,跳转至步骤五;如果非,n=n-1并跳转至步骤三;Step 4: Determine whether the magnification factor n is 1, if yes, go to step 5; if not, n=n-1 and go to step 3;

步骤五:结束,输出最终图像。Step 5: End, output the final image.

进一步,该改进的插值模板是一种中心位于待插值点的圆形模板。Further, the improved interpolation template is a circular template whose center is located at the point to be interpolated.

进一步,该插值系数重复使用策略以对图像进行4倍放大为例。Further, the strategy of reusing the interpolation coefficients takes 4 times magnification of an image as an example.

进一步,图像进行4倍放大,即要在下面四个原始像素点中插出若干个点,Further, the image is magnified by 4 times, that is, several points are to be inserted in the following four original pixel points,

实现4倍图像放大,即要进行两次2倍放大,在第一次2倍放大时:中心点插值得到了一组插值系数A1;非中心点插值得到了一组插值系数B1;To achieve 4 times image magnification, that is, two times of magnification are required. In the first 2 times of magnification: a set of interpolation coefficients A1 is obtained by center point interpolation; a set of interpolation coefficients B1 is obtained by non-center point interpolation;

根据区域相似性,第二次2倍放大时:只要待插的中心点是在这4个原始像素的区域内就可重复使用A1这组系数进行插值计算,此时,中心点插值将使用到一个原始点,一个第一次插出的中心点,两个第一次插出的非中心点,以及插值系数A1;According to the regional similarity, during the second 2x zoom-in: as long as the center point to be interpolated is within the area of these 4 original pixels, the group of coefficients A1 can be used repeatedly for interpolation calculation. At this time, the center point interpolation will be used One original point, one first interpolated center point, two first interpolated non-central points, and interpolation coefficient A1;

第二次非中心点插值是同样的思路重复使用B1这组系数。The second non-central point interpolation uses the same idea to repeatedly use the B1 set of coefficients.

本发明采用混合插值的方法,首先利用sobel算子检测边缘,将原像素点划分为两个区域:平坦区域和边缘区域,对于平坦区域像素点进行双三次插值;对于边缘区域采用本发明改进的NEDI算法;本发明提供的快速NEDI图像插值实现方法采用了圆形模板,可以更好的反映出低分辨率图像的局部统计信息,提高插值系数的准确性,插值后能够消除边缘附近大部分的振铃现象,得到边缘更为清晰锐利的高分辨率图像。且在高倍图像放大过程中仅计算一次插值系数并重复使用,大大减小了运算复杂度。The present invention adopts the mixed interpolation method, first utilizes the sobel operator to detect the edge, divides the original pixel into two areas: flat area and edge area, carries out bicubic interpolation for the flat area pixel; adopts the improved method of the present invention for the edge area NEDI algorithm; the fast NEDI image interpolation implementation method provided by the present invention adopts a circular template, which can better reflect the local statistical information of the low-resolution image, improve the accuracy of the interpolation coefficient, and can eliminate most of the edges near the edge after interpolation. Ringing phenomenon, resulting in high-resolution images with clearer and sharper edges. Moreover, the interpolation coefficients are only calculated once and reused in the high-magnification image enlargement process, which greatly reduces the computational complexity.

附图说明Description of drawings

图1是本发明实施例提供的快速NEDI图像插值实现方法的流程图;Fig. 1 is the flow chart of the fast NEDI image interpolation realization method that the embodiment of the present invention provides;

图2是本发明实施例提供的图像插值算法处理示意图;Fig. 2 is a schematic diagram of image interpolation algorithm processing provided by an embodiment of the present invention;

图3是本发明实施例提供的圆形模板示意图;Fig. 3 is a schematic diagram of a circular template provided by an embodiment of the present invention;

图4是本发明实施例提供的4倍图像放大示意图。Fig. 4 is a schematic diagram of a 4-fold image magnification provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

图1示出了本发明提供的快速NEDI图像插值实现方法的流程。为了便于说明,仅仅示出了与本发明相关的部分。Fig. 1 shows the flow of the fast NEDI image interpolation implementation method provided by the present invention. For ease of illustration, only the parts relevant to the present invention are shown.

本发明的实施例提供的快速NEDI图像插值实现方法包括以下步骤:The fast NEDI image interpolation realization method that the embodiment of the present invention provides comprises the following steps:

步骤一:判断放大倍数n是否为0,如果是,跳转至步骤五;如果非,继续;Step 1: Determine whether the magnification factor n is 0, if yes, go to step 5; if not, continue;

步骤二:使用模板计算差值系数,该系数可分为中心点的差值系数A1和非中心点的差值系数B1;Step 2: Use the template to calculate the difference coefficient, which can be divided into the difference coefficient A1 of the central point and the difference coefficient B1 of the non-central point;

步骤三:重复使用A1和B1这套系数以及已知像素点计算出带插值点的像素值,得到2倍放大的图像;Step 3: Repeatedly use the coefficients of A1 and B1 and the known pixel points to calculate the pixel value with interpolation points, and obtain a 2 times enlarged image;

步骤四:判断放大倍数n是否为1,如果是,跳转至步骤五;如果非,n=n-1并跳转至步骤三;Step 4: Determine whether the magnification factor n is 1, if yes, go to step 5; if not, n=n-1 and go to step 3;

步骤五:结束,输出最终图像。Step 5: End, output the final image.

作为本发明实施例的一优化方案,该改进的插值模板是一种中心位于待插值点的圆形模板。As an optimization solution of the embodiment of the present invention, the improved interpolation template is a circular template whose center is located at the point to be interpolated.

作为本发明实施例的一优化方案,该插值系数重复使用策略以对图像进行4倍放大为例。As an optimization solution of the embodiment of the present invention, the interpolation coefficient reuse strategy takes 4 times zooming in on an image as an example.

作为本发明实施例的一优化方案,图像进行4倍放大,即要在下面四个原始像素点中插出若干个点,As an optimization scheme of the embodiment of the present invention, the image is magnified by 4 times, that is, several points must be inserted in the following four original pixel points,

实现4倍图像放大,即要进行两次2倍放大,在第一次2倍放大时:中心点插值得到了一组插值系数A1;非中心点插值得到了一组插值系数B1;To achieve 4 times image magnification, that is, two times of magnification are required. In the first 2 times of magnification: a set of interpolation coefficients A1 is obtained by center point interpolation; a set of interpolation coefficients B1 is obtained by non-center point interpolation;

根据区域相似性,第二次2倍放大时:只要待插的中心点是在这4个原始像素的区域内就可重复使用A1这组系数进行插值计算,此时,中心点插值将使用到一个原始点,一个第一次插出的中心点,两个第一次插出的非中心点,以及插值系数A1;According to the regional similarity, during the second 2x zoom-in: as long as the center point to be interpolated is within the area of these 4 original pixels, the group of coefficients A1 can be used repeatedly for interpolation calculation. At this time, the center point interpolation will be used One original point, one first interpolated center point, two first interpolated non-central points, and interpolation coefficient A1;

第二次非中心点插值是同样的思路重复使用B1这组系数。The second non-central point interpolation uses the same idea to repeatedly use the B1 set of coefficients.

下面结合附图及具体实施例对本发明的应用原理作进一步描述。The application principle of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

本发明采用混合插值的方法,如图2所示,首先利用sobel算子检测边缘,将原像素点划分为两个区域:平坦区域和边缘区域。对于平坦区域像素点进行双三次插值;对于边缘区域采用本文改进的NEDI算法。The present invention adopts the hybrid interpolation method, as shown in Fig. 2, first uses the sobel operator to detect the edge, and divides the original pixel into two regions: a flat region and an edge region. Bicubic interpolation is carried out for the pixels in the flat area; for the edge area, the improved NEDI algorithm in this paper is used.

如图1所示,本发明提供的改进NEDI算法进行2n倍放大的算法的流程具体步骤如下:As shown in Figure 1, the improved NEDI algorithm provided by the present invention carries out the specific steps of the flow process of the algorithm of 2n times amplification as follows:

S101:判断放大倍数n是否为0?如果是,跳转至Step5;如果非,继续S101: Determine whether the magnification factor n is 0? If yes, go to Step5; if not, continue

S102:使用本文提出的模板(将在2.2.1节给予详细阐述)计算差值系数,该系数可分为中心点的差值系数A1和非中心点的差值系数B1S102: Use the template proposed in this paper (will be elaborated in Section 2.2.1) to calculate the difference coefficient, which can be divided into the difference coefficient A1 of the central point and the difference coefficient B1 of the non-central point

S103:重复使用A1和B1这套系数以及已知像素点计算出带插值点的像素值(具体方法将在2.2.2节给予阐述),得到2倍放大的图像S103: Repeatedly use the coefficients of A1 and B1 and the known pixel points to calculate the pixel value with interpolation points (the specific method will be explained in Section 2.2.2), and obtain a 2 times enlarged image

S104:判断放大倍数n是否为1?如果是,跳转至Step5;如果非,n=n-1并跳转至Step3S104: Determine whether the magnification factor n is 1? If yes, go to Step5; if not, n=n-1 and go to Step3

S105:结束,输出最终图像。S105: end, and output the final image.

通过改进,该方法可使用一次并行计算分别得到准确的中心点插值系数和非中心点插值系数。利用这些系数和原始像素点,即可得到2倍(甚至更高倍)放大后的图像。Through improvement, the method can obtain accurate center point interpolation coefficients and non-center point interpolation coefficients by one parallel calculation. By using these coefficients and the original pixels, a 2x (or even higher) enlarged image can be obtained.

本发明提供的改进的插值模板如下:The improved interpolation template provided by the present invention is as follows:

插值系数在NEDI算法中将决定第一步中心点像素的插值结果,而对改进后的算法而言,由于之后的高倍放大中还要重复用这一组插值系数,所以插值系数的准确性非常重要。经典NEDI算法在估计局部协方差时使用了一个中心位于待插值点的矩形模板,使用这种模板虽然计算简单,但其却不具备方向性,无法兼顾模板内像素边缘的方向,因此不能准确估计局部区域的几何特性,而这恰恰正是导致经典NEDI算法插值后图像边缘部分出现振铃效应的主要原因。且经典NEDI采用M×M矩形模板是基于假设模板中所有像素对α的计算具有相同的贡献,然而实际上由于模板中每个像素点到中心待插值点的距离不一致,影响程度也并不相同,所以这种假设往往并不成立。In the NEDI algorithm, the interpolation coefficient will determine the interpolation result of the center point pixel in the first step, but for the improved algorithm, since this set of interpolation coefficients will be reused in the subsequent high-magnification zoom-in, the accuracy of the interpolation coefficients is very high. important. The classic NEDI algorithm uses a rectangular template whose center is located at the point to be interpolated when estimating the local covariance. Although the calculation of this template is simple, it does not have directionality and cannot take into account the direction of the edge of the pixel in the template, so it cannot be accurately estimated. The geometric characteristics of the local area, and this is precisely the main reason for the ringing effect at the edge of the image after interpolation by the classic NEDI algorithm. And the classic NEDI adopts the M×M rectangular template based on the assumption that all pixels in the template have the same contribution to the calculation of α. However, in fact, because the distance from each pixel in the template to the center point to be interpolated is inconsistent, the degree of influence is not the same. , so this assumption is often not valid.

为了解决这一问题,本发明提出一种中心位于待插值点的圆形模板,用以计算插值系数,模板示意图如图3所示(模板半径用MT表示)。使用该圆形模板一方面消除了原矩形模板中四个拐角点对插值系数估计的干扰,而且圆形模板能够兼顾像素方向性,从而提高插值系数计算的准确度。In order to solve this problem, the present invention proposes a circular template whose center is located at the point to be interpolated to calculate the interpolation coefficient. The schematic diagram of the template is shown in FIG. 3 (the template radius is represented by MT). On the one hand, the use of the circular template eliminates the interference of the four corner points in the original rectangular template on the estimation of the interpolation coefficient, and the circular template can take into account the directionality of the pixels, thereby improving the accuracy of the calculation of the interpolation coefficient.

本发明提供的插值系数重复使用策略:The interpolation coefficient reuse strategy provided by the present invention:

为了降低计算复杂度,在进行高倍放大时,本发明提出插值系数重复使用策略。以对图像进行4倍放大为例,即要在下面四个原始像素点中插出若干个点如图4所示,In order to reduce computational complexity, the present invention proposes a strategy for reusing interpolation coefficients when performing high-magnification amplification. Take the 4 times magnification of the image as an example, that is, to insert several points in the following four original pixel points, as shown in Figure 4,

实现4倍图像放大,即要进行两次2倍放大,在第一次2倍放大时:中心点插值得到了一组插值系数A1;非中心点插值得到了一组插值系数B1。那么,根据区域相似性,第二次2倍放大时:只要待插的中心点是在这4个原始像素的区域内就可重复使用A1这组系数进行插值计算(此时,中心点插值将使用到一个原始点,一个第一次插出的中心点,两个第一次插出的非中心点,以及插值系数A1);第二次非中心点插值也是同样的思路重复使用B1这组系数。由于NEDI算法最大的计算量在插值系数的计算上,而在得到插值系数之后,插值本身的运算量不大,该改进算法在只计算一次插值系数的情况下最终实现了图像的4倍(甚至更高倍)放大,所以大大的节省了系统的总运算量。To achieve 4 times image magnification, two times of 2 times magnification are required. During the first 2 times magnification: a set of interpolation coefficients A1 is obtained by center point interpolation; a set of interpolation coefficients B1 is obtained by non-center point interpolation. Then, according to the regional similarity, during the second 2x zoom-in: as long as the center point to be interpolated is within the area of these 4 original pixels, the group of coefficients A1 can be used repeatedly for interpolation calculation (at this time, the center point interpolation will be Use an original point, a central point inserted for the first time, two non-central points inserted for the first time, and the interpolation coefficient A1); the second non-central point interpolation is the same idea and reuse the B1 group coefficient. Since the NEDI algorithm’s largest calculation load is in the calculation of interpolation coefficients, and after obtaining the interpolation coefficients, the calculation load of the interpolation itself is not large, and the improved algorithm finally realizes 4 times the size of the image (or even Higher magnification), so the total calculation amount of the system is greatly saved.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (4)

1. a quick NEDI image interpolation implementation method, is characterized in that, the method comprises the following steps:
Step 1: judge that whether enlargement factor n is 0, if so, jumps to step 5; If non-, continue;
Step 2: use formwork calculation difference coefficient, this coefficient can be divided into the difference coefficient B 1 of difference coefficient A1 and the non-central point of central point;
Step 3: reuse this cover coefficient of A1 and B1 and known pixels point and calculate the pixel value with interpolation point, obtain 2 times of enlarged images;
Step 4: judge that whether enlargement factor n is 1, if so, jumps to step 5; If non-, n=n-1 also jumps to step 3;
Step 5: finish the output final image.
2. quick NEDI image interpolation implementation method as claimed in claim 1, is characterized in that, this improved interpolation template is a kind of circular shuttering that is centered close to interpolation point.
3. quick NEDI image interpolation implementation method as claimed in claim 1, is characterized in that, this interpolation coefficient is reused strategy and is enlarged into example so that image is carried out to 4 times.
4. quick NEDI image interpolation implementation method as claimed in claim 3, is characterized in that, image carries out 4 times of amplifications, will insert out several points in four original image vegetarian refreshments below;
Realize that 4 times of images amplify, will carry out twice 2 times of amplifications, when 2 times of amplifications for the first time: the central point interpolation has obtained one group of interpolation coefficient A1; Non-central point interpolation has obtained one group of interpolation coefficient B1;
According to regional similarity, during 2 times of amplifications for the second time: as long as central point to be inserted is to carry out interpolation calculation with regard to this group coefficient of reusable A1 in the zone of these 4 original pixels, now, the central point interpolation will use an original point, a central point of inserting out for the first time, two non-central points of inserting out for the first time, and interpolation coefficient A1;
Non-central point interpolation is that same thinking is reused this group coefficient of B1 for the second time.
CN201310454078.6A 2013-09-27 2013-09-27 Fast NEDI (new edge-directed interpolation) image interpolation implementation method Pending CN103500437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310454078.6A CN103500437A (en) 2013-09-27 2013-09-27 Fast NEDI (new edge-directed interpolation) image interpolation implementation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310454078.6A CN103500437A (en) 2013-09-27 2013-09-27 Fast NEDI (new edge-directed interpolation) image interpolation implementation method

Publications (1)

Publication Number Publication Date
CN103500437A true CN103500437A (en) 2014-01-08

Family

ID=49865640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310454078.6A Pending CN103500437A (en) 2013-09-27 2013-09-27 Fast NEDI (new edge-directed interpolation) image interpolation implementation method

Country Status (1)

Country Link
CN (1) CN103500437A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106611405A (en) * 2015-10-23 2017-05-03 展讯通信(天津)有限公司 Image interpolation method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050058371A1 (en) * 2003-09-11 2005-03-17 Chin-Hui Huang Fast edge-oriented image interpolation algorithm
CN102622723A (en) * 2011-05-25 2012-08-01 上海大学 Image interpolation based on CUDA (compute unified device architecture) and edge detection

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050058371A1 (en) * 2003-09-11 2005-03-17 Chin-Hui Huang Fast edge-oriented image interpolation algorithm
CN102622723A (en) * 2011-05-25 2012-08-01 上海大学 Image interpolation based on CUDA (compute unified device architecture) and edge detection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘楠,毕笃彦,林嘉豪,杨忠斌: "改进型快速NEDI图像插值实现算法", 《计算机应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106611405A (en) * 2015-10-23 2017-05-03 展讯通信(天津)有限公司 Image interpolation method and device
CN106611405B (en) * 2015-10-23 2020-04-07 展讯通信(天津)有限公司 Image interpolation method and device

Similar Documents

Publication Publication Date Title
CN107895345B (en) Method and device for improving resolution of face image
US8233745B2 (en) Image processing apparatus and image processing method
CN103996170A (en) Image edge saw-tooth eliminating method with super resolution
CN108154474B (en) Super-resolution image reconstruction method, device, medium and equipment
Dengwen An edge-directed bicubic interpolation algorithm
CN111402152B (en) Processing method and device of disparity map, computer equipment and storage medium
CN102136144B (en) Image registration reliability model and reconstruction method of super-resolution image
CN110675404A (en) Image processing method, image processing apparatus, storage medium, and terminal device
JP6236259B2 (en) Image processing apparatus, image processing method, and image processing program
CN106851046A (en) Video dynamic super-resolution processing method and system
US20150116464A1 (en) Image processing apparatus and image capturing apparatus
EP2887306B1 (en) Image processing method and apparatus
TWI492187B (en) Method and device for processing a super-resolution image
CN106971376A (en) A kind of image-scaling method based on conspicuousness model
TWI554107B (en) Imaging adjusting method capable of varing scaling ratios and related camera and image processing system
KR20120020821A (en) Method and apparatus for correcting distorted image
CN109325909B (en) Image amplification method and image amplification device
CN103646379B (en) A kind of image magnification method and device
JP2009100407A (en) Image processing apparatus and method thereof
CN101477678B (en) A Blind Detection Method of Digital Image Scaling Factor
CN101917624B (en) Method for reconstructing high resolution video image
CN106558021A (en) Video enhancement method based on super-resolution technique
CN103500437A (en) Fast NEDI (new edge-directed interpolation) image interpolation implementation method
CN104853059A (en) Super-resolution image processing method and device
CN103841327B (en) Four-dimensional light field decoding preprocessing method based on original image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140108