Convert images to vectors

Discussion in 'iOS Programming' started by iphonejudy, Oct 5, 2009.

  1. iphonejudy macrumors 6502

    iphonejudy

    Joined:
    Sep 12, 2008
  2. admanimal macrumors 68040

    Joined:
    Apr 22, 2005
    #2
    I don't even know why I'm bothering...but what do you mean convert images to vectors? Do you just want to get the matrix representation of the image data or do you want to convert a bitmap graphic into a vector graphic?
     
  3. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    Use one of the well known algorithm (look them up) to detect the edges in the image
    Threshold this to get rid of noise.
    Use another well known algorithm to thin the lines
    Calculate start and end points to turn the lines into Vectors
    Average the colours within the lines to get fills
     

Share This Page