Binary Notation and Intro to Computer Graphics

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
1 Chapter 2 The Digital World. 2 Digital Data Representation.
Bits are Not just for Numbers Computers store characters as bits or binary digits. Characters from the English-language keyboard are represented in ASCII.
Vector vs. Bitmap SciVis V
V Obtained from a summer workshop in Guildford County July, 2014
Graphics: Creating Images Chapter 8, Exploring the Digital Domain.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - GRAPHICS. In this chapter how the computer creates, stores, and displays graphic images how the computer creates,
Digital Images The digital representation of visual information.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Computing Higher - Unit 1… Computer Systems 1 Higher Computing Unit 1 – Topic 1 Data Representation.
© GCSE Computing Candidates should be able to:  explain the representation of an image as a series of pixels represented in binary  explain the need.
Vector vs. Bitmap
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 1. Data Representation Data Representation – Why do we use binary? simplicity,
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
The Beauty and Joy of Computing Lecture #3 : Creativity & Abstraction UC Berkeley EECS Lecturer Gerald Friedland.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
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.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
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.
Guilford County SciVis V104.03
Graphics Basic Concepts 1.  A graphic is an image or visual representation of an object.  A visual representation such as a photo, illustration or diagram.
1 INTRODUCTION TO COMPUTER GRAPHICS. Computer Graphics The computer is an information processing machine. It is a tool for storing, manipulating and correlating.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
Photoshop CS6 – Nelson Unit 3: Photoshop CS6. Objectives Define photo editing software Start Photoshop and view the workspace Use the Zoom tool and the.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
Vector vs. Bitmap. Vector Images Vector images (also called outline images) are images made with lines, text, and shapes. Test type is considered to be.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
AP CSP: Pixelation – B&W/Color Images
Chapter 3 Data Representation
Image and Sound Representation
Images Data Representation.
Graphics and image data representation
Getting Started with Adobe Photoshop CS6
Data Representation Images.
Image Processing Objectives To understand pixel based image processing
Data Representation.
Representing images.
Computer Systems Nat 4/5 Data Representation Lesson 4:
Binary Representation in Audio and Images
Computer Science Higher
Vector vs. Bitmap.
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Information Support and Services
Lecture Week 4 Images.
Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny
U2L4 Encoding Color Images
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Chapter I Digital Imaging Fundamentals
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
Digital Images.
Introduction to Computer Graphics
Computer Graphics Using “Adobe Photoshop”
Representing Images 2.6 – Data Representation.
Ch2: Data Representation
Dr. Jim Rowan ITEC 2110 Chapter 3
Chapter 2 Data Representation.
Dr. Jim Rowan ITEC 2110 Chapter 3
Multimedia System Image
Computer Systems Nat 4.5 Computing Science Data Representation
Option: Data Representation
Lecture 4 - Introduction to Computer Graphics
Option: Data Representation
WJEC GCSE Computer Science
Presentation transcript:

Binary Notation and Intro to Computer Graphics This took 45 minutes even including the demo (I used paint) and quite a number of questions.

The Hex Notation System!

Dealing with Binary Binary numbers in their native notation are not very user friendly Hex notation (short hand for Hexadecimal) is an easier and more intuitive way to express binary values Many programs and programming languages allow the use of Hex to denote binary values

Hex Notation using 4 bit Nibbles Binary Hex 0000 0 0001 1 0010 2 0011 3 0100 4 0101 5 0110 6 0111 7 Binary Hex 1000 8 1001 9 1010 A 1011 B 1100 C 1101 D 1110 E 1111 F

Hex Example…. So the one byte Binary numbers: 0010 0001 = 21 Hex =Decimal 33 2 1 Or 128 + 64 +32+16 +8+4+2+1 1010 0100 = A4 Hex =Decimal 164 Or 128+64+32+16+8+4+2+1

Remember…… DIGITAL - Digital means discrete. Digital representation is comprised of a limited number of data points to encode information. Most of our electronic devices use Digital techniques to work with data and information Since we have a limited number of data points to work with, it means that all digital representations are approximations of the real thing

Representing Digital Samples The values associated with Digital Samples are stored in Binary form, which is a very easy and inexpensive way for electrical machines to store and manipulate values by using simple building block electronic circuits built out of transistors So, you should think of a computer or any digital device as a machine that can store, manipulate and move large amounts of binary information at very high rates of speed

