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

Guidelines from electricity regulatory commission, Guidelines from Electric...

Guidelines from Electricity Regulatory Commission The electricity companies have successfully adopted the guidelines issued through ERCs Utilities usually set their yearly KP

Integrated circuit components, You are required to design and document the ...

You are required to design and document the hardware design for Lift Control Unit (LCU) as required by the questions/specification in section 2 above, based on a 68HC12D60 microcon

Storage oscilloscopes, Q.  Write short note on storage oscilloscopes. ...

Q.  Write short note on storage oscilloscopes. Sol. Storage Oscilloscope: The bistable storage tube is between two to ten times slower than a comparable variable persistence

Dsp, what is circular convolution

what is circular convolution

Determine rms and average value, Determine RMS and average value: Dete...

Determine RMS and average value: Determine RMS and average value of the output of half wave rectifier. Solution The waveform of current, output of the half wave rectif

Reduction of sequential monte carlo in medium voltage, how can optimized th...

how can optimized the system through the matlab software?

Duty cycle of the system, The report should contain all of the information ...

The report should contain all of the information detailed below together with your analysis of the circuit and any conclusions. The report should contain the code for your simulati

Mesh analysis procedure, Mesh analysis procedure : 1.  Assign a distinct...

Mesh analysis procedure : 1.  Assign a distinct current to every closed loop of the network. 2.  Apply KVL around every closed loop of the network. 3.  Solve the resulting

Battery service provider system specification, The vehicle batteries shall ...

The vehicle batteries shall be owned by the battery service provider. The automobile battery shall be recyclable, environmentally friendly, and safe. The battery service pr

Sensor selection, Research and recommend a sensor for a real full size conv...

Research and recommend a sensor for a real full size conveyor system of approximately 1000mm width to detect objects of varying size passing along it. Discuss the suitability of th

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