Lab 2 Part 1 assigned for lab sessions this week

Similar documents
8/30/2010. Chapter 1: Data Storage. Bits and Bit Patterns. Boolean Operations. Gates. The Boolean operations AND, OR, and XOR (exclusive or)

Data Storage and Manipulation

Chapter 1: Data Storage. Copyright 2015 Pearson Education, Inc.

Data Encoding CTPS 2018

Announcements. Project Turn-In Process. and URL for project on a Word doc Upload to Catalyst Collect It

North Shore Community College

ECS 15: Introduction to Computers Midterm November 6, 2013

Announcements. Project Turn-In Process. Project 1A: Project 1B. and URL for project on a Word doc Upload to Catalyst Collect It

Writing Assignment #1 Due Today. Lab#1 is tomorrow (8am) Analog vs. digital information. Digitization

1/29/2008. Announcements. Announcements. Announcements. Announcements. Announcements. Announcements. Project Turn-In Process. Quiz 2.

Lecture 18: Exam Review

Theory Lecture Day Topic Practical Day. Week. number systems and their inter-conversion Decimal, Binary. 3rd. 1st. 1st

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Minnesota State College Southeast

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Data Representation. signals can vary continuously across an infinite range of values e.g., frequencies on an old-fashioned radio with a dial

Answer all questions. No marks will be awarded for using brand names of software packages or hardware.

Electronic Publishing

Introduction to Computers & Programming

Example: compressing black and white images 2 Say we are trying to compress an image of black and white pixels: CSC310 Information Theory.

Data Manipulation. Audio and Image Representation. -Representation, Compression, and Communication Errors. Audio Representation

Digital Media. Daniel Fuller ITEC 2110

How do you make a picture?

Encoders and Decoders: Details and Design Issues

What You ll Learn Today

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 2 Logistics

WINTER 15 EXAMINATION Model Answer

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Contents Circuits... 1

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Chapt er 3 Data Representation

Course Plan. Course Articulation Matrix: Mapping of Course Outcomes (COs) with Program Outcomes (POs) PSO-1 PSO-2

Research Article VLSI Architecture Using a Modified SQRT Carry Select Adder in Image Compression

ELEC 691X/498X Broadcast Signal Transmission Fall 2015

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

St. MARTIN S ENGINEERING COLLEGE

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Hour of Code: Teacher Guide

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

Motion Video Compression

5) The transmission will be able to be done in colors, grey scale or black and white ("HF fax" type).

Audio Compression Technology for Voice Transmission

Department of Computer Science and Engineering Question Bank- Even Semester:

Advanced Data Structures and Algorithms

[2 credit course- 3 hours per week]

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Getting Images of the World

1. Convert the decimal number to binary, octal, and hexadecimal.

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF ELECTRONICS AND ELECTRICAL ENGINEERING DEPARTMENT OF ECE COURSE PLAN

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

Jumpstarters for Math

MULTIMEDIA TECHNOLOGIES

ECE 301 Digital Electronics

EMBEDDED ZEROTREE WAVELET CODING WITH JOINT HUFFMAN AND ARITHMETIC CODING

Nirma University Institute of Technology. Electronics and Communication Engineering Department. Course Policy

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Video 1 Video October 16, 2001

NEW JERSEY DIVISION OF REVENUE Plain Paper Specifications for the NJ-W-3 Duplexed Version 10/1/2004

Digital Circuits ECS 371

Combinational Logic Design

GG450 4/12/2010. Today s material comes from p in the text book. Please read and understand all of this material!

Beethoven, Bach, and Billions of Bytes

Semester III. Subject Name: Digital Electronics. Subject Code: 09CT0301. Diploma Branches in which this subject is offered: Computer Engineering

A Big Umbrella. Content Creation: produce the media, compress it to a format that is portable/ deliverable

The Nexys 4 Number Cruncher. Electrical and Computer Engineering Department

!"#"$%& Some slides taken shamelessly from Prof. Yao Wang s lecture slides

ECE3296 Digital Image and Video Processing Lab experiment 2 Digital Video Processing using MATLAB

4.S-[F] SU-02 June All Syllabus Science Faculty B.Sc. II Yr. Instrumentation Practice [Sem.III & IV] S.Lot

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

So far. Chapter 4 Color spaces Chapter 3 image representations. Bitmap grayscale. 1/21/09 CSE 40373/60373: Multimedia Systems

Department of Electrical & Electronic Engineering Imperial College of Science, Technology and Medicine. Project: Real-Time Speech Enhancement

