# Different output by scripting 'REMOVE\_SMALL\_ISLANDS'

**URL:** <https://discourse.slicer.org/t/different-output-by-scripting-remove-small-islands/15249>\
**Category:** Development\
**Created:** [December 28, 2020, 2:33pm UTC](https://discourse.slicer.org/t/different-output-by-scripting-remove-small-islands/15249 "2020-12-28T14:33:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ond12](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ond12/32/8706_2.png) [@ond12](https://discourse.slicer.org/u/ond12)\
**Post date:** [December 28, 2020, 2:33pm UTC](https://discourse.slicer.org/t/different-output-by-scripting-remove-small-islands/15249/1 "2020-12-28T14:33:31Z")

</div>

Hello 3Dslicer forum

I made a small Python script to start the “Islands” -\> “REMOVE\_SMALL\_ISLANDS” effect.

```
self.segmentEditorWidget.setActiveEffectByName("Islands")
effect = self.segmentEditorWidget.activeEffect()
effect.setParameter("Operation","REMOVE_SMALL_ISLANDS")
effect.setParameter("MinimumSize", 1000)
effect.self().onApply()

```

with the a parameters “1000”

so i did the same with the SegmentEditor GUI with the “1000” voxels parameters  
but the segmentation output is not the same and i don’t find why

do you have an ideas ?

Thanks a lot
