Numerical Analysis
Numerical Analysis
3rd Edition
ISBN: 9780134696454
Author: Sauer, Tim
Publisher: Pearson,
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 11.2, Problem 3CP

Obtain a grayscale image file of your choice, and use the imread command to import into MATLAB. Crop the resulting matrix so that each dimension is a multiple of 8. If necessary, converting a color RGB image to gray scale can be accomplished by the standard formula (11.15).

a. Extract an 8 × 8

pixel block, for example, by using the MATLAB command xb=x(81:88, 81:88). Display the block with the imagesc command.

b. Apply the 2D-DCT.

c. Quantize by using linear quantization with p = 1 , 2 , and 4, Print out each Y Q

.

d. Reconstruct the block by using the inverse 2D-DCT. and compare with the original. Use commands MATLAB colormap(gray) and imagesc(X [0 255]).

e. Carry out (a)-(d) for all 8 × 8 blocks, and reconstitute the image in each case.

Blurred answer
Students have asked these similar questions
Do e, f and g on the GRAPHICS calculator
Please help with 1.2 and 1.3 only.
The + sign in the figure is shown using 9 pixels in a 3 X 3 grid.The color levels are given to the right of the figure. Each color is represented by a specific number: 0, 1, 2, or 3. a. Find a matrix that represents a digital photograph of the + sign. b. Adjust the contrast by changing the black to dark gray and the light gray to white. Use matrix addition to accomplish this. c. Adjust the contrast by changing the black to light gray and the light gray to dark gray. Use matrix addition to accomplish this.
Knowledge Booster
Background pattern image
Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, subject and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Text book image
Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Matrix Operations Full Length; Author: ProfRobBob;https://www.youtube.com/watch?v=K5BLNZw7UeU;License: Standard YouTube License, CC-BY
Intro to Matrices; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=yRwQ7A6jVLk;License: Standard YouTube License, CC-BY