Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Electrical & Electronics Expert

1.
a. JPEG2000 achieves spatial scalability by using wavelet transform. Suppose you want to enable 3 spatial layers,
show the wavelet decomposition structure (i.e. how is the image decomposed into different subbands) and specify which band(s) each spatial layer includes. If the original image has a size of MxN, what is the spatial resolution of each layer?
b. H.264/SVC achieves temporal scalability by using hierarchical temporal prediction structure. Suppose you want to code a video into a temporal scalable video stream with 3 temporal layers. Illustrate the temporal prediction structure that you would use. If the original video has a frame rate of 30 Hz, what is the frame rate of your layer 1, layer1+ layer 2 and layer 1+layer2+layer 3?

2.Suppose you are given a sequence of video frames taken when the cameraman's hand was not stable, so that successive video frames have some small global shift between each frame. You would like to stabilize this video by finding the shift between each frame and a center frame, and compensate the shift of each frame so that it is aligned with the center frame. (a ) Write a MATLAB program that can estimate the global shift between two frames (f1 and f2), with the following syntax: [vx,vy]=EstiamteShift(f1, f2). (b) Write a MATLAB function for stabilizing 3 frames, which calls your EstimateShift( ) function. Your proposed should have a syntax: [g1,g2,g3]=stabilize(f1,f2,f3), where fi are original i-th frame, gi are stabilized i-th frame.

3.(a) Write a MATLAB script for coding a video frame f2 as a B-frame, using f1 and f3 as two reference frames. For each block, it finds the best intra-prediction, uni-directional inter-prediction (f2 from f1), and bi-directional inter-prediction (f2 from f1 and f3), and use the prediction that has the smallest prediction error (in terms of sum of absolute difference). It then form the prediction error block, and applies DCT transform on the prediction error (same transform block size as the prediction block), quantize the transform coefficients using a uniform quantizer centered at 0 with a constant quantization stepsize QS. The program should have the following syntax:
[f2q]=BframeCoding(f2,f1,f3,QS,fp)
where f2q is the decoded frame for f2, fp is the pointer to the file storing the encoded bits for this frame. Assume the following functions are given to you. Write all other operations that are necessary, including deciding which
mode to use, performing DCT, quantization, inverse DCT. However, you can call dct2( ) and idct2( ) functiona of MATLAB.
• [IntraDirection, PredBlock,]=IntraPred(f, x0,y0,B), where f is the frame being coded, and x0, y0 is the top-left pixel coordinate of the block, and BxB is the block size; IntraMode is the best intra mode found, PredBlock is the best prediction block.
• [vx,vy,PredBlock]=MotionEstimation(f1,f2,x0,y0,B), where f1 is the frame being coded, f2 is the reference frame for motion estimation, vx,vy is the motion vector found, PredBlock is the prediction block
• [ModeBits]=BinaryEncodingMode(BestMode,IntraDirection,vx1,vy1,vx2,vy2); where BestMode is the chosen mode ("0"=intra, "1"=uni-directional inter, "2"=bi-directional inter), IntraDirection is the best intra-prediction direction returned by IntraPred( ), (vx1,vy1) is the motion vector of the current block in f2 with respect to f1, and the (vx2,vy2) is the motion vector of the current block in f2 with respect to f3, both are returned by the MotionEstimation( ) function; ModeBits are the binary bits generated for the mode information.
• [CoeffBits]=BinaryEncodingCoef(QDCTIndics); where QDCTIndics include the blocks of quantized DCT coefficient indices, CoeffBits are the binary bits generated for QDCTIndics.
• AppendBits(Bits, fp): append Bits to the compressed file
(b) Write a main function for coding frames f1, f2, f3, f4, f5 as I-, B-, P-, B-, P-frames. Assume the following functions are available:
[fq]=IframeCoding(f,QS,fp): coding frame f using intra-mode only
[f2q]=PframeCoding(f2,f1,QS,fp): coding frame f2 using either intra-mode or uni-directional prediction from f1 [f2q]=BframeCoding(f2,f1,f3,QS,fp): coding frame f2 using either intra-mode or uni-directional prediction from f1 or bi-directional prediction from f1 and f3. 

Electrical & Electronics, Engineering

  • Category:- Electrical & Electronics
  • Reference No.:- M91272027

Have any Question?


Related Questions in Electrical & Electronics

Questions -problem 1 - a series rlc network has r 2 komega

Questions - Problem 1 - A series RLC network has R = 2 kΩ, L = 40 mH and C = 1μF. Calculate the impedance at resonance and at one-fourth, one-half, twice, and four times the resonant frequency. Problem 2 - Design a serie ...

Summative assessmentin 2017 sej101 assessment will consist

Summative Assessment In 2017 SEJ101 assessment will consist of nine tasks that will develop a portfolio of your assessed work. Throughout the trimester you will have the opportunity for feedback on all nine tasks before ...

Nanotechnology engineering program assignment - passive

Nanotechnology Engineering Program Assignment - Passive Filters Q1) Determine what type of filter is in circuit shown. Calculate the cutoff frequency f c . Q2) Determine what type of filter is in circuit shown. Calculate ...

1 goalin this project you will solve a non-trivial design

1 Goal In this project you will solve a non-trivial design problem explicitly using the divide-and-conquer (D&C) approach. The main reason for using the D&C approach is the ease of the design process and the streamlined ...

A four-pole star-connected squirrel-cage induction motor

A four-pole, star-connected, squirrel-cage induction motor operates from a variable voltage 50 Hz three-phase supply. The following results were obtained as the supply voltage was gradually reduced with the motor running ...

Questions -q1 a single-phase transformer rated 21 kv130 v

Questions - Q1. A single-phase transformer rated 2.1 kV/130 V, 7.8 kVA has the following winding parameters: r1= 0.7Ω, x1 = 0.9Ω, r2 = 0.04Ω and x2 = 0.05Ω. Determine: a. The combined winding resistance ________ Ω and le ...

Assignment -consider a common emitter amplifiernow lets say

Assignment - Consider a common emitter amplifier: Now let's say that R B and R C do a fine job at DC biasing the BJT but they are large so they can be neglected for small signal (AC) analysis. In that case, the equivalen ...

Problem 1given a sequence xn for 0lenle3 where x0 1 x1 1

Problem # 1: Given a sequence x(n) for 0≤n≤3, where x(0) = 1, x(1) = 1, x(2) = -1, and x(3) = 0, compute its DFT X(k). (Use DFT formula, don't use MATLAB function) Problem # 2: Use inverse DFT and apply it on the Fourier ...

Case studythis assignment consists of a written report of

CASE STUDY This assignment consists of a written report of approximately 1000 words and any diagrams in which you are asked to critically compare different process methods used to achieve the same result and show an awar ...

1 a name the three major groups of contamination and

1. (a) Name the three major groups of contamination and briefly describe their physical characteristics. (b) Where do the above contamination types come from? Give one example of each. 2. Name two processes metrics which ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As