This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%Official Matlab version can be found in the PASCAL VOC devkit | |
%http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html#devkit | |
% VOCLABELCOLORMAP Creates a label color map such that adjacent indices have different | |
% colors. Useful for reading and writing index images which contain large indices, | |
% by encoding them as RGB images. | |
% | |
% CMAP = VOCLABELCOLORMAP(N) creates a label color map with N entries. | |
function cmap = labelcolormap(N) |