CN102231203A - Image autoregressive interpolation method based on edge detection - Google Patents

Image autoregressive interpolation method based on edge detection Download PDF

Info

Publication number
CN102231203A
CN102231203A CN 201110199093 CN201110199093A CN102231203A CN 102231203 A CN102231203 A CN 102231203A CN 201110199093 CN201110199093 CN 201110199093 CN 201110199093 A CN201110199093 A CN 201110199093A CN 102231203 A CN102231203 A CN 102231203A
Authority
CN
China
Prior art keywords
image
interpolation
pixel
odd
pixels
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
CN 201110199093
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.)
Xidian University
Original Assignee
Xidian University
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 Xidian University filed Critical Xidian University
Priority to CN 201110199093 priority Critical patent/CN102231203A/en
Publication of CN102231203A publication Critical patent/CN102231203A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an image autoregressive interpolation method based on edge detection, and the method is mainly used for solving the problem of high complexity of the existing autoregressive interpolation technique. The method comprises the following steps: carrying out one quarter of downsampling on original images, carrying out edge detection on the downsampling images, approximately obtaining the edge detection images of the to-be interpolated recovery images according to the edge detection images of the downsampling images; classifying the to-be-interpolated pixels of the to-be-interpolated recovery images into to-be-interpolated pixels in smooth area and edge area, adopting bicubic to carry out interpolation on the to-be-interpolated pixels in the smooth area, adopting the autoregressive interpolation method to interpolate the to-be-interpolated pixels in the edge area; and obtaining the image after interpolation. On the premise of ensuring the visual effects of the images, the method in the invention can be utilized to carry out amplification, denoising, mending, deinterlacing and compression on the images.

Description

