Write a MATLAB program for Histogram of original and flipped image



Code:

clear;
clc;
a = imread('d:/matimage/his.jpg'); % Read image from graphics file
b=fliplr(a);
subplot(2,2,1),imshow(a),title('original image');
subplot(2,2,2),imshow(b),title('flipped image');
subplot(2,2,3),imhist(a),title('original image');
subplot(2,2,4),imhist(b),title('flipped image');


Output:

No comments

Powered by Blogger.