A High Speed Self Learning Device for Image Segmentation and Object Recognition Using Color and Straight Line Patterns