Masaki Hayashi 2015, Autumn Visualization with 3D CG Digital 2D Image Basic.

Slides:



Advertisements
Similar presentations
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009.
Advertisements

ECE 472/572 - Digital Image Processing Lecture 10 - Color Image Processing 10/25/11.
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing
Digital image processing Chapter 6. Image enhancement IMAGE ENHANCEMENT Introduction Image enhancement algorithms & techniques Point-wise operations Contrast.
Multimedia communications EG 371Dr Matt Roach Multimedia Communications EG 371 and EE 348 Dr Matt Roach Lecture 6 Image processing (filters)
School of Computing Science Simon Fraser University
3. Introduction to Digital Image Analysis
Edges and Scale Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski – From Sandlot ScienceSandlot.
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
Image Enhancement.
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 4 – Visual Perception and Digital Image Representation Klara Nahrstedt Spring 2011.
Page 18/30/2015 CSE 40373/60373: Multimedia Systems 4.2 Color Models in Images  Colors models and spaces used for stored, displayed, and printed images.
Presentation Image Filters
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
Image Formation. Input - Digital Images Intensity Images – encoding of light intensity Range Images – encoding of shape and distance They are both a 2-D.
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
2/3/04© University of Wisconsin, CS559 Spring 2004 Last Time Color –Transforming between two color spaces –A gamut is the set of displayable colors in.
Simple Image Processing Speaker : Lin Hsiu-Ting Date : 2005 / 04 / 27.
Chapter 5 Bitmapped Images Multimedia Systems. Key Points For displayed images, physical dimension = pixel dimension/device resolution. For displayed.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Digital image processing Chapter 3. Image sampling and quantization IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction 2. Sampling in the two-dimensional.
1 IMAGE ACQUSITION. 2 VIDEO 3 TRANSMISSION OF IMAGES/VIDEO.
G52IIP, School of Computer Science, University of Nottingham 1 G52IIP Summary Topic 1 Overview of the course Related topics Image processing Computer.
Chapter 5: Neighborhood Processing
G52IIP, School of Computer Science, University of Nottingham 1 G52IIP 2011 Summary Topic 1 Overview of the course Related topics Image processing Computer.
09/17/02 (C) 2002, University of Wisconsin, CS 559 Last Time Color Spaces File formats.
Autonomous Robots Vision © Manfred Huber 2014.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 4 – Audio and Digital Image Representation Klara Nahrstedt Spring 2010.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
Digital Image Processing Lecture - 6 Autumn 2009.
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
Tytus Bernas Biological applications of image processing.
Image Enhancement in the Spatial Domain.
DIGITAL MEDIA FOUNDATIONS
Miguel Tavares Coimbra
Sampling, Quantization, Color Models & Indexed Color
Image enhancement algorithms & techniques Point-wise operations
JPEG Image Coding Standard
Digital 2D Image Basic Masaki Hayashi
Image Pyramids and Applications
Chapter I, Digital Imaging Fundamentals: Lesson II Capture
Dr. Jim Rowan ITEC 2110 Bitmapped Images
CMPT 365 Multimedia Systems
Fourier Transform.
EEE3112 Introduction to Multimedia Application & Technology Chapter 1: Image Development by Muhazam Mustapha, September 2012.
Digital Image Fundamentals
Fundamentals of Image Processing A Seminar on By Alok K. Watve
EEE 501 Applied Digital Image Processing Dr. Türker İnce
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Image Compression Techniques
Basic Concepts of Digital Imaging
Topic 1 Three related sub-fields Image processing Computer vision
Lecture 2: Image filtering
Lecture 5 - Bitmapped Images
Image Enhancement in the Spatial Domain
Image segmentation Grey scale image Binary image
Review and Importance CS 111.
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Templates and Image Pyramids
Presentation transcript:

Masaki Hayashi 2015, Autumn Visualization with 3D CG Digital 2D Image Basic

2D Image Digitization

2D coordinate in image processing

Scanning

pixel Gray scale & RGB Grey scale (Black & white) RGB (Color)

pixel H size V size Image size 320 x x 480  SDTV 1920 x 1080  HDTV 3840 x 2160  4K 4096 x 2160  4K (cinema) 7680 x 4320  8K Size (Resolution) Spatial

Image data > series of data > 2 dimensional data

