I am trying to implement the "Interactive Graphcut" algorithm for color (3 channel) images. So the user is asked to pick a series of pixels(voxels) as forground and a series of seies of pixels ad background.

So When the user picks "N" pixels as foreground and "M" pixels for background, I will have:

(N x 3) values for fg

(M x 3) values for bg

where 3 is the number of channels. when I use EM to get my probability distributions, I must apply it to each channel (right?) and so for each segment (fg/bg) I will have 3 GMMs.

Now to compute the likelihood of being foreground or background for each pixels I should compute the likelihood of each of the 3 channel values given the corresponding probability distribution Meaning that for each of the 2 segments I will have 3 likelihoods(one for red channel, one for green channel and one for blue channel). Now what should I do?

Should I sum the 3 likelihoods up for each pixel? or should I average them?

I need  "The Likelihood of being forground p(I|F)"  and "The Likelihood of being Background p(I|B)"  for each pixel.

thanks!

More Payman Khayree's questions See All
Similar questions and discussions