Adding files to the project
For this chapter, we will modify our existing
ImageDetectionFilter
class. We will also add files for the following new classes and interfaces:
com.nummist.secondsight.ARCubeRenderer
: A class representing the rendering logic for a cube that sits atop a tracked, real-world object. The class implements theGLSurfaceView.Renderer
interface from the Android standard library. The projection matrix is determined by aCameraProjectionAdapter
instance, and the cube's pose matrix is determined by anARFilter
instance, as described later.com.nummist.secondsight.adapters.CameraProjectionAdapter
: A class representing the relationship between a physical camera and a projection matrix. The projection matrix may be fetched in either OpenCV or OpenGL format.com.nummist.secondsight.filters.ar.ARFilter
: An interface representing a filter that captures the position and rotation of a real-world object as an OpenGL matrix. We will modifyImageDetectionFilter
to implement this interface...