Be the first to rate this file! 248 downloads (last 30 days) File Size: 28.62 KB File ID: #24705

Min/Max filter

by Bruno Luong

 

12 Jul 2009 (Updated 26 Sep 2009)

Code covered by BSD License  

Multidimensional non-linear min/max filtering

Download Now | Watch this File

File Information
Description

The filter computes the minima and/or maxima of an array over sliding window with a given size.

Multidimensional array is fully supported: running filter in 1D, 2D filter for image processing applications (erosion/dilatation), 3D and more.

This package has been implemented with a special care on the running speed: the MEX engine uses an algorithms that requires no more than three (3) comparisons per element and per dimension in all configurations.

All numerical and logical class arrays are supported.

Contributor (beside author) is Vaclav Potesil

MATLAB release MATLAB 7.8 (R2009a)
Other requirements MEX correctly setup NO image processing is required Download a tiff file for Lena's demo
Zip File Content  
Other Files
license.txt,
MinMaxFilterFolder/benchminmax.m,
MinMaxFilterFolder/Contents.txt,
MinMaxFilterFolder/demolena.m,
MinMaxFilterFolder/KramerBruckner.m,
MinMaxFilterFolder/lemire_engine.c,
MinMaxFilterFolder/lemire_engine.m,
MinMaxFilterFolder/lemire_nd_engine.c,
MinMaxFilterFolder/lemire_nd_maxengine.c,
MinMaxFilterFolder/lemire_nd_maxengine.m,
MinMaxFilterFolder/lemire_nd_minengine.c,
MinMaxFilterFolder/lemire_nd_minengine.m,
MinMaxFilterFolder/minmaxfilt.m,
MinMaxFilterFolder/minmaxfilt1.m,
MinMaxFilterFolder/minmaxfilter_install.m,
MinMaxFilterFolder/slowminmaxfilt_algo.m,
MinMaxFilterFolder/testminmaxfilt.m,
MinMaxFilterFolder/vanherk.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
13 Jul 2009

Correct a bug that causes crash on 64-bit plateform
Additional memory check in one MEX function
Friendly matlab gateway for 1D min/max filtering

20 Sep 2009

New feature: Possibly to output corresponding indexes arrays (suggested by a user) + slight improvement of the Lemire's engine.

21 Sep 2009

Correct BUG of cropping the index array when shape is SAME

21 Sep 2009

Acknowledgment

22 Sep 2009

Cleaner algorithm for same shape filtering

26 Sep 2009

description

Tag Activity for this File
Tag Applied By Date/Time
image processing Bruno Luong 13 Jul 2009 12:15:27
minmax filter Bruno Luong 13 Jul 2009 12:15:27
filtering Bruno Luong 13 Jul 2009 12:15:27
kramerbruckner Bruno Luong 13 Jul 2009 12:15:27
erosion Bruno Luong 13 Jul 2009 12:15:27
running min Bruno Luong 13 Jul 2009 12:15:27
pattern recognition Bruno Luong 13 Jul 2009 12:15:27
running max Bruno Luong 13 Jul 2009 12:15:27
dilatation Bruno Luong 13 Jul 2009 12:15:27
dilatation jurmucioz Tsiou 13 Oct 2009 18:32:56
 

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