Filtering, Electrical Engineering

Assignment Help:

Filtering

 (i) Write an m-file "mymedian.m" which will take an image and filter size and perform median filtering. Display input and output image. Use 

help median

function imm=mymedian(imn,msize)
[h w]=size(imn);
kernel_size=?
imm=imn;
for i=msize+1:(h-msize)
  for j=msize+1:(w-msize)
    imm(i,j)=median(reshape(imn(i-msize:i+msize,j-msize:j+msize),1,kernel_size));
  end
end

What is the median value of an image?

Comment on the complexity (number of operations per pixel) of the algorithm. 

(ii) Write an m-file "mygaussian.m" which will take an image and filter size and perform Gaussian filtering. Display input and output image.


function img=mygaussian(imn,sigma)
g=gauss(sigma);

img=?(iii) Perform median and Gaussian filtering on  face_g.png, face_m.png,statue_m.png.
What kind of noise the median filer is useful for?
What kind of noise the Gaussian filer is useful for?


Related Discussions:- Filtering

Obtain the waveforms, Q. (a) Consider a diode circuit with RC load as shown...

Q. (a) Consider a diode circuit with RC load as shown in Figure. With the switch closed at t = 0 and with the initial condition at t = 0 that vC = 0, obtain the functional forms of

Explain node-voltage and mesh-current analyses, Explain Node-voltage and me...

Explain Node-voltage and mesh-current analyses? The node-voltage and mesh-current methods, which complement each other, are well-ordered systematic methods of analysis for solv

Show balanced three-phase loads, Q. Show Balanced three-phase loads? Th...

Q. Show Balanced three-phase loads? Three-phase loads can be connected in either wye (also known as star or Y) or delta (otherwise known as mesh or ). If the load impedances i

Unconditional call instruction - call instruction , Unconditional Call Inst...

Unconditional Call Instruction CALL ( Unconditional Call) Instructions :This  instruction calls the subroutine program stored at memory  location specified  in the  instruction

Bjt, bias compensation using diode and thermistor

bias compensation using diode and thermistor

Process of amplitude modulation, Q. Process of Amplitude Modulation? In...

Q. Process of Amplitude Modulation? In AM the message signal is impressed on the amplitude of the carrier signal. There are several different ways of amplitude modulating the c

MATLAB, Flicker noise: I’d like to plot the graph of the flicker noise foun...

Flicker noise: I’d like to plot the graph of the flicker noise found in the data sheet for the amplifier (will be provided later) and also generate the equation for that graph sho

Binary to hexadecimal conversion, Binary  to Hexadecimal  Conversion ...

Binary  to Hexadecimal  Conversion To convert a binary  number  into  hexadecimal  divide the number into group  of four  bits  each starting from the least significant bit. Th

Balanced delta-connected load, Q. A balanced delta-connected load with a pe...

Q. A balanced delta-connected load with a per-phase impedance of 12 + j9  is supplied by a 173-V, 60-Hz three-phase source. (a) Determine the line current, the power factor, th

What do you mean by an assembler, What is an assembler? Assembler: An...

What is an assembler? Assembler: An assembler or macro-assembler usually forms a part of the operating system. This translates an assembly language program in machine languag

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd