# Change island effect 

**URL:** <https://discourse.slicer.org/t/change-island-effect/1852>\
**Category:** Support\
**Created:** [January 16, 2018, 12:03pm UTC](https://discourse.slicer.org/t/change-island-effect/1852 "2018-01-16T12:03:39Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![opetne](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@opetne](https://discourse.slicer.org/u/opetne)\
**Post date:** [January 16, 2018, 12:03pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/1 "2018-01-16T12:03:39Z")

</div>

Operating system: Windows 10  
Slicer version:4.9.0  
Expected behavior: Change a color code to another  
Actual behavior: Delete all the color codes

I did air sac segmentation with the Editor module some years ago. For a statistical analysis I have to compare selected parts (diverticles) of the air sac system but my old color codes are not perfect, I have to change some parts of the diverticles. After clicking on the desired area, all the color codes are set to background (deleted, I think). What could be the reason for it?

Best,

Ors

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 16, 2018, 12:34pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/2 "2018-01-16T12:34:32Z")

</div>

Hi -

Hmm, hard to tell. It could help troubleshoot if you let us know if you are using the old Editor or the new Segment Editor to change the islands? Did you check the error log? Is this something you can reproduce with the sample data? Is the data sharable so we can try the operation?

-Steve

---

<div class="post-metadata">

**Author:** ![opetne](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@opetne](https://discourse.slicer.org/u/opetne)\
**Post date:** [January 16, 2018, 2:24pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/3 "2018-01-16T14:24:48Z")

</div>

Dear Steve,

I’m using the old Editor module, since for this kind of segmentation I have  
to make a lot of manual editing. I can share the files for checking.

Ors

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 16, 2018, 8:02pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/4 "2018-01-16T20:02:14Z")

</div>

Okay, sure - if you can share a dataset that replicates the issue I can take a look - use dropbox or something similar to send the files.

-Steve

---

<div class="post-metadata">

**Author:** ![opetne](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@opetne](https://discourse.slicer.org/u/opetne)\
**Post date:** [January 16, 2018, 8:21pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/5 "2018-01-16T20:21:06Z")

</div>

Dear Steve,

You’ll receive the files vie wetransfer. Thank you for your help.

Ors

---

<div class="post-metadata">

**Author:** ![opetne](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@opetne](https://discourse.slicer.org/u/opetne)\
**Post date:** [January 16, 2018, 8:22pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/6 "2018-01-16T20:22:05Z")

</div>

Sorry, I will share a google drive.

Ors

---

<div class="post-metadata">

**Author:** ![opetne](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@opetne](https://discourse.slicer.org/u/opetne)\
**Post date:** [January 16, 2018, 8:26pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/7 "2018-01-16T20:26:27Z")

</div>

Dear Steve,

Which email adress should I use?

"We’re sorry, but your email message to [“slicer@discoursemail.com”]  
(titled 3 HASON 2-label.zip) didn’t work.

None of the destination email addresses are recognized, or the Message-ID  
header in the email has been modified. Please make sure that you are  
sending to the correct email address provided by staff."

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 16, 2018, 8:43pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/8 "2018-01-16T20:43:24Z")

</div>

ah, yes, makes sense - I’m pieper at [isomics.com](http://isomics.com)

-Steve

---

<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:** [January 16, 2018, 8:45pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/9 "2018-01-16T20:45:30Z")

</div>

I think you should be able to send private message to other users by clicking on the username then click on “Message”. But maybe it does not show up a while for new users (for spam protection).

---

<div class="post-metadata">

**Author:** ![opetne](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@opetne](https://discourse.slicer.org/u/opetne)\
**Post date:** [January 16, 2018, 8:46pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/10 "2018-01-16T20:46:04Z")

</div>

> [@pieper](#):
>
> pieper at [isomics.com](http://isomics.com)

Dear Steve,

sharing sent.

Ors

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 17, 2018, 12:37am UTC](https://discourse.slicer.org/t/change-island-effect/1852/11 "2018-01-17T00:37:26Z")

</div>

Hi Ors -

Thanks for sharing the data - that helped. The issue is that your label map volume is of type ‘unsigned short’, but the change island tool only works with data type ‘short’ (slicer creates ‘short’ by default but maybe this was imported from another system?).

If you don’t really need the “island” part of this, you could just use the ChangeLabelEffect that would turn all voxels of a certain value to another.

Or if you need the island feature you can run your labelmap through the Filtering-\>Arithmetic-\>Cast Scalar Volume and switch to type short. (If you create a new volume as the output you can change it to a labelmap in the Volumes module).

Or you could import the label into the new Segment Editor but I’m not sure there’s an exact replacement for the ChangeIslandEffect (@lassoan may have suggestions).

-Steve

---

<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:** [January 17, 2018, 1:00am UTC](https://discourse.slicer.org/t/change-island-effect/1852/12 "2018-01-17T01:00:34Z")

</div>

> [@pieper](#):
>
> there’s an exact replacement for the ChangeIslandEffect

You can find ChangeIslandEffect feature in Segment Editor in “Islands” effect. Choose “Add selected island” and then if you click on an island in any of the viewers, then that island is added to the currently selected segment.

I think all features of the legacy Editor are available in Segment Editor and there are of course many improvements and fixes.

---

<div class="post-metadata">

**Author:** ![opetne](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@opetne](https://discourse.slicer.org/u/opetne)\
**Post date:** [January 17, 2018, 8:17am UTC](https://discourse.slicer.org/t/change-island-effect/1852/13 "2018-01-17T08:17:52Z")

</div>

Dear Steve,

Thank you for your help. All the labels were created with Slicer with the  
same system.  
The solution you suggested worked. My problem was that I labeled a kind of  
air sac diverticle with a bad color code and I wanted to change it. The  
ChangeLabel Effect worked properly for this. In my mind a label is a  
complete label which contains all the color codes and this is why I didn’t  
try this effect but that was I wanted to do exactly.

Best,

Ors

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 17, 2018, 12:54pm UTC](https://discourse.slicer.org/t/change-island-effect/1852/14 "2018-01-17T12:54:01Z")

</div>

Sounds good Ors - glad you are back on track.

Longer term, as Andras mentioned, the Segment Editor is more powerful and we’ll be putting our efforts there.
