A trainable Gaussian color model for determining the color invariant