This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//in opencv/modules/viz/include/opencv2/viz/types.hpp | |
static Mesh load(InputArray pointCloud); | |
//in opencv/modules/viz/src/types.cpp | |
cv::viz::Mesh cv::viz::Mesh::load((InputArray pointCloud){ | |
vtkSmartPointer<vtkCloudMatSource> cloud_source = vtkSmartPointer<vtkCloudMatSource>::New(); | |
cloud_source->SetCloud(pointCloud); | |
cloud_source->Update(); | |
vtkSmartPointer<vtkPolyData> polydata = cloud_source->GetOutput(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cuda_runtime.h> | |
#include <cstring> | |
#include <cstdlib> | |
#include <vector> | |
#include <string> | |
#include <iostream> | |
#include <stdio.h> | |
#include "caffe/caffe.hpp" |