I have:
img = imread('pic.jpg','jpg');
r = img(:,:,1);
g = img(:,:,2);
b = img(:,:,3);
figure, imshow(r);
figure, imshow(g);
figure, imshow(b);
How to set title over each picture?
I have:
img = imread('pic.jpg','jpg');
r = img(:,:,1);
g = img(:,:,2);
b = img(:,:,3);
figure, imshow(r);
figure, imshow(g);
figure, imshow(b);
How to set title over each picture?
You want to change the
Name
-property of the figure window.Also, if you call
imshow(g,[])
, it will auto-scale the image to min/max.