Arrays and Images. Francesco Vespignani DiSCoF Università degli Studi di Trento. November 19, 2009

Size: px
Start display at page:

Download "Arrays and Images. Francesco Vespignani DiSCoF Università degli Studi di Trento. November 19, 2009"

Transcription

1 Arrays and Images Francesco Vespignani DiSCoF Università degli Studi di Trento. November 19, 2009

2 Today Arrays Practice on Matrix Basic Files Management Graphic formats Practice on Images

3 Arrays

4 Structures Since usually we need to work with more than one data chunk, languages offers structures for organizing data of the same type or of a mixture of them. Every language has more ways to organize basic types into larger structures, with different ways for accessing a specific part of the structure. For this topic see also the doc and/or the Mastering Matlab chapter. Matlab: Everything is an Array!

5 Arrays The use of arrays allows to perform the same calculation on a sequence of elements. For example if we want to plot a function we have to calculate it on a (finite!) number of data points x=linspace(0,pi,11) y = sin(x) plot(x,y)

6 Array addressing Element 3 of array x: x(3) Elements 2 to 4 of array x: x(2:4) Element 4 to 2 (inverse order) of the array x: x(4:-1:2) A bunch of non contiguous elements of x: x([8,2,1])

7 Array orientation Row array: r = [ ] r = [1, 2, 3, 4] Column array: c = [ ] c = [1; 2; 3; 4] Passing from row to column: Transpose r = c. c = r. all((r. ). == r) Note the difference between. and, only using complex numbers: a = [1+2i, 3-5i]

8 Matrix 2-dim arrays: m = [ 1 2; 3 4] Matrix addressing (rows and columns): m(2,1) The all elements colon symbol: m(1,:) m(:,2) Multidimensional matrix: tm(:,:,1)=m; tm(:,:,2)=2*m; Matrix size: size(tm) size(tm,1) length(tm) numel(tm)

9 Building Matrix ones, zeros, eye: m = ones(3); m = ones(3,4); m = zeros(5); cat (try with different dim values): dim=1; cat(dim, ones(2), zeros(2)) change a row/colmn value, delete a row /column: m(:,1)=22; m(:,2)=[]; Single index addressing: m = magic(5); m(4,3) m(4+(3-1)*5)

10 Building Matrix ones, zeros, eye: m = ones(3); m = ones(3,4); m = zeros(5); Single index addressing: m = magic(5); m(4,3) m(4+(3-1)*5) change a row/colmn value, delete a row /column: m(:,1)=22; m(:,2)=[]; cat (try with different dim values): dim=1; cat(dim, ones(2), zeros(2))

11 Building Matrix repmat: m = repmat(1:2,3) m = repmat(1:2,3,1) m = repmat(1:2,1,3) Example: multiplication table for i=1:9 for j=1:9 a(i,j) =i*j; end end Multiplication table without loops: m=repmat(1:9,9,1); a = m.* m ; cat (try with different dim values): dim=1; cat(dim, ones(2), zeros(2))

12 Reshape a matrix repmat: m = reshape(1:8,4,2) m = reshape(1:8,2,4) v = reshape(m, numel(m)) m = reshape(1:8,2,2,2) See also permute, circshift, flipud, fliplr, rot90, triu, tril... Squeeze: sometimes matrix can have silly dimensions: m = reshape(1:8,4,2) squeeze(m)

13 Scalar Array mathematics when an array (or matrix) is involved in operations with scalars (i.e. 1x1 matrix) the operation is applied to each single element of the array: m = reshape(1:4,2,2) m-10 m* Scalar assigment to a column/row m(2) = 5 When two arrays have same size element-by-element operations (using the dot operations)are possible: a=[1 2; 3 4] b=[3 3; 5 5] a.* b a.* b -b

14 Linear Algebra Matrix operations are implemented in the without-dot form. For example row-by-column multiplication. a = reshape(1:6,3,2) b = [1 1 1; 2 2 2] a * b b * a b * a Number of rows of the first operand must be the same as the columns of the second. Matrix division is a more complex linear algebra function (involving matrix inversion). a = magic(3) b = a a/b b(1,:)=b(3,:) rank(a) rank(b)

15 Logical Matrix Logical operators may be applied in an element-by-element fashion to matrixes: a = -3:3 abs(a)>1 a(abs(a)>1) a(abs(a)>1) = NaN With logical matrix any and all function may be used: a = -3:3 any(a==0) all(a<5) With Matrix any and all work in a column-by-column

16 find Find returns the indexes of an array that are non-zero. If not differently specified it returns the linear index (fast on rows). For 2d matrix a row, column pair may be returned. a = [ ]; find(a) [x y] = find(a)

17 Practice on Matrix

18 Life Game Wikipedia Conway s Game of Life conwaylife.com (see also the wiki pages). We ll develop a simple algorithm to calculate a next generation. There is much more to do in terms of optimization (use of sparse matrix), graphics, graphical user interface... We ll return on this game also in the next lessons.

19 Life Game After solving numerically the problem we can further elaborate on it: Display the game graphically Create a Movie Search long living pattern with random configurations (brute force) Make statistics on mean life as a function of the initial density Create a GUI to allow people to draw a pattern Reading known patterns, by importing files in the standard formats (look at the web!)

20 Basic commands for files management

