Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For each question of the following two questions, answer the question in a separate file, and name each file as follows: yourStudentNumber _ QuestionNumber. Write
For each question of the following two questions, answer the question in a separate file, and name each file as follows: yourStudentNumberQuestionNumber.
Write a Matlab function that takes a d matrix of numbers of type uint as a parameter and returns the entropy value for the matrix. The function should be written inside an file. You MUST implement the entropy function from scratch, do not use the ready predefined Matlab entropy function.
Write a Matlab function that takes two input parameters: a d matrix before compression, and a d matrix after compression, computes the Mean Square Error MSE for the two matrices, and returns the computed MSE as an output. The function should be included inside an file.
Write a Matlab function that takes as an input an image block of size size and type uint and computes the D discrete cosine transform for the block and stores the output in a variable called DMATRIX, then from DMATRIX computes the inverse D discrete cosine transform and stores the output in a variable called IDMATRIX. The function must have two return variables which are DMATRIX and IDMATRIX. The function must check that the size of the input block is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started