6 #include <opencv2/highgui/highgui.hpp>
11 int main(
int argc,
char **argv) {
18 geo::serialization::registerDeserializer<geo::Shape>();
40 double r = shape->getMaxRadius();
53 for(
int y = 0; y < depth_image.rows; ++y) {
54 for(
int x = 0; x < depth_image.cols; ++x) {
55 float d = depth_image.at<
float>(y, x);
57 depth_image.at<
float>(y, x) = (d - dist + r) / (2 * r);
62 cv::imshow(
"visualization", depth_image);
63 char key = cv::waitKey(10);