Based on edge-detected image autoregression interpolation method
Technical field
The invention belongs to technical field of image processing, relate to image interpolation method, this method can be used for image amplification, denoising, repairs, goes in the processing such as interlacing and compression.
Background technology
In recent years, more and more higher requirement has promoted development of digital image and widespread use to picture quality for the high speed development of computer technology and people, and method of interpolation has also obtained using widely as an important method of image processing techniques.Traditional interpolation has neighbor interpolation, bilinear interpolation bilinear and bicubic interpolation bicubic, these methods realize simple, but essence has the character of low-pass filter, and image after the interpolation is had smooth effect, has lost some important detail of the high frequency of image; Many afterwards researchists have proposed new interpolation method to keep the image border preferably, that wherein the most classical is the interpolation method NEDI based on the edge maintenance that Li and Orchard propose, this method is estimated the covariance of high-definition picture with the low-resolution image covariance, inserts the pixel value of losing according to the covariance of estimating then; In recent years, the SAI that Xiaolin Wu proposes the autoregression interpolation further improves on the NEDI basis, this method is estimated to finish by two-dimentional autoregressive modeling and piece, this algorithm comes down to a kind of adaptive inseparable two-dimentional higher order filter, SAI improves a lot on visual effect and Y-PSNR, but this method computation complexity height.
Summary of the invention
The objective of the invention is to overcome the deficiency of existing image interpolation technology, provide a kind of, reduce the computation complexity of autoregression method of interpolation based on edge-detected image autoregression interpolation method.
Realize that the above-mentioned purpose technical scheme is to add the rim detection operation in the autoregression interpolation, the interpolation pixel is divided into fringe region pixel or smooth region pixel, the fringe region pixel is used the autoregression interpolation, and the smooth region pixel is used the bicubic interpolation, and its concrete steps comprise as follows:
(1) reads in the image M that a secondary size is 512 * 512 raw form, this image is carried out 1/4th down-samplings, obtain size and be image M behind 256 * 256 the down-sampling 1
(2) with image M behind edge detection operator Sobel and the down-sampling 1The phase convolution obtains this edge of image image M 2, wherein the Sobel operator has level and vertical two operators, is shown below;
x r = - 1 - 2 - 1 0 0 0 1 2 1 ,
Figure BDA0000076332160000022
(3) with image M behind the down-sampling 1With edge image M 2Carry out the recovery of 512 * 512 sizes respectively, obtain image M behind the down-sampling 1Interpolation recover image M ' 1With edge image M 2Interpolation recover image M ' 2, and with described M 1And M 2Each pixel is placed on M ' successively 1And M ' 2The position of odd-numbered line odd column is with M ' 1And M ' 2The pixel of all the other positions is as pixel to be inserted;
(4) to described interpolation recover image M ' 2The known pixels of odd-numbered line odd column position averages, obtain this interpolation recover image M ' 2The value of pixel to be inserted, the value of this pixel to be inserted is compared with predetermined threshold value T, if greater than T then this pixel to be inserted belongs to fringe region, otherwise belong to smooth region, threshold value T is between 180 to 220;
(5) described interpolation is recovered image M ' 2Approximate as described interpolation recover image M ' 1Edge image, with M ' 1And M ' 2The pixel of middle corresponding position is corresponding one by one, if M ' 1In pixel to be inserted at smooth region, then use M ' 1The known pixels of odd-numbered line odd column position is carried out the bicubic interpolation, obtains the value of this pixel to be inserted; If M ' 1In pixel edge region to be inserted, then use M ' 1The known pixels of odd-numbered line odd column position is carried out the autoregression interpolation, obtains the value of this pixel to be inserted, obtains the image M after the interpolation at last " 1
The present invention has utilized rim detection, the pixel to be inserted of image is divided at level and smooth and fringe region, the pixel to be inserted of smooth region is used the bicubic interpolation, the bicubic interpolation is good and computation complexity is low in the interpolation of smooth region, so the present invention under the prerequisite that guarantees image visual effect after the interpolation, has reduced the computation complexity of autoregression interpolation.
Description of drawings
Fig. 1 is realization flow figure of the present invention;
Fig. 2 is the experiment simulation figure that the lena image is carried out interpolation with the present invention and existing autoregression method of interpolation;
Fig. 3 is the experiment simulation figure that the peppers image is carried out interpolation with the present invention and existing autoregression method of interpolation;
Fig. 4 is the experiment simulation figure that the boat image is carried out interpolation with the present invention and autoregression method of interpolation.
Embodiment
With reference to accompanying drawing 1, specific implementation step of the present invention is as follows:
Step 1 is read in a secondary size and is the image M of 512 * 512 raw form, and this image is carried out 1/4th down-samplings, obtains size and be image M behind 256 * 256 the down-sampling 1
Step 2 is with image M behind edge detection operator Sobel and the down-sampling 1The phase convolution obtains this edge of image image M 2
The Sobel operator comprises level and vertical two operators, as (1) formula:
x r = - 1 - 2 - 1 0 0 0 1 2 1 ,
Figure BDA0000076332160000032
Wherein
Figure BDA0000076332160000033
Be horizontal operator,
Figure BDA0000076332160000034
Be vertical operator;
Described with image M behind edge detection operator Sobel and the down-sampling 1The phase convolution realizes as follows:
(2a) with the horizontal component of edge detection operator Sobel
Figure BDA0000076332160000035
With image M behind the down-sampling 1The phase convolution;
(2b) with the vertical component of edge detection operator Sobel
Figure BDA0000076332160000036
With image M behind the down-sampling 1The phase convolution;
(2c) to (2a) and the convolution results that (2b) the obtains root of making even, obtain image M behind Sobel operator and the down-sampling 1Convolution results.
Step 3 is with image M behind the down-sampling 1With edge image M 2Carry out the recovery of 512 * 512 sizes respectively, obtain image M behind the down-sampling 1Interpolation recover image M ' 1With edge image M 2Interpolation recover image M ' 2, and with described M 1And M 2Each pixel is placed on M ' successively 1And M ' 2The position of odd-numbered line odd column is with M ' 1And M ' 2The pixel of all the other positions is as pixel to be inserted.
Step 4, to described interpolation recover image M ' 2The known pixels of odd-numbered line odd column position averages, obtain this interpolation recover image M ' 2The value of pixel to be inserted, the value of this pixel to be inserted is compared with predetermined threshold value T, if the value of pixel to be inserted greater than T, then this pixel to be inserted belongs to fringe region, otherwise belongs to smooth region, threshold value T is arranged between 180 to 220.
Step 5, with described interpolation recover image M ' 2Approximate as described interpolation recover image M ' 1Edge image, with M ' 1And M ' 2The pixel of middle corresponding position is corresponding one by one, if M ' 1In pixel to be inserted at smooth region, then use M ' 1The known pixels of odd-numbered line odd column position is carried out the bicubic interpolation, obtains the value of this pixel to be inserted; If M ' 1In pixel edge region to be inserted, then use M ' 1The known pixels of odd-numbered line odd column position is carried out the autoregression interpolation, obtains the value of this pixel to be inserted, obtains the image M after the interpolation at last " 1
Described use M ' 1The known pixels of odd-numbered line odd column position is carried out the autoregression interpolation, realizes as follows:
(5a) use interpolation recover image M ' 1In be in the known pixels of 5 * 5 odd-numbered line odd columns of neighborhood of pixels to be inserted position of fringe region, to M ' 1In the known pixels of 4 * 4 odd-numbered line odd columns of this neighborhood of pixels to be inserted position carry out optimal estimation, obtain M ' 1In the weight vector of this pixel to be inserted:
Figure BDA0000076332160000037
(5b) according to weight vector Utilize formula (2) calculate interpolation recover image M ' 1In be in fringe region pixel y to be inserted 5Value:
Figure BDA0000076332160000041
Wherein: y 5Be the M ' that at every turn will insert 1In be in the pixel to be inserted of fringe region, y 1, y 2, y 3, y 4, y 6, y 7, y 8, y 9Be M ' 1Middle y 58 pixels to be inserted of neighborhood, y iBe
Figure BDA0000076332160000042
In i pixel to be inserted, α tBe In t element, x I-tBe M ' 1Middle y iThe known pixels of neighborhood t odd-numbered line odd column position, x iBe M ' 1Middle y 5The known pixels of 4 odd-numbered line odd columns of neighborhood position, y I-tBe M ' 1Middle x i4 pixels to be inserted of neighborhood;
(5c) will calculate interpolation recover image M ' 1In be in fringe region pixel y to be inserted 5Value, as interpolation recover image M ' 1In be in the autoregression interpolation of fringe region pixel to be inserted.
Effect of the present invention can further specify by following emulation experiment and contrast objective evaluation index:
(1) experiment condition:
Experimental situation of the present invention is Microsoft Visual Studio 2005, the experiment raw data is that three width of cloth sizes are the gray level image of 512 * 512 raw form, be respectively lena, peppers, boat, Fig. 2 (a) is the original image of lena, and Fig. 3 (b) is the original image of peppers, and Fig. 4 (c) is the original image of boat.
(2) experiment content:
(2.1) the lena original image shown in Fig. 2 (a) is had now the experiment simulation of autoregression method of interpolation, its simulation result is shown in Fig. 2 (b); The lena original image is carried out the experiment simulation of interpolation method of the present invention, and its simulation result is shown in Fig. 2 (c);
(2.2) the peppers original image shown in Fig. 3 (a) is had now the experiment simulation of autoregression method of interpolation, its simulation result is shown in Fig. 3 (b); The peppers original image is carried out the experiment simulation of interpolation method of the present invention, and its simulation result is shown in Fig. 3 (c);
(2.3) the boat original image shown in Fig. 4 (a) is had now the experiment simulation of autoregression method of interpolation, its simulation result is shown in Fig. 4 (b); The boat original image is carried out the experiment simulation of interpolation method of the present invention, and its simulation result is shown in Fig. 4 (c);
(2.4) interpolation method of the present invention and the autoregression interpolation method contrast simulation result on the objective evaluation index:
The objective evaluation index that the present invention uses has Y-PSNR PSNR, average gradient T and program runtime, and these objective evaluation indexs are defined as follows:
Y-PSNR PSNR: the size of supposing two width of cloth images is X * Y, make f (x, y) expression original image,
Figure BDA0000076332160000044
Image after the expression interpolation, objective evaluation index Y-PSNR PSNR definition as (3) formula:
PSNR = 10 lg { 255 2 1 XY Σ x = 1 X Σ y = 1 Y [ f ( x , y ) - f ^ ( x , y ) ] 2 } - - - ( 3 )
Average gradient T: the size of supposing a sub-picture is X * Y, make f (x, the y) image of expression after the interpolation, objective evaluation index average gradient T definition as (4) formula:
T = 1 XY Σ x = 1 X Σ y = 1 Y ( ΔI x 2 + Δ I y 2 ) / 2 - - - ( 4 )
△ I wherein x=f (i+1, j)-f (i, j), △ I y=f (i, j+1)-f (i, j);
Program runtime: whole procedure is moved the time of the usefulness that finishes.
Table 1 has provided lena, peppers, and boat three width of cloth images objective evaluation index Y-PSNR PSNR of interpolation method of the present invention and existing autoregression interpolation method, the concrete outcome of average gradient T and time, wherein black matrix is performance the best among the three.
Each evaluation index of image relatively after two kinds of method interpolation of table 1
Figure BDA0000076332160000053
(3) interpretation:
From the experiment simulation of interpolation method of the present invention Fig. 2 (b) as a result, Fig. 3 (b), the experiment simulation of Fig. 4 (b) and existing autoregression method of interpolation is Fig. 2 (c) as a result, Fig. 3 (c), Fig. 4 (c) more as can be seen, the visual effect of two kinds of interpolation methods of image is suitable after the interpolation.
As can be seen from Table 1: interpolation method of the present invention and existing autoregression interpolation method obtains Y-PSNR PSNR and average gradient T is suitable substantially, and the average gradient T interpolation method of the present invention of peppers and boat also will be a little more than existing autoregression interpolation method, and in the result of program runtime, interpolation method of the present invention is lower than the autoregression method of interpolation.
More than experiment shows, interpolation method of the present invention has reduced the computation complexity of autoregression interpolation under the prerequisite that guarantees image visual effect after the interpolation.

Claims (3)

1. one kind based on edge-detected image autoregression interpolation method, comprises the steps:
(1) reads in the image M that a secondary size is 512 * 512 raw form, this image is carried out 1/4th down-samplings, obtain size and be image M behind 256 * 256 the down-sampling 1
(2) with image M behind edge detection operator Sobel and the down-sampling 1The phase convolution obtains this edge of image image M 2, wherein the Sobel operator has level and vertical two operators, is shown below;
x r = - 1 - 2 - 1 0 0 0 1 2 1 ,
(3) with image M behind the down-sampling 1With edge image M 2Carry out the recovery of 512 * 512 sizes respectively, obtain image M behind the down-sampling 1Interpolation recover image M ' 1With edge image M 2Interpolation recover image M ' 2, and with described M 1And M 2Each pixel is placed on M ' successively 1And M ' 2The position of odd-numbered line odd column is with M ' 1And M ' 2The pixel of all the other positions is as pixel to be inserted;
(4) to described interpolation recover image M ' 2The known pixels of odd-numbered line odd column position averages, obtain this interpolation recover image M ' 2The value of pixel to be inserted, the value of this pixel to be inserted is compared with predetermined threshold value T, if greater than T then this pixel to be inserted belongs to fringe region, otherwise belong to smooth region, threshold value T is between 180 to 220;
(5) described interpolation is recovered image M ' 2Approximate as described interpolation recover image M ' 1Edge image, with M ' 1And M ' 2The pixel of middle corresponding position is corresponding one by one, if M ' 1In pixel to be inserted at smooth region, then use M ' 1The known pixels of odd-numbered line odd column position is carried out the bicubic interpolation, obtains the value of this pixel to be inserted; If M ' 1In pixel edge region to be inserted, then use M ' 1The known pixels of odd-numbered line odd column position is carried out the autoregression interpolation, obtains the value of this pixel to be inserted, obtains the image M after the interpolation at last " 1
2. image autoregression interpolation method according to claim 1, wherein described in the step (2) with image M behind edge detection operator Sobel and the down-sampling 1The phase convolution, carry out as follows:
(2a) with the horizontal component of edge detection operator Sobel
Figure FDA0000076332150000013
With image M behind the down-sampling 1The phase convolution;
(2b) with the vertical component of edge detection operator Sobel With image M behind the down-sampling 1The phase convolution;
(2c) (2a) and the convolution results that (2b) obtains are made even root obtains image M behind Sobel operator and the down-sampling 1Convolution results.
3. image autoregression interpolation method according to claim 1, wherein the use M ' described in the step (5) 1The known pixels of odd-numbered line odd column position is carried out the autoregression interpolation, carries out as follows:
(5a) use interpolation recover image M ' 1In be in the known pixels of 5 * 5 odd-numbered line odd columns of neighborhood of pixels to be inserted position of fringe region, to M ' 1In the known pixels of 4 * 4 odd-numbered line odd columns of this neighborhood of pixels to be inserted position carry out optimal estimation, obtain M ' 1In the weight vector of this pixel to be inserted:
Figure FDA0000076332150000021
(5b) according to weight vector
Figure FDA0000076332150000022
Utilize following formula calculate interpolation recover image M ' 1In be in fringe region pixel y to be inserted 5Value:
Figure FDA0000076332150000023
Wherein: y 5Be the M ' that at every turn will insert 1In be in the pixel to be inserted of fringe region, y 1, y 2, y 3, y 4, y 6, y 7, y 8, y 9Be M ' 1Middle y 58 pixels to be inserted of neighborhood, y iBe
Figure FDA0000076332150000024
In i pixel to be inserted, α tBe
Figure FDA0000076332150000025
In t element, x I-tBe M ' 1Middle y iThe known pixels of neighborhood t odd-numbered line odd column position, x iBe M ' 1Middle y 5The known pixels of 4 odd-numbered line odd columns of neighborhood position, y I-tBe M ' 1Middle x i4 pixels to be inserted of neighborhood;
(5c) will calculate interpolation recover image M ' 1In be in fringe region pixel y to be inserted 5Value, as interpolation recover image M ' 1In be in the autoregression interpolation of fringe region pixel to be inserted.
CN 201110199093 2011-07-17 2011-07-17 Image autoregressive interpolation method based on edge detection Pending CN102231203A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110199093 CN102231203A (en) 2011-07-17 2011-07-17 Image autoregressive interpolation method based on edge detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110199093 CN102231203A (en) 2011-07-17 2011-07-17 Image autoregressive interpolation method based on edge detection

