Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Question on texture

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jun 2010
    Posts
    162

    Question on texture

    Click image for larger version. 

Name:	texturecoodinate.jpg 
Views:	63 
Size:	40.0 KB 
ID:	960

    I need some helpabout extracting vertices from an image. I have extracted the boundaries of animage from adobe photoshop as shown in the figure. I pasted it on a XZ planeABCD as texture. Now I need to extract vertices ( for example, v1, v2 etc.) ofthe boundaries at different positions. How could that be done. Could any onegive me some suggestions? Can I convert the boundaries to a set of connected straightlines?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,098
    This is not a very practical thing to do since the quality of you original image heavily effects toresult. If you just want horizontal or vertical lines the easy way if to read each pixel in a column or row untill you find the black pixel. It is basically a veriation of the old pixel fill routines you used before graphics processors where invented.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jun 2010
    Posts
    162
    I don't know whether any method available to convert image boundaries to a polygon connected with a set of straight lines. I am not sure about MATLAB. But I would prefer to implement using OpenGL as I need to use the polygon for further processing using OpenGL. Could any one give me some suggestion. I urgently need this information.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •