- Feature point tracking
- Use Pod to install Masonry and OpenCV (default version).
- Currently it only supports slow movement of camera or shoes.
- Also error will be accumulated.
- MainMenuViewController.m
- The last
Optical Flow Demois current version.
- ViewController.mm
- Image resolution is 640x480
- The brightness of image is fixed.
- Clicking
resetbuttom can adjust image to current light.
- Clicking
- Put shoes into the retangle and click
startbutton to start tracking. - Click
resetbuttom to back restart initialization.
- cvOpticalFlow.cpp
- function trackingFrontFromInitialNineGrid
avgHomois the homography matrix of shoes plane in two frame (initial frame and current frame)- camera matrix is required to recover pose in function
pose_estimation_2d2d- current camera matrix K is for 640x480 image by iphone 7
Randtis the rotation matrix and transformation vector of camera pose- Pose Matrix is saved in
poseand printed
The code is not up to date.