Graphics Buzzwords Pixel- Bitmap- a spatial sample of a digital image. A pixel element is the basic component of a digitized image, which contains a set of numbers representing the features (color, intensity) of that spatial sample (a pixel may only have ONE color and intensity, therefore it is the lowest element of an image) Bitmap- a method of representing and storing digital images and graphics whereby the image is composed of a collection of individual pixels

More Buzz Resolution- The capacity for detail contained in a message or signal. Representations with high resolution capture more detail than those with low resolution In the case of digital images, resolution is primarily determined by : Number of pixels Size of Pixels Density of Pixels

Digital Images and Pictures A picture (as on your computer monitor) consists of many “pixels” (= “picture element”). A pixel is a very small area of uniform color and intensity. Think of your laptop monitor as consisting of about 1,000,000 discrete small squares, or pixels.

Bitmap Graphics To display things on the computer monitor, a modern-day computer has built in hardware (memory) for storing a “bitmap” that represents the “picture” that should be displayed on the monitor. The Bitmap is stored in MEMORY…..the more bits stored, the more memory required….

Graphic images (for display) graphic images are composed of pixels this type of graphic is called bit-mapped or raster graphics the image is stored as a sequence of bits (a) representing the pixel properties (b)

Resolution This is a very low resolution (3 pixels by 4 pixels) picture of the letter “Y”.

A magnified bit map

Levels of Intensity For a black and white (Grayscale) picture we might use, say, 8 bits (one byte) to represent 256 levels of intensity, from 0 (black) to 255 (white) For a color picture we would have 3 bytes, one each for the intensity of red, green, and blue respectively (0,0,0) would still be black, while (255,0,0) would be red, (255,255,255) is white, etc. This is commonly called RGB (Red, Green, Blue) RGB typically uses 3 bytes (24 bits) for each pixel so that equates to 16,777,216 different possible colors

Image Resolution Resolution (Accuracy) is determined by two primary factors, pixel size and number of pixels Higher Resolution renders an image with greater accuracy for any given size Resolution is directly proportional to number of bits available for storage (memory) Color accuracy is also proportional to memory as is brightness and contrast since their values must also be stored for each pixel There is a delicate balance between image size and apparent resolution

Advantages of Bitmap Graphics It is easier to create hardware to go from a bitmap representation to the actual display on the monitor (which is why monitors use bitmaps) It is easier to draw pictures of things with imprecise boundaries, (or that consist of so many parts it would not be feasible to draw them all) Your PC utilizes Bitmap Graphics to display everything that appears on your screen Ability to create multiple layers which can be overlayed to create composites

Original Image

Magnified

Bit Map Demo Photoshop/Paint

Millionaire !

Vector Graphics An alternative scheme for representing images is called “vector graphics” In vector graphics objects are represented explicitly. This picture might be represented as: square at (1,1) height 3, width 2 color red line from (1,2) to (10, 7) width .1 color blue

Vector Graphic Images Object-oriented or vector graphics treat the image as a collection of graphic objects such as lines, curves, and figures Best rendered on special vector graphics machines Vector graphics are resolution independent and highly scalable Vector graphics are more easily edited and often more compact in storage Vector graphic images must often be converted to bitmapped images for display on bitmapped systems such as a PC

Vector Graphics the image is composed of graphic objects (lines, curves, figures, etc.) each object is defined by its graphic properties these properties may be changed and scaled easily

Vector Graphics each object occupies a separate layer layers may be moved, scaled, and arranged in different orders objects may be deleted and inserted easily

Advantages of Vector Graphics Because the program “knows” there is a square, it can do things like rotate the square, enlarge it, paint it a different color, etc. These things are not directly possible in bitmap graphics because there we simply have small bits of color at particular locations. There is no knowledge of what the color “represents.”

Magnified

Vector Graphics Demo SKETCH

Typical Graphic Applications Bit-mapped graphics Vector graphics Painting programs Image processing Text displays Computer Aided Design Illustration 3-D modeling and rendering Animation 3-D Games and Simulations

Graphics Summary Bit map graphics dominate due to their implementation on PCs (low cost) Pure vector systems (hardware and software) used for specialized applications where image quality and accuracy is the most important objective Vector graphics can be simulated on Bit Mapped Systems (such as the demo shown in lecture) Lots of work and fun can be achieved with both

Questions?

t