image = | extractClassImg (inLabelImg,strInClassList) |
Creates a binary images from a label image a string describing the list of classes to extract.
This algorithm binarizes the input label image in order to keep only the pixels whose classes (i.e. label value) are specified in the input string.
The string must be se sequence of integer values, separated by a ','. For example, "2, 6, 19" will return a binary image with all pixels set to 0, except those that have a value of 2, 6 or 19 in the input label image.
The image below illustrates the result for the selection "1, 4, 5":