# Geodesic active contour with python

**URL:** https://discourse.itk.org/t/geodesic-active-contour-with-python/2386
**Category:** Beginner Questions
**Created:** [November 6, 2019, 3:19pm UTC](https://discourse.itk.org/t/geodesic-active-contour-with-python/2386 "2019-11-06T15:19:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![abir](https://discourse.itk.org/user_avatar/discourse.itk.org/abir/32/1031_2.png) [@abir](https://discourse.itk.org/u/abir)
#### Post date: [November 6, 2019, 3:19pm UTC](https://discourse.itk.org/t/geodesic-active-contour-with-python/2386/1 "2019-11-06T15:19:53Z")

</div>

i tried to implement the GeodesicActiveContourImageFilter

 ![codex](https://discourse.itk.org/uploads/default/original/2X/9/9918e2432d41246ee362086276be06cdc158a256.png)

but every time i try to run it i get this message

![yt](https://discourse.itk.org/uploads/default/original/2X/3/3b60762e7a4bcc4b891c7a63d05f9b3897f882a9.png)

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [November 6, 2019, 5:40pm UTC](https://discourse.itk.org/t/geodesic-active-contour-with-python/2386/2 "2019-11-06T17:40:24Z")

</div>

Hi @abir,

Are there more details about how the script is being executed?

From the error message, it looks like the command line arguments need to be passed to the script.

---

<div class="post-metadata">

### Author: ![abir](https://discourse.itk.org/user_avatar/discourse.itk.org/abir/32/1031_2.png) [@abir](https://discourse.itk.org/u/abir)
#### Post date: [November 6, 2019, 9:22pm UTC](https://discourse.itk.org/t/geodesic-active-contour-with-python/2386/3 "2019-11-06T21:22:36Z")

</div>

thank you for the reply  
so you mean I should pass the value associated with the inputfilename ,the outputfilename, the threshold and the level ?  
Se

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [November 6, 2019, 9:39pm UTC](https://discourse.itk.org/t/geodesic-active-contour-with-python/2386/4 "2019-11-06T21:39:23Z")

</div>

Yes.
