473,566 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lips' Extraction in C programming

20 New Member
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.
Sep 19 '07 #1
3 2002
Savage
1,764 Recognized Expert Top Contributor
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
Sep 19 '07 #2
TommyC
20 New Member
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.
Sep 20 '07 #3
Savage
1,764 Recognized Expert Top Contributor
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
Sep 20 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3413
by: Kangol kangoll | last post by:
hi, i've been trying to figure out how to make visual basic start extracting text at a certain line to when i tell it to stop. I am making trying to make a program where it extracts text from a text file and inserts it into a database. But right now i'm stuck at finding a way to code it so the text extraction doesn't start till after the...
2
2970
by: Jason Huang | last post by:
Hi, Would someone show me how to do the data extraction to Excel in ASP.Net using C# web form? I am not familiar with VB, so I am asking someone to help me out! Any help will be appreciated. Jason
7
2326
by: M | last post by:
Hi, I need to parse text files to extract data records. The files will consist of a header, zero or more data records, and a trailer. I can discard the header and trailer but I must split the data records up and return them to an application. The complexity here is that I won't know the exact format of the files until run time. The...
1
2322
by: James Lehman | last post by:
Hello. I want to write a program that reads AutoCAD shape (font) files. They are written with the convention that hexadecimal values have a leading zero and decimal values do not. All numbers can be negative or positive. All numbers can be stored in a single byte. My questions is: can ifstream extraction into an int see the leading zero and...
6
4989
by: Robbie Hatley | last post by:
I'm maintaining a software project with 134 C++ files, some of them huge (as much as 10,000 lines each), and very few prototypes. The author's attitude towards prototypes was like this: Prototypes are only good for headers to be included in other files. For functions which call each other inside one file, such as A calls B which calls C...
3
2319
by: dec01louis | last post by:
Hi all, actually i'm now doing something on license plate recognition system for my project. The first step would be the license plate extraction algorithm which means it is needed to extract a license plate from an image captured. So, i wonder how can this be done? Actually i'm thinking of something like detect the image pixels of the license...
16
4325
by: EM.Bateman | last post by:
Working on Visual Studio .Net I've implemented a class: #ifndef CONTRIBUTOR_H #define CONTRIBUTOR_H enum Gender {male=1, female, unk}; #include <iostream> #include <iomanip> #include <string>
0
980
by: koauxbdd | last post by:
cracked rash on lips http://cracks.12w.net F R E E
0
967
by: majorcolletmkvu | last post by:
dry cracked lips http://cracks.12w.net F R E E
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.