pixel H size V size Depth Image depth Depth (sampling bit rate) 8 bits (256 levels) 10 bits (1024 levels) 12 bits (4096 levels) 16 bits, bits RGB || 8 bits X 3 || 256 X 256 X 256 = million colors Depth and Color

Aspect ratio : 1 4 : 3 (TV in the past) 16 : 9 (HDTV, 4K, 8K) Square pixel, basically : 2 (Film)

Features of image (summary) Resolution Depth Sharpness, spatial detail Dynamic range

Image compression

JPEG Most popular Mosquito noise, Blocky noise Not suitable for Logo, text, cartoon… GIF Popular in the past. Motion-GIF Only 256 colors PNG Improved version of GIF, Most used on the Internet Un-limited color. OK for both natural image and logo stuff Loss-less compression (no quality selection) Image format

How JPEG compress image Split into 8×8 blocks Discrete Cosine Transform (DCT) JPEG data series Quantization & Entropy coding Image Approx. 1/10 compress 8×8 blocky noise Mosquito noise at sharp edge Important Less important 8×8 spatial 8×8 frequency INPUT OUTPUT

How GIF compress image Reduce colors LZW compress GIF data series colors Good for logo, font, cartoon Bad for photograph No blocky noise, no mosquito Taken over by PNG 256 colors INPUT OUTPUT (similar to ZIP)

How PNG compress image Deflate compress GIF data series Good for all kinds Loss less No blocky noise, no mosquito INPUT OUTPUT colors (similar to ZIP)

Compression method of ZIP, etc LZW, Deflate,... etc. INPUT compress 0 x 8, 1 x x 10 Output The more random the input data is, the less compression the output is.

Image processing

B (Brightness) H (Hue) S (Saturation) G (Green) R (Red) B (Blue) Color scheme Additive color mixing

RGB Chroma: Y = 0.3R G B Brightness: C R = R - Y C B = B - Y Color scheme Brightness + Chroma Hue + Saturation Brightness (Luminance)

Chroma Hue + Saturation H = tan -1 (C R /C B ) S = C R 2 + C B 2 CRCR CBCB S H Color scheme CRCBCRCB HSHS

White Yellow Cyan Green Magenta Red Blue Color bar

Histogram Input image Intensity distribution of an image Histogram

Correction

convolution 50x(-1) + 50x(-1) + 150x(-1) + 100x(-1) + 100x x(-1) + 120x(-1) + 120x(-1) + 120x(-1) = Filter (3x3 kernel) Input image Output image Spatial filtering

1/9 Mean filter 1/9 Smoothing

Median filter Input image Output image Sorting by numerical order Smoothing

Gaussian smoothing Text: © 2004 Robert Fisher, Simon Perkins, Ashley Walker, Erik Wolfart σ=1.0 Smoothing

Laplacian filter Second spatial derivative of an image Edge detection

Edge detection

Gaussian Smoothing Laplacian Laplacian is much noise sensitive To reduce high frequency noise in the output image in out Edge detection

Laplacian in out Edge enhancement using edge signal detected by laplacian Often referred as “Laplacian” Edge enhancement

Smoothing in out x k k : scaling constant for adjusting enhancement Text: © 2004 Robert Fisher, Simon Perkins, Ashley Walker, Erik Wolfart Unsharp filter (edge enhancement)

Spatial signal Frequency signal f f transforming re-transforming Spatial domain vs Frequency domain

DFT IDFT Original image Frequency signal Spatial domain Frequency domain Spatial domain vs Frequency domain DFT: Discrete Fourier Transform

DFT IDFT Original image Frequency signal Output image Mask = remove high frequency Filtered signal apply Spatial domain Frequency domain Digital filter

Gap If output pixel position is calculated by using input pixel position 2 times magnification Input Output Image magnification

Input pixel position should be calculated by output pixel position 2 times magnification Interpolated from the neighbored 4 pixel values Input Output Interporation

Original image 5 times zooming No interpolation (Nearest neighbor) With interpolation (Bi-linear) Image magnification

This works but not enough 1/2 shrinking Input Output Aliasing problem Image shrinking

5 times shrinking Undesired signal called "aliasing" appears Input Output Image shrinking

Aliasing noise

Mipmap Original image

fp / 2 fp / 4 Aliasing fp / 2 fp / 4 No aliasing LPF fp / 2 Sub-sampling & unti-aliasing

No unti- aliasing With unti-aliasing (Low pass filtered prior to the shrinking) Unti-aliasing