Difference between revisions of "User:Davisb"

From NAMIC Wiki
Jump to: navigation, search
Line 3: Line 3:
 
==Rule Based Segmentation==
 
==Rule Based Segmentation==
  
Status summary: fixed wrapper, added mask code, currently debugging mask code
+
===Status summary===
 +
itk tests work, fixed vtk wrapper, added mask code to vtk wrapper, currently debugging mask code
  
 +
===How to build module===
 
*build initial copy
 
*build initial copy
 
**get cvs copy of slicer2
 
**get cvs copy of slicer2
Line 15: Line 17:
 
**compile slicer2 with RuleBasedSegmentation module
 
**compile slicer2 with RuleBasedSegmentation module
 
***Scripts/genlib.tcl
 
***Scripts/genlib.tcl
 +
 +
===How to add tests (under construction)===
 
*add tests
 
*add tests
 
**test source is already present in the cxx directory
 
**test source is already present in the cxx directory
Line 26: Line 30:
 
*vtk test with mask does not succeed
 
*vtk test with mask does not succeed
  
Problems:
+
===Problems===
  
 
*[fixed]Build fails---updated name in cmakelists
 
*[fixed]Build fails---updated name in cmakelists

Revision as of 19:40, 4 May 2007

Current Projects

Rule Based Segmentation

Status summary

itk tests work, fixed vtk wrapper, added mask code to vtk wrapper, currently debugging mask code

How to build module

  • build initial copy
    • 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

How to add tests (under construction)

  • 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 test without mask succeeds
  • vtk test with mask does not succeed

Problems

  • [fixed]Build fails---updated name in cmakelists
  • [temporary tests added] need to add tests
    • itk test
    • vtk test
  • [now working] vtk test does not work---subtle error in itk code
  • [done] need to add mask
  • [the dimensios are itk=3, vtk=3, made itk test 3D also] why does vtk test give warning from diffusion filter, but itk test does not?
  • [pending]results from vtk test with mask do not work
  • need to check everything in

VTK wrapper does not work

  • use VTKITK source from vtkITK directory, not seperate copy of files