Reputation: 2789
I have an algorithm that does a set of 8 image processing operations in an input image and then I want to show the output of each of them in a grid of 8 images. The problem is that I want to show image by image after each of the operations ends. By using subplot and imshow the image outputs I want to show in the grid are small.
Here is some piece of my code
output1=image_operation(input_image);
subplot(4,4,1);
imshow(output1);
I have heard about imdisp and montage functions, but they don't do what I want. I want to show the first image when the first algorithm ends, then the second image together with the first when the second algorithm ends and so on. What these functions do is showing all images at once and I don't want this.
Is there anything I missed?
Upvotes: 2
Views: 807
Reputation: 19689
The reason why your output images are too small is that you want to plot 8 images but you're using subplot command for 16 images i.e. subplot(4,4,x)
. Since you want to plot 8 images using subplot, use any of following instead:
subplot(4,2,x)
or subplot(2,4,x)
Upvotes: 2