Download image enchancement by ML and more Study Guides, Projects, Research Machine Learning in PDF only on Docsity!
Department of Computer Science and Engineering
IMAGE ENHANCEMENT USING IM REDUCE HAZE
ALGORITHM
BATCH : A
Aravind T : 161061101010
Manikandan.V : 161061101204
Minerwin.S : 161061101852
Project Guide : Mrs.T.Kiruba Devi,
Professor,
Department of CSE. 1
ABSTRACT
- (^) Image enhancement is an intelligence research field that has great potential to help developers to better explore the environment.
- (^) Image enhancement has been used in a good kind of fields, like underwater microscopic detection, terrain scanning, mine detection, unexposed images and blurred images.
- (^) Unexposed images suffers from strong darkness, scattering, color distortion, and noise from the artificial light sources, causing image blur, haziness, and a bluish or darker tone.
- (^) Therefore, the enhancement of image can be done with image de-hazing algorithm.
- (^) This project presents the reason for unexposed image degradation and demonstrates the performance of image de-hazing and color restoration.
- (^) Finally, we summarize the applying of image enhancement process by im reduce haze algorithm. 2
INTRODUCTION
- (^) Technology advances in manned and remotely operated submersibles allow people to collect images and videos from a wide range of the undersea world.
- (^) Waterproof cameras have become popular, allowing people to easily record underwater creatures while snorkeling and diving.
- (^) These images or videos often suffer from color distortion and low contrast due to the propagated light attenuation with distance from the camera, primarily resulting from absorption and scattering effects.
- (^) Therefore, it is desirable to develop an effective method to restore color and enhance contrast for these images.
- (^) Even though there are many image enhancing techniques developed, such as white balance, color correction, histogram equalization, and fusion-based methods, they are not based on a physical model underwater, and thus are not applicable for underwater images with different physical properties.
- (^) It is challenging to restore underwater images because 4
EXISTING SYSTEM
- (^) To restore underwater images because of the
variation of physical properties.
- (^) Light attenuation underwater leads to
different degrees of color change, depending
on wavelength, dissolved organic compounds.
- (^) In water, red light with a longer wavelength is
absorbed more than green and blue light.
- (^) Also, scattered background light coming from
different colors of water is blended with the
scene radiance along the light of sight.
- (^) resulting in underwater scenes often having
low contrast and color distortions.
- (^) Such images with different color tones can be
shot in various lighting conditions, making
restoration and enhancement difficult.
5
SYSTEM REQUIREMENTS Processor : Pentium Dual Core 2.00GHZ Hard Disk : 500 GB RAM : 4GB (minimum) OPERATING SYSTEM : WINDOWS 10 SOFTWARE : MATLAB 8.6 Version 7
PROCEDURE : 8
Module 1 โ Input Image Dataset
- (^) The data set can be JPEG and PNG format based images for our project.
- (^) Data sets can also consist of a collection of documents or images.
- (^) Our project is going to have images in its input dataset.
- (^) The input can be browsed and selected from computer or any external fields. 10
Module 2 โ Histogram Equalization
- (^) Histogram Equalization is a computer
image processing technique used to
improve contrast in images.
- (^) It accomplishes this by effectively
spreading out the most frequent
intensity values that is stretching out
the intensity range of the image.
- (^) This method usually increases the
global contrast of images when its
usable data is represented by close
contrast values.
- (^) This allows for areas of lower local
contrast to gain a higher contrast.^11
ARCHITECTURAL DIAGRAM 13
AMOUNT Amount of haze to remove, specified as a number in the range [0,1]. When the value is 1, imreducehaze reduces the maximum amount of haze. When the value is 0, imreducehaze does not reduce haze and the input image is unchanged. Larger values cause more severe color distortion. BOOST Amount of per-pixel gain to apply as postprocessing, specified as the comma-separated pair consisting of 'BoostAmount' and a number in the range 14
CODE IMPLEMENTATION %% UNDER EXPOSED IMAGE ENHANCEMENT USING HAZE REMOVAL ALGORITHM % CLEAR THE COMMAND WINDOW clc; % CLEAR THE WORK SPACE clear; % CLOSE ALL THE IMAGES close all; warning off rng('default') %% GET THE INPUT IMAGE FROM THE FILE [filename,pathname]=uigetfile('.'); % READ THE INPUT IMAGE I=imread([pathname,filename]); % SHOW THE IMAGE figure, imshow(I); 16 figure,imshow(H),title('histogram equalization') figure imhist(H,64) %% % COMPLEMENT THE IMAGE comp_im1=imcomplement(I); figure, imshow(comp_im1); %% DEHAZE ALGORITHM % GET THE INPUT [A, amount, method, atmLight, ... contrastMethod, boostAmount] = parseInputs(comp_im1); isRGB = (ndims(A) == 3) && (size(A,3) == 3); originalClass = class(A); if isfloat(A)
amount = cast(amount,'like', A); if (amount == 0) finalDehazedOutput1 = A; T = []; atmLight = []; else % Choose method to dehaze the image switch method case 'simpledcp' [deHazed, T, atmLight] = deHazeSimpleDCP(A, amount, atmLight, isRGB); case 'approxdcp' [deHazed, T, atmLight] = deHazeApproxDCP(A, amount, atmLight, isRGB); otherwise assert(false); end 17 end end % Convert dehazed image and transmission map back to input image class finalDehazedOutput = convertToOriginalClass(finalDehazedOutput, originalClass); T = double(T); figure, imshow(finalDehazedOutput) i5=imcomplement(finalDehazedOutput); figure, imshow(finalDehazedOutput);
19 HISTOGRAM LEVELS OF INPUT IMAGE :
MODULE 2 : HISTOGRAM EQUALIZATION 20