# Choosing Segmentation Thresholds

Once you have selected a segmentation type, you must determine the particular threshold value or values your application will use. If the images that your application analyzes have consistent brightness and contrast, you can easily determine an appropriate threshold value by examining several sample images. If your images have significant brightness or contrast variations your application must be able to adjust the threshold value dynamically.

If your application needs to cope with variations in brightness between images, you should consider specifying a relative threshold.