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

Robotic Arm Project, This is basically a simple senior design project where...

This is basically a simple senior design project where the professors are giving us a limited budget and providing us with an Arduino Board. (We can use rasberry pi, beagle bone, e

Obtain complete solution for the current for given circuit, For the circuit...

For the circuit of Figure(a), obtain the complete solution for the current i L (t) through the 5-H inductor and the voltage v x (t) across the 6- resistor.

Explain the meaning of ring counters, Explain the meaning of Ring Counters?...

Explain the meaning of Ring Counters? A ring counter is fundamentally a circulating shift register in which the output of the most significant stage is fed back to the input of

EDC, What is hall effect?

What is hall effect?

Two-winding distribution transformer, Q. A single-phase, 10-kVA, 2300:230-V...

Q. A single-phase, 10-kVA, 2300:230-V, 60-Hz, two-winding distribution transformer is connected as an auto transformer to step up the voltage from 2300 V to 2530 V. (a) Draw a s

Define the term assembler directives, Define the term assembler directives....

Define the term assembler directives. An assembler directive is a statement to provide direction to the assembler to perform the function of assembly process. The assembler di

Resultant air-gap flux of induction machine, Q. Resultant air-gap flux of i...

Q. Resultant air-gap flux of induction machine? The resultant air-gap flux is produced by the combined mmfs of the stator and rotor currents. For the sake of conceptual and ana

For sign flag - conditional jumps , For  Sign  Flag JP ( jump  on ...

For  Sign  Flag JP ( jump  on plus ) Jump  on minus ) Instructions JP  transfer  the execution of the program to the specified  memory  address if  sign  flag is set (S=

Working principle of ultrasonic machine, Illustrate the working principle, ...

Illustrate the working principle, equipment used,process characteristic, advantage and disadvantage of water jet machine (WJM) (a) Illustrtae the working principle of ultrasonic

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