| 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 |
nothing calls this directly
no test coverage detected