Hi Ben,
 thanks for reporting this, it's a useful fix.

Luca

On 08/mar/2013, at 00:07, "Berkowitz, Benjamin M" 
<benjamin-berkow...@uiowa.edu> wrote:

> Luca, 
> 
> I was segmenting using vmtklevelsetsegmentation and I got the following error:
> 
> Traceback (most recent call last):
>  File "segmentation_protocol.py", line 374, in <module>
>    main(sys.argv[1], sys.argv[2], sys.argv[3])
>  File "segmentation_protocol.py", line 309, in main
>    arteriesLvl, isGood = CreateArteries(voiImage, correctionsImage, artery, 
> side, path, caseNumber)
>  File "segmentation_protocol.py", line 149, in CreateArteries
>    arteryLvlSet.Execute()
>  File 
> "/Users/benberkowitz/vmtk-build/Install/lib/vmtk/vmtk/vmtklevelsetsegmentation.py",
>  line 327, in Execute
>    self.vmtkImageInitialization.Execute()
>  File 
> "/Users/benberkowitz/vmtk-build/Install/lib/vmtk/vmtk/vmtkimageinitialization.py",
>  line 446, in Execute
>    initializationMethods[initializationType]()
>  File 
> "/Users/benberkowitz/vmtk-build/Install/lib/vmtk/vmtk/vmtkimageinitialization.py",
>  line 292, in CollidingFrontsInitialize
>    shiftScale.SetScale(1/(scalarRange[1]-scalarRange[0]))
> ZeroDivisionError: float division by zero
> 
> 
> I think it happened because I didn't have voxels selected in the colliding 
> fronts initialization I had just finished.  Not sure how often anyone runs 
> into that, but I thought I would report the error.
> 
> Thanks,
> Ben
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
> endpoint security space. For insight on selecting the right partner to 
> tackle endpoint security challenges, access the full report. 
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to