JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for FSL Archives


FSL Archives

FSL Archives


FSL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Monospaced Font

LISTSERV Archives

LISTSERV Archives

FSL Home

FSL Home

FSL  March 2009

FSL March 2009

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Actual implementation? [Re: Q: How to de-smooth BOLD images, previously smoothed with a known kernel-width?]

From:

Souheil Inati <[log in to unmask]>

Reply-To:

FSL - FMRIB's Software Library <[log in to unmask]>

Date:

Sat, 7 Mar 2009 14:43:49 -0500

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (294 lines)

Hi all,

Okay, I'm jumping in late, but here's my point of view. I agree with
Jeff and Bruce. In general "deblurring" is a bad idea because the
problem is extremely ill-conditioned. But there are some cases where
it might be possible, and Mark's point is correct. Please excuse the
lengthy post, but I feel the need to be careful :-)

Let's restrict the conversation to smoothing of a previously acquired
rectilinear EPI image, i.e. the following sequence of steps occur:
1) Data are sampled by the scanner in time. The scanner performs an
analog operation - continuous integral of the instantaneous
magnetization across space. The signal is digitized at discrete time
points.

2) An image is reconstructed. Time is converted to k. A k-space
filter is applied (this is optional but is often applied to reduce
Gibbs in low-res images). 1-D recon in the frequency direction
(interpolation and FFT). Navigator correction is applied. FFT is
applied in the phase direction. Signal is combined across coils as
sqrt of sum of squares, or if 1 coil, absolute value.

[Aside: Okay, after all that physicist junk we have what Mark likes to
work with, namely an image :-) ]

3) Now we smooth the image, say with a gaussian. This can be done
either by convolution in the image domain or FFT, multiply by a
frequency domain filter, IFFT.

As far as I see it, the question is only about step 3. Can step 3 be
inverted if the convolution kernel is known. This is a VERY specific
question. I mean, it is related to, but is not exactly the same
problem as deblurring a Hubble telescope image say. And, importantly,
this has absolutely nothing to do with k-space in the MRI sense. You
had already lost the phase information, etc.. You took a noisy image
with some weird artifacts (distortion, blurring, yuck.) and blurred
it. That is all.

I want to be very precise about the statement "invert step 3". If
it's well conditioned, I want the inverse. If it's badly conditioned,
I want a pseudo-inverse type least squares solution, preferably in a
way that let's me control the noise amplification. I will work with
the (FFT, multiply, IFFT) description of convolution because I can
write the problem down in a clean way. Here's what we have (think
matlab):
    I_s = Finv* D * F * I_orig
where I_orig is the original image as a column vector, F is the
discrete fourier transform as a matrix, D is a diagonal matrix
(multiply each point in the frequency domain by a number), Finv is the
discrete inverse fourier transform.

I want to do this:
   I_est = Finv * Dinv * F * I_s
so that I_est is as close to I_orig as possible.

On the computer, you should work in double precision so that you don't
have to worry too much about rounding errors. In double precision on
the computer Finv*F is the identity to a whole lot of digits.

What about Dinv? D is diagonal, so I know how to invert it. If d_j
is the j-th element on the diagonal, the dinv_j = 1/d_j. This is bad
of course, because some of the d_j's are very small - i.e. out at high
spatial frequency, in the tail of the gaussian filter, we had
multiplied by a very small number. But we can do a controlled
inverse, either a pseudo-inverse i.e. cutting off at some singular
value, i.e. dinv_j = 0 for d < cutoff, or we can do Tikhonov
regularization, i.e. dinv_j = (dinv_j) ./ (dinv_j^2 + sigma^2).

The question is what is the structure of the noise in I_s, and how do
we pick a cutoff for the pseudo-inverse. Other than the noise
inherent in the scanner, there is the stupidity of storing images in
DICOM and restricting them to 12-bit integers, etc., etc., so, I
would argue that at best, you have three digits of precision in your
original image, i.e. your noise is of the order of a few percent of
your signal. So you should cut off (or roll off) the inverse
somewhere around there, say 0.1.

So here's a practical procedure
I_est = Finv * Dinv * F * I_s
Use FFT for F and IFFT for Finv. For Dinv, build a filter that looks
like this:
d(f) = exp(-a f.^2) / (exp(-2 a f.^2) + 0.01)
where `a` is the original filter width.

This will give you an image I_est which is close to I_orig. Not
exactly the same, but as close as you can get in a least squares sense
and not have the noise explode.

Does this make sense?

Cheers,
Souheil

PS - Of course, you should try this out with new data first. Go
through the smoothing and the "unsmoothing" and see what happens.


---------------------------------

Souheil Inati, PhD
Research Associate Professor
Center for Neural Science and Department of Psychology
Chief Physicist, NYU Center for Brain Imaging
New York University
4 Washington Place, Room 809
New York, N.Y., 10003-6621
Office: (212) 998-3741
Cell: (646) 522-7330
Fax: (212) 995-4011
Email: [log in to unmask]



On Mar 7, 2009, at 1:08 PM, Mark Jenkinson wrote:

