Computer and Machine Vision

Similar documents
ECEN 5653/4653 RT Digital Media Systems

CS415 Human Computer Interaction

Advanced Computer Networks

Ch. 1: Audio/Image/Video Fundamentals Multimedia Systems. School of Electrical Engineering and Computer Science Oregon State University

To discuss. Types of video signals Analog Video Digital Video. Multimedia Computing (CSIT 410) 2

!"#"$%& Some slides taken shamelessly from Prof. Yao Wang s lecture slides

Video compression principles. Color Space Conversion. Sub-sampling of Chrominance Information. Video: moving pictures and the terms frame and

Digital Media. Daniel Fuller ITEC 2110

Television History. Date / Place E. Nemer - 1

Introduction & Colour

CS A490 Digital Media and Interactive Systems

Audio and Video II. Video signal +Color systems Motion estimation Video compression standards +H.261 +MPEG-1, MPEG-2, MPEG-4, MPEG- 7, and MPEG-21

Processing. Electrical Engineering, Department. IIT Kanpur. NPTEL Online - IIT Kanpur

Understanding Human Color Vision

Man-Machine-Interface (Video) Nataliya Nadtoka coach: Jens Bialkowski

Essence of Image and Video

Image and video encoding: A big picture. Predictive. Predictive Coding. Post- Processing (Post-filtering) Lossy. Pre-

Chapter 3 Fundamental Concepts in Video. 3.1 Types of Video Signals 3.2 Analog Video 3.3 Digital Video

So far. Chapter 4 Color spaces Chapter 3 image representations. Bitmap grayscale. 1/21/09 CSE 40373/60373: Multimedia Systems

Inputs and Outputs. Review. Outline. May 4, Image and video coding: A big picture

Getting Images of the World

06 Video. Multimedia Systems. Video Standards, Compression, Post Production

Multimedia. Course Code (Fall 2017) Fundamental Concepts in Video

EECS150 - Digital Design Lecture 12 Project Description, Part 2

Lecture 2 Video Formation and Representation

An Overview of Video Coding Algorithms

Transitioning from NTSC (analog) to HD Digital Video

Midterm Review. Yao Wang Polytechnic University, Brooklyn, NY11201

VIDEO Muhammad AminulAkbar

Fundamentals of Multimedia. Lecture 3 Color in Image & Video

Color Spaces in Digital Video

Motion Video Compression

How Does H.264 Work? SALIENT SYSTEMS WHITE PAPER. Understanding video compression with a focus on H.264

PAL uncompressed. 768x576 pixels per frame. 31 MB per second 1.85 GB per minute. x 3 bytes per pixel (24 bit colour) x 25 frames per second

Video Basics. Video Resolution

Video Compression. Representations. Multimedia Systems and Applications. Analog Video Representations. Digitizing. Digital Video Block Structure

Video 1 Video October 16, 2001

Multimedia Systems Video I (Basics of Analog and Digital Video) Mahdi Amiri April 2011 Sharif University of Technology

MULTIMEDIA TECHNOLOGIES

May 2014 Phil on Twitter Monitor Calibration & Colour - Introduction

Video Compression Basics. Nimrod Peleg Update: Dec. 2003

Chapter 6 & Chapter 7 Digital Video CS3570

Software Analog Video Inputs

ATSC vs NTSC Spectrum. ATSC 8VSB Data Framing

Murdoch redux. Colorimetry as Linear Algebra. Math of additive mixing. Approaching color mathematically. RGB colors add as vectors

5.1 Types of Video Signals. Chapter 5 Fundamental Concepts in Video. Component video

Analog and Digital Video Basics

CHAPTER INTRODUCTION:

AT65 MULTIMEDIA SYSTEMS DEC 2015

ELEG5502 Video Coding Technology

Dan Schuster Arusha Technical College March 4, 2010

Multimedia Networking

Content storage architectures

Digital Media. Lecture 10: Video & Compression. Georgia Gwinnett College School of Science and Technology Modified from those of Dr.

