Representing Graphical Data

Similar documents
Graphics in IT82. Representing Graphical Data. Graphics in IT82. Lectures Overview. Representing Graphical Data. Logical / Physical Representation

Representing Graphical Data

Computer Graphics Fundamentals. Jon Macey

ITNP80: Course Organization

1.6 Graphics Packages

Lecture Week 4. Images

255, 255, 0 0, 255, 255 XHTML:

M4-R4: INTRODUCTION TO MULTIMEDIA (JAN 2019) DURATION: 03 Hrs

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION BGDA (UG SDE) IV SEMESTER. CORE COURSE Modeling & Animation QUESTION BANK

MODELING AND ANIMATION

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 5 September 13, 2012

Electronic Artwork Information for Authors Glossary and definitions

IT82: Mul timedia. Practical Graphics Issues 20th Feb Overview. Anti-aliasing. Fonts. What is it How to do it? History Anatomy of a Font

Standard File Formats

Output models Drawing Rasterization Color models

Introduction to Computer Graphics

Flying Start AS Computer Science. September 2015

Graphics File Formats

03 Vector Graphics. Multimedia Systems. 2D and 3D Graphics, Transformations

Industrial Technology

Welcome to Desktop Publishing with InDesign!

Lecturer Athanasios Nikolaidis

Adobe Illustrator CS Design Professional GETTING STARTED WITH ILLUSTRATOR

Animation & Rendering

History. Early viewers

Logo & Icon. Fit Together Logo (color) Transome Logo (black and white) Quick Reference Print Specifications

Computer Graphics. Chapter 1 (Related to Introduction to Computer Graphics Using Java 2D and 3D)

Data Representation From 0s and 1s to images CPSC 101

G64PMM - Lecture 3.2. Analogue vs Digital. Analogue Media. Graphics & Still Image Representation

Final Study Guide Arts & Communications

III-6Exporting Graphics (Windows)

About Computer Graphics

Learning Microsoft Word By Greg Bowden. Chapter 10. Drawing Tools. Guided Computer Tutorials

Computer Graphics. Apurva A. Desai

Creating and Editing Images in Paint Shop Pro Version XI. File Types

INFOGR Computer Graphics

Binghamton University. EngiNet. Thomas J. Watson. School of Engineering and Applied Science. State University of New York. EngiNet WARNING CS 560

Prentice Hall. Learning Microsoft PowerPoint , (Weixel et al.) Arkansas Multimedia Applications I - Curriculum Content Frameworks

Sir Sadiq s computer notes for class IX. Chapter no 3. Input/Output Devices

Image creation with PHP

FrontPage. Directions & Reference

Preview from Notesale.co.uk Page 2 of 88

ARTWORK REQUIREMENTS Artwork Submission

Introduction To Inkscape Creating Custom Graphics For Websites, Displays & Lessons

Compression and File Formats

Part 1: Basics. Page Sorter:

ENVIRONMENTALLY RESPONSIBLE PRINTING ARTWORK GUIDE BOOK ALL YOU NEED TO KNOW ABOUT CREATING ARTWORK FOR PRINT TOGETHER.

COMPUTER GRAPHICS, MULTIMEDIA AND ANIMATION, Second Edition (with CD-ROM) Malay K. Pakhira

Prentice Hall. Learning Media Design with Adobe CS4 (Skintik) Alabama - Course of Study - Interactive Multimedia Design

11/5/16 WEB DESIGN. Branding Fall 2016

HOW TO SAVE YOUR DESIGN FILES

Computer Graphics and Visualization. What is computer graphics?

Computer Graphics 1 Instructor Information. Books. Graphics? Course Goals and Outcomes. Where are computer graphics? Where are computer graphics?

Drawing Fast The Graphics Pipeline

Adding Objects Creating Shapes Adding. Text Printing and Exporting Getting Started Creating a. Creating Shapes Adding Text Printing and Exporting

Adobe Photoshop Sh S.K. Sublania and Sh. Naresh Chand

Unit Title: Digital Graphics for Interactive Media

Multimedia Systems. Part 4. Mahdi Vasighi

Advanced High Graphics

Books: 1) Computer Graphics, Principles & Practice, Second Edition in C JamesD. Foley, Andriesvan Dam, StevenK. Feiner, John F.

Image Types Vector vs. Raster

Bitmap and Vector Graphics (Introduction to Painting and Drawing applications)

MMGD0206 Computer Graphics. Chapter 1 Development of Computer Graphics : History

Introduction to Flash - Creating a Motion Tween

Discrete Techniques. 11 th Week, Define a buffer by its spatial resolution (n m) and its depth (or precision) k, the number of

Drawing Fast The Graphics Pipeline

