For this chapter, our goal is to add several image filters to
Second Sight. These filters rely on various OpenCV functions for manipulating 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.
The completed Eclipse project for this chapter can be downloaded from my website at http://nummist.com/opencv/5206_03.zip.
We need to add several files to our Eclipse project in order to create new types (that is, interfaces and classes) and to link to a new library,
Apache Commons Math. The following are the new types that we want to create: