Chapter 2. App 1 - Building Your Own Darkroom

In this chapter, you will learn about how images are stored and represented in OpenCV and how to utilize this representation to implement interesting algorithms that will enhance how your images look.

We will first explain the digital image representation and different color spaces to explore the important Mat class in OpenCV.

Then, we will go through the steps to load an image from your phone gallery and display it on your device screen regardless of the image resolution.

Finally, you will learn about the image histograms and how to calculate and use them to enhance your images, whether they are black and white or colored.

We will cover the following topics in this chapter:

  • Digital images
  • Processing the ...

Get OpenCV Android Programming By Example 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.