Lecture 10: Tutorial Sakrapee (Paul) Paisitkriangkrai Evan Tan A/Prof. Jian Zhang

Similar documents
Overview : Image/Video Coding Techniques

Overview : Image/Video Coding Techniques

Lecture 6: Multimedia Information Retrieval Dr. Jian Zhang

Lecture 6: Internet Streaming Media

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2006

Lecture 8: Multimedia Information Retrieval (I)

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2007

Lecture 5: Error Resilience & Scalability

Lecture 1: Introduction & Image and Video Coding Techniques (I)

Internet Streaming Media

Internet Streaming Media

Lecture 5: Video Compression Standards (Part2) Tutorial 3 : Introduction to Histogram

RTP: A Transport Protocol for Real-Time Applications

Video Compression Standards (II) A/Prof. Jian Zhang

RTP. Prof. C. Noronha RTP. Real-Time Transport Protocol RFC 1889

CS 218 F Nov 3 lecture: Streaming video/audio Adaptive encoding (eg, layered encoding) TCP friendliness. References:

Transport protocols Introduction

Preprocessing Short Lecture Notes cse352. Professor Anita Wasilewska

Networking Applications

4 rd class Department of Network College of IT- University of Babylon

Multimedia! 23/03/18. Part 3: Lecture 3! Content and multimedia! Internet traffic!

Part 3: Lecture 3! Content and multimedia!

Basic Reliable Transport Protocols

Lecture 7: Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2007

Lecture 7: Internet Streaming Media

Introduction to Networked Multimedia An Introduction to RTP p. 3 A Brief History of Audio/Video Networking p. 4 Early Packet Voice and Video

COMP 249 Advanced Distributed Systems Multimedia Networking. Performance of Multimedia Delivery on the Internet Today

Overview. Slide. Special Module on Media Processing and Communication

Transporting Voice by Using IP

Lecture 14: Multimedia Communications

CS640: Introduction to Computer Networks. Application Classes. Application Classes (more) 11/20/2007

Streaming Video over the Internet. Dr. Dapeng Wu University of Florida Department of Electrical and Computer Engineering

RTP/RTCP protocols. Introduction: What are RTP and RTCP?

Multimedia Communications

Module 10 MULTIMEDIA SYNCHRONIZATION

Practical Image and Video Processing Using MATLAB

Multimedia Protocols. Foreleser: Carsten Griwodz Mai INF-3190: Multimedia Protocols

Quality of Service (QoS) Whitepaper

Connected components - 1

CITS 4402 Computer Vision

MATRIX BASED INDEXING TECHNIQUE FOR VIDEO DATA

Digital Image Processing

Multimedia Communication

Digital Image Processing. Lecture # 15 Image Segmentation & Texture

Chapter - 2 : IMAGE ENHANCEMENT

Lecture 3: Image & Video Coding Techniques (II) & Standards (I) A/Prof. Jian Zhang

CoE4TN4 Image Processing

Holistic Correlation of Color Models, Color Features and Distance Metrics on Content-Based Image Retrieval

Computer Vision & Digital Image Processing. Image segmentation: thresholding

Image Segmentation. Schedule. Jesus J Caban 11/2/10. Monday: Today: Image Segmentation Topic : Matting ( P. Bindu ) Assignment #3 distributed

ETSF10 Internet Protocols Transport Layer Protocols

Feature Extraction from Wavelet Coefficients for Pattern Recognition Tasks. Rajat Aggarwal Chandu Sharvani Koteru Gopinath

CS519: Computer Networks. Lecture 9: May 03, 2004 Media over Internet

Robotics Programming Laboratory

Recommended Readings

VoIP. ALLPPT.com _ Free PowerPoint Templates, Diagrams and Charts

CSCD 433/533 Advanced Networks Fall Lecture 14 RTSP and Transport Protocols/ RTP

Robust Lossless Data Hiding. Outline

(Refer Slide Time 00:17) Welcome to the course on Digital Image Processing. (Refer Slide Time 00:22)

