I am working on some image processing stuff. I am displaying 2 pictures at same time using
axes(handles.name)
Is there any other technique that is feasible to use for displaying images.
Asked
Active
Viewed 85 times
-1

Waqas Ahmad
- 24
- 4
-
google "matlab display image"... – Piglet Apr 01 '17 at 11:59
1 Answers
0
axes
itself doesn't actually display an image, that line simply creates an axes
object into which you can place an image. If you want to display an image, you'll likely want to use imshow
.
If you want to display two images side-by-side, subplot
could also be helpful.
hax1 = subplot(1,2,1);
imshow(img1, 'Parent', hax1);
hax2 = subplot(1,2,2);
imshow(img2, 'Parent', hax2);

Suever
- 64,497
- 14
- 82
- 101
-
Thanks for the answer.@Suever But actually axes(handles.axes1); imshow(grayImage, 'Parent', handles.axes2); % Display in axes2, NOT axes1. title('The Image'); – Waqas Ahmad Apr 11 '17 at 09:17
-
@Waqas_Ahmad of course it's displaying in axes2 since you're specifying that as the parent axes – Suever Apr 11 '17 at 12:46