Skip to content

Commit

Permalink
fixxing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxiang12 committed Nov 22, 2016
1 parent 5037ba3 commit 42bd5bb
Show file tree
Hide file tree
Showing 46 changed files with 35 additions and 4,273 deletions.
2 changes: 1 addition & 1 deletion ch8/LKFlow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ find_package( OpenCV )
include_directories( ${OpenCV_INCLUDE_DIRS} )

add_executable( useLK useLK.cpp )
target_link_libraries( useLK ${OpenCV_LIBS} )
target_link_libraries( useLK ${OpenCV_LIBS} )
7 changes: 6 additions & 1 deletion ch8/LKFlow/useLK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ int main( int argc, char** argv )
string associate_file = path_to_dataset + "/associate.txt";

ifstream fin( associate_file );
if ( !fin )
{
cerr<<"I cann't find associate.txt!"<<endl;
return 1;
}

string rgb_file, depth_file, time_rgb, time_depth;
list< cv::Point2f > keypoints; // 因为要删除跟踪失败的点,使用list
Expand All @@ -35,7 +40,7 @@ int main( int argc, char** argv )
{
// 对第一帧提取FAST特征点
vector<cv::KeyPoint> kps;
cv::Ptr<cv::FastFeatureDetector> detector;
cv::Ptr<cv::FastFeatureDetector> detector = cv::FastFeatureDetector::create();
detector->detect( color, kps );
for ( auto kp:kps )
keypoints.push_back( kp.pt );
Expand Down
127 changes: 0 additions & 127 deletions ch8/data/associate.py

This file was deleted.

Loading

0 comments on commit 42bd5bb

Please sign in to comment.