Chapter 10 Basic Video Compression Techniques

Video Demystified. A Handbook for the Digital Engineer. Fifth Edition. by Keith Jack

Part II Video. General Concepts MPEG1 encoding MPEG2 encoding MPEG4 encoding

Contents. xv xxi xxiii xxiv. 1 Introduction 1 References 4

Lecture 23: Digital Video. The Digital World of Multimedia Guest lecture: Jayson Bowen

Chrontel CH7015 SDTV / HDTV Encoder

Module 1: Digital Video Signal Processing Lecture 5: Color coordinates and chromonance subsampling. The Lecture Contains:

Multimedia Systems. Part 13. Mahdi Vasighi

Lecture 2 Video Formation and Representation

The Development of a Synthetic Colour Test Image for Subjective and Objective Quality Assessment of Digital Codecs

Welcome Back to Fundamentals of Multimedia (MR412) Fall, ZHU Yongxin, Winson

Video (Fundamentals, Compression Techniques & Standards) Hamid R. Rabiee Mostafa Salehi, Fatemeh Dabiran, Hoda Ayatollahi Spring 2011

Section 14 Parallel Peripheral Interface (PPI)

COMP 249 Advanced Distributed Systems Multimedia Networking. Video Compression Standards

VIDEO 101: INTRODUCTION:

1. Broadcast television

Checkpoint 2 Video Encoder

Analog and Digital Video Basics. Nimrod Peleg Update: May. 2006

The World Leader in High Performance Signal Processing Solutions. Section 15. Parallel Peripheral Interface (PPI)

sdiscope Signal Analysis Software Version 6

Rounding Considerations SDTV-HDTV YCbCr Transforms 4:4:4 to 4:2:2 YCbCr Conversion

Overview: Video Coding Standards

Introduction to Video Compression Techniques. Slides courtesy of Tay Vaughan Making Multimedia Work

Colour Reproduction Performance of JPEG and JPEG2000 Codecs

Implementation of an MPEG Codec on the Tilera TM 64 Processor

OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

Mahdi Amiri. April Sharif University of Technology

Camera Interface Guide

VIDEO 101 LCD MONITOR OVERVIEW

ESI VLS-2000 Video Line Scaler

Video. Philco H3407C (circa 1958)

Chapter 2 Introduction to

Essence of Image and Video

H.261: A Standard for VideoConferencing Applications. Nimrod Peleg Update: Nov. 2003

Electronic Publishing

Network Video Analyzer. Signal Analysis Software Version 6

Digital Image Processing

Video Information Glossary of Terms

Chapter 4 Color in Image and Video. 4.1 Color Science 4.2 Color Models in Images 4.3 Color Models in Video

Chrominance Subsampling in Digital Images

A320 Supplemental Digital Media Material for OS

decodes it along with the normal intensity signal, to determine how to modulate the three colour beams.

RECOMMENDATION ITU-R BT * Video coding for digital terrestrial television broadcasting

Nintendo. January 21, 2004 Good Emulators I will place links to all of these emulators on the webpage. Mac OSX The latest version of RockNES

Information Transmission Chapter 3, image and video

Video coding. Summary. Visual perception. Hints on video coding. Pag. 1

Transcription:

Computer and Machine Vision Introduction to Continuous Camera Capture, Sampling, Encoding, Decoding and Transport January 22, 2014 Sam Siewert

Video Camera Fundamentals Overview Introduction to Codecs (Encode/Decode for Digital Media) Digital Sampling Color Models Color: Luminance/Chrominance Digital Video Encoding Pixel (POINT) Frame (XY Pixel Map) Sequence of Frames (Group of Pictures) Digital Media Systems Encoding, Transport, Decoding MPEG Basics and Standards Sam Siewert 2

CCD Frame Grabbers Bt878 Micro-programmable NTSC Capture Luminance and Chrominance ADC Channels YPrPb (YCrCb) We Will See how Y is Gray, and PrPb are Red and Blue Bands that are Sub-sampled CCD Collects Charge Over Time Through Exposure to Photons (Light field) Integration Time Charge is Read Out Through ADC Channels Sam Siewert 3

