Question

In: Advanced Math

Adaptive bilateral filter (ABF) is used for sharpness enhancement and noise removal. The ABF sharpens an...

Adaptive bilateral filter (ABF) is used for sharpness enhancement and noise removal. The ABF sharpens an image by increasing the slope of the edges without producing overshoot or undershoot. It is an approach to enhance sharpness which is fundamentally different from the unsharp mask (USM). The approach is used in slope restoration and it also differs significantly from previous slope restoration algorithms. i) Design and Develop a Graphical User Interface (GUI) using Matlab for enhancing the sharpness with degraded image for Adaptive Bilateral filter. ii) Show separate results for Adding and Removing the noise using Adaptive Bilateral filter with a matlab Program in the designed GUI. iii) Involve a separate panel in GUI for Validating the work with objective assessment of MSE and PSNR.

note: using matlab

Solutions

Expert Solution

Solution :

  • Bilateral filtering has popular in image processing due to its capability of reducing noise while preserving the structural information of an image. The detail preserving property of the filter is mainly caused by the nonlinear filter component. It select the pixels of similar intensity which are averaged by a linear component afterward.

    (iii) Involve a separate panel in GUI for Validating the work with objective assessment of MSE and PSNR

    MSE and PSNR are the algorithms historically adopted in image processing in order to evaluate the performance of codec of interest; they are closely linked to and borrowed from other contexts of signal processing.

    Let X and Y be the two arrays of size NxM which respectively representing the Y-channel frame of reference (i.e. the original copy) and Y-channel frame of encoded/impaired copy.

    The mean square error between the two signals is defined by -

    MSE = 1 / (N x M) [X (i, j) - Y (i, j)]2

    The PSNR is defined by -

    PSNR = 10 log10 (L2 / MSE)

    MATLAB CODE

    function [mse, psnr] = mse_psnr (img1, img2, L)

    % mse_psnr (img1, img2, L)

    % img1 is the reference frame, img2 is the encoded frame

    % L is the bit color depth of each channel (usually, L = 8 bit)

    % it works with RGB frames acquired through imread() or mmreader()

    pixel_max = (2L)-1;

    % setting the maximum value that a pixel can assume

    % comment the following two lines if the frames are already in YCbCr

    img1 = rgb2ycbcr (img1);

    % converting from RGB to YCbCr

    img2 = rgb2ycbcr (img2) ;

    % converting from RGB to YCbCr

    img 1 = img1 (: , : , 1) ;

    % extracting the luminance component (Y)

    img2 = img2 (: , : , 1) ;

    % extracting the luminance component (Y)

    img1 = img1 (:) ;

    % converts a matrix into a monodimensional array

    img2 = img2 (:) ;

    % converts a matrix into a monodimensional array

    x = 0 ;

    img1 = double (img1) ;

    img2 = double (img2) ;

    x = (img1 - img2) . ^2 ;

    mse = mean (x) ;

    % here is the MSE

    psnr = 10 log10 ( ( (pixel_max)^2 / (mse) ) ;

    % and here is the PSNR

    return

  • *********************************************************************************************************************


Related Solutions

What is the overall efficiency for the removal with the fabric filter for a distribution of...
What is the overall efficiency for the removal with the fabric filter for a distribution of particles where 0.05% of the particles are of 0.1 microns diameter, 0.2% of particles are of 0.3 microns diameter, 2.8% of the particles are 0.7 microns and remaining particles are in the particle diameter range of 1 to 50 microns. A. 99% B. 92% C. 37% D. 89%
(a) What are two software methods of signal to noise ratio enhancement? (b) Briefly explain how...
(a) What are two software methods of signal to noise ratio enhancement? (b) Briefly explain how one of them works. Describe how signal to noise ratio affects LOD concentration.
7. An inductor is designed to filter high frequency noise from power supplied to a personal...
7. An inductor is designed to filter high frequency noise from power supplied to a personal computer. Do you connect the inductor in series or in parallel with the computer? Explain. Please explained detailed step by step, with diagram.
Design a matlab code that: 1-play sound 2- add noise to the sound 3- filter the...
Design a matlab code that: 1-play sound 2- add noise to the sound 3- filter the noised signal using fir or iir filter Note: FIR: Finite impulse response filter IIR: Infinite impulse response filter
Design, simulate, build, and test a passive first-order bandstop filter to remove a 440Hz noise component...
Design, simulate, build, and test a passive first-order bandstop filter to remove a 440Hz noise component from an audio signal. Elements available for your design are 1) Resistors (ranging in value from 1Ohm to 1MOhm) 2) Inductors (5mH, 20mH, 100mH, 200mH, 500mH)* 3) Capacitors (ranging in value from 1nF to 10uF) *Parasitic Resistances RL (0.9 Ohm, 1.9 Ohm, 13 Ohm, 23 Ohm, 73 Ohm
Genetic enhancement is a process that is routinely used in medicine today. True False
Genetic enhancement is a process that is routinely used in medicine today. True False
What methods can be used in gearwheel production without chip removal?
What methods can be used in gearwheel production without chip removal?
8. In RFLP, this method can be used to transfer DNA to a filter so that...
8. In RFLP, this method can be used to transfer DNA to a filter so that it can be detected with a probe: a. Hybridization b. VNTR c. PCR d. Southern Blotting 9. In VNTR analysis, this consists of a complex barcode-like band pattern generated from multiple VNTR loci: a. Single-locus probe b. Multi-locus probe c. Southern Blotting d. None of the above 10. This technique used in VNTR analysis was pioneered by Sir Alec Jeffreys in 1984: a. Single-locus...
Discuss the techniques of moving averages and filter rules as they are used by technical analysts....
Discuss the techniques of moving averages and filter rules as they are used by technical analysts. Include in your answer a discussion of technical analysis for an investor wishing to invest in emerging markets.
following facilities the trickling filter, and the Aeration basion are used for clarification of water and...
following facilities the trickling filter, and the Aeration basion are used for clarification of water and wastewater during treatment. Write short notes on each one of them with more emphasis on the similarities and differences in treatment processes, advantages and disadvantages between them.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT