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
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.
Recommended textbooks for you
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
College Algebra
Algebra
ISBN:9781305115545
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:Cengage Learning
Text book image
Algebra for College Students
Algebra
ISBN:9781285195780
Author:Jerome E. Kaufmann, Karen L. Schwitters
Publisher:Cengage Learning
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
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