O'Reilly logo

Practical OpenCV by Samarth Brahmbhatt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required