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

Find a local s-matrix for each triangle, Figure shows two first-order trian...

Figure shows two first-order triangular finite elements used to solve the Laplace equation for electrostatic potential.  Find a local S-matrix for each triangle, and a global S-mat

8085 and 8086 in microprocessor, What is the difference among 8085 and 8086...

What is the difference among 8085 and 8086 in microprocessor? Ans) 8086 has a special concept known as memory segmentation. It permits parallel processing, whereas 8085 does no

Pulsed OFDM odulation for ultrawideband communication, i have selected this...

i have selected this paper as my semester project according to teacher we have to fully implement it. i need its full written matlab code simulink model and results. can you help m

Field effect transistor, Field effect transistor: Primarily difference...

Field effect transistor: Primarily difference between bit and jet is that bit transistor is a current controlled device while jet is a voltage controlled device.  Is a direct

Low and high pass filters - calculate the cutoff frequencies, At the comple...

At the completion of this unit, you will be able to determine the cutoff frequencies and attenuations of RC and RL low- and high-pass filters by using test circuits. UNIT FUNDA

Digital storage oscilloscope, #question.draw the block diagram pf digital s...

#question.draw the block diagram pf digital storage oscilloscope and briefly discuss about each block

Describe the methods of improving commutation., There are two practical way...

There are two practical ways of improving commutation i.e. of making current reversal in the short - circuited coil as sparkless as possible. These methods are known as (i) resista

What is direct memory access, What is Direct memory access? Direct memo...

What is Direct memory access? Direct memory access (DMA) is a process wherein an external device takes over the control of system bus by the CPU.DMA is for high-speed data tran

Estimate conversion time of counter-controlled a/d converter, Q. An 8-bit A...

Q. An 8-bit A/D converter is driven by a 1-MHz clock. Estimate the maximum conversion time if: (a) It is a counter-controlled A/D converter. (b) It is a successive-approximat

Show the subtraction method, Q. Show the Subtraction Method? For this p...

Q. Show the Subtraction Method? For this procedure (method), start with a weighted position value greater that the number. If the number is greater than the weighted position f

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