An automatic bleeding detection scheme in wireless capsule endoscopy based on histogram of an RGB-indexed image