I have an image with 16 classes. I wish to add legends (Class1, Class2,…,Class16) to this image corresponding to the color generated by imagesc colormap. The sample image can be displayed using the code below:
for i=1:16 for j=1:20 x(i,j)=i; endendimagesc(x)
Best Answer