SlideShare a Scribd company logo
1 of 17
Computational Tools for
Image Processing
Lecture 1, Jan 22nd, 2007
Part 2 (8:10-9:20pm) by Lexing Xie
EE4830 Digital Image Processing
http://www.ee.columbia.edu/~xlx/ee4830/
-2-
Outline
 Image processing tools
 in C, Java, … and everything else
 Matlab
 Getting started
 Image I/O and display
 Matrix manipulation
 Image processing demos
 The daily practice of image manipulation
 Data types and file formats
 Resources, pointers and getting help
 Limitations of image processing …
-3-
Image Processing Toolboxes
 In C/C++
 IPL … http://www.cs.nott.ac.uk/~jzg/nottsvision/old/index.html
 OpenCV http://sourceforge.net/projects/opencvlibrary
http://tech.groups.yahoo.com/group/OpenCV/
 ImageMagick http://www.imagemagick.org/
 Insight Toolkit ITK (medical image) http://www.itk.org/
 List of tools at mathtools.net
http://www.mathtools.net/C_C__/Image_Processing/
 In Java
 Java Media APIs: JAI, JMF, Java image I/O …
http://java.sun.com/javase/technologies/desktop/media/
 http://www.mathtools.net/Java/Image_Processing/index.html
 Other
 Python Imaging Library (PIL) http://www.pythonware.com/products/pil/
numpy, scipy
-4-
Matlab is …
 : a numerical computing environment and programming
language. Created by The MathWorks, MATLAB allows easy matrix
manipulation, plotting of functions and data, implementation of
algorithms, creation of user interfaces, and interfacing with programs
in other languages.
 Main Features:
 basic data structure is matrix
 optimized in speed and syntax for matrix computation
 Accessing Matlab on campus
 Student Version
 Matlab + Simulink $99
 Image Processing Toolbox $59
 Other relevant toolboxes $29~59 (signal processing, statistics,
optimization, …)
 CUNIX and EE lab (12th floor) has Matlab installed with CU site-
license
-5-
Why MATLAB?
 Shorter code, faster computation
 Focus on ideas, not implementation
 C:
#include <math.h>
double x, f[500];
for( x=1.; x < 1000; x=x+2)
f[(x-1)/2]=2*sin(pow(x,3.))/3+4.56;
 MATLAB:
f=2*sin((1:2:1000).^3)/3+4.56;
But: scripting language, interpreted, can be slow
-6-
MATLAB: Working With Matrices
 Everything is treated as a matrix
 Elementary matrix manipulation
 zeros(), ones(), size(), eig(), inv()
 Operators and special characters
 a(: ,1:2:256)=b’.*c
 String
 imstr=[‘this is lena’];
imglena=imread([imstr(9:end),’.png’]);
 ischar(), num2str(), …
-7-
MATLAB (contd.)
 M-files:
 functions
 scripts
 Language constructs
 Comment: %
 if .. else… for… while… end
 Help:
 help function_name, helpwin, helpdesk
 lookfor, demo
-8-
Image Processing Toolbox
 File I/O and display
 imread(), imwrite()
 imshow(), image(), imagesc(), movie()
Demo: how different are these two images?
-9-
Image Processing Toolbox (contd)
 Linear operations
 fft2(), dct2(), conv2(), filter2()
 Non-linear operations
 median(), dilate(), erode(), histeq()
 Statistics and analysis
 imhist(), ,mean2(), corr2(), std2()
 Colormap and type conversions
 colormap(), brighten(), rgbplot()
 rgb2ycbcr(), hsv2rgb(), im2uint8()…
Demo: image histogram and enhancement.
-10-
Outline
 Image processing tools
 in C, Java, … and everything else
 Matlab
 Getting started
 Image I/O and display
 Matrix manipulation
 Image processing demos
 Other points of interest:
 Data types and file formats
 Resources, pointers and getting help
-11-
Image Data Types
 Basic unit in disk: byte (8 bits)
 Images are stored as unsigned integers (0-
255)
 Depends on the color space and the
precision / bit depth
 1bit, 4bit, 8bit, 24bit, 32bit (+alpha channel),
indexed colors (gif, 2-8 bits)
 In MATLAB:
 uint8doubleuint8
-12-
File Formats
 Why different file formats?
 Convenient to use
 Compact representation
 How many formats do we have?
 e.g. 30+ in a consumer image software
(ACDSee)
 There are much more out there:
raster, vector, metafile, … and growing
 Basic structure: Header + Data
