Lecture 9 1 Chinese Character Output Character 字符 : abstract object recognized by human in communication, it is the representation at the conceptual level.

Slides:



Advertisements
Similar presentations
Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.
Advertisements

Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
HCI 530 : Seminar (HCI) Damian Schofield.
Review1 What is multilingual computing? Bilingual, trilingual, vs. Multilingual What are the fundamental issues in multi-lingual computing? –Representation.
Introduction to Computer Graphics
Vector vs. Bitmap SciVis V
Računarska grafika GDI+ (Graphics Device Interface Plus)
V Obtained from a summer workshop in Guildford County July, 2014
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Higher Computing Data Representation.
Introduction to Interactive Media 06: Text: Static Interactive Media Component.
Dr. S.M. Malaek Assistant: M. Younesi
Lecture 4 - Introduction to Computer Graphics
Representing Nonnumeric Data Everything is really a number.
CHAPTER FIVE TEXT.
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,
Shawlands Academy Higher Computing Data Representation.
Graphics A graphics program allows you to combine pictures and text in many different ways. Features – General Level Draw graphics Enter Text Common Tools.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Seeram Chapter #3: Digital Imaging
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
September 5, 2013Computer Vision Lecture 2: Digital Images 1 Computer Vision A simple two-stage model of computer vision: Image processing Scene analysis.
Introduction to Interactive Media Interactive Media Components: Text.
© De Montfort University, Vector and Bitmapped graphics Howell Istance School of Computing De Montfort University.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
Graphics and Images Graphics and images are both non-textual information, that can be displayed and printed. These images may appear on screen as well.
Quiz # 1 Chapters 1,2, & 3.
Digital Media Dr. Jim Rowan ITEC Up Next! In the next several lectures we will be covering these topics: –Vector graphics –Bitmapped graphics –Color.
Bitmap and Vector Graphics Bitmap Graphics Pictures are made up of little dots called pixels The colour of each dot is saved –Examples: Binary code representing.
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
Data Representation The storage of Text Numbers Graphics.
Digital Media Dr. Jim Rowan ITEC 2110 Images: Chapters 3, 4 & 5.
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.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
Using Text. The Encapsulated PostScript (EPS) language file format is used to transfer PostScript language artwork between applications, and it is supported.
Digital Media Lecture 5: Vector Graphics Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Geoprocessing and georeferencing raster data
Chapter 6 Skeleton & Morphological Operation. Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post.
Guilford County SciVis V104.03
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM D IGITAL S TILL I MAGES Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny Winter.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
Main characteristics of Vector graphics  Vector graphics provide an elegant way of constructing digital images (diagrams, technical illustration and.
1. 2 What is Digital Image Processing? The term image refers to a two-dimensional light intensity function f(x,y), where x and y denote spatial(plane)
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.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM D IGITAL S TILL I MAGES Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny Winter.
Computer Systems Nat 5 Computing Science Data Representation
GCSE COMPUTER SCIENCE Data 2.2 Characters and Images.
Image Representation and Description – Representation Schemes
Computer Systems Nat 4/5 Data Representation Lesson 4:
Bitmap Image Vectorization using Potrace Algorithm
Computer Science Higher
Vector vs. Bitmap.
BTEC NCF Dip in Comp - Unit 02 Fundamentals of Computer Systems Lesson 10 - Text & Image Representation Mr C Johnston.
Dr. Jim Rowan ITEC 2110 Wednesday, September 12
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Introduction to Computer Graphics
Ch2: Data Representation
Digital Media Dr. Jim Rowan ITEC 2110.
Chapter Lessons Use the Macromedia Flash drawing tools
Chapter 2 Data Representation.
Computer Systems Nat 4/5 Data Representation Lesson 4:
Lecture 4 - Introduction to Computer Graphics
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
Presentation transcript:

Lecture 9 1 Chinese Character Output Character 字符 : abstract object recognized by human in communication, it is the representation at the conceptual level. Control characters in computer internal code is not considered characters Glyph 字形 : character in its concrete form without regards to thickness, style, size, and the computer internal representation(bitmap, outline, etc) Font (font set) 字體 / 字型庫 : specific form of character with all computer internal representation attributes

Lecture 9 2 The three levels of representation Image 圖像 Font 字型 External Representation 外部表示 GID (Glyph ID) Glyph 字形 Document Description Character 字符 Code Internal Representation 內部表示 Rendering Association Human perception

Lecture 9 3

4

5 Glyph Representation: Bitmaps A matrix of 1s and 0s to represent a character Typical monitor display a character using a 16 x 16 bitmap Typical sizes and storage demand are shown (not double size => quadruple storage) Data compression(a lot of empty space)

Lecture 9 6 Usually store small bitmaps and scale up but there are problems with the quality of slanted edges Linear scaling: from Old(x old, y old ) to New(x new, y new ), where 0 <= x old <= (Width OLD -1), 0 <= y old <= (Height OLD -1) and 0 <= x new <= (Width NEW -1), 0 <= y new <= (Height NEW -1) assuming Height and Width values are integers r x = Width NEW /Width OLD, r y =Height NEW /Height OLD If r x >1 and r y >1, then it is called scaling up New(x new, y new ) = New(x * r x, y* r y ) = Old(  x ,  y  )

Lecture 9 7 Smoothing techniques for scaling Ad Hoc Techniques (No underlying model but cheap): –Enlargement (Matrix manipulation) Thresholding: convert into bitmap (assign 1 if >= 0.4 for unidirectional)

Lecture 9 8 Smoothing spline ( 齒形 ) and interpolation 嵌入法 (costly) –Basis: Character bitmaps are a coarse sample of the original character –Approach: Recover the curves of the character as continuous functions (cubic spline) and then interpolate or generate the bitmaps of another size –Optimization: Minimize the unsmoothing

Lecture 9 9 Bezier Curves P(t) = (x(t), y(t)): any point in the curve(0<= t <= 1) Cubic Bezier: 4 points –end points coincide with curve –other points control shape (can specify gradient at end points) X(t) =X 0 *(1-t) 3 + 3* X 1 *(1-t) 2 *t + 3*X 2 *(1-t) *t 2 + X 3 *t 3 Y(t) =Y 0 *(1-t) 3 + 3* Y 1 *(1-t) 2 *t + 3*Y 2 *(1-t) *t 2 + Y 3 *t 3

Lecture 9 10 Glyph Representation: Outline Characters as shapes enclosed by lines or curves and specify these by parameters (i.e. data as an ASCII file and an interpreter to generate the graphic image) Line specified by 2 points Curve: (usually cubic Bezier) specified by 4 points –end points coincide with curve –other points control shape

Lecture 9 11 Advantages comparing to bitmaps: –Scaling does not affect quality (Major) –Does not need to store different sized fonts (a compression of extremely detailed/large fonts) –Compression (as in standard text) – transport without encoding and decoding Example of a Postscript for the Chinese Character 一 :

Lecture 9 12 Unit of measurements: 1 point = 1/72 of an inch and the coordinates starts at the bottom left corner and coordinate translation is needed. Postscript level 1 font(base font) can handle only up to 256 characters in each set. It maps 256 code into names of fonts in the set. Postscript Level 0 fonts: Composite Font –Double byte encoding: –1st byte: index to base font –2nd byte: code in the particular base font

Lecture 9 13 CID-keyed fonts(pp 288) A technique to make character glyph definitions be independent of codeset. –Each character glyph is given a CID which uniquely defines a glyph shape. –A CMap is a file which contains mapping of character encodings with glyphs(CID). –A CIDFont file contains the pointers to the actual descriptions of the glyphs. A CIDFont file usually keeps character glyphs with the same style. Other outline fonts include: TrueType fonts and OpenType. They different in the data structures/ header forms.

Lecture 9 14 Bitmap-to-Outline Conversion Determine outline for all the straight lines Generate curve list: a curve must begin and end in two different corner (therefore needs to find corners: compute an angle between two vector points along the outline) Preprocessing for curve-fitting: knee removal, smooth filtering to yield finer co-ordinates of sample points. Perform curve fitting: iterations try to improve fitting goodness (measured as the least square error) End point alignment: close end points of two consecutive splines are merged by averaging their positions

Lecture 9 15

Lecture 9 16 Getting outline pixels through erosion Finding the outline of a bitmap is to find the pixel that is located inside an object, but that has at least one neighbour outside the object Basic idea –Find the bitmap with its edge pixels removed:erosion( a smaller cross) –Original bitmap with the eroded bitmap removed.

Lecture 9 17 Need more mathematical terms and binary image operation Translation:The displacement in either the x direction, the y direction or both at once. It is the reposition of the co- ordinate system. Suppose B is a binary image, Bxy means to move B by the coordinates(x,y). (0,0) origin (x,y) Translated

Lecture 9 18 Erosion of B(a bitmap): is a set of coordinates (x,y) such that S translated by (x,y), is contained in B. E = B ⊕ S = {(x,y) | Sxy  B} S(4 pixels of blacks): Against and their rotations Returns all the points in B whose neighbors are not the boarder (edge) pixels.

Lecture 9 19 Outline pixels: B - (B S)