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  July 2017

SPM July 2017

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: CAT12 error - Segmentation/Surface and Thickness Estimation

From:

Christian Gaser <[log in to unmask]>

Reply-To:

Christian Gaser <[log in to unmask]>

Date:

Sun, 2 Jul 2017 07:02:03 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (294 lines)

Dear Andreia,

please can you try to change line 421 in cat_surf_createCS.m to:
    cmd = sprintf('CAT_FixTopology -lim 128 -bw 512 -n 81920 -refine_length 2 "%s" "%s" "%s"',Praw,Psphere0,Pcentral);

Maybe, the new laplace option causes these problems.

Best,

Christian

On Thu, 29 Jun 2017 15:37:21 +0100, Andreia N. Queirós <[log in to unmask]> wrote:

>[Please ignore the previous post due to error in formating] 
>
>Dear CAT experts,
>
>this is the first time that our research group is resorting to the CAT12 toolbox. 
>We need to obtain volume and surface measures for structures such as the left and right insula.
>
>In the preprocessing stage, when we are running the segment data analysis, Cat12 is able to generate GM, WM, and CSF. however, most of the time (about 9 in every 10 trials), it crashes before surface generation. Please see the error message below, copied from the Matlab command window.
>
>Error message starts here (Please find attached the complete at the end of this post): 
>a pop up message box appears with the following text: "CAT_FixTopology.exe has stopped working" prior to the following log:
>------------------------------------------------------------------------
>CAT Preprocessing error: CAT:system_error: .   27 - cat_check_system_output
>423 - cat_surf_createCS
>1637 - cat_main
>634 - cat_run_job1070
>14 - cat_run_newcatch
>276 - run_job
>155 - cat_run
>29 - cfg_run_cm
>1688 - local_runcj
>959 - cfg_util
>703 - MenuFileRun_Callback
>95 - gui_mainfcn
>53 - cfg_ui
>------------------------------------------------------------------------
>Error:cat_io_report:CATgui: Error in cat_io_report GUI parameter report creation > incomple CAT parameters.
> 
>
>What we find very odd is that the exact same analysis (i.e., same .nii files with the same parameters) most of the time fails, however, at times it runs until its completion.
>
>Our hardware/software settings are as follows: 
>* System: Windows 10 Home - 1607 / 64-bit
>* Matlab: R2015a
>* SPM12 (v6906) 
>* CAT12 (r1148) 
>
>We've already tried the following solutions as per recommendations in previous posts: 
>* Set the number os processes to "0"
>* Substituted the file "cat_check_system_output.m" in the Cat12 folder 
>* Tested that we are able to display gifti files using the "spm_mesh_render" function
>* Tested the previous versions of CAT12: r1147 and the r1113
>* Tested another Windows version: Windows 10 Pro - 1703 / 64-bit
>Please note that we always run Cat12 without any other software running simultaneously.
>
>We thank you in advance for any help you can give us. We are at a loss as what to do next.
>
>Best regards,
>Andreia N. Queirós
>
>
>
>
>
>
>««««««««««««««««««««««««««««««««««««»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
>
> ___  ____  __  __                                            
>/ __)(  _ \(  \/  )                                           
>\__ \ )___/ )    (   Statistical Parametric Mapping           
>(___/(__)  (_/\/\_)  SPM12 - http://www.fil.ion.ucl.ac.uk/spm/
>
>
>SPM12: v6906                                       14:47:38 - 29/06/2017
>========================================================================
>Initialising SPM                        :                   ........done
>
>SPM present working directory:
>	C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin
>>> cat12
>
>SPM12: spm_cat12 (vCAT12)                          14:48:01 - 29/06/2017
>========================================================================
>
>   _______  ___  _______    
>  |  ____/ / _ \ \_   _/   
>  | |___  / /_\ \  | |     Computational Anatomy Toolbox
>  |____/ /_/   \_\ |_|     CAT12 - http://www.neuro.uni-jena.de
>
> CAT default file:
>	C:\Users\andre\Documents\Software_fMRI\spm12\toolbox\cat12\cat_defaults.m
>
>
>
>------------------------------------------------------------------------
>Running job #1
>------------------------------------------------------------------------
>Running 'CAT12: Segmentation'
>
>------------------------------------------------------------------------
>CAT12 r1148: 1/1:              .\nifti\sB003023-0016-00001-000176-01.nii
>------------------------------------------------------------------------
>APP: Rough bias correction:                                        
>  Initialize                                                          6s
>  Estimate background                                                 3s
>  Initial correction                                                  8s
>  Refine background                                                   5s
>  Final correction                                                    6s
>  Background correction                                               1s
>  Final scaling                                                       4s
>                                                                     33s
>Coarse affine registration                                           24s
>Affine registration                                                   9s
>SPM preprocessing 1 (estimate):                                     106s
>SPM preprocessing 2 (write):                                        102s
>Global intensity correction:                                         21s
>SANLM noise correction:                                              20s
>Local adaptive segmentation (LASstr=0.50):                         
>  Prepare maps                                                        5s
>  Prepare partitions                                                  3s
>  Prepare segments (LASmod = 1.04)                                   24s
>  Estimate local tissue thresholds                                   68s
>  SANLM noise correction for LAS                                     18s
>                                                                    118s
>ROI segmentation (partitioning):                                   
>  Atlas -> subject space                                             10s
>  Major structures                                                    8s
>  Ventricle detection                                                13s
>  Blood vessel detection                                              6s
>  WMH detection (WMHCstr=0.50)                                       20s
>  Closing of deep structures                                          3s
>  Side alignment                                                      8s
>  Final corrections                                                   4s
>                                                                     72s
>Blood vessel correction (BVCstr=0.50):                                3s
>Skull-stripping using graph-cut (gcutstr=0.50):                    
>  WM initialisation                                                   7s
>  GM region growing                                                   2s
>  GM-CSF region growing                                               7s
>  CSF region growing                                                  8s
>  Ventricle filling                                                   5s
>                                                                     29s
>Amap using initial SPM12 segmentations (MRF filter strength 0.05):   42s
>    AMAP peaks: [CSF,GM,WM] = [0.41±0.07,0.68±0.08,0.98±0.04]
>Final cleanup (gcutstr=0.50):                                      
>  Level 1 cleanup (ROI estimation)                                    6s
>  Level 1 cleanup (brain masking)                                     3s
>  Level 2 cleanup (CSF correction)                                    3s
>  Level 3 cleanup (CSF/WM PVE)                                        2s
>                                                                     14s
>Internal WMH correction for spatial normalization (WMHCstr=0.50):     5s
>Dartel registration with 1.50 mm:                                  
>    1 | 0.2105 |   446828        0   446828  364.853 
>    2 | 0.1744 |   370176    22592   392768  177.532 
>    3 | 0.1703 |   361552    22796   384348   59.553 
>    4 | 0.1700 |   360991    12113   373104  180.362 
>    5 | 0.1571 |   333483    29955   363438   64.433 
>    6 | 0.1571 |   333437    29200   362637   37.751 
>    7 | 0.1583 |   336097    15161   351258  154.942 
>    8 | 0.1450 |   307887    33370   341257   56.192 
>    9 | 0.1448 |   307480    32790   340270   32.778 
>   10 | 0.1461 |   310233    17136   327369  139.878 
>   11 | 0.1322 |   280555    35906   316460   54.727 
>   12 | 0.1315 |   279153    35805   314959   34.261 
>   13 | 0.1327 |   281689    18915   300603  116.736 
>   14 | 0.1201 |   254984    35110   290094   50.467 
>   15 | 0.1188 |   252100    36182   288282   32.212 
>   16 | 0.1183 |   251169    38053   289222   38.995 
>   17 | 0.1177 |   249788    38462   288250   27.517 
>   18 | 0.1171 |   248683    39277   287960   24.543 
>                                                                    272s
>Write result maps:                                                   35s
>Surface and thickness estimation:                                  
>lh:
>  Thickness estimation (0.50 mm³):                                 
>    WM distance:                                                     61s
>    CSF distance:                                                    56s
>    PBT2x thickness:                                                 37s
>    Final Corrections:                                              169s
>  Create initial surface                                           
>Setting up...
>Starting main process...
>Done with 10 percent.
>Done with 20 percent.
>Done with 30 percent.
>Done with 40 percent.
>Done with 50 percent.
>Done with 60 percent.
>Done with 70 percent.
>Done with 80 percent.
>Done with 90 percent.
>Done with 100 percent.
>Made 42 adjustments.
>Extracting component with largest number of vertices...
>Vertices: 601414  Triangles: 1202840
>Setting up...
>Starting main process...
>Done with 10 percent.
>Done with 20 percent.
>Done with 30 percent.
>Done with 40 percent.
>Done with 50 percent.
>Done with 60 percent.
>Done with 70 percent.
>Done with 80 percent.
>Done with 90 percent.
>Done with 100 percent.
>Made 30 adjustments.
>Extracting component with largest number of vertices...
>Vertices: 601536  Triangles: 1203084
>                                                                     18s
>  Reduce surface to 100000 faces:                                  Resampled into 251284 polygons.
>Extract largest of 120 components.
>  37s
>  Topology correction and surface refinement                       
>------------------------------------------------------------------------
>CAT Preprocessing error: CAT:system_error: .   27 - cat_check_system_output
>  423 - cat_surf_createCS
> 1637 - cat_main
>  634 - cat_run_job1070
>   14 - cat_run_newcatch
>  276 - run_job
>  155 - cat_run
>   29 - cfg_run_cm
> 1688 - local_runcj
>  959 - cfg_util
>  703 - MenuFileRun_Callback
>   95 - gui_mainfcn
>   53 - cfg_ui
>------------------------------------------------------------------------
>    Error:cat_io_report:CATgui: Error in cat_io_report GUI parameter report creation > incomple CAT parameters.
>Warning: Error updating Text.
>
> String must have valid interpreter syntax:
>..cuments\Software\_fMRI\spm12\tpm\TPM.nii
> 
>> In defaulterrorcallback (line 12)
>  In spm_orthviews>redraw (line 1459)
>  In spm_orthviews>redraw_all (line 1466)
>  In spm_orthviews (line 280)
>  In cat_io_report (line 392)
>  In cat_run_newcatch (line 67)
>  In cat_run>run_job (line 276)
>  In cat_run (line 155)
>  In cfg_run_cm (line 29)
>  In cfg_util>local_runcj (line 1688)
>  In cfg_util (line 959)
>  In cfg_ui>MenuFileRun_Callback (line 703)
>  In gui_mainfcn (line 95)
>  In cfg_ui (line 53) 
>Warning: Error updating Text.
>
> String must have valid interpreter syntax:
>..tes\_1.50mm\Template\_1\_IXI555\_MNI152.nii
> 
>> In defaulterrorcallback (line 12)
>  In spm_orthviews>redraw (line 1459)
>  In spm_orthviews>redraw_all (line 1466)
>  In spm_orthviews (line 280)
>  In cat_io_report (line 392)
>  In cat_run_newcatch (line 67)
>  In cat_run>run_job (line 276)
>  In cat_run (line 155)
>  In cfg_run_cm (line 29)
>  In cfg_util>local_runcj (line 1688)
>  In cfg_util (line 959)
>  In cfg_ui>MenuFileRun_Callback (line 703)
>  In gui_mainfcn (line 95)
>  In cfg_ui (line 53) 
>
>Print 'Graphics' figure to: 
>  C:\Users\andre\Desktop\Participante4\nifti\report\catreport_sB003023-0016-00001-000176-01.pdf
>Failed  'CAT12: Segmentation'
>Error using cat_check_system_output (line 27)
>'find_selfintersections: .......................................................'
>In file "C:\Users\andre\Documents\Software_fMRI\spm12\toolbox\cat12\cat_check_system_output.m" (v1022), function "cat_check_system_output" at line 27.
>In file "C:\Users\andre\Documents\Software_fMRI\spm12\toolbox\cat12\cat_surf_createCS.m" (v1137), function "cat_surf_createCS" at line 423.
>In file "C:\Users\andre\Documents\Software_fMRI\spm12\toolbox\cat12\cat_main.m" (v1145), function "cat_main" at line 1637.
>In file "C:\Users\andre\Documents\Software_fMRI\spm12\toolbox\cat12\cat_run_job1070.m" (v1147), function "cat_run_job1070" at line 634.
>In file "C:\Users\andre\Documents\Software_fMRI\spm12\toolbox\cat12\cat_run_newcatch.m" (???), function "cat_run_newcatch" at line 14.
>In file "C:\Users\andre\Documents\Software_fMRI\spm12\toolbox\cat12\cat_run.m" (v1148), function "run_job" at line 276.
>In file "C:\Users\andre\Documents\Software_fMRI\spm12\toolbox\cat12\cat_run.m" (v1148), function "cat_run" at line 155.
>
>The following modules did not run:
>Failed: CAT12: Segmentation
>
>>> 
>
>
>

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