Home | History | Annotate | Download | only in src

Lines Matching refs:cloud

49 /// Point Cloud Widget implementation
51 cv::viz::WCloud::WCloud(InputArray cloud, InputArray colors)
53 WCloud cloud_widget(cloud, colors, cv::noArray());
57 cv::viz::WCloud::WCloud(InputArray cloud, const Color &color)
59 WCloud cloud_widget(cloud, Mat(cloud.size(), CV_8UC3, color));
63 cv::viz::WCloud::WCloud(InputArray cloud, const Color &color, InputArray normals)
65 WCloud cloud_widget(cloud, Mat(cloud.size(), CV_8UC3, color), normals);
69 cv::viz::WCloud::WCloud(cv::InputArray cloud, cv::InputArray colors, cv::InputArray normals)
71 CV_Assert(!cloud.empty() && !colors.empty());
74 cloud_source->SetColorCloudNormals(cloud, colors, normals);
101 /// Painted Cloud Widget implementation
103 cv::viz::WPaintedCloud::WPaintedCloud(InputArray cloud)
106 cloud_source->SetCloud(cloud);
132 cv::viz::WPaintedCloud::WPaintedCloud(InputArray cloud, const Point3d& p1, const Point3d& p2)
135 cloud_source->SetCloud(cloud);
158 cv::viz::WPaintedCloud::WPaintedCloud(InputArray cloud, const Point3d& p1, const Point3d& p2, const Color& c1, const Color c2)
161 cloud_source->SetCloud(cloud);
205 /// Cloud Collection Widget implementation
227 void cv::viz::WCloudCollection::addCloud(InputArray cloud, InputArray colors, const Affine3d &pose)
230 source->SetColorCloud(cloud, colors);
244 void cv::viz::WCloudCollection::addCloud(InputArray cloud, const Color &color, const Affine3d &pose)
246 addCloud(cloud, Mat(cloud.size(), CV_8UC3, color), pose);
255 CV_Assert("Need to add at least one cloud." && mapper);
273 /// Cloud Normals Widget implementation
277 Mat cloud = _cloud.getMat();
280 CV_Assert(cloud.type() == CV_32FC3 || cloud.type() == CV_64FC3 || cloud.type() == CV_32FC4 || cloud.type() == CV_64FC4);
281 CV_Assert(cloud.size() == normals.size() && cloud.type() == normals.type());
284 int ystep = (cloud.cols > 1 && cloud.rows > 1) ? sqlevel : 1;
285 int xstep = (cloud.cols > 1 && cloud.rows > 1) ? sqlevel : level;
288 points->SetDataType(cloud.depth() == CV_32F ? VTK_FLOAT : VTK_DOUBLE);
292 int s_chs = cloud.channels();
296 for(int y = 0; y < cloud.rows; y += ystep)
298 if (cloud.depth() == CV_32F)
300 const float *srow = cloud.ptr<float>(y);
301 const float *send = srow + cloud.cols * s_chs;
319 const double *srow = cloud.ptr<double>(y);
320 const double *send = srow + cloud.cols * s_chs;
363 CV_Assert(mesh.cloud.rows == 1 && mesh.polygons.type() == CV_32SC1);
366 source->SetColorCloudNormalsTCoords(mesh.cloud, mesh.colors, mesh.normals, mesh.tcoords);
369 Mat lookup_buffer(1, (int)mesh.cloud.total(), CV_32SC1);
371 for(int y = 0, index = 0; y < mesh.cloud.rows; ++y)
373 int s_chs = mesh.cloud.channels();
375 if (mesh.cloud.depth() == CV_32F)
377 const float* srow = mesh.cloud.ptr<float>(y);
378 const float* send = srow + mesh.cloud.cols * s_chs;
385 if (mesh.cloud.depth() == CV_64F)
387 const double* srow = mesh.cloud.ptr<double>(y);
388 const double* send = srow + mesh.cloud.cols * s_chs;
444 cv::viz::WMesh::WMesh(InputArray cloud, InputArray polygons, InputArray colors, InputArray normals)
447 mesh.cloud = cloud.getMat();