Difference between revisions of "User:Davisb"

From NAMIC Wiki
Jump to: navigation, search
 
(9 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
==Rule Based Segmentation==
 
==Rule Based Segmentation==
  
Status summary: fixing vtk wrapper of itkBayes code---debugging, could be 2 hours, could be 2 days
+
===Status summary===
 +
Code is debugged, wrapper works
  
*build initial copy
+
itk tests work; fixed vtk wrapper; added mask code to vtk wrapper; vtk tests work
**get cvs copy of slicer2
+
 
***Scripts/genlib.tcl
+
===How to build module===
***Scripts/cmaker.tcl
+
*get cvs copy of slicer2
**get svn copy of NAMICSandbox
+
**Scripts/genlib.tcl
**create a link to the RuleBasedSegmentation module within slicer2
+
**Scripts/cmaker.tcl
 +
*get svn copy of NAMICSandbox
 +
*create a link to the RuleBasedSegmentation module within slicer2
 
  cd slicer2/Modules
 
  cd slicer2/Modules
 
  ln -s NAMICSandbox/RuleBasedSegmentation/vtkRuleBasedSegmentation vtkRuleBasedSegmentation
 
  ln -s NAMICSandbox/RuleBasedSegmentation/vtkRuleBasedSegmentation vtkRuleBasedSegmentation
**compile slicer2 with RuleBasedSegmentation module
+
*compile slicer2 with RuleBasedSegmentation module
***Scripts/genlib.tcl
+
**Scripts/genlib.tcl
*add tests
 
**test source is already present in the cxx directory
 
**update CMakeListsLocal.txt in cxx directory---tests are built in module directory
 
**added a temporary script RunsTests.sh in the Tests directory to run the itk and vtk tests with and without masks
 
**copied png images to the Tests directory
 
**"gold standard" images were incorrect; have been rescaled from [0,1] to [0,255]; so much for gold standard ;)
 
*Run tests
 
*itk tests succeed
 
*vtk tests do not succeed---there is a problem with the wrapper
 
  
Problems:
+
===Problems===
  
 
*[fixed]Build fails---updated name in cmakelists
 
*[fixed]Build fails---updated name in cmakelists
*[temporary tests added] need to add tests
+
*[now working] vtk test does not work---subtle templating error (false assumption) in itk code
**itk test
+
*images must be flipped between vtk reader/writers and itk pipeline (how many dimensions?)
**vtk test
+
*there was a problem with readers and writers for unsigned long data type, changed to unsigned short
*[pending] vtk test does not work
 
 
 
===VTK wrapper does not work===
 
*use VTKITK source from vtkITK directory, not seperate copy of files
 

Latest revision as of 23:26, 6 May 2007

Current Projects

Rule Based Segmentation

Status summary

Code is debugged, wrapper works

itk tests work; fixed vtk wrapper; added mask code to vtk wrapper; vtk tests work

How to build module

  • get cvs copy of slicer2
    • Scripts/genlib.tcl
    • Scripts/cmaker.tcl
  • get svn copy of NAMICSandbox
  • create a link to the RuleBasedSegmentation module within slicer2
cd slicer2/Modules
ln -s NAMICSandbox/RuleBasedSegmentation/vtkRuleBasedSegmentation vtkRuleBasedSegmentation
  • compile slicer2 with RuleBasedSegmentation module
    • Scripts/genlib.tcl

Problems

  • [fixed]Build fails---updated name in cmakelists
  • [now working] vtk test does not work---subtle templating error (false assumption) in itk code
  • images must be flipped between vtk reader/writers and itk pipeline (how many dimensions?)
  • there was a problem with readers and writers for unsigned long data type, changed to unsigned short