# HG changeset patch # User Eleni Maria Stea # Date 1383594801 -7200 # Node ID d2158a527488f6bd747dafcee6fd7128135dcfd1 # Parent a0397f57c07fbd68bdaf479914de058e32393763 commented out inpaint and painted the missing areas white diff -r a0397f57c07f -r d2158a527488 src/frame.cc --- a/src/frame.cc Mon Nov 04 01:45:51 2013 +0200 +++ b/src/frame.cc Mon Nov 04 21:53:21 2013 +0200 @@ -91,20 +91,22 @@ for(int i=0; i= 2047) { - val = 0; + val = 2047; } *dest = val >> 3; src++; dest++; } -// cv::fastNlMeansDenoising(frame->depth_buf, frame->depth_buf, 7, 21, 3); +// cv::GaussianBlur(frame->depth_buf, frame->depth_buf, cv::Size(3, 3), 0.5); - cv::GaussianBlur(frame->depth_buf, frame->depth_buf, cv::Size(3, 3), 0.5); +/* +//Inpaint to fill the regions +//^ val = 0 instead of 2047 and: cv::Mat mask = 255 - frame->depth_buf; cv::threshold(mask, mask, 254, 255, 3); cv::inpaint(frame->depth_buf, mask, frame->depth_buf, 1, cv::INPAINT_NS); - +*/ cv::imshow("foo", frame->depth_buf); cv::waitKey(30); has_depth = true;