Digital Representation

Ch. 1: Audio/Image/Video Fundamentals Multimedia Systems. School of Electrical Engineering and Computer Science Oregon State University

W.E.F. SESSION Course: Bachelor of Science (B.Sc.) Subject: Electronics Title of Paper Max. Marks Exam Duration Semester-V

CprE 281: Digital Logic

Digital Logic Design ENEE x. Lecture 24

Video Compression. Representations. Multimedia Systems and Applications. Analog Video Representations. Digitizing. Digital Video Block Structure

Snapshot. Sanjay Jhaveri Mike Huhs Final Project

Understanding IP Video for

for File Format for Digital Moving- Picture Exchange (DPX)

Music Representations

EECS 270 Group Homework 4 Due Friday. June half credit if turned in by June

ECE251 Intro to Microprocessors Final Exam December 14, 2015, 2 p.m.

Music Representations. Beethoven, Bach, and Billions of Bytes. Music. Research Goals. Piano Roll Representation. Player Piano (1900)

The ISBN number is a 10-digit number consisting of 4 groups, each separated by a hyphen:

General Certificate of Education Advanced Subsidiary Examination June Problem Solving, Programming, Data Representation and Practical Exercise

CprE 281: Digital Logic

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

MODULE 3. Combinational & Sequential logic

2011 Computing Studies. Standard Grade Credit. Finalised Marking Instructions

4 Anatomy of a digital camcorder

Exercise 1-2. Digital Trunk Interface EXERCISE OBJECTIVE

CSE221- Logic Design, Spring 2003

RECOMMENDATION ITU-R BT (Questions ITU-R 25/11, ITU-R 60/11 and ITU-R 61/11)

Lab 5 Linear Predictive Coding

Transcription:

CSE 111 Fall 2010 September 20 24 ANNOUNCEMENTS Lab 2 Part 1 assigned for lab sessions this week Turn it in via UBLearns Lab 2 Part 2 next week Exam 1 Monday, October 4 th in lecture 1

STORING IMAGE INFORMATION Images are made up of pixels. The dimensions of an image are also given in pixels. 2

STORING INFORMATION ABOUT IMAGE Strictly Black and White Images Store a 0 for no black or a 1 for black in an image Grayscale images Store information about how much black is in an image Color images Store three values Amount of red Amount of green Amount of blue QUESTION If we use 1 byte for each red, green, and blue value, and the size of the image is 1024x768 pixels, how many bits does it take to store the information about the picture? 1 byte = 8 bits Each pixel needs 8 bits x 3 values = 24 bits Picture is 1024 x 768 pixels = 768432 total bits 768432 x 24 = 18874368 bits 3

QUESTION (CONTINUED) 18874368 bits is how many bytes? 18874368 / 8 = 2359296 bytes How many kilobytes? 2359296 / 1024 = 2304 kilobytes How many megabytes? 2304 / 1024 = 2.25 megabytes SENDING IMAGE INFORMATION 4

PROBLEMS WITH ENCODING IMAGES Size They take up a lot of bits Scaling Zooming in on a part of the images causes it to distort ALTERNATIVE METHOD Store information about the lines and shapes inside the image instead about the values of the actual pixels. This is how True Type fonts work. Small version small Small version not so small 5

SOUND REPRESENTATION Major challenge about encoding sound SOUND ENCODING Sound is encoded by sampling the sound amplitudes and encoding the amplitudes. Long ago (telephone technology NOT cell phone technology) 8000 samples per second Music needs more 44,100 samples per second 16 bits per sample (32 if you want stereo) 6

QUESTION How many bits to store 1 second of sound? 44,100 x 16 = 675600 bits(mono) 1351200 (stereo) One minute of sound? 1351200 x 60 = 1351200860 bits Three minutes of sound? 1351200860 x 3 = 4053602580 bits = 506700322.5 bytes = 494824.53 KB = 483.22 MB = 0.47 GB SOUND ENCODING MIDI (Musical Instrument Digital Interface) Records the note that is played and the duration the note is played for. Example: Guitar plays the note C for 3 seconds Uses 4 bytes of storage for that information Sort of an electronic encoding of sheet music 7

COMPRESSION First decision: Are you willing to lose information? IMAGE COMPRESSION JPEG is a lossy compression 8

HOW CAN IT BE OKAY TO LOSE INFORMATION? JPEG relies on the human eye s limitations in regards to sight Human eye is not nearly as sensitive as a computer Example (from a website) 000000 is the encoding for the color black 000001 is a different color JPEG COMPRESSION Step 1: Average the chrominance in the picture in 2x2 squares What is the reduction in size? 9

