Skip to content

Instantly share code, notes, and snippets.

View tooHotSpot's full-sized avatar

Amal Ametov tooHotSpot

  • Kazan, Russia
View GitHub Profile
@ccj5351
ccj5351 / VOClabelcolormap.m
Last active June 11, 2021 13:06 — forked from wllhf/VOClabelcolormap.py
Python implementation of the color map function for the PASCAL VOC data set.
%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)