asked 2016-04-01 08:23:51 -0500

moodyman gravatar image

updated 2016-04-01 08:26:35 -0500

berak gravatar image

Hi everyone,

i've been trying to understand Expectation Maximization Algorithm to get it work into my personal project with no success. I've used Opencv library and documentation to get it work with no success as well. Okay so at this step of my project, i want to segment a facial region after detecting it. I could pass the first steps, it means that i can detect a face, and expand area aspect so i can get the hair and ears too. Well now i'm trying to implement a new program just to segment a picture first, so i can better understand how it works. If anyone could send me an easy .cpp code, that segmentates a given picture from my desktop for example, and tell me what libraries should i include, that would be really great. Don't tell to check on internet, cause i couldn't find any easy sample to understand with my newbie skills(even the one included in opencv, i couldn't get it work). Well i'm using OpenCV2.4.11 and XCode

Thank you for your help, MM

edit retag flag offensive close merge delete


could you try to explain, how and why you are trying to use EM for segmentation ?

berak gravatar imageberak ( 2016-04-01 08:28:03 -0500 )edit

i want to run expectation maximization to segment facial region, from a picture or real time webcam

moodyman gravatar imagemoodyman ( 2016-04-01 09:04:54 -0500 )edit

you already said that. what i'm asking, is , how you're tying to make use of EM here.

berak gravatar imageberak ( 2016-04-01 09:39:15 -0500 )edit

i'm not sure to get your question, but i'll try to give you as much details as possible, after detecting the face, a rectangle is drawn and expanded so it can include the hair too. My aim is to segment that rectangle (principally to differentiate the hair from the rest, assuming that the hair has a different color from everything else in that rectangle), really sorry if that still doesn't answer

moodyman gravatar imagemoodyman ( 2016-04-01 09:47:19 -0500 )edit

since i'm looking forward to find the hair area before confronting it to my needs. should'nt I use another method? such as GrabCut, just to cut out the hair area, in order to get a sample

moodyman gravatar imagemoodyman ( 2016-04-01 10:57:19 -0500 )edit