CHAPTER 4

image

Basic Operations on Images and GUI Windows

In this chapter you will finally start getting your hands dirty with OpenCV code that you write yourself. We will start out with some easy tasks. This chapter will teach you how to:

  • Display an image in a window
  • Convert your image to/from color to grayscale
  • Create GUI track-bars and write callback functions
  • Crop parts from an image
  • Access individual pixels of an image
  • Read, display and write videos

Let’s get started! From this chapter onward, I will assume that you know how to compile and run your code, that you are comfortable with directory/path management, and that you will put all the ...

Get Practical OpenCV now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.