Ask Your Question

tdiv's profile - activity

2015-10-06 11:14:45 -0600 commented answer cv::viz Point Cloud

I have just encountered problably the same problem with "near culling". This happens when Q matrix is improper. Calculate Q matrix only once during calibration and load it. If You use stereoRectify (calculates Q) online before sgbm and reprojectImageTo3D with this Q the scene coordinates are reversed in a strange way.

2015-10-06 09:18:41 -0600 answered a question cv::viz Point Cloud

Hi, I work also with stereovision using openCV and viz, but I don't need to re-render these points continously. However I encountered problems similiar to "near culling". I mixed some vtk dll Debug/Release version (they have the same names). In debug sometimes the "near culling" problem still happens but in release version with proper dll it is OK.

2015-10-06 08:18:23 -0600 asked a question Viz possible bug with WText

Hello, I want to display an actual camera position in Viz using WText (2d). It works when I have just a point cloud (WCloud) in the scene and the Text, but when I add any other Widget3D to the scene (e.g. grid, Text3d) this 2d text is not visible. The text is somehow shadowed by a Widget3d. I noticed that Text3D or WGrid works like some kind of limiter for the text (2d). Even a small grid (with a normal vector e.g. in Z direction) obscures Text (2d) if we move the camera in any direction but further than the distance between WGrid and point (0, 0, 0). If this distance is equal 10, the text disappears even at distance 3.1. In the first image there is a point cloud, grid, and coordinate origins. No zoom

In the second a zoomed view where the text is still visible. Zoomed

In the third the sceneis zoomed out a little but the text is not visible. Little zoom out

Is there any special way to work with Text (2d) to see it always on the screen or it is a bug?

I use opencv 3.0.0 (not beta) compiled with VisualStudio 2013 (amd64) with vtk 6.2