[vtk-developers] Problem of how to get the dimension of a picture
Joachim Pouderoux
joachim.pouderoux at kitware.com
Mon Jul 27 09:29:23 EDT 2015
What do you mean by "is wrong"? Are the returned values in the orignalDims
array incorrect or do you have a compilation error?
If the returned dimensions are incorrect, please provide an image example,
what are expected dimensions and what are the one returned by GetDimensions?
*Joachim Pouderoux*
*PhD, Technical Expert*
*Kitware SAS <http://www.kitware.fr>*
2015-07-27 14:55 GMT+02:00 段辉宏 <EVENDUAN at outlook.com>:
> 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?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150727/c4d79933/attachment-0001.html>
More information about the vtk-developers
mailing list