Publications (1)

Publication Number Publication Date
CN102231203A true CN102231203A (en) 2011-11-02

Family

ID=44843765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110199093 Pending CN102231203A (en) 2011-07-17 2011-07-17 Image autoregressive interpolation method based on edge detection

Country Status (1)

Country Link
CN (1) CN102231203A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769745A (en) * 2012-06-21 2012-11-07 哈尔滨工业大学 Image self-adaptation down-sampling method depending on interpretation
CN102930504A (en) * 2012-11-07 2013-02-13 山东大学 Digital image magnification method capable of maintaining edge features
CN104159119A (en) * 2014-07-07 2014-11-19 大连民族学院 Super-resolution reconstruction method and system for video images during real-time sharing playing
CN105243359A (en) * 2015-09-15 2016-01-13 国家电网公司 Method for eliminating guardrail in electric power component photo
US9336573B2 (en) 2013-03-29 2016-05-10 Automotive Research & Test Center Self-adaptive image edge correction device and method thereof
CN110335198A (en) * 2019-07-08 2019-10-15 威创集团股份有限公司 A kind of image processing method and system
CN110691216A (en) * 2019-06-22 2020-01-14 王刚 Running state on-site monitoring mechanism

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008067363A2 (en) * 2006-11-27 2008-06-05 Nec Laboratories America, Inc. Soft edge smoothness prior and application on alpha channel super resolution
CN101710998A (en) * 2009-11-05 2010-05-19 哈尔滨工业大学(威海) Color filter array interpolation method based on support vector machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008067363A2 (en) * 2006-11-27 2008-06-05 Nec Laboratories America, Inc. Soft edge smoothness prior and application on alpha channel super resolution
CN101710998A (en) * 2009-11-05 2010-05-19 哈尔滨工业大学(威海) Color filter array interpolation method based on support vector machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《计算机工程》 20101031 王会鹏等 一种基于区域的双三次图像插值算法 第216-218页 第36卷, 第19期 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769745A (en) * 2012-06-21 2012-11-07 哈尔滨工业大学 Image self-adaptation down-sampling method depending on interpretation
CN102769745B (en) * 2012-06-21 2014-12-31 哈尔滨工业大学 Image self-adaptation down-sampling method depending on interpretation
CN102930504A (en) * 2012-11-07 2013-02-13 山东大学 Digital image magnification method capable of maintaining edge features
CN102930504B (en) * 2012-11-07 2015-07-08 山东大学 Digital image magnification method capable of maintaining edge features
US9336573B2 (en) 2013-03-29 2016-05-10 Automotive Research & Test Center Self-adaptive image edge correction device and method thereof
CN104159119A (en) * 2014-07-07 2014-11-19 大连民族学院 Super-resolution reconstruction method and system for video images during real-time sharing playing
CN105243359A (en) * 2015-09-15 2016-01-13 国家电网公司 Method for eliminating guardrail in electric power component photo
CN105243359B (en) * 2015-09-15 2020-03-27 国家电网公司 Method for eliminating guardrail in electric power component photo
CN110691216A (en) * 2019-06-22 2020-01-14 王刚 Running state on-site monitoring mechanism
CN110335198A (en) * 2019-07-08 2019-10-15 威创集团股份有限公司 A kind of image processing method and system

