An intelligent system for diagnosis of capsule endoscopic images