Code covered by the BSD License  

Highlights from
Bandpass filter for image processing

3.33333

3.3 | 12 ratings Rate this file 32 Downloads (last 30 days) File Size: 238 KB File ID: #22277

Bandpass filter for image processing

by Shahab Anbarjafari

 

30 Nov 2008

A simple application of FFT2 for an image to simulate the effect of bandpass filter

| Watch this File

File Information
Description

This function is a very simple application of FFT2 for an image to
simulate the effect of bandpass filter with two cut off frequencies. One
can easily modify the programme to do the processes for different images,
and even implement highpass and lowpass filter.
This programme has been written in Spring 2007, as part of my Image
Processing course offered by Assoc. Prof. Dr. Hasan Demirel.
You are free to use this code for academic purposes without referring to me,
Gholamreza % Anbarjafari (Shahab).
The inputs of the function are cutoff frequencies, where as c_off1<c_off2
e.g. c_off1=50 and c_off2=150.
 (c) Gholamreza Anbarjafari (Shahab): shahab.jafari@emu.edu.tr
 (c) Hasan Demirel: hasan.demirel@emu.edu.tr
http://faraday.ee.emu.edu.tr/hdemirel , http://faraday.ee.emu.edu.tr/shahab

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (12)
12 Dec 2008 alain boyer  
13 Dec 2008 i posh

dedim gibe bu alan malan'den bisey cikmaz!

30 Mar 2009 Kemal

do you know how I can implement your code in SIMULINK?

05 Apr 2009 V. Poor  
05 Apr 2009 Xing Yu  
05 Apr 2009 Robin Torres  
15 Apr 2009 Mustafa

can you provide some code for non-ideal filters?

23 Apr 2009 Nikola

Very helpful

23 Apr 2009 Thomas Clark

This is barely a function:
- Scant description of the required inputs
- No input to determine what image you want to analyse
- No input to control plotting (arbitrarily spawns figures)
- No comments in the code
- Nested for loop makes it orders of magnitude slower than it need be
- Dependancy on the image processing toolkit which isn't necessary
- Ideal cutoff without use of a proper filter will cause very poor quality image processing - unusable for practical purposes.
- No function H1 line
- No outputs

You'll need to address all these issues before your code is even vaguely useful. In the meantime, this is pretty much spam - a single use script hacked together into a function simply by addition of the 'function' line declaration. Please remove it from the FEX - there's pleanty enough spam here already.

24 Apr 2009 Xu Wings  
10 Mar 2011 Leah

This code is not good at all. Boo.

21 Nov 2011 dai zhengguo

Bad code to read and use.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image processing filtering Shahab Anbarjafari 01 Dec 2008 15:41:27
image processing filtering Delfri 07 Jun 2010 21:47:24

Contact us at files@mathworks.com