Similar Documents

Publication Publication Date Title
CN103500435B (en) A kind of adapting to image interpolation method of edge guiding and VLSI implement device thereof
CN102231203A (en) Image autoregressive interpolation method based on edge detection
Dong et al. RRSGAN: Reference-based super-resolution for remote sensing image
US8335394B2 (en) Image processing method for boundary resolution enhancement
CN104899830B (en) A kind of image super-resolution method
US9076234B2 (en) Super-resolution method and apparatus for video image
CN102354394B (en) Image super-resolution method and system
CN104574277A (en) Image interpolation method and image interpolation device
CN104867111A (en) Block-blur-kernel-set-based heterogeneous video blind deblurring method
KR101584115B1 (en) Device for generating visual attention map and method thereof
JP2009212969A (en) Image processing apparatus, image processing method, and image processing program
CN102236887A (en) Motion-blurred image restoration method based on rotary difference and weighted total variation
CN107392854A (en) A kind of joint top sampling method based on local auto-adaptive gain factor
US20220076459A1 (en) Image optimization method, apparatus, device and storage medium
CN103020898A (en) Sequence iris image super-resolution reconstruction method
Zhu et al. Fast single image dehazing through edge-guided interpolated filter
US20090185756A1 (en) Image processing device and image processing method
Bai et al. Densely convolutional attention network for image super-resolution
RU2583725C1 (en) Method and system for image processing
CN102647607A (en) Method for interpolation in three-dimension (3D) HALF form image
CN101841641B (en) Video amplification method and system based on subdivision method
Kim et al. Image and video retargeting using adaptive scaling function
CN100580702C (en) Corneal endothelium cell image processing method
KR20070119482A (en) Image resampling method
Zope et al. Edge Enhancement for Image Super-Resolution using Deep Learning Approach

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: 20111102