How to...create a Video VBOX Gauge in Inkscape. So you want to create your own gauge? How about a transparent background for those text elements?

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Fig. A. Fig. B. Fig. 1. Fig. 2. Fig. 3 Fig. 4

Input and output Systems. Peter Rounce - room G06

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) Miscellaneous Notes

Adobe Illustrator CS4

Vector- drawn: what is the meaning of " on the fly " in vector images? It means that computers draw the image as per instructions.

Adobe Graphics Software

Frequently Asked Questions about Text and Graphics

Industrial Marking and Labeling, Inc. with all fonts converted to outlines or

How to supply your artwork to us in a print ready format

Corel Draw 11. What is Vector Graphics?

APPLYING YOUR TESTING SKILLS

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY

ROTOSCOPING AND MATTE PAINTING In Blender v2.48a

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) CS 200 Winter Geometric Graphics

CS 200. Lecture 04. Geometric Graphics. (aka Vector Graphics) Miscellaneous Notes

DIS: Design and imaging software

In this lesson you are going to create a drawing program similar to Windows Paint. 1. Start with a new project and remove the default cat sprite.

Section 5. Pictures. By the end of this Section you should be able to:

Essential Graphics/Design Concepts for Non-Designers

42 X : ] [ : 100 : ] III IV. [ Turn over

42 X : ] [ : 100 : ] III IV. [ Turn over

Adobe Photoshop CS2 Reference Guide For Windows

KINGS GRAPHICS AND MULTIMEDIA DEPARTMENT OF COMPUTER SCIENCE AND ENGG. OUTPUT PRIMITIVES Part-A (2-MARKS)

Programming Fundamentals

Understanding File Management

Comics with Illustrator

How to draw and create shapes

Inspire Ten Minute Task #1

Modeler General Options

CISC 110 Week 1. An Introduction to Computer Graphics and Scripting

Drawing Fast The Graphics Pipeline

critical theory Computer Science

Transcription:

Representing Graphical Data Chapman & Chapman, chapters 3,4,5 Richardson 1 Graphics in IT82 What does computer graphics cover? IT82 Input, output, and representation of graphical data Creation of graphics two-dimensional (flat) images three-dimensional scenes, with the modelling of objects in virtual worlds Manipulation of existing data Graphics programming, with (e.g.) OpenGL increasingly, Java traditional computer graphics courses 2 1

Graphics in IT82 We take a practically-oriented look at graphics Richardson s Practical Computer Graphics is one of the few books which takes this approach The aim is not to make you a graphic designer, but instead: To give you an understanding of issues concerning graphics input/output and representation To equip you for practical situations where you might need to use graphics, e.g. MultiMedia web pages of holiday snapshots, icon designs, lecture presentations, suitable graphics file formats to use 3 Lectures Overview This week: Basic principles of representing graphical data Practical graphics issues (e.g. fonts) Next week / later: Representing colour Input/Output: Scanners, Cameras and Printers Basic principles of representing animation Compression of graphical data; storage in appropriate file formats Overview of Java and Graphics 4 2

Representing Graphical Data Logical and Physical Representation Use of colour: Pixels Colours Transparency Palettes Types of representation: Bitmaps Vector data Other ways 5 Logical / Physical Representation A warning to bear in mind: Physical representation of graphical data is how it actually appears on devices A virtual/logical representation of graphical data may be in a graphics file, or internally in a program These are often not the same! The differences vary from slight to very large Converting from a virtual representation to an actual display on a device is called rendering. 6 3

Pixels All of computer graphics is based on properties of screen or display device Displays are divided into lots of small dots called pixels (PICture ELements) Pixel is smallest logical unit of display on the screen Can be monochrome (black and one colour) or coloured 3 x 3 array of coloured pixels Arranged (logically!) in a 2D grid 7 Pixels Physical display is different! Not necessarily a perfect 2D grid: 8 4

Colours of Pixels Black/white pixels are represented using bits Colours are specified (or get converted to) using RGB values in some way (- see Lectures on Colour later) A typical format is using 24 bits format (R,G,B) takes up 1 byte for each colour A common feature these days is to also have an alpha channel, used for transparency. e.g. in Java 2, (R,G,B,α) takes up 4 bytes see Chapman & Chapman pg 135 9 Transparency 10 5

Colour Terminology Lots of confusion: Black and white not good terminology to use Black and white photographs are not just black/white, but really greyscale Greyscale refers to shades of grey, ie where the RGB values are all the same Monochrome refers not to one colour, but historically to one colour with black, so monochrome really means two colours, usually black and white Monochromatic in colour blindness refers to greyscale! 11 Palettes A palette is a mapping from a small set of numbers, to specifically chosen colours from a wide range (2 24 typically) Indexed images use palettes Used in various file formats, monitor displays Example (web-safe palette, reproduced by all webbrowsers on any system using 8-bit colour)): Chapman & Chapman, pgs 161-165 12 6

