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

Function of circuit - breaker, Q. Function of circuit - breaker, difference...

Q. Function of circuit - breaker, difference between circuit breaker and 'isolator'? Ans: The function of circuit breaker is to break the electrical continuity in the event o

Write out the general form of difference equation, Write out the General Fo...

Write out the General Form of Difference Equation? If the x[n] is the input and y[n] is the output of a linear time-invariant  system,  then  an  N  order  FIR  difference  equ

Schematic diagram of led based system, Q. Schematic Diagram of LED based Sy...

Q. Schematic Diagram of LED based System ? As shown in the two schematic diagrams above, the LEDs in a seven-segment display are not isolated from each other. Rather, eith

Forces and torques in magnetic-field systems, Q. Forces and torques in magn...

Q. Forces and torques in magnetic-field systems? We mentioned earlier that the greater ease of storing energy in magnetic fields largely accounts for the common use of electrom

Sonic harassment, Sir I would like to find a sensor that can detect beams ...

Sir I would like to find a sensor that can detect beams from the phasor painfield generator and the sonic devasator (devices of this nature). These sonic devices emit a high pres

Find the output function y for the logic circuits, Q. Find the output funct...

Q. Find the output function Y for the logic circuits of Figure (a) and (b). An AOI (AND-OR-INVERT) gate is shown in Figure with its two possible realizations. Obtain the output

Power in balanced three-phase circuits, Power in Balanced Three-Phase Circu...

Power in Balanced Three-Phase Circuits The total power delivered by a three-phase source, or consumed by a three-phase load, is found simply by adding the power in each of the

Microcontroller, 1. Look at a method of creating AC from DC. 2. This may...

1. Look at a method of creating AC from DC. 2. This may involve a microcontroller. 3. Method must be able to synchronise your produced AC to local AC supply. 4. Look at po

Kpi for second stage implementation, KPI for Second Stage Implementation ...

KPI for Second Stage Implementation These KPIs deal along with the quality of the relationship among a supplier and a user (customer). They are significant to potential custom

Calculation of receiving end voltage, Calculation of Receiving End Voltage ...

Calculation of Receiving End Voltage Consider the simple circuit shown in Figure. To find the voltage V 2 using analytical method:   P = I V 2 = 0.5      ..... (1)

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