Dear Paul, Thanks for the reply. I had indeed looked at your toolbox (and should have mentioned this), but it appears as if whole slices are discarded which in our case will not be necessary as we really only have one or two lines affected in 2 or slices. I may try anyway. Thank you. Best wishes, Helmut ----- Original Message ----- From: "Paul Mazaika" <[log in to unmask]> To: "Helmut Laufs" <[log in to unmask]> Sent: Tuesday, July 15, 2008 10:04 PM Subject: Re: [SPM] interpolate slice artifact Helmut, The ArtRepair software package may work for you. You can get it for SPM5 from SPM Extensions, or from our website cibsr.stanford.edu. It works for 3D Nifti formats, but it may have bugs for 4D .nii format. The noise filtering option automatically finds bad SLICES, and fixes them, and writes a logfile of what it did. Type >> help art_slice for a description of the options. Use >> art_movie to visually review how well it fixed the line artifact. Paul Quoting Helmut Laufs <[log in to unmask]>: > Dear List, > > We would not like to reinvent the wheel, hence the following question: > > has anybody got a script (ideally matlab, ideally working with Nifti > images) which removes line artifacts by means of interpolation? The idea > is to doctor away phase interpolation artifacts along the y direction on > axial slices. Ideally, these lines will be automatically detected by > e.g. means of a threshold criterion on the background, however a function > símply accepting the image volume, slice number and "column" would be > fantastic. > > Any [close] solutions will be highly appreciated. > > Thank you! > > Helmut > -- Paul K. Mazaika, PhD Center for Interdisciplinary Brain Sciences Research Stanford University School of Medicine 401 Quarry Road, MC 5795 Stanford, Ca 94305 Office: (650)724-6646 Cell: (650)799-8319 CONFIDENTIALITY NOTICE: Information contained in this message and any attachments is intended only for the addressee(s). If you believe that you have received this message in error, please notify the sender immediately by return electronic mail, and please delete it without further review, disclosure, or copying