# SimpleFilters (BinaryThinningImageFilter) not working in latest MacOS build?

**URL:** <https://discourse.slicer.org/t/simplefilters-binarythinningimagefilter-not-working-in-latest-macos-build/10403>\
**Category:** Support\
**Created:** [February 23, 2020, 3:11pm UTC](https://discourse.slicer.org/t/simplefilters-binarythinningimagefilter-not-working-in-latest-macos-build/10403 "2020-02-23T15:11:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [February 23, 2020, 3:11pm UTC](https://discourse.slicer.org/t/simplefilters-binarythinningimagefilter-not-working-in-latest-macos-build/10403/1 "2020-02-23T15:11:44Z")

</div>

I’m trying to run BinaryThinningImageFilter on the CTACardio dataset. (Tried it on my own dataset and it didn’t work either, so I figured I’d try a sample dataset.)

1. Load CTACardio
2. Select “Simple Filters”
3. Select “BinaryThinningImageFilter”
4. Select CTACardio as input
5. Select “Create new volume” as output
6. Hit “Apply”

Filter never returns. Stays at zero percent, also UI is fully functional (step through slices, etc). No errors on console, only output is:

```
myFilter = BinaryThinningImageFilter()
myFilter.SetDebug(False)
myFilter.SetNumberOfThreads(16)

```

I saw some posts a few days back on issues with SimpleFilters- is this related?

Thanks!!

-Hollister

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 23, 2020, 3:25pm UTC](https://discourse.slicer.org/t/simplefilters-binarythinningimagefilter-not-working-in-latest-macos-build/10403/2 "2020-02-23T15:25:10Z")

</div>

Latest Slicer Preview Release should work. Progress reporting broke in the ITK release candidate that we are using, so it may look like ITK is not working, but most probably it does, you just need to wait. The new ITK release candidate that has just been tagged is supposed to contain a fix, so the problem is expected to be solved soon.

Try latest Slicer Preview Release, other filters, and on smaller data and let us know if they work.

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [February 23, 2020, 3:39pm UTC](https://discourse.slicer.org/t/simplefilters-binarythinningimagefilter-not-working-in-latest-macos-build/10403/3 "2020-02-23T15:39:17Z")

</div>

OK, other filters work fine. I know I’ve run this before, specifically for this workflow (below), but I feel like I’m doing something wrong… I will let it run but I’m pretty sure it did not take this long the last time I did this.

Thanks!

> [@How to analyze the thickness of the model](https://discourse.slicer.org/t/how-to-analyze-the-thickness-of-the-model/2735):
>
> Can I analyze the thickness of a stl model, and then get a color map. The distance between the two sides of an object. [2018-04-30\_215013]

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [February 23, 2020, 4:19pm UTC](https://discourse.slicer.org/t/simplefilters-binarythinningimagefilter-not-working-in-latest-macos-build/10403/4 "2020-02-23T16:19:41Z")

</div>

> [@lassoan](#):
>
> The new ITK release candidate that has just been tagged is supposed to contain a fix, so the problem is expected to be solved soon.

I have observed that the main Progress Reporting PR ([https://github.com/InsightSoftwareConsortium/ITK/pull/1575](https://github.com/InsightSoftwareConsortium/ITK/pull/1575)) still hasn’t been merged and that the recently tagged ITK 5.1rc02 does not contain any of the commits from that PR. Maybe it will make it into ITK 5.1rc03 in a couple weeks.

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [February 29, 2020, 6:53pm UTC](https://discourse.slicer.org/t/simplefilters-binarythinningimagefilter-not-working-in-latest-macos-build/10403/5 "2020-02-29T18:53:19Z")

</div>

Is the lack of progress reporting back to slicer the issue?

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [February 29, 2020, 7:02pm UTC](https://discourse.slicer.org/t/simplefilters-binarythinningimagefilter-not-working-in-latest-macos-build/10403/6 "2020-02-29T19:02:40Z")

</div>

I really feel like I’m doing something wrong.

I have a segment that I’ve converted to a label map. I try to run this through the Binary Image Thinning Filter, creating a new label map volume. It never returns. I’ve run other filters and they seem to work.

Should this work?

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [February 29, 2020, 7:03pm UTC](https://discourse.slicer.org/t/simplefilters-binarythinningimagefilter-not-working-in-latest-macos-build/10403/7 "2020-02-29T19:03:48Z")

</div>

Also, for what it’s worth, I tried this on 4.10.2 and it did the same thing. I _know_ I’ve done this before and it worked, because I opened the old scene file I had where it _did_ work.