Analog NTSC Signal for Camera As Seen on Agilent MSO Composite Luminance and Chorma Signals at 6MhZ Interlaced ODD/EVEN line raster Sam Siewert 4

Rev-A Computational Photometer Board Dual TI NTSC Decoders and FTDI Uplink Plugs Into DE0, DE2i and DE4 Terasic Boards GPIO Header(s) Can Uplink to DE2i or any Embedded Linux Board Via USB 2.0 Reference Startix State Machine, FIFO, and Transforms Sam Siewert 5

Example NTSC Digital Output As Seen on Texas Instruments Decoder Digital Output for YCrCb by Intronix Logic Analyzer Clock, Data, Control at Logic Levels 6 MhZ NTSC decode, Sampled at 10MhZ or Higher Sam Siewert 6

Real-Time Video Codecs and Tools Codec = Compression, Decompression (Encode/Decode) Basic Inputs to Encoder (Original Uncompressed Data) POINT or Pixel: RGB and YCrCb Color Encoding MACRO BLOCK: Portion of a frame (e.g. 8x8 pixels) FRAME: XY Spatial Map of Pixels (Aspect Ratio, Resolution) SEQUENCE: Group of Pictures (GoP) I-Frame Single Frame Compression (Start) Forward/Backward Difference Images Uncompressed Images Portable Pixmap (PPM) Leverage HW and SW MPEG Encoder/Decoder VLC Media Player ffmpeg - http://www.ffmpeg.org/ Sam Siewert 7

Color Considerations 1. Physics Visible Spectrum 2. Physiology What the Human Eye is Sensitive to (Rods and Cones) and what the Brain Perceives 3. Psychology What Looks Good 4. Technology Palette and Methods of Display and Projection of Light Sam Siewert 8

POINT or PIXEL: RGB Color Model RGB, 24-bit, 8 bits [0-255] for each color band (x, y, z) sampled Each Pixel is a 3-D Vector in RGB Space, Opponent Colors Blue Cyan Magenta White Black Green Red Yellow Sam Siewert 9

Discussion What Does Eye See? Color Models (E.g. CIE Rec 709) RGB Cube HSV - Hue/Saturation/Value Hue Similarity to R, G, Y, B Saturation Color vs. Brightness Value Low=Black, High=Color Luminance (Candela/Square-Meter) Light Passing Through Area Forming a Solid Angle in A Direction Candela (Photonic Power )= Watts/Steradian More Precise than Brightness Chrominance ( CrCb or UV in YCrCb or YUV) U=Blue Luminance (Y) V=Red - Luminance (Y) Wavelength Spectrum - ROYGBIV RGB Cube HSV Cylinder/Cone Sam Siewert 10

YUV ITU-R BT.601 Component Video Standard Y is Luma UV is Color information designed so that BW TV (CRT) will still display grayscale image Used by NTSC, PAL, SECAM (Standard Definition TV) RGB to YUV Conversion Y = (0.299 * R) + (0.587 * G) + (0.114 * B) U = -(0.147 * R) - (0.289 * G) + (0.436 * B) V = (0.615 * R) - (0.515 * G) - (0.100 * B) YUV to RGB Conversion R = Y + 1.140V G = Y (0.394 * U) (0.581 * V) B = Y + (2.032 * U) Sam Siewert 11

POINT: R, G, or B band only vs. Balance R G B Balanced Y = 0.3R + 0.59G + 0.11B Sam Siewert 12

POINT: YCrCb RGB An Alternative to RGB is YUV, Where Y is Luminance and CrCb is Chrominance The following 2 sets of formulae are taken from information from Keith Jack's excellent book "Video Demystified" (ISBN 1-878707-09-4). RGB to YCrCb Conversion (For Computers with RGB [0-255]) Y = (0.257 * R) + (0.504 * G) + (0.098 * B) + 16 Cr = (0.439 * R) - (0.368 * G) - (0.071 * B) + 128 Cb = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128 YCrCb to RGB Conversion R = 1.164(Y - 16) + 1.596(Cr - 128) G = 1.164(Y - 16) - 0.813(Cr - 128) - 0.392(Cb - 128) B = 1.164(Y - 16) + 2.017(Cb - 128) In both these cases, you have to clamp the output values to keep them in the [0-255] range. Sam Siewert 13

