<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to: Convert an OpenCV cv::Mat to an OpenGL texture</title>
	<atom:link href="http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/feed/" rel="self" type="application/rss+xml" />
	<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-an-opencv-cvmat-to-an-opengl-texture</link>
	<description>A number-pimping side project from the valleys in *NEW* upside-down flavour.</description>
	<lastBuildDate>Mon, 13 May 2013 03:00:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-10810</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Wed, 03 Apr 2013 21:59:06 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-10810</guid>
		<description><![CDATA[Or if the error really is as you say, maybe try this: &lt;a href=&quot;http://stackoverflow.com/questions/4711113/glew-in-vs-2010-unresolved-external-symbol-imp-glewinit&quot;&gt;http://stackoverflow.com/questions/4711113/glew-in-vs-2010-unresolved-external-symbol-imp-glewinit&lt;/a&gt;.]]></description>
		<content:encoded><![CDATA[<p>Or if the error really is as you say, maybe try this: <a href="http://stackoverflow.com/questions/4711113/glew-in-vs-2010-unresolved-external-symbol-imp-glewinit">http://stackoverflow.com/questions/4711113/glew-in-vs-2010-unresolved-external-symbol-imp-glewinit</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-10780</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Tue, 02 Apr 2013 22:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-10780</guid>
		<description><![CDATA[glewGenerateMipmap isn&#039;t a function - try glGenerateMipmap.]]></description>
		<content:encoded><![CDATA[<p>glewGenerateMipmap isn&#8217;t a function &#8211; try glGenerateMipmap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Likli</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-10759</link>
		<dc:creator>Likli</dc:creator>
		<pubDate>Tue, 02 Apr 2013 08:59:51 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-10759</guid>
		<description><![CDATA[Thanks for you last answer, but now I have a new problem with glGenerateMipmap:
simpleGL.obj : error LNK2001: Unresolved external symbol __imp____glewGenerateMipmap 
I included all libraries.
May be you have any idea?]]></description>
		<content:encoded><![CDATA[<p>Thanks for you last answer, but now I have a new problem with glGenerateMipmap:<br />
simpleGL.obj : error LNK2001: Unresolved external symbol __imp____glewGenerateMipmap<br />
I included all libraries.<br />
May be you have any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-10375</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Wed, 20 Mar 2013 00:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-10375</guid>
		<description><![CDATA[If I remember correctly the glGenerateMipmap function isn&#039;t in the core set of OpenGL commands, so you&#039;ll need to enable an extension to use it.

The easiest way to do this is to include &lt;a href=&quot;http://glew.sourceforge.net/&quot;&gt;GLEW&lt;/a&gt; in your project, and then initialise GLEW early on in your code - which will automatically make extensions available as needed. Using GLEW is simple, and there&#039;s some example code you could look at here: &lt;a href=&quot;http://r3dux.org/2011/09/simple-texture-loading-with-devil-revisited/&quot;&gt;Simple Texture Loading with DevIL Revisited&lt;/a&gt;, or of course there&#039;s always Google =D

Alternatively, you could just not use mipmaps by setting the minification and/or magnification filters to use something like GL_LINEAR instead of GL_LINEAR_MIPMAP_LINEAR or such, at which point you can completely remove the call to glGenerateMipmap!

Hope this helps.]]></description>
		<content:encoded><![CDATA[<p>If I remember correctly the glGenerateMipmap function isn&#8217;t in the core set of OpenGL commands, so you&#8217;ll need to enable an extension to use it.</p>
<p>The easiest way to do this is to include <a href="http://glew.sourceforge.net/">GLEW</a> in your project, and then initialise GLEW early on in your code &#8211; which will automatically make extensions available as needed. Using GLEW is simple, and there&#8217;s some example code you could look at here: <a href="http://r3dux.org/2011/09/simple-texture-loading-with-devil-revisited/">Simple Texture Loading with DevIL Revisited</a>, or of course there&#8217;s always Google =D</p>
<p>Alternatively, you could just not use mipmaps by setting the minification and/or magnification filters to use something like GL_LINEAR instead of GL_LINEAR_MIPMAP_LINEAR or such, at which point you can completely remove the call to glGenerateMipmap!</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Likli</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-10359</link>
		<dc:creator>Likli</dc:creator>
		<pubDate>Tue, 19 Mar 2013 09:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-10359</guid>
		<description><![CDATA[Hi!
I&#039;m trying to implement on my PC with nvidea GeForce 560 your function &quot;matToTexture&quot;, but I&#039;ve error - glGenerateMipmap: identifier not found.
What can I have a problem?
Thank you.]]></description>
		<content:encoded><![CDATA[<p>Hi!<br />
I&#8217;m trying to implement on my PC with nvidea GeForce 560 your function &#8220;matToTexture&#8221;, but I&#8217;ve error &#8211; glGenerateMipmap: identifier not found.<br />
What can I have a problem?<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glauco</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-9529</link>
		<dc:creator>Glauco</dc:creator>
		<pubDate>Thu, 07 Feb 2013 20:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-9529</guid>
		<description><![CDATA[Hi,

     I dont have Kinect,
     I try use my webcam and i have a white screen (no texture), only the OpenGL square.
     I just comment the 2 lines in main function:
    
      //capture.retrieve(camFrame,   CV_CAP_OPENNI_BGR_IMAGE);
     //capture.retrieve(depthFrame, CV_CAP_OPENNI_DISPARITY_MAP);

     And change this in main function:

cv::VideoCapture capture;
capture.open(0);

capture &gt;&gt; camFrame;

// Draw texture contents
draw(camFrame, camFrame);


Any sugestion?]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>     I dont have Kinect,<br />
     I try use my webcam and i have a white screen (no texture), only the OpenGL square.<br />
     I just comment the 2 lines in main function:</p>
<p>      //capture.retrieve(camFrame,   CV_CAP_OPENNI_BGR_IMAGE);<br />
     //capture.retrieve(depthFrame, CV_CAP_OPENNI_DISPARITY_MAP);</p>
<p>     And change this in main function:</p>
<p>cv::VideoCapture capture;<br />
capture.open(0);</p>
<p>capture &gt;&gt; camFrame;</p>
<p>// Draw texture contents<br />
draw(camFrame, camFrame);</p>
<p>Any sugestion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-8172</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Sat, 20 Oct 2012 07:44:47 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-8172</guid>
		<description><![CDATA[Good man :-)

I&#039;ll merge it all together soon.]]></description>
		<content:encoded><![CDATA[<p>Good man <img src='http://r3dux.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I&#8217;ll merge it all together soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-8170</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Sat, 20 Oct 2012 02:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-8170</guid>
		<description><![CDATA[Here are the incudes in &quot;...&quot; style:
	


// DetectGLCanvas.h

#pragma once

#include &quot;wx/glcanvas.h&quot;
#include &quot;wx/dcclient.h&quot;
//
//
//// OpenGL view data
//struct GLData // todo get rid of this into the class itself
//{
//    bool initialized;           // has OpenGL been initialized?
//    float beginx, beginy;       // position of mouse
//   // float quat[4];              // orientation of object //todo remove this entire struct 
//   // float zoom;                 // field of view in degrees
//};

namespace cv{		// Forward declaration of the Mat object within the cv namespace
	class Mat; //...
	
//	-----------------------------


// DetectGLCanvas.cpp

#pragma once

#include &quot;glew.h&quot; // This needs to be included before GL/gl.h and that is included in App.h along with wx/glcanvas.h
#include &quot;detect_gl_canvas.h&quot;
#include &quot;App.h&quot;
#include &quot;GL/glu.h&quot; //this is included in glew so it doesnt need to be here soon

#include &quot;opencv2/core/core.hpp&quot;
#include &quot;opencv2/core/mat.hpp&quot;
#include &quot;opencv2/highgui/highgui.hpp&quot;
#include &quot;opencv2/imgproc/imgproc.hpp&quot;

#include &quot;opencv2/contrib/contrib.hpp&quot;
#include &quot;opencv2/objdetect/objdetect.hpp&quot;
#include &quot;opencv2/features2d/features2d.hpp&quot;
//#include &quot;opencv2/core/gpumat.hpp&quot;
//#include &quot;opencv2/gpu/gpu.hpp&quot; 

#include &quot;wx/app.h&quot;
#include &quot;wx/msgdlg.h&quot; //todo remove later

BEGIN_EVENT_TABLE(DetectGLCanvas, wxGLCanvas)
    EVT_SIZE(DetectGLCanvas::OnSize) //...
]]></description>
		<content:encoded><![CDATA[<p>Here are the incudes in &#8220;&#8230;&#8221; style:</p>
<p>// DetectGLCanvas.h</p>
<p>#pragma once</p>
<p>#include &#8220;wx/glcanvas.h&#8221;<br />
#include &#8220;wx/dcclient.h&#8221;<br />
//<br />
//<br />
//// OpenGL view data<br />
//struct GLData // todo get rid of this into the class itself<br />
//{<br />
//    bool initialized;           // has OpenGL been initialized?<br />
//    float beginx, beginy;       // position of mouse<br />
//   // float quat[4];              // orientation of object //todo remove this entire struct<br />
//   // float zoom;                 // field of view in degrees<br />
//};</p>
<p>namespace cv{		// Forward declaration of the Mat object within the cv namespace<br />
	class Mat; //&#8230;</p>
<p>//	&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>// DetectGLCanvas.cpp</p>
<p>#pragma once</p>
<p>#include &#8220;glew.h&#8221; // This needs to be included before GL/gl.h and that is included in App.h along with wx/glcanvas.h<br />
#include &#8220;detect_gl_canvas.h&#8221;<br />
#include &#8220;App.h&#8221;<br />
#include &#8220;GL/glu.h&#8221; //this is included in glew so it doesnt need to be here soon</p>
<p>#include &#8220;opencv2/core/core.hpp&#8221;<br />
#include &#8220;opencv2/core/mat.hpp&#8221;<br />
#include &#8220;opencv2/highgui/highgui.hpp&#8221;<br />
#include &#8220;opencv2/imgproc/imgproc.hpp&#8221;</p>
<p>#include &#8220;opencv2/contrib/contrib.hpp&#8221;<br />
#include &#8220;opencv2/objdetect/objdetect.hpp&#8221;<br />
#include &#8220;opencv2/features2d/features2d.hpp&#8221;<br />
//#include &#8220;opencv2/core/gpumat.hpp&#8221;<br />
//#include &#8220;opencv2/gpu/gpu.hpp&#8221; </p>
<p>#include &#8220;wx/app.h&#8221;<br />
#include &#8220;wx/msgdlg.h&#8221; //todo remove later</p>
<p>BEGIN_EVENT_TABLE(DetectGLCanvas, wxGLCanvas)<br />
    EVT_SIZE(DetectGLCanvas::OnSize) //&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-8157</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Tue, 16 Oct 2012 22:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-8157</guid>
		<description><![CDATA[Actually both, it didnt work, I&#039;ll send the file.]]></description>
		<content:encoded><![CDATA[<p>Actually both, it didnt work, I&#8217;ll send the file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://r3dux.org/2012/01/how-to-convert-an-opencv-cvmat-to-an-opengl-texture/#comment-8156</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Tue, 16 Oct 2012 22:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5946#comment-8156</guid>
		<description><![CDATA[Thanks r3dux could you please remove the old post?]]></description>
		<content:encoded><![CDATA[<p>Thanks r3dux could you please remove the old post?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
