Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcseacave committed Jun 21, 2022
1 parent e33fc03 commit 09e719b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/software/VO/Tracker_opencv_klt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct Tracker_opencv_KLT : public Abstract_Tracker
std::vector<cv::KeyPoint> m_nextKeypoints;

cv::Ptr<cv::FeatureDetector> m_detector = cv::GFTTDetector::create(count);
if (m_detector == NULL)
if (!m_detector)
return false;

m_detector->detect(current_img, m_nextKeypoints);
Expand Down

0 comments on commit 09e719b

Please sign in to comment.