27
Introduction • What are we going to learn? • Module outline. • Some details. • Assessment.

Introduction What are we going to learn? Module outline. Some details. Assessment

Embed Size (px)

Citation preview

Page 1: Introduction What are we going to learn? Module outline. Some details. Assessment

Introduction

• What are we going to learn?

• Module outline.

• Some details.

• Assessment.

Page 2: Introduction What are we going to learn? Module outline. Some details. Assessment

Module outline

1. Introduction and revision of Hexadecimal.

2. Graphics.3. Bitmap Images 1 (Introduction).4. Bitmap Images 2 (Colour).5. Image manipulation and processing. 6. MIDI. (Bring Headphones)7. Audio. (Bring Headphones)8. Compression techniques.9. Video compression 110. Video compression 211. Audio compression.12. Revision.13. Time constrained assignment.

Page 3: Introduction What are we going to learn? Module outline. Some details. Assessment

Who, Where and When?

• Who am I ? – Dr. Malcolm Wilson.

• Where am I ? – Rm. MR17, but not all the time. Generally never Wednesday or Thursday.

• Email ? - [email protected]

• Course notes – eng.nene.ac.uk/~malc.

Page 4: Introduction What are we going to learn? Module outline. Some details. Assessment

Who, Where and When?

• New topic every week.• Assignment 1 – Issued week 8th

March, hand in week 3rd May. • Assignment 2 – Time constrained

assignment in the final class.

Page 5: Introduction What are we going to learn? Module outline. Some details. Assessment

How is it taught?(Good and bad things

about Matlab) • We use Matlab for video and audio.• Matlab is high level and it we be shown