JPEG COMPRESSION Step 2: Divide image into 8x8 pixel blocks. These blocks are analyzed and information is stored about how the pixels relate to each other, not actual color information. EXAMPLE 10

ANOTHER EXAMPLE JPEG COMPRESSION Step 3: Use Run-length encoding Variable-length encoding Relative encoding Total compression of at least a factor of 10, sometimes as much as 30 11

OTHER COMPRESSION TECHNIQUES Run-length encoding VARIABLE LENGTH ENCODING 12

VARIABLE LENGTH ENCODING Example text: How did we get here? VARIABLE LENGTH ENCODING Encodings d - 000 e - 110 g - 0100 h - 0101 H - 0110 i - 0111 o - 1000 r - 1001 t - 1010 w - 001? - 1011 space - 111 13

VARIABLE LENGTH ENCODING For you later: How many bits does it take to encode the message with the encodings I ve given on the previous slide? What does the encoded message look like? RELATIVE ENCODING 14

COMPRESSING MOVIES Movies/videos are shot in frames 24, 25, 50, 60, 120 frames per second From frame to frame in a film, how much does the image change? When we want to compress movies, we store the entirety of certain frames, and then store the changes between the completely stored frames. 1 frame completely stored for every 15 not completely stored COMPRESSING SOUND Takes advantage of the limitations of the human ear to hear certain sounds along with the other compression techniques we have discussed previously. 15

BASE 8 NUMBERS Called octal numbers (remember we had binary and decimal numbers already) Octal numbers use the digits 0,1,2,3,4,5,6,7 to form numbers CONVERTING FROM OCTAL TO DECIMAL Base 8 number: 45 16

CONVERTING FROM DECIMAL TO OCTAL Decimal number: 62 CONVERT FROM BASE 8 TO BASE 2 First, convert from Base 8 to Base 10 Then, convert from Base 10 to Base 2 17

BASE 16 NUMBERS Called hexadecimal numbers Hexadecimal numbers use the digits 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F to form numbers CONVERTING FROM HEXIDECIMAL TO DECIMAL Base 16 number EC 18

CONVERTING FROM DECIMAL TO HEXIDECIMAL Base 10 number: 135 EXTRA PROBLEMS The following are octal numbers, convert them to decimal numbers: 345 4678 23 777 The following are hexidecimal numbers, convert them to decimal numbers: A34 56FF EDEC C5 19

EXTRA PROBLEMS The following are decimal numbers, convert them to octal numbers and hexidecimal numbers. 1254 347 24 6739 ERROR CORRECTION Data transfers are not always perfect. Can we build into our encodings a way to tell if there was an error while the information was being transferred? 20

PARITY BITS If we add a parity bit to our encoding, we can use it to help us check for errors. HAMMING DISTANCE See description in text 21

ISBN NUMBERS 10-digit version 1 1 1 1 1 1 1 1 1 1 Group (Language sharing country group) publisher title Check bit (Checks to see if the number is a valid ISBN) ISBN NUMBERS 13-digit version 1 1 1 1 1 1 1 1 1 1 1 1 1 EAN number (indicates industry) Group (Language sharing country group) publisher title Check bit (Checks to see if the number is a valid ISBN) 22

HOW DOES THE CHECKING WORK? ISBN-10 x 10 = (1x 1 +2x 2 +3x 3 +4x 4 +5x 5 +6x 6 +7x 7 +8x 8 +9x 9 ) mod 11 WHAT IS MOD? The operation mod returns the remainder from the division. For example, if you ask for 7 mod 3, you would divide 3 into 7 and the answer is the remainder from the division (1 in this case). 23

HOW DOES THE CHECKING WORK? ISBN-10 x 10 = (1x 1 +2x 2 +3x 3 +4x 4 +5x 5 +6x 6 +7x 7 +8x 8 +9x 9 ) mod 11 Example: 0-321-52403-9 ISBN-13 CHECK DIGIT Take each digit left to right and alternate multiplying by 1 & 3. Sum the products and then do mod 10 on that sum. Subtract that answer from 10 and that is the check digit. 24

ISBN-13 CHECK DIGIT Example: 978-0-321-52403-4 ARITHMETIC WITH BINARY NUMBERS Addition First we need to remember 4 basic facts 0 0 1 1 +0 +1 +0 +1 0 1 1 10 25

BINARY ADDITION 101101 + 11001 SUBTRACTION 26