Color-based template selection for detection of gastric abnormalities in video endoscopy