Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

AttributeError: module 'SimpleITK' has no attribute 'VesselnessMeasureImageFilter' #498

Open
sushant097 opened this issue Mar 8, 2023 · 0 comments

Comments

@sushant097
Copy link

I want to extract the vessels of brain CTA image. But got this error:
AttributeError: module 'SimpleITK' has no attribute 'VesselnessMeasureImageFilter'.
My code is:

import SimpleITK as sitk

# Load the image
image = sitk.ReadImage(image_path)


# Intensity windowing
intensity_filter = sitk.IntensityWindowingImageFilter()
intensity_filter.SetOutputMinimum(0)
intensity_filter.SetOutputMaximum(255)
intensity_filter.SetWindowMinimum(-1000)  # lower threshold
intensity_filter.SetWindowMaximum(1000)   # upper threshold

# Apply the filter
preprocessed_image = intensity_filter.Execute(image)


# Vesselness measure filter
vessel_filter = sitk.VesselnessMeasureImageFilter() # this gives me error.
vessel_filter.SetSigma(1)
vessel_filter.SetAlpha(0.5)
vessel_filter.SetBeta(0.5)
vessel_filter.SetGamma(10)
vesselness_image = vessel_filter.Execute(preprocessed_image)

Does Simple ITK does not have support to VesselnessMeasureImageFilter for python but it is in C++. Or what else I can use for that. Thanks in advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant