Processing the images stored on your phone

In this section, you will learn how to load an image from your phone and apply some interesting image processing algorithms to it, such as contrast enhancing, smoothing (removing noise from your image), and applying some filters.

Loading an image to a Mat object

Let's get started by first creating a new Android project. As you've seen in the previous chapter, in order to start using the OpenCV algorithms, you will need to add the OpenCV library to your project:

  1. Launch Eclipse.
  2. Create a new Android project application; let's name it DarkRoom.
  3. Choose the package name. In this example, I chose it to be com.example.chapter2.darkroom.
  4. Set the minimum required SDK to be anything above API 11 (Android 3.0). In my ...

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.