Support for multi-label convert_imageset.cpp code