Lips' Extraction in C programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TommyC
    New Member
    • Jul 2007
    • 20

    #1

    Lips' Extraction in C programming

    Hi all,
    Anyone can give idea on how to extract the exact lips from mouth region?
    I have cropped out the ROI of mouth. My problem is how to apply in programming to detect the contour or boundary of liips in order to extract it?
    Anyone famiiar with deformable model method? Any software can be used in this situation?
    I am using C programming in developing this algorithm. Any help will be appreciated. Thank you very much.
  • Savage
    Recognized Expert Top Contributor
    • Feb 2007
    • 1759

    #2
    Originally posted by TommyC
    Hi all,
    Anyone can give idea on how to extract the exact lips from mouth region?
    I have cropped out the ROI of mouth. My problem is how to apply in programming to detect the contour or boundary of liips in order to extract it?
    Anyone famiiar with deformable model method? Any software can be used in this situation?
    I am using C programming in developing this algorithm. Any help will be appreciated. Thank you very much.
    You might wont to try color keying.Paint everything else except the lips.(Paint everything around them in a rare used color,different then color of the lips,often pure purple is used for that),read in your image and look for color information if you find the pixel matching the color key,don't include it into your array of pixels,at the end only parts which haven't been color keyed will remain,and you can easily save that image to a file.

    Savage

    Comment

    • TommyC
      New Member
      • Jul 2007
      • 20

      #3
      did u mean i need to color the region without lips manually? I hope so but my project has been constraint to automated system. Mate, any idea to make it done automatically?
      Thank you for your idea.

      Comment

      • Savage
        Recognized Expert Top Contributor
        • Feb 2007
        • 1759

        #4
        Originally posted by TommyC
        did u mean i need to color the region without lips manually? I hope so but my project has been constraint to automated system. Mate, any idea to make it done automatically?
        Thank you for your idea.
        I'm not sure that this process can be fully automatized.

        One idea is to read a image,and create 3 buffers,one will hold 32bit color(or any as you specify),and second one will hold the image but with color count lowered to 16 colors.Because most likely lips would be red,you get red pixels position from a 16 colors image buffer and translate them into third buffer but with color data from a first one.

        This is the only way I can think of .The major problem will represent converting from high number of colors to only 16 of them.



        Savage

        Comment

        Working...