Extensions to RTP to support Mobile Networking: Brown, Singh 2 within the cell. In our proposed architecture [3], we add a third level to this hierarc

Basic Algorithms for Digital Image Analysis: a course

9/8/2016. Characteristics of multimedia Various media types

Lecture 7: Flow Control"

IST MPEG-4 Video Compliant Framework

Texture Segmentation by Windowed Projection

MISB EG Motion Imagery Standards Board Engineering Guideline. 24 April Delivery of Low Bandwidth Motion Imagery. 1 Scope.

RTP model.txt 5/8/2011

Digital Asset Management 5. Streaming multimedia

Streaming (Multi)media

Lecture 7: Introduction to Multimedia Content Description. Reji Mathew & Jian Zhang NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2009

TCP and Congestion Control (Day 1) Yoshifumi Nishida Sony Computer Science Labs, Inc. Today's Lecture

Provide a generic transport capabilities for real-time multimedia applications Supports both conversational and streaming applications

Object recognition (part 1)

Scalable Packet Loss Recovery for Mobile P2P Streaming

Region-based Segmentation

Uncompressed HD Video Streaming with Congestion Control

MPEG-4: Simple Profile (SP)

RTP Profile for TCP Friendly Rate Control draft-ietf-avt-tfrc-profile-03.txt

Multimedia networking: outline

EE 584 MACHINE VISION

MaVIS: Media-aware Video Streaming Mechanism

Real-Time Protocol (RTP)

H.323. Definition. Overview. Topics

COMP371 COMPUTER GRAPHICS

Image representation. 1. Introduction

EE 701 ROBOT VISION. Segmentation

Differential Geometry: Circle Patterns (Part 1) [Discrete Conformal Mappinngs via Circle Patterns. Kharevych, Springborn and Schröder]

E0005E - Industrial Image Analysis

Lecture 4: Video Compression Standards (Part1) Tutorial 2 : Image/video Coding Techniques. Basic Transform coding Tutorial 2

Outline. QoS routing in ad-hoc networks. Real-time traffic support. Classification of QoS approaches. QoS design choices

CHAPTER 6 DETECTION OF MASS USING NOVEL SEGMENTATION, GLCM AND NEURAL NETWORKS

Homework #1. Displays, Alpha Compositing, Image Processing, Affine Transformations, Hierarchical Modeling

Solutions for Assignment 5

EC-433 Digital Image Processing

Error Concealment Used for P-Frame on Video Stream over the Internet

Scene Detection Media Mining I

MITIGATING THE EFFECT OF PACKET LOSSES ON REAL-TIME VIDEO STREAMING USING PSNR AS VIDEO QUALITY ASSESSMENT METRIC ABSTRACT

Lecture 10: Image Descriptors and Representation

Real-Time Control Protocol (RTCP)

Multimedia Networking

Transcription:

Lecture : Tutorial Sakrapee (Paul) Paisitkriangkrai Evan Tan A/Prof. Jian Zhang NICTA & CSE UNSW COMP959 Multimedia Systems S 9 jzhang@cse.unsw.edu.au

Part I: Media Streaming Evan Tan Acknowledgement: Thanks to Reji Mathew for providing the original material

Q Consider a video-on-demand system designed for streaming video and audio content over the internet. What problems would you encounter, if you tried to stream the video and audio content directly over UDP/IP without using RTP? COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Cannot detect lost packets Unable to reorder received packets Unable to do audio-video stream synchronization RTP provides: Pay load identification, and Frame indication to support applications / decoders COMP959 Multimedia Systems Lecture 7 Slide 4 J Zhang

Q Consider streaming of a live event from a video source (i.e. sender) to a client (i.e. receiver) using RTP/RTCP. After some time of successful operation, the video source ignores all RTCP receiver reports (RR) from the client. What problems could arise if all RR are ignored by the video source? COMP959 Multimedia Systems Lecture 7 Slide 5 J Zhang

Not enough information to adapt to network RTCP Receiver Report (RR) Sent by receivers (not active senders) Provides a report of reception statistics COMP959 Multimedia Systems Lecture 7 Slide 6 J Zhang

Q What functionality does RTSP provide? What transport protocol is specified (if any) for RTSP? COMP959 Multimedia Systems Lecture 7 Slide 7 J Zhang

Establishes and controls one or more continuous media streams Provides Internet VCR controls Transport-independent COMP959 Multimedia Systems Lecture 7 Slide 8 J Zhang

Q4 In a peer-to-peer video conferencing situation what tools or techniques are available to achieve better resilience to packet loss? COMP959 Multimedia Systems Lecture 7 Slide 9 J Zhang

Receiver Error concealment Fill in missing blocks COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Sender Adaptive rate control Packetization strategy Error resilience increase intra-frames intra-block refresh introduce redundancies COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Part II: Multimedia Information Retrieval Sakrapee (Paul) Paisitkriangkrai

COMP959 Multimedia Systems Lecture 7 Slide J Zhang Tutorial Question Consider an image with distinct grey-levels Calculate the co-occurrence matrix if the position operator is defined as one pixel to the left

Revision on Texture The Grey-level Co-occurrence Matrix (GLCM) can be used to calculate the second-order statistics. Given the following x pixel image with distinct greylevels: And the position operator defined as one pixel to the left COMP959 Multimedia Systems Lecture 7 Slide 4 J Zhang

Revision on co-occurrence matrix The x co-occurrence matrix can be calculated as follows:- Gray-Levels at left Gray-Levels at current pel N N COMP959 Multimedia Systems Lecture 7 Slide 5 J Zhang N N N = the number of pixels with grey-level that have a gray-level of one pixel to the left N = the number of pixels with grey-level that have a gray-level of one pixel to the left N = the number of pixels with grey-level that have a gray-level of one pixel to the left N = the number of pixels with grey-level that have a gray-level of one pixel to the left

COMP959 Multimedia Systems Lecture 7 Slide 6 J Zhang Revision on co-occurrence matrix Position Operator (One pixel to the left) can not be defined Current Pixel Grey-level of with grey level of one pixel to the left

Revision on co-occurrence matrix Grey-level of with grey level of one pixel to the left Current Pixel Hence, the final co-occurrence matrix will be equal to Gray-Levels at current pel Gray-Levels at left COMP959 Multimedia Systems Lecture 7 Slide 7 J Zhang

Tutorial Question Step Step The size of the co-occurrence matrix will be equal to the number of distinct grey-levels x the number of distinct grey-levels (L x L) Since, the image has distinct grey-levels, the size of the co-occurrence matrix is x. Gray-Levels at current pel Gray-Levels at left COMP959 Multimedia Systems Lecture 7 Slide 8 J Zhang

Tutorial Question Step Step Count the number of pixels in the image which have the relationship between itself and its neighbors specified by position operator. The position operator in our question is defined as one pixel to the left N = the number of pixels with grey-level that have a gray-level of one pixel to the left = COMP959 Multimedia Systems Lecture 7 Slide 9 J Zhang

Tutorial Question Step Step Count the number of pixels in the image which have the relationship between itself and its neighbors specified by position operator. The position operator in our question is defined as one pixel to the left N = the number of pixels with grey-level that have a gray-level of one pixel to the left = 8 COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Tutorial Question Step Step Count the number of pixels in the image which have the relationship between itself and its neighbors specified by position operator. The position operator in our question is defined as one pixel to the left N = the number of pixels with grey-level that have a gray-level of one pixel to the left = 8 COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Tutorial Question Step Step Count the number of pixels in the image which have the relationship between itself and its neighbors specified by position operator. The position operator in our question is defined as one pixel to the left N = the number of pixels with grey-level that have a gray-level of one pixel to the left = 4 COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Tutorial Question Step Step Fill in the answers calculated from Step Hence, the final co-occurrence matrix will be:- Gray-Levels at current pel Gray-Levels at left 8 8 4 COMP959 Multimedia Systems Lecture 7 Slide J Zhang

