Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Convolution

4: Adsense

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   

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   69 downloads  



#2 Brother Bob   Moderators   

10280
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   Members   

20932
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.