21 File and directory management As other scripting language Matlab has a set of commands for the interaction with the file system, some commands have multiple names, similar to thats of windows and Unix OSs. cd, chdir, pwd: change the current directory ls, dir, glob: lists the content of the current directory delete: deletes files system: execute another program filesattrib: gets or changes file s attributes mkdir, rmdir: crea, removes directories copyfile, movefile: copies or moves files

22 Basic strings commands Concatenate strings: c = strcat( hallo, world ) Convert numbers to strings: num2str(1, %03d ) See also sprintf and the documentation about formatting strings sequences in C (try the %12.80e ). Specialized functions for filenames: [d,n,e,v] = fileparts( Data/myfile.bmp ) fullfile(d,strcat(n,e)) Note that some matlab functions (e.g. fileparts) may return multiple values (an array). Moreover a function s behavior may change as a function of the number of return values requested (see find). Much more on strings one of the next lessons.

23 Graphics formats

24 Raster and Vector images Images can be represented (stored as files in a disk) in two ways: Raster: a map of pixel color values Vector: instructions where and how to draw specific items Raster images:.bmp.png.jpg.tiff.ppm Vector images:.svg.ps.pdf

25 Image representation An image can be represented on a video display or printed to paper. Vector images are typically rasterized, according to the specific resolution of the specific media. Conventional PC use in fact raster image representation (monitor and printers), however vector display exist(ed): Plotters Oscilloscope (Atari monitors, arcade games of the 70)

26 SVG files SVG is an open standard maintained by the WWW Consortium and it is part of the XML (Extensible Markup Language) that is used to generate web pages. See the documentation. This makes SVG easy to be displayed by any modern web browser. Multiple nesting of elements are done using tags: <atag>... < \atag>. Inkscape is a drawing program with a graphical GUI that produces SVG files.

27 A simple SVG example See simple.svg. It has an header, the dimension definition (in centimeters, not pixels) and two ellipses drawn with different colors. You can write a simple script that writes text files like this with any of the scripting languages we use (R, matlab, Tcl-Tk). SVG standard includes a vector graphic animations. SVG can also include Raster images.

28 Raster images Raster images are composed by pixels organized in a 2D matrix. Each pixel can be represented by multiple value, giving rise to 3d matrix, where the 3rd dimension is the color dimension.

29 Spatial and color resolution Spatial resolution is determined by the dimension of the matrix of pixels. Usually raster graphics files contains also information about linear dimension (dpi: dots per inch). Every pixel contains a color information that may be 0/1 in a black and white image, a scalar value in a grayscale image, three scalar values (RGB: reg, green, blue) and possibly a transparency value for color images. Other color encoding schemes exists (YCbCr, HSV...). The number of bits used to represent each scalar (color) fixes the number of different colors that can be represented (8 bits per pixel, 256 color; 16 bits per pixel, colors...). 24 bit per pixel usually allow to specify each RGB color in a 0 to 255 range.

30 File formats Raster images can either store a matrix with the color values of single pixels or use a colormap. An image with a colormap is called an indexed image: it is composed by a list of colors (color palette) and the matrix contains only the index to the color of that pixel. When the image is composed by a small number of colors indexed image allows for smaller file size. Bitmap file format is a simple raster image format. It is a binary file with an header that specify the type of image (pixel map or indexed), the matrix dimensions, the number of bits per pixels and the number storage format. Simple uncompressed bmp files are easy to read/write using low-level IO functions (fread, fwrite), as the EEG data of last lesson.

31 Data Compression Efficient image storage and transmission is achieved by compression: Lossless data compression allows the original data to be exactly extracted from the compressed data (zip, gz...). A simple lossless compression technique is to use dictionaries to replace sequences of bits that repeats in the files (similarly to indexed images, that can be seen as a lossless compression technique). Lossy data compression uses approximations to reduce data size and the extracted information may be different from the original. Lossy data compression try to remove the details that are less important at perceptual level and it is mainly used for images, music and video.

32 Image file formats BMP see above JPG or JPEG stores only pixel map images (not indexed) and allows for lossy compression. It s the more diffuse compressed raster image format. PNG it is more complex than JPG and support lossless compression (deflate).it allows various color formats and to store an alpha channel (transparency). TIFF similar to PNG is a complex format (e.g. a low resolution preview) GIF mainly used for small animations Some of these formats needs complex encoding/decoding algorithms and are usually written and read from file using libraries. Scripting languages usually provide specialized function for that (see the matlab commands imread, imwrite).

33 Animations Animations are sequences of images presented at a fixed rate (frames per second fps). Video allows to present also a synchronized sound (and subtitles...). Given the high rate of information stream compression and multiplexing of data is usually mandatory. There are many file formats for video (mpg, avi, wmv...). Some of them (avi, wmv) allow for different compression techniques implemented by codecs. A coded (compressor-decompressor, coder-decoder) is a device or a program (usually implemented in a compiled library) that are used by the applications that creates or play a movie file. There are many codex (MPEG-1, -2, -4, WMV, DivX...) that may work or not on different hardware/platforms. Some are opensource, other are not (wmv...). To know more see the mplayer and VLC documentation.

34 Practice on Images

