WO2009153717A2 - Digital image restoration - Google Patents
Digital image restoration Download PDFInfo
- Publication number
- WO2009153717A2 WO2009153717A2 PCT/IB2009/052500 IB2009052500W WO2009153717A2 WO 2009153717 A2 WO2009153717 A2 WO 2009153717A2 IB 2009052500 W IB2009052500 W IB 2009052500W WO 2009153717 A2 WO2009153717 A2 WO 2009153717A2
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- block
- image
- restored
- digital image
- pixels
- Prior art date
Links
- 238000000034 method Methods 0.000 claims abstract description 70
- 238000000638 solvent extraction Methods 0.000 claims abstract description 6
- 230000007480 spreading Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims 2
- 239000000945 filler Substances 0.000 abstract 1
- 230000008569 process Effects 0.000 description 21
- 230000006870 function Effects 0.000 description 7
- 238000013213 extrapolation Methods 0.000 description 6
- 230000009466 transformation Effects 0.000 description 6
- 238000001914 filtration Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008570 general process Effects 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/10—Image enhancement or restoration using non-spatial domain filtering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20021—Dividing image into blocks, subimages or windows
Definitions
- the invention relates to the field of digital image restoration, and in particular to techniques for de-blurring of digital images.
- Blur In Images may be caused by various factors, Including camera motion during exposure time (e.g., for low luminosity scenes) and the optica! Imaging system being out of focus.
- camera motion e.g., for low luminosity scenes
- optica! Imaging system being out of focus.
- blurring may be identified, addressed and overcome or mrrimised, as for example described by Banham & Katsaggelos in “Digital image Restoration", IEEE Signal Processing Mag. 14, pp 24-41. March 1997 and by Lündgk & Btemond in “Basic Methods for Image Restoration and Identification", Handbook of Image and Video Processing, Elsevier Academic Press, ed. Al Bovik.2nd Edition, 2005.
- An object of the invention is to address the above mentioned problems in order to optimise processes for restoring digital Images reducing blurring.
- a method of restoring a digital image comprising partitioning the image into a plurality of overlapping blocks of pixels, processing each block to produce a restored block and concatenating non-overlapping regions of the restored blocks to produce a restored digital image, wherein the step of processing each block comprises:
- An aim of the invention is to restore as closely as possible an accurate image of an original scene from a blurred image.
- Methods according to the invention have the advantages of lowering the delay between image acquisition and processing, and requiring less memory and CPU load than with known conventional processing techniques. The methods are therefore adaptable for low cost portable devices such as digital cameras. Furthermore, certain embodiments are capable of restoring images having spatially variant blurring.
- the values of the additional pixels are optionally extrapolated linearly from pixel values on opposing edges of each block of the image. This ensures a smoother transition between adjacent block borders, and attenuates artifacts that may result from the Fourier transform.
- Each padded block preferably consists of a square array df N % N pixels, with N being preferably equal to 2", where n is an integer. This allows for a faster implementation of a 2D Fourier transform.
- the step of applying an inverse blur filter optionally comprises multiplying each component of the transformed block by a corresponding component of the inverse blur filter.
- the components of the inverse blur filter are optionalJy determined according to: where F w are the frequency domain components of the blur filter, F * «, is the complex conjugate of F 1 *. and K is a constant. K is chosen according to an optimum balance between blur removal and visual artifacts in the restored image.
- the components of the inverse blur filter are alternatively optionally determined according to: where Fuv are the frequency domain components of the biur filter, is the complex conjugate of w ⁇ is a constant and .
- L m is a 2D Laplaclan operator, which acts as a high-pass filter, and a is a tuning or reguiariza ⁇ on parameter.
- the restored image is thereby smoothed by attenuating its high frequency content, according to the degree of filtering applied by the scaled Laplaclan operator.
- An inverse biur filter is optionally determined for each block, thereby enabling spatially variant blurring in the image to be reduced.
- the same inverse blur filter is applied to each block, for example when applying the method to reduce spatially invariant blurring, i.e. blurring across each block in the digital image.
- the plurality of overlapping blocks may together make up a selected portion of the digital image to be restored. Only the selected portion then needs to be processed according to the method, thereby reducing the overall processing time required.
- a plurality of portions of the digital image are each partitioned into respective pluralities of overlapping blocks of pixels, and the method performed on each of the plurality of portions of the digital image. This applies for example to situations where different portions of the image are blurred to different degrees.
- the method is optionally performed separately on the luminance and chrominance components of the digital image. It is assumed throughout the description that the image is in YUV encoded format, although aspects of the invention may apply equally to other image encoding formats.
- the method preferably comprises estimating a point spreading function from the digital image and determining the inverse blur filter from a Fourier transform of the point spreading function.
- the point spreading function may be estimated for each block, for example when dealing with spatially variant blurring.
- the method in any or all aspects is preferably carried out by a suitably programmed computer or other electronic device.
- an electronic device comprising an image acquisition module and a processing module configured to perform the method of the first aspect of the invention.
- the electronic device of the second aspect of the invention thereby comprises means for partitioning an acquired image into a plurality of overlapping blocks of pixels, means for processing each block to produce a restored block and concatenating non-overlapping regions of the restored blocks to produce a restored digital image, wherein the means for processing each block comprises: i) means for padding the block with additional pixels having values extrapolated from a range of pixel values across the block to produce a padded block; ii) means for performing a Fourier transform operation on the padded block to produce a transformed block; iii) means for applying an inverse blur filter to the transformed padded block to produce a filtered block; and iv> means for performing an inverse Fourier transform on the filtered block to obtain the restored block.
- figure 1 is a flow diagram of a block-based restoration method
- figure 2 is a flow diagram of the restoration filter of figure 1
- figure 3 is a schematic representation of a digital image divided into overlapping blocks
- figure 4 is a schematic representation of padding of an overlapping block
- figure 5 is a schematic plot representing linear extrapolation of pixels in a row of a padded block
- figure 6 is a 2-D Laplacian operator
- figure 7 is a series of digital images illustrating the effect of different de- blurring processes
- figure 8 is a further series of digital images illustrating the effect of different de-blurring processes.
- the invention is concerned in general with the reconstruction or estimation of uncorrupted images from blurred and noisy images.
- Blurring in an image can be caused by relative motion between the camera and the original scene (particularly for dark scenes where exposure time is relatively long), or by an optical system that is out of focus.
- a blurred image can be considered to result from the convolution of an original (i.e. ideal) image and a point spreading function (PSF)
- PSF point spreading function
- Yori is the luminance value of the original pixel (ij) and is the noise that corrupts the blurred image.
- the PSF is assumed to be spatially invariant, i.e. the image is blurred in exactly the same way at every spatial location.
- the blurring may instead be spatially variant.
- the overall method 100 comprises two general processes 110, 120 that together arrive at an estimate of the original image from a degraded or blurred image.
- Each process 110. 120 is performed on the observed image Y n .
- a degree of blur in the image is identified by identifying
- the overall goal of the method 100 is to perform an operation on the degraded image that is a better approximation of the inverse of the imperfections in the image formation system through use of an estimated PSF.
- Figure 2 shows a flow diagram of an exemplary block-based demurring process 120 comprising the steps of image partitioning, padding, Fourier transformation, frequency domain filtering, inverse Fourier transformation and block extraction. Each of these steps is detailed by example in the following sections.
- the blurred image s partitioned (step 210) into blocks of size M x M.
- M depends on the PSF length.
- Each block is extended by a number of pixels, a, on each side (right, left, top and bottom), where a side adjoins an adjacent block, as depicted in Figure 3. Sides of blocks along the outer edges of the image are not extended.
- the resulting overlapped block width w and height h is equal to M+2a for inner blocks and to M+a for blocks located on the vertical or horizontal edge of the image.
- the block size M is preferably significantly greater than the PSF length.
- the blocks are preferably square, i.e. of dimensions MxM, since blocks before the FFT process are also square (NxN) except for those located at the right and bottom border of the image. If the image width is not a multiple of M. then the block size at the right border is M'xM, where M' is the image width, modulo M. For these blocks, the overlap will be a pixels at the left side of the block, but more pixels can be padded in the horizontal direction so that the final size is N.
- the size is NxM", where M" is the image height, modulo M. More pixels can be padded in the vertical direction so that the final size is N.
- the comer block (right bottom) has a size of M'xM", and can therefore be padded with additional pixels along both the right and bottom edges.
- Padding Figure 3 illustrates schematically a partitioned image 300, the image 300 being divided into a plurality of blocks 310. Each block 310 is treated as an overlapping block 320 having a width w and height h.
- Each overlapping block 320 is then padded by linearly extrapolating pixel values on opposing sides of the block 320. as illustrated in figure 4.
- the resulting square block 410 is of size N x N pixels.
- DFT discrete Fourier transform
- each row 420 in the overlapped block 320 is extrapolated by N-w pixels (i.e. by (N-w)/2 pixels on each side), and each column 430 is extrapolated by N-h pixels.
- each column 430 of length h is padded symmetrically with (N-h)/2 pixels on each side, with the values of each padding pixel Y 1 of the column 430 provided by:
- Yc and Y 0 are the luminance values at pixels C and D respectively and Y, is the linearly extrapolated luminance value at the pixel of the column 430 corresponding to the first, or topmost, pixel of the column 430) .
- figure 5 shows a plot of luminance Y as a function of pixel position i across a row 420 of a padded block 410.
- the pixels A and B, having luminance values Y A and Y 8 respectively, are extrapolated according to equation 2 above, which defines the relationship indicated by dotted line 510.
- Extrapolation is carried out in two steps, first for horizontal (or vertical) padding, and second for vertical (or horizontal) padding.
- a pixels are padded on each side of the block.
- the number of padded rows is ft and the resulting block has a size of N x ft.
- a pixels are then padded on each side (top and bottom).
- the number of padded columns is N and the resulting block has a size of N x N.
- linear extrapolation the same result is obtained if vertical padding is instead performed before horizontal padding.
- Other non-linear extrapolation methods may alternatively be used, but linear extrapolation is generally preferred due to its simplicity.
- Each pixel value is rounded to an integer and dipped to fit between the limits of an allowable range. For example, if each pixel is encoded according to an 8-bit scheme, the extrapolated values above are rounded to integers and clipped between 0 and 255, i.e. any values above 255 resulting from the above equations are made to equal 255 and any values below 0 are made to equal 0.
- the 2-D FFT can be computed by first computing a 1-0 FFT along each row 420 of the input block 410. and then computing a 1-D FFT along each column of the resulting intermediate block.
- This step can be achieved by multiplying each frequency component by a a filtering coefficient W 1 *. according to the following equation:
- K is the complex conjugate of K is a constant and I ⁇ , is the PSF spectrum (i.e. the OFT).
- An exemplary range of values for K would be between around 0.01 and 0.1, the higher end of this range being more suitable for noisy images and the lower end for images with low noise.
- Another method for computing W ⁇ consists of replacing K by a high pass filter, according to the following equation:
- the coefficients can be computed once before starting the restoration process on each block. Otherwise, for spatially variant blurring, the coefficients can be computed for each block, or for subsets of blocks making up regions of the image where blurring is spatially invariant.
- the luminance component of the restored NxN block resulting from process 260 of the method is retrieved by applying a 2-0 inverse FFT (IFFT) on the NxN block for and .
- IFFT inverse FFT
- the 2-D !FFT can be computed along each row of the block, and then along each column.
- an MxM restored block is obtained by taking the real part of the NxN block output from the IFFT process 260 (after rounding to integer values and cupping to between a desired range, e.g. between 0 and 255 for 8-bit encoding) and keeping the useful part of the block, of size MxM.
- the MxM restored blocks are concatenated (step 280) to form the output image (for the luminance component).
- similar processes can be applied to the other components of the image.
- Figures 7 and 8 illustrate the influence of overlapping and padding on visual quality after image restoration on a blurred original image.
- the cropped areas in figures 7b&c and 8b&c are features of the original image having pixel dimensions not being an integer multiple of the chosen block size, which can be addressed by the use of additional padding pixels as described above.
- the blurred image (figure 7a) is processed using an overlap of 8 pixels and with no padding, resulting in the image of figure 7b, and processed with an overlap of 8 pixels and a padding of 2 pixels, resulting in the image of figure 7c.
- the biurred image (figure 8a) is processed using non-overlapping blocks, resulting in the restored image of figure 8b, and using an overlap of 10 pixels, resulting in the restored image of figure 8c. Both processes used a padding of 6 pixels and an FFT size of 64. The use of overlapping blocks significantly reduces visible block artifacts in the restored image.
- Certain embodiments allow for adaptive processing, e.g., when some image objects are out-of-focus while others are in focus, resulting in spatially variant blurring.
- different coefficients «'hilst.. can be used for different regions of a blurred image, or even for each different block in the image.
- the debiurring process can begin during image acquisition, provided that an appropriate blur model or PSF is known beforehand. This can reduce delay or latency in processing images.
- Image quality is an increasingly important feature for portable devices (such as PDAs, mobile phones, etc) with digital imaging facilities, where processing power is necessarily limited by comparison with conventional general purpose computers.
- the proposed method in allowing for efficient compensation for blurring, allows such devices to minimise on use of resources such as memory and CPU load.
- a further aspect of the invention is therefore a electronic device comprising an image acquisition module, which may include a camera unit, and image processing components configured to perform the method according to the embodiments described above.
- the electronic device may be portable, for example in the form of a hand-portable unit such as a mobile phone.
- Other embodiments are also intended to be within the scope of the invention, as defined by the appended claims.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
A method of restoring a digital image, the method comprising partitioning the image into a plurality of blocks of pixels, processing each block to produce a restored block and concatenating the restored blocks to produce a restored digital image, wherein the step of processing each biock comprises: i) padding the block with additional pixels having values extrapolated from a range of pixel values across the block to produce a padded biock; si) performing a Fourier transform operation on the padded block to produce a transformed block; iii) applying an inverse biur filler to the transformed padded block to produce a filtered block; and Iv) performing an inverse Fourier transform on the filtered block to obtain the restored block.
Description
DESCRiPTiON
DIGITAL IMAGE RESTORATION
The invention relates to the field of digital image restoration, and in particular to techniques for de-blurring of digital images.
Blur In Images may be caused by various factors, Including camera motion during exposure time (e.g., for low luminosity scenes) and the optica! Imaging system being out of focus. There are various known ways in which blurring may be identified, addressed and overcome or mrrimised, as for example described by Banham & Katsaggelos in "Digital image Restoration", IEEE Signal Processing Mag. 14, pp 24-41. March 1997 and by Lagendgk & Btemond in "Basic Methods for Image Restoration and Identification", Handbook of Image and Video Processing, Elsevier Academic Press, ed. Al Bovik.2nd Edition, 2005.
Most prior frequency domain image restoration techniques require that an entire image is stored before starting the restoration process. This can lead to a long delay between image acquisition and processing, with processing requiring a large amount of device resources In terms of CPU load and memory. Moreover, such techniques are not suited to restoring images having spatiaβy-variant (i.e. local) blurs, since processing is performed globally on the observed image.
An object of the invention is to address the above mentioned problems in order to optimise processes for restoring digital Images reducing blurring.
in accordance with a first aspect of the invention, there is provided a method of restoring a digital image, the method comprising partitioning the image into a plurality of overlapping blocks of pixels, processing each block to produce a restored block and concatenating non-overlapping regions of the restored blocks to produce a restored digital image, wherein the step of processing each block comprises:
I) padding the block with additional pixels having values extrapolated from a range of pixel values across the block to produce a padded block; ii) performing a Fourier transform operation on the padded block to produce a transformed block;
iii) applying an Inverse Wur filter to the transformed padded block to produce a filtered block; and
Iv) performing an inverse Fourier transform on the filtered block to obtain the restored block.
An aim of the invention is to restore as closely as possible an accurate image of an original scene from a blurred image. Methods according to the invention have the advantages of lowering the delay between image acquisition and processing, and requiring less memory and CPU load than with known conventional processing techniques. The methods are therefore adaptable for low cost portable devices such as digital cameras. Furthermore, certain embodiments are capable of restoring images having spatially variant blurring.
The values of the additional pixels are optionally extrapolated linearly from pixel values on opposing edges of each block of the image. This ensures a smoother transition between adjacent block borders, and attenuates artifacts that may result from the Fourier transform.
Each padded block preferably consists of a square array df N % N pixels, with N being preferably equal to 2", where n is an integer. This allows for a faster implementation of a 2D Fourier transform.
The step of applying an inverse blur filter optionally comprises multiplying each component of the transformed block by a corresponding component of the inverse blur filter.
The components of the inverse blur filter are optionalJy determined according
to:
where Fw are the frequency domain components of the blur filter, F*«, is the complex conjugate of F1*. and K is a constant. K is chosen according to an optimum balance between blur removal and visual artifacts in the restored image.
The components of the inverse blur filter are alternatively optionally determined according to:
where Fuv are the frequency domain components of the biur filter,
is the complex conjugate of
w α is a constant and . Lm is a 2D Laplaclan operator, which
acts as a high-pass filter, and a is a tuning or reguiarizaϋon parameter. The restored image is thereby smoothed by attenuating its high frequency content, according to the degree of filtering applied by the scaled Laplaclan operator.
An inverse biur filter is optionally determined for each block, thereby enabling spatially variant blurring in the image to be reduced. Alternatively, the same inverse blur filter is applied to each block, for example when applying the method to reduce spatially invariant blurring, i.e. blurring across each block in the digital image.
Optionally, in particular when processing images having spatially variant blurring, the plurality of overlapping blocks may together make up a selected portion of the digital image to be restored. Only the selected portion then needs to be processed according to the method, thereby reducing the overall processing time required.
Optionally, a plurality of portions of the digital image are each partitioned into respective pluralities of overlapping blocks of pixels, and the method performed on each of the plurality of portions of the digital image. This applies for example to situations where different portions of the image are blurred to different degrees.
The method is optionally performed separately on the luminance and chrominance components of the digital image. It is assumed throughout the description that the image is in YUV encoded format, although aspects of the invention may apply equally to other image encoding formats.
The method preferably comprises estimating a point spreading function from the digital image and determining the inverse blur filter from a Fourier transform of the point spreading function. The point spreading function may be estimated for each block, for example when dealing with spatially variant blurring.
The method in any or all aspects is preferably carried out by a suitably programmed computer or other electronic device.
In accordance with a second aspect of the invention, there is provided an electronic device comprising an image acquisition module and a processing module configured to perform the method of the first aspect of the invention.
The electronic device of the second aspect of the invention thereby comprises means for partitioning an acquired image into a plurality of overlapping blocks of pixels, means for processing each block to produce a restored block and concatenating non-overlapping regions of the restored blocks to produce a restored digital image, wherein the means for processing each block comprises: i) means for padding the block with additional pixels having values extrapolated from a range of pixel values across the block to produce a padded block; ii) means for performing a Fourier transform operation on the padded block to produce a transformed block; iii) means for applying an inverse blur filter to the transformed padded block to produce a filtered block; and iv> means for performing an inverse Fourier transform on the filtered block to obtain the restored block.
The invention is described in further detail below by way of example and with reference to the appended drawings, in which: figure 1 is a flow diagram of a block-based restoration method; figure 2 is a flow diagram of the restoration filter of figure 1 ; figure 3 is a schematic representation of a digital image divided into overlapping blocks; figure 4 is a schematic representation of padding of an overlapping block; figure 5 is a schematic plot representing linear extrapolation of pixels in a row of a padded block; figure 6 is a 2-D Laplacian operator, figure 7 is a series of digital images illustrating the effect of different de- blurring processes; and figure 8 is a further series of digital images illustrating the effect of different de-blurring processes.
The invention is concerned in general with the reconstruction or estimation of uncorrupted images from blurred and noisy images. Blurring in an image can be caused by relative motion between the camera and the original scene (particularly for dark scenes where exposure time is relatively long), or by an optical system that is out of focus.
A blurred image can be considered to result from the convolution of an original (i.e. ideal) image and a point spreading function (PSF)
For the luminance component Y of a YUV image, the value of each pixel of the input (blurred) image Yin at a pixel position (i.j) is given by:
where Yori, is the luminance value of the original pixel (ij) and
is the noise that corrupts the blurred image. In the above equation, the PSF is assumed to be spatially invariant, i.e. the image is blurred in exactly the same way at every spatial location. In certain embodiments, the blurring may instead be spatially variant.
Similar equations can be written for the chrominance components of the digital image.
It is assumed that image deblurring can be carried out independently on the separate luminance component (Y) and chrominance components (U, V) of the digital image. Consequently, although the following sections relate only to the luminance component, it is to be understood that corresponding methods can be applied to the other components of the digital image.
As illustrated in the flow diagram of figure 1, the overall method 100 comprises two general processes 110, 120 that together arrive at an estimate of the original image from a degraded or blurred image. Each process 110. 120 is performed on the observed image Yn. A degree of blur in the image is identified by identifying
110 a point spreading function from the image, and a block-based restoration filter is applied 120 to the image using frequency coefficients f, of the identified point spreading function. An output image Y^ is then produced.
The overall goal of the method 100 is to perform an operation on the degraded image that is a better approximation of the inverse of the imperfections in the image formation system through use of an estimated PSF.
The following sections describes a block-based method (corresponding to process 120 of figure 1) for image restoration, it will be assumed that the PSF coefficients are perfectly estimated during the blur identification process 110. In reality, estimates will be obtained of the PSF. for example through use of the techniques described and referenced in Banham & Katsaggelos (cited above).
Figure 2 shows a flow diagram of an exemplary block-based demurring process 120 comprising the steps of image partitioning, padding, Fourier transformation, frequency domain filtering, inverse Fourier transformation and block extraction. Each of these steps is detailed by example in the following sections.
image partitioning
The blurred image s partitioned (step 210) into blocks of size M x M. where M
depends on the PSF length. Each block is extended by a number of pixels, a, on each side (right, left, top and bottom), where a side adjoins an adjacent block, as depicted in Figure 3. Sides of blocks along the outer edges of the image are not extended. Thus, the resulting overlapped block width w and height h is equal to M+2a for inner blocks and to M+a for blocks located on the vertical or horizontal edge of the image. The block size M is preferably significantly greater than the PSF length. The overlap, a, is also preferably higher than the PSF. Exemplary values for a PSF length of less than 20 pixels are: N-256, a-32, M= 128 or 160, resulting in 32 or 16 padded pixels on each side.
The blocks are preferably square, i.e. of dimensions MxM, since blocks before the FFT process are also square (NxN) except for those located at the right and bottom border of the image. If the image width is not a multiple of M. then the block size at the right border is M'xM, where M' is the image width, modulo M. For these blocks, the overlap will be a pixels at the left side of the block, but more pixels can be padded in the horizontal direction so that the final size is N.
Similarly, for blocks along the bottom border, the size is NxM", where M" is the image height, modulo M. More pixels can be padded in the vertical direction so that the final size is N.
Following the above, the comer block (right bottom) has a size of M'xM", and can therefore be padded with additional pixels along both the right and bottom edges.
The subsequent processes of padding, transformation, filtering, inverse transformation and extraction, depicted as steps 230, 240, 260, 270 and 280 in figure 2, are performed independently on each block.
Padding Figure 3 illustrates schematically a partitioned image 300, the image 300 being divided into a plurality of blocks 310. Each block 310 is treated as an overlapping block 320 having a width w and height h.
Each overlapping block 320 is then padded by linearly extrapolating pixel values on opposing sides of the block 320. as illustrated in figure 4. The resulting square block 410 is of size N x N pixels. N being preferably chosen to be a power of two (i.e. N=2", where n is an integer), so that a fast implementation of a discrete Fourier transform (DFT) can be used in subsequent processing.
The step of padding ensures a more smooth transition between adjacent block borders, thereby attenuating any artifacts generated due to a periodicity inherent in the OFT process. In the following example, each row 420 in the overlapped block 320 is extrapolated by N-w pixels (i.e. by (N-w)/2 pixels on each side), and each column 430 is extrapolated by N-h pixels.
The following equation provides lhe values of padding pixels Y, for each row 420:
where YA and Y8 are the luminance values at pixels A and B respectively and Yi is the linearly extrapolated luminance value at the i* pixel of row 420 (i=0 corresponding to the first, or leftmost, pixel of the row 420).
Similarly, each column 430 of length h is padded symmetrically with (N-h)/2 pixels on each side, with the values of each padding pixel Y1 of the column 430 provided by:
where Yc and Y0 are the luminance values at pixels C and D respectively and Y, is the linearly extrapolated luminance value at the
pixel of the column 430
corresponding to the first, or topmost, pixel of the column 430) .
The process of extrapolation is illustrated in figure 5, which shows a plot of luminance Y as a function of pixel position i across a row 420 of a padded block 410. The pixels A and B, having luminance values YA and Y8 respectively, are extrapolated according to equation 2 above, which defines the relationship indicated by dotted line 510.
Extrapolation is carried out in two steps, first for horizontal (or vertical) padding, and second for vertical (or horizontal) padding. For each row, a pixels are padded on each side of the block. The number of padded rows is ft and the resulting block has a size of N x ft. For each column of the W x ft block, a pixels are then padded on each side (top and bottom). The number of padded columns is N and the resulting block has a size of N x N. For the preferred case of linear extrapolation, the same result is obtained if vertical padding is instead performed before horizontal padding. Other non-linear extrapolation methods may alternatively be used, but linear extrapolation is generally preferred due to its simplicity.
Each pixel value is rounded to an integer and dipped to fit between the limits of an allowable range. For example, if each pixel is encoded according to an 8-bit scheme, the extrapolated values above are rounded to integers and clipped between 0 and 255, i.e. any values above 255 resulting from the above equations are made to equal 255 and any values below 0 are made to equal 0.
2D Transformation
For each padded block resulting from the above process, a 2-0 fast Fourier transform (FFT) is performed. A complex-valued output block is produced, denoted by where u=0 N-1, v=0 N-1, u and v being the horizontal and vertical frequency components. The 2-D FFT can be computed by first computing a 1-0 FFT along each row 420 of the input block 410. and then computing a 1-D FFT along each column of the resulting intermediate block.
Frequency domain filtering
This step can be achieved by multiplying each frequency component by a a
filtering coefficient W1*. according to the following equation:
The coefficients correspond to an approximation of the inverse blur filter
(PSF) in the frequency domain and depend on the PSF fϋ (Figure 2) as:
where is the complex conjugate of
K is a constant and I\, is the PSF spectrum (i.e. the OFT
An optimal value of K is chosen as a result of a trade-off between blur removal and visual artifacts due to ringing and noise enhancement (K=O corresponds to the inverse filter). An exemplary range of values for K would be between around 0.01 and 0.1, the higher end of this range being more suitable for noisy images and the lower end for images with low noise.
Another method for computing Wσ, consists of replacing K by a high pass filter, according to the following equation:
where being a 2-D Lapiadan
operator (a high-pass filter, whose PSF is given in Figure 6). and α is a tuning or
regularization parameter similar to the constant K and having broadly the same range of values. This allows for smoothing of the deblυrred image through attenuation of high frequency components.
For spatially invariant blurs (i.e. where the PSF is the same over aii the image), the coefficients
can be computed once before starting the restoration process on each block. Otherwise, for spatially variant blurring, the coefficients
can be computed for each block, or for subsets of blocks making up regions of the image where blurring is spatially invariant.
2-D Inverse Transformation
The luminance component of the restored NxN block resulting from process 260 of the method (figure 2) is retrieved by applying a 2-0 inverse FFT (IFFT) on the NxN block for
and
. As for the FFT process 240. The 2-D !FFT can be computed along each row of the block, and then along each column.
Block Extraction
In this step (step 270 of figure 2), an MxM restored block is obtained by taking the real part of the NxN block output from the IFFT process 260 (after rounding to integer values and cupping to between a desired range, e.g. between 0 and 255 for 8-bit encoding) and keeping the useful part of the block, of size MxM.
Finally, the MxM restored blocks are concatenated (step 280) to form the output image (for the luminance component). As explained above, similar processes can be applied to the other components of the image.
Figures 7 and 8 illustrate the influence of overlapping and padding on visual quality after image restoration on a blurred original image. The cropped areas in figures 7b&c and 8b&c are features of the original image having pixel dimensions not being an integer multiple of the chosen block size, which can be addressed by the use of additional padding pixels as described above.
In figure 7, the blurred image (figure 7a) is processed using an overlap of 8 pixels and with no padding, resulting in the image of figure 7b, and processed with an overlap of 8 pixels and a padding of 2 pixels, resulting in the image of figure 7c.
Both processed images used an FFT size of 32. The use of padding leads to a
significant reduction of image artifacts compared Io when no padding is used. Padding therefore considerably improves the image quality after restoration, by reducing the high frequency components generated by border discontinuities due to the periodicity of the Fourier transform.
in figure 8, the biurred image (figure 8a) is processed using non-overlapping blocks, resulting in the restored image of figure 8b, and using an overlap of 10 pixels, resulting in the restored image of figure 8c. Both processes used a padding of 6 pixels and an FFT size of 64. The use of overlapping blocks significantly reduces visible block artifacts in the restored image.
Certain embodiments allow for adaptive processing, e.g., when some image objects are out-of-focus while others are in focus, resulting in spatially variant blurring. As described above, different coefficients «'„.. can be used for different regions of a blurred image, or even for each different block in the image.
The debiurring process can begin during image acquisition, provided that an appropriate blur model or PSF is known beforehand. This can reduce delay or latency in processing images.
Only a part of the image needs to be stored in memory during processing, thereby reducing memory requirements. The use of blocks rather than the whole image also reduces complexity of the restoration process.
Image quality is an increasingly important feature for portable devices (such as PDAs, mobile phones, etc) with digital imaging facilities, where processing power is necessarily limited by comparison with conventional general purpose computers. The proposed method, in allowing for efficient compensation for blurring, allows such devices to minimise on use of resources such as memory and CPU load.
A further aspect of the invention is therefore a electronic device comprising an image acquisition module, which may include a camera unit, and image processing components configured to perform the method according to the embodiments described above. The electronic device may be portable, for example in the form of a hand-portable unit such as a mobile phone.
Other embodiments are also intended to be within the scope of the invention, as defined by the appended claims.
Claims
1. A method of restoring a digital image, the method comprising partitioning the image into a plurality of blocks of pixels, processing each block to produce a restored block and concatenating the restored blocks to produce a restored digital image, wherein the step of processing each block comprises: i) padding the block with additional pixels having values extrapolated from a range of pixel values across the block to produce a padded block; ii) performing a Fourier transform operation on the padded block to produce a transformed block; iii) applying an inverse blur filter to the transformed padded block to produce a filtered block; and iv) performing an inverse Fourier transform on the filtered block to obtain the restored block.
2. The method of claim 1 wherein the values of the additional pixels are linearly extrapolated from pixel values on opposing edges of the block.
3. The method of ciaim 1 wherein the padded block consists of a square array of N x N pixels.
4. The method of claim 3 wherein N - T, where n is an integer.
5. The method of claim 3 or ciaim 4 wherein the step of applying an inverse blur filter comprises multiplying each component of the transformed biock by a corresponding component of the inverse blur filter.
8. The method of any preceding claim wherein an inverse blur filter is determined for each block.
9. The method of any preceding claim wherein the same inverse blur filter is applied to each block.
10. The method of claim 1 wherein the plurality of blocks together make up a selected portion of the digital image to be restored.
11. The method of claim 10 wherein a plurality of portions of the digital image are each partitioned into respective pluralities of blocks of pixels, the method being performed on each of the plurality of portions of the digital image.
12. The method of claim 1 wherein the method is performed separately on the luminance and chrominance components of the digital image.
13. The method of claim 1 comprising estimating a point spreading function from the digital image and determining the inverse blur filter from a Fourier transform of the point spreading function.
14. The method of claim 13 wherein the point spreading function is estimated for each block.
15. The method of any preceding claim wherein the digital image is partitioned into a plurality of overlapping blocks, the restored image being produced by concatenating non-overlapping regions of the restored blocks.
16. A computer program for instructing a computer to perform the method of any preceding claim.
17. A computer-readable medium comprising computer program product code according to claim 16.
18. An electronic device comprising an image acquisition module and a processing module configured to perform the method of any of claims 1 to 15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/000,341 US20110097009A1 (en) | 2008-06-20 | 2009-06-11 | Digital image restoration |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP08290590.2 | 2008-06-20 | ||
EP08290590 | 2008-06-20 |
Publications (2)
Publication Number | Publication Date |
---|---|
WO2009153717A2 true WO2009153717A2 (en) | 2009-12-23 |
WO2009153717A3 WO2009153717A3 (en) | 2011-06-03 |
Family
ID=41434503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/IB2009/052500 WO2009153717A2 (en) | 2008-06-20 | 2009-06-11 | Digital image restoration |
Country Status (2)
Country | Link |
---|---|
US (1) | US20110097009A1 (en) |
WO (1) | WO2009153717A2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013049653A1 (en) * | 2011-09-30 | 2013-04-04 | Apple Inc. | Automatic image sharpening |
EP2743885A3 (en) * | 2012-12-17 | 2015-07-08 | Fujitsu Limited | Image processing apparatus, image processing method and program |
EP2759982A3 (en) * | 2013-01-28 | 2016-06-29 | Canon Kabushiki Kaisha | Image processing apparatus, image pickup apparatus, image processing method, image processing program, and storage medium |
CN111242876A (en) * | 2020-01-17 | 2020-06-05 | 北京联合大学 | Low-contrast image enhancement method and device and computer-readable storage medium |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ES2810812T3 (en) * | 2010-02-10 | 2021-03-09 | Dolby Int Ab | Image processing device and method |
KR102477093B1 (en) * | 2015-10-13 | 2022-12-13 | 삼성전자주식회사 | Apparatus and Method for performing Fourier transform |
US9674430B1 (en) * | 2016-03-09 | 2017-06-06 | Hand Held Products, Inc. | Imaging device for producing high resolution images using subpixel shifts and method of using same |
CN113826404A (en) * | 2019-03-11 | 2021-12-21 | Vid拓展公司 | Method and system for post-reconstruction filtering |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6567568B1 (en) * | 1998-01-26 | 2003-05-20 | Minolta Co., Ltd. | Pixel interpolating device capable of preventing noise generation |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5168375A (en) * | 1991-09-18 | 1992-12-01 | Polaroid Corporation | Image reconstruction by use of discrete cosine and related transforms |
US5666163A (en) * | 1994-07-12 | 1997-09-09 | Sony Corporation | Electronic image resolution enhancement by frequency-domain extrapolation |
US7130484B2 (en) * | 2001-10-15 | 2006-10-31 | Jonas August | Biased curve indicator random field filters for enhancement of contours in images |
AU2003272936A1 (en) * | 2003-01-31 | 2004-08-23 | The Circle For The Promotion Of Science And Engineering | Method for creating high resolution color image, system for creating high resolution color image and program for creating high resolution color image |
US7756407B2 (en) * | 2006-05-08 | 2010-07-13 | Mitsubishi Electric Research Laboratories, Inc. | Method and apparatus for deblurring images |
US8160309B1 (en) * | 2007-12-21 | 2012-04-17 | Csr Technology Inc. | Method, apparatus, and system for object recognition and classification |
-
2009
- 2009-06-11 WO PCT/IB2009/052500 patent/WO2009153717A2/en active Application Filing
- 2009-06-11 US US13/000,341 patent/US20110097009A1/en not_active Abandoned
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6567568B1 (en) * | 1998-01-26 | 2003-05-20 | Minolta Co., Ltd. | Pixel interpolating device capable of preventing noise generation |
Non-Patent Citations (1)
Title |
---|
YIJIANG SHEN ET AL: "Restoration of Binary Images Using Positive Semidefinite Programming", TENCON 2006. 2006 IEEE REGION 10 CONFERENCE, IEEE, PI, 14 November 2006 (2006-11-14), pages 1-4, XP031333269, ISBN: 978-1-4244-0548-0 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013049653A1 (en) * | 2011-09-30 | 2013-04-04 | Apple Inc. | Automatic image sharpening |
US8655096B2 (en) | 2011-09-30 | 2014-02-18 | Apple Inc. | Automatic image sharpening using entropy-based blur radius |
EP2743885A3 (en) * | 2012-12-17 | 2015-07-08 | Fujitsu Limited | Image processing apparatus, image processing method and program |
US9165343B2 (en) | 2012-12-17 | 2015-10-20 | Fujitsu Limited | Image processing apparatus and image processing method |
EP2759982A3 (en) * | 2013-01-28 | 2016-06-29 | Canon Kabushiki Kaisha | Image processing apparatus, image pickup apparatus, image processing method, image processing program, and storage medium |
US9390477B2 (en) | 2013-01-28 | 2016-07-12 | Canon Kabushiki Kaisha | Image processing apparatus, image pickup apparatus, image processing method, and non-transitory computer-readable storage medium for image restoration using blind deconvolution |
CN111242876A (en) * | 2020-01-17 | 2020-06-05 | 北京联合大学 | Low-contrast image enhancement method and device and computer-readable storage medium |
CN111242876B (en) * | 2020-01-17 | 2023-10-03 | 北京联合大学 | Low contrast image enhancement method, apparatus and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
US20110097009A1 (en) | 2011-04-28 |
WO2009153717A3 (en) | 2011-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2009153717A2 (en) | Digital image restoration | |
Dabov et al. | Image restoration by sparse 3D transform-domain collaborative filtering | |
JP5342068B2 (en) | Multiple frame approach and image upscaling system | |
KR101112139B1 (en) | Apparatus and method for estimating scale ratio and noise strength of coded image | |
EP2164040B1 (en) | System and method for high quality image and video upscaling | |
EP1909227B1 (en) | Method of and apparatus for minimizing ringing artifacts in an input image | |
JP2007188493A (en) | Method and apparatus for reducing motion blur in motion blur image, and method and apparatus for generating image with reduced motion blur by using a plurality of motion blur images each having its own blur parameter | |
JP2015225665A (en) | Image noise removal method and image noise removal device | |
JP7375208B2 (en) | Super night view image generation method, device, electronic equipment and storage medium | |
CN113344821B (en) | Image noise reduction method, device, terminal and storage medium | |
CN111383190B (en) | Image processing apparatus and method | |
CN107492077A (en) | Image deblurring method based on adaptive multi-direction total variation | |
RU2448367C1 (en) | Method of increasing visual information content of digital greyscale images | |
JP2006238032A (en) | Method and device for restoring image | |
JP5493191B2 (en) | Image restoration apparatus and image restoration method | |
CN114450710A (en) | Method and apparatus for noise reduction | |
CN109698892B (en) | Video image sharpening method and image processing equipment | |
KR100803045B1 (en) | Apparatus and method for recovering image based on blocks | |
US9699453B1 (en) | Methods and apparatuses for video enhancement and video object tracking | |
CN111754437B (en) | 3D noise reduction method and device based on motion intensity | |
CN114862714A (en) | Natural image deblurring method based on structure extraction | |
Sadaka et al. | Efficient perceptual attentive super-resolution | |
Wada et al. | Extended joint bilateral filter for the reduction of color bleeding in compressed image and video | |
Rabie et al. | Adaptive-neighborhood image deblurring | |
CN114202466A (en) | Image noise reduction method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 09766254 Country of ref document: EP Kind code of ref document: A2 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 13000341 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 09766254 Country of ref document: EP Kind code of ref document: A2 |