Hi. The normalization of the values worked but after I added up all the values I didn't make sure the bounds of the pixel value (x) were 0<=x<=255. I think that was my problem. Thanks for the help :)
Type: Posts; User: Shakes
Hi. The normalization of the values worked but after I added up all the values I didn't make sure the bounds of the pixel value (x) were 0<=x<=255. I think that was my problem. Thanks for the help :)
Hi Rickard, thanks for the reply. I normalized the values between 0 and 255 by using this: z= a+b-a*b/256. Although the values are normalized now, the mask totals still go over the 255 range since I...
Hello. I am having trouble getting my Sobel Horizontal Edge detector to work. I can get the smoothing filter to work (when the mask filter numbers are all 1). The only thing I changed for the...
Sorry, double post.
Hi mobeen. The glFinish() addition fixed the problem. Thanks for your help. I'll play around with my code now and see if I can't get something working.
Hi mobeen. I looked at your output and noticed that you have a black background with a white rectangle drawn. When I run the program, the window opens up, however, there is nothing drawn in it; no...
Hi. Thanks for the reply. I tried changing my code around using the code you supplied. I couldn't get a rectangle to be drawn so I copied your code into a separate project and it didn't draw a...
Hi. I am trying to create a method drawRectangle(). I haven't implemented the draw portion of it yet but that's not the problem. The problem is that I am not used to using events in my program. I...