Dynamic length colour palettes
Change imgname
to your input image name in demo.m
, then run.
There are two versions of our method implemented in getBestCP
and getBestCP_
. You can test them by changing line 10 in demo.m
([K, C, Labels] = getBestCP(I, 0);
or [K, C, Labels] = getBestCP_(I, 0);
).
You can test our online demo from here.
Publication:
Mahmoud Afifi, “Dynamic length colour palettes.”, Electronics Letters (2019).