An innovative technique for segmentation of color images is proposed. The technique implements an approach based on thresholding of the hue histogram. A new function for detecting valleys of the histogram has been devised and tested. A novel blurring algorithm for noise reduction that works effectively when used over hue image, has been employed. A feed-forward neural network that learns to recognize the hue ranges of meaningful objects completes the segmentation process. Experimental results show that the proposed technique is reliable and robust even in presence of changing environmental conditions. Extended experimentation has been carried on the framework of the Robot Soccer World Cup Initiative (RoboCup).