Skip to content
Snippets Groups Projects
Commit bbf24a10 authored by simon.fanetti's avatar simon.fanetti
Browse files

fixe init matrixes in projection

parent 571f6925
No related branches found
No related tags found
1 merge request!3Custom realsense
......@@ -51,11 +51,9 @@ void Projection::adjustFrame(cv::Mat_<float> depth, cv::Mat_<cv::Vec3b> src, cv:
deprojectMap = cv::Point2i(-1,-1);
frameMap = cv::Point2i(-1,-1);
resized_depth = 0.0f;
resized_src = cv::Vec3b(0,0,0);
// resize to match 1:1 ratio with resized_dst, since we'll do later:
// resized_dst[i] = src[i]
// resize to match 1:1 ratio with dst, since we'll do later:
// dst[i] = src[i]
cv::resize(src, resized_src, dst.size());
cv::resize(depth, resized_depth, dst.size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment