Run 'vesselness' got error code

14 views
Skip to first unread message

s450315

unread,
Jul 10, 2009, 4:02:05 AM7/10/09
to devide-users
Ask for help! I try to use the 3-D Hessian to calculate a the
”vesselness” metric and hence enhance the bronchial structures in the
lungs of the PANORAMIX dataset.

In graph canvas: vtiRDR (lung.vti) -> CodeRunner -> slice3dVWR

The code in CodeRunner: ========================
# CODERUNNER SETUP

import itk
import module_kits

# first derive 3-D Hessian
obj.h = itk.HessianRecursiveGaussianImageFilter[itk.Image.F3].New()
# use Hessian to calculate Vesselness
obj.h2v = itk.Hessian3DToVesselnessMeasureImageFilter[itk.SS].New()
# connect them up
obj.h2v.SetInput(obj.h.GetOutput())

# get feedback on progress
module_kits.itk_kit.utils.setupITKObjectProgress(
obj, obj.h, '3-D Hessian', 'Calculating')

# get feedback on progress
module_kits.itk_kit.utils.setupITKObjectProgress(
obj, obj.h2v, '3-D Hessian to Vesselness', 'Calculating')


# CODERUNNER EXECUTE

# get input
obj.h.SetInput(obj.inputs[0])

# update last filter in chain (of this module)
obj.h2v.Update()

# pass through vesselness on output 1 and hessian itself on output 2
obj.outputs[0] = obj.h2v.GetOutput()
obj.outputs[1] = obj.h.GetOutput()
============================================

Error log as following:

15:52:10: Traceback (most recent call last):
15:52:10: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/interfaces.wx_interface.graph_editor", line 559, in
_execute_modules
15:52:10: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/network_manager", line 46, in execute_network
15:52:10: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/scheduler", line 698, in execute_modules
15:52:10: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/scheduler", line 569, in execute_modules
15:52:10: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/module_manager", line 848, in execute_module
15:52:10: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/meta_module", line 358, in execute_module
15:52:10: File "D:\Program Files\DeVIDE\modules\viewers
\CodeRunner.py", line 150, in execute_module self._run_source
(self._src_execute, raise_exceptions=True)
15:52:10: File "D:\Program Files\DeVIDE\module_kits\wx_kit
\python_shell_mixin.py", line 185, in _run_source more = runsource
(interp, text, '<input>', 'exec')
15:52:10: File "D:\Program Files\DeVIDE\module_kits\wx_kit
\python_shell_mixin.py", line 83, in runsource runcode(self,
code)
15:52:10: File "D:\Program Files\DeVIDE\module_kits\wx_kit
\python_shell_mixin.py", line 46, in runcode exec code in
self.locals
15:52:10: File "<input>", line 4, in <module>
15:52:10: File "D:\Program Files\DeVIDE\module_kits\itk_kit\wrapitk
\lib\itkHessianRecursiveGaussianImageFilter.py", line 2124, in
SetInput def SetInput(*args): return
_itkHessianRecursiveGaussianImageFilter.itkHessianRecursiveGaussianImageFilterIF3_Pointer_SetInput
(*args)
15:52:10: ModuleManagerException: Unable to execute part 0 of module
dvm1 (CodeRunner): No matching function for overloaded
'itkHessianRecursiveGaussianImageFilterIF3_Pointer_SetInput'
15:52:10: Unable to execute part 0 of module dvm1 (CodeRunner): No
matching function for overloaded
'itkHessianRecursiveGaussianImageFilterIF3_Pointer_SetInput'

Charl Botha

unread,
Jul 10, 2009, 4:15:14 AM7/10/09
to devide...@googlegroups.com
2009/7/10 s450315 <s45...@gmail.com>:

> Ask for help! I try to use the 3-D Hessian to calculate a the
> ”vesselness” metric and hence enhance the bronchial structures in the
> lungs of the PANORAMIX dataset.
>
> In graph canvas:     vtiRDR (lung.vti) -> CodeRunner -> slice3dVWR

Please put an VTKtoITK module between your vtiRDR and the CodeRunner,
then deselect its "AutoType" and set its output type to float. That
should do the trick. :)

Good luck,
Charl

s450315

unread,
Jul 10, 2009, 5:07:08 AM7/10/09
to devide-users
Thank you. Yes after i put vtktoItk and deselect "autotype" then it
ok. However, i try another data set, aneurysm PANORAMIX dataset, the
program rise error and quite without message. The data set is 6MB is
size. Is it file size or data set size related?

On 7月10日, 下午4時15分, Charl Botha <c.p.bo...@tudelft.nl> wrote:
> 2009/7/10 s450315 <s450...@gmail.com>:

s450315

unread,
Jul 10, 2009, 5:11:01 AM7/10/09
to devide-users
Sorry, not include error log.
=====================
17:08:00: Traceback (most recent call last):
17:08:00: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/interfaces.wx_interface.graph_editor", line 559, in
_execute_modules
17:08:00: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/network_manager", line 46, in execute_network
17:08:00: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/scheduler", line 698, in execute_modules
17:08:00: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/scheduler", line 569, in execute_modules
17:08:00: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/module_manager", line 848, in execute_module
17:08:00: File "C:\build\jwd\build\devide\installer\builddevide
\out9.pyz/meta_module", line 358, in execute_module
17:08:00: File "D:\Program Files\DeVIDE\modules\viewers
\CodeRunner.py", line 150, in execute_module self._run_source
(self._src_execute, raise_exceptions=True)
17:08:00: File "D:\Program Files\DeVIDE\module_kits\wx_kit
\python_shell_mixin.py", line 185, in _run_source more = runsource
(interp, text, '<input>', 'exec')
17:08:00: File "D:\Program Files\DeVIDE\module_kits\wx_kit
\python_shell_mixin.py", line 83, in runsource runcode(self,
code)
17:08:00: File "D:\Program Files\DeVIDE\module_kits\wx_kit
\python_shell_mixin.py", line 46, in runcode exec code in
self.locals
17:08:00: File "<input>", line 7, in <module>
17:08:00: File "D:\Program Files\DeVIDE\module_kits\itk_kit\wrapitk
\lib\itkHessian3DToVesselnessMeasureImageFilter.py", line 128, in
Update def Update(*args): return
_itkHessian3DToVesselnessMeasureImageFilter.itkHessian3DToVesselnessMeasureImageFilterSS_Pointer_Update
(*args)
17:08:00: ModuleManagerException: Unable to execute part 0 of module
dvm3 (CodeRunner): ..\..\..\..\archive\Insight\Code\Common
\itkDataObject.cxx:397: Requested region is (at least partially)
outside the largest possible region.
17:08:00: Unable to execute part 0 of module dvm3 (CodeRunner): ..\..
\..\..\archive\Insight\Code\Common\itkDataObject.cxx:397: Requested
region is (at least partially) outside the largest possible region.
==============

On 7月10日, 下午4時15分, Charl Botha <c.p.bo...@tudelft.nl> wrote:
> 2009/7/10 s450315 <s450...@gmail.com>:
>

Charl Botha

unread,
Jul 13, 2009, 3:56:19 AM7/13/09
to devide...@googlegroups.com
2009/7/10 s450315 <s45...@gmail.com>:

>
> Thank you. Yes after i put vtktoItk and deselect "autotype" then it
> ok. However, i try another data set, aneurysm PANORAMIX dataset, the
> program rise error and quite without message. The data set is 6MB is
> size. Is it file size or data set size related?


If you look carefully at the error message, you'll see that it's
complaining about the request region being outside the dataset domain.
Could you try saving your network, then clearing the canvas (ctrl-N),
then reloading the network and trying again? This example comes from
our IN4307 MedVis course notes right? If so, it's been tested by me
and all the dedicated students. :)

Reply all
Reply to author
Forward
0 new messages