Search this site
Embedded Files
Skip to main content
Skip to navigation
Computer Vision 2019
Home
CV News
Industry
Syllabus
Supplement
Homework
Exercise
Programming
HWP1
HWP2
HWP3
HWP4
HWP5
HWP6
HWP7
Reading
HWR1
Student's Work
Project
About This Course
Previous Courses
Computer Vision 2019
Home
CV News
Industry
Syllabus
Supplement
Homework
Exercise
Programming
HWP1
HWP2
HWP3
HWP4
HWP5
HWP6
HWP7
Reading
HWR1
Student's Work
Project
About This Course
Previous Courses
More
Home
CV News
Industry
Syllabus
Supplement
Homework
Exercise
Programming
HWP1
HWP2
HWP3
HWP4
HWP5
HWP6
HWP7
Reading
HWR1
Student's Work
Project
About This Course
Previous Courses
Programming Homework
HWP1: Manipulating Pixels
Goal: Build OpenCV project and learn to access(read/write) image pixels.
Practice some basic image processing functions: add noise, color reduction, image enhancement, image addition.
Learn to access pixels by different ways: scanning an image with pointers, scanning an image with iterators.
Learn to write efficient image scanning loops.
Readings and sample codes
OpenCV 3 computer vision application programming cookbook. R. Laganière, Packt Publishing, 2017. [
Book URL
]
Chapter 1 Playing with images (
PDF
,
code
), Chapter 2 Manipulating the Pixels (
PDF
,
code
)
Test images
You can use the provided sample codes in your homework, but you have to
replace the images with yours
.
Web Report
Create a web page with description texts and a lot of pictures for the following programs
saltImage.cpp
: Add salt-and-pepper noise into an image. (p.40 in
Ch2 PDF
)
colorReduce.cpp
: Reduce the number of colors into 1/N. (p.44 in
Ch2 PDF
)
Compare speeds of different pixel access methods with the OpenCV function cv:getTickCount() to obtain the speed of pixel access. (p.55 in
Ch2 PDF
)
contrast.cpp
: Enhance an image by sharpening methods. (p.60 in
Ch2 PDF
)
addImages.cpp
: Add two images to get a blended image. (p.64 in
Ch2 PDF
)
remapping.cpp
: Simulate a lens distortion to create a distorted images. (p.68 in
Ch2 PDF
)
You have to give explanations of the codes. And you have to identify how did you modify the source code to get your results.
Submit your web address by
Google Classroom
.
Report abuse
Report abuse