Matlab Code for Study of Gaussian Filter

MATLAB CODE: %%%%%%%%%%%%% The main.m file  %%%%%%%%%%%%%%% clear; % Parameters of the Gaussian filter: n1=10;sigma1=3;n2=10;sigma2=3;theta1=0; % The amplitude of the noise: noise=0.1; [w,map]=gifread('lena.gif');              x=ind2gray(w,map); filter1=d2gauss(n1,sigma1,n2,sigma2,theta); x_rand=noise*randn(size(x)); y=x+x_rand; f1=conv2(x,filter1,'same'); rf1=conv2(y,filter1,'same'); figure(1); subplot(2,2,1);imagesc(x); subplot(2,2,2);imagesc(y); subplot(2,2,3);imagesc(f1); subplot(2,2,4);imagesc(rf1); colormap(gray); %%%%%%%%%%%%%%...
Share:

Matlab Code for Image Thresholding

This program show the effect of thresholding. The output are four subfigures shown in the same figure: MATLAB CODE: %%%%%%%%%%%%% The main.m file %%%%%%%%%%%%%% clear; % Threshold level parameter alfa: alfa=0.1;% less than 1/3 [x,map]=gifread('lena.gif'); ix=ind2gray(x,map); I_max=max(max(ix)); I_min=min(min(ix)); level1=alfa*(I_max-I_min)+I_min; level2=2*level1; level3=3*level1; thix1=max(ix,level1.*ones(size(ix))); thix2=max(ix,level2.*ones(size(ix))); thix3=max(ix,level3.*ones(size(ix))); figure(1);colormap(gray); subplot(2,2,1);imagesc(ix);title('lena'); subplot(2,2,2);imagesc(thix1);title('threshold...
Share:

Matlab Code for Browse file in MATLAB

% Here, example source code for browse image file from any where, then show the image. close all clear all %----------------------------------- [F,PathName,FilterIndex] = uigetfile({'*.*','All Files(*.*)'}, 'Select your File '); loadimage = strcat(PathName,F); input = importdata(loadimage); %------------ Display -------------- figure() image(input);...
Share:

Matlab Code for Linear Regression and R Square in MATLAB

%Here, sample code for linear regression and R square calculation close all clear all %---------- generate x-data and y-data --------- x=[1,1.2,1.53,1.64,2.15,2.36]; y=[151.4,142.9,135.3,116.42,91.9,70.8]; %----------- Linear regression ----------------- p= polyfit(x,y,1); f= polyval(p,x); %----------- Call R-square function ------------ r2=Rsquare(x,y,p); %-------------...
Share:

Matlab Code To Apply DWT (Discrete Wavelet Transform) to Image

Explanation:                Discrete time wavelet transforms (DWT), which produces multi-scale image decomposition. By employing filtering and sub-sampling, a result in the form of the decomposition image (for classical dyadic approach)...
Share:

FingerPrint Recognition and Matching Using Image Processing Matlab Project with Source Code

ABSTRACT                  The popular Biometric used to authenticate a person is Fingerprint which is unique and permanent throughout a person’s life. A minutia matching is widely used for fingerprint recognition and can be classified...
Share:

Brain Tumor Detection Using Watershed Technique Matlab Project with Source Code

ABSTRACT              In the field of medical image processing, detection of brain tumor from magnetic resonance image (MRI) brain scan has become one of the most active research. Detection of the tumor is the main objective of the system....
Share:

Target Detection Using Image Processing Matlab Project with Source Code

ABSTRACT              Target detection using image processing the automatic detection and marking of target objects will improve the efficiency of remote sensing image interpretation.  Target detection refers to the use of high spectral...
Share:

Contact Us

Name

Email *

Message *

Blog Archive

Popular posts