MCPcopy Create free account
hub / github.com/Kitware/VTK / operator()

Method operator()

Rendering/Image/vtkDepthImageToPointCloud.cxx:129–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127{
128 template <typename TDepthsArray, typename TPointsArray>
129 void operator()(TDepthsArray* depthsArray, TPointsArray* ptsArray, vtkIdType* ptMap, int dims[2],
130 vtkCamera* cam)
131 {
132 double m[16], aspect = static_cast<double>(dims[0]) / static_cast<double>(dims[1]);
133 vtkMatrix4x4* matrix = cam->GetCompositeProjectionTransformMatrix(aspect, 0, 1);
134 vtkMatrix4x4::Invert(*matrix->Element, m);
135
136 MapDepthImage<TDepthsArray, TPointsArray> mapDepths(depthsArray, ptsArray, dims, m, ptMap);
137 vtkSMPTools::For(0, dims[1], mapDepths);
138 }
139};
140
141// Process the color scalars. It would be pretty easy to process all

Callers

nothing calls this directly

Calls 3

InvertFunction · 0.50
ForFunction · 0.50

Tested by

no test coverage detected