> Hi,
>
> My understanding of this is that you are essentially working with a
> discrete
> signal and applying a discrete operation to it. You can either
> consider this
> as a discrete convolution operation in image space, or as a
> multiplication in
> the Fourier space, but not the continuous k-space, the space you get
> to with
> the discrete FFT. This does contain phase and magnitude information,
> but not necessarily the same as the original k-space, as they are
> not the
> same due to the magnitude operation and the discrete operations.
> However, it is perfectly equivalent to perform the convolution by
> using the
> FFT, multiplying and then doing the inverse FFT. Any description in
> terms
> of diffusion, or k-space are actually continuous analogues of this
> process
> and not quite what you are really doing by blurring the discrete,
> magnitude
> reconstructed signal.
>
> As for inverting the operation, the problem is simply one of machine
> precision. Since we are talking about an already acquired signal that
> has been convolved with a (discrete) Gaussian, then even noise is not
> an issue. So what really counts is the ability to represent the
> values
> sufficiently accurately, and the precision to which the FFT can be
> calculated. Because the FFT involves a large summation, much of
> which is partially canceling, it is sensitive enough that the
> inversion is
> usually not sufficiently accurate since the suppression and then
> enhancement of the high-frequency components in the image
> typically have rounding errors which affect the image sufficiently to
> cause problems.
>
> So I agree that in practice it probably will not give good enough
> results,
> but in theory there isn't really a loss of information in the
> discrete case
> except with respect to the machine precision.
>
> All the best,
> Mark
>
>
>
> On 7 Mar 2009, at 16:43, Kochunov, Peter wrote:
>
>> Thank you Bruce,
>> I think, your explanation is quite sensible. Obviously, Gaussian
>> filtering in the magnitude domain is not equivalent to the
>> frequency-space multiplication as half of the information (phase)
>> is lost. Not to mention that the fourier transform of the inverse-
>> gaussian (Wald) function is not analytically defined.
>> pk
>>
>> ________________________________
>>
>> From: FSL - FMRIB's Software Library on behalf of Bruce Fischl
>> Sent: Sat 3/7/2009 10:20 AM
>> To: [log in to unmask]
>> Subject: Re: [FSL] Actual implementation? [Re: Q: How to de-smooth
>> BOLD images, previously smoothed with a known kernel-width?]
>>
>>
>>
>> Hi Peter,
>>
>> I'm pretty sure it is. You can think about Gaussian convolution as
>> moving
>> intensities around the image since the diffusion equation obeys an
>> underlying conservation law. So any one voxel has its intensity
>> "come from"
>> other voxels in the image. Unfortunately there is nothing unique
>> about it,
>> so you don't know for example if the intensity came from a high
>> value voxel
>> far away or a moderately valued voxel nearby. The inverse diffusion
>> equation is fundamentally ill-conditioned. The k-space thing is
>> probably
>> only true in the limit of infinite support, etc..., but I haven't
>> thought
>> about it.
>>
>> cheers,
>> Bruce
>>
>>
>> On Sat, 7 Mar 2009, Kochunov, Peter wrote:
>>
>>> Bruce,
>>> Is that really the case? I mean, the k-space-domain operations
>>> equivalent
>> to convolution/deconvolution with the Gaussian function are
>> inversable?
>>> pk
>>>
>>>
>>> -----Original Message-----
>>> From: FSL - FMRIB's Software Library on behalf of Bruce Fischl
>>> Sent: Sat 3/7/2009 8:43 AM
>>> To: [log in to unmask]
>>> Subject: Re: [FSL] Actual implementation? [Re: Q: How to de-smooth
>>> BOLD images, previously smoothed with a known kernel-width?]
>>>
>>> Hi Raj,
>>>
>>> Gaussian blurring is the equivalent of running the diffusion
>>> equation for
>>> time proportional to sigma^2 (since the Gaussian is the Green's
>>> Function of
>>> it), which is not time-reversible. Information is irretrievably
>>> lost in
>>> diffusion, so I'm afraid the inversion isn't possible.
>>>
>>> sorry :<
>>>
>>> Bruce
>>>
>>> On Fri, 6 Mar 2009, Rajeev Raizada wrote:
>>>
>>>> On Fri, 6 Mar 2009 09:27:24 -0800, Michael T Rubens
>>>> <[log in to unmask]> wrote:
>>>>
>>>>> take FFT of smoothed image, divided by FFT of gaussian. the
>>>>> inverse FFT
>>>>> should be your unsmoothed data.
>>>>
>>>> Thanks...
>>>> But please see below... :-)
>>>>
>>>>> On Fri, Mar 6, 2009 at 5:12 AM, Rajeev Raizada <[log in to unmask]
>>>>> wrote:
>>>> [...]
>>>>>> Non-specific high-level exhortations to recast the smoothing
>>>>>> as a 3D Fourier filter and then to apply the inverse filter
>>>>>> are also welcome, but probably won't be quite as useful :-)
>>>>
>>>> I believe that the application of an inverse filter
>>>> may be easier said than done.
>>>> It appears that for Gaussian deblurring, the inverse is "ill-
>>>> conditioned",
>>>> e.g. http://ieeexplore.ieee.org/iel5/5992/26914/01196312.pdf
>>>>
>>>> Two additional complications:
>>>> 1. Apparently there are some analytical results for deblurring of
>>>> 2D discrete Gaussians,
>>>> but I don't know enough to know whether these hold in 3D as well.
>>>> 2. I believe that the 3D smoothing is actually done by a Gaussian
>>>> convolved
>>>> by a sinc function, not just a plain vanilla Gaussian.
>>>>
>>>> Does anyone have an actual implementation of such "de-smoothing",
>>>> as opposed to an "in principle" description of what it ought to
>>>> involve?
>>>> Googling for gaussian deblurring turns up a lot of hits for blind
>>>> deconvolution
>>>> and methods of counteracting noise.
>>>> However, in this case the deconvolution is not blind at all,
>>>> as we know that it was a gaussian kernel of FWHM 6mm,
>>>> and also there wasn't any noise in the blurring process.
>>>> So, in principle those two facts ought to make things easier, I
>>>> think?
>>>>
>>>> Any help greatly appreciated.
>>>> The more specific the better. :-)
>>>>
>>>> Raj
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager