First time here? Check out the FAQ!

Ask Your Question
0

Expectation Maximization using HSV

asked Mar 24 '14

ajplockyer gravatar image

I have a working program which uses the EM class, trained on RGB values to classify pixels in an image. Is it possible to do the same thing using HSV values? The problem is that hue is an angle. Thus, the mean cannot be calculated in the usual way.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Mar 25 '14

xaffeine gravatar image

I would expect trouble if a lot of your data has hue near zero. If hue-space is not well populated, you can work around this by adding a "magic" value to every hue. Otherwise, you might need to a more appropriate color space.

Preview: (hide)

Comments

Thankyou for the suggestions. I ended up using Lab_color_space, which seems to work well.

ajplockyer gravatar imageajplockyer (Mar 27 '14)edit

Question Tools

Stats

Asked: Mar 24 '14

Seen: 292 times

Last updated: Mar 25 '14