<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://stage.nitrcce.org/themes/nitrc3.0/css/rss.xsl.php?feed=https://stage.nitrcce.org/export/rss20_forum.php?forum_id=3769" ?>
<?xml-stylesheet type="text/css" href="https://stage.nitrcce.org/themes/nitrc3.0/css/rss.css" ?>
<rss version="2.0"> <channel>
  <title>NITRC Rodent Cortical Thickness Analysis Forum: open-discussion</title>
  <link>http://stage.nitrcce.org/forum/forum.php?forum_id=3769</link>
  <description>General Discussion</description>
  <language>en-us</language>
  <copyright>Copyright 2000-2026 NITRC OSI</copyright>
  <webMaster></webMaster>
  <lastBuildDate>Fri, 10 Apr 2026 1:15:27 GMT</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NITRC RSS generator</generator>
  <item>
   <title>RE: shapeworks.py</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</link>
   <description>Hi Francois,&lt;br /&gt;
Hi Beatriz,&lt;br /&gt;
&lt;br /&gt;
thanks a lot for the ImageStat. Recently, I have encountered another problem with shapeworks.py.&lt;br /&gt;
&lt;br /&gt;
I think it has something to do with itkImageFileReader.hxx. Colud you please help me to diagnose the problem?&lt;br /&gt;
&lt;br /&gt;
thanks a lot for your support! &lt;br /&gt;
&lt;br /&gt;
Marco&lt;br /&gt;
&lt;br /&gt;
/usr/bin/python /home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py /MRI-G/experiments/ex-vivo/cortical_thickness/output_GUI2/Processing/2.shapeworks/inputimage.txt /MRI-G/experiments/ex-vivo/cortical_thickness/output_GUI2/Processing/2.shapeworks/inputsurfacemodels.txt -c /MRI-G/experiments/ex-vivo/cortical_thickness/output_GUI2/Processing/2.shapeworks/outputCorrespondence.txt -w /MRI-G/experiments/ex-vivo/cortical_thickness/output_GUI2/Processing/2.shapeworks/outputWarped.txt --workingDir /MRI-G/experiments/ex-vivo/cortical_thickness/output_GUI2/Processing/2.shapeworks --pathShapeWorksRun /home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/Application/ShapeWorksRun --pathShapeWorksGroom /home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/Application/ShapeWorksGroom --pathImageMath /home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/Application/ImageMath --pathBinaryToDistanceMap /home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/Application/BinaryToDistanceMap&lt;br /&gt;
&lt;br /&gt;
Executing /home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/Application/ImageMath /MRI-G/experiments/ex-vivo/cortical_thickness/output_GUI2/Processing/1.MeasurementandSPHARM/1.labelMapNCsegmentationSegPostProcess.nrrd -type short -changeSp 1.25,1.25,1.25 -outfile 000.DT.nrrd ...&lt;br /&gt;
SPACING: 1.25 | 1.25 | 1.25&lt;br /&gt;
&lt;br /&gt;
Executing /home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/Application/BinaryToDistanceMap --binaryInput 000.DT.nrrd --smoothing 1.25 --output 000.DT.nrrd ...&lt;br /&gt;
image read&lt;br /&gt;
distance map computed&lt;br /&gt;
smoothing: 1.25&lt;br /&gt;
smoothing completed&lt;br /&gt;
&lt;br /&gt;
Converting /MRI-G/experiments/ex-vivo/cortical_thickness/output_GUI2/Processing/1.MeasurementandSPHARM/1.ip.SPHARM.vtk into 000.initial.lpts [1002 points] ...&lt;br /&gt;
ITK exception caught in main&lt;br /&gt;
&lt;br /&gt;
itk::ImageFileReaderException (0x1bc6a00)&lt;br /&gt;
Location: &amp;quot;void itk::ImageFileReader::GenerateOutputInformation() [with TOutputImage = itk::Image, ConvertPixelTraits = itk::DefaultConvertPixelTraits]&amp;quot;&lt;br /&gt;
File: /home/imaging/tools/antsbin/ITKv4/Modules/IO/ImageBase/include/itkImageFileReader.hxx&lt;br /&gt;
Line: 143&lt;br /&gt;
Description:  Could not create IO object for file /MRI-G/experiments/ex-vivo/cortical_thickness/output_GUI2/Processing/1.MeasurementandSPHARM/1.labelMapNCsegmentationSegPostProcess.nrrd&lt;br /&gt;
Tried to create one of the following:&lt;br /&gt;
You probably failed to set a file suffix, or&lt;br /&gt;
set the suffix to an unsupported type.&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File &amp;quot;/home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py&amp;quot;, line 232, in&lt;br /&gt;
main(opts, args)&lt;br /&gt;
File &amp;quot;/home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py&amp;quot;, line 190, in main&lt;br /&gt;
vtk2lpts(inputImages,inputSurfaces, inputPoints)&lt;br /&gt;
File &amp;quot;/home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py&amp;quot;, line 48, in vtk2lpts&lt;br /&gt;
pixsize=voxelSize(fim)&lt;br /&gt;
File &amp;quot;/home/imaging/tools/RodentThickness/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py&amp;quot;, line 124, in voxelSize&lt;br /&gt;
spacing = [ float(i) for i in pixdims[0].split(&amp;quot; &amp;quot;)[1:] ]&lt;br /&gt;
IndexError: list index out of range</description>
   <author>Marco P</author>
   <pubDate>Tue, 04 Aug 2015 9:37:40 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</guid>
  </item>
  <item>
   <title>RE: shapeworks.py</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</link>
   <description>Hello Marco,&lt;br /&gt;
