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
: This class represents the rendering logic for a colorful cube that sits in front of 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
: This class represents the relationship between a physical camera and a projection matrix. Other classes may fetch the projection matrix in either OpenCV or OpenGL format.com.nummist.secondsight.filters.ar.ARFilter
: This interface represents a filter that captures the position and rotation of a real-world object as an OpenGL matrix. We will modifyImageDetectionFilter...