A vision system comprises several steps, with each step exerting a significant impact on the final outcome. One of these crucial steps is segmentation, which isolates the region of interest within an object and removes the background. Segmentation is vital because it enhances the quality of the isolated region, improves the accuracy of extracted features, and reduces the noise introduced by poor-quality features. Several segmentation techniques are available in the literature, each requiring one or more adjustable parameters. Selecting the most appropriate technique for segmenting a particular image dataset can be challenging. Several factors can affect the segmentation quality, including preprocessing, the chosen segmentation method, parameter fine-tuning approaches, and the characteristics of the dataset. Moreover, variations in lighting and intensity can further influence segmentation quality. At times, an expert may need to manually choose the segmentation technique and fine-tune its associated parameters. This paper presents the development of an automated algorithm for the selection of segmentation techniques and their associated parameters. The developed techniques are implemented and compared using diverse datasets, and the resulting experimental outcomes are thoroughly discussed and analyzed. The algorithm aims to streamline and simplify the process of selecting appropriate segmentation techniques, determining the required parameters, and selecting suitable pre-processing techniques.