% 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
Suraj Kamya (2021). MDBUTMF (https://www.mathworks.com/matlabcentral/fileexchange/46563-mdbutmf), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
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
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.
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