1. Homepage
  2. Programming
  3. [2018] CSCI 576 Multimedia Systems Design - Assignment 1: Spatial/Temporal Resampling and Aliasing

[2018] CSCI 576 Multimedia Systems Design - Assignment 1: Spatial/Temporal Resampling and Aliasing

Engage in a Conversation
CSCI 576USCMultimedia Systems DesignUniversity of Southern CaliforniaC++JavaCS576Temporal ResamplingSpatial ResamplingTemporal Aliasing

CS 576 Fall 2018– Assignment 1 Instructor: Parag Havaldar CourseNana.COM

Assigned on Mon Aug 27 2018
Solutions due on Mon Sept 17 2018 (before 12 noon) Total Marks – 100 points
CourseNana.COM

Written Part: (10 points) CourseNana.COM

Each question has marks displayed CourseNana.COM

Q.1 Suppose a camera has 450 lines per frame, 520 pixels per line, and 25 Hz frame rate. The color sub sampling scheme is 4:2:0, and the pixel aspect ratio is 16:9. The camera uses interlaced scanning, and each sample of Y, Cr, Cb is quantized with 8 bits CourseNana.COM

  • What is the bit-rate produced by the camera? (2 points)
  • Suppose we want to store the video signal on a hard disk, and, in order to save

space, re-quantize each chrominance (Cr, Cb) signals with only 6 bits per sample. What is the minimum size of the hard disk required to store 10 minutes of video (3 points) CourseNana.COM

Q.2 The following sequence of real numbers has been obtained sampling an audio signal: 1.8, 2.2, 2.2, 3.2, 3.3, 3.3, 2.5, 2.8, 2.8, 2.8, 1.5, 1.0, 1.2, 1.2, 1.8, 2.2, 2.2, 2.2, 1.9, 2.3, 1.2, 0.2, -1.2, -1.2, -1.7, -1.1, -2.2, -1.5, -1.5, -0.7, 0.1, 0.9 Quantize this sequence by dividing the interval [-4, 4] into 32 uniformly distributed levels (place the level 0 at -3.75, the level 1 at -3.5, and so on. This should simplify your calculations). CourseNana.COM

  • Write down the quantized sequence. (4 points)
  • How many bits do you need to transmit it? (1 points)

Programming – Spatial/Temporal Resampling and Aliasing CourseNana.COM

This programming assignment will help you gain a practical understanding of Resampling and Filtering in the spatial and temporal domain. It consists of two parts, the first one aimed to increase your understanding of sampling issues in the spatial domain and the second one deals with sampling issues in the temporal domain. CourseNana.COM

Part 1 –Spatial Resampling and Aliasing (40 points) CourseNana.COM

In your program you will need to display two images side by side – CourseNana.COM

  1. Your original image displayed on the left – This is an image of size 512x512 that

you will create based on the criteria explained below. CourseNana.COM

  1. Your processed output image displayed on the right – This image is the output of

your algorithms on the original image to create a resampled image depending on parameters explained below. CourseNana.COM

Input to your program will take three parameters where CourseNana.COM

  • The first parameter is the number of lines to create an image with radial pattern

of n black lines starting from the center of the image towards the boundaries. The image has a white background. Each consecutive line is separated by 360/degrees. The idea here is by increasing n, you can increase the frequency content in an image. CourseNana.COM

  • The second parameter will be scaling value that scales the input image down by a factor. This is a floating point number eg s=2.0 will scale the image down to 256x256. Note need not be a complete integer.
  • The third parameter will be a boolean value (0 or 1) suggesting whether or not you want to deal with aliasing. A 0 signifies do nothing (aliasing will remain in your output) – which means you need copy the direct mapped value from input to output. A value 1 signifies that anti-aliasing should be performed – which means that instead of the direct mapped value you need to copy a low pass filtered value to the output. See lecture for more explanation of this in class.


CourseNana.COM

This will create an image with a more dense pattern with each line separated by one degree, ultimately scaled down to half its size. CourseNana.COM

Analysis Questions for part 1 – submit document with written part CourseNana.COM

  1. Let’s try an experiment where s (scale factor) remains constant and n (number of lines) is allowed to vary. Comment on your results as to now aliasing is affected by using various constant values of for changing in each case. You may attach results, plot charts etc. to quantify your results.
  2. Let’s try another experiment, this time keep n (number of lines) constant and varying s (scale factor). Comment on your results as to now aliasing is affected by using various constant values of for changing s. You may attach results, plot charts etc. to quantify your results.

Part 2 –Temporal Aliasing (50 points) CourseNana.COM

In your program you will need to display two videos side by side – CourseNana.COM

  1. Your original video displayed on the left – This is video of size 512x512 that you

will create based on the criteria explained below. This is radial pattern just as in the previous case, but it is also rotating clockwise at a certain specified speed. When create and update your image at the respective times, it should simulate a rotating wheel. CourseNana.COM

  1. Your processed output video displayed on the right – The output video is also of size 512x512 but in order to simulate temporal aliasing effects it will be given an fps rate of display, which means your output will be updated at specific times.

Input to your program will take four parameters where CourseNana.COM

  • The first parameter is the number of lines to create an image with radial pattern

of n black lines starting from the center of the image towards the boundaries. The image has a white background. Each consecutive line is separated by 360/degrees. The idea here is by increasing n, you can increase the frequency content in an image. CourseNana.COM

  • The second parameter will be a speed of rotations in terms of rotations per second. This is a floating point number eg s=2.0 indicates that the wheel is making two full rotations in a second, s=7.5 indicates that the wheel is making seven and a half rotations in a second. Remember this is the original input video signal with a very high display rate.
  • The third parameter will be an fps value suggesting that not all frames of the input video are displayed, but only a specific frames per second are displayed.

To invoke your program we will compile it and run it at the command line as CourseNana.COM

Mypart2.exe 64 4.0 10.0 CourseNana.COM

In this case, the input video consists of images with 64 lines (as explained in part one), rotating clockwise at 4 revolutions per second (displayed on the left) and the right output is a temporally sampled version displayed at 10.0 frames per second. Here, for a rate of 4.0 rotations per second, the Nyquist factor is 8.0, so any fps above 8.0 should not result in temporal aliasing and the output should be the same as input. CourseNana.COM

Mypart2.exe 64 4.0 7.5 CourseNana.COM

In this case, the input video consists of images with 64 lines (as explained in part one), rotating clockwise at 4 revolutions per second (displayed on the left) and the right output is a temporally sampled version displayed at 7.5 frames per second. Here, for a rate of 4.0 rotations per second, the Nyquist factor is 8.0, so any fps below 8.0 should result in temporal aliasing – manifested by the wheel not rotating the way it should CourseNana.COM


CourseNana.COM

Part 3 (Optional Extra Credit) (30 points) CourseNana.COM

Change part2 of your assignment to take in two additional parameters – one to deal with scaling the temporal signal (just as you did with the static image in part 1) and the second to deal with anti aliasing in the resultant signal in both spatial and temporal domains. Correspondingly, CourseNana.COM

  • The fourth parameter will be a scale factor that scales the input video down by a factor. This is a floating point number eg – s=2.0 will scale the video down to 256x256. Note need not be a complete integer. Also if the fourth parameter above is a 1, then you need to perform spatial antialiasing (like part1) along with temporal antialiasing.
  • The fifth parameter will be a boolean value (0 or 1) suggesting whether or not you want to deal with aliasing. A 0 signifies do nothing (temporal and spatial aliasing will remain in your output). A value 1 signifies that temporal & spatial anti- aliasing should be performed – you need to design a method to decrease temporal aliasing that shows better output videos as well as incorporate the anti aliasing method for spatial aliasing that you implemented in part 1.

