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

Help for SPM Archives


SPM Archives

SPM Archives


SPM@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SPM Home

SPM Home

SPM  August 2008

SPM August 2008

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Warning, using Matlab 7.6 (R2008a)

From:

Chris Watson <[log in to unmask]>

Reply-To:

Chris Watson <[log in to unmask]>

Date:

Mon, 11 Aug 2008 12:50:06 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (241 lines)

Going to /path/to/spm5/src and typing "make && make install" did the 
trick. On Saturday I only tried "make all"... So, case closed.

Thanks,
Chris

elise metereau wrote:
> Hello
>
> I think you need to compile SPM5 in order to make it work with your 
> matlab version. (change the variable MEX_BIN in spm5/src/Makefile file).
>
> Hope this helps
>
> Elise
>
> Chris Watson a écrit :
>> Sorry for the bombardment. I tried displaying even the template 
>> images that come with SPM5 (e.g. EPI.nii), and I get:
>> Running "Display Image"
>> Image "/occipital/matlab/spm5/templates/EPI.nii" can not be resampled
>> Image "/occipital/matlab/spm5/templates/EPI.nii" can not be resampled
>>
>> I'm all out of ideas, too.
>>
>> Chris Watson wrote:
>>> A little more information.
>>> We use Freesurfer to convert our DICOM images (from GE 3T scanner) 
>>> to Analyze 7.5 format. Should I be converting to nifti instead? I 
>>> get the same error when manually trying to do, e.g. slice timing 
>>> using the GUI (that is, bad image handle dimensions). So, as of 
>>> right now, I guess I can't view previous results or analyze new data.
>>>
>>> If it helps any, I attached a text file of the output to 
>>> 'analyze75info('foo.img')', and output of commands per this email : 
>>> http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0710&L=SPM&D=0&P=29198
>>>
>>> Happy Saturday,
>>> Chris
>>>
>>> Chris Watson wrote:
>>>> I downloaded the most recent update, and untarred it. Now when I 
>>>> try to view an SPM.mat, I get the following error message:
>>>> ??? Error using ==> spm_sample_vol
>>>> Bad image handle dimensions.
>>>>
>>>> Error in ==> spm_get_data at 41
>>>>        Y(i,:) = spm_sample_vol(V(i),XYZ(1,:),XYZ(2,:),XYZ(3,:),0);
>>>>
>>>> Error in ==> spm_getSPM at 540
>>>>        Z = min(Z,spm_get_data(xCon(i).Vspm,XYZ));
>>>>
>>>> Error in ==> spm_results_ui at 274
>>>>        [SPM,xSPM] = spm_getSPM;
>>>>
>>>> ??? Error while evaluating uicontrol Callback
>>>>
>>>> This won't require re-analyzing all the data, will it?
>>>> Chris
>>>>
>>>> Simon Durrant wrote:
>>>>> Hi Chris,
>>>>>  
>>>>> The fast and dirty solution is simply to turn the warning off by 
>>>>> entering the following at the command prompt:-
>>>>>  
>>>>> warning('off','MATLAB:FINITE:obsoleteFunction')
>>>>>  
>>>>> This will stop it slowing down the processing.  It's caused by the 
>>>>> Matlab guys changing the "finite" function name to "isfinite" to 
>>>>> make it more consistent with their other type-check functions, but 
>>>>> unfortunately all code using the old version subsequently gets a 
>>>>> warning.  I'm sure the SPM authors know about it and will be 
>>>>> updating that and many other version-specific issues (mex files 
>>>>> compiled with older versions of Matlab are another notable 
>>>>> example) in SPM8.
>>>>>  
>>>>> Best,
>>>>>  
>>>>> Simon
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------ 
>>>>>
>>>>>
>>>>> > Date: Fri, 8 Aug 2008 12:17:56 -0400
>>>>> > From: [log in to unmask]
>>>>> > Subject: [SPM] Warning, using Matlab 7.6 (R2008a)
>>>>> > To: [log in to unmask]
>>>>> >
>>>>> > Hello,
>>>>> > While doing preprocessing for a dataset, I receive this warning 
>>>>> (I just
>>>>> > upgraded to Matlab 7.6):
>>>>> >
>>>>> > Warning: FINITE is obsolete and will be removed in future 
>>>>> versions. Use
>>>>> > ISFINITE instead.
>>>>> > > In file_array.subsasgn>subfun at 95
>>>>> > In file_array.subsasgn at 63
>>>>> > In spm_write_plane at 33
>>>>> > In spm_slice_timing at 261
>>>>> > In spm_config_slice_timing>slicetiming at 170
>>>>> > In spm_jobman>run_struct1 at 1540
>>>>> > In spm_jobman>run_struct1 at 1548
>>>>> > In spm_jobman>run_struct1 at 1548
>>>>> > In spm_jobman>run_job at 469
>>>>> > In spm_jobman at 85
>>>>> >
>>>>> > This warning is spit out for just about every slice, and slows 
>>>>> down the
>>>>> > process quite a bit. This is what a tech support guy from The 
>>>>> Mathworks
>>>>> > had to say: (I originally thought the Matlab built-in 'subsasgn' 
>>>>> was to
>>>>> > blame)
>>>>> >
>>>>> > "It is true that FINITE function has been deprecated in MATLAB 
>>>>> and we
>>>>> > promote using ISFINITE instead of FINITE. As you mentioned that 
>>>>> spm_*
>>>>> > files are from the SPM5 package, you will probably need to 
>>>>> contact SPM
>>>>> > to incorporate the necessary changes about replacing the FINITE
>>>>> > functions to INFINITE in the files.
>>>>> > From the error messages, it does not seem that SUBASGN is using 
>>>>> FINITE.
>>>>> > Although it is hard to say by looking at the error messages 
>>>>> alone, but
>>>>> > it looks like SUBASGN has been overloaded for the FILE_ARRAY 
>>>>> object in
>>>>> > SPM5 package. Hence, in this case as well, you will probably 
>>>>> need to
>>>>> > contact SPM for further information."
>>>>> >
>>>>> > I already changed all instances of "finite" to "isfinite" in the 
>>>>> spm
>>>>> > files. Is there anything else to be done? (I'm using SPM5 on 
>>>>> RHEL4, for
>>>>> > reference).
>>>>> >
>>>>> > Thanks,
>>>>> > Chris Watson
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------ 
>>>>>
>>>>> Find out how to make Messenger your very own TV! Try it Now! 
>>>>> <http://clk.atdmt.com/UKM/go/101719648/direct/01/>
>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>>  
>>>>> analyze75info('/raid2/fmri5/realsubs_visclos_stroop/CARDIAC/metcalf_b/visclos/vc/bold/image001.img') 
>>>>>
>>>>>       
>>>
>>> ans =
>>>
>>> Filename: 
>>> '/raid2/fmri5/realsubs_visclos_stroop/CARDIAC/metcalf_b/visclos/vc/bold/image001.hdr' 
>>>
>>> FileModDate: '08-Aug-2008 14:46:51'
>>> HdrFileSize: 348
>>> ImgFileSize: 196608
>>> Format: 'Analyze'
>>> FormatVersion: '7.5'
>>> Width: 64
>>> Height: 64
>>> BitDepth: 16
>>> ColorType: 'grayscale'
>>> ByteOrder: 'ieee-le'
>>> HdrDataType: ''
>>> DatabaseName: ''
>>> Extents: 0
>>> SessionError: 0
>>> Regular: 0
>>> Dimensions: [64 64 24 1]
>>> VoxelUnits: 'mm'
>>> CalibrationUnits: ''
>>> ImgDataType: 'DT_SIGNED_SHORT'
>>> PixelDimensions: [3.7500 3.7500 6 2]
>>> VoxelOffset: 0
>>> CalibrationMax: 0
>>> CalibrationMin: 0
>>> Compressed: 0
>>> Verified: 0
>>> GlobalMax: 8191
>>> GlobalMin: 0
>>> Descriptor: ''
>>> AuxFile: ''
>>> Orientation: 'Transverse flipped'
>>> Originator: '  ''
>>> Generated: ''
>>> Scannumber: ''
>>> PatientID: ''
>>> ExposureDate: ''
>>> ExposureTime: ''
>>> Views: 0
>>> VolumesAdded: 0
>>> StartField: 0
>>> FieldSkip: 0
>>> OMax: 0
>>> OMin: 0
>>> SMax: 0
>>> SMin: 0
>>>
>>>  
>>>>> N =
>>>>> nifti('/raid2/fmri5/realsubs_visclos_stroop/CARDIAC/metcalf_b/visclos/vc/ 
>>>>>
>>>>> bold/image001.img');
>>>>> N.dat
>>>>>       
>>>
>>> ans =
>>>
>>> fname: [1x83 char]
>>> dim: [64 64 24]
>>> dtype: 'INT16-LE'
>>> offset: 0
>>> scl_slope: 1
>>> scl_inter: 0
>>>
>>>
>>>  
>>>>> size(N.dat)
>>>>>       
>>>
>>> ans =
>>>
>>> 64    64    24
>>>   
>>
>
>

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
2000
1999
1998


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