Info
This question is closed. Reopen it to edit or answer.
how do i segment an image into 4 different sub images. I have gone through many answers but each code gives a different answer. I am confused which would aid me.I would appreciate if someone helps me in this
1 view (last 30 days)
Show older comments
i have used this code
clc;
clear all;
I=imread('test1.tif');
I1=I(1:size(I,1)/2,1:size(I,2)/2,:);
I2=I(size(I,1)/2+1:size(I,1),1:size(I,2)/2,:);
I3=I(1:size(I,1)/2,size(I,2)/2+1:size(I,2),:);
I4=I(size(I,1)/2+1:size(I,1),size(I,2)/2+1:size(I,2),:);
figure(1);
subplot(2,2,1);imshow(I1);title('segment 1');
subplot(2,2,2);imshow(I2);title('segment 2');
subplot(2,2,3);imshow(I3);title('segment 3');
subplot(2,2,4);imshow(I4);title('segment 4');
but dont know whether its right to my question or not
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!