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  March 2013

SPM March 2013

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

FW: [SPM]SOLVED Increase check reg number 15+/15+ instead of 15/15???

From:

Rodrigo Perea <[log in to unmask]>

Reply-To:

Rodrigo Perea <[log in to unmask]>

Date:

Tue, 26 Mar 2013 17:25:53 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (176 lines)

Thanks Chris & Guillaume.
I was able to get this working for up to 50 images at a time. I'll be
using this just for a fast check for all images since detailed images are
not shown very well unless I go below 20 in the big monitor. Anyhow, I had
to modify some spm files such as spm_orthviews, spm_figure,
spm_check_registration to get it working and actually I created a toolbox
for it. 
I hope this helps anybody else who wants to do it!

Thanks to all again,
Rodrigo


Rodrigo Dennis Perea
Graduate Research Assistant
[log in to unmask]
Bioengineering Program
Alzheimer's Research Center
The University of Kansas





On 3/26/13 10:18 AM, "Guillaume Flandin" <[log in to unmask]> wrote:

>spm8> grep 24 spm_orthviews.m
>            handles = 1:24;
>            handles = 1:24;
>            handles = 1:24;
>h   = valid_handles(1:24);
>for i=valid_handles(1:24),
>my_delete(1:24);
>for i=valid_handles(1:24)
>for i=valid_handles(1:24)
>    current_handle = valid_handles(1:24);
>for i=valid_handles(1:24),
>redraw(1:24);
>                img  = histeq([imgt1(:); imgc1(:); imgs1(:)],1024);
>                img  = histeq([imgt1(:).^2; imgc1(:).^2;
>imgs1(:).^2],1024);
>                img  = histeq([imgt1(:); imgc1(:); imgs1(:)],1024);
>for i=valid_handles(1:24),
>    handles = handles(handles<=24 & handles>=1 & ~rem(handles,1));
>st.vols = cell(24,1);
>        for k = valid_handles(1:24),
>        cm_handles = valid_handles(1:24);
>        cm_handles = valid_handles(1:24);
>        cm_handles = valid_handles(1:24);
>        cm_handles = valid_handles(1:24);
>        cm_handles = valid_handles(1:24);
>        cm_handles = valid_handles(1:24);
>            cm_handles = valid_handles(1:24);
>for i = 1:numel(valid_handles(1:24)),
>for i=valid_handles(1:24),
>
>
>and in particular, l. 1461-1465 of spm_orthviews.m:
>global st
>fig     = spm_figure('FindWin','Graphics');
>bb      = []; %[ [-78 78]' [-112 76]' [-50 85]' ];
>st      = struct('n', 0, 'vols',[], 'bb',bb,'Space',eye(4),'centre',[0 0
>0],'callback',';','xhairs',1,'hld',1,'fig',fig,'mode',1,'plugins',{{}},'sn
>ap',[]);
>st.vols = cell(24,1);
>
>
>
>On 26/03/13 14:31, Rodrigo Perea wrote:
>> Great I'll give it a try todayİbut as far as I understood debugging the
>> code, the 24 struct array is a global array that has been created as st.
>> (If I type "global st" in the matlab command, I'll get a st structure
>>with
>> 24 vols in st.vols. Am I missing something? There is no explicit 24
>> designation in spm_orthviews
>> 
>> 
>> Rodrigo Dennis Perea
>> Graduate Research Assistant
>> [log in to unmask]
>> Bioengineering Program
>> Alzheimer's Research Center
>> The University of Kansas
>> 
>> 
>> 
>> 
>> 
>> On 3/26/13 9:12 AM, "Guillaume Flandin" <[log in to unmask]> wrote:
>> 
>>> Hi Rodrigo,
>>>
>>> you have to change spm_orthviews.m to replace all mentions of '24' to a
>>> larger value. Attached are versions of spm_check_registration.m and
>>> spm_orthviews.m from SPM12 (that, I think, should still be compatible
>>> with SPM8) where you only have to edit them once (at the very end for
>>> spm_orthviews.m).
>>> If it gets too crowded with many images, you can manually resize the
>>>SPM
>>> Graphics window and adjust the placement algorithm in
>>> spm_check_registration.m to fit with the new layout.
>>>
>>> Best,
>>> Guillaume.
>>>
>>> On 26/03/13 14:06, Rodrigo Perea wrote:
>>>> Guillaume, 
>>>> Thanks for your reply. I got it working for 24 but I want some number
>>>> around 50. Apparently I have to change the global variable st. Can I
>>>>do
>>>> so? If so, where is it defined?
>>>>
>>>>
>>>> Sent from Samsung Mobile
>>>>
>>>>
>>>>
>>>> -------- Original message --------
>>>> From: Guillaume Flandin <[log in to unmask]>
>>>> Date: 03/26/2013 6:22 AM (GMT-06:00)
>>>> To: Rodrigo Perea <[log in to unmask]>
>>>> Subject: Re: [SPM] Increase check reg number 15+/15+ instead of
>>>>15/15???
>>>>
>>>>
>>>> Hi Rodrigo,
>>>>
>>>> you can edit spm_check_registration and change l.19:
>>>>    [images, sts] = spm_select([1 15],'image','Select images');
>>>> In SPM12, the default is now 24. If you want to go beyond that, you
>>>>will
>>>> have to edit spm_orthviews.m as well, as the maximum value of 24 is
>>>> hardcoded a number of times.
>>>> If you have a very large number of images, there is also a little
>>>> facility in SPM12 (a 'browser' plugin accessible from the contextual
>>>> menu) that allows you to scroll through a large number of images.
>>>>
>>>> Best regards,
>>>> Guillaume.
>>>>
>>>>
>>>> On 25/03/13 20:21, Rodrigo Perea wrote:
>>>>> I have a 27'' display so I was wondering if I can increase the number
>>>>> of the images at a time instead of getting 15 only, something like 30
>>>>> at a time or more. Could anybody specify the spm script I need to
>>>>> change for this to work?
>>>>>
>>>>> Thanks in advance,
>>>>> Rodrigo
>>>>>
>>>>
>>>> -- 
>>>> Guillaume Flandin, PhD
>>>> Wellcome Trust Centre for Neuroimaging
>>>> University College London
>>>> 12 Queen Square
>>>> London WC1N 3BG
>>>>
>>>
>>> -- 
>>> Guillaume Flandin, PhD
>>> Wellcome Trust Centre for Neuroimaging
>>> University College London
>>> 12 Queen Square
>>> London WC1N 3BG
>> 
>> 
>
>-- 
>Guillaume Flandin, PhD
>Wellcome Trust Centre for Neuroimaging
>University College London
>12 Queen Square
>London WC1N 3BG
>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
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