One way to represent image data Bitmapped formats: image is modelled by an array of pixel values Bitmap data is (logically) a 2D array of pixels A bitmap gives the colours of the picture, pixel-by-pixel (bit-by-bit), in this example: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 1 1 1 0 0 1 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (each pixel is represented by one bit (on or off) 13 Bitmaps Bitmaps were also known (in ye olden days) as a raster (the term is still in use in some circumstances, as it defines a set of dots (pixels) arranged in parallel lines) When there used to be just monochrome monitors, bitmaps did indeed have bits in them! When colours were introduced, the term pixelmap was used for coloured images. Nowadays, bitmaps can refer to 2D arrays of bits or colours. Logically, bitmaps are 2D arrays, although in fact they may be stored by other means Java 2 uses a 1D int array 14 7

Graphical Data Representation Bitmaps have a fixed resolution (amount of detail in an image) There are other ways of representing image data which do not: Some are general purpose Some are program-specific Some are application-specific In many state-of-the-art graphics programs, images are represented internally in an application-specific way, then exported to bitmap formats. Richardson, Section 1.4 15 Another way to represent image data Vector-based formats contain descriptions of one or more objects, rather than pixels Uses a draw-then-edit method of image creation Often the objects are mathematically based eg line segments, polygons, circles, splines 16 8

Vector formats are well suited to representing 2-D images such as pencil drawings, graphs and architectural or engineering drawings 17 Bitmaps vs Vector Files Bitmap files are fixed resolution Vector files can be displayed at whatever level of detail is preferred 18 9

Editing a vector file Bitmaps vs Vector Files and in a bitmap? 19 Bitmaps vs Vector Files Further vector advantages: Good for storing images composed of line-based or 3D objects (e.g. wire-frame models) Easy to convert to bitmap format Vector file disadvantages: Not good for storing complex images (such as photographs) Appearance of image can vary widely, depending upon the application Rendering of the image may take significantly longer than for bitmaps 20 10

From Vectors to Bitmaps... Historically, vector data was used a lot. Pen plotters used pens to draw on paper (an early form of graphics printer) These were cheap and produced line-based drawings. Storage of high-volume bitmap files was expensive! With the advent of cheap storage, and high-resolution output, now most images are bitmap-based. Bitmaps are everywhere! Just look at the WWW, with GIFs, JPEGs everywhere! 21 and Back Again Trends are shifting towards a greater use of vector data - the bitmap trend may not last! Memory size is again an issue Big bitmaps take longer to transport over the internet Vector-based formats are better for 3D imaging, and 3D imaging is growing more important (fuelled by such concerns as the entertainment industry) 22 11

Other Graphics Representations Hybrid formats e.g. Metafile formats Fractal compression techniques Animation formats Special purpose 3D formats 23 Metafile Formats A metafile can store both vector and bitmap data A bitmap is typically regarded as one type of vector object Typically most elements in the file are vectors, with the occasional bitmap e.g. a bitmap stored as a fill pattern for a shape Richardson, Section 6.9 24 12

Fractal Image Compression A recent development in image representation An image is represented by a mathematical formula To produce a display of the image on a device, the formula is repeatedly applied to a (maybe) blank seed image of the required size A resolution-independent way of storing images Although the word compression is used, really this is just another way of representing an image (encoding/decoding would be better terminology) It is compression because the formula takes up less space than a bitmap would. 25 Example: Sierpinski Triangle 26 13

Transformation 27 Producing the Sierpinski Triangle from any initial image 28 14

Use of Fractal Image Compression Typically an image would be originally in bitmap form, before this technique is applied. The resulting image then has an optimal resolution close to that of the original image. Magnification still looks nicer (softer, not pixellated) with a fractally-compressed image. Sometimes representing an image in this way can be used for image enhancement. 29 Magnification Example Original bitmap x2 Fractal version x2 30 15

Fractal Compression Pictures that are very self-similar compress well using this method Examples: Sierpinski triangle very self-similar Photograph with leaves in foreground and background would have a lot of self-similarity Most pictures (photographs or diagrams) that humans use have a lot of self-similarity Finding an example not suitable for fractal representation is difficult. Fractal compression/encoding can take time but decompression/decoding process is very fast, hence also used for archived images in a CD-Rom encyclopaedia Chapman & Chapman, pgs 109-110 31 End of Lecture Next lecture is on Practical Graphics Issues particularly to do with fonts 32 16