Blend grey level and label images

blend-label-example-before
blend-label-example-after

This script combines a grey level image with a label image by computing a RGB output. The label overlay’s opacity can be tuned to more or less distinguish the grey level image.

In order to be usable outside IPSDK Explorer, the script generates randomly the color associated to an object in label images. For this reason, the colors don’t match between the input and output images in the IPSDK Explorer‘s interface.

The proposed script can be imported into IPSDK Explorer in the form of a macro. The new command will then be directly available in the Macro group.