To apply histogram equalization to three separate images with varying illumination levels in Matlab, you can perform the following steps:
imread
.rgb2gray
.histeq
.subplot
.Here's the sample code:
main.m890 chars28 lines
The subplot
function is used to arrange the six images (original and equalized images for each input image) in a 3x4 grid. The output will show the original images on the left and the equalized images on the right. You can visually compare the results for the three images to see the effect of histogram equalization on each image.
gistlibby LogSnag