&lt;br /&gt;
You can find ImageStat in the project called niral_utilities:&lt;br /&gt;
https://github.com/NIRALUser/niral_utilities&lt;br /&gt;
If you are a developer, you can compile it from the source code that is in the repository I sent you. If not, we could send you an executable. In the latter case, could you let us know if you are using linux, Windows or Mac.&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
Francois</description>
   <author>Beatriz Paniagua</author>
   <pubDate>Fri, 31 Jul 2015 13:24:55 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</guid>
  </item>
  <item>
   <title>RE: shapeworks.py</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</link>
   <description>Hi Joohwi, I'm still trying to use rodent thickness. do you have any news about ImageStat? Thanks a lot! Marco</description>
   <author>Marco P</author>
   <pubDate>Fri, 31 Jul 2015 12:47:52 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</guid>
  </item>
  <item>
   <title>RE: shapeworks.py</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</link>
   <description>Hi Joohwi, could you let us know about ImageStat? Thanks. Marco</description>
   <author>Marco P</author>
   <pubDate>Mon, 21 Jul 2014 10:26:23 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</guid>
  </item>
  <item>
   <title>RE: shapeworks.py</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</link>
   <description>Hello, the error has occurred because ImageStat is not installed.&lt;br /&gt;
&lt;br /&gt;
I will check the repository and include the tool if it isn't there.&lt;br /&gt;
&lt;br /&gt;
Thanks!</description>
   <author>Joohwi Lee</author>
   <pubDate>Wed, 16 Jul 2014 19:21:54 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</guid>
  </item>
  <item>
   <title>shapeworks.py</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</link>
   <description>Dear Beatriz,&lt;br /&gt;
&lt;br /&gt;
I'm using your Rodent Thickness pipeline to estimate the cortical thickness in a sample of mice. Following the pipeline, I entered all necessary information in the GUI and measureThicknessFilter, ImageMath, SegPostProcessCLP, GenParaMeshCLP and ParaToSPHARMMeshCLP worked fine to me. &lt;br /&gt;
I encountered one problem when I used shapeworks.py. could you help me to solve it, please?&lt;br /&gt;
&lt;br /&gt;
Thank you for your collaboration.&lt;br /&gt;
&lt;br /&gt;
Marco&lt;br /&gt;
&lt;br /&gt;
run: '/usr/bin/python' '/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py' '/Rodent_Thickness/test8/Processing/2.shapeworks/inputimage.txt' '/Rodent_Thickness/test8/Processing/2.shapeworks/inputsurfacemodels.txt' '-c' '/Rodent_Thickness/test8/Processing/2.shapeworks/outputCorrespondence.txt' '-w' '/Rodent_Thickness/test8/Processing/2.shapeworks/outputWarped.txt' '--workingDir' '/Rodent_Thickness/test8/Processing/2.shapeworks' '--pathShapeWorksRun' '/RodentThickness_package_v1.1_with_vtk_and_python/Application/ShapeWorksRun' '--pathShapeWorksGroom' '/RodentThickness_package_v1.1_with_vtk_and_python/Application/ShapeWorksGroom' '--pathImageMath' '/RodentThickness_package_v1.1_with_vtk_and_python/Application/ImageMath' '--pathBinaryToDistanceMap' '/RodentThickness_package_v1.1_with_vtk_and_python/Application/BinaryToDistanceMap'&lt;br /&gt;
Status: Finish: Execution time 600ms&lt;br /&gt;
Error: terminate called after throwing an instance of 'itk::ImageFileReaderException'&lt;br /&gt;
Error:   what():  /NIRAL/work/mjacquem/CorticalSlicer/ITKv4-install/include/ITK-4.4/itkImageFileReader.hxx:143:&lt;br /&gt;
Error:  Could not create IO object for file 000.DT.nrrd&lt;br /&gt;
Error: The file doesn't exist.&lt;br /&gt;
Error: Filename = 000.DT.nrrd&lt;br /&gt;
Error: Aborted (core dumped)&lt;br /&gt;
Error: sh: 1: ImageStat: not found&lt;br /&gt;
Error: Traceback (most recent call last):&lt;br /&gt;
Error:   File &amp;quot;/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py&amp;quot;, line 232, in&lt;br /&gt;
Error:     main(opts, args)&lt;br /&gt;
Error:   File &amp;quot;/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py&amp;quot;, line 190, in main&lt;br /&gt;
Error:     vtk2lpts(inputImages,inputSurfaces, inputPoints)&lt;br /&gt;
Error:   File &amp;quot;/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py&amp;quot;, line 48, in vtk2lpts&lt;br /&gt;
Error:     pixsize=voxelSize(fim)&lt;br /&gt;
Error:   File &amp;quot;/RodentThickness_package_v1.1_with_vtk_and_python/pythonscript/shapeworks.py&amp;quot;, line 124, in voxelSize&lt;br /&gt;
Error:     spacing = [ float(i) for i in pixdims[0].split(&amp;quot; &amp;quot;)[1:] ]&lt;br /&gt;
Error: IndexError: list index out of range&lt;br /&gt;
| Running Failed...</description>
   <author>Marco P</author>
   <pubDate>Tue, 15 Jul 2014 16:08:03 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=4663&amp;forum_id=3769</guid>
  </item>
  <item>
   <title>Welcome to Open-Discussion</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=3791&amp;forum_id=3769</link>
   <description>Welcome to Open-Discussion</description>
   <author>Marie Jacquemard</author>
   <pubDate>Tue, 26 Feb 2013 19:35:01 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=3791&amp;forum_id=3769</guid>
  </item>
 </channel>
</rss>
