Jump to content

  • Log In with Google      Sign In   
  • Create Account


Convolution


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 xilent   Members   -  Reputation: 106

Like
0Likes
Like

Posted 27 May 2013 - 11:52 AM

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

 

Attached File  main.txt   15.61KB   50 downloads  



Sponsor:

#2 Brother Bob   Moderators   -  Reputation: 8088

Like
0Likes
Like

Posted 27 May 2013 - 12:23 PM

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.



#3 Álvaro   Crossbones+   -  Reputation: 12997

Like
0Likes
Like

Posted 30 May 2013 - 09:06 AM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS