clc
close all
clear all
img1 = imread('img2.jpg');
img2 = imread('img1.jpg');
subplot(3,2,1);
imshow(img1);
title('First Image');
subplot(3,2,2);
imhist(rgb2gray(img1));
title('histogram of First image');
subplot(3,2,3);
imshow(img2);
title('Second Image');
subplot(3,2,4);
imhist(rgb2gray(img2));
title('histogram of Second image');
% how to equalize the histogram of img1 and img2 ? getting error here
a = histeq(rgb2gray(img1,img2));
subplot(3,2,5);
imshow(a);
title('histogram equalize')
% how to equalize the histogram of img1 and img2 ?
Best Answer