File Exchange

image thumbnail


version (567 KB) by Suraj Kamya
Modified decision based unsymmetric trimmed median filter


Updated 08 Nov 2014

View Version History

View License

% Modified decision based unsymmetric trimmed median filter for gray image
% im = input image
% K = length to compute window win=(2*l)+1
% n = Noise density of Salt & Pepper Noise
% out = output image
% Code developed by: Suraj Kamya
% Other used files
% rpadd - removing padding
% trimf - trimmed meadian filter
% PSN - Peak Signal to noise ratio
% IEF - Image Enhancement Factor

Cite As

Suraj Kamya (2021). MDBUTMF (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

kashika sharma

when I run this program I get the error like this
Error using median(line 28)
First input must be single or double.
Error in trimf(line 17)
y=median(y(:));% Meadin of the required data
Error in mdbutmfg (line 66)
rp=trimf(wnim); %calling Trimmed mean

Suraj Kamya

Please refer to updated submission and follow the example.

>> im=imread('bgray.jpg');
>> K=1;
>> n=0.1;
>> res=mdbutmfg(im,K,n);

Sorry, I don't know some how file is missing.


This is Rajalakshmi When i try to Run this code (MDBUTMF )i get and error like this

Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N) to change the limit. Be aware that exceeding your
available stack space can crash MATLAB and/or your computer.

Error in trimf

unable to resolve.Kindly help

sravani bendalam

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!