load mesh function is finalized: color range is always 0-255 and RGB due to vtkPLYReader limitations

This commit is contained in:
ozantonkal
2013-08-28 19:13:34 +02:00
committed by Ozan Tonkal
parent e4b13f2ef0
commit 8007e07ad2
2 changed files with 6 additions and 14 deletions

View File

@@ -17,7 +17,6 @@ cv::viz::Widget cv::viz::Widget::fromPlyFile(const String &file_name)
{
vtkSmartPointer<vtkPLYReader> reader = vtkSmartPointer<vtkPLYReader>::New ();
reader->SetFileName (file_name.c_str ());
reader->Update();
vtkSmartPointer<vtkDataSet> data = reader->GetOutput();
CV_Assert(data);