35 Load and write images Reading, displaying and writing simple raster images. Basic interaction with the matlab figures (adding text to images). Convert to a different types (ind, gray, rgb) and formats (png, jpg...). Changing foreground and background, moving, superimposing images, using a complex scene as a background... Repeating automatically an image process on all image files of a given list or directory.

36 frame We will read indexed bmp files (imread). We will apply this to multiple files. Convert to a rbg image (ind2rbg) and save in another format (jpg, imwrite). We will also try to write a function that changes some colors.

37 Images in Matlab Images in matlab can be indexed, as a couple of array: a 2d matrix containing the indexes for each pixel and a colormap, containing the color palette. RGB images (truecolor) are stored in a 3d array of double, going from 0 to 1. The 3rd dimension has size 3 and represent Red Green and Blue values. RGB images does not contain information about the number of colors, they are rendered by the imshow, according to the property of the display. When writing an image file (imwrite) the double values are converted in an opportune binary format, according to the file format we choose (see imwrite documentation).

MULTIMEDIA AND CODING

MULTIMEDIA AND CODING 07 MULTIMEDIA AND CODING WHAT MEDIA TYPES WE KNOW? TEXTS IMAGES SOUNDS MUSIC VIDEO INTERACTIVE CONTENT Games Virtual reality EXAMPLES OF MULTIMEDIA MOVIE audio + video COMPUTER GAME audio + video + interactive

More information

MEDIA RELATED FILE TYPES

MEDIA RELATED FILE TYPES MEDIA RELATED FILE TYPES Data Everything on your computer is a form of data or information and is ultimately reduced to a binary language of ones and zeros. If all data stayed as ones and zeros the information

More information

Standard File Formats

Standard File Formats Standard File Formats Introduction:... 2 Text: TXT and RTF... 4 Grapics: BMP, GIF, JPG and PNG... 5 Audio: WAV and MP3... 8 Video: AVI and MPG... 11 Page 1 Introduction You can store many different types

More information

Different File Types and their Use

Different File Types and their Use Different File Types and their Use.DOC (Microsoft Word Document) Text Files A DOC file is a Word processing document created by Microsoft Word, a word processor included with all versions of Microsoft

More information

Elementary Computing CSC 100. M. Cheng, Computer Science

Elementary Computing CSC 100. M. Cheng, Computer Science Elementary Computing CSC 100 1 Graphics & Media Scalable Outline & Bit- mapped Fonts Binary Number Representation & Text Pixels, Colors and Resolution Sound & Digital Audio Film & Digital Video Data Compression

More information

Advanced High Graphics

Advanced High Graphics VISUAL MEDIA FILE TYPES JPG/JPEG: (Joint photographic expert group) The JPEG is one of the most common raster file formats. It s a format often used by digital cameras as it was designed primarily for

More information

Image coding and compression

Image coding and compression Image coding and compression Robin Strand Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University Today Information and Data Redundancy Image Quality Compression Coding

More information

1.6 Graphics Packages

1.6 Graphics Packages 1.6 Graphics Packages Graphics Graphics refers to any computer device or program that makes a computer capable of displaying and manipulating pictures. The term also refers to the images themselves. A

More information

APPM 2360 Project 2 Due Nov. 3 at 5:00 PM in D2L

APPM 2360 Project 2 Due Nov. 3 at 5:00 PM in D2L APPM 2360 Project 2 Due Nov. 3 at 5:00 PM in D2L 1 Introduction Digital images are stored as matrices of pixels. For color images, the matrix contains an ordered triple giving the RGB color values at each

More information

Data Representation and Networking

Data Representation and Networking Data Representation and Networking Instructor: Dmitri A. Gusev Spring 2007 CSC 120.02: Introduction to Computer Science Lecture 3, January 30, 2007 Data Representation Topics Covered in Lecture 2 (recap+)

More information

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

M4-R4: INTRODUCTION TO MULTIMEDIA (JAN 2019) DURATION: 03 Hrs M4-R4: INTRODUCTION TO MULTIMEDIA (JAN 2019) Max Marks: 100 DURATION: 03 Hrs M1-R4-01-19 1.3 Which of the following tag pair is used to list the text? (a) and (b) and (c)

More information

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

Logo & Icon. Fit Together Logo (color) Transome Logo (black and white) Quick Reference Print Specifications GRAPHIC USAGE GUIDE Logo & Icon The logo files on the Fit Together logos CD are separated first by color model, and then by file format. Each version is included in a small and large size marked by S or

More information

Graphics File Formats

Graphics File Formats 1 Graphics File Formats Why have graphics file formats? What to look for when choosing a file format A sample tour of different file formats, including bitmap-based formats vector-based formats metafiles

More information

Image Types Vector vs. Raster

