Effect of threshold value, , on the binary background mask when the background is noisy. (a) RGB image, (b) red channel, and (c–l) binary background masks for different . In (c) , (d) , (e) , (f) , (g) , (h) , (i) , (j) , (k) , and (l) . Depending on the intensity of the background noise, we need to decide the value of . If we assign too small value to , then some noisy background pixels may be considered as the foreground (see (c–i)). If we set too high value to , then some area of the foreground will be considered as the background (see (k,l)). Source of fundus photograph: STARE data set and image file: im0240.ppm.