-13-
Format Comparison
Format RAW BMP GIF PNG JPG
Lossy? N N N N Y
Compressed? N N Y Y Y
192K 193K 52.2K 106K 16K
192K 193K 5K
(4bit)
23K 20K
Fine prints Raw
data
Header
~1K
Look-up
table +
data
Quality
factor 80
Two 256x256 color images
Why do the two images have different sizes as GIF/PNG/JPG files ?
-14-
Classification
 Types that MATLAB supports:
 BMP, JPEG, PNG, GIF, TIFF, XWD, HDF, PCX, …
 Other open-source libraries from “google”
Image
(bitmap)
lossless
compression
no compression
no loss
raw, bmp,
pgm, ppm,
gif, tiff …
png, jpeg,
gif, tiff,
jpeg2000…
lossy
compression
jpeg, tiff,
jpeg2000
…
-15-
Resources and pointers
 Google, Wikipedia, Mathworld …
 Getting Help in Matlab
 Matlab help, Image Processing Demos
 DIP matlab tutorial online
 Usenet groups
 Commercial and free “image” processing
software kits:
 GIMP, Adobe Photoshop, Macromedia Fireworks
 Adobe Illustrator, Corel Draw
 Picassa, ACDSee, Windows Paint, XV
-16-
Summary
 Image processing programming tools
 MATLAB basics
 Using image processing toolbox
 Data type and file formats
 Resources and pointers
-17-
< the end; & >

More Related Content

Similar to lec1b.ppt

Digital image processing - What is digital image processign
Digital image processing - What is digital image processignDigital image processing - What is digital image processign
Digital image processing - What is digital image processignE2MATRIX
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introductionideas2ignite
 
Lecture1_computer vision-2023.pdf
Lecture1_computer vision-2023.pdfLecture1_computer vision-2023.pdf
Lecture1_computer vision-2023.pdfssuserff72e4
 
Kevin merchantss
Kevin merchantssKevin merchantss
Kevin merchantssdharmesh69
 
KEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENTKEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENTtejas1235
 
Python Training on python and SQL PPT.pptx
Python Training on python and SQL PPT.pptxPython Training on python and SQL PPT.pptx
Python Training on python and SQL PPT.pptxxelihom699
 
VitaFlow | Mageswaran Dhandapani [Pramati]
VitaFlow | Mageswaran Dhandapani [Pramati]VitaFlow | Mageswaran Dhandapani [Pramati]
VitaFlow | Mageswaran Dhandapani [Pramati]Pramati Technologies
 
PPT ON MACHINE LEARNING by Ragini Ratre
PPT ON MACHINE LEARNING by Ragini RatrePPT ON MACHINE LEARNING by Ragini Ratre
PPT ON MACHINE LEARNING by Ragini RatreRaginiRatre
 
Matlab for Electrical Engineers
Matlab for Electrical EngineersMatlab for Electrical Engineers
Matlab for Electrical EngineersManish Joshi
 
Linux and Open Source in Math, Science and Engineering
Linux and Open Source in Math, Science and EngineeringLinux and Open Source in Math, Science and Engineering
Linux and Open Source in Math, Science and EngineeringPDE1D
 
Deep learning study 3
Deep learning study 3Deep learning study 3
Deep learning study 3San Kim
 
RGBEXCEL: AN RGB IMAGE DATA EXTRACTOR AND EXPORTER FOR EXCEL PROCESSING
RGBEXCEL: AN RGB IMAGE DATA EXTRACTOR AND EXPORTER FOR EXCEL PROCESSINGRGBEXCEL: AN RGB IMAGE DATA EXTRACTOR AND EXPORTER FOR EXCEL PROCESSING
RGBEXCEL: AN RGB IMAGE DATA EXTRACTOR AND EXPORTER FOR EXCEL PROCESSINGsipij
 
Shimaa Ramadan Abd Elbaset
Shimaa Ramadan Abd ElbasetShimaa Ramadan Abd Elbaset
Shimaa Ramadan Abd Elbasetshimaa ramadan
 

Similar to lec1b.ppt (20)

Digital image processing - What is digital image processign
Digital image processing - What is digital image processignDigital image processing - What is digital image processign
Digital image processing - What is digital image processign
 
Image processing in MATLAB
Image processing in MATLABImage processing in MATLAB
Image processing in MATLAB
 
Image Processing Using MATLAB
Image Processing Using MATLABImage Processing Using MATLAB
Image Processing Using MATLAB
 
Matlab Introduction
Matlab IntroductionMatlab Introduction
Matlab Introduction
 
IT for beginners
IT for beginnersIT for beginners
IT for beginners
 
Lecture1_computer vision-2023.pdf
Lecture1_computer vision-2023.pdfLecture1_computer vision-2023.pdf
Lecture1_computer vision-2023.pdf
 
Seeing Like Software
Seeing Like SoftwareSeeing Like Software
Seeing Like Software
 
Kevin merchantss
Kevin merchantssKevin merchantss
Kevin merchantss
 
KEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENTKEVIN MERCHANT DOCUMENT
KEVIN MERCHANT DOCUMENT
 
Python Training on python and SQL PPT.pptx
Python Training on python and SQL PPT.pptxPython Training on python and SQL PPT.pptx
Python Training on python and SQL PPT.pptx
 
VitaFlow | Mageswaran Dhandapani [Pramati]
VitaFlow | Mageswaran Dhandapani [Pramati]VitaFlow | Mageswaran Dhandapani [Pramati]
VitaFlow | Mageswaran Dhandapani [Pramati]
 
PPT ON MACHINE LEARNING by Ragini Ratre
PPT ON MACHINE LEARNING by Ragini RatrePPT ON MACHINE LEARNING by Ragini Ratre
PPT ON MACHINE LEARNING by Ragini Ratre
 
Ember
EmberEmber
Ember
 
Matlab for Electrical Engineers
Matlab for Electrical EngineersMatlab for Electrical Engineers
Matlab for Electrical Engineers
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Linux and Open Source in Math, Science and Engineering
Linux and Open Source in Math, Science and EngineeringLinux and Open Source in Math, Science and Engineering
Linux and Open Source in Math, Science and Engineering
 
Deep learning study 3
Deep learning study 3Deep learning study 3
Deep learning study 3
 
RGBEXCEL: AN RGB IMAGE DATA EXTRACTOR AND EXPORTER FOR EXCEL PROCESSING
RGBEXCEL: AN RGB IMAGE DATA EXTRACTOR AND EXPORTER FOR EXCEL PROCESSINGRGBEXCEL: AN RGB IMAGE DATA EXTRACTOR AND EXPORTER FOR EXCEL PROCESSING
RGBEXCEL: AN RGB IMAGE DATA EXTRACTOR AND EXPORTER FOR EXCEL PROCESSING
 
Introduction to r
Introduction to rIntroduction to r
Introduction to r
 
Shimaa Ramadan Abd Elbaset
Shimaa Ramadan Abd ElbasetShimaa Ramadan Abd Elbaset
Shimaa Ramadan Abd Elbaset
 

More from RithikRaj25

More from RithikRaj25 (17)

html1.ppt
html1.ppthtml1.ppt
html1.ppt
 
Data
DataData
Data
 
Data
DataData
Data
 
Introduction To Database.ppt
Introduction To Database.pptIntroduction To Database.ppt
Introduction To Database.ppt
 
Data.ppt
Data.pptData.ppt
Data.ppt
 
DataTypes.ppt
DataTypes.pptDataTypes.ppt
DataTypes.ppt
 
NoSQL.pptx
NoSQL.pptxNoSQL.pptx
NoSQL.pptx
 
NoSQL
NoSQLNoSQL
NoSQL
 
text classification_NB.ppt
text classification_NB.ppttext classification_NB.ppt
text classification_NB.ppt
 
html1.ppt
html1.ppthtml1.ppt
html1.ppt
 
slide-keras-tf.pptx
slide-keras-tf.pptxslide-keras-tf.pptx
slide-keras-tf.pptx
 
Intro_OpenCV.ppt
Intro_OpenCV.pptIntro_OpenCV.ppt
Intro_OpenCV.ppt
 
PR7.ppt
PR7.pptPR7.ppt
PR7.ppt
 
objectdetect_tutorial.ppt
objectdetect_tutorial.pptobjectdetect_tutorial.ppt
objectdetect_tutorial.ppt
 
14_ReinforcementLearning.pptx
14_ReinforcementLearning.pptx14_ReinforcementLearning.pptx
14_ReinforcementLearning.pptx
 
datamining-lect11.pptx
datamining-lect11.pptxdatamining-lect11.pptx
datamining-lect11.pptx
 
week6a.ppt
week6a.pptweek6a.ppt
week6a.ppt
 

Recently uploaded

VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 

Recently uploaded (20)

VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 

