mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
update reader after setting file name
This commit is contained in:
parent
3da7dd9849
commit
e4b13f2ef0
@ -17,6 +17,7 @@ cv::viz::Widget cv::viz::Widget::fromPlyFile(const String &file_name)
|
|||||||
{
|
{
|
||||||
vtkSmartPointer<vtkPLYReader> reader = vtkSmartPointer<vtkPLYReader>::New ();
|
vtkSmartPointer<vtkPLYReader> reader = vtkSmartPointer<vtkPLYReader>::New ();
|
||||||
reader->SetFileName (file_name.c_str ());
|
reader->SetFileName (file_name.c_str ());
|
||||||
|
reader->Update();
|
||||||
|
|
||||||
vtkSmartPointer<vtkDataSet> data = reader->GetOutput();
|
vtkSmartPointer<vtkDataSet> data = reader->GetOutput();
|
||||||
CV_Assert(data);
|
CV_Assert(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user