Jump to content
  • Advertisement
Sign in to follow this  
xilent

Convolution

This topic is 2026 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to use a convolution filter for face detection. I have a 30x30 matrix that i'm trying to convolute with the texture but i'm getting a black texture

 

[attachment=15999:main.txt]  

Share this post


Link to post
Share on other sites
Advertisement

Have you verified that you can actually use such a large filter, because I see no error checking in your code. The standard only requires up to 3x3 filters to be supported, and anything beyond that is implementation defined.

Share this post


Link to post
Share on other sites

On Linux, you can run this to find out the limits:

glxinfo -l | grep GL_MAX_CONVOLUTION

 

But you should definitely get in the habit of building error handling into your code.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!