0

Hi I need to remove the salt&pepper noise from an image. My function has 3 parameters input_img_path, a mask(i j)==1 and output_img_path. I need someone to explain how does that mask work and how to remove that noise.

Grzegorz Adam Kowalski
  • 5,243
  • 3
  • 29
  • 40
Alex
  • 31
  • 1
  • 7
  • Did you just ask us to do your homework for you? – Mike 'Pomax' Kamermans Mar 24 '13 at 14:12
  • I don't understand that mask function. I'm not asking you to do my homework. I just don't understand this function – Alex Mar 24 '13 at 14:20
  • either it's part of one of the matlab components, in which case it's in the documentation (like Simulink), or it's a custom function, in which case you should just look at what its function definition says. Based on nothing, because you didn't actually show any relevant code, I'm going with "it acts as Kronecker delta function" – Mike 'Pomax' Kamermans Mar 25 '13 at 02:11

1 Answers1

1

Noise filtering

use your recorded voice in ‘ wavread’ command……

this is how i remove the noise from audio, try it on images by yourself.. use this medfilt2 to remove noise from images.. hope it'll work fine for u. [y,Fs]=wavread('C:\Users\user\Downloads\bugsbunny1.wav'); Y=imnoise(y,'salt & pepper',0.02); K= medfilt2(Y,[5 1]) wavplay(K)

user3801619
  • 197
  • 1
  • 1
  • 10