Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: Shakes

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,062

    Re: Sobel Horizontal Edge Detector Problem

    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 :)
  2. Replies
    4
    Views
    2,062

    Re: Sobel Horizontal Edge Detector Problem

    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...
  3. Replies
    4
    Views
    2,062

    Sobel Horizontal Edge Detector Problem

    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...
  4. Replies
    7
    Views
    2,535

    Re: Problem with MouseFunc

    Sorry, double post.
  5. Replies
    7
    Views
    2,535

    Re: Problem with MouseFunc

    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.
  6. Replies
    7
    Views
    2,535

    Re: Problem with MouseFunc

    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...
  7. Replies
    7
    Views
    2,535

    Re: Problem with MouseFunc

    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...
  8. Replies
    7
    Views
    2,535

    Problem with MouseFunc

    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...
Results 1 to 8 of 8