For this chapter, our goal is to add several image filters to Second Sight. These filters rely on various OpenCV functions to manipulate matrices through splitting, merging, arithmetic operations, or applying lookup tables for complex functions. Certain filters also rely on a mathematics library called Apache Commons Math.
Note
The complete Eclipse project for this chapter can be downloaded from the author's website. The project has two versions:
A version for OpenCV 3.x is located at http://nummist.com/opencv/4598_03.zip.
A version for OpenCV 2.x is located at http://nummist.com/opencv/5206_03.zip.