Answered step by step
Verified Expert Solution
Link Copied!

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: yourStudentNumber_QuestionNumber.
Write a Matlab function that takes a 2-d matrix of numbers of type uint8 as a parameter and returns the entropy value for the matrix. The function should be written inside an M 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: (1) a 2-d matrix before compression, and (2) a 2-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 M file.
Write a Matlab function that takes as an input an image block of size 1616 size and type uint8, and computes (1) the 2D discrete cosine transform for the block and stores the output in a variable called DMATRIX, (2) then from DMATRIX computes the inverse 2D 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 1616.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

List two other ways to name each angle. 1. W 2. y

Answered: 1 week ago

Question

Discuss the states of accounting

Answered: 1 week ago

Question

3. Define the roles individuals play in a group

Answered: 1 week ago