SlideShare ist ein Scribd-Unternehmen logo
1 von 39
Downloaden Sie, um offline zu lesen
基礎影像處理!
Basic Image Processing
2014應⽤用輔具系統暑期課程!
鄭煒翰
OUTLINE
1. Image Basic Concepts!
2. Image Processing!
3. Lab
• Image Basic Concepts!
Image!
Color!
• Image processing!
• Lab
• Bitmap!
• Vector
• Single Sensor (point)!
• Sensor Stripes (line)!
• Sensor Array (Array)
• dpi (dots per inch) for printer!
• ppi (pixel per inch) for display
• color depth (bit depth)!
monochrome (black & white)!
gray-scale!
16 colors (4 bits)!
256 colors (8 bits)!
high color (15/16 bits)!
true color (24 bits) !
• color model
• 1 bit!
• black & white (B&W)!
0 & 1
• 8 bits!
• 256 different intensities of gray!
• the result of measuring the intensity of light
• 4 bits !
• Red, Green, Blue, Intensity
Microsoft Apple
1. Indexed Color (palette)!
2. RRRGGGBB (8 bits)
3-3-2 bit RGB
• 4, 16, 256(at most)!
• to manage colors of images!
• to save memory & storage!
• speed up display refresh !
!
• the most representative colors, or the fixed
hardware colors, are grouped into a limited size
palette: an array of color elements
File size =!
6x3 bytes (palette) !
+ 7x5x1 bytes (indices) !
! ! ! ! = 53 bytes
File size =!
! ! 7x5x3 bytes!
! ! ! ! = 105 bytes
• 15-bit high color!
• 16-bit high color!
65,536 colors
15 bits
16 bits
• 24 bits!
256 × 256 × 265 = 16,777,216 colors!
!
!
• 32 bits
24 bits
• color depth!
• color model!
RGB!
CMYK!
YIQ!
YUV!
HSV & HSL
• RGB!
RGB 565!
RGB 888!
• CMYK!
for print!
!
• NOT intuition
• YIQ!
Y provide the brightness of TV signals
(Luminance)!
I (In-phase),Q (Quadrature-phase)!
RGB to YIQ!
• Y = 0.299R + 0.587G + 0.114B!
• I = 0.596R - 0.274G - 0.322B!
• Q = 0.211R - 0.523G + 0.312B
• YUV - Y(Luminance), U(Chrominance), V(Chroma)!
focus on the sensitivity of the lightness of vision!
YUV 444 (3 bytes per pixel)!
YUV 422 (4 bytes per 2 pixels)!
YUV 420 (6 bytes per 4 pixels)!
RGB to YUV!
• Y = 0.299R + 0.587G + 0.114B!
• U = -0.147R - 0.289G + 0.436B!
• V = 0.615R - 0.515G - 0.100B
• YUV!
YUV 444 !
Y3 Y2 Y1 Y0 U3 U2 U1 U0 V3 V2 V1 V0!
(Y3 U3 V3) (Y2 U2 V2) (Y1 U1 V1) (Y0 U0 V0)!
Per subsample (1+1+1) = 3 bytes
• YUV!
YUV 422 !
Y3 Y2 Y1 Y0 U1 U0 V1 V0!
(Y3  1/2U1  1/2V1 ) (Y2  1/2U1  1/2V1 ) (Y1 
1/2U0  1/2V0 ) (Y0  1/2U0  1/2V0)!
Per subsample (1 + 0.5 + 0.5) = 2 bytes
• YUV!
YUV 420 !
Y3 Y2 Y1 Y0 U0 V0!
(Y3  1/4U0  1/4V0 ) (Y2  1/4U0  1/4V0 ) (Y1 
1/4U0  1/4V0 ) (Y0  1/4U0  1/4V0)!
Per subsample (1 + 0.25 + 0.25) = 1.5 bytes
• HSV(Hue, Saturation, Value) or HSB(B, Brightness)!
• HSL(Hue, Saturation, Lightness) or HLS
• Image Basic Concepts!
• Image Processing!
Edge Detection!
Histogram!
Noise Removal!
Threshold!
• Lab
Image Processing
Processing Recognition
Computer Vision
• Edge!
• Laplacian!
• Sobel!
• Prewitt!
• Canny
• Edge!
• derivative
• derive from 2nd derivative
• 1st derivative
• 1st derivative
• Double threshold!
• computation : sobel > canny!
• result : canny > sobel
• probability density function (pdf)!
• cumulative distribution function (CDF)!
• equalization
• histogram equalization
• Smoothing Method!
!
!
!
• Median Method
1,1,2,2,2,2,3,3,200
• Before Recognition!
After edge detection!
• grayscale image!
• image size is still large!
Image Segmentation!
• binary image (black & white)!
threshold
Histogram!
!
histogram
equalization
Edge!
Detection!
laplacian
sobel
prewitt
Threshold!
set
threshold
Noise!
Removal!
smoothing
median
Gray level!
RGB
to
Gray
• Image Basic Concepts!
• Image Processing!
• Lab
38
基礎影像處理

Weitere ähnliche Inhalte

Andere mochten auch

Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlabAshutosh Shahi
 
Automatic speech recognition
Automatic speech recognitionAutomatic speech recognition
Automatic speech recognitionRichie
 
Face recognition using neural network
Face recognition using neural networkFace recognition using neural network
Face recognition using neural networkIndira Nayak
 
Speech recognition
Speech recognitionSpeech recognition
Speech recognitionCharu Joshi
 
Voice Recognition
Voice RecognitionVoice Recognition
Voice RecognitionAmrita More
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image ProcessingSahil Biswas
 

Andere mochten auch (7)

Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlab
 
Automatic speech recognition
Automatic speech recognitionAutomatic speech recognition
Automatic speech recognition
 
Face recognition using neural network
Face recognition using neural networkFace recognition using neural network
Face recognition using neural network
 
Image processing ppt
Image processing pptImage processing ppt
Image processing ppt
 
Speech recognition
Speech recognitionSpeech recognition
Speech recognition
 
Voice Recognition
Voice RecognitionVoice Recognition
Voice Recognition
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 

Kürzlich hochgeladen

Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
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 01KreezheaRecto
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
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 engineeringmulugeta48
 
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 Performancesivaprakash250
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
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 - VDineshKumar4165
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 

Kürzlich hochgeladen (20)

Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
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
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
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
 
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
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
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
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 

基礎影像處理