[vtk-developers] Problem of how to get the dimension of a picture
段辉宏
EVENDUAN at outlook.com
Mon Jul 27 08:55:43 EDT 2015
My vtk version is 6.2 and I want to get the dimensions of a picture.
Following is a part of my code:
vtkSmartPointer<vtkBMPReader> reader =
vtkSmartPointer<vtkBMPReader>::New();
reader->SetFileName( argv[1]);
reader->Update();
int originalDims[3];
reader->GetOutput()->GetDimensions(originalDims);
The last code: “reader->GetOutput()->GetDimensions(originalDims)” is
wrong. Where is the problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150727/6bd2c624/attachment.html>
More information about the vtk-developers
mailing list