Together with these two parameters you should be able to create scaled videos of your input at different frame rates and simultaneously minimize any aliasing effects due to resampling temporarily and spatially. CourseNana.COM

To invoke your extra credit, we will compile it and run it at the command line as CourseNana.COM

MyExtraCredit.exe 64 4.0 7.0 1.0 1 CourseNana.COM

In this case, the input video consists of images with 64 lines (as explained in part one), rotating clockwise at 4 revolutions per second (displayed on the left) and the right output CourseNana.COM

is a temporally sampled version displayed at 7 frames per second. Here, for a rate of 4.0 rotations per second, the Nyquist factor is 8.0, will result in temporal aliasing which will have to be anti-aliased. The output size does not change, so there is nothing to do about spatial anti-aliasing. CourseNana.COM

MyExtraCredit.exe 64 4.0 7.0 2.0 1 CourseNana.COM

In this case, the input video consists of images with 64 lines (as explained in part one), rotating clockwise at 4 revolutions per second (displayed on the left) and the right output is a temporally sampled version displayed at 7 frames per second. Here, for a rate of 4.0 rotations per second, the Nyquist factor is 8.0, will result in temporal aliasing which will have to be anti-aliased. The output size is also halved and it will induce spatial aliasing which will have to be anti-aliased. CourseNana.COM

What should you submit ? CourseNana.COM

• Your source code ONLY (no data or binaries), your project file or makefile, if any and your analysis questions answered in a pdf or a word document. You should submit your work by making use of the D2L submit process. Please do not submit any binaries or media files. You will be adversely penalized if you do. We will compile your program and execute our tests accordingly. CourseNana.COM

  CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
CSCI 576代写,USC代写,Multimedia Systems Design代写,University of Southern California代写,C++代写,Java代写,CS576代写,Temporal Resampling代写,Spatial Resampling代写,Temporal Aliasing代写,CSCI 576代编,USC代编,Multimedia Systems Design代编,University of Southern California代编,C++代编,Java代编,CS576代编,Temporal Resampling代编,Spatial Resampling代编,Temporal Aliasing代编,CSCI 576代考,USC代考,Multimedia Systems Design代考,University of Southern California代考,C++代考,Java代考,CS576代考,Temporal Resampling代考,Spatial Resampling代考,Temporal Aliasing代考,CSCI 576help,USChelp,Multimedia Systems Designhelp,University of Southern Californiahelp,C++help,Javahelp,CS576help,Temporal Resamplinghelp,Spatial Resamplinghelp,Temporal Aliasinghelp,CSCI 576作业代写,USC作业代写,Multimedia Systems Design作业代写,University of Southern California作业代写,C++作业代写,Java作业代写,CS576作业代写,Temporal Resampling作业代写,Spatial Resampling作业代写,Temporal Aliasing作业代写,CSCI 576编程代写,USC编程代写,Multimedia Systems Design编程代写,University of Southern California编程代写,C++编程代写,Java编程代写,CS576编程代写,Temporal Resampling编程代写,Spatial Resampling编程代写,Temporal Aliasing编程代写,CSCI 576programming help,USCprogramming help,Multimedia Systems Designprogramming help,University of Southern Californiaprogramming help,C++programming help,Javaprogramming help,CS576programming help,Temporal Resamplingprogramming help,Spatial Resamplingprogramming help,Temporal Aliasingprogramming help,CSCI 576assignment help,USCassignment help,Multimedia Systems Designassignment help,University of Southern Californiaassignment help,C++assignment help,Javaassignment help,CS576assignment help,Temporal Resamplingassignment help,Spatial Resamplingassignment help,Temporal Aliasingassignment help,CSCI 576solution,USCsolution,Multimedia Systems Designsolution,University of Southern Californiasolution,C++solution,Javasolution,CS576solution,Temporal Resamplingsolution,Spatial Resamplingsolution,Temporal Aliasingsolution,