i have more than 3 binary images extracted from satellite images, that shows different classes (e.g. pixels with value 1 is water and 0 non-water and it is true for other classes like soil etc ). i wonder is there any way to show this classes in one figure. i know with 3 classes we can use 'imshow' or 'image' but what about more than 3 classes. my code is simply something like this :
a=rand(4,4,4);
b1=(a(:,:,1)<=0.5);
b2=(a(:,:,2)<=0.5);
b3=(a(:,:,3)<=0.5);
b4=(a(:,:,4)<=0.5);
now how could i show b1 with red, b2 with green and so on in just one figure??
many many thanks for your help