Centerline Extraction #227
Unanswered
lisacptnhook
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Hi There were two issues with the volume which the centerline extraction implementation wasn't able to handle. I quickly tested converting the segmentation volume and extracting the centerline and visualizing it with FAST in Python. That worked and produced a nice centerline of the aorta: import fast
import numpy as np
importer = fast.ImageFileImporter.create('VMD_Aorta_0030.mhd')
image = importer.runAndGetOutputData()
data = np.asarray(image)[..., 0] # Convert to ndarray and remove channel dimension
data = data.astype(np.uint8) # Convert to uint8
data = np.pad(data, 12) # Pad with zeros
image2 = fast.Image.createFromArray(data)
centerline = fast.CenterlineExtraction.create().connect(image2)
renderer = fast.LineRenderer.create().connect(centerline)
fast.SimpleWindow3D.create().connect(renderer).run()I admit the centerline extraction method should have handled these two issues:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am thinking about integrating the centerline extraction in my Software. But, unfortunately, I am not able to produce any centerlines. I tried different examples, e.g. this one here
VMD_Aorta_0030.zip
which produces sensible distance image and centerline candidates, but the Fast Marching Algorithm doesn't work. I'd be very thankful for any hints or help :)
I checked out the C++ repository and compiled from source under Ubuntu. I use this code:
Beta Was this translation helpful? Give feedback.
All reactions