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 can open the software from the extracted folder. Scroll down to and select Window Title Bars to open the options shown in the snapshot below. That includes a Window title bar height bar that you can drag left and right.
The title bar is at the top of every window in Windows 10. This includes three buttons at the top right corner of the window and a title for each open window. There are a number of ways you can customize the title bar with a few extra software packages and the options included in Windows 10.
You can modify the default title bar that Windows provides so that it blends with the rest of your UI, or extend your app canvas into the title bar area and provide your own title bar content. Title bar customization APIs are currently supported on Windows 11 only.
To add color to the default title bar or to change the window icon that comes with a WinUI 3 window, you will need to use the Windows App SDK AppWindow APIs or opt to fully customize your titlebar. By default, the title bar shows the app's display name as the window title. The display name is set in the Package.appxmanifest file.
You want to change the Name
-property of the figure window.
img = imread('pic.jpg','jpg');
r = img(:,:,1);
g = img(:,:,2);
b = img(:,:,3);
figure('Name','this is the red channel'), imshow(r);
figure('Name','this is the green channel','NumberTitle','off'), imshow(g);
title(gca,'you can also place a title like this')
fh = figure; imshow(b);
set(fh,'Name','this is the blue channel')
Also, if you call imshow(g,[])
, it will auto-scale the image to min/max.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With