[SOLVED] CSC4140 Assignment I

25.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon 118010141_HW_1-hqxwb4.zip (1595.4 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (2 votes)

1 Learn to use VirtualBox
1.1 Install Virtual Box
For Linux, visit Linux Installation Guide, and then install it by following instructions.
For Windows, Download Windows Download Link, and then install it by following instructions.
For Mac OS, Download Mac OS Download Link, and then install it by following instructions.
1.2 Download Virtual Disk
Download virtual disk Graphics-CUHKSZ.rar, 4.39G, password:4140. Unzip the .rar file, you will get a Graphics-CUHKSZ.vdi.
1.3 Configure Your Virtual Box
Open your virtual box, click “New”, set type as “Linux”, choose “Ubuntu-64 bit”, set the memory size as large as possible, and choose your VDI file as the virtual hard disk. Then create
it!
For your system, the Password is CUHKSZ. You can create user as you like.
1.4 Submission Checklist
Use latex to write the report. I promise it will helps you go further for your research and you can use either Overleaf online or Texmaker offline. The template for the report is attached.
2. CMake file
3. source code files “*.cpp”
4. header files “*.hpp” if any.
5. and report “UrStudentID_HW_X.pdf”
Pack them as a “UrStudentID_HW_X.zip” file and submit through BB. Attention, do not submitted any unneeded files for folders like /build, /.vscode.
1.5 Some useful pre-requests tutorial
Tutorial about how to use CMake
Tutorial about how to use C++
Tutorial about how to use OpenCV C++
Tutorial about how to use Eigen, Eigen Matrix. Eigen is a popular linear algebra library
Note: Do not ask questions before ask the above link and google. The TAs resources is scarcity for this new course and can only help you cover the content of this course.
1.6 header files you need this time
#include<cmath>
#include<eigen3/Eigen/Core>
#include<eigen3/Eigen/Dense>
#include<Eigen/SVD>
#include<iostream>
2 Basics operations of vectors and matrix
2.1 Basic vector operations (10 points)
print out the results and put it (crops) into your .pdf report.
1. Define two float vectors v[1, 1.5, 2, 3] and w[0, 1, 2, 4]
2. vector add
3. vector inner product
4. vector cross product
2.2 Basic matrix operations (20 points)
print out the results (in a good “rectangular” shape) and put it (crops) into your .pdf report.
1. Define two 4Γ—4 matrix i[1,…, 16] and j[4, 3, 2, 1; …; 16,15,14,13]
2. matrix add i+j
3. matrix multiply i*j
4. matrix multiply vector i*v
2.3 SVD decomposition of “lenna” (40 points)
Given an 512Γ—512 image “lenna.png”. Your task is
1. convert it to gray scale using Opencv and normalize the range from [0, 255] to [0, 1.0].
2. You got a 512Γ—512 matrix now. Decomposite it to S, V, and D matrix using Eigen. img=U*S*V’
3. Save the feature map of the first singular value U(:,:)*S(:,1)*V(:,1)’ as an image then put it into your .pdf report;
4. Save the feature map of the first ten singular value U(:,:)*S(:,1:10)*V(:,1:10)’ as an image then put it into your .pdf report;
5. Save the feature map of the first fifty singular value U(:,:)*S(:,1:50)*V(:,1:50)’ as an image then put it into your .pdf report;
6. Explain the results you have seen in your .pdf report.
2.4 Basic transformation operations (30 points)
print out the results and put it (crops) into your .pdf report. Given a Point [1,2,3], rotate it
(45Β·,30Β·,60Β·) around the Point [4,5,6]. Where is the new Point?

  • 118010141_HW_1-hqxwb4.zip