Introduction To Computer Science

Slides:



Advertisements
Similar presentations
3.01C Multimedia Elements and Guidelines 3.01 Explore multimedia systems, elements and presentations.
Advertisements

Introduction to Computer Graphics Raster Vs. Vector COMMUNICATION TECHNOLOGY.
Multimedia Mr. Sanchez.
Information Representation
1 Chapter 2 The Digital World. 2 Digital Data Representation.
WMES3103 : INFORMATION RETRIEVAL
Image Representation CS105. Data Representation Text representation – ASCII character set – Unicode – Data compression Images!
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
IT-Academic Technology Services Using Microsoft PowerPoint 2010 for Digital Storytelling.
Components Text Text--Processing Software A Word Processor is a software application that provides the user with the tools to create and edit text.
Image and Sound Editing Raed S. Rasheed Image Image. Digital image. – Raster images. – Vector Images. – Stereo Images. – Image File Formats Lossless.
Skill Area 212 Introduction to Multimedia Internet and MultiMedia for SC 2.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Graphics and Multimedia Foundation Computing The beatings will continue until morale improves.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Photoshop Software Rasterized, file formats, and printing choices.
Chapter 2 Computer Hardware
7/11/20081 Today’s Agenda Friday 6 th Nov Revision of certain topics Floating point notation Excess Notation Exam format Interim Report.
1 1 Introduction to Computer Science بسم الله الرحمن الرحيم MULTIMEDIA LEVEL -9 King Khalid University Kingdom of Saudi Arabia Ministry of Higher Education.
Multimedia Elements II Graphics, Digital Video. UIT - Multimedia Production2 Multimedia Elements Multimedia elements include: Text Graphics Animation.
GIF - Graphics Interchange Format JPEG - Joint Photographic Experts Group PNG - Portable Network Graphics GIF images are limited to the 8 bit palette which.
Introduction to Interactive Media Interactive Media Components: Text.
CS- 375 Graphics and Human Computer Interaction Lecture 1: 12/4/1435 Fundamental Techniques in Graphics Lecturer: Kawther Abas.
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
Photoshop Photoshop works with bitmapped, digitized images (that is, continuous-tone images that have been converted into a series of small squares, or.
File Format. Graphics file Format GIF (Graphics Interchange Format) JPEG (Joint Photographic Experts Group) PNG (Portable Network Graphics) TIFF (Tag.
2D Graphics Theory & Principles. Single Point Smallest addressable area on screen or digital image.
Chapter 2 File Format Objectives (1 of 2) Identify the difference between vector based graphics and bitmap-based graphics Clarify bitmap and vector graphic.
File Format. Graphic file Format GIF –cross-platform compatibility –developed by CompuServe as a common format for exchanging bitmapped images between.
Unit 1: Task 1 By Abbie Llewellyn. Vector Graphic Software (Corel Draw) Computer graphics can be classified into two different categories: raster graphics.
Quiz # 1 Chapters 1,2, & 3.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Representing and Storing Graphics EXTENSION.
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
CSCI-100 Introduction to Computing Hardware Part II.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
MULTIMEDIA Multimedia is the field concerned with the computer- controlled integration of text, graphics, drawings, still and moving images (Video), animation,
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Chapter 1 Definitions & Basics of Digital Image 1.Image 2.Digital Image 3.Raster 4. Vector 5.Image Editing 1.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Part A Multimedia Production
Bitmap vs. Vector How computers work with photographs and drawings.
National 4 and National 5 Computer Science. National 4 Computing Science 2 units: Software Design and Development Information System Design and Development.
Chapter 1: Data Storage.
Computer Science: An Overview Eleventh Edition
DIGITAL MEDIA FOUNDATIONS
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Binary Notation and Intro to Computer Graphics
Level 3 Extended Diploma Unit 19 Computer Systems Architecture
Binary Representation in Audio and Images
Introduction To Photo Editing SHIELA MAE A. AQUINO SRNHS.
Bitmap vs. Vector.
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
3.01C Multimedia Fair Uses Guidelines and Elements
Web Design and Development
Ch2: Data Representation
3.01C Multimedia Elements and Guidelines
3.01C Multimedia Fair Uses Guidelines and Elements
Chapter 2 Data Representation.
Final Study Guide Arts & Communications.
3.01C Multimedia Fair Uses Guidelines and Elements
Multimedia System Image
3.01C Multimedia Elements and Guidelines
3.01C Multimedia Fair Uses Guidelines and Elements
Presentation transcript:

Introduction To Computer Science CS500 Introduction To Computer Science Lecture 4

Data Representation In Modern Computer

Text Representation Data stored in the digital computer can also be in the form of letters, symbols, special characters, not only numbers. An alphanumeric character set, is a set of elements that include the 10 decimal digits (0-9), 26 letters of uppercase alphabet, 26 letters of the lowercase alphabet and 32 special characters and symbols (%. $, #,…). The alphanumeric codes are binary codes that are assigned to characters of the alphanumeric character set. The standard and the most popular alphanumeric codes are ASCII (American Standard Code For Information Interchange) codes.

Text Representation (2) Originally, the ASCII coding uses 7-bits to code 128 (i.e. 27 ) characters as follows: 94 Graphic characters and 34 non-printing characters (i.e. control characters). The 94 graphics characters are the alphanumeric characters set. The 34 non-printing characters are of 3 types: Format effectors: backspace (BS), newline (NL),… Information separator: record separator (RS), file separator (FS). Communication control: used in data transmission such as start of text (SXT), end of text (EXT),… The extended ASCII codes uses 8-bits to code 256 (i.e. 28 ) characters for handling additional symbols and special characters.

Text Representation (3) Extended ASCII Codes Table:

Text Representation (4) Example: Other alphanumeric codes: Extended Binary Coded Decimal Interchange Code (EBCDIC): uses 8-bits Universal Code (UNICODE): uses 16-bits International Standard Organization Code (ISO Code): uses 32-bits

Image Representation There are two representation methods of an image in the digital computer : Bitmap (Raster) Method For storing an image, it’s represented as a collection of dots (pixels). Such pixels are arranged in rows and columns over the image.

Image Representation (2) In the case of a simple black and white image, each pixel can be represented by a single bit whose value depends on whether the corresponding pixel is black or white.

Image Representation (3) In the case of a gray-level (grey-scale) image, each pixel can be represented by a single byte to allow a variety of shades of grayness to be represented.

Image Representation (4) In the case of a true-color image, each pixel can be represented by three color component - a red component (R), a green component (G), and a blue component (B)- corresponding to the three primary colors of light. One byte is normally used to represent the intensity of each color component. In turn, three bytes of storage are required to represent a single pixel in the original image.

Image Representation (5) An advantage of raster images is their rich colors details. E.g., a 1” x 1” square image at 300 dpi (dots per inch) have 90000 individual pixels of colors information. Another advantage is that a raster image can be edited precisely such that its pixels can be modified, one by one. Popular Raster Image Formats: BMP (Bitmap Image File). TIFF (Tag Image Format File). GIF (Graphic Interchange Format). PNG (Portable Network Graphics). JPG /JPEG (Joint Photographic Experts Groups). PSD (Photoshop Document).

Image Representation (6) A disadvantage of raster images is that they cannot be rescaled (resized) easily to any arbitrary size. Essentially, the only way to enlarge the image is to make the pixels bigger, which leads to a grainy (blurred) appearance. Another disadvantage is their large file sizes, that is if a 1” x 1” square image at 300 dpi have 90000 individual pixels of color information for the computer to remember? So the same 18” x 24” image needs 38880000 pixels information for a computer to process which can quickly slow down even the faster machine.

Image Representation (7) Vector Method For storing an image, the math is used to draw shapes using points, lines and curves. The most common types of vector images are fonts and logos

Image Representation (8) Advantages of Vector Images: Infinitely Scalable: They can be scaled up or down using the math equations as much as you want without losing any image quality. Smaller File Size: Using our previous 1” x 1” square image example, a vector image needs only four points of data to recreate a square versus 90000 individual pixels for a raster image

Image Representation (9) Disadvantages of Vector Images: Limited Details: They aren’t practical for complex images that require exact coloring because you’ll never be able to match the color detail available in a raster image where each individual pixel can be its own individual shade. Limited Effects: They can’t handle certain styling effects, like blurring or a drop shadow, that are available with raster images

Image Representation (10) Popular Vector Image Formats: SVG (Scalable Vector Graphics). WMF (Windows Metafile). EPS (Encapsulated PostScript). CGM (Computer Graphics Metafile). DXF (AutoCAD Drawing Exchange Format). CDR (Corel Draw Vector Drawing). AI (Adobe Illustrator). PDF (Adobe Portable Document Format).

Image Representation (11) Which is one of the following is a raster image and the other is a vector image? RASTER VECTOR

Image Representation (12)

Audio Representation Audio is stored in the computer by sampling the amplitude of the sound wave at regular intervals and record the series of values obtained. To obtain the quality sound reproduction obtained by today’s musical CDs, a sample rate of 44100 samples per second is used. The data obtained from each sample are represented in 16 bits (32 bits for stereo recordings). Consequently, each second of music recorded in stereo requires more than a million bits.

Audio Representation (2) An alternative encoding system known as Musical Instrument Digital Interface (MIDI) is widely used in the music synthesizers found in electronic keyboards, for video game sound, and for sound effects accompanying Web sites. By encoding directions for producing music on a synthesizer rather than encoding the sound itself MIDI avoids the large storage requirements of the sampling technique. More precisely, MIDI encodes what instrument is to play which note for what duration of time. Popular Audio Formats: MIDI (Musical Instrument Digital Interface). MP3 (Moving Picture Experts Group Layer-3 Audio). RAM (Real Audio Metadata). WMA (Windows Media Audio). WAV (Waveform Audio File).

Video Representation Videos can be encoded as series of image frames with synchronized audio tracks also encoded using bits. Suppose you have a 10 minute video, 256x256 pixels, 24 bits per pixel, and 30 frames of the video per second. Then the file size is 256 × 256 × 24 × 10 × 60 seconds/minute × 30 = approximately 28 Gigabit = 28 / 8 bit = 3.5 Gigabyte !!! Suppose you have a 500 kilobit per second download connection, then this will take 28/500 = about 56,000 seconds (over 15 hours)!!! So video file size can be an issue and there are ways to decrease the file size and hence its transmission time by compression techniques, e.g., taking advantage of the fact that a scene in one frame is usually quite similar to the scene in the next frame.

Video Representation (2) Popular Video Formats: MPEG (Motion Picture Experts Group) . WMV (Windows Media Video). 3GP (Third Generation Platform) AVI (Audio Video Interleave) FLV (Flash Video Format) MOV (Apple QuickTime Movie) AVCHD (Advanced Video Coding High Definition)

Internal Main Memory Organization The internal main memory (RAM) of digital computers consists of a large number of “memory cells” where each memory cell is called a “word”. With this memory organization, each memory cell is addressed, accessible and modified individually. A “word” or a cell in memory is an entity of bits (group of 1’s and 0’s) that can be moved in and out of the memory as a unit. The size of a memory word is multiples of 8-bits in length: 8-bits (i.e.,1 byte), 16-bits (i.e., 2 bytes) , or 32-bits (i.e., 4 bytes), and so on .

Internal Main Memory Organization (2) The capacity of the main memory is simply the total number of bytes that it can store.

Internal Main Memory Organization (3) The units that are usually used for measuring memory capacities:

Internal Main Memory Organization (4)

Internal Main Memory Addressing The CPU can access each memory cell (word) by a unique address. Example 1: Go to memory cell 1000 (Absolute Address) Go to memory cell next to memory cell 1000 by 6 cells (Relative Address) A CPU with n-address line (the width of the address bus of a CPU is n bits) can access memory cells up to 2n cells. In this case , the address range from 0 to 2n-1, so the first cell address is 0….000000000 and the last cell address is 1….11111111. The CPU can access all memory cells equivalently without any differences in accessibility between “low address” and “high address” cells. Therefore, main memory is usually termed RAM (i.e., Random Access Memory) , which means that all memory cells are accessible just by address.

Internal Main Memory Addressing (2) Example 2: What is the total memory capacity that can be addressed using a CPU with 16-address line? Solution: The total memory capacity = 216= 26 × 210= 64 Kilo word (KW). If each word = 1 byte, then the total memory capacity = 64 KB. The address of the first memory cell = 0000 0000 0000 0000.The address of the last memory cell = 1111 1111 1111 1111. In other words , using hexadecimal notation, the address range is: 0000 to FFFF. Example 3: what is the total number of address lines needed by a CPU to address memory of capacity of 64 MB? Solution: The total memory capacity = 26 × 220 = 226 B. If each word (cell) = 1 byte, then the total memory capacity = 226word (cell) , thus the number of address lines is 26.