Abstract
The segmentation of blurred images is of great importance. There have been several recent pieces of work to tackle this problem and to link the areas of image segmentation and image deconvolution in the case where the blur function κ is known or of known type, such as Gaussian, but not in the case where the blur function is not known due to a lack of robust blind deconvolution methods. Here we propose two variational models for simultaneous reconstruction and segmentation of blurred images with spatially invariant blur, without assuming a known blur or a known blur type. Based on our recent work in blind deconvolution, we present two solution methods for the segmentation of blurred images based on implicitly constrained image reconstruction and convex segmentation. The first method is aimed at obtaining a good quality segmentation while the other is aimed at improving the speed while retaining the quality. Our results demonstrate that, while existing models are capable of segmenting images corrupted by small amounts of blur, they begin to struggle when faced with heavy blur degradation or noise, due to the limitation of edge detectors or a lack of strict constraints. We demonstrate that our new algorithms are effective for segmenting blurred images without prior knowledge of the blur function, in the presence of noise and offer improved results for images corrupted by strong blur.
Introduction
Image segmentation is an important technique in image processing which aims to capture either all of the objects of an image1–5 or only some of them (selective segmentation6–9). Variational models that partition images based on intensity often employ edge detection techniques to aid the segmentation and some can handle fuzzy boundaries.10,11 Many of these models can deal with the presence of noise, but blur proves to be more problematic and most variational models struggle to capture all of the required objects, particularly in cases where there is a reliance on the edge detector.
Work in the segmentation of blurred images is at an early stage but there exist models such as those presented in the literature12–15 which aim to segment blurred images based on Mumford–Shah4,16–18 or Chan–Vese4,19,20 segmentation and total variation image restoration.21,22 In Bar et al., 12 the authors attempt to segment blurred images by forming a joint functional incorporating segmentation and image reconstruction, assuming the blur type is known (in the so-called semi-blind method). A framework of alternate minimisation is adopted such that the image is simultaneously restored and segmented. Similar techniques can also be found in other work such as Jung et al. 14 As an alternative approach, some models such as those given in the literature13,15 treat the problems of image reconstruction and segmentation separately in a two-stage model by first restoring the image and then segmenting the restored data.
The main contribution of this work is the proposal of two new models which incorporate blind deconvolution (with implicitly constrained image reconstruction) and convex segmentation. Here, the former task is particularly important in astronomical imaging and medical imaging and offers advantages over hard constraints such as scaling or truncation, while the latter provides a global minimiser to the segmentation problem with no reliance on the initial guess of objects. In a similar manner to Bar et al., 12 we form a joint functional and proceed to segment the image using alternate minimisation, although it is feasible to use a two-stage approach derived from the joint model (as tested and compared later). We also present an accelerated solution method for acceleration and convergence while sacrificing only a small amount of quality. Our tests will show that related models which do not impose constraints for the restoration (and the restored blur kernel for the blind case) do not perform as well when the underlying blur is heavy.
The rest of this paper is organised as follows. In the ‘Existing methods’ section, we review efforts to tackle the problem of segmenting images which have been corrupted by blur as well as introducing relevant segmentation and image reconstruction models. In the ‘Two-stage restoration and segmentation of images with unknown blur’ section, we introduce two new two-stage models for the cases of segmenting blurred images in the presence of Gaussian noise and Poisson noise incorporating implicitly constrained deblurring and convex segmentation. In the ‘Segmentation of images corrupted by unknown blur’ section, we introduce our main model which is a new joint model for the segmentation of blurred images. In the ‘A relaxed model for the segmentation of images with unknown blur’ section, we introduce our relaxed model for the segmentation of blurred images using alternate direction methods for joint convergence. In the ‘Experimental results’ section, we present experimental results. In the final section, we present the conclusions of this work.
Before proceeding, we make the assumption that the image blur is spatially invariant. As such, we may model the blurred image z as the convolution of the true image u with a kernel function k (also referred to as the blur function or point spread function (PSF)) with the possibility of some additive noise η
Existing methods
In recent years, several approaches have been developed to tackle the problem of accurately segmenting images which have been corrupted by blur. Such approaches most commonly involve image reconstruction to restore the ‘true image’ and segmentation. Models can be classed as two stage in which reconstruction of the corrupted image is carried out, followed by segmentation of the restored image.13,15 In contrast, there also exist joint models which attempt to deal with the tasks of reconstruction and segmentation simultaneously by minimising a joint functional.12,14 In this section, we review some existing methods for two stage and joint segmentation of blurred images.
Segmentation of blurred images
Bar et al. showed in their 2004 paper
12
that the two problems of segmentation and image restoration could be coupled together and hence solved at the same time. Both the case of non-blind deconvolution where the kernel is known and the case of semi-blind deconvolution assuming that the blur function is of Gaussian type, leaving the argument σ of the Gaussian function describing the blur to be found, are considered. The problem was solved by minimising the joint functional
Jung et al.
14
presented models for joint multi-phase segmentation, deblurring and denoising of images by considering the region-based active contours without edges model and gave the joint formulation as the minimisation of the energy functional
Reddy et al.
15
approach this problem in the blind case, where the blur function is an unknown Gaussian using the Chan–Vese model
Chan et al.
13
recently presented a two-stage convex method for segmenting blurred images which have been corrupted by either Poisson or multiplicative Gamma noise. Their technique is to extract a smooth image u from the received image z and then to threshold u to reveal segmentation features. The functional to be minimised, given the blurring operator
In this paper, we shall consider both joint and two-stage approaches using convex segmentation and implicitly constrained deblurring in an attempt to improve the quality of the results. Below, we first review the relevant segmentation and image reconstruction techniques.
Two-stage restoration and segmentation of images with known blur
We build a two-stage model for segmenting blurred images in the non-blind case, assuming that we can model precisely the blur degradation, by first deblurring the image and subsequently finding the segmentation of the result. Assuming that we know the function causing the degradation of the image and assuming the presence of additive white Gaussian noise, we may attempt to recover the hidden sharp image by solving an ROF-type minimisation problem
21
of a functional consisting of a deconvolution fitting term and a regularisation term such as that given by the total variation semi-norm. That is, we solve the minimisation problem
In the following section, we extend this two-stage idea to the blind case, where we do not know the blur function. We attempt to improve the result by building in transformations which allow for the image intensities to be constrained implicitly and by adopting a segmentation technique which is capable of finding the global minimum of the problem.
Segmentation of images corrupted by unknown blur
In this section, we consider the case of segmenting images with unknown blur which allows for more generality in cases where the blur cannot be estimated or found. We build refined blind two-stage models and an improved joint model for solving such problems.
Two-stage restoration and segmentation of images with unknown blur
Building on the previous section, we construct a two-stage model for segmenting blurred images in the blind case. That is, we first aim to reconstruct the sharp image from the corrupted received data without knowledge of the blur function and proceed to segment the result. This is a popular formulation and has been used in work such as Chan et al. 13 and Reddy et al. 15
Proceeding in the case of blind deconvolution, we may attempt to restore the image and blur function simultaneously. Following work such as Chan and Wong
26
and You and Kaveh
27
we deblur the image by solving the regularised joint minimisation problem
Alternate minimisation of the functional is achieved by solving the resulting Euler Lagrange equations
Once such u is computed, we then proceed to segment this restored image u by solving equation (11), which allows for the global minimum of the segmentation problem to be found,
2
replacing the data function z with the restored image u, we have
To enforce the constraint
Incorporating this idea into our two-stage approach, we obtain the segmentation of the restored image by solving the problem (11) and enforce the constraint
After discretisation, we rewrite in the matrix-vector form (
Here,
In order to solve this model, we make an initial estimate of the image, which is typically the received data since it is the closest approximation we have. Using this information, we obtain the approximation u of the true image and using this we proceed with alternate minimisation of equation (13) until we reach an acceptable tolerance. Our overall algorithm is presented in Algorithm 1. Segmentation of blurred images: Algorithm 1
1:
2:
3:
4: Update
5: Update
6: Update
7: Update
8: Update
9: Update
10:
11:
12:
13: Calculate
14: Update
15:
Considering now the case of Poisson noise being present in the image, we make an alteration to our deblurring algorithm to take this into account. We thus attempt to restore the true image from the corrupted image by solving the Robust Richardson Lucy problem introduced above for the image, employing the function
Segmentation of blurred images: 1: 2: 3: Update the image 4: Update the blur function 5: Update transformed blur function 6: Update 7: 8: 9: 10: Calculate 11: Update 12: Algorithm 2
We will demonstrate in Result set 1 in the ‘Experimental results’ section that deblurring considerations are important for obtaining a good segmentation of a blurred image. We also demonstrate in Result sets 1 and 2 that the advanced techniques which we describe in this section are able to give improvements over similar techniques.
In the following section, we introduce our approach to the problem of segmenting blurred images by forming joint models which aim to reduce computation time by simultaneously deblurring and segmenting the image.
A new joint model for the segmentation of images with unknown blur
We now construct a joint variational model for the segmentation of blurred images which includes terms designed for the segmentation of an image and which takes into account the possible presence of blur and noise corruption. By the minimisation of this single energy functional, an image may be simultaneously restored and segmented, thus providing an accurate segmentation of the blurred image. There are two key formats for forming such a joint functional in the literature. First, we may replace the image in the deblurring problem with the binary segmentation and attempt to restore this while recovering the average intensities. While this may provide good results, Paul et al.
23
have shown that this may not be robust. We therefore opt for the second approach as follows. We form the joint model by replacing the received data term
In order to solve this model, we derive the partial differential equations defined by the first-order optimality conditions. Solving the resulting equations, we aim to minimise the joint functional. We will take each of the arguments in turn.
Segmentation indicator function ν
Minimising the functional (19) with respect to ν, fixing the other arguments, we derive the Euler Lagrange equation from
After discretisation, we rewrite in the matrix-vector form (
Region average intensity values c1, c2
Keeping the other arguments fixed and minimising with respect to c1 and c2, we have, respectively, the equations given by
Image function u
Minimising now with respect to u, we have the equation
It is important to note that after the discretisation of this equation, the term
Transformed image function ψ
Minimising equation (19) with respect to the function ψ, we obtain
Discretising this equation by forward differences in terms of time t and rearranging, we have
Beginning with the initial estimate of ψ at t = 0 which is determined by the inverse transform of the received data z in the first instance and the latest approximation in subsequent alternate minimisation iterations, we evolve in time until the stopping criteria are met. That is, until the L2-norm of the residual is below a certain tolerance
Point spread (blur) function k
Minimising now with respect to the blur function k, we have the equation for the blur function
Transformed point spread (blur) function ω
Minimising with respect to ω, we obtain
Overall algorithm
In order to solve this model, we make an initial estimate of the image, which is typically the received data since it is the closest approximation we have. We also make an estimate of the PSF based on visual observation of the received image. Using this information, we obtain the initial estimates of ψ and ω and then calculate the first estimates of c1 and c2. We next update the image, ψ, the PSF, ω, the function ν, Segmentation of blurred images: 1: 2: 3: 4: Calculate 5: Update 6: Update 7: Update 8: Update 9: Update 10: Update 11: Update 12: Algorithm 3
We demonstrate in Result set 2 of the ‘Experimental results’ section that segmenting a blurred image by the joint approach can offer improved results over the corresponding two-stage method. Furthermore, in Result set 3, we show that our method offers improved results over comparable methods. In the following section, we consider an alternative joint method which aims to improve the speed of obtaining a solution.
A relaxed model for the segmentation of images with unknown blur
In order to speed up the above model, we consider a way to simplify the equation for ψ through relaxation of the functional. We introduce into the segmentation fitting terms a new variable Illustration of the continuous approximation 
In order to solve this model, we derive the partial differential equations defined by the first-order optimality conditions. We will take the Euler–Lagrange equations for each argument in turn. Minimising with respect to ν, we obtain the equation derived from
Minimising
Minimising
Now, minimising
Note that we can solve the sub-problem
To obtain the average intensities, we minimise
Finally, minimising with respect to k and ω, we obtain equations (26) and (27), respectively.
In order to solve the model (28), we make an initial estimate of the image, which we allow to be given by the received data z since this is the closest approximation to the true data that we have. Alternatively, if we know or can make an estimate of the PSF, we may solve a Tikhonov model 22 and attempt to use this as the initial estimate based on visual judgement. We then calculate the initial estimate of ψ as the inverse transform of the initial estimate of the image. Similarly, in the blind case, we make an initial estimate of the PSF based on visual observation and compute its inverse transform function. We next make an initial estimate of the contour, obtaining the initial estimate of ν. Using these and equation (33), we make the initial estimates of c1 and c2. We then proceed to solve the model (28), alternately minimising with respect to the arguments. The final segmentation is then given by the contour Γ p derived from the final function ν. We present this algorithm in Algorithm 4 below.
Segmentation of blurred images: 1: 2: 3: 4: Calculate 5: Update 6: Update 7: Update 8: Update 9: Update 10: Update Algorithm 4
Experimental results
Attempting to segment a blurred image with a segmentation technique (such Chan–Vese 4 ) is sufficient to obtain a close result if the degradation is not strong but as the amount of corruption increases, it is not possible to obtain a good result because such models are not designed with blur degradation in mind. Meanwhile, the work of Bar et al. 12 is capable of segmenting blurred images where the corruption is small but begins to struggle to obtain good quality results in the presence of significant blur degradation or noise.
In this section, through experiments, we demonstrate that Algorithms 1 and 2 offer improvements over competing models for blurred images. We also show that Algorithm 3 is capable of obtaining a good quality result with the possibility of slow convergence while Algorithm 4 converges faster to a similar, if slightly lower, quality.
We present results of segmenting the following images (see Figure 2) with the addition of varying levels of Gaussian blur and noise: Im1: Text (Figure 2(a)), Im2: Cells medical (Figure 2(b)), Im3: Box-Triangle (Figure 2(c)), Im4: QR Code (Figure 2(d)), Im5: Fingerprint (Figure 2(e)), Im6: Tree (Figure 2(f)).
Images used for test examples: (a) Im1, (b) Im2, (c) Im3, (d) Im4, (e) Im5 and (f) Im6.
We denote by
Experiments were carried out using Matlab R2013a on a HPE-595uk with an Intel(R) Core(TM) i7-2600 processor and 16GB RAM.
Models
In order to compare our results with competing and other relevant models, we define the following models to be tested in this section: Mod1: The Chan–Vese segmentation model (CV).
4
Mod2: The two-stage model by standard TV deblurring followed by CV segmentation. Mod3: The two-stage model by standard deblurring for Poisson noise followed by CV segmentation. Mod4: The Bar et al. model
12
using equation (2) – without constraints on New
J
: Algorithm 3 – the joint minimisation model (19) for blind deblurring and convex segmentation, with built-in constraints on k, u.
Measuring error
In order to make a numerical evaluation of our model, we require a ground truth. For the artificial images Im1 and Im3, we already know the contour and consider this to be the ground truth segmentation. For the remaining images, we estimate the true contour by assuming that the segmentation of the true (uncorrupted) image is correct (see Figure 3) and we consider methods of measuring the accuracy of the final contour Γ, that is how close it is to the segmentation by Chan–Vese of the true image given by L2 area-based difference gives the L2 norm of the difference in segmented images. It measures the closeness of the final indicator functions
Contour difference gives the L2 norm of the difference between final contours
Letting the set of points which are considered to be inside in the contour be given by
Segmentation of images Im1–Im6 using model Mod1: (a) Im1 segemented by Mod1, (b) Im2 segemented by Mod1, (c) Im3 segemented by Mod1, (d) Im4 segemented by Mod1, (e) Im5 segemented by Mod1 and (f) Im6 segemented by Mod1.
respectively where 
Result sets
RS1: Result set 1 consists of images corrupted by blur with the assumption that Gaussian noise is present. We illustrate the performance of Mod1 to segment the image and consider it against the performance of Mod2 and Result set 1. Error values for Im1–Im6 corrupted by Gaussian blur and segmented by Mod1. Values in bold indicate the lowest error achieved for each image.
Note: In many cases, the competition is close but
Result set 1. Error values for Im1–Im6 corrupted by Gaussian blur and segmented by Mod3 and
Note: The competition is close for most examples, but overall
Result set 2. Error values given by Er1 for Im1–Im4 corrupted by Gaussian blur and segmented by
Note: For Im1,
Result sets 3, 4. Error values and cpu times for images Im1–Im6, ‘Circles’ and ‘Knee’ images corrupted by small Gaussian blur. Values in bold indicate the lowest error and least CPU time achieved for each image.
Note: For Im1,

Result sets 1, 3. Illustration of the performance of the Mod1 for Im1 corrupted by Gaussian blur: (a) initial contour, (b) segmentation given by Mod1, (c, d) segmentation given by New J . Mod1 gives a rough segmentation while the spaces between the letters which are hidden by the blur are successfully segmented using New J .

Result sets 3, 4. Illustration of the performance of the New J for Im2 corrupted by Gaussian blur: (a) received data, (b, c) segmentation using New J , (d) the difference between the segmentation using New J and using Mod1. The segmentation is closer to the true edge using New J while Mod1 also captures the blurred edge.

Result sets 3, 4. Illustration of the performance of New J for (top-bottom) Im4, Im3, Im5 and Im6 corrupted by Gaussian blur. The edges hidden by blur are successfully segmented by New J which cannot be segmented by Mod1.

Result set 3. Illustration of the performance of the New J for (top-bottom) Im1, Im4, Im2 and Im6 corrupted by strong Gaussian blur. New J is capable of segmenting edges in these challenging cases which cannot be segmented by Mod1.

Result set 3. Illustration of the performance of the New J for (top-bottom) Im1, Im3, Im4 and Im5 corrupted by Gaussian blur and noise. The edges hidden by blur are successfully segmented by New J which cannot be segmented by Mod1.
Result set 3. Error values and cpu times for images Im1–Im6, ‘Circles’ and ‘Knee’ images corrupted by strong Gaussian blur. Values in bold indicate the lowest error or least CPU time achieved for each image.
Note: In all cases, New
J
and
Result set 3. Error values and cpu times for Im1, Im3–Im5 corrupted by Gaussian blur and zero-mean Gaussian noise of variance 0.005. Values in bold indicate the lowest error and least CPU time achieved for each image.
Note: In all cases, New
J
and
RS4: Result set 4 demonstrates the ability of Result set 4. Images corrupted by Gaussian blur segmented using 
Conclusions
We have proposed a new model for the effective segmentation of blurred images in the blind case where the blur function is unknown (New
J
) and presented results demonstrating its ability to capture edges which are blurred and difficult to segment closely as well as edges that are hidden by blur. We have also presented an accelerated model (
Footnotes
Acknowledgements
The first and the third authors thank the UK EPSRC for an industrial CASE studentship (voucher 10002441) jointly with St Paul’s Eye Unit, Royal Liverpool University Hospital. The second author thanks the University of Liverpool for a GTA award.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The third author acknowledges the partial support from the UK EPSRC grant EP/K036939/1.