that we can look at audio and video media without having to do a lot of programming (which we would otherwise need.

• Matlab uses standard programming constructs.

• It is new to you, so you have to learn the syntax. So that’s fair to everyone.

• The college cannot supply you with a personal copy, so if you want it at home you will have to “obtain” it.

Page 6: Introduction What are we going to learn? Module outline. Some details. Assessment

How is it taught?(Good and bad things

about Matlab) • Matlab is widely used in the

scientific world.• It is normal to start off hating

Matlab, before you see the benefits of using it.

• Try to bear with it.• This is not intended as a

Matlab course, you will only be taught what is useful to Media technology.

Page 7: Introduction What are we going to learn? Module outline. Some details. Assessment

In there any/much maths?

•Yes, because all media involves representation by numbers and manipulation will involve some maths.

•Any maths used will be explained.

•Matlab will do most necessary calculations for you.

•So don’t be scared off.

•At the same time accept that you will need some maths for this course.

Page 8: Introduction What are we going to learn? Module outline. Some details. Assessment

Media Technology

• We will see how media is represented in file formats and in the computer.

• How to manipulate and process images and sound files as done in commercial software.

• Why compression is needed and how it works.

Page 9: Introduction What are we going to learn? Module outline. Some details. Assessment

What use is all of this?

• Any computing discipline involving media.– Sound editors– Video editors– Image editors

• Dealing with problems involving media files. (Games)

• Application of the techniques to other applications– Eg midi real time control.

• It is interesting?

Page 10: Introduction What are we going to learn? Module outline. Some details. Assessment

Media Technology

• Primarily concerned with the following digital media:

– Graphics– Synthesised Sound (Headphones)– Digitised Sound (Headphones)– Digitised Images.

Page 11: Introduction What are we going to learn? Module outline. Some details. Assessment

Media Data Files

• Most media data files contain and start with “headers”.

• “Headers” contain information about the file such as:– How long it is. – How it should be played back.– How it is coded.

• Media files also contain specially coded forms of the original data.

Page 12: Introduction What are we going to learn? Module outline. Some details. Assessment

Graphics - Vector Images

• Image composed and stored as a sequence of preset shapes or objects.

• Lines, rectangles, ellipses, text etc.

• Described in terms of size, position, drawing colour, fill colour.

• Each object’s characteristics can be edited independently while in this graphical form.

Page 13: Introduction What are we going to learn? Module outline. Some details. Assessment

Graphics – Vector Images

• Differs from a bitmap image which we will see later.

• Often called vector graphics.

• Common drawing packages allow the creation of this form of image.

• Compactly storable in files. PDF

• We will look at typical commands and file editing.

Page 14: Introduction What are we going to learn? Module outline. Some details. Assessment

Graphics – Vector Images

• Example of a graphic vector image created using “Autoshapes”.

My text in red

• Other popular vector graphic tools are Paint shop pro and Photoshop.

Page 15: Introduction What are we going to learn? Module outline. Some details. Assessment

Bitmaps - Raster Images

• Does not use individual shapes.

• Whole image contains many pixel elements (pixels).

• So every pixel (about 300,000 in a 480 x 640 image) is described by position and colour.

Page 16: Introduction What are we going to learn? Module outline. Some details. Assessment

Bitmaps - Raster Images

• We cannot edit or change any shape drawn without changing all of the pixels concerned.

• Microsoft Paint produces Bitmap images.

• We can manipulate/create the bitmaps in the computer.

Page 17: Introduction What are we going to learn? Module outline. Some details. Assessment

Colour

• Not to be underestimated.

• Eyes response.

• Primary and secondary colours.

• Colour coding.

• Representation in the computer.

• Colour systems RGB HSL.

• Conversion.

Page 18: Introduction What are we going to learn? Module outline. Some details. Assessment

Image Processing

• A short introduction to image processing.

• Filters.

• Convolution.

• Simple applications– Sharpening– Softening

Page 19: Introduction What are we going to learn? Module outline. Some details. Assessment

Image Manipulation

• Affine transformations

• Scaling

• Rotating

• Translating images

• Compound transformation

Page 20: Introduction What are we going to learn? Module outline. Some details. Assessment

Sound (midi)

• Just like images we can have two forms in the computer.

• One form remembers the pitch, duration and loudness and individual sound of the notes.

• This is stored as MIDI (musical instrument digital interface) form.

• Like vector graphics the sound can be edited by changing the individual characteristics of the notes.

Page 21: Introduction What are we going to learn? Module outline. Some details. Assessment

Sound (midi)

• We can edit a MIDI file to change:– Instruments– Timing– Notes– Loudness

Page 22: Introduction What are we going to learn? Module outline. Some details. Assessment

Sound

• Other form relies on digitisation of real life sounds.

• Sampled sound.

• A common example of this are “wav” sound wave sounds.

• Like bitmap images we cannot edit individual notes without changing all of the samples which the note is comprised of.

Page 23: Introduction What are we going to learn? Module outline. Some details. Assessment

Sound

• But we can manipulate it.– Speed it up.– Make it louder.– Join sounds.– Mix sounds.

• Using Matlab

Page 24: Introduction What are we going to learn? Module outline. Some details. Assessment

Compression

• Digitised sound and video produces a lot of data.

• In particular digitised television quality pictures produce data at 270 Mbits/second which is faster than most hard disks, CD roms and networks devices can accommodate.

• We need to compress data for use on computers.

Page 25: Introduction What are we going to learn? Module outline. Some details. Assessment

Compression.

• Original CD ROM could only deliver data at 1.2 Mbps.

• 40 x is therefore 48 Mbps.

• DVD data rate (single speed) 11 Mbps.

• 16 x DVD gives 176 Mbps.

• Still can’t do telly?

Page 26: Introduction What are we going to learn? Module outline. Some details. Assessment

Compression

• We have two types of compression.

• Lossy compression and lossless compression.

• As the names suggest lossy compression loses some of the original signal, while lossless does not.

• Lossless techniques such as run-length encoding and Huffman coding achieve compression by creating shorter codes. This is not always possible.

Page 27: Introduction What are we going to learn? Module outline. Some details. Assessment

Compression

• Lossy techniques rely on throwing away some information which the viewer or listener will not notice too much.

• Involves changing the data to some other form. (Transform)

• Most lossy techniques are noticeable.

• The more lossy compression that is applied, the more the compression effect will be noticeable.