Nigel Chapman & Jenny Chapman

Slides:



Advertisements
Similar presentations
Image Data Representations and Standards
Advertisements

Dale & Lewis Chapter 3 Data Representation. Representing color Similarly to how color is perceived in the human eye, color information is encoded in combinations.
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Graphics CS 121 Concepts of Computing II. What is a graphic? n A rectangular image. n Stored in a file of its own, or … … embedded in another data file.
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Introduction to Computer Graphics
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
1 JPEG Compression CSC361/661 Burg/Wong. 2 Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg.
Image Compression JPEG. Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg and can be embedded.
Photoshop: Designing Graphics for the Web Christine Vucinich & Vicki Weidler ITS Training Services 224 B Computer Building University Park, PA 16802
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
1 Creating Web Graphics Outline 2.1 Graphics Types 2.2 Vector Graphics 2.3Bitmapped Graphics 2.4Graphics for the Web 2.5 GIF (Graphics Interchange Format)
School of Computer Science & Information Technology G6DPMM - Lecture 4 Graphics & Still Image Representation.
GRAPHICS/IMAGES INFSCI Source: Learning Web Design by Jennifer Niederst RobbinsJennifer Niederst Robbins Creating Images:  Scanning  Be aware.
Web Design, 5 th Edition 5 Typography and Images.
Faculty of Sciences and Social Sciences HOPE Website Development Graphics Stewart Blakeway FML 213
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
File Formats About graphic file formats And image compression.
Lecture 4 - Introduction to Computer Graphics
3D Game Programming All in One By Kenneth C. Finney.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Chapter 5 Bitmapped Images Multimedia Systems. Key Points For displayed images, physical dimension = pixel dimension/device resolution. For displayed.
© De Montfort University, Vector and Bitmapped graphics Howell Istance School of Computing De Montfort University.
Section 8.1 Create a custom theme Design a color scheme Use shared borders Section 8.2 Identify types of graphics Identify and compare graphic formats.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 5 This presentation © 2004, MacAvon Media Productions Bitmapped Images.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
Digital Media Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 5 Lecture 5 - Bitmapped Images.
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.
Raster Graphics 2.01 Investigate graphic image design.
Introduction to Images & Graphics JMA260. Objectives Images introduction Photoshop.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
 Lecture 4. Image Resolution  The resolution of an image is the number of pixels per unit length (pixels/inch or pixels/cm).  You must change either.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Image Editing Vocabulary Words Pioneer Library System Norman Public Library Nancy Rimassa, Trainer Thanks to Wikipedia ( help.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
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.
13 June – Session : Graphics Different types of Graphics for the web Features of image editing software Good practice for image editing.
 The concept of resolution is simple, but it differ according to where it is used.
Masaki Hayashi 2015, Autumn Visualization with 3D CG Digital 2D Image Basic.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
Binary Representation in Audio and Images
Computer Science Higher
2.01 Understand Digital Raster Graphics
Digital Photo editing with Photoshop
Digital 2D Image Basic Masaki Hayashi
2.01 Investigate graphic image design.
JPG vs GIF vs PNG What is the difference?
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
A computer display is made up of small squares, called pixels.
Dr. Jim Rowan ITEC 2110 Bitmapped Images
1.01 Investigate graphic types and file formats.
Introduction to Computer Graphics
2.01 Understand Digital Raster Graphics
Dr. Jim Rowan ITEC 2110 Bitmapped Images
2.01 Investigate graphic image design.
2.01 Understand Digital Raster Graphics
2.01 Investigate graphic image design.
Lecture 5 - Bitmapped Images
Lecture 4 - Introduction to Computer Graphics
2.01 Investigate graphic image design.
Presentation transcript:

Nigel Chapman & Jenny Chapman Bitmapped Images Chapter 5 Nigel Chapman & Jenny Chapman

Bitmapped Images Also known as raster graphics 118 Bitmapped Images Also known as raster graphics Record a value for every pixel in the image Often created from an external source Scanner, digital camera, … Painting programs allow direct creation of images with analogues of natural media, brushes, …

Most Popular Formats Dozens of Formats, but 3 that matter GIF – Graphics Interchange Format Developed by CompuServe 1987 JPEG - Joint Photographic Experts Group Standard 1992 PNG – Portable Network Graphics 1996

GIF (.gif) Maximum Colors: 8-bit  256 Great for Icons, Logos, and Line Art Basic graphics Flat Colors First format supported by browsers RLE: Run length encoding (Lossless Compression) LZ77 Algorithm.

JPEG (.jpg) Hi-resolution Photographs Maximum Colors: 24-bit  16.7 million Great for Hi-resolution Photographs Images with subtle color graduation Variation of RLE: Compresses groups of pixels into a single unit (Lossy Compression)

PNG (.png) Maximum Colors: 24-bit  16.7 million Great for Mixed images: Photos with graphics Photos with transparency Developed specifically for the web. Lossless compression Variable transparency Can store vector and object info for editing

PNG Story In the early days of the web… There were few graphics tools that supported PNG format People forgot about it PNG was completely forgotten Not supported by many browsers Thus, no proliferation of PNG files.

PNG Story Lossless compression (like GIFs) but superior colors 24-bit OR 8-bit. PNG much better for photographic images than GIF Better compression for flat color graphics compared to JPEG PNG much better for line art, logos, etc than JPEG Plus, support for layers and vector data.

PNG should replace GIF with one exception GIF excels at compressing flat color images But so does 8-bit PNG 8-bit PNG format supports variable transparency; GIF only supports flat transparency But, GIF support embedded animation PNG has no animated format

PNG will not replace JPG JPG excels at compressing photo realistic images (hi-res 3200+ X 2400+) 24-bit PNG is good but not as good JPG is not good at flat color compression PNG handles flat color much better Overall, JPG might be better for very large photos. PNG is certainly better for mixed images and medium to low resolution.

118–119 Device Resolution Printers, scanners: specify as dots per unit length, often dots per inch (dpi) Desktop printer 600dpi, typesetter 1270dpi, scanner 300–3600dpi,… Video, monitors: specify as pixel dimensions PAL TV 768x576px, 17” CRT monitor 1024x768px 19”-20” LCD monitor 1280x1024px dpi depends on physical size of screen

Device Resolution What is the best resolution display you can buy for under $3000?

120 Image Resolution Array of pixels has pixel dimensions, but no physical dimensions By default, displayed size depends on resolution (dpi) of output device physical dimension = pixel dimension/resolution Can store image resolution (ppi) in image file to maintain image's original size Scale by device resolution/image resolution

120–122 Changing Resolution If image resolution < output device resolution, must interpolate extra pixels Always leads to loss of quality If image resolution > output device resolution, must downsample (discard pixels) Quality will often be better than that of an image at device resolution (uses more information) Image sampled at a higher resolution than that of intended output device is oversampled

122–123 Compression Image files may be too big for network transmission, even at low resolutions Use more sophisticated data representation or discard information to reduce data size Effectiveness of compression will depend on actual image data For any compression scheme, there will always be some data for which 'compressed' version is actually bigger than the original

122–125 Lossless Compression Always possible to decompress compressed data and obtain an exact copy of the original uncompressed data Data is just more efficiently arranged, none is discarded Run-length encoding (RLE) Huffmann coding Dictionary-based schemes – LZ77, LZ78, LZW (LZW used in GIF, licence fee charged)

125–126 JPEG Compression Lossy technique, well suited to photographs, images with fine detail and continuous tones Consider image as a spatially varying signal that can be analysed in the frequency domain Experimental fact: people do not perceive the effect of high frequencies in images very accurately Hence, high frequency information can be discarded without perceptible loss of quality

DCT Discrete Cosine Transform 125–127 DCT Discrete Cosine Transform Similar to Fourier Transform, analyses a signal into its frequency components Takes array of pixel values, produces an array of coefficients of frequency components in the image Computationally expensive process – time proportional to square of number of pixels Apply to 8x8 blocks of pixels

JPEG – Quantization Applying DCT does not reduce data size 127 JPEG – Quantization Applying DCT does not reduce data size Array of coefficients is same size as array of pixels Allows information about high frequency components to be identified and discarded Use fewer bits (distinguish fewer different values) for higher frequency components Number of levels for each frequency coefficient may be specified separately in a quantization matrix

127 JPEG – Encoding After quantization, there will be many zero coefficients Use RLE on zig-zag sequence (maximizes runs) Use Huffman coding of other coefficients (best use of available bits)

128 JPEG – Decompression Expand runs of zeros and decompress Huffman-encoded coefficients to reconstruct array of frequency coefficients Use Inverse Discrete Cosine Transform to take data back from frequency to spatial domain Data discarded in quantization step of compression procedure cannot be recovered Reconstructed image is an approximation (usually very good) to the original image

Compression Artifacts 129 Compression Artifacts If use low quality setting (i.e. coarser quantization), boundaries between 8x8 blocks become visible If image has sharp edges these become blurred Rarely a problem with photographic images, but especially bad with text Better to use good lossless method with text or computer-generated images

130 Image Manipulation Many useful operations described by analogy with darkroom techniques for altering photos Correct deficiencies in image Remove 'red-eye', enhance contrast,… Create artificial effects Filters: stylize, distort,… Geometrical transformations Scale (change resolution), rotate,…

Selection No distinct objects (contrast vector graphics) 131–132 Selection No distinct objects (contrast vector graphics) Selection tools define an area of pixels Draw selection (pen tool, lasso) Select regular shape (rectangular, elliptical, 1px marquee tools) Select on basis of colour/edges (magic wand, magnetic lasso) Adjustments &c restricted to selected area

Masks Area not selected is protected, as if masked by stencil 132–135 Masks Area not selected is protected, as if masked by stencil Can represent on/off mask as array of 1 bit per pixel (b/w image) Generalize to greyscale image (semi- transparent mask) – alpha channel Feathered and anti-aliased selections Use as layer mask to modify layer compositing

Pixel Point Processing 136 Pixel Point Processing Compute new value for pixel from its old value p' = f(p), f is a mapping function In greyscale images, ppp alters brightness and contrast Compensate for poor exposure, bad lighting, bring out detail Use with mask to adjust parts of image (e.g. shadows and highlights)

Adjustments in Photoshop 136–139 Adjustments in Photoshop Brightness and contrast sliders Adjust slope and intercept of linear f Levels dialogue Adjust endpoints by setting white and black levels Use image histogram to choose values visually Curves dialogue Interactively adjust shape of graph of f

Pixel Group Processing 139–142 Pixel Group Processing Compute new value for pixel from its old value and the values of surrounding pixels Filtering operations Compute weighted average of pixel values Array of weights k/a convolution mask Pixels used in convolution k/a convolution kernel Computationally intensive process

Blurring Classic simple blur Convolution mask with equal weights 142–144 Blurring Classic simple blur Convolution mask with equal weights Unnatural effect Gaussian blur Convolution mask with coefficients falling off gradually (Gaussian bell curve) More gentle, can set amount and radius

Sharpening Low frequency filter 144–147 Sharpening Low frequency filter 3x3 convolution mask coefficients all equal to -1, except centre = 9 Produces harsh edges Unsharp masking Copy image, apply Gaussian blur to copy, subtract it from original Enhances image features

Geometrical Transformations 148–150 Geometrical Transformations Scaling, rotation, etc. Simple operations in vector graphics Requires each pixel to be transformed in bitmapped image Transformations may 'send pixels into gaps' i.e. interpolation is required Equivalent to reconstruction & resampling; tends to degrade image quality

Interpolation Nearest neighbour 150–151 Interpolation Nearest neighbour Use value of pixel whose centre is closest in the original image to real coordinates of ideal interpolated pixel Bilinear interpolation Use value of all four adjacent pixels, weighted by intersection with target pixel Bicubic interpolation Use values of all four adjacent pixels, weighted using cubic splines