Write a MATLAB program for flip a image
Code:
clc;
clear;
I=imread('d:/matimage/baby.jpg');
I2 = flipdim(I ,2);
%# horizontal flip
I3 = flipdim(I ,1);
%# vertical flip
I4 = flipdim(I3,2); %# horizontal+vertical flip
subplot(2,2,1), imshow(I),title('Original Image');
subplot(2,2,2), imshow(I2),title('horizontal flip');
subplot(2,2,3), imshow(I3),title('vertical flip');
subplot(2,2,4), imshow(I4),title('horizontal+vertical flip');
Output:
makasih ilmunya min
ReplyDelete