Reputation: 53
I have a single image which contains 3 images 1 underneath the other.
Is there a way I can divide the image into three equal parts?
Upvotes: 0
Views: 848
Reputation: 14098
rgb = imread('ngc6543a.jpg');
r = rgb(:, :, 1);
g = rgb(:, :, 2);
b = rgb(:, :, 3);
Upvotes: 0
Reputation: 3024
you can use imcrop. reffer to this article: how to segment an image in matlab
and this on stackoverflow: how to divide an image in matlab
Upvotes: 1