Retrieved from this post
It seems that when the plugin is closed in a macro, it doesn’t “release” the image used for the segmentation and keep it hidden. When the plugin is used manually, the original image does re-appear when the segmentation window is closed by hand.