SlideShare uma empresa Scribd logo
1 de 11
JPEG 2000
• Image Type
• Image width and height: 1 to 232
– 1
• Component depth: 1 to 32 bits
• Number of components: 1 to 255
• Each component can have a different depth
• Each component can have different spans
• Some Application Requirements
• Compression: lossless, visually lossless, visually lossy
• Progressive spatial resolution and quality resolution
• Security (access protection, identification, integrity)
• Error resilience
JPEG 2000
• Some application requirements
• Strip processing
• Information embedding
• Repetitive encoding/decoding
• ROI encoding/decoding (static and dynamic)
• Fast/Random data access
• Embedded block coding with optimized truncation
• Subbands partitioned into equal blocks
• Blocks encoded independently
• Post process to determine how each block’s bitstream
should be truncated
• Final bitstream composed of a collection of layers
Lossy Video Compression
• Reducing spatial and temporal redundancy
• Why not a 3D DCT?
• 2-stage processing – interframe and intraframe coding
Motion
Estimation
Motion
Compensation
I(x,y,t-1)
I(x,y,t)
Motion
vector (u,v)
E(x,y,t)=I(x,y,t)-I(x-u,y-v,t-1)
DCT
Coding
finding corresponding
pixels
Motion Compensation
M
N(x,y) (x,y)
p
p
(x,y)
(x+u,y+v)
∑∑
−
=
−
=
++++−++=
1
0
1
0
),(),(
1
),(
M
k
N
l
ljykixRlykxC
MN
jiMAE
Macroblock
(16 x 16)
Reference
picture
Minimize MAE
Motion Estimation
• Algorithm 0: full search
• Algorithm 1: 2D-logarithmic search
• Partition the [-p,p] rectangle into a [-p/2,p/2] rectangle and the rest
• Compute the MAE function at the center and 8 perimeter points of
the [-p/2,p/2] rectangle. Let the points be d1 pixels apart
• Find the point with the minimum MAE
• Start with this location and repeat the above steps, but reduce the
distance to d1/2
• Repeat until the k-th search when the distance between the points
is 1 pixel
• Complexity?
• When will this algorithm perform poorly?
Motion Estimation
• Algorithm 2: Hierarchical Motion Estimation
• Make 2 progressively low-resolution and downsampled
versions of the current frame and the reference frame
• Let macroblock of reference frame be located at (x,y)
• Corresponding macroblocks are located in (x/2,y/2) and (x/4,y/4)
for Level 1 and Level 2
• Let the size of the Level 0 macroblock be 16 X 16
• Let the motion vector have a dynamic range of ±p pixels
• Estimate motion vector from the Level 2 image, using a
macroblock of 4 x 4 and a search space of [-p/4,p/4].
• Let MAE be minimized at (u2, v2)
Motion Estimation
• At Level 1, perform a motion vector search on 8 x 8
macroblocks
• The search is centered at (x/2+2u2, y/2+ 2v2)
• The search space is [-1,1]
• Let the minimal MAE be at (u1, v1)
• At Level 0, perform a motion vector search on 16 x 16
macroblocks
• The search is centered at (x+2u1, y+ 2v1)
• The search space is [-1,1]
• Let the minimal MAE be at (u0, v0v)
• Complexity? Tradeoffs?
• When will the algorithm not perform well?
Matching Criteria
• Pixel Difference Classification
• Pixels in the macroblock of the current frame: C(x+k,y+l)
• Those in the reference frame: R(x+i+k,y+j+l)
• PDC(i,j)=ΣkΣlTij (k,l) where Tij (k,l) = 1 if the difference is < t and 0
otherwise
• Motion vector is defined for pixels with maximum PDC
• If t = 2p
the binary form of PDC is:
BPDC(i,j)=ΣkΣl and{xnor(Cp(x+k,y+l), Rp(x+i+k,y+j+l))}
where Cpand Rp are the 8 - p most significant bits of C and R
• If more weight are assigned to the more significant bits
• BPROP(i,j)= ΣkΣl xor(Cp(x+k,y+l), Rp(x+i+k,y+j+l))
• What is the performance difference?
Matching Criteria
• Bit-plane matching
• Let F be a frame
• Filter F with convolution kernel K giving G
• Example: K(i,j) = 1/25 if i,j ∈ [1, 4, 8, 12, 16], 0 otherwise
• Compute binary frame F(i,j) = 1 if F(i,j) ≥ G(i,j), 0
otherwise
• BPM(i,j)= 1/MN ΣkΣl xor(C(x+k,y+l), R(x+i+k,y+j+l))
• Comparison: 720 X 480, 30 fps, [-15, 15]
Search MAE BPM BPM-32
Full search 29.89 3.03 1.16
Logarithmic 1.02 364.45 300.30
Basics of MPEG
• Picture sizes: up to 4095 x 4095
• Most algorithms are for the CCIR 601 format for
video frames
• Y-Cb-Cr color space
• NTSC: 525 lines per frame at 60 fps, 720 x 480 pixel
luminance frame, 360 x 480 pixel chrominance frame
• PAL: 625 lines per frame at 50 fps, 720 x 576 pixel
luminance frame, 360 x 576 pixel chrominance frame
• SIF (source input format) for digital TV
• Luminance resolution: 360 x 240 pixels at 30 fps or 360
x 288 pixels at 25 fps
• Chrominance resolution: half the luminance resolution
in both dimensions
Basics of MPEG
• Macroblocks in MPEG
• Minimum coded unit
• Interleaving: 4 8 x 8 blocks of luminance 1 8 X 8 block of
Cb, 1 8 X 8 block of Cr
• Maximum block dimension: 16
• Other parameters (constrained parameter bit stream)
• Pixel rate: 30 pps
• Motion vectors: ±64 pixels (half-pixel resolution)
• Bit rate: 1856 kbits/s

Mais conteúdo relacionado

Mais procurados

Mapping Parallel Programs into Hierarchical Distributed Computer Systems
Mapping Parallel Programs into Hierarchical Distributed Computer SystemsMapping Parallel Programs into Hierarchical Distributed Computer Systems
Mapping Parallel Programs into Hierarchical Distributed Computer Systems
Mikhail Kurnosov
 

Mais procurados (20)

Digit recognizer by convolutional neural network
Digit recognizer by convolutional neural networkDigit recognizer by convolutional neural network
Digit recognizer by convolutional neural network
 
Lecture 3 image sampling and quantization
Lecture 3 image sampling and quantizationLecture 3 image sampling and quantization
Lecture 3 image sampling and quantization
 
R-FCN : object detection via region-based fully convolutional networks
R-FCN :  object detection via region-based fully convolutional networksR-FCN :  object detection via region-based fully convolutional networks
R-FCN : object detection via region-based fully convolutional networks
 
Class Weighted Convolutional Features for Image Retrieval
Class Weighted Convolutional Features for Image Retrieval Class Weighted Convolutional Features for Image Retrieval
Class Weighted Convolutional Features for Image Retrieval
 
Mapping Parallel Programs into Hierarchical Distributed Computer Systems
Mapping Parallel Programs into Hierarchical Distributed Computer SystemsMapping Parallel Programs into Hierarchical Distributed Computer Systems
Mapping Parallel Programs into Hierarchical Distributed Computer Systems
 
Mask R-CNN
Mask R-CNNMask R-CNN
Mask R-CNN
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Image restoration and reconstruction
 
Lecture 11 (Digital Image Processing)
Lecture 11 (Digital Image Processing)Lecture 11 (Digital Image Processing)
Lecture 11 (Digital Image Processing)
 
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
 
Mathematical tools in dip
Mathematical tools in dipMathematical tools in dip
Mathematical tools in dip
 
Histogram processing
Histogram processingHistogram processing
Histogram processing
 
distance_matrix_ch
distance_matrix_chdistance_matrix_ch
distance_matrix_ch
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Foreground Detection : Combining Background Subspace Learning with Object Smo...
Foreground Detection : Combining Background Subspace Learning with Object Smo...Foreground Detection : Combining Background Subspace Learning with Object Smo...
Foreground Detection : Combining Background Subspace Learning with Object Smo...
 
Near Surface Geoscience Conference 2014, Athens - Real-­time or full­‐precisi...
Near Surface Geoscience Conference 2014, Athens - Real-­time or full­‐precisi...Near Surface Geoscience Conference 2014, Athens - Real-­time or full­‐precisi...
Near Surface Geoscience Conference 2014, Athens - Real-­time or full­‐precisi...
 
Intensity Transformation Functions of image with Matlab
Intensity Transformation Functions of image with Matlab Intensity Transformation Functions of image with Matlab
Intensity Transformation Functions of image with Matlab
 
Lecture 9-online
Lecture 9-onlineLecture 9-online
Lecture 9-online
 
Gonzalez, rafael,c.digitalimageprocessingusing matlab
Gonzalez, rafael,c.digitalimageprocessingusing matlabGonzalez, rafael,c.digitalimageprocessingusing matlab
Gonzalez, rafael,c.digitalimageprocessingusing matlab
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency Domain
 

Destaque

File formats and its types
File formats and its typesFile formats and its types
File formats and its types
Anu Garg
 

Destaque (20)

Mmclass9
Mmclass9Mmclass9
Mmclass9
 
Video formats guide
Video formats guideVideo formats guide
Video formats guide
 
image formats
image formatsimage formats
image formats
 
TYPES OF IMAGE FILE FORMAT - MATHANKUMAR.S - VMKVEC
TYPES OF IMAGE FILE FORMAT - MATHANKUMAR.S - VMKVECTYPES OF IMAGE FILE FORMAT - MATHANKUMAR.S - VMKVEC
TYPES OF IMAGE FILE FORMAT - MATHANKUMAR.S - VMKVEC
 
Image formats
Image formatsImage formats
Image formats
 
Commonly Used Image File Formats
Commonly Used Image File FormatsCommonly Used Image File Formats
Commonly Used Image File Formats
 
Lesson 6 - Image File Formats
Lesson 6 - Image File FormatsLesson 6 - Image File Formats
Lesson 6 - Image File Formats
 
Video formats
Video formatsVideo formats
Video formats
 
multimedia data and file format
multimedia data and file formatmultimedia data and file format
multimedia data and file format
 
Multimedia formats
Multimedia formatsMultimedia formats
Multimedia formats
 
Ppt on audio file formats
Ppt on audio file formatsPpt on audio file formats
Ppt on audio file formats
 
Barriers in Communication
Barriers in CommunicationBarriers in Communication
Barriers in Communication
 
Chapter 2 multimedia authoring and tools
Chapter 2 multimedia authoring and toolsChapter 2 multimedia authoring and tools
Chapter 2 multimedia authoring and tools
 
Image Files Formats
Image Files FormatsImage Files Formats
Image Files Formats
 
Multimedia data and file format
Multimedia data and file formatMultimedia data and file format
Multimedia data and file format
 
Multimedia
MultimediaMultimedia
Multimedia
 
Image file formats
Image file formatsImage file formats
Image file formats
 
File formats and its types
File formats and its typesFile formats and its types
File formats and its types
 
Multimedia authoring tools
Multimedia authoring toolsMultimedia authoring tools
Multimedia authoring tools
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 

Semelhante a Mmclass5

CyberSec_JPEGcompressionForensics.pdf
CyberSec_JPEGcompressionForensics.pdfCyberSec_JPEGcompressionForensics.pdf
CyberSec_JPEGcompressionForensics.pdf
MohammadAzreeYahaya
 
Video Compression Technology
Video Compression TechnologyVideo Compression Technology
Video Compression Technology
Tong Teerayuth
 
"Fundamentals of Monocular SLAM," a Presentation from Cadence
"Fundamentals of Monocular SLAM," a Presentation from Cadence"Fundamentals of Monocular SLAM," a Presentation from Cadence
"Fundamentals of Monocular SLAM," a Presentation from Cadence
Edge AI and Vision Alliance
 
Overview_of_H.264.pdf
Overview_of_H.264.pdfOverview_of_H.264.pdf
Overview_of_H.264.pdf
JunZhao68
 

Semelhante a Mmclass5 (20)

CyberSec_JPEGcompressionForensics.pdf
CyberSec_JPEGcompressionForensics.pdfCyberSec_JPEGcompressionForensics.pdf
CyberSec_JPEGcompressionForensics.pdf
 
Deblocking_Filter_v2
Deblocking_Filter_v2Deblocking_Filter_v2
Deblocking_Filter_v2
 
lossy compression JPEG
lossy compression JPEGlossy compression JPEG
lossy compression JPEG
 
Mmclass4
Mmclass4Mmclass4
Mmclass4
 
Mmclass5b
Mmclass5bMmclass5b
Mmclass5b
 
Using The New Flash Stage3D Web Technology To Build Your Own Next 3D Browser ...
Using The New Flash Stage3D Web Technology To Build Your Own Next 3D Browser ...Using The New Flash Stage3D Web Technology To Build Your Own Next 3D Browser ...
Using The New Flash Stage3D Web Technology To Build Your Own Next 3D Browser ...
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniques
 
MPEG-1 Part 2 Video Encoding
MPEG-1 Part 2 Video EncodingMPEG-1 Part 2 Video Encoding
MPEG-1 Part 2 Video Encoding
 
DC04 Image Compression Standards.pdf
DC04 Image Compression Standards.pdfDC04 Image Compression Standards.pdf
DC04 Image Compression Standards.pdf
 
notes_Image Compression_edited.ppt
notes_Image Compression_edited.pptnotes_Image Compression_edited.ppt
notes_Image Compression_edited.ppt
 
Video Compression Technology
Video Compression TechnologyVideo Compression Technology
Video Compression Technology
 
"Fundamentals of Monocular SLAM," a Presentation from Cadence
"Fundamentals of Monocular SLAM," a Presentation from Cadence"Fundamentals of Monocular SLAM," a Presentation from Cadence
"Fundamentals of Monocular SLAM," a Presentation from Cadence
 
Mmclass3
Mmclass3Mmclass3
Mmclass3
 
Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...
Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...
Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...
 
Overview_of_H.264.pdf
Overview_of_H.264.pdfOverview_of_H.264.pdf
Overview_of_H.264.pdf
 
Basic image processing techniques
Basic image processing techniquesBasic image processing techniques
Basic image processing techniques
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
 
Computer Graphics Unit 1
Computer Graphics Unit 1Computer Graphics Unit 1
Computer Graphics Unit 1
 
Online video object segmentation via convolutional trident network
Online video object segmentation via convolutional trident networkOnline video object segmentation via convolutional trident network
Online video object segmentation via convolutional trident network
 

Mais de Hassan Dar (8)

Mmclass6
Mmclass6Mmclass6
Mmclass6
 
Mmclass2
Mmclass2Mmclass2
Mmclass2
 
Mmclass1
Mmclass1Mmclass1
Mmclass1
 
Lecture1
Lecture1Lecture1
Lecture1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Ch4
Ch4Ch4
Ch4
 
Msd ch2 issues in multimedia
Msd ch2 issues in multimediaMsd ch2 issues in multimedia
Msd ch2 issues in multimedia
 
Mmclass10
Mmclass10Mmclass10
Mmclass10
 

Último

Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
dharasingh5698
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 

Último (20)

NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 

Mmclass5

  • 1. JPEG 2000 • Image Type • Image width and height: 1 to 232 – 1 • Component depth: 1 to 32 bits • Number of components: 1 to 255 • Each component can have a different depth • Each component can have different spans • Some Application Requirements • Compression: lossless, visually lossless, visually lossy • Progressive spatial resolution and quality resolution • Security (access protection, identification, integrity) • Error resilience
  • 2. JPEG 2000 • Some application requirements • Strip processing • Information embedding • Repetitive encoding/decoding • ROI encoding/decoding (static and dynamic) • Fast/Random data access • Embedded block coding with optimized truncation • Subbands partitioned into equal blocks • Blocks encoded independently • Post process to determine how each block’s bitstream should be truncated • Final bitstream composed of a collection of layers
  • 3. Lossy Video Compression • Reducing spatial and temporal redundancy • Why not a 3D DCT? • 2-stage processing – interframe and intraframe coding Motion Estimation Motion Compensation I(x,y,t-1) I(x,y,t) Motion vector (u,v) E(x,y,t)=I(x,y,t)-I(x-u,y-v,t-1) DCT Coding finding corresponding pixels
  • 5. Motion Estimation • Algorithm 0: full search • Algorithm 1: 2D-logarithmic search • Partition the [-p,p] rectangle into a [-p/2,p/2] rectangle and the rest • Compute the MAE function at the center and 8 perimeter points of the [-p/2,p/2] rectangle. Let the points be d1 pixels apart • Find the point with the minimum MAE • Start with this location and repeat the above steps, but reduce the distance to d1/2 • Repeat until the k-th search when the distance between the points is 1 pixel • Complexity? • When will this algorithm perform poorly?
  • 6. Motion Estimation • Algorithm 2: Hierarchical Motion Estimation • Make 2 progressively low-resolution and downsampled versions of the current frame and the reference frame • Let macroblock of reference frame be located at (x,y) • Corresponding macroblocks are located in (x/2,y/2) and (x/4,y/4) for Level 1 and Level 2 • Let the size of the Level 0 macroblock be 16 X 16 • Let the motion vector have a dynamic range of ±p pixels • Estimate motion vector from the Level 2 image, using a macroblock of 4 x 4 and a search space of [-p/4,p/4]. • Let MAE be minimized at (u2, v2)
  • 7. Motion Estimation • At Level 1, perform a motion vector search on 8 x 8 macroblocks • The search is centered at (x/2+2u2, y/2+ 2v2) • The search space is [-1,1] • Let the minimal MAE be at (u1, v1) • At Level 0, perform a motion vector search on 16 x 16 macroblocks • The search is centered at (x+2u1, y+ 2v1) • The search space is [-1,1] • Let the minimal MAE be at (u0, v0v) • Complexity? Tradeoffs? • When will the algorithm not perform well?
  • 8. Matching Criteria • Pixel Difference Classification • Pixels in the macroblock of the current frame: C(x+k,y+l) • Those in the reference frame: R(x+i+k,y+j+l) • PDC(i,j)=ΣkΣlTij (k,l) where Tij (k,l) = 1 if the difference is < t and 0 otherwise • Motion vector is defined for pixels with maximum PDC • If t = 2p the binary form of PDC is: BPDC(i,j)=ΣkΣl and{xnor(Cp(x+k,y+l), Rp(x+i+k,y+j+l))} where Cpand Rp are the 8 - p most significant bits of C and R • If more weight are assigned to the more significant bits • BPROP(i,j)= ΣkΣl xor(Cp(x+k,y+l), Rp(x+i+k,y+j+l)) • What is the performance difference?
  • 9. Matching Criteria • Bit-plane matching • Let F be a frame • Filter F with convolution kernel K giving G • Example: K(i,j) = 1/25 if i,j ∈ [1, 4, 8, 12, 16], 0 otherwise • Compute binary frame F(i,j) = 1 if F(i,j) ≥ G(i,j), 0 otherwise • BPM(i,j)= 1/MN ΣkΣl xor(C(x+k,y+l), R(x+i+k,y+j+l)) • Comparison: 720 X 480, 30 fps, [-15, 15] Search MAE BPM BPM-32 Full search 29.89 3.03 1.16 Logarithmic 1.02 364.45 300.30
  • 10. Basics of MPEG • Picture sizes: up to 4095 x 4095 • Most algorithms are for the CCIR 601 format for video frames • Y-Cb-Cr color space • NTSC: 525 lines per frame at 60 fps, 720 x 480 pixel luminance frame, 360 x 480 pixel chrominance frame • PAL: 625 lines per frame at 50 fps, 720 x 576 pixel luminance frame, 360 x 576 pixel chrominance frame • SIF (source input format) for digital TV • Luminance resolution: 360 x 240 pixels at 30 fps or 360 x 288 pixels at 25 fps • Chrominance resolution: half the luminance resolution in both dimensions
  • 11. Basics of MPEG • Macroblocks in MPEG • Minimum coded unit • Interleaving: 4 8 x 8 blocks of luminance 1 8 X 8 block of Cb, 1 8 X 8 block of Cr • Maximum block dimension: 16 • Other parameters (constrained parameter bit stream) • Pixel rate: 30 pps • Motion vectors: ±64 pixels (half-pixel resolution) • Bit rate: 1856 kbits/s