Image Types Vector vs. Raster Image Types Have you ever wondered when you should use a JPG instead of a PNG? Or maybe you are just trying to figure out which program opens an INDD? Unless you are a graphic designer by training (like

More information

Introduction to Computer Science (I1100) Data Storage

Introduction to Computer Science (I1100) Data Storage Data Storage 145 Data types Data comes in different forms Data Numbers Text Audio Images Video 146 Data inside the computer All data types are transformed into a uniform representation when they are stored

More information

Introduction to Matlab/Octave

Introduction to Matlab/Octave Introduction to Matlab/Octave February 28, 2014 This document is designed as a quick introduction for those of you who have never used the Matlab/Octave language, as well as those of you who have used

More information

III-6Exporting Graphics (Windows)

III-6Exporting Graphics (Windows) Chapter III-6 III-6Exporting Graphics (Windows) Overview... 96 Metafile Formats... 96 BMP Format... 97 PDF Format... 97 Blurry Images in PDF... 97 Encapsulated PostScript (EPS) Format... 97 SVG Format...

More information

IMAGE COMPRESSION USING FOURIER TRANSFORMS

IMAGE COMPRESSION USING FOURIER TRANSFORMS IMAGE COMPRESSION USING FOURIER TRANSFORMS Kevin Cherry May 2, 2008 Math 4325 Compression is a technique for storing files in less space than would normally be required. This in general, has two major

More information

Computing in the Modern World

Computing in the Modern World Computing in the Modern World BCS-CMW-7: Data Representation Wayne Summers Marion County October 25, 2011 There are 10 kinds of people in the world: those who understand binary and those who don t. Pre-exercises

More information

Atari Games - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Atari Games - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Property Value FTP Server ftp.infogrames.net Description Atari Games Country United States Scan Date 02/Apr/2015 Total Dirs 488 Total Files 1,547 Total Data 26.66 GB Top 20 Directories Sorted by Disk Space

More information

Funcom Multiplayer Online Games - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Funcom Multiplayer Online Games - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Property Value FTP Server ftp.funcom.com Description Funcom Multiplayer Online Games Country United States Scan Date 13/Jul/2014 Total Dirs 186 Total Files 1,556 Total Data 67.25 GB Top 20 Directories

More information

Binary representation and data

Binary representation and data Binary representation and data Loriano Storchi loriano@storchi.org http:://www.storchi.org/ Binary representation of numbers In a positional numbering system given the base this directly defines the number

More information

CMPT 165 Graphics Part 2. Nov 3 rd, 2015

CMPT 165 Graphics Part 2. Nov 3 rd, 2015 CMPT 165 Graphics Part 2 Nov 3 rd, 2015 Key concepts of Unit 5-Part 1 Image resolution Pixel, bits and bytes Colour info (intensity) vs. coordinates Colour-depth Color Dithering Compression Transparency

More information

Computational Methods of Scientific Programming

Computational Methods of Scientific Programming 12.010 Computational Methods of Scientific Programming Lecturers Thomas A Herring, Jim Elliot, Chris Hill, Summary of Today s class We will look at Matlab: History Getting help Variable definitions and

More information

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

255, 255, 0 0, 255, 255 XHTML: Colour Concepts How Colours are Displayed FIG-5.1 Have you looked closely at your television screen recently? It's in full colour, showing every colour and shade that your eye is capable of seeing. And

More information

Lecture 2: Variables, Vectors and Matrices in MATLAB

Lecture 2: Variables, Vectors and Matrices in MATLAB Lecture 2: Variables, Vectors and Matrices in MATLAB Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE201: Computer Applications. See Textbook Chapter 1 and Chapter 2. Variables

More information

Common File Formats. Need a standard to store images Raster data Photos Synthetic renderings. Vector Graphic Illustrations Fonts

Common File Formats. Need a standard to store images Raster data Photos Synthetic renderings. Vector Graphic Illustrations Fonts 1 Image Files Common File Formats Need a standard to store images Raster data Photos Synthetic renderings Vector Graphic Illustrations Fonts Bitmap Format - Center for Graphics and Geometric Computing,

More information

This is not yellow. Image Files - Center for Graphics and Geometric Computing, Technion 2

This is not yellow. Image Files - Center for Graphics and Geometric Computing, Technion 2 1 Image Files This is not yellow Image Files - Center for Graphics and Geometric Computing, Technion 2 Common File Formats Need a standard to store images Raster data Photos Synthetic renderings Vector

More information

Image Formats. Ioannis Rekleitis

Image Formats. Ioannis Rekleitis Image Formats Ioannis Rekleitis JPEG/JFIF JPEG 2000 GIF PNG TIFF PPM, PGM, PBM, and PNM Exif BMP WebP HDR raster formats HEIF BAT BPG CSCE 590: Introduction to Image Processing https://en.wikipedia.org/wiki/image_file_formats

More information

Representing Graphical Data

Representing Graphical Data 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

More information

Introduction to MATLAB. CS534 Fall 2016

Introduction to MATLAB. CS534 Fall 2016 Introduction to MATLAB CS534 Fall 2016 What you'll be learning today MATLAB basics (debugging, IDE) Operators Matrix indexing Image I/O Image display, plotting A lot of demos... Matrices What is a matrix?

More information

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

Prentice Hall. Learning Microsoft PowerPoint , (Weixel et al.) Arkansas Multimedia Applications I - Curriculum Content Frameworks Prentice Hall Learning Microsoft PowerPoint 2007 2008, (Weixel et al.) C O R R E L A T E D T O Arkansas Multimedia s I - Curriculum Content Frameworks Arkansas Multimedia s I - Curriculum Content Frameworks

More information

Unit 2 Digital Information. Chapter 1 Study Guide

Unit 2 Digital Information. Chapter 1 Study Guide Unit 2 Digital Information Chapter 1 Study Guide 2.5 Wrap Up Other file formats Other file formats you may have encountered or heard of include:.doc,.docx,.pdf,.mp4,.mov The file extension you often see

More information

Image Manipulation in MATLAB Due Monday, July 17 at 5:00 PM

Image Manipulation in MATLAB Due Monday, July 17 at 5:00 PM Image Manipulation in MATLAB Due Monday, July 17 at 5:00 PM 1 Instructions Labs may be done in groups of 2 or 3 (i.e., not alone). You may use any programming language you wish but MATLAB is highly suggested.

More information

The following is a table that shows the storage requirements of each data type and format:

The following is a table that shows the storage requirements of each data type and format: Name: Sayed Mehdi Sajjadi Mohammadabadi CS5320 A1 1. I worked with imshow in MATLAB. It can be used with many parameters. It can handle many file types automatically. So, I don t need to be worried about

More information

Final Study Guide Arts & Communications

Final Study Guide Arts & Communications Final Study Guide Arts & Communications Programs Used in Multimedia Developing a multimedia production requires an array of software to create, edit, and combine text, sounds, and images. Elements of Multimedia

More information

Functions and text files

Functions and text files Functions and text files Francesco Vespignani DiSCoF Università degli Studi di Trento. francesco.vespignani@gmail.com December 3, 2009 Today Functions and Scripts Latex Strings Text Files Practice Function

More information

Professional Powerpoint Presentation II

Professional Powerpoint Presentation II Professional Powerpoint Presentation II Facilitator: Patrick Ng Fall 2012 Practical concerns in delivering presentation Creative Visual Possibility & Optimization for Presentation PPTII & IV: Quick Style,

More information

Compression and File Formats

Compression and File Formats Compression and File Formats 1 Compressing Moving Images Methods: Motion JPEG, Cinepak, Indeo, MPEG Known as CODECs compression / decompression algorithms hardware and software implementations symmetrical

More information

Image Compression. cs2: Computational Thinking for Scientists.

Image Compression. cs2: Computational Thinking for Scientists. Image Compression cs2: Computational Thinking for Scientists Çetin Kaya Koç http://cs.ucsb.edu/~koc/cs2 koc@cs.ucsb.edu The course was developed with input from: Ömer Eǧecioǧlu (Computer Science), Maribel

More information

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors.

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors. Physics 326G Winter 2008 Class 2 In this class you will learn how to define and work with arrays or vectors. Matlab is designed to work with arrays. An array is a list of numbers (or other things) arranged

More information

CSE/Math 485 Matlab Tutorial and Demo

CSE/Math 485 Matlab Tutorial and Demo CSE/Math 485 Matlab Tutorial and Demo Some Tutorial Information on MATLAB Matrices are the main data element. They can be introduced in the following four ways. 1. As an explicit list of elements. 2. Generated

More information

ENG Introduction to Engineering

ENG Introduction to Engineering GoBack ENG 100 - Introduction to Engineering Lecture # 9 Files, Sounds, Images and Movies Koç University ENG 100 - Slide #1 File Handling MATLAB has two general ways of importing/exporting data from the

More information

ExtremeTech Technology News - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

ExtremeTech Technology News - FTP Site Statistics. Top 20 Directories Sorted by Disk Space ExtremeTech Technology News - FTP Site Statistics Property Value FTP Server ftp.extremetech.com Description ExtremeTech Technology News Country United States Scan Date 14/Oct/2014 Total Dirs 281 Total

More information

REVIEW ON IMAGE COMPRESSION TECHNIQUES AND ADVANTAGES OF IMAGE COMPRESSION

REVIEW ON IMAGE COMPRESSION TECHNIQUES AND ADVANTAGES OF IMAGE COMPRESSION REVIEW ON IMAGE COMPRESSION TECHNIQUES AND ABSTRACT ADVANTAGES OF IMAGE COMPRESSION Amanpreet Kaur 1, Dr. Jagroop Singh 2 1 Ph. D Scholar, Deptt. of Computer Applications, IK Gujral Punjab Technical University,

More information

Reviewer s Guide. Morpheus Photo Warper. Screenshots. Tutorial. Included in the Reviewer s Guide: Loading Pictures

Reviewer s Guide. Morpheus Photo Warper. Screenshots. Tutorial. Included in the Reviewer s Guide: Loading Pictures Morpheus Photo Warper Reviewer s Guide Morpheus Photo Warper is easy-to-use picture distortion software that warps and exaggerates portions of photos such as body parts! Have you ever wanted to distort

More information

Compression; Error detection & correction

Compression; Error detection & correction Compression; Error detection & correction compression: squeeze out redundancy to use less memory or use less network bandwidth encode the same information in fewer bits some bits carry no information some

More information

Format Type Support Thru. vector (with embedded bitmaps)

Format Type Support Thru. vector (with embedded bitmaps) 1. Overview of Graphics Support The table below summarizes the theoretical support for graphical formats within FOP. In other words, within the constraints of the limitations listed here, these formats

More information

EE168 Handout #6 Winter Useful MATLAB Tips

EE168 Handout #6 Winter Useful MATLAB Tips Useful MATLAB Tips (1) File etiquette remember to fclose(f) f=fopen( filename ); a = fread( ); or a=fwrite( ); fclose(f); How big is a? size(a) will give rows/columns or all dimensions if a has more than

More information

So, what is data compression, and why do we need it?

So, what is data compression, and why do we need it? In the last decade we have been witnessing a revolution in the way we communicate 2 The major contributors in this revolution are: Internet; The explosive development of mobile communications; and The

More information

Creating an animation and movie in Matlab using chroma key compositing (green screening)

Creating an animation and movie in Matlab using chroma key compositing (green screening) Creating an animation and movie in Matlab using chroma key compositing (green screening) Chroma key compositing of images, or chroma keying, is also known as green screen or blue screen technology We want

More information

3.01C Multimedia Elements and Guidelines Explore multimedia systems, elements and presentations.

3.01C Multimedia Elements and Guidelines Explore multimedia systems, elements and presentations. 3.01C Multimedia Elements and Guidelines 3.01 Explore multimedia systems, elements and presentations. Multimedia Fair Use Guidelines Guidelines for using copyrighted multimedia elements include: Text Motion

More information

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION 15 Data Compression Data compression implies sending or storing a smaller number of bits. Although many methods are used for this purpose, in general these methods can be divided into two broad categories:

More information

Multimedia applications

Multimedia applications applications László Kálmán 1 Csaba Oravecz 1 Péter Szigetvári 2 1 Research Institute for Linguistics Hungarian Academy of Sciences 2 Department of English Linguistics Eötvös Loránd University Lecture 9.

More information

Chapter 2 Fundamentals. Chapter 2 Fundamentals The images used here are provided by the authors.

Chapter 2 Fundamentals. Chapter 2 Fundamentals The images used here are provided by the authors. The images used here are provided by the authors. Objectives: Digital Image Representation Image as a Matrix Reading and Displaying Images Writing Images Storage Classes and Data Types Image Coordinate

More information

MULTIMEDIA DESIGNING AND AUTHORING

MULTIMEDIA DESIGNING AND AUTHORING UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION D M A MULTIMEDIA DESIGNING AND AUTHORING QUESTION BANK 1. A multimedia authoring software. A. PageMaker B. Director C. Excel 2. Tool used to increase

More information

THE BARE ESSENTIALS OF MATLAB

THE BARE ESSENTIALS OF MATLAB WHAT IS MATLAB? Matlab was originally developed to be a matrix laboratory, and is used as a powerful software package for interactive analysis and visualization via numerical computations. It is oriented

More information

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

Graphics in IT82. Representing Graphical Data. Graphics in IT82. Lectures Overview. Representing Graphical Data. Logical / Physical Representation Graphics in IT82 What does computer graphics cover? Representing Graphical Data Chapman & Chapman, chapters 3,4,5 Richardson IT82 Input, output, and representation of graphical data Creation of graphics

More information

SCHOOL OF DISTANCE EDUCATION UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION D M A INTRODUCTION TO MULTIMEDIA QUESTION BANK

SCHOOL OF DISTANCE EDUCATION UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION D M A INTRODUCTION TO MULTIMEDIA QUESTION BANK UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION D M A INTRODUCTION TO MULTIMEDIA QUESTION BANK 1. Compression a. Reduces the picture clarity for storage b. Reduces the number of bytes required to store

More information

Multimedia Technology

Multimedia Technology Multimedia Application An (usually) interactive piece of software which communicates to the user using several media e.g Text, graphics (illustrations, photos), audio (music, sounds), animation and video.

More information

Appendix A. Introduction to MATLAB. A.1 What Is MATLAB?

Appendix A. Introduction to MATLAB. A.1 What Is MATLAB? Appendix A Introduction to MATLAB A.1 What Is MATLAB? MATLAB is a technical computing environment developed by The Math- Works, Inc. for computation and data visualization. It is both an interactive system

More information

Part III: Survey of Internet technologies

Part III: Survey of Internet technologies Part III: Survey of Internet technologies Content (e.g., HTML) kinds of objects we re moving around? References (e.g, URLs) how to talk about something not in hand? Protocols (e.g., HTTP) how do things

More information

Characterisation. Digital Preservation Planning: Principles, Examples and the Future with Planets. July 29 th, 2008

Characterisation. Digital Preservation Planning: Principles, Examples and the Future with Planets. July 29 th, 2008 Characterisation Digital Preservation Planning: Principles, Examples and the Future with Planets. July 29 th, 2008 Manfred Thaller Universität zu * Köln manfred.thaller@uni-koeln.de * University at, NOT

More information

Functions and text files

Functions and text files Functions and text files Francesco Vespignani DiSCoF Università degli Studi di Trento. francesco.vespignani@gmail.com December 3, 2009 Today Functions and Scripts Latex Strings Text Files Practice Function

More information

Multimedia Systems and Technologies

Multimedia Systems and Technologies Multimedia Systems and Technologies Sample exam paper 1 Notes: The exam paper is printed double-sided on two A3 sheets The exam duration is 2 hours and 40 minutes The maximum grade achievable in the written

More information

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

Data Representation From 0s and 1s to images CPSC 101 Data Representation From 0s and 1s to images CPSC 101 Learning Goals After the Data Representation: Images unit, you will be able to: Recognize and translate between binary and decimal numbers Define bit,

More information

Introduction to MATLAB

Introduction to MATLAB Chapter 1 Introduction to MATLAB MATLAB Matrix Laoratory A special-purpose program optimized to perform engineering and scientific calculations Chapter M1: Introduction to MATLAB 1 MATLAB Integrated development

More information

xv Programming for image analysis fundamental steps

xv  Programming for image analysis fundamental steps Programming for image analysis xv http://www.trilon.com/xv/ xv is an interactive image manipulation program for the X Window System grab Programs for: image ANALYSIS image processing tools for writing

More information

vinodsrivastava.com FLASH

vinodsrivastava.com FLASH vinodsrivastava.com FLASH 1. What is a Layer? Layer helps us to organize the artwork in your document. When we create a flash document it contain one layer but we can add more. Objects are placed in layer

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Matlab (MATrix LABoratory) will be the programming environment of choice for the numerical solutions developed in this textbook due to its wide availability and its ease of use.

More information

National Aeronautics and Space Admin. - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

National Aeronautics and Space Admin. - FTP Site Statistics. Top 20 Directories Sorted by Disk Space National Aeronautics and Space Admin. - FTP Site Statistics Property Value FTP Server ftp.hq.nasa.gov Description National Aeronautics and Space Admin. Country United States Scan Date 26/Apr/2014 Total

More information

A QUAD-TREE DECOMPOSITION APPROACH TO CARTOON IMAGE COMPRESSION. Yi-Chen Tsai, Ming-Sui Lee, Meiyin Shen and C.-C. Jay Kuo

A QUAD-TREE DECOMPOSITION APPROACH TO CARTOON IMAGE COMPRESSION. Yi-Chen Tsai, Ming-Sui Lee, Meiyin Shen and C.-C. Jay Kuo A QUAD-TREE DECOMPOSITION APPROACH TO CARTOON IMAGE COMPRESSION Yi-Chen Tsai, Ming-Sui Lee, Meiyin Shen and C.-C. Jay Kuo Integrated Media Systems Center and Department of Electrical Engineering University

More information

Designing Maps to Maximize Impact

Designing Maps to Maximize Impact Designing Maps to Maximize Impact Kim Sowder Indiana Geological Survey Workshop Indiana GIS Conference March 7, 2006 Topics to be Covered Designing for purpose and medium Layout planning and linking to

More information

DjVu Technology Primer

DjVu Technology Primer DjVu Technology Primer NOVEMBER 2004 LIZARDTECH, INC. OVERVIEW LizardTech s Document Express products are powered by DjVu, a technology developed in the late 1990s by a team of researchers at AT&T Labs.

More information

Layout Basics For Non-Designers. xrocket Script, 36pt. Eeronauts, 400pt

Layout Basics For Non-Designers. xrocket Script, 36pt. Eeronauts, 400pt Layout Basics For Non-Designers xrocket Script, 36pt Eeronauts, 400pt CONTENTS Tools Making a Mockup Printer Spreads Quark Tricks Using Images Using Fonts Collecting For Output 3 4 7 10 13 17 18 4.When

More information

ICH M8 Expert Working Group. Specification for Submission Formats for ectd v1.1

ICH M8 Expert Working Group. Specification for Submission Formats for ectd v1.1 INTERNATIONAL COUNCIL FOR HARMONISATION OF TECHNICAL REQUIREMENTS FOR PHARMACEUTICALS FOR HUMAN USE ICH M8 Expert Working Group Specification for Submission Formats for ectd v1.1 November 10, 2016 DOCUMENT

More information

HD PLAYER USER MANUAL

HD PLAYER USER MANUAL FULL COLOR HD PLAYER USER MANUAL HERE IS YOUR FULL COLOR LED SIGN INFO COMMENTS FULL COLOR LED SIGN 1 MOBILE HOTSPOT REMOTE TECH SUPPORT PC If you have a smart phone that is capable of mobile hot spot,

More information

Multimedia on the Web

Multimedia on the Web Multimedia on the Web Graphics in web pages Downloading software & media Digital photography JPEG & GIF Streaming media Macromedia Flash Graphics in web pages Graphics are very popular in web pages Graphics

More information

Manual Bitmap Fixture v

Manual Bitmap Fixture v Manual Bitmap Fixture v3.2.2.3 Paderborn, 25/05/2016 Contact: tech.support@malighting.com 1 Bitmap Fixture The MA Lighting Bitmap fixture replaces the previous bitmap effects. The bitmap fixture is a virtual

More information

From: 8/01/2018

From:   8/01/2018 Poster preparation tips This document aims to give advice to people wishing to create posters To print your poster, please use the online submission form Request Poster Printing (A0, A1, A2) from: https://cern.ch/printservice

More information

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS INTRODUCTION Digital computers use sequences of binary digits (bits) to represent numbers, letters, special symbols, music, pictures, and videos.

More information

Welcome. Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs

Welcome. Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs Welcome Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs Health and Safety Course Information General Information Objectives To understand the need for photo

More information

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

42 X : ] [ : 100 : ] III IV. [ Turn over B 2015 42 X : 30. 07. 2015 ] [ : 100 : 10-30 11-30 ] 1. 2. 3. 4. 5. I II III IV V [ Turn over Code No. 42 X 2 B Computer Examination, July, 2015 GRAPHIC DESIGNER COURSE ( Theory ) Time : 1 hour ] [ Max.

More information

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

42 X : ] [ : 100 : ] III IV. [ Turn over A 2015 42 X : 30. 07. 2015 ] [ : 100 : 10-30 11-30 ] 1. 2. 3. 4. 5. I II III IV V [ Turn over Code No. 42 X 2 A Computer Examination, July, 2015 GRAPHIC DESIGNER COURSE ( Theory ) Time : 1 hour ] [ Max.

More information

HOW TO SAVE YOUR DESIGN FILES

HOW TO SAVE YOUR DESIGN FILES HOW TO SAVE YOUR DESIGN FILES READ YOUR BOOK. ART-2423 > raster > vector > holds both raster and layered o Can work in whatever color mode preferred. o Platform-specific (PC vs. Mac) and often version-specific

More information

Matlab = Matrix Laboratory. It is designed to be great at handling matrices.

Matlab = Matrix Laboratory. It is designed to be great at handling matrices. INTRODUCTION: Matlab = Matrix Laboratory. It is designed to be great at handling matrices. Matlab is a high-level language and interactive environment. You write simple ASCII text that is translated into

More information

Autodesk Moldflow Adviser AMA Reports

Autodesk Moldflow Adviser AMA Reports Autodesk Moldflow Adviser 2012 AMA Reports Revision 1, 17 March 2012. Contents Chapter 1 Report Generation Wizard.............................. 1 Creating a new report.......................................

More information

CDS Computing for Scientists. Final Exam Review. Final Exam on December 17, 2013

CDS Computing for Scientists. Final Exam Review. Final Exam on December 17, 2013 CDS 130-001 Computing for Scientists Final Exam Review Final Exam on December 17, 2013 1. Review Sheet 2. Sample Final Exam CDS 130-001 Computing for Scientists Final Exam - Review Sheet The following

More information

1. Introduction to Multimedia

1. Introduction to Multimedia Standard:11 1. Introduction to Multimedia Communication is an integral part of our life. We use various means of communication like radio, newspaper, television, theatre, movies, internet and others. These

More information

Lecture Coding Theory. Source Coding. Image and Video Compression. Images: Wikipedia

Lecture Coding Theory. Source Coding. Image and Video Compression. Images: Wikipedia Lecture Coding Theory Source Coding Image and Video Compression Images: Wikipedia Entropy Coding: Unary Coding Golomb Coding Static Huffman Coding Adaptive Huffman Coding Arithmetic Coding Run Length Encoding

More information

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE IMAGE EDITING

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE IMAGE EDITING EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE IMAGE EDITING The European Computer Driving Licence Foundation Ltd. Portview House Thorncastle Street Dublin 4 Ireland Tel: +

More information

GRAPHICS AND VISUALISATION WITH MATLAB Part 2

GRAPHICS AND VISUALISATION WITH MATLAB Part 2 GRAPHICS AND VISUALISATION WITH MATLAB Part 2 UNIVERSITY OF SHEFFIELD CiCS DEPARTMENT Deniz Savas & Mike Griffiths March 2012 Topics Handle Graphics Animations Images in Matlab Handle Graphics All Matlab

More information

Chapter 14. Landsat 7 image of the retreating Malaspina Glacier, Alaska

Chapter 14. Landsat 7 image of the retreating Malaspina Glacier, Alaska Chapter 14 Landsat 7 image of the retreating Malaspina Glacier, Alaska Earth science is a very visual discipline Graphs Maps Field Photos Satellite images Because of this, all Earth scientists should have:

More information

Image, video and audio coding concepts. Roadmap. Rationale. Stefan Alfredsson. (based on material by Johan Garcia)

Image, video and audio coding concepts. Roadmap. Rationale. Stefan Alfredsson. (based on material by Johan Garcia) Image, video and audio coding concepts Stefan Alfredsson (based on material by Johan Garcia) Roadmap XML Data structuring Loss-less compression (huffman, LZ77,...) Lossy compression Rationale Compression

More information

Haar Wavelet Image Compression

Haar Wavelet Image Compression Math 57 Haar Wavelet Image Compression. Preliminaries Haar wavelet compression is an efficient way to perform both lossless and lossy image compression. It relies on averaging and differencing the values

More information

Web graphics. Introduction

Web graphics. Introduction Web graphics Introduction Role of Web Graphics Role of Web Graphics Although web designers could build a site without graphics, most users would not readily recognize a collection of bare pages as a cohesive

More information

Introduction to. The Help System. Variable and Memory Management. Matrices Generation. Interactive Calculations. Vectors and Matrices

Introduction to. The Help System. Variable and Memory Management. Matrices Generation. Interactive Calculations. Vectors and Matrices Introduction to Interactive Calculations Matlab is interactive, no need to declare variables >> 2+3*4/2 >> V = 50 >> V + 2 >> V Ans = 52 >> a=5e-3; b=1; a+b Most elementary functions and constants are

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Introduction to MATLAB Hanan Hardan 1 Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The name MATLAB is an interactive system

More information

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia The goal for this tutorial is to make sure that you understand a few key concepts related to programming, and that you know the basics

More information

CpSc 101, Fall 2015 Lab7: Image File Creation

CpSc 101, Fall 2015 Lab7: Image File Creation CpSc 101, Fall 2015 Lab7: Image File Creation Goals Construct a C language program that will produce images of the flags of Poland, Netherland, and Italy. Image files Images (e.g. digital photos) consist

More information