2.0

2.0 | 1 rating Rate this file 340 downloads (last 30 days) File Size: 75.63 KB File ID: #18728

Adaptive median filter using Embedded MATLAB

by Kiran Kintali

 

12 Feb 2008 (Updated 14 Aug 2008)

Code covered by BSD License  

This demo shows how to implement an adapative median filter in hardware

Download Now | Watch this File

File Information
Description

The attached model implements an adaptive median filter using embedded MATLAB. There are lots of software implementations of median filter available on MATLAB central. However this implementation tries to expose the inherent parallelism in such an adaptive filter and make it suitable for hardware.

It also shows to how to break the image into smaller chunks to stream it into a median filter. The adaptive median filter buffers the data and operates on a region of data to compute a new center pixel of that region; The new pixel is applied on the original image to remove the salt and pepper noise.

In this demo the original image is streamed into the filter processor as a 1x9 column at a time. The processor buffers the data for 9 cycles to form a 9x9 image. For each pixel in the image the algorithm computes the median pixel by working parallely on this region; median is computed for 3x3, 5x5, 7x7 and 9x9 neighbourhood regions around the center pixel. The center pixel is either kept or replaced by one of the median pixel computed from the above regions starting from smallest to largest if it hits the threshold.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Webinar on Embedded MATLAB Sept. 13, 2007

Required Products Fixed-Income Toolbox
Video and Image Processing Blockset
MATLAB release MATLAB 7.5 (R2007b)
Zip File Content  
Other Files lena_gray256_noise.TIF,
aMedianFilter_hw.mdl,
get_center_data.m,
get_median.m,
get_median_1d.m,
get_median_2d.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
02 Jan 2009 Yue Wu

Could author provide a demo ? This will be very helpful.

Please login to add a comment or rating.
Updates
14 Aug 2008

add to eML category

Tag Activity for this File
Tag Applied By Date/Time
embedded matlab Kiran Kintali 22 Oct 2008 09:47:28
embedded matlab Kiran Kintali 22 Oct 2008 09:47:28
median filter Kiran Kintali 22 Oct 2008 09:47:28
fpga Kiran Kintali 22 Oct 2008 09:47:28
hdl Kiran Kintali 22 Oct 2008 09:47:28
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com