{
CV_Assert(DataDepth<_Tp>::value == source.depth() && source.size() == nan_mask.size());
CV_Assert(nan_mask.channels() == 3 || nan_mask.channels() == 4);
- CV_DbgAssert(DataDepth<_Msk>::value == nan_mask.depth());
+ CV_DbgAssert(DataDepth<_Tp>::value == nan_mask.depth());
int s_chs = source.channels();
int m_chs = nan_mask.channels();
{
Widget3D widget = this->cast<Widget3D>();
return static_cast<MeshWidget&>(widget);
-}
\ No newline at end of file
+}
#include "viz3d_impl.hpp"
#include <opencv2/core.hpp>
#include <opencv2/viz.hpp>
+#include <opencv2/viz/types.hpp>
#include "opencv2/viz/widget_accessor.hpp"
-#include <opencv2/viz/types.hpp>
+#include "precomp.hpp"
//////////////////////////////////////////////////////////////////////////////////////////////////////
/// cv::viz::Color
vtkSmartPointer<vtkPoints> mesh_points = poly_data->GetPoints ();
vtkIdType nr_points = mesh_points->GetNumberOfPoints ();
- vtkIdType nr_polygons = poly_data->GetNumberOfPolys ();
+ //vtkIdType nr_polygons = poly_data->GetNumberOfPolys ();
mesh->cloud.create(1, nr_points, CV_32FC3);
vtkIdType nr_cell_points;
vtkCellArray * mesh_polygons = poly_data->GetPolys ();
mesh_polygons->InitTraversal ();
- int id_poly = 0;
mesh->polygons.create(1, mesh_polygons->GetSize(), CV_32SC1);