Professional Documents
Culture Documents
Image processing is a practice commonly used by people who can access computers,
cameras and anything that can capture and make a photo. A person can actually alter the
rendered images and detect their edges, improve the contrast, use different mathematical
operations to the images, and even measure the image intensity with a little money to invest
on. Although the said techniques are powerful, it should be borne in mind that an average user
often tries to manipulate an image abundantly digitally. Rarely, understanding the basic
Digital image processing basically involves the use of various computer algorithms to
develop, process, view and distribute digital images. This type of processing could be mainly
used to:
One of the software’s used for digital image processing is the MATLAB. MATLAB is a
computing and programming language of high standard that provides powerful yet easy to
understand commands and syntaxes. MATLAB offers many processes such as computing,
developing algorithms, analyzing data and even having simulation through the use of Simulink.
MATLAB may be said not only to be a programming interface, but also to be an environment.
With the support of MATLAB, one can perform the most basic operations to high level
algorithms and create programs as well. One thing to note is that MATLAB may be high and
efficient, but it needs to be useful to the application itself as it can not isolate applications to be
This project was made as a final target for the students via MATLAB. The software is an
image processing program that would use MATLAB operations' different capabilities. This
project uses the MATLAB Graphical User Interface or better known as the MATLAB GUI to
display the techniques of image processing as required. The project uses a Graphical User
Interface format so that the program will be user friendly for both knowledgeable people with
Acknowledgement
We would like to express our special thanks of gratitude to Engr. Leonardo D. Valiente
Jr. who gave us the golden opportunity to do this wonderful project on MATLAB, which also
helped us in doing a lot of research and we came to know about so many new things we are
really thankful to them. Secondly we would also like to thank our parents and friends who
helped us a lot in finalizing this project within the limited time frame.
Program Description
The program aims to use the MATLAB Graphical User Interface System to display various
Binary Image
Image Type
Indexed Image
Intensity Image
Multiframe Image
FIR Filter
The program will also display both the original and filtered characteristics of the image
at the same time. The program should be able to display both the filtered and the original
images which the user will be using. The program’s functions have been embedded with the
Graphical User Interface program file to reduce the amount actions needed for the program to
The created program cover’s a limited amount of filtering characteristics and only uses
the FIR filter. The created program is only applicable to the MATLAB and Simulink database and
would only operate if the MATLAB program is installed on the running computer. It should also
be remembered that only photographs can be processed in this software and nothing else.
The created program can process filters and image processing one at a time. If the
image is of a higher resolution, it will take a longer time for the system to measure and load the
image output. The solution for this type of problem is to choose a lower-dimensional image for
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Outputs from this function are returned to the command line.
function varargout = Imahe_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
fir=fspecial('motion',80,69);
new_img=imfilter(orig_img,fir);
axes(handles.axes2)
imshow(new_img);
new_img=orig_img;
new_img(:,:,2:3)=0;
axes(handles.axes2);
imshow(new_img)
new_img=orig_img;
new_img(:,:,1)=0;
new_img(:,:,3)=0;
axes(handles.axes2);
imshow(new_img)
new_img=orig_img;
new_img(:,:,1)=0;
new_img(:,:,2)=0;
axes(handles.axes2);
imshow(new_img)
new_img = im2bw(orig_img);
axes(handles.axes2);
imshow(new_img)
new_img = rgb2gray(orig_img);
axes(handles.axes2);
imshow(new_img)
[new_img,map] = rgb2ind(orig_img,100);
axes(handles.axes2);
imshow(new_img,map)
axes(handles.axes2);
new_img=repmat(orig_img,[ 1 1 1 6 ]);
axes(handles.axes2);
montage(new_img)
Background = imopen(orig_img,strel('disk',13));
Subtract = imsubtract(orig_img, Background);
axes(handles.axes2);
imshow(Subtract);
sub_img = axes(handles.axes2);
new_img = im2bw(orig_img);
axes(handles.axes3);
imshow(new_img)
new_img = rgb2gray(orig_img);
axes(handles.axes3);
imshow(new_img)
[new_img,map] = rgb2ind(orig_img,100);
axes(handles.axes3);
imshow(new_img,map)
axes(handles.axes3);
new_img=repmat(orig_img,[ 1 1 1 6 ]);
axes(handles.axes3);
montage(new_img)
new_img=orig_img;
new_img(:,:,2:3)=0;
axes(handles.axes3);
imshow(new_img)
new_img=orig_img;
new_img(:,:,1)=0;
new_img(:,:,3)=0;
axes(handles.axes3);
imshow(new_img)
new_img=orig_img;
new_img(:,:,1)=0;
new_img(:,:,2)=0;
axes(handles.axes3);
imshow(new_img)
fir=fspecial('motion',80,69);
new_img=imfilter(orig_img,fir);
axes(handles.axes3)
imshow(new_img);
Background = imopen(orig_img,strel('disk',13));
Subtract = imsubtract(orig_img, Background);
axes(handles.axes3);
imshow(Subtract);
sub_img = axes(handles.axes3);
Sample Outputs
References
https://electronicsforu.com/electronics-projects/image-processing-using-matlab-part-1
https://electronicsforu.com/electronics-projects/software-projects-ideas/image-processing-
using-matlab-basic-operations-part-2-4
https://www.mathworks.com/help/matlab/ref/rgb2gray.html
https://www.mathworks.com/help/images/process-multiframe-image-arrays.html
https://www.mathworks.com/matlabcentral/answers/340791-how-do-i-use-the-fir-filter-on-
an-image
https://www.mathworks.com/matlabcentral/answers/251519-i-need-negative-image
https://www.mathworks.com/help/images/morphological-filtering.html
https://www.mathworks.com/help/images/ref/imadjust.html
https://www.mathworks.com/discovery/image-thresholding.html
https://www.mathworks.com/help/images/adjust-image-contrast-in-image-viewer-app.html
https://www.mathworks.com/matlabcentral/answers/369024-how-to-do-background-
subtraction-between-two-images-to-find-the-roi
https://www.mathworks.com/matlabcentral/answers/360646-how-can-i-get-a-rgb-values-
from-a-picture