initial commit
This commit is contained in:
@ -170,6 +170,10 @@ bool ImageProcessor::loadParameters() {
|
||||
processor_config.ransac_threshold);
|
||||
ROS_INFO("stereo_threshold: %f",
|
||||
processor_config.stereo_threshold);
|
||||
ROS_INFO("OpenCV Major Version: %d",
|
||||
CV_MAJOR_VERSION);
|
||||
ROS_INFO("OpenCV Minor Version: %d",
|
||||
CV_MINOR_VERSION);
|
||||
ROS_INFO("===========================================");
|
||||
return true;
|
||||
}
|
||||
@ -296,6 +300,7 @@ void ImageProcessor::imuCallback(
|
||||
|
||||
void ImageProcessor::createImagePyramids() {
|
||||
const Mat& curr_cam0_img = cam0_curr_img_ptr->image;
|
||||
// TODO: build cuda optical flow
|
||||
buildOpticalFlowPyramid(
|
||||
curr_cam0_img, curr_cam0_pyramid_,
|
||||
Size(processor_config.patch_size, processor_config.patch_size),
|
||||
@ -303,6 +308,7 @@ void ImageProcessor::createImagePyramids() {
|
||||
BORDER_CONSTANT, false);
|
||||
|
||||
const Mat& curr_cam1_img = cam1_curr_img_ptr->image;
|
||||
// TODO: build cuda optical flow
|
||||
buildOpticalFlowPyramid(
|
||||
curr_cam1_img, curr_cam1_pyramid_,
|
||||
Size(processor_config.patch_size, processor_config.patch_size),
|
||||
@ -456,6 +462,7 @@ void ImageProcessor::trackFeatures() {
|
||||
predictFeatureTracking(prev_cam0_points,
|
||||
cam0_R_p_c, cam0_intrinsics, curr_cam0_points);
|
||||
|
||||
//TODO: change to GPU
|
||||
calcOpticalFlowPyrLK(
|
||||
prev_cam0_pyramid_, curr_cam0_pyramid_,
|
||||
prev_cam0_points, curr_cam0_points,
|
||||
|
Reference in New Issue
Block a user