Sei sulla pagina 1di 3

8/26/2014 MIN FILTER - MATLAB CODE | IMAGE PROCESSING

http://angeljohnsy.blogspot.com/2013/04/min-filter-matlab-code.html 1/5
Email address... Submit
HOME TABLE OF CONTENTS ABOUT ME CONTACT ME PAID PROJECTS
Gear Box Manufacturer
www4.nord.com/
High Quality Gear Box Manufacturer. Pioneer Since 1965. Enquire Now!
Lets Learn together... Happy Reading
" Two roads diverged in a wood, and I,
I took the one less traveled by,
And that has made all the difference "-Robert Frost
IMAGE PROCESSING
Lee filter
Lets realize a Lee filter using MATLAB for despeckling of an image. Since its a patch based processing, the
computation cost will be...
More
Tile Memory Game
Tile Memory game - Win the game by matching equivalent tiles. Initially, there will be a 2 by 2 matrix having 2 pairs
of equivalent...
More
One Dimensional Low pass , High Pass and band pass filtering
Consider a one dimensional signal in time domain. For instance, generate cosine waves of different amplitudes and
different frequencies and...
More
Recent Posts
MIN FILTER - MATLAB CODE
MIN FILTER
To find the darkest points in an image.
Finds the minimum value in the area encompassed by the filter.
Reduces the salt noise as a result of the min operation.
The 0
th
percentile filter is min filter.
The MIN Filtering is similar to MAX filter. Check MAX filter post to know how the formula is used to
filter the pepper noise.
MATLAB CODE:
%READ AN IMAGE

GRAB YOUR FREE
GIFT TODAY
Support this blog by leaving
your valuable comments and a
like on Facebook Fan Page.
THANKS FOR READING
LIKE "IMAGE
PROCESSING"
ADD ME
8/26/2014 MIN FILTER - MATLAB CODE | IMAGE PROCESSING
http://angeljohnsy.blogspot.com/2013/04/min-filter-matlab-code.html 2/5
A = imread('board.tif');
A = rgb2gray(A(1:300,1:300,:));
figure,imshow(A),title('ORIGINAL IMAGE');
%PREALLOCATE THE OUTPUT MATRIX
B=zeros(size(A));
%PAD THE MATRIX A WITH ZEROS
modifyA=padarray(A,[1 1]);
x=[1:3]';
y=[1:3]';

for i= 1:size(modifyA,1)-2
for j=1:size(modifyA,2)-2

%VECTORIZED METHOD
window=reshape(modifyA(i+x-1,j+y-1),[],1);
%FIND THE MINIMUM VALUE IN THE SELECTED WINDOW
B(i,j)=min(window);
end
end
%CONVERT THE OUTPUT MATRIX TO 0-255 RANGE IMAGE TYPE
B=uint8(B);
figure,imshow(B),title('IMAGE AFTER MIN FILTERING');
IMAGE PROCESSING
+ 176
Follow
Image Processing
2,474 people like Image Processing.
Facebook social plugin
Like
Its Totally Random
Subscribe in a reader
Subscribe Now:
YOU ARE HERE
8/26/2014 MIN FILTER - MATLAB CODE | IMAGE PROCESSING
http://angeljohnsy.blogspot.com/2013/04/min-filter-matlab-code.html 3/5
Like "IMAGE PROCESSING" page
Labels: Removing Image noise
Your Reactions:
Useful (2) Interesting (1) Not bad (0) :-( (0)
How to create
Video from still
image
Image Illusion Lossless
Predictive coding -
MATLAB CODE
You might also like:
Li nkwi thi n
0 comments:
Enjoyed Reading? Share Your Views
Live Traffic Feed
Real-time view Menu
A visitor from Ethiopia viewed
"Matlab code: Histogram
equalization without using histeq
function | IMAGE
PROCESSING" 2 mins ago
A visitor from Trichy, Tamil Nadu
viewed "MATLAB CODE:Local
Histogram equalization | IMAGE
PROCESSING" 3 mins ago A visitor from Trichy, Tamil Nadu
viewed "MATLAB CODE:Local
Histogram equalization | IMAGE
PROCESSING" 3 mins ago A visitor from India viewed
"FACE DETECTION -
MATLAB CODE | IMAGE
PROCESSING" 5 mins ago A visitor from India viewed
"FACE DETECTION -
MATLAB CODE | IMAGE
PROCESSING" 7 mins ago A visitor from Gainesville, Florida
viewed "RGB Image to Grayscale
Image without using rgb2gray
function | IMAGE
PROCESSING" 8 mins ago
A visitor from Perth, Western
Australia viewed "RGB Image to
Grayscale Image without using
rgb2gray function | IMAGE
PROCESSING" 9 mins ago
A visitor from Mumbai,
Maharashtra viewed "Sobel edge
detection | IMAGE
PROCESSING" 10 mins ago A visitor from United Kingdom
viewed "Text On Sphere -
MATLAB CODE | IMAGE
PROCESSING" 11 mins ago A visitor from Coimbatore, Tamil
Nadu viewed "MATLAB
PROGRAM : 2D MEDIAN
FILTERING FOR SALT AND
PEPPER NOISE WITHOUT
GUI Components in
MATLAB Removing
Image noise Image
Conversion Photoshop
effects in MATLAB Edge
detection MATLAB
BUILT_IN FUNCTIONS
Morphological Image
Processing Array functions in
MATLAB Video Processing Object
Identification Optical illusion
Shapes Templates
TAGS
Files Histogram
equalization Image Compression
Image Arit hmet ic Image Geomet ry
Followers

Potrebbero piacerti anche