POINT: YCrCb 4:4:4 24-bit Format For every Y sample in a scan-line, there is also one CrCb sample Each Y (Y7:Y0), Cr (Cr7:Cr0), & Cb (Cb7:Cb0) Sample is 8 bits No compression between RGB and YCrCb 4:4:4 0 319 76,480 76,799 = Y, Cr, and Cb sample = Y sample only Sam Siewert 14

POINT: YCrCb 4:2:2 16-bit Format For every 2 Y samples in a scan-line, there is one CrCb sample 0 319 48 bit to 32 bit 76,480 76,799 = Y, Cr, and Cb sample = Y sample only Pixel-0 = Y7:Y0 0, Cb7:Cb0 0 ; Pixel-1 = Y7:Y0 1, Cr7:Cr0 0 Pixel-2 = Y7:Y0 2, Cb7:Cb0 1 ; Pixel-3 = Y7:Y0 3, Cr7:Cr0 1 Pixel-4 = Y7:Y0 4, Cb7:Cb0 2 ; Pixel-5 = Y7:Y0 5, Cr7:Cr0 2 Sam Siewert 15

FRAME: XY Pixel Maps FRAME Resolution Computer Graphics Resolutions VGA = 640x480 SVGA=800x600 NTSC = Standard Defintion, 720x480 High Definition (Progressive full frame or Interlaced) 720i/p = 1280x720 1080i/p = 1920x1080 FRAME Aspect Ratios X to Y Ratio NTSC = 3:2, 720x480 (240) HD 720 = 16:9, 1280x720 (80) HD 1080 = 16:9, 1920x1080 (120) 2K = 17:9, 2048x1080 (120) http://en.wikipedia.org/wiki/display_resolution FRAME Rates 60i, NTSC = 59.94 odd/even, or 29.97 24p, Cinema = 24 fps (motion blur) 60p, HDTV Progressive Modes Sam Siewert 16

Display and Camera Resolutions Red Epic 645 9K: 9334x7000, Red Epic 617 28K: 28000x9334 Sam Siewert 17

SEQUENCE: Series of Frames in Encoded Group of Pictures I-Frame Initial Frame in GoP, Compression Within Frame Only P-Frame Predicted Frame B-Frame Bi-Directional Interpolated Frame (Differences Between Last I- Frame and Next P-Frame or I-Frame) Sam Siewert 18

Uncompressed Streams Used Only in Digital Cinema and Computer / Machine Vision True Color (RGB, 8-bits Each), YCrCb (16-bits Each Pixel) Uncompressed Lossless or Lossy I-Frame Only MJPEG (http://en.wikipedia.org/wiki/mjpeg), JPEG 2000 (http://en.wikipedia.org/wiki/jpeg_2000 ) Not Practical for Digital Video Transport Standard Definition 720x480 RGB @ 30fps Requires 30MB/sec High Definition 720p (1280x720x3 = 2700KB/frame) @ 30fps = 80MB/sec High Defintion 1080p (1920x1080x3 = 6075KB/frame) @ 30fps = 178MB/sec DCI 2K, 2048x1080x3 (6480KB/frame) @ 24fps = 152MB/sec DCI 4K, 4096x2160x3 (25920KB/frame) @ 24fps = 607.5MB/sec Sam Siewert 19

MPEG2 Encode/Decode Introduction Sam Siewert 20

Group of Pictures: High Level View Sam Siewert 21

MPEG-2: Order Of Operators POINT (Pixel) Encoding Macro-Block Lossy Intra-Frame Compression Motion-Based Compression in Group of Pictures Sam Siewert 22