Ask Your Question

PhantomFav's profile - activity

2016-01-15 02:17:13 -0600 received badge  Necromancer (source)
2016-01-14 03:48:10 -0600 answered a question Get Q matrix.

You should declare the translate vector T as:

 const cv::Mat T = cv::Mat(3,1,CV_64F,_T);

This will prevent the assert to activate.

2013-03-21 16:31:46 -0600 received badge  Editor (source)
2013-03-21 16:11:17 -0600 answered a question OpenGL interoperability

You must simply use opengGL with openCV and not viceversa. You can build your shape in openGL and apply the texture using the tools that opencv come with. For example this is a function to transform a IplImage into a texture for openGL:

GLuint ConvertIplToTexture(IplImage *image){
    GLuint texture;
    glGenTextures(1,&texture);
    glBindTexture(GL_TEXTURE_2D,texture);
    gluBuild2DMipmaps(GL_TEXTURE_2D,3,image->width,image->height,
                             GL_BGR,GL_UNSIGNED_BYTE,image->imageData);
    return texture;
}
2013-03-21 09:32:06 -0600 received badge  Supporter (source)