mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 01:47:12 +08:00
Merge pull request #7628 from sergiud:viz-vtkUnsignedCharArray-delete
This commit is contained in:
commit
acaa1e1b29
@ -282,7 +282,7 @@ namespace cv
|
||||
scalars->SetName("Colors");
|
||||
scalars->SetNumberOfComponents(3);
|
||||
scalars->SetNumberOfTuples((vtkIdType)size);
|
||||
scalars->SetArray(color_data->val, (vtkIdType)(size * 3), 0);
|
||||
scalars->SetArray(color_data->val, (vtkIdType)(size * 3), 0, vtkUnsignedCharArray::VTK_DATA_ARRAY_DELETE);
|
||||
return scalars;
|
||||
}
|
||||
|
||||
|
@ -235,7 +235,7 @@ void cv::viz::vtkCloudMatSource::filterNanColorsCopy(const Mat& cloud_colors, co
|
||||
scalars->SetName("Colors");
|
||||
scalars->SetNumberOfComponents(3);
|
||||
scalars->SetNumberOfTuples(total);
|
||||
scalars->SetArray(array->val, total * 3, 0);
|
||||
scalars->SetArray(array->val, total * 3, 0, vtkUnsignedCharArray::VTK_DATA_ARRAY_DELETE);
|
||||
}
|
||||
|
||||
template<typename _Tn, typename _Msk>
|
||||
|
Loading…
Reference in New Issue
Block a user