COMP959 Multimedia Systems Lecture 7 Slide 4 J Zhang Tutorial Question Consider two images A and B, and histogram similarity matrix C A B.5.5.5.5 C For each image, calculate histogram, cumulative histogram and CCV For the two images, calculate L histogram distance, L cumulative histogram distance, histogram intersection, Normalized CCV distance and Niblack s histogram similarity value. Assume that average filtering has already been applied to the image. Suppose that the threshold for the size of the connected component is.

Revision - Histogram A histogram is a graphical display of tabulated frequencies. Grey- Level Frequenc y COMP959 Multimedia Systems Lecture 7 Slide 5 J Zhang

Revision - Histogram A histogram is a graphical display of tabulated frequencies. Grey- Level Frequenc y 8 COMP959 Multimedia Systems Lecture 7 Slide 6 J Zhang

Revision - Histogram A histogram is a graphical display of tabulated frequencies. Grey- Level No. of Observations 8 6 COMP959 Multimedia Systems Lecture 7 Slide 7 J Zhang

Revision - Histogram A histogram is a graphical display of tabulated frequencies. Grey- Level Frequency 8 8 6 4 Frequency 6 Grey- Level of Grey- Level of Grey- Level of COMP959 Multimedia Systems Lecture 7 Slide 8 J Zhang

COMP959 Multimedia Systems Lecture 7 Slide 9 J Zhang Tutorial Question - Histogram 6 8 Frequency Grey-Level 8 8 9 Frequency Grey-Level Image B Image A Histogram of Image A Histogram of Image B

Revision Cumulative Histogram A cumulative histogram is a mapping that counts the cumulative number of observations in all of the bins up to the specified bin. Grey-Level Histogram No. of Observations Grey-Level Cumulative Histogram No. of Observations 8 +8 = 9 6 9+6 = 5 COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Tutorial Question Cumulative Histogram Histogram of image A Cumulative Histogram of image A Histogram of image B Grey- Frequency Level 8 6 Grey- Frequency Level 9 8 8 Grey- Frequency Level 9 5 Grey- Frequency Level 9 7 5 Cumulative Histogram of image B COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Revision - Niblack s Similarity Measurement COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Revision Color Coherence Vector Color coherence vector (CCV) is a tool to distinguish images whose color histograms are indistinguishable. Coherence measure classifies pixels as either coherent or incoherent. 4 Steps to compute CCV Step: conduct average filtering Step: discretize the image into n distinct colors Step: Classify the pixels within a given color bucket as either coherent or incoherent a pixel is coherent if the size of the connected component exceeds a fixed value. Step4: Obtain CCV by collecting the information of both coherent and incoherent. COMP959 Multimedia Systems Lecture 7 Slide J Zhang

Revision CCV (Step,) Step Since average filter has already been applied, this step will be skipped. Step Discretize the image We discretize both images into three distinct colors COMP959 Multimedia Systems Lecture 7 Slide 4 J Zhang

COMP959 Multimedia Systems Lecture 7 Slide 5 J Zhang Revision CCV (Step ) Step Classify the pixels as either coherent or incoherent. Discretized Image E E A C A E F A C A E E A A A D E A B A D D A B A Connected Component 6 Size Color F E D C B A Label Connected Table

Revision CCV (Step ) Step Classify the pixels as either coherent or incoherent A pixel is coherent if the size of the connected component exceeds a fixed value of ; otherwise, the pixel is incoherent. Label A B C D E F Color Color Size 6 α β Connected Table Color Coherent Vector COMP959 Multimedia Systems Lecture 7 Slide 6 J Zhang

Revision CCV (Step ) Step Classify the pixels as either coherent or incoherent A pixel is coherent if the size of the connected component exceeds a fixed value of ; otherwise, the pixel is incoherent. Label A B C D E F Color Color Size 6 α β 6 Connected Table Color Coherent Vector COMP959 Multimedia Systems Lecture 7 Slide 7 J Zhang

Revision CCV (Step ) Step Classify the pixels as either coherent or incoherent A pixel is coherent if the size of the connected component exceeds a fixed value of ; otherwise, the pixel is incoherent. Label A B C D E F Color Color Size 6 α β 6 Connected Table Color Coherent Vector COMP959 Multimedia Systems Lecture 7 Slide 8 J Zhang

COMP959 Multimedia Systems Lecture 7 Slide 9 J Zhang Tutorial Question - CCV Image B Image A β 6 α Color Color Coherent Vector of Image A β 8 6 8 α Color Color Coherent Vector of Image B

Tutorial Question Bin Bin Histogram 8 6 Histogram 9 8 8 Cumulative Histogram 9 5 Cumulative Histogram 9 7 5 CCV α β 6 CCV α β 8 6 8 Image A Image B COMP959 Multimedia Systems Lecture 7 Slide 4 J Zhang

Tutorial Question L Histogram Distance D = -9 + 8-8 + 6-8 = 4 L Cumulative Histogram Distance D = -9 + 9-7 + 5-5 = 4 Histogram Intersection D = [min(,9) + min(8,8) + min(6,8)] / ( + 8 + 6) = [9 + 8 + 6] / 5 = / 5 =.9 COMP959 Multimedia Systems Lecture 7 Slide 4 J Zhang

Tutorial Question Normalized CCV D = (-8)/(+8+) + (-)/(++) + (6-6)/(6+6+) + (-)/(++) + (-8)/(+8+) + (-)/(++) = / + / +5/ =.87 Niblack s similarity measure Transpose(Z) = [ -9, 8-8, 6-8 ] = [,, ] T D = Z CZ.5 = [ ].5.5 [ ] =.5 8 COMP959 Multimedia Systems Lecture 7 Slide 4 J Zhang

Tutorial Question Consider the boundary and the numbering schemes Digitize the boundary Select the red node as starting point, calculate the chain code in counter-clockwise direction Calculate the normalized chain code by using the first difference of the chain code COMP959 Multimedia Systems Lecture 7 Slide 4 J Zhang

Tutorial Question Revision on Chain Code Represent a boundary by a connected sequence of straight-line segments of specified length and direction Based on 4- or 8- connectivity Depends on the starting point and the spacing of the sampling grid COMP959 Multimedia Systems Lecture 7 Slide 44 J Zhang

Tutorial Question Revision on Chain Code Steps to calculate chain code Digitize image Decide a sampling gird, the denser the more accurate Assign boundary point to grid node based on the distance of the grid node to the boundary, d < threshold assign boundary point to the node Select a numbering scheme and define a starting point Follow the boundary in a specified direction (clockwise or counter clockwise), assign a direction to the segments connecting neighboring boundary points d 4 5 7 COMP959 Multimedia Systems Lecture 7 Slide 45 J Zhang

Tutorial Question Steps to solve question. Digitize input boundary Straightforward since the sampling grid and distance threshold are given as the rectangular grid and the dotted circles COMP959 Multimedia Systems Lecture 7 Slide 46 J Zhang

Tutorial Question Steps to solve question. Boundary following is a bit more complex for 4-connectivity (starting point given as the red point, direction given as counter clockwise) Some ancillary boundary points have to be added The chain code is COMP959 Multimedia Systems Lecture 7 Slide 47 J Zhang

Tutorial Question Steps to solve question The adding of ancillary points should be consistent with the direction of boundary following COMP959 Multimedia Systems Lecture 7 Slide 48 J Zhang

Tutorial Question Steps to solve question. Normalize for rotation by using the first difference of the 4-direction chain code The difference is obtained by counting the number of direction changes that separate two adjacent elements of the code. The chain code is The first difference of the chain code is COMP959 Multimedia Systems Lecture 7 Slide 49 J Zhang