The very simple example for image segmentation is method based on thresholding. You have an image, and you want to segment into 2 part (light and dark). So you can use the threshold is a value, for example, 100. So after segmenting, your image will be segmented into 2 part: the pixels with higher than 100 intensity and the pixels (you can set value for it 255 - is maximum intensity value, white color) with less than 100 intensity (corresponding intensity is 0 - minimum intensity value, black color). This is call binary segmentation. If you use more thresholds, you have more segments.
You can see this example bellow: http://www.scipy-lectures.org/_images/sphx_glr_plot_threshold_001.png
The very simple example for image segmentation is method based on thresholding. You have an image, and you want to segment into 2 part (light and dark). So you can use the threshold is a value, for example, 100. So after segmenting, your image will be segmented into 2 part: the pixels with higher than 100 intensity and the pixels (you can set value for it 255 - is maximum intensity value, white color) with less than 100 intensity (corresponding intensity is 0 - minimum intensity value, black color). This is call binary segmentation. If you use more thresholds, you have more segments.
You can see this example bellow: http://www.scipy-lectures.org/_images/sphx_glr_plot_threshold_001.png