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

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

@sushant097

Description

@sushant097

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions