File Exchange

image thumbnail

MDBUTMF

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

4 Downloads

Updated 08 Nov 2014

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
% kamyasuraj@yahoo.com
% Other used files
% rpadd - removing padding
% trimf - trimmed meadian filter
% PSN - Peak Signal to noise ratio
% IEF - Image Enhancement Factor

Comments and Ratings (4)

hi
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
filter

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.

Rajalakshmi

Hi,
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

Updates

1.1.0.0

Previously trimf.m file is missing. Its updated now and follow the example given.
>> im=imread('bgray.jpg');
>> K=1;
>> n=0.1;
>> res=mdbutmfg(im,K,n);

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

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor