Appendixes 4. An Introduction to PostScript ® CVG Lab.

Slides:



Advertisements
Similar presentations
There are two types of addressing schemes:
Advertisements

PZ14A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ14A - Text processing Programming Language Design and.
Connecting with Computer Science, 2e
Aalborg Media Lab 21-Jun-15 Software Design Lecture 2 “ Data and Expressions”
1 Photographic Tone Reproduction for Digital Images Brandon Lloyd COMP238 October 2002.
Introduction to Computer Graphics
Vector vs. Bitmap SciVis V
Circle Drawing algo..
V Obtained from a summer workshop in Guildford County July, 2014
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
SWHIG Seminar Ian Kim 1/18/12.  General overview of printing technology ◦ Background information:  Vector vs. raster graphics  How inkjet printers.
CHAPTER 14 Formatting a Workbook Part 1. Learning Objectives Format text, numbers, dates, and time Format cells and ranges CMPTR Chapter 14: Formatting.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Chapter 3 Working with Symbols and Interactivity.
Use a Large Bold Type for the Main Title Use Smaller Type for the Subtitle. Above type is 96 pt, this type is 66 pt Make Authors’ names smaller. This is.
Lecture 4 - Introduction to Computer Graphics
PZ07A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ07A - Expressions Programming Language Design and Implementation.
Creating a PowerPoint Presentation
Getting Started with Canvas IDIA Spring 2013 Bridget M. Blodgett.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Working with Symbols and Interactivity
Computer Science 111 Fundamentals of Programming I Basic Program Elements.
Element. The element Used to dynamically draw graphics using javascript. Capable of drawing paths, circles, rectangles, text, and images.
CSC 3210 Computer Organization and Programming Chapter 1 THE COMPUTER D.M. Rasanjalee Himali.
Overview What is PostScript? Types Language Concepts Control Operators Examples.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
Chapter 2: Color and Applets Coming up: Introduction to Graphics.
Laboratory Exercise # 9 – Inserting Graphics to Documents Office Productivity Tools 1 Laboratory Exercise # 9 Inserting Graphics to Documents Objectives:
Graphics. Graphic is the important media used to show the appearance of integrative media applications. According to DBP dictionary, graphics mean drawing.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
PZ07A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ07A - Expressions Programming Language Design and Implementation.
PZ07A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ07A - Expressions Programming Language Design and Implementation.
Introduction to Computer Graphics Chapter 6 – 2D Viewing Pt 1 1.
Data Representation The storage of Text Numbers Graphics.
Text processing Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section 12.1.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
1 Expressions Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
IS 1014 Introduction to Computer Graphics -- Paul Munro A Postscript Tutorial Book available at: cdf.fnal.gov/offline/PostScript/BLUEBOOK.PDF.
Lesson 6 Formatting Cells and Ranges. Objectives:  Insert and delete cells  Manually format cell contents  Copy cell formatting with the Format Painter.
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.
 Start Microsoft Word from the icon or shortcut for the application. This is usually accessible from the Start Button. Then go to Programs, then Microsoft.
Expressions Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
1 Introduction to PostScript Sep. 21 Dae-Eun Hyun 3D MAP Lab.
Python 1 SIGCS 1 Intro to Python March 7, 2012 Presented by Pamela A Moore & Zenia C Bahorski 1.
Chapter 2: Data and Expressions. Variable Declaration In Java when you declare a variable, you must also declare the type of information it will hold.
Guilford County SciVis V104.03
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
Permeability (% of Control)
Permeability (% of Control)
Data Representation.
Flow Charts Basic Flow Chart Symbols Few sample flowcharts Rules
Pamela Moore & Zenia Bahorski
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Introduction to Computer Graphics
Page description language from Adobe
Ch2: Data Representation
Expressions Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Text processing Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section 12.1.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Expressions Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Histogram The histogram of an image is a plot of the gray _levels values versus the number of pixels at that value. A histogram appears as a graph with.
Use a Large Bold Type for the Main Title (80 pt):
Permeability (% of Control)
Use a Large Bold Type for the Main Title (80 pt):
Use a Large Bold Type for the Main Title (70 pt):
Permeability (% of Control)
Use a Large Bold Type for the Main Title (70 pt):
Expressions Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Presentation transcript:

Appendixes 4. An Introduction to PostScript ® CVG Lab

Introduction PostScript® is known as a “page description” programming language. → it is commonly used to specify how a page should be printed. An important feature of PostScript: -. Its device independence. The usual way to work with PostScript is to use a text processor to fashion a PostScript, and then to submit the file to a PostScript printer. -. The printer can be set to interpret the script and make a picture rather than simply print the script as text.

Introduction Ghostscript -. Provide a convenient alternative. -. Freely available and operates on a variety of PC and workstation platforms. -. Interprets a PostScript script -. Displays the picture on the PC monitor. -. Can make debugging a script much easier → immediately see the results of a script

About the PostScript Language Scripts in PostScript are readable by humans 1.Some Preliminares Different character appearing in a sript take on different meanings. -. Comments. All characters from ‘%’ to the end of the current line are comments and are ignored by the interpreter. -. Case. Case is significant. -. White space. Characters such as spaces, tabs, or newlines leave spaces on the script page, and are collectively called “white space.”

About the PostScript Language  Numbers in PostScript -. Numbers are written in the usual way, either with or without a decimal point. 2.PostScript Is “Stack based” -. PostScript is similar to the language Forth in that it maintains a stack of objects called the operand stack. 34 –5.2 % push 34 than –5.2 onto the stack 12 % push 12 on top (meaning the stack is empty) ,2 12

About the PostScript Language 3.Some Stack Operators: pop, dup, exch, and clear -. pop 12 → — -. dup 12 → exch exch → clear clear →

4.More Advanced Stack Operators -. n index counts down n items into the stack, and pushes a copy of the nth item on to the stack: index → index → 6 6 % same as dup -. n copy n copy pops the n and then pushes a copy of the top n elements of the stack: copy → copy → About the PostScript Language

-. num shifts roll num shifts roll pops shifts and num, and then does a circular shift of the top num elements shifts times roll → roll → roll → count count the number of items on the stack and pushes that value onto the stack count →

5.Some Arithmetic Operators -. Add: add → subtract: sub → Multiply: mul → Division: div→ Integer Division: idiv→ Modulo: mod → mod → and, or, exclusive or, complement (&, |, ^, and !) -. abs, neg, floor, ceiling, truncate, round, sqrt, ln, log, cos, sin exp, atan  Random-number Generation About the PostScript Language

Graphics Operators in PostScript PostScript has operators that make it easy to draw lines, circles, Bezier curves, and many other figures. 1.Coordinate Systems and Transformations

Graphics Operators in PostScript 2.Path Construction Verbs -. Move to pops the top two items off of the stack and set the CP accordingly x y moveto → — newpath 1 1 moveto 1 3 lineto 3 3 lineto 3 1 lineto closepath stroke 2 2 moveto 4 2 lineto 4 0 lineto 2 0 lineto closepath fill showpage

Graphics Operators in PostScript 3.Arcs of Circles -. Acrs of circles are drawn in PostScript by using one of the two verbs arc and acrn. center.x center.y rad start_angle end_angle arc → — center.x center.y rad start_angle end_angle arcn → —

Graphics Operators in PostScript 4.Used for Painting Verbs -. stroke -. fill -. setlinewidth -. setgray -. setrgbcolor -. clip -. setlinecap -. setlinejoin

Graphics Operators in PostScript 5.Coordinate Transformations

2.Automatic dodging-and burning Bringing “up” selected dark regions or bringing “down” selected light regions to avoid loss of detail. Dodging-and-burning is typically applied over an entire region bounded by large contrasts. -. Chose a center-surround function derived from Blommaert’s model for brightness perception. -. This function is constructed using circularly symmetric Gaussian profiles of the form: Algorithm

-. The center-surround function defined by; Algorithm |V(x, y, s m )|<є … Computed for the sole purpose of establishing a measure of locality for each pixel, which amounts to finding a scale s m of appropriate size. … This scale may be different for each pixel, and the procedure for its selection is the key to the success of our dodging-and-burning technique. … It is also a deviation from the original Blommaert model.

The luminance of a dark pixel in a relatively bright region will satisfy L<V1, so this operator will decrease the display luminance Ld, thereby increasing the contrast at that pixel. “dodging” A pixel in a relatively dark region sill be compressed less. “burned” Algorithm