I’m in the process of trying to process some CT scans of bone and I’m needing to use scikit-image’s “active_contour” function. I have the function working (in terms of actually producing a result) but the result isn’t quite what I’m looking for.
This is the “original” image I’d like to apply the snake to:
trab_1.tiff (207.2 KB)
Here is the plotted inital ellipse and the snake produced:
This is the active_contour and the parameters I used:
snake = active_contour(gaussian_filter(trab, 3), ellipse, alpha=0.01, beta=0.01, w_line=1, w_edge=-10, gamma=0.001, max_iterations=2500, coordinates='rc')
I’m looking for something closer to:
trab_1.tiff (164.3 KB)
(except closer in, I drew this by hand and couldnt see under my finger
Any ideas what the best parameters should be? I feel like I’ve tried everything but clearly I’m missing something.
Thanks in advance for any help