# How to extract blood vessel's orientation in Python?

**URL:** <https://discourse.itk.org/t/how-to-extract-blood-vessels-orientation-in-python/7127>\
**Category:** Beginner Questions\
**Tags:** itk, simpleitk, python\
**Created:** [July 25, 2024, 8:37pm UTC](https://discourse.itk.org/t/how-to-extract-blood-vessels-orientation-in-python/7127 "2024-07-25T20:37:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maolin](https://discourse.itk.org/user_avatar/discourse.itk.org/maolin/32/4314_2.png) [@Maolin](https://discourse.itk.org/u/Maolin)\
**Post date:** [July 25, 2024, 8:37pm UTC](https://discourse.itk.org/t/how-to-extract-blood-vessels-orientation-in-python/7127/1 "2024-07-25T20:37:47Z")

</div>

Hi all,

I am new to ITK and I’d like to look for a way to use simpleITk or Python ITK to extract the blood vessel’s orientation.

I reviewd the function itk.hessian\_recursive\_gaussian\_image\_filter that can compute the hessian matrix from an image, and then the function itk.Hessian3DToVesselnessMeasureImageFilter can compute the vesselness from the hessian image. Could you give me some description about the output of the itk.hessian\_recursive\_gaussian\_image\_filter function? Also, how can I extract vessel’s orientation?

Thanks so much!

---

<div class="post-metadata">

**Author:** ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Post date:** [July 25, 2024, 8:43pm UTC](https://discourse.itk.org/t/how-to-extract-blood-vessels-orientation-in-python/7127/2 "2024-07-25T20:43:22Z")

</div>

In SimpleITK there is the [ObjectnessMeasureImageFilter](https://simpleitk.org/doxygen/latest/html/classitk_1_1simple_1_1ObjectnessMeasureImageFilter.html) which is a low level feature computation that is [implemented](https://github.com/InsightSoftwareConsortium/ITKSimpleITKFilters/blob/master/include/itkObjectnessMeasureImageFilter.hxx) as a combination of the HessianImageFilter and the HessianToObjectnessMeasureImageFilter.

I suspect you are looking for a higher level tool, where [TubeTk](https://github.com/InsightSoftwareConsortium/ITKTubeTK) may be the ITK remote module you are looking for. @Stephen_Aylward

---

<div class="post-metadata">

**Author:** ![Maolin](https://discourse.itk.org/user_avatar/discourse.itk.org/maolin/32/4314_2.png) [@Maolin](https://discourse.itk.org/u/Maolin)\
**Post date:** [July 28, 2024, 7:34pm UTC](https://discourse.itk.org/t/how-to-extract-blood-vessels-orientation-in-python/7127/3 "2024-07-28T19:34:59Z")

</div>

Thank you very much! I tried it but I’m still not sure about how to get the blood vessel’s orientation in each voxel, do you have some experience about this?
