[vtkusers] Projecting a texture to vtkpolydata without using an actor
PTMartin
martin.buerger at plassertheurer.com
Thu May 12 02:12:10 EDT 2016
I solved it on my own in the following way.
No need to convert Bitmap to VtkImage.
Creating texture coords by usage of vtkProjectedTexture.
Using output of extrinsic calibration to set focal point and position.
Setting aspect ratio according bitmap size and intrinsic focal length in
pixel.
Resulting in texture coordinates.
Then assigning color to each point of polydata by pixel color from bitmap
according rounded texture coordinate. No interpolation at all.
Thats it...
--
View this message in context: http://vtk.1045678.n5.nabble.com/Projecting-a-texture-to-vtkpolydata-without-using-an-actor-tp5737455p5738067.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list