[vtkusers] Position of contour
mehrwald at ira.uka.de
mehrwald at ira.uka.de
Fri Mar 23 09:19:47 EDT 2012
Hi all,
I use a contour filter to get the contour of the object my camera
sees. I am wondering where the contour is placed then because it is
not where the object is.
My camera looks like this:
vtkOpenGLCamera (000000000FD5BC30)
Debug: Off
Modified Time: 3680
Reference Count: 3
Registered Events: (none)
ClippingRange: (2599.78, 2830.14)
DirectionOfProjection: (-0.0537539, 0.998219, 0.0258868)
Distance: 1
EyeAngle: 2
FocalDisk: 1
FocalPoint: (662.086, -2596.26, -15.2492)
ViewShear: (0, 0, 1)
ParallelProjection: Off
ParallelScale: 1
Position: (662.14, -2597.26, -15.2751)
Stereo: Off
Left Eye: 1
2012-03-23 14:12:07 Cout: Thickness: 230.356
ViewAngle: 102
UseHorizontalViewAngle: 0
UserTransform: (none)
(none)
ViewPlaneNormal: (0.0537539, -0.998219, -0.0258868)
ViewUp: (-0.956019, -0.0589325, 0.287323)
WindowCenter: (0, 0)
HeadTracked: 0
Then I use the window to image filter and on the output of that the
contour filter. Here are the center points of my object and the
resulting center point of the contour:
center data: 64.1 30.85 81.8
center contour: 2778.6 1826.64 -2734.9
Why is the contour so far away from the object? This is actually not a
big deal because I can translate it back but unfortunately the
orientation is lost as well.
Can anyone please tell my how to get the countour back over my
original object with the correct orienation?
Thanks,
Markus
More information about the vtkusers
mailing list