Book Image

iOS Application Development with OpenCV 3

By : Joseph Howse
4 (1)
Book Image

iOS Application Development with OpenCV 3

4 (1)
By: Joseph Howse

Overview of this book

iOS Application Development with OpenCV 3 enables you to turn your smartphone camera into an advanced tool for photography and computer vision. Using the highly optimized OpenCV library, you will process high-resolution images in real time. You will locate and classify objects, and create models of their geometry. As you develop photo and augmented reality apps, you will gain a general understanding of iOS frameworks and developer tools, plus a deeper understanding of the camera and image APIs. After completing the book's four projects, you will be a well-rounded iOS developer with valuable experience in OpenCV.
Table of Contents (13 chapters)
iOS Application Development with OpenCV 3
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 3. Blending Images

Let's complete our work on the LightWork app, which we started in Chapter 2, Capturing, Storing, and Sharing Photos. LightWork can already control the iOS device's cameras, capture an image, convert its format, save it, and share it via social media. However, the app is missing the ability to load and reprocess old images. We are going to change this by enabling the user to achieve the following results:

  • Select an image from the user's Photos library.

  • Select an algorithm that defines how to blend two images. We will support some simple arithmetic algorithms as well as an edge-finding algorithm that reduces one of the images to a line drawing.

  • Using the selected blending algorithm, blend the selected image with the background. The background may be the LightWork app's static background image or a frame of live video from the camera.

Compared to the groundwork that we have already done, these additional features are simple, so this chapter is shorter. However, we are...