Ask Your Question
0

Expectation Maximization using HSV

asked 2014-03-24 12:56:31 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-03-25 12:53:38 -0600

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.

edit flag offensive delete link more

Comments

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

ajplockyer gravatar imageajplockyer ( 2014-03-27 11:48:23 -0600 )edit

Question Tools

Stats

Asked: 2014-03-24 12:56:31 -0600

Seen: 260 times

Last updated: Mar 25 '14