lec1b.ppt

  • 1. Computational Tools for Image Processing Lecture 1, Jan 22nd, 2007 Part 2 (8:10-9:20pm) by Lexing Xie EE4830 Digital Image Processing http://www.ee.columbia.edu/~xlx/ee4830/
  • 2. -2- Outline  Image processing tools  in C, Java, … and everything else  Matlab  Getting started  Image I/O and display  Matrix manipulation  Image processing demos  The daily practice of image manipulation  Data types and file formats  Resources, pointers and getting help  Limitations of image processing …
  • 3. -3- Image Processing Toolboxes  In C/C++  IPL … http://www.cs.nott.ac.uk/~jzg/nottsvision/old/index.html  OpenCV http://sourceforge.net/projects/opencvlibrary http://tech.groups.yahoo.com/group/OpenCV/  ImageMagick http://www.imagemagick.org/  Insight Toolkit ITK (medical image) http://www.itk.org/  List of tools at mathtools.net http://www.mathtools.net/C_C__/Image_Processing/  In Java  Java Media APIs: JAI, JMF, Java image I/O … http://java.sun.com/javase/technologies/desktop/media/  http://www.mathtools.net/Java/Image_Processing/index.html  Other  Python Imaging Library (PIL) http://www.pythonware.com/products/pil/ numpy, scipy
  • 4. -4- Matlab is …  : a numerical computing environment and programming language. Created by The MathWorks, MATLAB allows easy matrix manipulation, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs in other languages.  Main Features:  basic data structure is matrix  optimized in speed and syntax for matrix computation  Accessing Matlab on campus  Student Version  Matlab + Simulink $99  Image Processing Toolbox $59  Other relevant toolboxes $29~59 (signal processing, statistics, optimization, …)  CUNIX and EE lab (12th floor) has Matlab installed with CU site- license
  • 5. -5- Why MATLAB?  Shorter code, faster computation  Focus on ideas, not implementation  C: #include <math.h> double x, f[500]; for( x=1.; x < 1000; x=x+2) f[(x-1)/2]=2*sin(pow(x,3.))/3+4.56;  MATLAB: f=2*sin((1:2:1000).^3)/3+4.56; But: scripting language, interpreted, can be slow
  • 6. -6- MATLAB: Working With Matrices  Everything is treated as a matrix  Elementary matrix manipulation  zeros(), ones(), size(), eig(), inv()  Operators and special characters  a(: ,1:2:256)=b’.*c  String  imstr=[‘this is lena’]; imglena=imread([imstr(9:end),’.png’]);  ischar(), num2str(), …
  • 7. -7- MATLAB (contd.)  M-files:  functions  scripts  Language constructs  Comment: %  if .. else… for… while… end  Help:  help function_name, helpwin, helpdesk  lookfor, demo
  • 8. -8- Image Processing Toolbox  File I/O and display  imread(), imwrite()  imshow(), image(), imagesc(), movie() Demo: how different are these two images?
  • 9. -9- Image Processing Toolbox (contd)  Linear operations  fft2(), dct2(), conv2(), filter2()  Non-linear operations  median(), dilate(), erode(), histeq()  Statistics and analysis  imhist(), ,mean2(), corr2(), std2()  Colormap and type conversions  colormap(), brighten(), rgbplot()  rgb2ycbcr(), hsv2rgb(), im2uint8()… Demo: image histogram and enhancement.
  • 10. -10- Outline  Image processing tools  in C, Java, … and everything else  Matlab  Getting started  Image I/O and display  Matrix manipulation  Image processing demos  Other points of interest:  Data types and file formats  Resources, pointers and getting help
  • 11. -11- Image Data Types  Basic unit in disk: byte (8 bits)  Images are stored as unsigned integers (0- 255)  Depends on the color space and the precision / bit depth  1bit, 4bit, 8bit, 24bit, 32bit (+alpha channel), indexed colors (gif, 2-8 bits)  In MATLAB:  uint8doubleuint8
  • 12. -12- File Formats  Why different file formats?  Convenient to use  Compact representation  How many formats do we have?  e.g. 30+ in a consumer image software (ACDSee)  There are much more out there: raster, vector, metafile, … and growing  Basic structure: Header + Data
  • 13. -13- Format Comparison Format RAW BMP GIF PNG JPG Lossy? N N N N Y Compressed? N N Y Y Y 192K 193K 52.2K 106K 16K 192K 193K 5K (4bit) 23K 20K Fine prints Raw data Header ~1K Look-up table + data Quality factor 80 Two 256x256 color images Why do the two images have different sizes as GIF/PNG/JPG files ?
  • 14. -14- Classification  Types that MATLAB supports:  BMP, JPEG, PNG, GIF, TIFF, XWD, HDF, PCX, …  Other open-source libraries from “google” Image (bitmap) lossless compression no compression no loss raw, bmp, pgm, ppm, gif, tiff … png, jpeg, gif, tiff, jpeg2000… lossy compression jpeg, tiff, jpeg2000 …
  • 15. -15- Resources and pointers  Google, Wikipedia, Mathworld …  Getting Help in Matlab  Matlab help, Image Processing Demos  DIP matlab tutorial online  Usenet groups  Commercial and free “image” processing software kits:  GIMP, Adobe Photoshop, Macromedia Fireworks  Adobe Illustrator, Corel Draw  Picassa, ACDSee, Windows Paint, XV
  • 16. -16- Summary  Image processing programming tools  MATLAB basics  Using image processing toolbox  Data type and file formats  Resources and pointers